Peach: Local-first video metadata scraper and media manager.
feat(react): 舞台收进路由树的常驻表
longmeidao535226c7effd
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.mdindex 7ade3886e..dd7a02266 100644--- a/docs/FRONTEND.md+++ b/docs/FRONTEND.md@@ -130,15 +130,17 @@ Peach 按 [ADR-0031](adr/0031-frontend-react-boardui-tailwind.md) 逐页接入 R- `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` 的危险档。### 舞台与播放器-作品详情与关注详情都开在同一座常驻的舞台岛里(`frontend/src/react/stage/`)。宿主 `div[data-stage-host]` 挂在 body 末尾,岛拥有 `dialog#stage`、进出场、骨架、关闭键 `#closeStage` 与小窗;两座详情是它的子组件,共用同一份 Query 缓存。+作品详情与关注详情都开在常驻面 `stage` 里(`frontend/src/react/stage/`),由路由树画。宿主 `div[data-stage-host]` 是 body 的直接子元素、整页只有一个、换详情不换,不包 `.peach-react`;这一面拥有 `dialog#stage`、进出场、骨架、关闭键 `#closeStage` 与小窗 `#miniplayer`,两座详情是它的子组件,与页面共用同一份 Query 缓存。-- 壳只拿命令式入口:`loadStage(host)` 第一次打开详情时装载 React 包,之后 `stageApi()` 同步可取,契约在 `stage/stage-api.ts`。来处(`detailReturnPath`、`followDetailReturnPath`、`detailOriginAnchor`)、地址与顶栏上下文仍归壳。+- 壳只拿命令式入口:`loadStage(host)` 第一次打开详情时装载 React 包,`configureStage` 先接上播放器,再经 `openResidentSurface('stage', …)` 建宿主、在画出小窗节点的同一个任务里挂到 body 末尾,画上之后才交出句柄;此后 `stageApi()` 同步可取,契约在 `stage/stage-api.ts`。来处(`detailReturnPath`、`followDetailReturnPath`、`detailOriginAnchor`)、地址与顶栏上下文仍归壳。+- 句柄写本模块的 store 再 `flushSync` 通知:`open`(含原地换条)、`update`、`dispose` 里每一次绘制都在返回之前画完,骨架量尺寸、`showModal`、标题揭示与焦点交给关闭键读到的是刚画好的结构。两座详情画出来时报给壳的 `present` 排到微任务里:壳收到后画侧栏与顶栏,那几座常驻面的句柄也 `flushSync`,在路由树的提交阶段里画不出来;那一条已经换走或舞台已经收起就不报。+- 舞台抛错时只卸组件:浮窗与小窗节点跟着消失,宿主与 body 上的 `data-detail-open` 留着,之后句柄各成员照调不抛,空到刷新为止。- 关掉详情 push 来处:点进来的是点卡那一页;同一个队列里换条不变,播放列表关掉回列表页并重读;后退前进进来的取条目记的背景(关注详情连筛选一起保住);刷新、新标签页与深链落在详情上不读条目,作品详情下面补画目录网格、关掉回 `/`,关注详情关掉回 `/follow`。- 焦点:骨架期间焦点停在 dialog 本身、不画焦点环,内容到了交给关闭键。Escape 先关最里层(右键菜单、标签搜索等弹层先吃掉),没人拦才关舞台。- 播放器在 `frontend/src/player/`,用 vendored 的 Video.js。入口 `mountPlayer(video, options)` 把媒体框里的 `<video>` 换成 Video.js 并返回拆除函数;详情只画媒体框,挂载由舞台的 `attachStagePlayer` 做。@@ -298,17 +300,18 @@ await openManagedRoute('search', props, {container: $('#searchMenu'), isCurrent:- 登记键是「面」:页面用路径(`/stats`、`/performers/*`、`/`),附属面用名字(`catalog-filter`、`feed-new`、`library-processing`、`search`),常驻面也用名字(`batch-dock`、`glow-picker`、`manage-header`、`immerse`、- `settings-panel`、`sidebar`),三者不重叠。路由树按键查 `managed-routes.tsx` 里的同一组表,每条是+ `settings-panel`、`sidebar`、`stage`),三者不重叠。路由树按键查 `managed-routes.tsx` 里的同一组表,每条是`{prefetch, page}`;附属面与常驻面不进 `<Routes>`,也不进 `ROUTED_PATHS`。- 常驻面是不跟某一页走的那几座,登记在常驻表 `RESIDENT_ROUTES` 里,由 `islands.ts` 的 `loadXxx(host)` 经- `openResidentSurface(name, container, place?)` 打开一次(沉浸模式与设置面板在第一次打开时,其余几座在壳启动- 时):没有首屏取数,一直算当前页,宿主就是那个常驻节点本身(`[data-batch-dock]`、`#boardGlowMenu`、- `[data-manage-header]`、`[data-immerse-host]`、`[data-settings-host]`、`#drawerScroll`),组件直接画成它的+ `openResidentSurface(name, container, place?)` 打开一次(沉浸模式、设置面板与舞台在第一次打开时,其余几座在壳+ 启动时):没有首屏取数,一直算当前页,宿主就是那个常驻节点本身(`[data-batch-dock]`、`#boardGlowMenu`、+ `[data-manage-header]`、`[data-immerse-host]`、`[data-settings-host]`、`#drawerScroll`、`[data-stage-host]`),组件直接画成它的子节点,DOM 和各自建根时一样,不包 `.peach-react`。壳照旧经命令式句柄说话:组件订阅自己模块里的 store,句柄写 store 再 `flushSync` 通知,返回时已经画好;`loadXxx` 等这一面画上才交出句柄。宿主里先有壳的启动骨架时(管理区页头、侧栏),`openResidentSurface` 的 `place` 在画首帧的- 同一个任务里清掉骨架,句柄交出之前骨架上的点击归壳;宿主不在壳的页面里时(沉浸模式),`loadImmerse` 新建- `[data-immerse-host]`,`place` 在画首帧(藏着的外框)的同一个任务里把它挂到 body 末尾。沉浸的句柄+ 同一个任务里清掉骨架,句柄交出之前骨架上的点击归壳;宿主不在壳的页面里时(沉浸模式、舞台),`loadImmerse` 与+ `loadStage` 新建 `[data-immerse-host]` 与 `[data-stage-host]`,`place` 在画首帧(沉浸是藏着的外框,舞台是藏着的+ 小窗)的同一个任务里把它挂到 body 末尾。沉浸的句柄`open(startId)` 里骨架、列表与播放器那几次绘制都在返回前画完;方向键、改窗口大小与离开页面的监听挂在模块上,不随组件卸掉。设置面板在第一次按齿轮时才装载:`loadSettingsPanel` 建一枚 `[data-settings-host]`,`place` 把它放进 `document.body` 末尾,路由树在同一个任务里画出收着的面板,之后开合只换 `hidden`;`open(section)` 写 store@@ -518,7 +521,7 @@ vendor 到 `web/vendor/` 的四个包(video.js、swiper、lucide-static、healReact 子树单独构建(`vite.react.config.ts`)。`peach-react.js` 由 `islands.ts` 动态加载:`loadRouter`、常驻面的 `loadSidebar`、`loadManageHeader`、`loadBatchDock`、`loadGlowPicker`、`loadImmerse`、-`loadSettingsPanel`,其余 `loadXxx`,+`loadSettingsPanel`、`loadStage`,其余 `loadXxx`,以及 `preloadManagedRoutes` 登记给第一次 `openManagedRoute` 的装载入口,全是同一个模块请求;`peach-react.css` 由 `index.html` 在旧样式表之前引入;`peach-ui.js` 只剩路由树的开收命令、常驻层的入口与遗留层的助手。`build.cssTarget` 对齐 Tailwind v4 的浏览器基线(Chrome 111、Firefox 128、Safari 16.4),oklch 颜色原样输出:目标再旧,lightningcss 会补diff --git a/frontend/src/history/managed.ts b/frontend/src/history/managed.tsindex 97337cc4d..9960d96aa 100644--- a/frontend/src/history/managed.ts+++ b/frontend/src/history/managed.ts@@ -9,7 +9,7 @@* 要一直画着;附属面由壳按各自的路由判据收,搜索下拉壳从不收。页面跟着这里登记的那一条走,不跟着* 地址匹配走:详情舞台压在页面上时地址是 `/item/:id`,页面要留着。*- * 常驻面(批量条、配色卡、管理区页头、沉浸模式、设置面板、侧栏)不跟某一页走,经 `openResidentSurface` 打开:+ * 常驻面(批量条、配色卡、管理区页头、沉浸模式、设置面板、侧栏、舞台)不跟某一页走,经 `openResidentSurface` 打开:* 没有首屏取数、一直算当前页,宿主就是那个常驻节点。它们从不收;只有错误边界会卸掉它的组件,而且只卸组件、* 不撤宿主。*diff --git a/frontend/src/islands.ts b/frontend/src/islands.tsindex 2ac948f6b..996f4cbae 100644--- a/frontend/src/islands.ts+++ b/frontend/src/islands.ts@@ -45,13 +45,21 @@ export function showToast(export { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, relayoutJavImages, syncJavImages } from './jav-artwork';-/* 舞台岛(`react/stage/`):详情浮窗、两座详情、播放器与小窗都在 `@peach/react` 里,壳只拿命令式- * 入口。第一次打开详情时才装载 React 包、接上宿主;之后 `stageApi()` 同步可取,包还没装载时是- * null——那时舞台必然没开,小窗也不在。 */+/* 舞台(`react/stage/`,常驻面 `stage`):详情浮窗、两座详情、播放器与小窗都在 `@peach/react` 里,壳只拿+ * 命令式入口。第一次打开详情时才装载 React 包、接上宿主(先接播放器),建好宿主 `[data-stage-host]`、在路由树里+ * 打开这一面:宿主在画出小窗节点的同一个任务里挂到 body 末尾,画上之后句柄才交出去。从那一刻起 `stageApi()`+ * 同步可取;包还没装载时是 null——那时舞台必然没开,小窗也不在。 */let stage: Promise<ReactBundle.StageApi> | null = null;let stageReady: ReactBundle.StageApi | null = null;export function loadStage(host: ReactBundle.StageHost): Promise<ReactBundle.StageApi> {- stage ??= import('@peach/react').then((bundle) => { stageReady = bundle.configureStage(host); return stageReady });+ stage ??= import('@peach/react').then(async (bundle) => {+ const api = bundle.configureStage(host);+ const container = document.createElement('div');+ container.dataset.stageHost = '';+ await openResidentSurface('stage', container, (node) => { document.body.append(node); return node });+ stageReady = api;+ return api;+ });return stage;}export const stageApi = (): ReactBundle.StageApi | null => stageReady;diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.tsindex ea76a4877..bb29bcfec 100644--- a/frontend/src/react/bundle.d.ts+++ b/frontend/src/react/bundle.d.ts@@ -472,7 +472,8 @@ export interface ToastRequest {export type { StageApi, StageHost, StagePatch, StageRequest } from './stage/stage-api';-/** 接上壳给的宿主,拿回舞台岛的命令式入口(`stage/stage.tsx`)。只调一次。 */+/** 接上壳给的宿主,拿回舞台的命令式入口(`stage/stage.tsx`)。只调一次;这一面由 `islands.ts` 的+ * `loadStage` 接着经常驻表的 `openResidentSurface` 在路由树里打开。 */export declare function configureStage(host: StageHost): StageApi;export type {diff --git a/frontend/src/react/follow-feed/follow-feed-page.tsx b/frontend/src/react/follow-feed/follow-feed-page.tsxindex d3934b532..24e09d78e 100644--- a/frontend/src/react/follow-feed/follow-feed-page.tsx+++ b/frontend/src/react/follow-feed/follow-feed-page.tsx@@ -113,7 +113,9 @@ export function FollowFeedPage(props: FollowFeedProps) {const listPending = result.isPending || result.isPlaceholderData;/* 侧栏仍在壳里:每取到本键自己的数据就把可见条目的标签计数、全库口径的来源与时长有无交回去,- 换键时暂借的占位数据不交。来源按全库列:选中一个之后别的还在,才切得回去。 */+ 换键时暂借的占位数据不交。来源按全库列:选中一个之后别的还在,才切得回去。+ 交回排到微任务里:壳收到后画侧栏,侧栏的句柄内部 `flushSync`,在提交阶段里画不出来。+ 这一次的抽屉已被下一次取代或页面已卸下就不交。 */const settled = !listPending && !!data;const drawer = useMemo<FollowDrawer>(() => ({tags: sidebarTagCounts(facets.visible.flatMap(collectionItems).map((item) => ({ tags: item.tags || [] }))),@@ -121,7 +123,10 @@ export function FollowFeedPage(props: FollowFeedProps) {duration: !!data?.facets?.duration,}), [facets.visible, facets.providers, data]);useEffect(() => {- if (settled) actions.loaded(drawer);+ if (!settled) return;+ let live = true;+ queueMicrotask(() => { if (live) actions.loaded(drawer) });+ return () => { live = false };}, [settled, drawer, actions]);const job = useFollowJob(props, !!data);diff --git a/frontend/src/react/providers.tsx b/frontend/src/react/providers.tsxindex fb16846b9..d71db2882 100644--- a/frontend/src/react/providers.tsx+++ b/frontend/src/react/providers.tsx@@ -1,6 +1,6 @@/* 每一棵 React 根外面的那三层:共享 QueryClient、Motion 的减弱动效与弹出层容器。*- * 页面岛(`entry.tsx` 的 `mounter`)与常驻的舞台岛(`stage/stage.tsx`)都包这一份:舞台里的两座+ * 路由树的根(`router/router.tsx`)包这一份,页面、附属面与常驻面(舞台在内)都画在这棵树里:舞台里的两座* 详情和目录网格读同一个缓存,从列表点进详情时卡片已经在缓存里。 */import type { ReactNode } from 'react';import { QueryClientProvider } from '@tanstack/react-query';diff --git a/frontend/src/react/router/managed-routes.tsx b/frontend/src/react/router/managed-routes.tsxindex db27fbc9c..b9e0895a4 100644--- a/frontend/src/react/router/managed-routes.tsx+++ b/frontend/src/react/router/managed-routes.tsx@@ -58,6 +58,7 @@ import { prefetchConfiguration } from '../settings/configuration';import { ConfigurationPage } from '../settings/configuration-page';import { SettingsPanelSurface } from '../settings-panel/settings-panel';import { SidebarSurface } from '../sidebar/sidebar-island';+import { StageSurface } from '../stage/stage';import { prefetchStats } from '../stats/stats';import { StatsPage } from '../stats/stats-page';import { DEFAULT_WINDOW, prefetchTaste } from '../taste/taste';@@ -280,8 +281,9 @@ const isSurfaceName = (key: string): key is SurfaceName => Object.hasOwn(SURFACE/* 常驻面,按名字登记:壳启动时经 `openResidentSurface` 各开一次,一直算当前页,没有首屏取数,宿主就是壳的那个节点。从不收,只有错误边界会卸它的组件,宿主照旧留在文档里。打开不带 props:壳经命令式句柄推内容,组件订阅自己模块里的 store,句柄里的绘制同步做完。管理区页头与侧栏的宿主里先有壳的启动骨架,打开时由- `place` 在画出首帧的同一个任务里清掉;沉浸的宿主不在壳的页面里,第一次打开时新建,由 `place` 在画出首帧的- 同一个任务里挂到 body 末尾;设置面板的宿主在第一次打开时才有,由 `place` 在同一个任务里放进 body 末尾。 */+ `place` 在画出首帧的同一个任务里清掉;沉浸与舞台的宿主不在壳的页面里,第一次打开时新建,由 `place` 在画出首帧+ (沉浸是藏着的外框,舞台是小窗节点)的同一个任务里挂到 body 末尾;设置面板的宿主在第一次打开时才有,由 `place`+ 在同一个任务里放进 body 末尾。 */export const RESIDENT_ROUTES: ResidentRouteTable = {'batch-dock': {prefetch: async () => {},@@ -307,6 +309,10 @@ export const RESIDENT_ROUTES: ResidentRouteTable = {prefetch: async () => {},page: () => <SidebarSurface />,},+ stage: {+ prefetch: async () => {},+ page: () => <StageSurface />,+ },};const isResidentName = (key: string): key is ResidentName => Object.hasOwn(RESIDENT_ROUTES, key);/** 画着 `#grid` 那两页时地址可能落在的路径:首页、三个筛选态、回收站与垃圾文件。只进 `<Routes>` 的声明,diff --git a/frontend/src/react/router/router.tsx b/frontend/src/react/router/router.tsxindex 4fd41d3d4..855f34d81 100644--- a/frontend/src/react/router/router.tsx+++ b/frontend/src/react/router/router.tsx@@ -1,7 +1,7 @@/* 客户端导航(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`:它的更新diff --git a/frontend/src/react/router/shell-actions.ts b/frontend/src/react/router/shell-actions.tsindex ee11ef7b6..b61ba2600 100644--- a/frontend/src/react/router/shell-actions.ts+++ b/frontend/src/react/router/shell-actions.ts@@ -149,8 +149,9 @@ export type SurfaceName = keyof SurfaceOpenProps;/** 常驻面,按名字登记、宿主就是那个常驻节点:底部批量条(`[data-batch-dock]`)、侧栏配色卡(`#boardGlowMenu`)、* 管理区页头(`[data-manage-header]`)、沉浸模式(body 末尾的 `[data-immerse-host]`)、设置面板- * (`[data-settings-host]`,第一次打开时放进 body 末尾)与侧栏(`#drawerScroll`)。打开时不带 props- * (`openResidentSurface`),内容由壳经各自的命令式句柄推进组件自己的 store。 */+ * (`[data-settings-host]`,第一次打开时放进 body 末尾)、侧栏(`#drawerScroll`)与舞台(body 末尾的+ * `[data-stage-host]`,第一次打开详情时放进去)。打开时不带 props(`openResidentSurface`),内容由壳经各自的+ * 命令式句柄推进组件自己的 store。 */export interface ResidentOpenProps {'batch-dock': Record<string, never>;'glow-picker': Record<string, never>;@@ -158,6 +159,7 @@ export interface ResidentOpenProps {immerse: Record<string, never>;'settings-panel': Record<string, never>;sidebar: Record<string, never>;+ stage: Record<string, never>;}export type ResidentName = keyof ResidentOpenProps;diff --git a/frontend/src/react/stage/miniplayer.tsx b/frontend/src/react/stage/miniplayer.tsxindex 198dd175b..2e492373c 100644--- a/frontend/src/react/stage/miniplayer.tsx+++ b/frontend/src/react/stage/miniplayer.tsx@@ -1,4 +1,4 @@-/* 小窗:舞台岛同一棵根里、`<dialog>` 之外的那块浮层。播放器实例由 `stage-player.ts` 搬进搬出,+/* 小窗:舞台这一面里、`<dialog>` 之外的那块浮层。播放器实例由 `stage-player.ts` 搬进搬出,* 播放态、时间与比例也由它随播放器事件直接写在节点上;这里只画一次骨架结构、接按键与拖动。* 组件不随舞台重画(`memo` 且没有 props):`hidden`、`data-corner` 与 `transform` 都是命令式改的,* 重画会把它们按初值写回去。 */diff --git a/frontend/src/react/stage/stage.tsx b/frontend/src/react/stage/stage.tsxindex 321f4f578..c718ce3cf 100644--- a/frontend/src/react/stage/stage.tsx+++ b/frontend/src/react/stage/stage.tsx@@ -1,14 +1,18 @@-/* 舞台岛(ADR-0031 第 11a 步):详情浮窗 `<dialog id="stage">`、它的进出场、骨架与揭示、两座详情、- * 播放器与小窗都在这一棵根里。+/* 舞台(ADR-0031 第 11a 步):详情浮窗 `<dialog id="stage">`、它的进出场、骨架与揭示、两座详情、+ * 播放器与小窗都在这一面里。*- * 宿主是 body 末尾一个常驻容器,一棵根常驻;壳只拿 `configureStage` 给的命令式入口(形同图片灯箱- * 与 Toast),不进路由树(`openManagedRoute`):那一套是给壳的页面容器用的,容器归壳、换页就被整块重写,而舞台- * 盖在所有页面之上,小窗还要在换页之后接着放。+ * 常驻面 `stage`(`router/managed-routes.tsx` 的常驻表):路由树把它画进 body 末尾的常驻宿主+ * `[data-stage-host]`,宿主就是那个节点本身、不包 `.peach-react`,第一次打开详情时由 `islands.ts` 的+ * `loadStage` 建好、在画出小窗节点的同一个任务里挂进文档。舞台盖在所有页面之上,小窗要在换页之后接着放,+ * 所以宿主不跟某一页走。壳只拿 `configureStage` 给的命令式入口:句柄写本模块的 store 再 `flushSync` 通知,+ * `open`(含原地换条)、`update` 与 `dispose` 里每一次绘制都在返回之前画完,紧跟着读 DOM 的代码(骨架量尺寸、+ * `showModal`、标题揭示、焦点交给关闭键)读到的就是刚画好的结构。*- * 每次 `open` 换一枚 `generation`:dialog 按它重建,取数回来时代次不对就作废。两座详情是舞台树里的- * 子组件,和页面岛共用同一个 QueryClient(`providers.tsx`)。 */-import { useLayoutEffect, useRef, type MouseEvent, type PointerEvent } from 'react';-import { createRoot, type Root } from 'react-dom/client';+ * 每次 `open` 换一枚 `generation`,取数回来时代次不对就作废;重开时 dialog 按它重建,原地换条沿用原来那个。+ * 两座详情是这一面的子组件,和页面共用路由树的 QueryClient(`providers.tsx`)。两座详情画出来时报给壳的 `present` 排到微任务里:壳收到后+ * 会画侧栏与顶栏,那几座常驻面的句柄内部 `flushSync`,在路由树的提交阶段里画不出来。微任务在浏览器绘制前+ * 跑完;那一条已经换走(原地换条或重开)或舞台已经收起就不报。 */+import { useLayoutEffect, useRef, useSyncExternalStore, type MouseEvent, type PointerEvent } from 'react';import { flushSync } from 'react-dom';import { detailPosterUrl, releaseHoverPreviews } from '@peach/card-art';@@ -20,7 +24,6 @@ import { prefetchFollowDetail, type FollowDetailActions, type FollowDetailPropsimport { FollowDetailPage } from '../follow-detail/follow-detail-page';import { prefetchItemDetail, type ItemDetailActions, type ItemDetailProps } from '../item-detail/item-detail';import { ItemDetailPage } from '../item-detail/item-detail-page';-import { Providers } from '../providers';import { Miniplayer } from './miniplayer';import * as player from './stage-player';import type { StageApi, StageHost, StagePatch, StageRequest } from './stage-api';@@ -41,9 +44,8 @@ interface View {}let host: StageHost | null = null;-let root: Root | null = null;-let container: HTMLElement | null = null;let view: View | null = null;+const listeners = new Set<() => void>();let generation = 0;let controller: AbortController | null = null;/* 关闭键、Escape、点浮窗外面与原生 `cancel` 可能在同一下里各来一次:退场动画期间再要一次,@@ -63,20 +65,18 @@ function stageHost(): StageHost {return host;}-function stageRoot(): Root {- if (!root || !container?.isConnected) {- root?.unmount();- container = document.createElement('div');- container.dataset.stageHost = '';- document.body.append(container);- root = createRoot(container);- }- return root;+function subscribe(listener: () => void): () => void {+ listeners.add(listener);+ return () => { listeners.delete(listener) };+}++function notify(): void {+ for (const listener of [...listeners]) listener();}+/* 返回时已经画完。这一面抛错、被错误边界卸掉之后没人订阅,`view` 照旧写进 store,不画、不抛。 */function paint(): void {- const at = stageRoot();- flushSync(() => at.render(<Providers><StageTree view={view} /></Providers>));+ flushSync(notify);}function StageTree({ view: current }: { view: View | null }) {@@ -163,6 +163,8 @@ function contentFor(request: StageRequest): Content {return hit;};const settings = () => stageHost().player.settings();+ /* 原地换条沿用原来的代次(dialog 不重建),所以按这一次打开的 request 认:换条与重开都换一份新的。 */+ const live = () => view?.request === request;if (request.kind === 'item') {const { kind: _kind, resume: _resume, actions: base, ...props } = request;const actions: ItemDetailActions = {@@ -173,7 +175,7 @@ function contentFor(request: StageRequest): Content {player.setStageMeta({ kind: 'item', item, title: String(item.title || item.name || ''),sub: String(performers?.[0] || item.creator || '未归属') });toggleStageModes(settings().ambientMode, settings().theaterMode);- base.present(item, queue);+ queueMicrotask(() => { if (live()) base.present(item, queue) });},mountPlayer: (frame, item, _media, options) => player.attachStagePlayer(frame, {kind: 'item', item, autoplay: options?.autoplay, resume: takeResume(item.id), id: 'vid',@@ -188,7 +190,7 @@ function contentFor(request: StageRequest): Content {present: (item, kind) => {player.setStageMeta({ kind: 'follow', item, title: item.title || '', sub: item.author || item.source_label || '' });toggleStageModes(kind === 'video' && settings().ambientMode, kind === 'video' && settings().theaterMode);- base.present(item, kind);+ queueMicrotask(() => { if (live()) base.present(item, kind) });},mountPlayer: (frame, item, media, options) => player.attachStagePlayer(frame, {kind: 'follow', item, media, poster: item.thumb_url || undefined, onError: options.onError, resume: takeResume(item.id),@@ -365,10 +367,16 @@ const api: StageApi = {miniplayerPlay: (id) => { void player.miniplayerPlay(id) },};-/** 接上壳给的宿主,拿回舞台的命令式入口。小窗的节点随根一起画出来,第一次进小窗之前就在。 */+/** 接上壳给的宿主,拿回舞台的命令式入口。先接播放器;小窗的节点在路由树打开这一面时画出来,第一次进小窗+ * 之前就在。 */export function configureStage(next: StageHost): StageApi {host = next;player.configureStagePlayer(next, { isOpen: () => !!view, requestClose });- paint();return api;}++/** 常驻面 `stage` 的组件:订阅本模块的 store。小窗节点无条件画着,播放器搬进搬出都命令式地落在它里面。 */+export function StageSurface() {+ const at = useSyncExternalStore(subscribe, () => view);+ return host ? <StageTree view={at} /> : null;+}diff --git a/frontend/test/react/stage.test.tsx b/frontend/test/react/stage.test.tsxnew file mode 100644index 000000000..0e103b8c7--- /dev/null+++ b/frontend/test/react/stage.test.tsx@@ -0,0 +1,293 @@+/* 详情舞台作为常驻面(`RESIDENT_ROUTES.stage`)在路由树里的行为:宿主是 body 末尾的 `[data-stage-host]`、+ * 画上之后才交出句柄、小窗节点在句柄交出时已经画好、`open` 里的几次绘制同步画完、换详情不换宿主、抛错只卸+ * 组件而句柄照调不抛。+ *+ * 每条用例照壳的启动顺序走一遍:重新装载模块、画路由树、接上取数,再经 `islands.ts` 的 `loadStage` 拿句柄。+ * 播放器换成一个记账的替身:这里看的是舞台这一面怎么画、什么时候交出句柄,真 Video.js、进出场与小窗的交接+ * 由 e2e 在浏览器里走一遍(`e2e/stage.test.ts`),播放器在两个位置之间的交接在 `stage-player.test.ts`。 */+import { act } from 'react';+import { createRoot } from 'react-dom/client';+import { afterEach, beforeAll, beforeEach, describe, expect, it, vi, type Mock } from 'vitest';++import type { BatchDockApi, BatchDockHost } from '../../src/react/batch-dock/batch-dock-api';+import type { DetailItem, ItemDetailHelpers, ItemDetailProps } from '../../src/react/item-detail/item-detail';+import type { ShellActions } from '../../src/react/router/shell-actions';+import type { StageApi, StageHost, StageItemRequest } from '../../src/react/stage/stage-api';++// 首次导入会编译路由表带进来的整棵页面子树,编译等待使用独立的有限窗口;之后每条用例重新装载只重跑模块。+const REACT_IMPORT_TIMEOUT_MS = 30_000;++type ActFlag = { IS_REACT_ACT_ENVIRONMENT?: boolean };++beforeAll(async () => { await import('../../src/react/router/router') }, REACT_IMPORT_TIMEOUT_MS);++const player = vi.hoisted(() => ({ mounted: [] as HTMLVideoElement[] }));++vi.mock('../../src/player', async (importOriginal) => {+ const actual = await importOriginal<typeof import('../../src/player')>();+ return {+ ...actual,+ cancelDetailStream: vi.fn(),+ mountPlayer: (video: HTMLVideoElement) => {+ player.mounted.push(video);+ return () => {};+ },+ };+});++/* ── 假服务端 ── */++const detail = (id: number): DetailItem => ({+ id, name: `sample_${id}.mp4`, title: `作品 ${id}`, location: 'local', cost: 'free', size: 1024, duration: 3600,+ rating: 60, performers: ['七海ひな'], tags: [{ k: '剧情' }],+} as DetailItem);++function serve() {+ const fetcher = vi.fn(async (url: string) => {+ const id = Number(/^\/api\/item\?id=(\d+)/.exec(url)?.[1]);+ if (id) return { ok: true, status: 200, json: async () => detail(id) };+ return { ok: false, status: 404, json: async () => ({}) };+ });+ vi.stubGlobal('fetch', fetcher);+ return fetcher;+}++/* ── 宿主与请求 ── */++function makeHost(): StageHost {+ const settings = {+ ambientMode: false, theaterMode: false, seekSeconds: 10, miniplayer: true, detailAutoplay: false, javImage: 'cover',+ };+ return {+ player: {+ settings: () => settings, saveSettings: vi.fn(), toast: vi.fn(), loadSourceStatus: vi.fn(async () => ({})),+ offlineReason: () => '盘没挂上',+ },+ sourceOffline: () => false,+ expand: vi.fn(),+ openItem: vi.fn(),+ };+}++function helpers(patch: Partial<ItemDetailHelpers> = {}): ItemDetailHelpers {+ return {+ badgeHtml: () => '', titleHtml: (shown) => String(shown.name), displayName: (shown) => String(shown.name),+ javImage: () => 'cover',+ tagLabel: (tag) => tag, isDurationTag: () => false, tagCandidates: () => [], sourceOffline: () => false,+ offlineReason: () => '盘没挂上', relatedSkeletonHtml: () => '', mixRelated: async () => [], wireDrag: vi.fn(),+ wireDragReorder: vi.fn(), ...patch,+ };+}++type RequestActions = StageItemRequest['actions'];+function actions(): { [K in keyof RequestActions]: Mock<RequestActions[K]> } {+ return {+ close: vi.fn(), present: vi.fn(), redirect: vi.fn(), openQueueItem: vi.fn(), reopen: vi.fn(),+ checkSource: vi.fn(async () => false), openSavedFollow: vi.fn(), openEntity: vi.fn(), openUnowned: vi.fn(), openRegion: vi.fn(),+ openTag: vi.fn(), addToPlaylist: vi.fn(), saveMix: vi.fn(), editPlaylist: vi.fn(), openPlaylists: vi.fn(),+ reveal: vi.fn(async () => ''), sync: vi.fn(async () => ({ text: '', removed: [] })), trashChanged: vi.fn(async () => {}),+ toast: vi.fn(), failure: vi.fn(),+ };+}++function request(id: number, patch: Partial<StageItemRequest> = {}): StageItemRequest {+ return {+ kind: 'item', id, queue: null, relatedLimit: 0, helpers: helpers(), actions: actions(),+ grid: { helpers: {} as ItemDetailProps['grid']['helpers'], actions: {} as ItemDetailProps['grid']['actions'] },+ layout: {} as ItemDetailProps['layout'], selectMode: false, selected: new Set(), seekSeconds: 10, ...patch,+ };+}++/* 壳那一侧的 `islands.ts` 按 `@peach/react` 引产物;React 子树的类型配置不映射这个名字,所以这里不让类型检查+ 跟进去,只按壳用的几个入口取。运行时 Vitest 把它指到 `entry.tsx`。 */+type ShellIslands = {+ loadStage(host: StageHost): Promise<StageApi>;+ stageApi(): StageApi | null;+ loadBatchDock(host: BatchDockHost): Promise<BatchDockApi>;+};+const ISLANDS_MODULE = '../../src/islands';++async function load() {+ vi.resetModules();+ window.history.replaceState(null, '', '/');+ const [history, router, routes, islands] = await Promise.all([+ import('../../src/history'), import('../../src/react/router/router'), import('../../src/react/router/managed-routes'),+ import(/* @vite-ignore */ ISLANDS_MODULE) as Promise<ShellIslands>,+ ]);+ return { ...history, ...router, ...routes, islands };+}+type Loaded = Awaited<ReturnType<typeof load>>;++function shellActions(): ShellActions {+ return {+ openItem: vi.fn(), openEntity: vi.fn(), openTag: vi.fn(), openTasteSignal: vi.fn(), navigate: vi.fn(),+ openManage: vi.fn(), managePath: vi.fn(() => ''), openFollow: vi.fn(), receipt: vi.fn(), toast: vi.fn(),+ failure: vi.fn(), revealSource: vi.fn(async () => ''), reopenTutorial: vi.fn(async () => {}),+ requestConfigurationSection: vi.fn(), routeReview: vi.fn(),+ routeFollowManage: vi.fn(), saveFollowPreference: vi.fn(), srcBadge: () => '', routeIndex: vi.fn(),+ savePeopleLayout: vi.fn(), exitSelectMode: vi.fn(), personAvatar: vi.fn(() => ({ html: '', face: '' })),+ authorAvatar: vi.fn(() => ''), showIndexTags: vi.fn(), openFollowAuthor: vi.fn(), openFollowTag: vi.fn(),+ openPlaylist: vi.fn(), canFlip: vi.fn(() => true),+ };+}++const unmounts: Array<() => void> = [];++/** 壳启动时先画路由树(根的选项与 `configureRouter` 同一份);接上取数单独一步,用例可以把它往后放。 */+async function mountRouter(r: Loaded) {+ const tree = createRoot(document.createElement('div'), r.ROUTER_ROOT_OPTIONS);+ await act(async () => { tree.render(<r.RouterRoot actions={shellActions()} />) });+ unmounts.push(() => tree.unmount());+}+async function connect(r: Loaded) {+ await act(async () => { r.connectManagedRoutes(Promise.resolve(r.prefetchManagedRoute)) });+}++/** 收下每一次上报;`console.error` 只静音,不数条数。 */+function watchReports() {+ const reported = vi.fn();+ vi.stubGlobal('reportError', reported);+ vi.spyOn(console, 'error').mockImplementation(() => {});+ return reported;+}++const stageHostOf = (r: Loaded) => r.managedEntries().find((entry) => entry.path === 'stage')?.container as HTMLElement;+const q = <T extends Element = HTMLElement>(selector: string) => document.querySelector<T>(selector);++let loaded: Loaded;+let api: StageApi;++/* 照壳的 `openItem` 接上:路由树已经画着、接上了取数,第一次打开详情时装载并拿到句柄。 */+beforeEach(async () => {+ player.mounted = [];+ loaded = await load();+ await mountRouter(loaded);+ await connect(loaded);+ await act(async () => { api = await loaded.islands.loadStage(makeHost()) });+});++afterEach(async () => {+ (globalThis as ActFlag).IS_REACT_ACT_ENVIRONMENT = true;+ act(() => api.dispose({ miniplayer: false }));+ for (const unmount of unmounts.splice(0)) await act(async () => { unmount() });+ document.body.replaceChildren();+});++describe('常驻面', () => {+ it('画上之后句柄才交出;宿主是 body 末尾的 [data-stage-host],里面直接是藏着的小窗,不包 .peach-react', async () => {+ const r = await load();+ await mountRouter(r);+ let loading: Promise<StageApi> | null = null;+ await act(async () => { loading = r.islands.loadStage(makeHost()) });+ expect(r.islands.stageApi(), '路由树还没接上取数,句柄不交出').toBeNull();+ expect(stageHostOf(r), '这一面还没画上').toBeUndefined();++ await connect(r);+ let handed: StageApi | null = null;+ await act(async () => { handed = await loading });+ expect(r.islands.stageApi()).toBe(handed);+ const container = stageHostOf(r);+ expect(container.hasAttribute('data-stage-host')).toBe(true);+ expect(container.parentElement).toBe(document.body);+ expect(document.body.lastElementChild).toBe(container);+ expect([...container.children].map((el) => el.id), '句柄交出时小窗节点已经在,舞台还没开').toEqual(['miniplayer']);+ expect((container.firstElementChild as HTMLElement).hidden).toBe(true);+ expect(container.querySelector('.peach-react')).toBeNull();+ expect(container.closest('.peach-react')).toBeNull();+ expect(handed!.isOpen()).toBe(false);+ });++ it('open 里的每一次绘制都在句柄里画完:同步段里骨架与浮窗已经开着,返回时内容已画、焦点在关闭键上;换详情不换宿主', async () => {+ serve();+ const container = stageHostOf(loaded);+ const first = request(1);+ /* 不包 act:act 会把 flushSync 推到它结束时,看不出句柄自己同步没有。 */+ (globalThis as ActFlag).IS_REACT_ACT_ENVIRONMENT = false;+ const opening = api.open(first);+ const dialog = q<HTMLDialogElement>('#stage')!;+ expect(dialog.parentElement, '浮窗直接画在宿主里').toBe(container);+ expect(dialog.open, '同步段里已经 showModal').toBe(true);+ expect(dialog.querySelector(':scope > [data-skeleton="detail"]'), '同步段里骨架已经画上').not.toBeNull();+ expect(document.body.hasAttribute('data-detail-open')).toBe(true);+ expect(api.isOpen()).toBe(true);+ await opening;+ expect(dialog.querySelector('[data-stage-scroll] > .peach-react'), '返回时内容已经画完,不等下一次渲染').not.toBeNull();+ expect(q('#vid'), '媒体框交给舞台的播放器').toBe(player.mounted.at(-1));+ expect(document.activeElement?.id).toBe('closeStage');+ expect(first.actions.present, '画出来的那一条报给壳').toHaveBeenCalledTimes(1);+ expect(first.actions.present).toHaveBeenCalledWith(expect.objectContaining({ id: 1 }), null);++ const second = request(2);+ await api.open(second);+ expect(q('#stage'), '同一种详情开着时原地换条,浮窗不重建').toBe(dialog);+ expect(dialog.open).toBe(true);+ expect(dialog.querySelector('[data-stage-scroll] > .peach-react'), '返回时新的一条已经画完').not.toBeNull();+ expect(second.actions.present, '原地换上的那一条同样报给壳').toHaveBeenCalledTimes(1);+ expect(second.actions.present).toHaveBeenCalledWith(expect.objectContaining({ id: 2 }), null);+ expect(first.actions.present, '换走的那一条不再报').toHaveBeenCalledTimes(1);+ expect(stageHostOf(loaded)).toBe(container);+ expect(document.querySelectorAll('[data-stage-host]')).toHaveLength(1);+ expect([...container.children].map((el) => el.id)).toEqual(['stage', 'miniplayer']);++ api.dispose({ miniplayer: false });+ expect(q('#stage'), 'dispose 返回时浮窗已经拆掉').toBeNull();+ expect(document.body.hasAttribute('data-detail-open')).toBe(false);+ expect([...container.children].map((el) => el.id), '小窗节点留着').toEqual(['miniplayer']);++ await api.open(request(3));+ expect(q('#stage'), '拆掉之后再开按新的一代重建浮窗').not.toBe(dialog);+ expect(stageHostOf(loaded), '重开也是同一个宿主').toBe(container);+ expect([...container.children].map((el) => el.id)).toEqual(['stage', 'miniplayer']);+ });++ it('抛错只卸组件、宿主还在,body 上的打开标记留着,批量条照画;之后句柄各成员照调不抛', async () => {+ const reported = watchReports();+ const dockRoot = document.createElement('div');+ dockRoot.setAttribute('data-batch-dock', '');+ document.body.append(dockRoot);+ let dock!: BatchDockApi;+ await act(async () => { dock = await loaded.islands.loadBatchDock({ root: dockRoot, run: vi.fn() }) });+ serve();+ const container = stageHostOf(loaded);+ /* 内容画出来、侧栏画标签时抛。 */+ const broken = request(1, { helpers: helpers({ tagLabel: () => { throw new Error('标签画不出来') } }) });++ await act(async () => { await api.open(broken) });+ expect(reported).toHaveBeenCalledTimes(1);+ expect(reported).toHaveBeenCalledWith(expect.objectContaining({ message: '标签画不出来' }));+ expect(container.isConnected, '宿主不撤').toBe(true);+ expect(container.childNodes.length, '组件卸掉了,浮窗跟着消失').toBe(0);+ expect(q('#stage')).toBeNull();+ expect(loaded.managedTaken(container)).toBe(false);+ expect(loaded.managedEntries().map((entry) => entry.path), '别的面照画').toEqual(['batch-dock']);+ expect(document.body.hasAttribute('data-detail-open'), '卸组件不清 body 上的打开标记').toBe(true);+ expect(broken.actions.present, '没画出来的那一条不报').not.toHaveBeenCalled();++ act(() => {+ expect(api.isOpen()).toBe(true);+ expect(api.activeVideo()).toBeNull();+ expect(() => api.update({ selectMode: true })).not.toThrow();+ expect(() => api.toggleTheater()).not.toThrow();+ expect(() => api.toggleMiniplayer()).not.toThrow();+ expect(() => api.closeMiniplayer()).not.toThrow();+ expect(api.miniplayerActive()).toBe(false);+ expect(api.miniplayerTakesCard(detail(2))).toBe(false);+ expect(() => api.repaintPoster()).not.toThrow();+ expect(() => api.requestClose()).not.toThrow();+ });+ expect(broken.actions.close, '关闭请求照旧交给详情自己的 close').toHaveBeenCalledTimes(1);+ await act(async () => { await expect(api.exit()).resolves.toBeUndefined() });+ act(() => { expect(() => api.dispose({ miniplayer: false })).not.toThrow() });+ expect(api.isOpen()).toBe(false);+ expect(document.body.hasAttribute('data-detail-open')).toBe(false);+ await act(async () => { await expect(api.open(request(2))).resolves.toBeUndefined() });+ expect(api.isOpen()).toBe(true);+ act(() => { expect(() => api.miniplayerPlay(3)).not.toThrow() });+ act(() => { expect(() => api.dispose({ miniplayer: false })).not.toThrow() });+ expect(container.childNodes.length, '空到刷新为止,不自愈').toBe(0);+ expect(reported, '确定性抛错只报那一次').toHaveBeenCalledTimes(1);+ /* 批量条放在最后画:它的进场动画跑在 motion 的帧循环上,画完就收尾,卸树时不留进行中的动画。 */+ await act(async () => { dock.render({ count: 2, context: 'catalog', junkDismissed: false }) });+ expect(dockRoot.querySelector('[data-selection-dock] [role="status"]')?.textContent).toBe('已选 2 项');+ });+});diff --git a/web/dist/peach-react.js b/web/dist/peach-react.jsindex d4aef639e..3a0424566 100644--- a/web/dist/peach-react.js+++ b/web/dist/peach-react.js@@ -12441,7 +12441,7 @@ function Qte(e, t, n) {}};}-function $te(e) {+function ax(e) {let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, B.useRef)(null), c = (0, B.useRef)(null), { containerProps: l, selectProps: u } = Qte({...e,selectRef: t.collection.size <= 300 ? s : c@@ -12497,7 +12497,7 @@ function $te(e) {}//#endregion//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs-function ene(e) {+function $te(e) {let t = Eg(e, { labelable: !0 }), n;return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {...t,@@ -12507,7 +12507,7 @@ function ene(e) {}//#endregion//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs-function tne(e, t, n) {+function ene(e, t, n) {let { labelProps: r, inputProps: i, isSelected: a, ...o } = M_(e, t, n);return {labelProps: r,@@ -12522,10 +12522,10 @@ function tne(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs-var ax = class {+var ox = 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 nne(e.layout) : new Z_(e.ref)), this.focusMode = e.focusMode ?? "row";+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new tne(e.layout) : new Z_(e.ref)), this.focusMode = e.focusMode ?? "row";}isCell(e) {return e.type === "cell";@@ -12691,7 +12691,7 @@ var ax = class {}return null;}-}, nne = class {+}, tne = class {constructor(e) {this.layout = e;}@@ -12704,16 +12704,16 @@ var ax = class {getVisibleRect() {return this.layout.virtualizer.visibleRect;}-}, ox = /* @__PURE__ */ new WeakMap();+}, sx = /* @__PURE__ */ new WeakMap();//#endregion//#region node_modules/react-aria/dist/private/grid/useGrid.mjs-function rne(e, t, n) {+function nne(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 = Xv({usage: "search",sensitivity: "base"- }), { direction: g } = vg(), _ = t.selectionManager.disabledBehavior, v = (0, B.useMemo)(() => a || new ax({+ }), { direction: g } = vg(), _ = t.selectionManager.disabledBehavior, v = (0, B.useMemo)(() => a || new ox({collection: t.collection,disabledKeys: t.disabledKeys,disabledBehavior: _,@@ -12739,7 +12739,7 @@ function rne(e, t, n) {disallowTypeAhead: i,escapeKeyBehavior: d}), b = dh(e.id);- ox.set(t, {+ sx.set(t, {keyboardDelegate: v,actions: {onRowAction: l,@@ -12769,27 +12769,27 @@ function rne(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/table/utils.mjs-var sx = /* @__PURE__ */ new WeakMap();-function cx(e) {+var cx = /* @__PURE__ */ new WeakMap();+function lx(e) {return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;}-function ine(e, t) {- let n = sx.get(e);+function rne(e, t) {+ let n = cx.get(e);if (!n) throw Error("Unknown grid");- return `${n}-${cx(t)}`;+ return `${n}-${lx(t)}`;}-function lx(e, t, n) {- let r = sx.get(e);+function ux(e, t, n) {+ let r = cx.get(e);if (!r) throw Error("Unknown grid");- return `${r}-${cx(t)}-${cx(n)}`;+ return `${r}-${lx(t)}-${lx(n)}`;}-function ux(e, t) {- return [...e.collection.rowHeaderColumnKeys].map((n) => lx(e, t, n)).join(" ");+function dx(e, t) {+ return [...e.collection.rowHeaderColumnKeys].map((n) => ux(e, t, n)).join(" ");}//#endregion//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs-var dx = {};-dx = {+var fx = {};+fx = {ascending: "تصاعدي",ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,collapse: "طي",@@ -12804,8 +12804,8 @@ dx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs-var fx = {};-fx = {+var px = {};+px = {ascending: "възходящ",ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,collapse: "Свиване",@@ -12820,8 +12820,8 @@ fx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs-var px = {};-px = {+var mx = {};+mx = {ascending: "vzestupně",ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,collapse: "Sbalit",@@ -12836,8 +12836,8 @@ px = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs-var mx = {};-mx = {+var hx = {};+hx = {ascending: "stigende",ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,collapse: "Skjul",@@ -12852,8 +12852,8 @@ mx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs-var hx = {};-hx = {+var gx = {};+gx = {ascending: "aufsteigend",ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,collapse: "Reduzieren",@@ -12868,8 +12868,8 @@ hx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs-var gx = {};-gx = {+var _x = {};+_x = {ascending: "αύξουσα",ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,collapse: "Σύμπτυξη",@@ -12884,8 +12884,8 @@ gx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs-var _x = {};-_x = {+var vx = {};+vx = {select: "Select",selectAll: "Select All",sortable: "sortable column",@@ -12900,8 +12900,8 @@ _x = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs-var vx = {};-vx = {+var yx = {};+yx = {ascending: "ascendente",ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,collapse: "Contraer",@@ -12916,8 +12916,8 @@ vx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs-var yx = {};-yx = {+var bx = {};+bx = {ascending: "tõusev järjestus",ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,collapse: "Ahenda",@@ -12932,8 +12932,8 @@ yx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs-var bx = {};-bx = {+var xx = {};+xx = {ascending: "nouseva",ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,collapse: "Pienennä",@@ -12948,8 +12948,8 @@ bx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs-var xx = {};-xx = {+var Sx = {};+Sx = {ascending: "croissant",ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,collapse: "Réduire",@@ -12964,8 +12964,8 @@ xx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs-var Sx = {};-Sx = {+var Cx = {};+Cx = {ascending: "עולה",ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,collapse: "כווץ",@@ -12980,8 +12980,8 @@ Sx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs-var Cx = {};-Cx = {+var wx = {};+wx = {ascending: "rastući",ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,collapse: "Sažmi",@@ -12996,8 +12996,8 @@ Cx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs-var wx = {};-wx = {+var Tx = {};+Tx = {ascending: "növekvő",ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,collapse: "Összecsukás",@@ -13012,8 +13012,8 @@ wx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs-var Tx = {};-Tx = {+var Ex = {};+Ex = {ascending: "crescente",ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,collapse: "Comprimi",@@ -13028,8 +13028,8 @@ Tx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs-var Ex = {};-Ex = {+var Dx = {};+Dx = {ascending: "昇順",ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,collapse: "折りたたむ",@@ -13044,8 +13044,8 @@ Ex = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs-var Dx = {};-Dx = {+var Ox = {};+Ox = {ascending: "오름차순",ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,collapse: "접기",@@ -13060,8 +13060,8 @@ Dx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs-var Ox = {};-Ox = {+var kx = {};+kx = {ascending: "didėjančia tvarka",ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,collapse: "Sutraukti",@@ -13076,8 +13076,8 @@ Ox = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs-var kx = {};-kx = {+var Ax = {};+Ax = {ascending: "augošā secībā",ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,collapse: "Sakļaut",@@ -13092,8 +13092,8 @@ kx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs-var Ax = {};-Ax = {+var jx = {};+jx = {ascending: "stigende",ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,collapse: "Skjul",@@ -13108,8 +13108,8 @@ Ax = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs-var jx = {};-jx = {+var Mx = {};+Mx = {ascending: "oplopend",ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,collapse: "Samenvouwen",@@ -13124,8 +13124,8 @@ jx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs-var Mx = {};-Mx = {+var Nx = {};+Nx = {ascending: "rosnąco",ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,collapse: "Zwiń",@@ -13140,8 +13140,8 @@ Mx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs-var Nx = {};-Nx = {+var Px = {};+Px = {ascending: "crescente",ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,collapse: "Recolher",@@ -13156,8 +13156,8 @@ Nx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs-var Px = {};-Px = {+var Fx = {};+Fx = {ascending: "ascendente",ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,collapse: "Colapsar",@@ -13172,8 +13172,8 @@ Px = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs-var Fx = {};-Fx = {+var Ix = {};+Ix = {ascending: "crescătoare",ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,collapse: "Restrângeți",@@ -13188,8 +13188,8 @@ Fx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs-var Ix = {};-Ix = {+var Lx = {};+Lx = {ascending: "возрастание",ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,collapse: "Свернуть",@@ -13204,8 +13204,8 @@ Ix = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs-var Lx = {};-Lx = {+var Rx = {};+Rx = {ascending: "vzostupne",ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,collapse: "Zbaliť",@@ -13220,8 +13220,8 @@ Lx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs-var Rx = {};-Rx = {+var zx = {};+zx = {ascending: "naraščajoče",ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,collapse: "Strni",@@ -13236,8 +13236,8 @@ Rx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs-var zx = {};-zx = {+var Bx = {};+Bx = {ascending: "rastući",ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,collapse: "Skupi",@@ -13252,8 +13252,8 @@ zx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs-var Bx = {};-Bx = {+var Vx = {};+Vx = {ascending: "stigande",ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,collapse: "Dölj",@@ -13268,8 +13268,8 @@ Bx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs-var Vx = {};-Vx = {+var Hx = {};+Hx = {ascending: "artan sırada",ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,collapse: "Daralt",@@ -13284,8 +13284,8 @@ Vx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs-var Hx = {};-Hx = {+var Ux = {};+Ux = {ascending: "висхідний",ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,collapse: "Згорнути",@@ -13300,8 +13300,8 @@ Hx = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs-var Ux = {};-Ux = {+var Wx = {};+Wx = {ascending: "升序",ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,collapse: "折叠",@@ -13316,8 +13316,8 @@ Ux = {};//#endregion//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs-var Wx = {};-Wx = {+var Gx = {};+Gx = {ascending: "遞增",ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,collapse: "收合",@@ -13332,46 +13332,46 @@ Wx = {};//#endregion//#region node_modules/react-aria/dist/private/table/intlStrings.mjs-var Gx = {};-Gx = {- "ar-AE": dx,- "bg-BG": fx,- "cs-CZ": px,- "da-DK": mx,- "de-DE": hx,- "el-GR": gx,- "en-US": _x,- "es-ES": vx,- "et-EE": yx,- "fi-FI": bx,- "fr-FR": xx,- "he-IL": Sx,- "hr-HR": Cx,- "hu-HU": wx,- "it-IT": Tx,- "ja-JP": Ex,- "ko-KR": Dx,- "lt-LT": Ox,- "lv-LV": kx,- "nb-NO": Ax,- "nl-NL": jx,- "pl-PL": Mx,- "pt-BR": Nx,- "pt-PT": Px,- "ro-RO": Fx,- "ru-RU": Ix,- "sk-SK": Lx,- "sl-SI": Rx,- "sr-SP": zx,- "sv-SE": Bx,- "tr-TR": Vx,- "uk-UA": Hx,- "zh-CN": Ux,- "zh-TW": Wx+var Kx = {};+Kx = {+ "ar-AE": fx,+ "bg-BG": px,+ "cs-CZ": mx,+ "da-DK": hx,+ "de-DE": gx,+ "el-GR": _x,+ "en-US": vx,+ "es-ES": yx,+ "et-EE": bx,+ "fi-FI": xx,+ "fr-FR": Sx,+ "he-IL": Cx,+ "hr-HR": wx,+ "hu-HU": Tx,+ "it-IT": Ex,+ "ja-JP": Dx,+ "ko-KR": Ox,+ "lt-LT": kx,+ "lv-LV": Ax,+ "nb-NO": jx,+ "nl-NL": Mx,+ "pl-PL": Nx,+ "pt-BR": Px,+ "pt-PT": Fx,+ "ro-RO": Ix,+ "ru-RU": Lx,+ "sk-SK": Rx,+ "sl-SI": zx,+ "sr-SP": Bx,+ "sv-SE": Vx,+ "tr-TR": Hx,+ "uk-UA": Ux,+ "zh-CN": Wx,+ "zh-TW": Gx};//#endregion//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs-var ane = class extends ax {+var ine = class extends ox {isCell(e) {return e.type === "cell" || e.type === "rowheader" || e.type === "column";}@@ -13449,14 +13449,14 @@ var ane = class extends ax {};//#endregion//#region node_modules/react-aria/dist/private/table/useTable.mjs-function one(e) {+function ane(e) {return e && e.__esModule ? e.default : e;}-function sne(e, t, n) {+function one(e, t, n) {let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = Xv({usage: "search",sensitivity: "base"- }), { direction: c } = vg(), l = t.selectionManager.disabledBehavior, u = (0, B.useMemo)(() => r || new ane({+ }), { direction: c } = vg(), l = t.selectionManager.disabledBehavior, u = (0, B.useMemo)(() => r || new ine({collection: t.collection,disabledKeys: t.disabledKeys,disabledBehavior: l,@@ -13476,14 +13476,14 @@ function sne(e, t, n) {a,o]), d = dh(e.id);- sx.set(t, d);- let { gridProps: f } = rne({+ cx.set(t, d);+ let { gridProps: f } = nne({...e,id: d,keyboardDelegate: u}, t, n);i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");- let { column: p, direction: m } = t.sortDescriptor || {}, h = wg(one(Gx), "@react-aria/table"), g = (0, B.useMemo)(() => {+ let { column: p, direction: m } = t.sortDescriptor || {}, h = wg(ane(Kx), "@react-aria/table"), g = (0, B.useMemo)(() => {let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;}, [@@ -13497,13 +13497,13 @@ function sne(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs-function Kx(e, t, n) {- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = vg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = ox.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, B.useRef)(null), h = () => {+function qx(e, t, n) {+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = vg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = sx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, B.useRef)(null), h = () => {if (n.current) {let e = s_(n.current);if (p === "child") {if (jp(n.current) && n.current !== kp(vp(n.current))) return;- let r = t.selectionManager.childFocusStrategy === "last" ? qx(e) : e.firstChild();+ let r = t.selectionManager.childFocusStrategy === "last" ? Jx(e) : e.firstChild();if (r) {ih(r);return;@@ -13535,7 +13535,7 @@ function Kx(e, t, n) {n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));break;}- p === "cell" && l === "rtl" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : qx(a), t && (ih(t), v_(t, { containingElement: h_(n.current) })));+ p === "cell" && l === "rtl" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : Jx(a), t && (ih(t), v_(t, { containingElement: h_(n.current) })));}break;}@@ -13547,7 +13547,7 @@ function Kx(e, t, n) {n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));break;}- p === "cell" && l === "ltr" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? qx(a) : a.firstChild(), t && (ih(t), v_(t, { containingElement: h_(n.current) })));+ p === "cell" && l === "ltr" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? Jx(a) : a.firstChild(), t && (ih(t), v_(t, { containingElement: h_(n.current) })));}break;}@@ -13592,7 +13592,7 @@ function Kx(e, t, n) {isPressed: _};}-function qx(e) {+function Jx(e) {let t = null, n = null;don = e.lastChild(), n && (t = n);@@ -13601,20 +13601,20 @@ function qx(e) {}//#endregion//#region node_modules/react-aria/dist/private/table/useTableCell.mjs-function cne(e, t, n) {- let { gridCellProps: r, isPressed: i } = Kx(e, t, n), a = e.node.column?.key;- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = lx(t, e.node.parentKey, a)), {+function sne(e, t, n) {+ let { gridCellProps: r, isPressed: i } = qx(e, t, n), a = e.node.column?.key;+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = ux(t, e.node.parentKey, a)), {gridCellProps: r,isPressed: i};}//#endregion//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs-function lne(e) {+function cne(e) {return e && e.__esModule ? e.default : e;}-function une(e, t, n) {- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Kx({+function lne(e, t, n) {+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = qx({focusMode: "child",...e}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = zg({@@ -13625,7 +13625,7 @@ function une(e, t, n) {ref: n}), { focusableProps: l } = Lh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;r.props.allowsSorting && !im() && (u = d ? f : "none");- let p = wg(lne(Gx), "@react-aria/table"), m;+ let p = wg(cne(Kx), "@react-aria/table"), m;i && (m = `${p.format("sortable")}`, d && f && im() && (m = `${m}, ${p.format(f)}`));let h = b_(m), g = t.collection.size === 0;return (0, B.useEffect)(() => {@@ -13638,7 +13638,7 @@ function une(e, t, n) {columnHeaderProps: {...U(l, a, s, h, g ? { tabIndex: -1 } : null),role: "columnheader",- id: ine(t, r.key),+ id: rne(t, r.key),"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,"aria-sort": u},@@ -13647,14 +13647,14 @@ function une(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs-function dne(e, t, n) {+function une(e, t, n) {let { node: r, isVirtualized: i } = e, a = { role: "row" };return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };}//#endregion//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs-function fne(e, t, n) {- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = ox.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = qy({+function dne(e, t, n) {+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = sx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = qy({selectionManager: t.selectionManager,key: r.key,ref: n,@@ -13675,10 +13675,10 @@ function fne(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/table/useTableRow.mjs-function pne(e) {+function fne(e) {return e && e.__esModule ? e.default : e;}-var Jx = {+var Yx = {expand: {ltr: "ArrowRight",rtl: "ArrowLeft"@@ -13688,21 +13688,21 @@ var Jx = {rtl: "ArrowRight"}};-function mne(e, t, n) {- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = fne(e, t, n), { direction: s } = vg();+function pne(e, t, n) {+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = dne(e, t, n), { direction: s } = vg();i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = wg(pne(Gx), "@react-aria/table"), u = fg({+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = wg(fne(Kx), "@react-aria/table"), u = fg({"aria-label": c ? l.format("collapse") : l.format("expand"),- "aria-labelledby": ux(t, r.key)+ "aria-labelledby": dx(t, r.key)}), d = {}, f = {};if (t.treeColumn != null) {let e = t.collection.getItem(r.key);if (e != null) {- let n = Yx(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = Yx(t.collection, a);+ let n = Xx(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = Xx(t.collection, a);for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);d = {onKeyDown: (n) => {- n.key === Jx.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Jx.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));+ n.key === Yx.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Yx.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));},"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,"aria-level": e.level + 1,@@ -13724,41 +13724,41 @@ function mne(e, t, n) {return {rowProps: {...U(a, d, m),- "aria-labelledby": ux(t, r.key)+ "aria-labelledby": dx(t, r.key)},expandButtonProps: f,...o};}-function Yx(e, t) {+function Xx(e, t) {return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);}//#endregion//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs-function hne() {+function mne() {return { rowGroupProps: { role: "rowgroup" } };}//#endregion//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs-function Xx() {- return hne();+function Zx() {+ return mne();}//#endregion//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs-function gne(e) {+function hne(e) {return e && e.__esModule ? e.default : e;}-function _ne(e, t) {+function gne(e, t) {let { key: n } = e, { checkboxProps: r } = Tte(e, t);return { checkboxProps: {...r,- "aria-labelledby": `${r.id} ${ux(t, n)}`+ "aria-labelledby": `${r.id} ${dx(t, n)}`} };}-function vne(e) {+function _ne(e) {let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;return { checkboxProps: {- "aria-label": wg(gne(Gx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),+ "aria-label": wg(hne(Kx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),isSelected: n,isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",isIndeterminate: !t && !n,@@ -13767,13 +13767,13 @@ function vne(e) {}//#endregion//#region node_modules/react-aria/dist/private/tabs/utils.mjs-var Zx = /* @__PURE__ */ new WeakMap();-function Qx(e, t, n) {- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${Zx.get(e)}-${n}-${t}`) : "";+var Qx = /* @__PURE__ */ new WeakMap();+function $x(e, t, n) {+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${Qx.get(e)}-${n}-${t}`) : "";}//#endregion//#region node_modules/react-aria/dist/private/tabs/useTab.mjs-function yne(e, t, n) {+function vne(e, t, n) {let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = qy({selectionManager: o,key: r,@@ -13781,7 +13781,7 @@ function yne(e, t, n) {isDisabled: l,shouldSelectOnPressUp: a ?? u?.props.href != null,linkBehavior: "selection"- }), p = Qx(t, r, "tab"), m = Qx(t, r, "tabpanel"), { tabIndex: h } = d, g = Eg(u?.props, { labelable: !0 });+ }), p = $x(t, r, "tab"), m = $x(t, r, "tabpanel"), { tabIndex: h } = d, g = Eg(u?.props, { labelable: !0 });delete g.id;let _ = hm(u?.props), { focusableProps: v } = Lh({...u?.props,@@ -13803,7 +13803,7 @@ function yne(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs-var bne = class {+var yne = class {constructor(e, t, n, r = /* @__PURE__ */ new Set()) {this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";}@@ -13847,11 +13847,11 @@ var bne = class {};//#endregion//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs-function xne(e, t, n) {+function bne(e, t, n) {let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = vg(), { collectionProps: l } = Bv({ref: n,selectionManager: o,- keyboardDelegate: (0, B.useMemo)(() => new bne(a, c, r, s), [+ keyboardDelegate: (0, B.useMemo)(() => new yne(a, c, r, s), [a,s,r,@@ -13862,7 +13862,7 @@ function xne(e, t, n) {scrollRef: n,linkBehavior: "selection"}), u = dh();- return Zx.set(t, u), { tabListProps: {+ return Qx.set(t, u), { tabListProps: {...U(l, fg({...e,id: u@@ -13874,12 +13874,12 @@ function xne(e, t, n) {}//#endregion//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs-function Sne(e, t, n) {- let r = Gy(n) ? void 0 : 0, i = Qx(t, e.id ?? t?.selectedKey, "tabpanel");+function xne(e, t, n) {+ let r = Gy(n) ? void 0 : 0, i = $x(t, e.id ?? t?.selectedKey, "tabpanel");return { tabPanelProps: U(fg({...e,id: i,- "aria-labelledby": Qx(t, t?.selectedKey, "tab")+ "aria-labelledby": $x(t, t?.selectedKey, "tab")}), {tabIndex: r,role: "tabpanel",@@ -13889,12 +13889,12 @@ function Sne(e, t, n) {}//#endregion//#region src/react/components/selection-dock.tsx-var $x = "(prefers-reduced-motion: reduce)", Cne = () => matchMedia($x).matches, wne = (e) => {- let t = matchMedia($x);+var eS = "(prefers-reduced-motion: reduce)", Sne = () => matchMedia(eS).matches, Cne = (e) => {+ let t = matchMedia(eS);return t.addEventListener("change", e), () => t.removeEventListener("change", e);};-function Tne({ children: e, count: t, label: n }) {- let r = Ru(), i = (0, B.useSyncExternalStore)(wne, Cne, () => !1), { isFocusVisible: a } = Zm(), o = i || a, s = {+function wne({ children: e, count: t, label: n }) {+ let r = Ru(), i = (0, B.useSyncExternalStore)(Cne, Sne, () => !1), { isFocusVisible: a } = Zm(), o = i || a, s = {opacity: 0,transform: "translate(-50%, 8px)"};@@ -13930,18 +13930,18 @@ function Tne({ children: e, count: t, label: n }) {}), e]});}-function eS({ visible: e, ...t }) {- return /* @__PURE__ */ (0, V.jsx)(Hu, { children: e ? /* @__PURE__ */ (0, V.jsx)(Tne, { ...t }, "selection") : null });+function tS({ visible: e, ...t }) {+ return /* @__PURE__ */ (0, V.jsx)(Hu, { children: e ? /* @__PURE__ */ (0, V.jsx)(wne, { ...t }, "selection") : null });}//#endregion//#region src/react/batch-dock/batch-dock-api.ts-var tS = {+var nS = {group: "clear",operation: "clear",label: "取消",glyph: "x"};-function Ene(e, t = !1) {+function Tne(e, t = !1) {switch (e) {case "trash": return [{@@ -13957,7 +13957,7 @@ function Ene(e, t = !1) {glyph: "trash",danger: !0},- tS+ nS];case "junk": return [t ? {@@ -13978,7 +13978,7 @@ function Ene(e, t = !1) {glyph: "trash",danger: !0},- tS+ nS];case "follow": return [{@@ -13999,7 +13999,7 @@ function Ene(e, t = !1) {label: "忽略",glyph: "eye-off"},- tS+ nS];default: return [{@@ -14033,48 +14033,48 @@ function Ene(e, t = !1) {glyph: "trash",danger: !0},- tS+ nS];}}//#endregion//#region src/react/batch-dock/batch-dock-island.tsx-var nS = null, rS = {+var rS = null, iS = {count: 0,context: "catalog",junkDismissed: !1-}, iS = /* @__PURE__ */ new Set();-function Dne(e) {- return iS.add(e), () => {- iS.delete(e);+}, aS = /* @__PURE__ */ new Set();+function Ene(e) {+ return aS.add(e), () => {+ aS.delete(e);};}-function One() {- for (let e of [...iS]) e();+function Dne() {+ for (let e of [...aS]) e();}-var kne = { render(e) {- rS = e, (0, $f.flushSync)(One);+var One = { render(e) {+ iS = e, (0, $f.flushSync)(Dne);} };-function Ane(e) {- return nS = e, kne;+function kne(e) {+ return rS = e, One;}-function jne() {- let e = (0, B.useSyncExternalStore)(Dne, () => rS);- return nS ? /* @__PURE__ */ (0, V.jsx)(Mne, {- host: nS,+function Ane() {+ let e = (0, B.useSyncExternalStore)(Ene, () => iS);+ return rS ? /* @__PURE__ */ (0, V.jsx)(jne, {+ host: rS,props: e}) : null;}-function Mne({ host: e, props: t }) {+function jne({ host: e, props: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {className: "peach-react","data-batch-scope": "","data-context": t.context,- children: /* @__PURE__ */ (0, V.jsx)(eS, {+ children: /* @__PURE__ */ (0, V.jsx)(tS, {label: "所选项目操作",visible: t.count > 0,count: `已选 ${t.count} 项`,- children: Ene(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, V.jsxs)("button", {+ children: Tne(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-batch-group": t.group,"data-batch-action": t.operation,@@ -14091,7 +14091,7 @@ function Mne({ host: e, props: t }) {}//#endregion//#region src/react/components/glow-preset-grid.tsx-function aS({ store: e, label: t, hidden: n }) {+function oS({ store: e, label: t, hidden: n }) {let r = e.value.homeGlow;return /* @__PURE__ */ (0, V.jsx)("div", {"data-glow-grid": "",@@ -14117,14 +14117,14 @@ function aS({ store: e, label: t, hidden: n }) {}//#endregion//#region src/react/glow-picker/glow-picker-island.tsx-var oS = null;-function Nne(e) {- oS = e;+var sS = null;+function Mne(e) {+ sS = e;}-function Pne() {- return oS ? /* @__PURE__ */ (0, V.jsx)(Fne, { host: oS }) : null;+function Nne() {+ return sS ? /* @__PURE__ */ (0, V.jsx)(Pne, { host: sS }) : null;}-function Fne({ host: t }) {+function Pne({ host: t }) {let { store: n } = t;(0, B.useSyncExternalStore)(n.subscribe, n.version);let { homeGlow: r, accent: i } = n.value;@@ -14140,7 +14140,7 @@ function Fne({ host: t }) {children: "重置"})]}),- /* @__PURE__ */ (0, V.jsx)(aS, {+ /* @__PURE__ */ (0, V.jsx)(oS, {store: n,label: "光晕",hidden: !r.on@@ -14180,18 +14180,18 @@ function Fne({ host: t }) {}//#endregion//#region node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js-var sS = B.createContext(void 0), cS = (e) => {- let t = B.useContext(sS);+var cS = B.createContext(void 0), lS = (e) => {+ let t = B.useContext(cS);if (e) return e;if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");return t;-}, lS = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {+}, uS = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {e.unmount();-}), [e]), /* @__PURE__ */ (0, V.jsx)(sS.Provider, {+}), [e]), /* @__PURE__ */ (0, V.jsx)(cS.Provider, {value: e,children: t-})), Ine = ({ children: e, options: t = {}, state: n, queryClient: r }) => {- let i = cS(r), a = B.useRef(t);+})), Fne = ({ children: e, options: t = {}, state: n, queryClient: r }) => {+ let i = lS(r), a = B.useRef(t);B.useEffect(() => {a.current = t;});@@ -14209,10 +14209,10 @@ var sS = B.createContext(void 0), cS = (e) => {return B.useEffect(() => {o && y(i, { queries: o }, a.current);}, [i, o]), e;-}, uS = B.createContext(!1), dS = () => B.useContext(uS), Lne = uS.Provider;+}, dS = B.createContext(!1), fS = () => B.useContext(dS), Ine = dS.Provider;//#endregion//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js-function fS() {+function pS() {let e = !1;return {clearReset: () => {@@ -14224,31 +14224,31 @@ function fS() {isReset: () => e};}-var pS = B.createContext(fS()), mS = () => B.useContext(pS), Rne = ({ children: e }) => {- let [t] = B.useState(() => fS());- return /* @__PURE__ */ (0, V.jsx)(pS.Provider, {+var mS = B.createContext(pS()), hS = () => B.useContext(mS), Lne = ({ children: e }) => {+ let [t] = B.useState(() => pS());+ return /* @__PURE__ */ (0, V.jsx)(mS.Provider, {value: t,children: typeof e == "function" ? e(t) : e});-}, hS = (e, t, n) => {+}, gS = (e, t, n) => {let r = n?.state.error && typeof e.throwOnError == "function" ? C(e.throwOnError, [n.state.error, n]) : e.throwOnError;(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));-}, gS = (e) => {+}, _S = (e) => {B.useEffect(() => {e.clearReset();}, [e]);-}, _S = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || C(n, [e.error, r])), vS = (e, t) => t.state.data === void 0, yS = (e) => {+}, vS = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || C(n, [e.error, r])), yS = (e, t) => t.state.data === void 0, bS = (e) => {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));}-}, bS = (e, t) => e?.suspense && t.isPending, xS = (e, t, n) => t.fetchOptimistic(e).catch(() => {+}, xS = (e, t) => e?.suspense && t.isPending, SS = (e, t, n) => t.fetchOptimistic(e).catch(() => {n.clearReset();});//#endregion//#region node_modules/@tanstack/react-query/build/modern/useQueries.js-function SS({ queries: e, ...t }, n) {- let r = cS(n), i = dS(), a = mS(), o = t.subscribed !== !1, s = B.useMemo(() => e.map((e) => {+function CS({ queries: e, ...t }, n) {+ let r = lS(n), i = fS(), a = hS(), o = t.subscribed !== !1, s = B.useMemo(() => e.map((e) => {let t = r.defaultQueryOptions(e);return t._optimisticResults = i ? "isRestoring" : o ? "optimistic" : void 0, t;}), [@@ -14258,10 +14258,10 @@ function SS({ queries: e, ...t }, n) {o]);s.forEach((e) => {- yS(e);+ bS(e);let t = r.getQueryCache().get(e.queryHash);- hS(e, a, t);- }), gS(a);+ gS(e, a, t);+ }), _S(a);let [c] = B.useState(() => new _(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;B.useSyncExternalStore(B.useCallback((e) => f ? c.subscribe(x.batchCalls(e)) : b, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), B.useEffect(() => {c.setQueries(s, t);@@ -14270,14 +14270,14 @@ function SS({ queries: e, ...t }, n) {t,c]);- let p = l.some((e, t) => bS(s[t], e)) ? l.flatMap((e, t) => {+ let p = l.some((e, t) => xS(s[t], e)) ? l.flatMap((e, t) => {let n = s[t];- return n && bS(n, e) ? xS(n, new v(r, n), a) : [];+ return n && xS(n, e) ? SS(n, new v(r, n), a) : [];}) : [];if (p.length > 0) throw Promise.all(p);let m = l.find((e, t) => {let n = s[t];- return n && _S({+ return n && vS({result: e,errorResetBoundary: a,throwOnError: n.throwOnError,@@ -14290,17 +14290,17 @@ function SS({ queries: e, ...t }, n) {}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js-function CS(e, t, n) {- let r = dS(), i = mS(), a = cS(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, yS(o), hS(o, i, s), gS(i);+function wS(e, t, n) {+ let r = fS(), i = hS(), a = lS(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, bS(o), gS(o, i, s), _S(i);let [l] = B.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;if (B.useSyncExternalStore(B.useCallback((e) => {let t = d ? l.subscribe(x.batchCalls(e)) : b;return l.updateResult(), t;}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), B.useEffect(() => {l.setOptions(o);- }, [o, l]), bS(o, u)) throw xS(o, l, i);- if (_S({+ }, [o, l]), xS(o, u)) throw SS(o, l, i);+ if (vS({result: u,errorResetBoundary: i,throwOnError: o.throwOnError,@@ -14311,40 +14311,40 @@ function CS(e, t, n) {}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useQuery.js-function wS(e, t) {- return CS(e, v, t);+function TS(e, t) {+ return wS(e, v, t);}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js-function zne(e, t) {- return CS({+function Rne(e, t) {+ return wS({...e,enabled: !0,suspense: !0,- throwOnError: vS,+ throwOnError: yS,placeholderData: void 0}, v, t);}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js-function Bne(e, t) {- return CS({+function zne(e, t) {+ return wS({...e,enabled: !0,suspense: !0,- throwOnError: vS,+ throwOnError: yS,placeholderData: void 0}, h, t);}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js-function Vne(e, t) {- return SS({+function Bne(e, t) {+ return CS({...e,queries: e.queries.map((e) => ({...e,suspense: !0,- throwOnError: vS,+ throwOnError: yS,enabled: !0,placeholderData: void 0}))@@ -14352,57 +14352,57 @@ function Vne(e, t) {}//#endregion//#region node_modules/@tanstack/react-query/build/modern/usePrefetchQuery.js-function Hne(e, t) {- let n = cS(t);+function Vne(e, t) {+ let n = lS(t);n.getQueryState(e.queryKey) || n.query(e).catch(b);}//#endregion//#region node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js-function Une(e, t) {- let n = cS(t);+function Hne(e, t) {+ let n = lS(t);n.getQueryState(e.queryKey) || n.infiniteQuery(e).catch(b);}//#endregion//#region node_modules/@tanstack/react-query/build/modern/queryOptions.js-function Wne(e) {+function Une(e) {return e;}//#endregion//#region node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js-function Gne(e) {+function Wne(e) {return e;}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useIsFetching.js-function Kne(e, t) {- let n = cS(t), r = n.getQueryCache();+function Gne(e, t) {+ let n = lS(t), r = n.getQueryCache();return B.useSyncExternalStore(B.useCallback((e) => r.subscribe(x.batchCalls(e)), [r]), () => n.isFetching(e), () => n.isFetching(e));}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useMutationState.js-function qne(e, t) {- let n = cS(t);- return ES({ filters: {+function Kne(e, t) {+ let n = lS(t);+ return DS({ filters: {...e,status: "pending"} }, n).length;}-function TS(e, t) {+function ES(e, t) {return e.findAll(t.filters).map((e) => t.select ? t.select(e) : e.state);}-function ES(e = {}, t) {- let n = cS(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);- return i.current === null && (i.current = TS(n, e)), B.useEffect(() => {+function DS(e = {}, t) {+ let n = lS(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);+ return i.current === null && (i.current = ES(n, e)), B.useEffect(() => {r.current = e;}), B.useSyncExternalStore(B.useCallback((e) => n.subscribe(() => {- let t = S(i.current, TS(n, r.current));+ let t = S(i.current, ES(n, r.current));i.current !== t && (i.current = t, x.schedule(e));}), [n]), () => i.current, () => i.current);}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useMutation.js-function DS(e, t) {- let n = cS(t), [r] = B.useState(() => new g(n, e));+function OS(e, t) {+ let n = lS(t), [r] = B.useState(() => new g(n, e));B.useEffect(() => {r.setOptions(e);}, [r, e]);@@ -14418,53 +14418,53 @@ function DS(e, t) {}//#endregion//#region node_modules/@tanstack/react-query/build/modern/mutationOptions.js-function Jne(e) {+function qne(e) {return e;}//#endregion//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js-function OS(e, t) {- return CS(e, h, t);+function kS(e, t) {+ return wS(e, h, t);}//#endregion//#region node_modules/@tanstack/react-query/build/modern/index.js-var kS = /* @__PURE__ */ St({- HydrationBoundary: () => Ine,- IsRestoringProvider: () => Lne,- QueryClientContext: () => sS,- QueryClientProvider: () => lS,- QueryErrorResetBoundary: () => Rne,- infiniteQueryOptions: () => Gne,- mutationOptions: () => Jne,- queryOptions: () => Wne,- useInfiniteQuery: () => OS,- useIsFetching: () => Kne,- useIsMutating: () => qne,- useIsRestoring: () => dS,- useMutation: () => DS,- useMutationState: () => ES,- usePrefetchInfiniteQuery: () => Une,- usePrefetchQuery: () => Hne,- useQueries: () => SS,- useQuery: () => wS,- useQueryClient: () => cS,- useQueryErrorResetBoundary: () => mS,- useSuspenseInfiniteQuery: () => Bne,- useSuspenseQueries: () => Vne,- useSuspenseQuery: () => zne+var AS = /* @__PURE__ */ St({+ HydrationBoundary: () => Fne,+ IsRestoringProvider: () => Ine,+ QueryClientContext: () => cS,+ QueryClientProvider: () => uS,+ QueryErrorResetBoundary: () => Lne,+ infiniteQueryOptions: () => Wne,+ mutationOptions: () => qne,+ queryOptions: () => Une,+ useInfiniteQuery: () => kS,+ useIsFetching: () => Gne,+ useIsMutating: () => Kne,+ useIsRestoring: () => fS,+ useMutation: () => OS,+ useMutationState: () => DS,+ usePrefetchInfiniteQuery: () => Hne,+ usePrefetchQuery: () => Vne,+ useQueries: () => CS,+ useQuery: () => TS,+ useQueryClient: () => lS,+ useQueryErrorResetBoundary: () => hS,+ useSuspenseInfiniteQuery: () => zne,+ useSuspenseQueries: () => Bne,+ useSuspenseQuery: () => Rne});-import * as Yne from "/dist/peach-ui.js";-wt(kS, Yne);+import * as Jne from "/dist/peach-ui.js";+wt(AS, Jne);/* istanbul ignore file *///#endregion//#region src/api.ts-var AS = class extends Error {+var jS = class extends Error {status;body;constructor(e, t, n = null) {super(ye(e, t)), this.name = "ApiError", this.status = t, this.body = n;}-}, jS = (e) => {+}, MS = (e) => {if (!e || typeof e != "object") return "";let t = e;for (let e of [@@ -14486,7 +14486,7 @@ async function G(e, t) {try {r = await n.json();} catch {}- if (!n.ok) throw new AS(jS(r) || `请求失败(${n.status})`, n.status);+ if (!n.ok) throw new jS(MS(r) || `请求失败(${n.status})`, n.status);return r;}async function K(e, t, n = "POST", r) {@@ -14503,37 +14503,37 @@ async function K(e, t, n = "POST", r) {try {a = await i.json();} catch {}- if (!i.ok) throw new AS(jS(a) || `请求失败(${i.status})`, i.status, a);+ if (!i.ok) throw new jS(MS(a) || `请求失败(${i.status})`, i.status, a);return a;}//#endregion//#region src/player/host.ts-var MS = null;-function Xne(e) {- MS = e;+var NS = null;+function Yne(e) {+ NS = e;}-function NS() {- if (!MS) throw Error("播放器还没有接上宿主(configurePlayer)");- return MS;+function PS() {+ if (!NS) throw Error("播放器还没有接上宿主(configurePlayer)");+ return NS;}//#endregion//#region src/player/menu.ts-var PS = null;-function Zne(e) {- PS = e;+var FS = null;+function Xne(e) {+ FS = e;}-function Qne() {+function Zne() {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 FS = null, IS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;-function LS() {+var IS = null, LS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;+function RS() {let e = document.getElementById("playerMenu");e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && De(e, () => {e.innerHTML = "";- }), FS &&= (FS(), null);+ }), IS &&= (IS(), null);}-async function $ne(e) {+async function Qne(e) {try {return await navigator.clipboard.writeText(e), !0;} catch {@@ -14546,12 +14546,12 @@ async function $ne(e) {return t.remove(), n;}}-function ere(e) {- let t = !!PS?.inMiniplayer(e), n = e.peachItem, r = PS?.kind(e) ?? "item", i = (t) => {+function $ne(e) {+ let t = !!FS?.inMiniplayer(e), n = e.peachItem, r = FS?.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) => {- $ne(i(e)).then((e) => NS().toast(e ? t : "复制失败,请手动复制地址栏", {+ Qne(i(e)).then((e) => PS().toast(e ? t : "复制失败,请手动复制地址栏", {timeout: 4e3,warn: !e}));@@ -14563,11 +14563,11 @@ function ere(e) {}, t ? {icon: "maximize-2",label: "展开",- run: () => PS?.expand()+ run: () => FS?.expand()} : {icon: "picture-in-picture-2",label: "迷你播放器",- run: () => PS?.toMiniplayer()+ run: () => FS?.toMiniplayer()}];document.pictureInPictureEnabled && o.push({icon: "player-pip",@@ -14590,29 +14590,29 @@ function ere(e) {run: () => s.click()}), o;}-function tre(e, t, n) {- let r = Qne();- LS();- let i = NS().stage();+function ere(e, t, n) {+ let r = Zne();+ RS();+ let i = PS().stage();i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");- let a = ere(e);+ let a = $ne(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}">${IS(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? IS(R("check"), "data-player-menu-check") : ""}</button>`;+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${LS(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? LS(R("check"), "data-player-menu-check") : ""}</button>`;}).join(""), ze(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;let o = [...r.querySelectorAll("[data-player-menu]")];o.forEach((e) => {e.onclick = (t) => {t.stopPropagation();let n = a[Number(e.dataset.playerMenu)];- LS(), n?.run();+ RS(), n?.run();};});let s = (e) => {- r.contains(e.target) || LS();+ r.contains(e.target) || RS();}, c = (e) => {if (e.key === "Escape") {- e.preventDefault(), e.stopPropagation(), LS();+ e.preventDefault(), e.stopPropagation(), RS();return;}if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;@@ -14620,51 +14620,51 @@ function tre(e, t, n) {let t = o.indexOf(document.activeElement);o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();}, l = (t) => {- Ve(t, e.el()) && LS();+ Ve(t, e.el()) && RS();};setTimeout(() => {document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {capture: !0,passive: !0});- }, 0), FS = () => {+ }, 0), IS = () => {document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);}, o[0]?.focus();}-function nre(e) {+function tre(e) {e.el().addEventListener("contextmenu", (t) => {- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), tre(e, t.clientX, t.clientY));- }), e.on("dispose", LS);+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), ere(e, t.clientX, t.clientY));+ }), e.on("dispose", RS);}//#endregion//#region src/player/registry.ts-var RS = null, zS = () => RS;-function BS(e) {- RS = e;-}+var zS = null, BS = () => zS;function VS(e) {+ zS = e;+}+function HS(e) {!e || e.isDisposed() || requestAnimationFrame(() => {e.isDisposed() || e.trigger("resize");});}//#endregion//#region src/player/stats.ts-function HS(e) {+function US(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 rre(e) {+function nre(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 US = 3e3;-function WS(e, t) {+var WS = 3e3;+function GS(e, t) {let n = Number(e) || 0, r = ve(t) || 0;return n > 0 && r > 0 ? n * 8 / r : 0;}-function ire(e) {+function rre(e) {let t = [], n = null, r = 0, i = 0;return {bitrate: Number(e) || 0,@@ -14679,10 +14679,10 @@ function ire(e) {},sample(e) {if (!e) return i;- let a = performance.now(), o = rre(e), s = e.currentTime || 0;+ let a = performance.now(), o = nre(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 > US * 2 && (t.length = 0);+ !i && c > 0 && (r += c), e * 1e3 > WS * 2 && (t.length = 0);}for (n = {at: a,@@ -14691,56 +14691,56 @@ function ire(e) {}, t.push({at: a,advanced: r- }); t.length > 2 && a - t[0].at > US;) t.shift();+ }); t.length > 2 && a - t[0].at > WS;) 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 GS = 24;-function KS(e, t) {- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > GS && e.splice(0, e.length - GS);+var KS = 24;+function qS(e, t) {+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > KS && e.splice(0, e.length - KS);}-var qS = "peach-player-panel";-function JS(e, t, n, r) {- let i = [...Array(Math.max(0, GS - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {+var JS = "peach-player-panel";+function YS(e, t, n, r) {+ let i = [...Array(Math.max(0, KS - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {if (e === null) return "<i aria-hidden=\"true\"></i>";let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;}).join("");return `<span data-player-stats-plot="${t}" role="img" aria-label="${L(r)}">${o}</span>`;}-function are() {+function ire() {return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button><div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div><div data-player-stats="" id="playerStats" role="status" hidden></div>`;}-function YS(e, t = "") {+function XS(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 XS(e, t = "") {- let n = YS(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;+function ZS(e, t = "") {+ let n = XS(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;return r > 0 && i > 0 ? r * 8 / i : 0;}-function ZS(e, t, n = "", r = null) {+function QS(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 : XS(t, n);+ return i > 0 ? i : r ? Number(r.bits) || 0 : ZS(t, n);}-function QS(e) {+function $S(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 ore(e, t) {- return e > 0 ? QS(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : QS(0);+function are(e, t) {+ return e > 0 ? $S(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : $S(0);}//#endregion//#region src/player/controls.ts-function $S(e, t, n = "") {+function eC(e, t, n = "") {if (!e) return () => {};let r = e.querySelector(":scope>.vjs-peach-tooltip");r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));@@ -14751,24 +14751,24 @@ function $S(e, t, n = "") {};return o(), o;}-function sre(e, t = !0) {- let n = NS(), r = n.settings();+function ore(e, t = !0) {+ let n = PS(), 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 eC = /* @__PURE__ */ new WeakMap();-function tC(e) {+var tC = /* @__PURE__ */ new WeakMap();+function nC(e) {if (!e) return;- let t = NS().settings().theaterMode;- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), eC.get(e)?.(t ? "默认视图" : "影院模式");+ let t = PS().settings().theaterMode;+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), tC.get(e)?.(t ? "默认视图" : "影院模式");}-function nC(e, t = !0) {- let n = NS(), r = n.settings();+function rC(e, t = !0) {+ let n = PS(), r = n.settings();r.theaterMode = !!e, t && n.saveSettings();let i = n.stage();- i?.toggleAttribute("data-theater", r.theaterMode), tC(i?.querySelector("[data-player-theater]")), VS(zS());+ i?.toggleAttribute("data-theater", r.theaterMode), nC(i?.querySelector("[data-player-theater]")), HS(BS());}-function cre(e) {- let t = NS().stage(), n = t?.querySelector("[data-ambient-canvas]");+function sre(e) {+ let t = PS().stage(), n = t?.querySelector("[data-ambient-canvas]");if (!t || !n) return () => {};let r = n.getContext("2d", { alpha: !1 });if (!r) return () => {};@@ -14792,14 +14792,14 @@ function cre(e) {e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));}, d = (t, n) => {if (!(i || t !== o)) {- if (!NS().settings().ambientMode) {+ if (!PS().settings().ambientMode) {c();return;}e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t));}}, f = () => {- i || !NS().settings().ambientMode || (l(), e.paused || u(++o));+ i || !PS().settings().ambientMode || (l(), e.paused || u(++o));}, p = (e) => {let n = !!e.detail.enabled;t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());@@ -14808,7 +14808,7 @@ function cre(e) {i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();};}-function lre(e, t, n = 0, r = null) {+function cre(e, t, n = 0, r = null) {let i = e.getChild("controlBar")?.el();if (!i || i.querySelector("[data-player-quality]")) return;let a = document.createElement("div");@@ -14818,7 +14818,7 @@ function lre(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]");- $S(s, "设置");+ eC(s, "设置");let l = a.querySelector(".vjs-peach-settings-menu"), u = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, d = r, f = "auto", p = (e, t) => {let n = [Number(e), Number(t)].filter((e) => e > 0);return n.length ? Math.min(...n) : 0;@@ -14858,11 +14858,11 @@ function lre(e, t, n = 0, r = null) {active: n};}, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(qS, { detail: "settings" }));+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(JS, { detail: "settings" }));}, v = () => _(!1), y = (e) => {e.detail !== "settings" && v();};- document.addEventListener(qS, y);+ document.addEventListener(JS, y);let b = null, x = (e, t) => {let n = l.querySelector(".vjs-peach-panel"), r = document.createElement("div");if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !g()) return l.replaceChildren(r), l.style.height = "", r;@@ -14877,12 +14877,12 @@ function lre(e, t, n = 0, r = null) {}), r;}, S = (e, t) => e.querySelector(t), C = "main", w = (t = 0) => {C = "main";- let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${NS().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="${PS().settings().ambientMode}">${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button><button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${R("player-menu-next")}</button><button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${L(n.label)}</b>${R("player-menu-next")}</button></div>`, t);S(i, "[data-player-ambient]").onclick = () => {- sre(!NS().settings().ambientMode), w();+ ore(!PS().settings().ambientMode), w();}, S(i, "[data-player-speed]").onclick = () => O(), S(i, "[data-player-quality-view]").onclick = () => A();}, T = .05, E = [1,@@ -14958,22 +14958,22 @@ function lre(e, t, n = 0, r = null) {"removequalitylevel","change"], j), e.on("dispose", () => {- document.removeEventListener("pointerdown", M), document.removeEventListener(qS, y), b && clearTimeout(b);- }), h(), ure(e, a), dre(e), (e) => {+ document.removeEventListener("pointerdown", M), document.removeEventListener(JS, y), b && clearTimeout(b);+ }), h(), lre(e, a), ure(e), (e) => {d = e?.length ? e : null, j();};}-function ure(e, t) {+function lre(e, t) {let n = e.getChild("controlBar")?.el();if (!n || n.querySelector("[data-player-theater]")) return;- let r = NS().settings().theaterMode, i = document.createElement("div");+ let r = PS().settings().theaterMode, i = document.createElement("div");i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);let a = i.querySelector("button");- eC.set(a, $S(a, "影院模式", "T")), tC(a), a.onclick = (e) => {- e.stopPropagation(), nC(!NS().settings().theaterMode);+ tC.set(a, eC(a, "影院模式", "T")), nC(a), a.onclick = (e) => {+ e.stopPropagation(), rC(!PS().settings().theaterMode);};}-function dre(e) {+function ure(e) {let t = e.getChild("controlBar")?.el();if (!t || t.querySelector(".vjs-peach-right-controls")) return;let n = t.querySelector(":scope>.vjs-play-control");@@ -14985,7 +14985,7 @@ function dre(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 = $S(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 = eC(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {let t = e.paused() || e.ended(), n = t ? s : c;o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");};@@ -14996,7 +14996,7 @@ function dre(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 = $S(p, "静音", "M"), g = () => {+ let h = eC(p, "静音", "M"), g = () => {let t = e.muted() || e.volume() === 0;m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");};@@ -15022,7 +15022,7 @@ function dre(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 = $S(x, "显示剩余时间"), T = () => {+ let C = x.querySelector(".vjs-peach-time-text"), w = eC(x, "显示剩余时间"), T = () => {let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = de(Math.max(0, n - t));C.textContent = `${S ? `-${r}` : de(t)} / ${de(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${de(n)};点击显示已播放时间` : `已播放 ${de(t)},总时长 ${de(n)};点击显示剩余时间`);};@@ -15035,11 +15035,11 @@ function dre(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 = $S(E, "画中画");+ let D = eC(E, "画中画");e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = $S(O, "全屏", "F"), j = () => {+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = eC(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 ? "退出全屏" : "全屏"), VS(e);+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), HS(e);};e.on(["fullscreenchange",@@ -15059,7 +15059,7 @@ function dre(e) {});let P = document.createElement("div");P.className = "vjs-peach-expand vjs-control", P.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(P);- let ee = P.querySelector("button"), F = $S(ee, "展开控件"), I = (t) => {+ let ee = P.querySelector("button"), F = eC(ee, "展开控件"), I = (t) => {e.el().classList.toggle("vjs-peach-right-expanded", t), ee.setAttribute("aria-expanded", String(t)), F(t ? "收起控件" : "展开控件");};ee.onclick = (t) => {@@ -15071,7 +15071,7 @@ function dre(e) {}, ne = new ResizeObserver(te);ne.observe(e.el()), e.on("dispose", () => ne.disconnect()), I(!1), te();}-function fre(e, t, n = {}) {+function dre(e, t, n = {}) {let r = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");if (!r || r.querySelector("[data-player-seek-preview]")) return;let i = n.thumbnail !== !1, a = document.createElement("div");@@ -15104,13 +15104,13 @@ function fre(e, t, n = {}) {r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);});}-function pre(e, t) {+function fre(e, t) {let n = navigator.mediaSession;if (!n || typeof n.setActionHandler != "function") return;let r = () => ve(e.duration()) || ve(t.duration) || 0, i = (t) => {let n = r();e.currentTime(Math.max(0, n ? Math.min(n, t) : t));- }, a = () => Math.max(1, Number(NS().settings().seekSeconds) || 10), o = [+ }, a = () => Math.max(1, Number(PS().settings().seekSeconds) || 10), o = [["play", () => {e.play();}],@@ -15151,11 +15151,11 @@ function pre(e, t) {} catch {}});}-function mre(e) {+function pre(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 hre(e, t) {+function mre(e, t) {ce(`/api/assets/${t}/subtitles`).then((t) => {!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {e.addRemoteTextTrack({@@ -15170,7 +15170,7 @@ function hre(e, t) {}//#endregion//#region src/player/dispose.ts-function rC(e) {+function iC(e) {if (!e || e.isDisposed()) return;let t = e.el()?.querySelector("video");try {@@ -15188,23 +15188,23 @@ function rC(e) {}//#endregion//#region src/player/stream.ts-function iC() {+function aC() {return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;}-function aC(e, t) {+function oC(e, t) {return {src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"};}-function gre(e) {+function hre(e) {return e.location === "online" && e.follow_item_id ? {src: `/follow-stream?id=${e.follow_item_id}`,type: "video/mp4"} : null;}-async function oC(e, t) {- let n = gre(e);+async function sC(e, t) {+ let n = hre(e);if (n) return n;try {let n = await ce(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);@@ -15213,9 +15213,9 @@ async function oC(e, t) {type: n.mime_type || "application/vnd.apple.mpegurl"};} catch {}- return aC(e, t);+ return oC(e, t);}-function sC(e) {+function cC(e) {e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {method: "POST",credentials: "same-origin",@@ -15224,21 +15224,21 @@ function sC(e) {document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);}).catch(() => {});}-var cC = "";-function lC() {- return cC;-}+var lC = "";function uC() {- return cC ||= iC(), cC;+ return lC;}-var _re = (e) => aC(e, uC()), vre = (e) => oC(e, uC());function dC() {- let e = cC;- e && (cC = "", sC(e));+ return lC ||= aC(), lC;+}+var gre = (e) => oC(e, dC()), _re = (e) => sC(e, dC());+function fC() {+ let e = lC;+ e && (lC = "", cC(e));}//#endregion//#region src/player/telemetry.ts-function fC(e, t, n = {}) {+function pC(e, t, n = {}) {if (!t) return;let r = 0, i = 0, a = 0, o = null;t.addEventListener("seeking", () => {@@ -15286,7 +15286,7 @@ function fC(e, t, n = {}) {u(), l(!1);}, { once: !0 }), c();}-function yre(e, t) {+function vre(e, t) {let n = 0, r = 0, i = !1, a = null, o = (n) => {let i = ve(e.duration) || ve(t.duration);!r && !n || (ce("/api/follow/activity", {@@ -15322,7 +15322,7 @@ function yre(e, t) {}//#endregion//#region src/player/videojs.ts-var pC = "/vendor/videojs/8.24.1/", mC = (e) => new Promise((t, n) => {+var mC = "/vendor/videojs/8.24.1/", hC = (e) => new Promise((t, n) => {let r = document.head.querySelector(`script[src="${e}"]`);if (r?.dataset.loaded) {t();@@ -15334,20 +15334,20 @@ var pC = "/vendor/videojs/8.24.1/", mC = (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));-}), hC = () => globalThis.videojs, gC = null;-function _C() {- let e = hC();- return e ? Promise.resolve(e) : (gC ??= mC(`${pC}video.min.js`).then(() => mC(`${pC}lang/zh-CN.js`)).then(() => {- let e = hC();+}), gC = () => globalThis.videojs, _C = null;+function vC() {+ let e = gC();+ return e ? Promise.resolve(e) : (_C ??= hC(`${mC}video.min.js`).then(() => hC(`${mC}lang/zh-CN.js`)).then(() => {+ let e = gC();if (!e) throw Error("videojs unavailable");return e;}).catch((e) => {- throw gC = null, e;- }), gC);+ throw _C = null, e;+ }), _C);}//#endregion//#region src/player/immerse-player.ts-var bre = {+var yre = {controls: !1,preload: "auto",posterImage: !1,@@ -15359,37 +15359,37 @@ var bre = {errorDisplay: !1,textTrackSettings: !1};-function xre(e, t) {+function bre(e, t) {let { item: n, session: r } = t, i = null, a = !1;- return Promise.all([oC(n, r), _C().catch(() => null)]).then(([o, s]) => {+ return Promise.all([sC(n, r), vC().catch(() => null)]).then(([o, s]) => {if (a) return;- let c = aC(n, r), l = String(o.type || "").includes("mpegurl");+ let c = oC(n, r), l = String(o.type || "").includes("mpegurl");if (!s) e.src = (l ? c : o).src;else {- let t = s(e, bre);+ let t = s(e, yre);i = t, l && t.one("error", () => {a || t.src(c);}), t.src(o);}- fC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();+ pC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();}), () => {- a || (a = !0, sC(r), i ? rC(i) : (e.pause(), e.removeAttribute("src"), e.load()));+ a || (a = !0, cC(r), i ? iC(i) : (e.pause(), e.removeAttribute("src"), e.load()));};}//#endregion//#region src/player/detail-player.ts-var vC = /* @__PURE__ */ new WeakMap(), yC = null, bC = null, xC = null;-function SC() {- yC &&= (clearInterval(yC), null), bC &&= (clearInterval(bC), null), xC &&= (clearTimeout(xC), null);+var yC = /* @__PURE__ */ new WeakMap(), bC = null, xC = null, SC = null;+function CC() {+ bC &&= (clearInterval(bC), null), xC &&= (clearInterval(xC), null), SC &&= (clearTimeout(SC), null);}-async function Sre(e, t, n, r = {}) {- let i = zS();+async function xre(e, t, n, r = {}) {+ let i = BS();if (i && !i.isDisposed()) return i;- let a = NS(), o = r.resume ?? null;+ let a = PS(), o = r.resume ?? null;o?.autoplay && (n = !0);- let s = () => r.source ? Promise.resolve(r.source) : vre(e), c;+ let s = () => r.source ? Promise.resolve(r.source) : _re(e), c;try {- c = await _C();+ c = await vC();} catch {return t.controls = !0, s().then((e) => {t.src = e.src, n && t.play().catch(() => {});@@ -15413,7 +15413,7 @@ async function Sre(e, t, n, r = {}) {} }}});- BS(l), l.peachItem = e, nre(l), l.on("loadedmetadata", () => {+ VS(l), l.peachItem = e, tre(l), l.on("loadedmetadata", () => {let e = l.el()?.querySelector("video");e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);});@@ -15421,7 +15421,7 @@ async function Sre(e, t, n, r = {}) {speed: [],activity: [],buffer: []- }, f = Number(r.size ?? e.size) || 0, p = ire(WS(f, e.duration)), m = 0, h = !1, g = () => zS() === l && !l.isDisposed(), _ = () => {+ }, f = Number(r.size ?? e.size) || 0, p = rre(GS(f, e.duration)), m = 0, h = !1, g = () => BS() === l && !l.isDisposed(), _ = () => {if (!u || h || !g()) return;let e = Number(l.duration());(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {@@ -15432,15 +15432,15 @@ async function Sre(e, t, n, r = {}) {ready: !1,updateStats: () => {}};- vC.set(l, y), y.updateStats = () => {+ yC.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 = lC(), h = s ? YS(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = uC(), h = s ? XS(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;p.sample(t);- let x = ZS(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);+ let x = QS(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);m = S;- let w = HS(t);- KS(d.speed, x), KS(d.activity, C), KS(d.buffer, w);+ let w = US(t);+ qS(d.speed, x), qS(d.activity, C), qS(d.buffer, w);let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? ["网络活动",`${_ ? pe(_) : "—"} · ${h.length} 请求`,@@ -15458,17 +15458,17 @@ async function Sre(e, t, n, r = {}) {["连接速度",D,- JS(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)+ YS(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)],[k[0],k[1],- JS(d.activity, "activity", Math.max(1, ...d.activity), k[2])+ YS(d.activity, "activity", Math.max(1, ...d.activity), k[2])],["缓冲健康",`${w.toFixed(1)} 秒`,- JS(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)+ YS(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)],["播放时间", `${de(t.currentTime)} / ${de(u || l.duration())}`],["日期", (/* @__PURE__ */ new Date()).toLocaleString()]@@ -15484,15 +15484,15 @@ async function Sre(e, t, n, r = {}) {if (!n || l.isDisposed()) return;let r = v();r || p.sample(t);- let i = ZS(l, e.id, lC(), r ? null : p), a = r ? QS(i) : ore(i, HS(t));+ let i = QS(l, e.id, uC(), r ? null : p), a = r ? $S(i) : are(i, US(t));n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${L(a)}</span>`;}, C = () => {let e = y.chrome?.netBadge;- !e || !e.isConnected || (e.hidden = !1, S(), bC && clearInterval(bC), bC = setInterval(S, 500));+ !e || !e.isConnected || (e.hidden = !1, S(), xC && clearInterval(xC), xC = setInterval(S, 500));}, w = () => {let e = y.chrome?.netBadge;- e && (xC && clearTimeout(xC), xC = setTimeout(() => {- e.hidden = !0, bC &&= (clearInterval(bC), null);+ e && (SC && clearTimeout(SC), SC = setTimeout(() => {+ e.hidden = !0, xC &&= (clearInterval(xC), null);}, 1400));};return l.on([@@ -15504,7 +15504,7 @@ async function Sre(e, t, n, r = {}) {S(), w();}), l.on("error", () => {if (b && !x && !l.isDisposed()) {- x = !0, b = !1, l.src(_re(e)), n && l.play()?.catch(() => {});+ x = !0, b = !1, l.src(gre(e)), n && l.play()?.catch(() => {});return;}r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {@@ -15515,27 +15515,27 @@ async function Sre(e, t, n, r = {}) {});}), l.ready(() => {_();- let n = lre(l, t, e.height, r.qualities ?? null);+ let n = cre(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 = WS(r, e.duration));- }).catch(() => {}), fre(l, e, { thumbnail: !r.source }), pre(l, e), mre(l), r.source || hre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);+ r > 0 && !f && (f = r, p.bitrate = GS(r, e.duration));+ }).catch(() => {}), dre(l, e, { thumbnail: !r.source }), fre(l, e), pre(l), r.source || mre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);}), 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 Cre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";-function CC(e, t = null) {- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Cre), e.querySelector(":scope > #playerStatsBtn")) return;+var Sre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";+function wC(e, t = null) {+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Sre), e.querySelector(":scope > #playerStatsBtn")) return;let n = document.createElement("template");- n.innerHTML = are(), e.insertBefore(n.content, t);+ n.innerHTML = ire(), e.insertBefore(n.content, t);}-function wC(e, t) {- let n = vC.get(e);+function TC(e, t) {+ let n = yC.get(e);if (!n || e.isDisposed()) return () => {};let r = (e) => t.querySelector(`:scope > #${e}`), i = {statsButton: r("playerStatsBtn"),@@ -15547,29 +15547,29 @@ function wC(e, t) {if (a && o) {a.hidden = !n.ready;let e = () => {- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), yC &&= (clearInterval(yC), null));+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), bC &&= (clearInterval(bC), null));};a.onclick = () => {if (!o.hidden) {e();return;}- document.dispatchEvent(new CustomEvent(qS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), yC && clearInterval(yC), yC = setInterval(n.updateStats, 1e3);+ document.dispatchEvent(new CustomEvent(JS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), bC && clearInterval(bC), bC = setInterval(n.updateStats, 1e3);};let t = (t) => {t.detail !== "stats" && e();};- document.addEventListener(qS, t), s = () => document.removeEventListener(qS, t);+ document.addEventListener(JS, t), s = () => document.removeEventListener(JS, t);}- let c = e.el().querySelector("video"), l = c ? cre(c) : () => {}, u = !0, d = () => {- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, SC()));+ let c = e.el().querySelector("video"), l = c ? sre(c) : () => {}, u = !0, d = () => {+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, CC()));};return e.one("dispose", d), d;}-function TC(e, t) {- if (t.kind === "immerse") return xre(e, t);- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = NS(), c = t.chrome === !1 ? null : e.parentElement;- c && CC(c, e);+function EC(e, t) {+ if (t.kind === "immerse") return bre(e, t);+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = PS(), c = t.chrome === !1 ? null : e.parentElement;+ c && wC(c, e);let l = { resume: t.resume ?? null };if (n === "follow") l = {...l,@@ -15589,16 +15589,16 @@ function TC(e, t) {method: "POST",body: JSON.stringify({ id: r.id })}).catch(() => {});- }, { once: !0 }), fC(r, e, {+ }, { once: !0 }), pC(r, e, {watched: "#watched",mark: "#mark",ratio: "#ratioTxt"});}let u = null, d = !1, f = () => {}, p = () => {- f(), !(!u || a?.(u)) && (zS() === u && (BS(null), SC()), rC(u));+ f(), !(!u || a?.(u)) && (BS() === u && (VS(null), CC()), iC(u));};- return Sre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {+ return xre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {if (u = t, d) {p();return;@@ -15607,45 +15607,45 @@ function TC(e, t) {o?.(null);return;}- c && (f = wC(t, c)), n === "follow" && yre(r, e), o?.(t);+ c && (f = TC(t, c)), n === "follow" && vre(r, e), o?.(t);}), () => {d = !0, p();};}//#endregion//#region src/player/playback.ts-function EC(e) {+function DC(e) {e && (e.paused ? e.play()?.catch(() => {}) : e.pause());}-function wre(e, t) {+function Cre(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 DC(e) {+function OC(e) {return e === "thumbnail" ? "thumbnail" : "cover";}-function Tre(e, t) {- return e.is_jav && e.code && e.has_cover && (DC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";+function wre(e, t) {+ return e.is_jav && e.code && e.has_cover && (OC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";}-var OC = .704;-function kC(e, t) {+var kC = .704;+function AC(e, t) {let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));return t && n.set("exclude_vertical", "1"), n.toString();}-var Ere = (e, t) => [+var Tre = (e, t) => ["catalog-grid","catalog",e,t-], Dre = (e, t) => [+], Ere = (e, t) => ["catalog-grid","entity",e,t];-async function Ore(e, t, n, r, i) {+async function Dre(e, t, n, r, i) {let a = new URLSearchParams(e);a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");let o = await G(`/api/items?${a}`, i), s = {@@ -15655,22 +15655,22 @@ async function Ore(e, t, n, r, i) {};return !t && !s.items.length && !r && (s.libraryEmpty = (await G("/api/items?limit=1&thumb=0", i)).total === 0), s;}-var kre = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Are = (e, t) => {+var Ore = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, kre = (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 AC(e) {- let t = kC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";+function jC(e) {+ let t = AC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";return {- queryKey: Ere(t, e.revision || 0),- queryFn: ({ pageParam: e, signal: i }) => Ore(t, e, n, r, i),+ queryKey: Tre(t, e.revision || 0),+ queryFn: ({ pageParam: e, signal: i }) => Dre(t, e, n, r, i),initialPageParam: 0,- getNextPageParam: kre(n)+ getNextPageParam: Ore(n)};}-function jre(e) {+function Are(e) {return {- queryKey: Dre(e.entityKey || "", e.revision || 0),+ queryKey: Ere(e.entityKey || "", e.revision || 0),queryFn: async ({ pageParam: t, signal: n }) => {if (!e.fetchPage) return {items: [],@@ -15685,12 +15685,12 @@ function jre(e) {};},initialPageParam: 0,- getNextPageParam: Are+ getNextPageParam: kre};}-async function Mre(e, t) {+async function jre(e, t) {if (e.mode !== "catalog") return;- let n = AC(e);+ let n = jC(e);await z.fetchInfiniteQuery({...n,queryFn: ({ pageParam: e }) => n.queryFn({@@ -15699,7 +15699,7 @@ async function Mre(e, t) {})});}-function Nre(e, t, n) {+function Mre(e, t, n) {return n ? e.filter((e) => {let n = e.part_group?.key;if (n) {@@ -15714,24 +15714,24 @@ function Nre(e, t, n) {return !0;}) : [...e];}-var jC = (e, t) => !!e && !!Tre(e, t);-function Pre(e, t) {- let n = (e) => jC(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) => jC(e, t)) || e[e.length - 1];+var MC = (e, t) => !!e && !!wre(e, t);+function Nre(e, t) {+ let n = (e) => MC(e, t) && !!(e.creator || (e.performers || []).length || e.studio);+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => MC(e, t)) || e[e.length - 1];}-function Fre(e, { collapse: t, mix: n, javImage: r }) {+function Pre(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 = Nre(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({+ let e = Mre(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 = Pre(e, r);+ let t = Nre(e, r);t && l.splice(7, 0, {kind: "mix",seed: t@@ -15744,16 +15744,16 @@ function Fre(e, { collapse: t, mix: n, javImage: r }) {pageStarts: s};}-function Ire(e, t, n) {+function Fre(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 Lre(e, t) {+function Ire(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 Rre(e, t) {+function Lre(e, t) {let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;for (let t of n) r.push({start: i,@@ -15766,10 +15766,10 @@ function Rre(e, t) {strip: null}), r;}-function MC(e, t) {- NC((t) => t.id === e, t);-}function NC(e, t) {+ PC((t) => t.id === e, t);+}+function PC(e, t) {z.setQueriesData({queryKey: ["catalog-grid"],predicate: (e) => Array.isArray(e.state.data?.pages)@@ -15786,31 +15786,31 @@ function NC(e, t) {}//#endregion//#region src/react/item-detail/item-detail.ts-var PC = (e) => ["item", e], FC = (e) => [+var FC = (e) => ["item", e], IC = (e) => ["item-queue",e.kind,e.kind === "playlist" ? e.playlistId : e.seedId-], zre = (e, t) => [+], Rre = (e, t) => ["item-related",e,t-], Bre = (e) => `/api/item?id=${e}`, Vre = (e, t) => `/api/related?id=${e}&limit=${t}`, IC = "/api/playlist", LC = "/api/feedback", RC = "/api/item-tag", zC = "/api/watch-later", BC = "/api/quality-goal", VC = "/api/preference", HC = class extends Error {};-async function UC(e, t) {- let n = await G(Bre(e), t);- if (n.error) throw new HC(n.error);+], zre = (e) => `/api/item?id=${e}`, Bre = (e, t) => `/api/related?id=${e}&limit=${t}`, LC = "/api/playlist", RC = "/api/feedback", zC = "/api/item-tag", BC = "/api/watch-later", VC = "/api/quality-goal", HC = "/api/preference", UC = class extends Error {};+async function WC(e, t) {+ let n = await G(zre(e), t);+ if (n.error) throw new UC(n.error);return n;}-async function WC(e, t, n) {+async function GC(e, t, n) {if (e.kind === "mix") {- let r = e.seedId, [i, a] = await Promise.all([UC(r, n), t.mixRelated(r)]);- return z.setQueryData(PC(i.id), i), {+ let r = e.seedId, [i, a] = await Promise.all([WC(r, n), t.mixRelated(r)]);+ return z.setQueryData(FC(i.id), i), {kind: "mix",seedId: r,title: `Mix · ${P(i, t.tagLabel)}`,items: [i, ...a.filter((e) => e.id !== i.id)]};}- if (e.kind === "playlist") return GC(await G(`${IC}?id=${e.playlistId}`, n));+ if (e.kind === "playlist") return KC(await G(`${LC}?id=${e.playlistId}`, n));let r = await G(`/api/${e.kind}?id=${e.seedId}`, n);if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");return {@@ -15820,19 +15820,19 @@ async function WC(e, t, n) {items: r.items};}-var GC = (e) => ({+var KC = (e) => ({kind: "playlist",playlistId: e.id,title: e.name,items: e.items || [],currentAssetId: e.current_asset_id-}), KC = (e) => e.disposal === "vanished";-function qC(e, t) {+}), qC = (e) => e.disposal === "vanished";+function JC(e, t) {if (e.kind === "mix") return t;- let n = e.kind === "playlist" ? e.items.filter((e) => !KC(e)) : e.items;+ let n = e.kind === "playlist" ? e.items.filter((e) => !qC(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 Hre(e, t) {+function Vre(e, t) {if (t?.kind !== "parts") return e;let n = t.items.find((t) => t.id === e.id)?.part_label || "";return e.part_label === n ? e : {@@ -15840,15 +15840,15 @@ function Hre(e, t) {part_label: n};}-async function JC(e, t) {+async function YC(e, t) {let { queue: n, actions: r } = e, i = null, a = !1;if (n) {- let o = FC(n);+ let o = IC(n);try {let r = n.fresh ? void 0 : z.getQueryData(o);a = !r && n.kind === "mix", i = r || await z.fetchQuery({queryKey: o,- queryFn: () => WC(n, e.helpers, t),+ queryFn: () => GC(n, e.helpers, t),staleTime: 0});} catch (n) {@@ -15860,20 +15860,20 @@ async function JC(e, t) {return;}}- let o = i ? qC(i, e.id) : e.id;+ let o = i ? JC(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(PC(o)) : void 0;+ let s, c = a && o === i?.seedId ? z.getQueryData(FC(o)) : void 0;try {s = c || await z.fetchQuery({- queryKey: PC(o),- queryFn: () => UC(o, t),+ queryKey: FC(o),+ queryFn: () => WC(o, t),staleTime: 0});} catch (e) {- if (e instanceof HC) {+ if (e instanceof UC) {r.redirect({ kind: "gone" });return;}@@ -15884,7 +15884,7 @@ async function JC(e, t) {id: Number(s.follow_item_id)});}-function Ure(e) {+function Hre(e) {let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {let t = me(e.name);return !e.name || n.has(t) ? !1 : (n.add(t), !0);@@ -15906,42 +15906,42 @@ function Ure(e) {unowned: !i.length && !c.length && !String(e.creator || "").trim()};}-var YC = (e) => Math.min(Math.max(e || 0, 0), 100), XC = (e) => Math.round(YC(e) / 20), Wre = (e) => {- let t = XC(e);+var XC = (e) => Math.min(Math.max(e || 0, 0), 100), ZC = (e) => Math.round(XC(e) / 20), Ure = (e) => {+ let t = ZC(e);return t ? `${t} 星` : "未评分";-}, Gre = (e, t) => {+}, Wre = (e, t) => {let n = t * 20;return n === (e || 0) ? 0 : n;};-function Kre(e, t) {+function Gre(e, t) {let n = /* @__PURE__ */ new Map();return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {let r = me(t.tagLabel(e.k)), i = n.get(r);(!i || me(e.k) === r && me(i.k) !== r) && n.set(r, e);}), [...n.values()].slice(0, 40);}-var ZC = (e, t) => (e.tags || []).some((e) => me(e.k) === me(t)), QC = (e, t) => ({+var QC = (e, t) => (e.tags || []).some((e) => me(e.k) === me(t)), $C = (e, t) => ({...e,tags: (e.tags || []).filter((e) => me(e.k) !== me(t))-}), $C = (e, t) => ZC(e, t.k) ? e : {+}), ew = (e, t) => QC(e, t.k) ? e : {...e,tags: [...e.tags || [], t]-}, ew = "peach.recentTags";-function tw() {+}, tw = "peach.recentTags";+function nw() {try {- let e = JSON.parse(localStorage.getItem(ew) || "[]");+ let e = JSON.parse(localStorage.getItem(tw) || "[]");return Array.isArray(e) ? e.map(String) : [];} catch {return [];}}-function qre(e) {+function Kre(e) {try {- let t = tw().filter((t) => me(t) !== me(e));- localStorage.setItem(ew, JSON.stringify([e, ...t].slice(0, 12)));+ let t = nw().filter((t) => me(t) !== me(e));+ localStorage.setItem(tw, JSON.stringify([e, ...t].slice(0, 12)));} catch {}}-function Jre(e, t, n) {+function qre(e, t, n) {let r = me(e), i = new Map(t.map((e) => [me(e.k), e])), a = t.filter((e) => !r || me(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(me(e)) || {k: e,n: 0@@ -15952,73 +15952,73 @@ function Jre(e, t, n) {create: r && !s ? e.trim() : ""};}-var Yre = {+var Jre = {中字: "subtitle",无码: "uncensored",无码破解: "cracked",有码: "censored"-}, Xre = {+}, Yre = {mix: "Mix",parts: "分卷",editions: "版本",playlist: "播放列表"};-function Zre(e) {+function Xre(e) {let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;return {- title: Xre[e.kind],+ title: Yre[e.kind],summary: e.kind === "editions" ? n : `${e.title} · ${n}`};}-var nw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Qre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${L(nw(e.part_label))}</small>` : "";-function $re(e, t, n, r) {+var rw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Zre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${L(rw(e.part_label))}</small>` : "";+function Qre(e, t, n, r) {let i = e.filter((e) => e !== t), a = i.indexOf(n);return i.splice(a + +!!r, 0, t), i;}-var eie = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);-function tie(e, t) {+var $re = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);+function eie(e, t) {return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";}-function nie(e) {+function tie(e) {let t = Number(e.duration) > 0 ? Number(e.duration) : 0;return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;}-function rw(e, t) {+function iw(e, t) {return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";}//#endregion//#region src/react/immerse/immerse.ts-var rie = (e, t, n) => [+var nie = (e, t, n) => ["immerse-list",e,t,n];-function iie(e) {+function rie(e) {let t = new URLSearchParams();for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();}-var aie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));-function oie(e, t = Math.random) {+var iie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));+function aie(e, t = Math.random) {for (let n = e.length - 1; n > 0; n--) {let r = Math.floor(t() * (n + 1));[e[n], e[r]] = [e[r], e[n]];}return e;}-async function sie(e, t) {- return oie(((await G(`/api/items?${e}`)).items || []).filter((e) => aie(e, t)));+async function oie(e, t) {+ return aie(((await G(`/api/items?${e}`)).items || []).filter((e) => iie(e, t)));}-var iw = (e) => z.ensureQueryData({- queryKey: PC(e),- queryFn: ({ signal: t }) => UC(e, t)+var aw = (e) => z.ensureQueryData({+ queryKey: FC(e),+ queryFn: ({ signal: t }) => WC(e, t)});-function cie(e, t) {+function sie(e, t) {let n = new Set(e.map((e) => e.id));return e.concat(t.filter((e) => !n.has(e.id)));}-function lie(e) {+function cie(e) {let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";return {who: n,@@ -16027,318 +16027,318 @@ function lie(e) {ref: r && e.entity_refs?.[r]?.[0] || null};}-function uie(e, t, n) {+function lie(e, t, n) {if (!e || !t || !n || !Number.isFinite(n)) return null;let r = e / t;return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";}-function die(e, t) {+function uie(e, t) {return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);}-var fie = 15e3, aw = {+var die = 15e3, ow = {open: !1,idle: !1,wide: !1,loading: null,shown: null-}, ow = null, sw = null, cw = aw, lw = /* @__PURE__ */ new Set(), uw = 0, dw = 0, fw = 0, pw = "", mw = [], hw = 0, gw = !1, _w = !1, vw = null, yw = /* @__PURE__ */ new Set(), bw = "", xw = null, Sw = 0, Cw = null, ww = !1;-function Tw() {- if (!ow) throw Error("沉浸模式还没有接上宿主(configureImmerse)");- return ow;+}, sw = null, cw = null, lw = ow, uw = /* @__PURE__ */ new Set(), dw = 0, fw = 0, pw = 0, mw = "", hw = [], gw = 0, _w = !1, vw = !1, yw = null, bw = /* @__PURE__ */ new Set(), xw = "", Sw = null, Cw = 0, ww = null, Tw = !1;+function Ew() {+ if (!sw) throw Error("沉浸模式还没有接上宿主(configureImmerse)");+ return sw;}-function pie(e) {- return lw.add(e), () => {- lw.delete(e);+function fie(e) {+ return uw.add(e), () => {+ uw.delete(e);};}-function mie() {- for (let e of [...lw]) e();-}-function Ew() {- (0, $f.flushSync)(mie);+function pie() {+ for (let e of [...uw]) e();}function Dw() {- let e = xw ? XS(xw.id) : 0;- return e ? `${bw} · ${QS(e)}` : bw;+ (0, $f.flushSync)(pie);+}+function Ow() {+ let e = Sw ? ZS(Sw.id) : 0;+ return e ? `${xw} · ${$S(e)}` : xw;}-function Ow(e, t = null) {- if (clearInterval(Sw), Sw = 0, e === null) {- cw = {- ...cw,+function kw(e, t = null) {+ if (clearInterval(Cw), Cw = 0, e === null) {+ lw = {+ ...lw,loading: null- }, Ew();+ }, Dw();return;}- bw = e, xw = t, cw = {- ...cw,- loading: Dw()- }, Ew(), Sw = window.setInterval(() => {- xw = mw[hw] ?? null, cw = {- ...cw,- loading: Dw()- }, Ew();+ xw = e, Sw = t, lw = {+ ...lw,+ loading: Ow()+ }, Dw(), Cw = window.setInterval(() => {+ Sw = hw[gw] ?? null, lw = {+ ...lw,+ loading: Ow()+ }, Dw();}, 500);}-function hie(e) {+function mie(e) {let t = document.createElement("div");t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);let n = document.createElement("video");- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), sw.track.append(t);- let r = iC(), i = () => {}, a = {+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), cw.track.append(t);+ let r = aC(), i = () => {}, a = {el: t,video: n,session: r,- release: () => sC(r),+ release: () => cC(r),disposed: !1,gone: new Promise((e) => {i = e;}),leave: i};- return yw.add(a), a;+ return bw.add(a), a;}-function gie(e, t) {+function hie(e, t) {return new Promise((n) => {- e.release = TC(e.video, {+ e.release = EC(e.video, {kind: "immerse",item: t,session: e.session,onLoaded: n,onEnded: () => {- cw.open && Fw(1);+ lw.open && Iw(1);}}), e.gone.then(n);});}-function kw(e) {- !e || e.disposed || (e.disposed = !0, yw.delete(e), e.leave(), e.release(), e.el.remove(), vw === e && (vw = null));+function Aw(e) {+ !e || e.disposed || (e.disposed = !0, bw.delete(e), e.leave(), e.release(), e.el.remove(), yw === e && (yw = null));}-var Aw = [+var jw = ["loadeddata","canplay","error"];-function _ie(e) {+function gie(e) {let { video: t } = e;return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {let r = !1, i = () => {- r || (r = !0, clearTimeout(a), Aw.forEach((e) => t.removeEventListener(e, i)), n());+ r || (r = !0, clearTimeout(a), jw.forEach((e) => t.removeEventListener(e, i)), n());};- Aw.forEach((e) => t.addEventListener(e, i, { once: !0 }));- let a = setTimeout(i, fie);+ jw.forEach((e) => t.addEventListener(e, i, { once: !0 }));+ let a = setTimeout(i, die);e.gone.then(i);});}-function jw(e) {- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = uie(e.videoWidth, e.videoHeight, n);+function Mw(e) {+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = lie(e.videoWidth, e.videoHeight, n);r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;}-var Mw = () => sw?.track.querySelectorAll("video").forEach(jw);-function vie(e) {- delete e.dataset.fit, e.readyState >= 1 ? jw(e) : e.addEventListener("loadedmetadata", () => jw(e), { once: !0 });+var Nw = () => cw?.track.querySelectorAll("video").forEach(Mw);+function _ie(e) {+ delete e.dataset.fit, e.readyState >= 1 ? Mw(e) : e.addEventListener("loadedmetadata", () => Mw(e), { once: !0 });}-function yie(e) {- cw = {- ...cw,+function vie(e) {+ lw = {+ ...lw,wide: e- }, Ew(), Mw();+ }, Dw(), Nw();}-var Nw = () => {- let e = pw;+var Pw = () => {+ let e = mw;return z.fetchQuery({- queryKey: rie(e, dw, fw),- queryFn: () => sie(e, Tw().sourceOffline),+ queryKey: nie(e, fw, pw),+ queryFn: () => oie(e, Ew().sourceOffline),staleTime: Infinity});};-function bie(e, t) {+function yie(e, t) {let n = () => ve(e.duration) || ve(t.duration);e.addEventListener("timeupdate", () => {let t = n();- t && sw && (sw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);- }), Cw = {+ t && cw && (cw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);+ }), ww = {video: e,duration: n};}-async function Pw(e = 0) {- let t = mw[hw];- if (!t || gw) return;- let n = uw;- Tw().route(t.id), gw = !0, Ow(e ? "切换中…" : "加载中…", t);+async function Fw(e = 0) {+ let t = hw[gw];+ if (!t || _w) return;+ let n = dw;+ Ew().route(t.id), _w = !0, kw(e ? "切换中…" : "加载中…", t);let r = null;try {- if (await iw(t.id).catch((e) => {- if (!(e instanceof HC)) throw e;- }), n !== uw) return;- let i = vw, a = !!(e && i);- a || kw(i);- let o = hie(a ? e > 0 ? 100 : -100 : 0);- if (r = o, vie(o.video), await gie(o, t), await _ie(o), o.disposed || (yie(die(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {+ if (await aw(t.id).catch((e) => {+ if (!(e instanceof UC)) throw e;+ }), n !== dw) return;+ let i = yw, a = !!(e && i);+ a || Aw(i);+ let o = mie(a ? e > 0 ? 100 : -100 : 0);+ if (r = o, _ie(o.video), await hie(o, t), await gie(o), o.disposed || (vie(uie(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";- })), await new Promise((e) => setTimeout(e, 210)), kw(i), o.el.style.transform = ""), o.disposed)) return;- vw = o, r = null, o.video.play()?.catch(() => {}), cw = {- ...cw,+ })), await new Promise((e) => setTimeout(e, 210)), Aw(i), o.el.style.transform = ""), o.disposed)) return;+ yw = o, r = null, o.video.play()?.catch(() => {}), lw = {+ ...lw,idle: !1,shown: {item: t,- index: hw,- length: mw.length+ index: gw,+ length: hw.length}- }, bie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), Ow(null);+ }, yie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), kw(null);} catch {- kw(r), n === uw && Ow(null);+ Aw(r), n === dw && kw(null);} finally {- n === uw && (gw = !1);+ n === dw && (_w = !1);}}-async function Fw(e) {- if (gw || !cw.open) return;- let t = uw;- if (hw += e, Ow("切换中…", mw[hw] ?? null), hw >= mw.length - 3 && !_w) {- _w = !0;+async function Iw(e) {+ if (_w || !lw.open) return;+ let t = dw;+ if (gw += e, kw("切换中…", hw[gw] ?? null), gw >= hw.length - 3 && !vw) {+ vw = !0;try {- fw += 1;- let e = await Nw();- t === uw && (mw = cie(mw, e));+ pw += 1;+ let e = await Pw();+ t === dw && (hw = sie(hw, e));} catch {} finally {- _w = !1;+ vw = !1;}}- t === uw && (hw >= mw.length && (hw = 0), hw < 0 && (hw = mw.length - 1), await Pw(e));+ t === dw && (gw >= hw.length && (gw = 0), gw < 0 && (gw = hw.length - 1), await Fw(e));}-async function xie(e) {- let t = ++uw;- Iw(), dw += 1, fw = 0, pw = iie(Tw().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), cw = {- ...cw,+async function bie(e) {+ let t = ++dw;+ Lw(), fw += 1, pw = 0, mw = rie(Ew().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), lw = {+ ...lw,open: !0,idle: !0,shown: null- }, document.body.setAttribute("data-immerse-open", ""), Ow("加载内容…");+ }, document.body.setAttribute("data-immerse-open", ""), kw("加载内容…");try {- let n = await Nw();+ let n = await Pw();if (e && !n.some((t) => t.id === e)) {- let t = await iw(e).catch((e) => {- if (e instanceof HC) return null;+ let t = await aw(e).catch((e) => {+ if (e instanceof UC) return null;throw e;});t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);}- if (t !== uw) return;- if (mw = n, !mw.length) {- Lw(), Tw().warn("当前筛选下没有可直接播放的内容");+ if (t !== dw) return;+ if (hw = n, !hw.length) {+ Rw(), Ew().warn("当前筛选下没有可直接播放的内容");return;}- hw = Math.max(0, mw.findIndex((t) => t.id === e)), await Pw();+ gw = Math.max(0, hw.findIndex((t) => t.id === e)), await Fw();} catch {- if (t !== uw) return;- Ow(null), Lw();+ if (t !== dw) return;+ kw(null), Rw();}}-function Iw() {- clearInterval(Sw), Sw = 0, Uw(), Vw = null, Cw = null, ww = !1, [...yw].forEach(kw), gw = !1;-}function Lw() {- cw.open && (uw++, Iw(), cw = aw, document.body.removeAttribute("data-immerse-open"), Ew(), Tw().closed());+ clearInterval(Cw), Cw = 0, Ww(), Hw = null, ww = null, Tw = !1, [...bw].forEach(Aw), _w = !1;+}+function Rw() {+ lw.open && (dw++, Lw(), lw = ow, document.body.removeAttribute("data-immerse-open"), Dw(), Ew().closed());}-var Rw = 0, zw = null, Bw = 0, Vw = null, Hw = 0;-function Uw() {- clearTimeout(Rw), Rw = 0, zw = null;+var zw = 0, Bw = null, Vw = 0, Hw = null, Uw = 0;+function Ww() {+ clearTimeout(zw), zw = 0, Bw = null;}-function Sie(e) {- let t = vw?.video;+function xie(e) {+ let t = yw?.video;if (!t) return;let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();- if (zw && zw.side === n && r - zw.at <= 280) {- Uw(), wre(t, Tw().seekSeconds() * n);+ if (Bw && Bw.side === n && r - Bw.at <= 280) {+ Ww(), Cre(t, Ew().seekSeconds() * n);return;}- Rw && (clearTimeout(Rw), Rw = 0, EC(t)), zw = {+ zw && (clearTimeout(zw), zw = 0, DC(t)), Bw = {side: n,at: r- }, Rw = window.setTimeout(() => {- Rw = 0, zw = null, cw.open && EC(vw?.video);+ }, zw = window.setTimeout(() => {+ zw = 0, Bw = null, lw.open && DC(yw?.video);}, 280);}-function Cie() {- Date.now() < Bw || EC(vw?.video);-}-var Ww = (e) => sw?.bar.toggleAttribute("data-scrubbing", e);-function Gw(e) {- sw && (sw.progress.style.width = `${(e * 100).toFixed(2)}%`);+function Sie() {+ Date.now() < Vw || DC(yw?.video);}+var Gw = (e) => cw?.bar.toggleAttribute("data-scrubbing", e);function Kw(e) {+ cw && (cw.progress.style.width = `${(e * 100).toFixed(2)}%`);+}+function qw(e) {let t = e.target;if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {- Vw = null;+ Hw = null;return;}- let n = vw?.video;- Vw = {+ let n = yw?.video;+ Hw = {x: e.touches[0].clientX,y: e.touches[0].clientY,axis: "",from: n && n.currentTime || 0};}-function qw(e) {- if (!Vw || e.touches.length !== 1) return;- let t = e.touches[0].clientX - Vw.x, n = e.touches[0].clientY - Vw.y;- if (!Vw.axis) {+function Jw(e) {+ if (!Hw || e.touches.length !== 1) return;+ let t = e.touches[0].clientX - Hw.x, n = e.touches[0].clientY - Hw.y;+ if (!Hw.axis) {if (Math.abs(t) < 12 && Math.abs(n) < 12) return;- Vw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Vw.axis === "x" && Ww(!0);+ Hw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Hw.axis === "x" && Gw(!0);}- if (Vw.axis !== "x") return;- let r = vw?.video, i = r && r.duration || 0;- i && (e.preventDefault(), Vw.to = Math.min(i, Math.max(0, Vw.from + t / window.innerWidth * i)), Gw(Vw.to / i));+ if (Hw.axis !== "x") return;+ let r = yw?.video, i = r && r.duration || 0;+ i && (e.preventDefault(), Hw.to = Math.min(i, Math.max(0, Hw.from + t / window.innerWidth * i)), Kw(Hw.to / i));}-function Jw(e) {- if (!Vw) return;- let t = Vw;- if (Vw = null, Bw = Date.now() + 700, Ww(!1), t.axis === "x") {- let e = vw?.video;+function Yw(e) {+ if (!Hw) return;+ let t = Hw;+ if (Hw = null, Vw = Date.now() + 700, Gw(!1), t.axis === "x") {+ let e = yw?.video;e && t.to != null && (e.currentTime = t.to);return;}let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;if (Math.abs(i) > 60) {- Uw(), Fw(i > 0 ? 1 : -1);+ Ww(), Iw(i > 0 ? 1 : -1);return;}- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Sie(n.clientX));+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), xie(n.clientX));}-function Yw() {- Vw = null, Ww(!1);+function Xw() {+ Hw = null, Gw(!1);}-function Xw(e) {+function Zw(e) {let t = Date.now();- t - Hw < 260 || (Hw = t, Fw(e.deltaY > 0 ? 1 : -1));+ t - Uw < 260 || (Uw = t, Iw(e.deltaY > 0 ? 1 : -1));}-function Zw(e) {- let t = sw.bar.getBoundingClientRect();+function Qw(e) {+ let t = cw.bar.getBoundingClientRect();return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));}+function Cie(e) {+ ww?.duration() && (Tw = !0, Gw(!0), e.currentTarget.setPointerCapture(e.pointerId), Kw(Qw(e)), e.preventDefault());+}function wie(e) {- Cw?.duration() && (ww = !0, Ww(!0), e.currentTarget.setPointerCapture(e.pointerId), Gw(Zw(e)), e.preventDefault());+ Tw && Kw(Qw(e));}function Tie(e) {- ww && Gw(Zw(e));-}-function Eie(e) {- if (!ww) return;- ww = !1, Ww(!1);- let t = Cw?.duration();- Cw && t && (Cw.video.currentTime = t * Zw(e));+ if (!Tw) return;+ Tw = !1, Gw(!1);+ let t = ww?.duration();+ ww && t && (ww.video.currentTime = t * Qw(e));}-function Die() {- ww = !1, Ww(!1);+function Eie() {+ Tw = !1, Gw(!1);}-async function Qw(e, t) {- let n = await K(LC, {+async function $w(e, t) {+ let n = await K(RC, {id: e,kind: t- }), r = z.getQueryData(PC(e));- if (!r) return MC(e, {+ }), r = z.getQueryData(FC(e));+ if (!r) return NC(e, {feedback: n.feedback ?? void 0,o_count: n.o_count}), n;@@ -16347,7 +16347,7 @@ async function Qw(e, t) {feedback: n.feedback ?? void 0,o_count: n.o_count};- return z.setQueryData(PC(e), i), MC(e, {+ return z.setQueryData(FC(e), i), NC(e, {feedback: i.feedback,disposal: i.disposal,watch_later: i.watch_later,@@ -16355,7 +16355,7 @@ async function Qw(e, t) {o_count: i.o_count}), n;}-var Oie = [+var Die = [{kind: "dislike",glyph: "thumbs-down",@@ -16372,31 +16372,31 @@ var Oie = [label: "记一次高潮"}];-function $w(e) {- return wS({- queryKey: PC(e ?? 0),- queryFn: ({ signal: t }) => UC(e, t),+function eT(e) {+ return TS({+ queryKey: FC(e ?? 0),+ queryFn: ({ signal: t }) => WC(e, t),enabled: e != null,staleTime: Infinity}).data;}-function kie({ kind: e, glyph: t, label: n, id: r }) {- let i = $w(r), a = DS({+function Oie({ kind: e, glyph: t, label: n, id: r }) {+ let i = eT(r), a = OS({mutationFn: async (t) => {- let n = z.getQueryData(PC(t))?.feedback || null;+ let n = z.getQueryData(FC(t))?.feedback || null;return {- result: await Qw(t, e),+ result: await $w(t, e),before: n};},onSuccess: ({ result: t, before: n }, r) => {- Tw().toast(rw(e, t), { undo: async () => {- e === "o" ? await Qw(r, "o-undo") : (t.feedback && await Qw(r, t.feedback), n && await Qw(r, n));+ Ew().toast(iw(e, t), { undo: async () => {+ e === "o" ? await $w(r, "o-undo") : (t.feedback && await $w(r, t.feedback), n && await $w(r, n));} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {- Fw(1);+ Iw(1);}, 260);},- onError: (e) => Tw().failure("更新反馈", e)+ onError: (e) => Ew().failure("更新反馈", e)}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;return /* @__PURE__ */ (0, V.jsxs)("div", {"data-immerse-action": "",@@ -16427,11 +16427,11 @@ function kie({ kind: e, glyph: t, label: n, id: r }) {})]});}-function Aie({ shown: e }) {- let t = e?.item ?? null, n = $w(t?.id ?? null), r = n ? lie(n) : null, i = Tw(), a = (e) => {- e.preventDefault(), n && (Lw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());+function kie({ shown: e }) {+ let t = e?.item ?? null, n = eT(t?.id ?? null), r = n ? cie(n) : null, i = Ew(), a = (e) => {+ e.preventDefault(), n && (Rw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());}, o = () => {- t && (Lw(), i.openItem(t.id));+ t && (Rw(), i.openItem(t.id));}, s = r ? w(r.name, r.ref, ae(r.name), r.kind || "performer") : "";return /* @__PURE__ */ (0, V.jsxs)("div", {"data-immerse-ui": "",@@ -16460,18 +16460,18 @@ function Aie({ shown: e }) {})]});}-var jie = { __html: Ke("媒体加载中") };-function Mie({ view: e }) {+var Aie = { __html: Ke("媒体加载中") };+function jie({ view: e }) {let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null);(0, B.useLayoutEffect)(() => {let e = t.current;- return sw = {+ return cw = {root: e,track: n.current,bar: r.current,progress: i.current- }, e.addEventListener("touchstart", Kw, { passive: !0 }), e.addEventListener("touchmove", qw, { passive: !1 }), e.addEventListener("touchend", Jw, { passive: !1 }), e.addEventListener("touchcancel", Yw, { passive: !0 }), e.addEventListener("wheel", Xw, { passive: !0 }), () => {- e.removeEventListener("touchstart", Kw), e.removeEventListener("touchmove", qw), e.removeEventListener("touchend", Jw), e.removeEventListener("touchcancel", Yw), e.removeEventListener("wheel", Xw), sw = null;+ }, e.addEventListener("touchstart", qw, { passive: !0 }), e.addEventListener("touchmove", Jw, { passive: !1 }), e.addEventListener("touchend", Yw, { passive: !1 }), e.addEventListener("touchcancel", Xw, { passive: !0 }), e.addEventListener("wheel", Zw, { passive: !0 }), () => {+ e.removeEventListener("touchstart", qw), e.removeEventListener("touchmove", Jw), e.removeEventListener("touchend", Yw), e.removeEventListener("touchcancel", Xw), e.removeEventListener("wheel", Zw), cw = null;};}, []);let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;@@ -16488,10 +16488,10 @@ function Mie({ view: e }) {children: [/* @__PURE__ */ (0, V.jsx)("div", {ref: n,"data-immerse-track": "",- onClick: Cie+ onClick: Sie}), /* @__PURE__ */ (0, V.jsx)("div", {"data-immerse-actions": "",- children: Oie.map((e) => /* @__PURE__ */ (0, V.jsx)(kie, {+ children: Die.map((e) => /* @__PURE__ */ (0, V.jsx)(Oie, {...e,id: a}, e.kind))@@ -16504,7 +16504,7 @@ function Mie({ view: e }) {hidden: e.loading === null,children: [/* @__PURE__ */ (0, V.jsx)("span", {"data-immerse-spinner": "",- dangerouslySetInnerHTML: jie+ dangerouslySetInnerHTML: Aie}), /* @__PURE__ */ (0, V.jsx)("span", { children: e.loading ?? "" })]}),/* @__PURE__ */ (0, V.jsx)("button", {@@ -16512,7 +16512,7 @@ function Mie({ view: e }) {"data-immerse-close": "",title: "关闭","aria-label": "关闭",- onClick: Lw,+ onClick: Rw,children: /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24",children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-x" })@@ -16521,75 +16521,75 @@ function Mie({ view: e }) {/* @__PURE__ */ (0, V.jsx)("div", {ref: r,"data-immerse-bar": "",- onPointerDown: wie,- onPointerMove: Tie,- onPointerUp: Eie,- onPointerCancel: Die,+ onPointerDown: Cie,+ onPointerMove: wie,+ onPointerUp: Tie,+ onPointerCancel: Eie,children: /* @__PURE__ */ (0, V.jsx)("i", { ref: i })}),- /* @__PURE__ */ (0, V.jsx)(Aie, { shown: e.shown })+ /* @__PURE__ */ (0, V.jsx)(kie, { shown: e.shown })]});}-var Nie = {- open: xie,- close: Lw,- isOpen: () => cw.open,- activeVideo: () => cw.open ? vw?.video ?? null : null+var Mie = {+ open: bie,+ close: Rw,+ isOpen: () => lw.open,+ activeVideo: () => lw.open ? yw?.video ?? null : null};-function Pie(e) {- if (!cw.open) return;+function Nie(e) {+ if (!lw.open) return;let t = e.target;- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Fw(1), e.key === "ArrowUp" && Fw(-1));+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Iw(1), e.key === "ArrowUp" && Iw(-1));}-function Fie(e) {- let t = !ow;- return ow = e, t && (document.addEventListener("keydown", Pie), addEventListener("resize", () => {- cw.open && Mw();+function Pie(e) {+ let t = !sw;+ return sw = e, t && (document.addEventListener("keydown", Nie), addEventListener("resize", () => {+ lw.open && Nw();}), addEventListener("pagehide", () => {- yw.forEach((e) => sC(e.session));- })), Nie;+ bw.forEach((e) => cC(e.session));+ })), Mie;}-function Iie() {- let e = (0, B.useSyncExternalStore)(pie, () => cw);- return ow ? /* @__PURE__ */ (0, V.jsx)(Mie, { view: e }) : null;+function Fie() {+ let e = (0, B.useSyncExternalStore)(fie, () => lw);+ return sw ? /* @__PURE__ */ (0, V.jsx)(jie, { view: e }) : null;}//#endregion//#region src/manage-header.ts-var Lie = {+var Iie = {"/junk-files": "垃圾文件","/duplicates": "重复文件","/review": "人工复核","/trash": "回收站","/quality-goals": "高清版","/scraping": "来源和凭证"-}, Rie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), zie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;-function Bie(e) {+}, Lie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Rie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;+function zie(e) {let t = e.sections.find(([t]) => t === e.section);if (!t) return null;- let n = Lie[e.path] ?? "";+ let n = Iie[e.path] ?? "";return {title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],crumb: n,- compact: Rie.has(e.path) || e.section === "configuration",+ compact: Lie.has(e.path) || e.section === "configuration",lede: e.section === "trash" ? e.trash ? {kind: "count",- text: zie(e.trash),+ text: Rie(e.trash),total: e.trash.total} : { kind: "skeleton" } : { kind: "none" }};}-var Vie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";+var Bie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";//#endregion//#region src/react/settings-panel/icon.tsx-function eT({ name: e }) {+function tT({ name: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })});}-function Hie({ name: e }) {+function Vie({ name: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",@@ -16598,37 +16598,37 @@ function Hie({ name: e }) {}//#endregion//#region src/react/manage-header/manage-header-island.tsx-var tT = null, nT = null, rT = /* @__PURE__ */ new Set();-function Uie(e) {- return rT.add(e), () => {- rT.delete(e);+var nT = null, rT = null, iT = /* @__PURE__ */ new Set();+function Hie(e) {+ return iT.add(e), () => {+ iT.delete(e);};}-function Wie() {- for (let e of [...rT]) e();+function Uie() {+ for (let e of [...iT]) e();}-var Gie = { render(e) {- nT = e, (0, $f.flushSync)(Wie);+var Wie = { render(e) {+ rT = e, (0, $f.flushSync)(Uie);} };-function Kie(e) {- return tT = e, nT = null, Gie;+function Gie(e) {+ return nT = e, rT = null, Wie;}-function qie() {- let e = (0, B.useSyncExternalStore)(Uie, () => nT);- return tT && e ? /* @__PURE__ */ (0, V.jsx)(Jie, {- host: tT,+function Kie() {+ let e = (0, B.useSyncExternalStore)(Hie, () => rT);+ return nT && e ? /* @__PURE__ */ (0, V.jsx)(qie, {+ host: nT,props: e}) : null;}-function Jie({ host: e, props: t }) {- let n = Bie(t);+function qie({ host: e, props: t }) {+ let n = zie(t);return n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(Yie, {+ /* @__PURE__ */ (0, V.jsx)(Jie, {host: e,section: t.section,menu: t.menu}),- n.crumb ? /* @__PURE__ */ (0, V.jsx)(Xie, {+ n.crumb ? /* @__PURE__ */ (0, V.jsx)(Yie, {host: e,label: n.crumb}) : null,@@ -16637,29 +16637,29 @@ function Jie({ host: e, props: t }) {"data-compact": n.compact ? "" : void 0,children: n.title}),- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Zie, {+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Xie, {host: e,lede: n.lede})] }) : null;}-var iT = null;-function aT(e, t, n) {+var aT = null;+function oT(e, t, n) {e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);}-function Yie({ host: e, section: t, menu: n }) {+function Jie({ host: e, section: t, menu: n }) {let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = () => {let e = r.current, t = i.current;if (!e || !t) return;let n = e.querySelector("button[aria-pressed=\"true\"]");- n && !n.offsetWidth || (aT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (iT = {+ n && !n.offsetWidth || (oT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (aT = {x: n.offsetLeft,width: n.offsetWidth}));};return (0, B.useLayoutEffect)(() => {let e = r.current, t = i.current;- iT ? aT(t, iT.x, iT.width) : a();+ aT ? oT(t, aT.x, aT.width) : a();let n = 0, o = requestAnimationFrame(() => {t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);}), s = new ResizeObserver(a);@@ -16682,7 +16682,7 @@ function Yie({ host: e, section: t, menu: n }) {"aria-pressed": a,"aria-current": a ? "page" : void 0,onClick: () => e.openManage(n),- children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: i }), /* @__PURE__ */ (0, V.jsx)("span", { children: r })]+ children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: i }), /* @__PURE__ */ (0, V.jsx)("span", { children: r })]}, n);}), /* @__PURE__ */ (0, V.jsx)("span", {ref: i,@@ -16692,7 +16692,7 @@ function Yie({ host: e, section: t, menu: n }) {})});}-function Xie({ host: e, label: t }) {+function Yie({ host: e, label: t }) {return /* @__PURE__ */ (0, V.jsx)("nav", {"data-manage-crumb": "","aria-label": "Breadcrumb",@@ -16702,20 +16702,20 @@ function Xie({ host: e, label: t }) {t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());},children: "数据管理"- }), /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, V.jsx)("li", {+ }), /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, V.jsx)("li", {"aria-current": "true",children: /* @__PURE__ */ (0, V.jsx)("span", { children: t })})] })});}-function Zie({ host: e, lede: t }) {+function Xie({ host: e, lede: t }) {return /* @__PURE__ */ (0, V.jsx)("p", {className: "mono","data-manage-lede": "",children: t.kind === "skeleton" ? /* @__PURE__ */ (0, V.jsx)("span", {"data-trash-lede-skeletons": "",- dangerouslySetInnerHTML: { __html: Vie }- }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Qie, { text: t.text }), t.total ? /* @__PURE__ */ (0, V.jsx)("button", {+ dangerouslySetInnerHTML: { __html: Bie }+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Zie, { text: t.text }), t.total ? /* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-empty-trash": "","data-danger": "",@@ -16725,7 +16725,7 @@ function Zie({ host: e, lede: t }) {}) : null] })});}-function Qie({ text: e }) {+function Zie({ text: e }) {let t = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {qe(t.current, e);@@ -16736,7 +16736,7 @@ function Qie({ text: e }) {}//#endregion//#region node_modules/@remixicon/react/index.mjs-var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16744,7 +16744,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16752,7 +16752,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), oT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), sT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16760,7 +16760,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), sT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), cT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16768,7 +16768,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), cT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), lT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16776,7 +16776,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16784,7 +16784,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), lT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), uT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16792,7 +16792,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16800,7 +16800,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), uT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), dT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16808,7 +16808,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16816,7 +16816,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), dT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), fT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16824,7 +16824,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16832,7 +16832,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), fT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16840,7 +16840,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16848,7 +16848,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16856,7 +16856,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16864,7 +16864,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16872,7 +16872,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16880,7 +16880,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16888,7 +16888,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16896,7 +16896,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16904,7 +16904,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16912,7 +16912,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16920,7 +16920,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16928,7 +16928,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16936,7 +16936,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16944,7 +16944,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16952,7 +16952,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16960,7 +16960,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16968,7 +16968,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16976,7 +16976,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16984,7 +16984,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -16992,7 +16992,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17000,7 +17000,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17008,7 +17008,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17016,7 +17016,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17024,7 +17024,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17032,7 +17032,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), vae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17040,7 +17040,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), yae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), vae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17048,7 +17048,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), bae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), yae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17056,7 +17056,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), xae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), bae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17064,7 +17064,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17072,7 +17072,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17080,7 +17080,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), Sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), xae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17088,7 +17088,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: 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" })), Cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17096,7 +17096,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), wae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+}, B.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), Cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -17104,100 +17104,100 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfill: e,...r,className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Tae = (e, t) => {+}, B.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), wae = (e, t) => {let n = Array(e.length + t.length);for (let t = 0; t < e.length; t++) n[t] = e[t];for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];return n;-}, Eae = (e, t) => ({+}, Tae = (e, t) => ({classGroupId: e,validator: t-}), ET = (e = /* @__PURE__ */ new Map(), t = null, n) => ({+}), DT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({nextPart: e,validators: t,classGroupId: n-}), DT = "-", OT = [], Dae = "arbitrary..", Oae = (e) => {- let t = Aae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;+}), OT = "-", kT = [], Eae = "arbitrary..", Dae = (e) => {+ let t = kae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;return {getClassGroupId: (e) => {- if (e.startsWith("[") && e.endsWith("]")) return kae(e);- let n = e.split(DT);- return kT(n, +(n[0] === "" && n.length > 1), t);+ if (e.startsWith("[") && e.endsWith("]")) return Oae(e);+ let n = e.split(OT);+ return AT(n, +(n[0] === "" && n.length > 1), t);},getConflictingClassGroupIds: (e, t) => {if (t) {let t = r[e], i = n[e];- return t ? i ? Tae(i, t) : t : i || OT;+ return t ? i ? wae(i, t) : t : i || kT;}- return n[e] || OT;+ return n[e] || kT;}};-}, kT = (e, t, n) => {+}, AT = (e, t, n) => {if (e.length - t === 0) return n.classGroupId;let r = e[t], i = n.nextPart.get(r);if (i) {- let n = kT(e, t + 1, i);+ let n = AT(e, t + 1, i);if (n) return n;}let a = n.validators;if (a === null) return;- let o = t === 0 ? e.join(DT) : e.slice(t).join(DT), s = a.length;+ let o = t === 0 ? e.join(OT) : e.slice(t).join(OT), s = a.length;for (let e = 0; e < s; e++) {let t = a[e];if (t.validator(o)) return t.classGroupId;}-}, kae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {+}, Oae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);- return r ? Dae + r : void 0;-})(), Aae = (e) => {+ return r ? Eae + r : void 0;+})(), kae = (e) => {let { theme: t, classGroups: n } = e;- return jae(n, t);-}, jae = (e, t) => {- let n = ET();+ return Aae(n, t);+}, Aae = (e, t) => {+ let n = DT();for (let r in e) {let i = e[r];- AT(i, n, r, t);+ jT(i, n, r, t);}return n;-}, AT = (e, t, n, r) => {+}, jT = (e, t, n, r) => {let i = e.length;for (let a = 0; a < i; a++) {let i = e[a];- Mae(i, t, n, r);+ jae(i, t, n, r);}-}, Mae = (e, t, n, r) => {+}, jae = (e, t, n, r) => {if (typeof e == "string") {- Nae(e, t, n);+ Mae(e, t, n);return;}if (typeof e == "function") {- Pae(e, t, n, r);+ Nae(e, t, n, r);return;}- Fae(e, t, n, r);-}, Nae = (e, t, n) => {- let r = e === "" ? t : jT(t, e);+ Pae(e, t, n, r);+}, Mae = (e, t, n) => {+ let r = e === "" ? t : MT(t, e);r.classGroupId = n;-}, Pae = (e, t, n, r) => {- if (Iae(e)) {- AT(e(r), t, n, r);+}, Nae = (e, t, n, r) => {+ if (Fae(e)) {+ jT(e(r), t, n, r);return;}- t.validators === null && (t.validators = []), t.validators.push(Eae(n, e));-}, Fae = (e, t, n, r) => {+ t.validators === null && (t.validators = []), t.validators.push(Tae(n, e));+}, Pae = (e, t, n, r) => {let i = Object.entries(e), a = i.length;for (let e = 0; e < a; e++) {let [a, o] = i[e];- AT(o, jT(t, a), n, r);+ jT(o, MT(t, a), n, r);}-}, jT = (e, t) => {- let n = e, r = t.split(DT), i = r.length;+}, MT = (e, t) => {+ let n = e, r = t.split(OT), i = r.length;for (let e = 0; e < i; e++) {let t = r[e], i = n.nextPart.get(t);- i || (i = ET(), n.nextPart.set(t, i)), n = i;+ i || (i = DT(), n.nextPart.set(t, i)), n = i;}return n;-}, Iae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Lae = (e) => {+}, Fae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Iae = (e) => {if (e < 1) return {get: () => void 0,set: () => {}@@ -17215,19 +17215,19 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Be in n ? n[e] = t : i(e, t);}};-}, MT = "!", NT = ":", Rae = [], PT = (e, t, n, r, i) => ({+}, NT = "!", PT = ":", Lae = [], FT = (e, t, n, r, i) => ({modifiers: e,hasImportantModifier: t,baseClassName: n,maybePostfixModifierPosition: r,isExternal: i-}), zae = (e) => {+}), Rae = (e) => {let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {let t = [], n = 0, r = 0, i = 0, a, o = e.length;for (let s = 0; s < o; s++) {let o = e[s];if (n === 0 && r === 0) {- if (o === NT) {+ if (o === PT) {t.push(e.slice(i, s)), i = s + 1;continue;}@@ -17239,13 +17239,13 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bo === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;}let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;- s.endsWith(MT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(MT) && (c = s.slice(1), l = !0);+ s.endsWith(NT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(NT) && (c = s.slice(1), l = !0);let u = a && a > i ? a - i : void 0;- return PT(t, l, c, u);+ return FT(t, l, c, u);};if (t) {- let e = t + NT, n = r;- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : PT(Rae, !1, t, void 0, !0);+ let e = t + PT, n = r;+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : FT(Lae, !1, t, void 0, !0);}if (n) {let e = r;@@ -17255,7 +17255,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B});}return r;-}, Bae = (e) => {+}, zae = (e) => {let t = /* @__PURE__ */ new Map();return e.orderSensitiveModifiers.forEach((e, n) => {t.set(e, 1e6 + n);@@ -17267,18 +17267,18 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B}return r.length > 0 && (r.sort(), n.push(...r)), n;};-}, Vae = (e) => ({- cache: Lae(e.cacheSize),- parseClassName: zae(e),- sortModifiers: Bae(e),- postfixLookupClassGroupIds: Hae(e),- ...Oae(e)-}), Hae = (e) => {+}, Bae = (e) => ({+ cache: Iae(e.cacheSize),+ parseClassName: Rae(e),+ sortModifiers: zae(e),+ postfixLookupClassGroupIds: Vae(e),+ ...Dae(e)+}), Vae = (e) => {let t = Object.create(null), n = e.postfixLookupClassGroups;if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;return t;-}, Uae = /\s+/, Wae = (e, t) => {- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Uae), l = "";+}, Hae = /\s+/, Uae = (e, t) => {+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Hae), l = "";for (let e = c.length - 1; e >= 0; --e) {let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);if (u) {@@ -17302,7 +17302,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B}h = !1;}- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + MT : _, y = v + g;+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + NT : _, y = v + g;if (s.indexOf(y) > -1) continue;s.push(y);let b = i(g, h);@@ -17313,34 +17313,34 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bl = t + (l.length > 0 ? " " + l : l);}return l;-}, Gae = (...e) => {+}, Wae = (...e) => {let t = 0, n, r, i = "";- for (; t < e.length;) (n = e[t++]) && (r = FT(n)) && (i && (i += " "), i += r);+ for (; t < e.length;) (n = e[t++]) && (r = IT(n)) && (i && (i += " "), i += r);return i;-}, FT = (e) => {+}, IT = (e) => {if (typeof e == "string") return e;let t, n = "";- for (let r = 0; r < e.length; r++) e[r] && (t = FT(e[r])) && (n && (n += " "), n += t);+ for (let r = 0; r < e.length; r++) e[r] && (t = IT(e[r])) && (n && (n += " "), n += t);return n;-}, IT = (e, ...t) => {- let n, r, i, a, o = (o) => (n = Vae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {+}, LT = (e, ...t) => {+ let n, r, i, a, o = (o) => (n = Bae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {let t = r(e);if (t) return t;- let a = Wae(e, n);+ let a = Uae(e, n);return i(e, a), a;};- return a = o, (...e) => a(Gae(...e));-}, Kae = [], LT = (e) => {- let t = (t) => t[e] || Kae;+ return a = o, (...e) => a(Wae(...e));+}, Gae = [], RT = (e) => {+ let t = (t) => t[e] || Gae;return t.isThemeGetter = !0, t.themeKey = e, t;-}, RT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, qae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Jae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yae = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Xae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Zae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, BT = (e) => qae.test(e), VT = (e) => !!e && !Number.isNaN(Number(e)), HT = (e) => !!e && Number.isInteger(Number(e)), UT = (e) => e.endsWith("%") && VT(e.slice(0, -1)), WT = (e) => Jae.test(e), GT = () => !0, $ae = (e) => Yae.test(e) && !Xae.test(e), KT = () => !1, eoe = (e) => Zae.test(e), toe = (e) => Qae.test(e), noe = (e) => !q(e) && !ZT(e), roe = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), ioe = (e) => tE(e, aE, KT), q = (e) => RT.test(e), qT = (e) => tE(e, oE, $ae), JT = (e) => tE(e, foe, VT), aoe = (e) => tE(e, cE, GT), ooe = (e) => tE(e, sE, KT), YT = (e) => tE(e, rE, KT), soe = (e) => tE(e, iE, toe), XT = (e) => tE(e, lE, eoe), ZT = (e) => zT.test(e), QT = (e) => nE(e, oE), coe = (e) => nE(e, sE), $T = (e) => nE(e, rE), loe = (e) => nE(e, aE), uoe = (e) => nE(e, iE), eE = (e) => nE(e, lE, !0), doe = (e) => nE(e, cE, !0), tE = (e, t, n) => {- let r = RT.exec(e);- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;-}, nE = (e, t, n = !1) => {+}, zT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, BT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jae = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Xae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, VT = (e) => Kae.test(e), HT = (e) => !!e && !Number.isNaN(Number(e)), UT = (e) => !!e && Number.isInteger(Number(e)), WT = (e) => e.endsWith("%") && HT(e.slice(0, -1)), GT = (e) => qae.test(e), KT = () => !0, Qae = (e) => Jae.test(e) && !Yae.test(e), qT = () => !1, $ae = (e) => Xae.test(e), eoe = (e) => Zae.test(e), toe = (e) => !q(e) && !QT(e), noe = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), roe = (e) => nE(e, oE, qT), q = (e) => zT.test(e), JT = (e) => nE(e, sE, Qae), YT = (e) => nE(e, doe, HT), ioe = (e) => nE(e, lE, KT), aoe = (e) => nE(e, cE, qT), XT = (e) => nE(e, iE, qT), ooe = (e) => nE(e, aE, eoe), ZT = (e) => nE(e, uE, $ae), QT = (e) => BT.test(e), $T = (e) => rE(e, sE), soe = (e) => rE(e, cE), eE = (e) => rE(e, iE), coe = (e) => rE(e, oE), loe = (e) => rE(e, aE), tE = (e) => rE(e, uE, !0), uoe = (e) => rE(e, lE, !0), nE = (e, t, n) => {let r = zT.exec(e);+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;+}, rE = (e, t, n = !1) => {+ let r = BT.exec(e);return r ? r[1] ? t(r[1]) : n : !1;-}, rE = (e) => e === "position" || e === "percentage", iE = (e) => e === "image" || e === "url", aE = (e) => e === "length" || e === "size" || e === "bg-size", oE = (e) => e === "length", foe = (e) => e === "number", sE = (e) => e === "family-name", cE = (e) => e === "number" || e === "weight", lE = (e) => e === "shadow", uE = () => {- let e = LT("color"), t = LT("font"), n = LT("text"), r = LT("font-weight"), i = LT("tracking"), a = LT("leading"), o = LT("breakpoint"), s = LT("container"), c = LT("spacing"), l = LT("radius"), u = LT("shadow"), d = LT("inset-shadow"), f = LT("text-shadow"), p = LT("drop-shadow"), m = LT("blur"), h = LT("perspective"), g = LT("aspect"), _ = LT("ease"), v = LT("animate"), y = () => [+}, iE = (e) => e === "position" || e === "percentage", aE = (e) => e === "image" || e === "url", oE = (e) => e === "length" || e === "size" || e === "bg-size", sE = (e) => e === "length", doe = (e) => e === "number", cE = (e) => e === "family-name", lE = (e) => e === "number" || e === "weight", uE = (e) => e === "shadow", dE = () => {+ let e = RT("color"), t = RT("font"), n = RT("text"), r = RT("font-weight"), i = RT("tracking"), a = RT("leading"), o = RT("breakpoint"), s = RT("container"), c = RT("spacing"), l = RT("radius"), u = RT("shadow"), d = RT("inset-shadow"), f = RT("text-shadow"), p = RT("drop-shadow"), m = RT("blur"), h = RT("perspective"), g = RT("aspect"), _ = RT("ease"), v = RT("animate"), y = () => ["auto","avoid","all",@@ -17365,7 +17365,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"left-bottom"], x = () => [...b(),- ZT,+ QT,q], S = () => ["auto",@@ -17378,42 +17378,42 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"contain","none"], w = () => [- ZT,+ QT,q,c], T = () => [- BT,+ VT,"full","auto",...w()], E = () => [- HT,+ UT,"none","subgrid",- ZT,+ QT,q], D = () => ["auto",{ span: ["full",- HT,- ZT,+ UT,+ QT,q] },- HT,- ZT,+ UT,+ QT,q], O = () => [- HT,+ UT,"auto",- ZT,+ QT,q], k = () => ["auto","min","max","fr",- ZT,+ QT,q], A = () => ["start",@@ -17434,7 +17434,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"center-safe","end-safe"], M = () => ["auto", ...w()], N = () => [- BT,+ VT,"auto","full","dvw",@@ -17449,7 +17449,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B...w()], P = () => [s,- BT,+ VT,"screen","full","dvw",@@ -17460,7 +17460,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"fit",...w()], ee = () => [- BT,+ VT,"screen","full","lh",@@ -17473,13 +17473,13 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B...w()], F = () => [e,- ZT,+ QT,q], I = () => [...b(),- $T,- YT,- { position: [ZT, q] }+ eE,+ XT,+ { position: [QT, q] }], te = () => ["no-repeat", { repeat: ["","x",@@ -17490,25 +17490,25 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"auto","cover","contain",- loe,- ioe,- { size: [ZT, q] }+ coe,+ roe,+ { size: [QT, q] }], re = () => [- UT,- QT,- qT+ WT,+ $T,+ JT], ie = () => ["","none","full",l,- ZT,+ QT,q], ae = () => ["",- VT,- QT,- qT+ HT,+ $T,+ JT], oe = () => ["solid","dashed",@@ -17532,32 +17532,32 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"color","luminosity"], ce = () => [- VT,- UT,- $T,- YT+ HT,+ WT,+ eE,+ XT], le = () => ["","none",m,- ZT,+ QT,q], ue = () => ["none",- VT,- ZT,+ HT,+ QT,q], L = () => ["none",- VT,- ZT,+ HT,+ QT,q], de = () => [- VT,- ZT,+ HT,+ QT,q], fe = () => [- BT,+ VT,"full",...w()];@@ -17571,17 +17571,17 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"bounce"],aspect: ["video"],- blur: [WT],- breakpoint: [WT],- color: [GT],- container: [WT],- "drop-shadow": [WT],+ blur: [GT],+ breakpoint: [GT],+ color: [KT],+ container: [GT],+ "drop-shadow": [GT],ease: ["in","out","in-out"],- font: [noe],+ font: [toe],"font-weight": ["thin","extralight",@@ -17593,7 +17593,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"extrabold","black"],- "inset-shadow": [WT],+ "inset-shadow": [GT],leading: ["none","tight",@@ -17610,11 +17610,11 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"distant","none"],- radius: [WT],- shadow: [WT],- spacing: ["px", VT],- text: [WT],- "text-shadow": [WT],+ radius: [GT],+ shadow: [GT],+ spacing: ["px", HT],+ text: [GT],+ "text-shadow": [GT],tracking: ["tighter","tight",@@ -17628,9 +17628,9 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Baspect: [{ aspect: ["auto","square",- BT,+ VT,q,- ZT,+ QT,g] }],container: ["container"],@@ -17638,15 +17638,15 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"","normal","size",- ZT,+ QT,q] }],- "container-named": [roe],+ "container-named": [noe],columns: [{ columns: [- VT,+ HT,"auto",q,- ZT,+ QT,s] }],"break-after": [{ "break-after": y() }],@@ -17743,13 +17743,13 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"collapse"],z: [{ z: [- HT,+ UT,"auto",- ZT,+ QT,q] }],basis: [{ basis: [- BT,+ VT,"full","auto",s,@@ -17767,8 +17767,8 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"wrap-reverse"] }],flex: [{ flex: [+ HT,VT,- BT,"auto","initial","none",@@ -17776,22 +17776,22 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B] }],grow: [{ grow: ["",- VT,- ZT,+ HT,+ QT,q] }],shrink: [{ shrink: ["",- VT,- ZT,+ HT,+ QT,q] }],order: [{ order: [- HT,+ UT,"first","last","none",- ZT,+ QT,q] }],"grid-cols": [{ "grid-cols": E() }],@@ -17899,15 +17899,15 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"font-size": [{ text: ["base",n,- QT,- qT+ $T,+ JT] }],"font-smoothing": ["antialiased", "subpixel-antialiased"],"font-style": ["italic", "not-italic"],"font-weight": [{ font: [r,- doe,- aoe+ uoe,+ ioe] }],"font-stretch": [{ "font-stretch": ["ultra-condensed",@@ -17919,12 +17919,12 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"expanded","extra-expanded","ultra-expanded",- UT,+ WT,q] }],"font-family": [{ font: [- coe,- ooe,+ soe,+ aoe,t] }],"font-features": [{ "font-features": [q] }],@@ -17936,14 +17936,14 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],tracking: [{ tracking: [i,- ZT,+ QT,q] }],"line-clamp": [{ "line-clamp": [- VT,+ HT,"none",- ZT,- JT+ QT,+ YT] }],leading: [{ leading: ["none",@@ -17952,7 +17952,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B] }],"list-image": [{ "list-image": ["none",- ZT,+ QT,q] }],"list-style-position": [{ list: ["inside", "outside"] }],@@ -17960,7 +17960,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"disc","decimal","none",- ZT,+ QT,q] }],"text-alignment": [{ text: [@@ -17981,17 +17981,17 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B],"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],"text-decoration-thickness": [{ decoration: [- VT,+ HT,"from-font","auto",- ZT,- qT+ QT,+ JT] }],"text-decoration-color": [{ decoration: F() }],"underline-offset": [{ "underline-offset": [- VT,+ HT,"auto",- ZT,+ QT,q] }],"text-transform": [@@ -18013,8 +18013,8 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B] }],indent: [{ indent: w() }],"tab-size": [{ tab: [- HT,- ZT,+ UT,+ QT,q] }],"vertical-align": [{ align: [@@ -18026,7 +18026,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"text-bottom","sub","super",- ZT,+ QT,q] }],whitespace: [{ whitespace: [@@ -18055,7 +18055,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B] }],content: [{ content: ["none",- ZT,+ QT,q] }],"bg-attachment": [{ bg: [@@ -18091,24 +18091,24 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"l","tl"] },- HT,- ZT,+ UT,+ QT,q],radial: ["",- ZT,+ QT,q],conic: ["",- HT,- ZT,+ UT,+ QT,q]},- uoe,- soe+ loe,+ ooe] }],"bg-color": [{ bg: F() }],"gradient-from-pos": [{ from: re() }],@@ -18175,15 +18175,15 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"hidden"] }],"outline-offset": [{ "outline-offset": [- VT,- ZT,+ HT,+ QT,q] }],"outline-w": [{ outline: ["",- VT,- QT,- qT+ HT,+ $T,+ JT] }],"outline-color": [{ outline: F() }],shadow: [{ shadow: [@@ -18191,34 +18191,34 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"inner","none",u,- eE,- XT+ tE,+ ZT] }],"shadow-color": [{ shadow: F() }],"inset-shadow": [{ "inset-shadow": ["none",d,- eE,- XT+ tE,+ ZT] }],"inset-shadow-color": [{ "inset-shadow": F() }],"ring-w": [{ ring: ae() }],"ring-w-inset": ["ring-inset"],"ring-color": [{ ring: F() }],- "ring-offset-w": [{ "ring-offset": [VT, qT] }],+ "ring-offset-w": [{ "ring-offset": [HT, JT] }],"ring-offset-color": [{ "ring-offset": F() }],"inset-ring-w": [{ "inset-ring": ae() }],"inset-ring-color": [{ "inset-ring": F() }],"text-shadow": [{ "text-shadow": ["none",f,- eE,- XT+ tE,+ ZT] }],"text-shadow-color": [{ "text-shadow": F() }],opacity: [{ opacity: [- VT,- ZT,+ HT,+ QT,q] }],"mix-blend": [{ "mix-blend": [@@ -18241,7 +18241,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"intersect","exclude"] }],- "mask-image-linear-pos": [{ "mask-linear": [VT] }],+ "mask-image-linear-pos": [{ "mask-linear": [HT] }],"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],"mask-image-linear-from-color": [{ "mask-linear-from": F() }],@@ -18270,7 +18270,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"mask-image-y-to-pos": [{ "mask-y-to": ce() }],"mask-image-y-from-color": [{ "mask-y-from": F() }],"mask-image-y-to-color": [{ "mask-y-to": F() }],- "mask-image-radial": [{ "mask-radial": [ZT, q] }],+ "mask-image-radial": [{ "mask-radial": [QT, q] }],"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],"mask-image-radial-from-color": [{ "mask-radial-from": F() }],@@ -18281,7 +18281,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfarthest: ["side", "corner"]}] }],"mask-image-radial-pos": [{ "mask-radial-at": b() }],- "mask-image-conic-pos": [{ "mask-conic": [VT] }],+ "mask-image-conic-pos": [{ "mask-conic": [HT] }],"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],"mask-image-conic-from-color": [{ "mask-conic-from": F() }],@@ -18305,110 +18305,110 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"mask-type": [{ "mask-type": ["alpha", "luminance"] }],"mask-image": [{ mask: ["none",- ZT,+ QT,q] }],filter: [{ filter: ["","none",- ZT,+ QT,q] }],blur: [{ blur: le() }],brightness: [{ brightness: [- VT,- ZT,+ HT,+ QT,q] }],contrast: [{ contrast: [- VT,- ZT,+ HT,+ QT,q] }],"drop-shadow": [{ "drop-shadow": ["","none",p,- eE,- XT+ tE,+ ZT] }],"drop-shadow-color": [{ "drop-shadow": F() }],grayscale: [{ grayscale: ["",- VT,- ZT,+ HT,+ QT,q] }],"hue-rotate": [{ "hue-rotate": [- VT,- ZT,+ HT,+ QT,q] }],invert: [{ invert: ["",- VT,- ZT,+ HT,+ QT,q] }],saturate: [{ saturate: [- VT,- ZT,+ HT,+ QT,q] }],sepia: [{ sepia: ["",- VT,- ZT,+ HT,+ QT,q] }],"backdrop-filter": [{ "backdrop-filter": ["","none",- ZT,+ QT,q] }],"backdrop-blur": [{ "backdrop-blur": le() }],"backdrop-brightness": [{ "backdrop-brightness": [- VT,- ZT,+ HT,+ QT,q] }],"backdrop-contrast": [{ "backdrop-contrast": [- VT,- ZT,+ HT,+ QT,q] }],"backdrop-grayscale": [{ "backdrop-grayscale": ["",- VT,- ZT,+ HT,+ QT,q] }],"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [- VT,- ZT,+ HT,+ QT,q] }],"backdrop-invert": [{ "backdrop-invert": ["",- VT,- ZT,+ HT,+ QT,q] }],"backdrop-opacity": [{ "backdrop-opacity": [- VT,- ZT,+ HT,+ QT,q] }],"backdrop-saturate": [{ "backdrop-saturate": [- VT,- ZT,+ HT,+ QT,q] }],"backdrop-sepia": [{ "backdrop-sepia": ["",- VT,- ZT,+ HT,+ QT,q] }],"border-collapse": [{ border: ["collapse", "separate"] }],@@ -18425,38 +18425,38 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"shadow","transform","none",- ZT,+ QT,q] }],"transition-behavior": [{ transition: ["normal", "discrete"] }],duration: [{ duration: [- VT,+ HT,"initial",- ZT,+ QT,q] }],ease: [{ ease: ["linear","initial",_,- ZT,+ QT,q] }],delay: [{ delay: [- VT,- ZT,+ HT,+ QT,q] }],animate: [{ animate: ["none",v,- ZT,+ QT,q] }],backface: [{ backface: ["hidden", "visible"] }],perspective: [{ perspective: [h,- ZT,+ QT,q] }],"perspective-origin": [{ "perspective-origin": x() }],@@ -18473,7 +18473,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"skew-x": [{ "skew-x": de() }],"skew-y": [{ "skew-y": de() }],transform: [{ transform: [- ZT,+ QT,q,"","none",@@ -18488,8 +18488,8 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"translate-z": [{ "translate-z": fe() }],"translate-none": ["translate-none"],zoom: [{ zoom: [- HT,- ZT,+ UT,+ QT,q] }],accent: [{ accent: F() }],@@ -18540,7 +18540,7 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"nwse-resize","zoom-in","zoom-out",- ZT,+ QT,q] }],"field-sizing": [{ "field-sizing": ["fixed", "content"] }],@@ -18627,15 +18627,15 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"scroll","contents","transform",- ZT,+ QT,q] }],fill: [{ fill: ["none", ...F()] }],"stroke-w": [{ stroke: [- VT,- QT,- qT,- JT+ HT,+ $T,+ JT,+ YT] }],stroke: [{ stroke: ["none", ...F()] }],"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]@@ -18893,16 +18893,16 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"selection"]};-}, poe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (dE(e, "cacheSize", t), dE(e, "prefix", n), dE(e, "experimentalParseClassName", r), fE(e.theme, a.theme), fE(e.classGroups, a.classGroups), fE(e.conflictingClassGroups, a.conflictingClassGroups), fE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), dE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), dE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), pE(e.theme, i.theme), pE(e.classGroups, i.classGroups), pE(e.conflictingClassGroups, i.conflictingClassGroups), pE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), mE(e, i, "postfixLookupClassGroups"), mE(e, i, "orderSensitiveModifiers"), e), dE = (e, t, n) => {+}, foe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (fE(e, "cacheSize", t), fE(e, "prefix", n), fE(e, "experimentalParseClassName", r), pE(e.theme, a.theme), pE(e.classGroups, a.classGroups), pE(e.conflictingClassGroups, a.conflictingClassGroups), pE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), fE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), fE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), mE(e.theme, i.theme), mE(e.classGroups, i.classGroups), mE(e.conflictingClassGroups, i.conflictingClassGroups), mE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), hE(e, i, "postfixLookupClassGroups"), hE(e, i, "orderSensitiveModifiers"), e), fE = (e, t, n) => {n !== void 0 && (e[t] = n);-}, fE = (e, t) => {- if (t) for (let n in t) dE(e, n, t[n]);}, pE = (e, t) => {- if (t) for (let n in t) mE(e, t, n);-}, mE = (e, t, n) => {+ if (t) for (let n in t) fE(e, n, t[n]);+}, mE = (e, t) => {+ if (t) for (let n in t) hE(e, t, n);+}, hE = (e, t, n) => {let r = t[n];r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);-}, moe = (e, ...t) => typeof e == "function" ? IT(uE, e, ...t) : IT(() => poe(uE(), e), ...t), hoe = [+}, poe = (e, ...t) => typeof e == "function" ? LT(dE, e, ...t) : LT(() => foe(dE(), e), ...t), moe = ["large-title","display-1","display-2",@@ -18916,18 +18916,18 @@ var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"body-2","caption-1","caption-2"-], goe = [+], hoe = ["regular","medium","semibold","bold"-], hE = moe({ extend: { classGroups: { "font-size": [{ text: hoe.flatMap((e) => goe.map((t) => `${e}-${t}`)) }] } } });-function gE(e) {+], gE = poe({ extend: { classGroups: { "font-size": [{ text: moe.flatMap((e) => hoe.map((t) => `${e}-${t}`)) }] } } });+function _E(e) {return e;}//#endregion//#region src/react/boardui/components/base/badges/chip.tsx-var _E = gE({+var vE = _E({base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",variant: {bold: "py-0.5 text-body-medium",@@ -18946,16 +18946,16 @@ var _E = gE({soft: "bg-background-secondary-default text-text-secondary"}});-function vE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {+function yE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {return /* @__PURE__ */ (0, V.jsx)("span", {ref: r,- className: hE(_E.base, _E.variant[e], _E.color[t], n),+ className: gE(vE.base, vE.variant[e], vE.color[t], n),...i});}//#endregion//#region src/react/boardui/components/base/buttons/button.tsx-var yE = gE({+var bE = _E({base: ["inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden","font-sans select-none cursor-pointer",@@ -19014,40 +19014,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadireturn /* @__PURE__ */ (0, V.jsxs)("button", {ref: c,type: s,- className: hE(yE.base, yE.size[t], yE.variant[e], n && yE.iconOnlySize[t], o),+ className: gE(bE.base, bE.size[t], bE.variant[e], n && bE.iconOnlySize[t], o),...l,children: [r ? /* @__PURE__ */ (0, V.jsx)(r, {- className: yE.icon[t],+ className: bE.icon[t],"aria-hidden": !0}) : null,!n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {- className: yE.label[t],+ className: bE.label[t],children: a}),!n && i ? /* @__PURE__ */ (0, V.jsx)(i, {- className: yE.icon[t],+ className: bE.icon[t],"aria-hidden": !0}) : null]});}-function bE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {+function xE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {return /* @__PURE__ */ (0, V.jsxs)("a", {ref: s,- className: hE(yE.base, yE.size[t], yE.variant[e], n && yE.iconOnlySize[t], o),+ className: gE(bE.base, bE.size[t], bE.variant[e], n && bE.iconOnlySize[t], o),...c,children: [r ? /* @__PURE__ */ (0, V.jsx)(r, {- className: yE.icon[t],+ className: bE.icon[t],"aria-hidden": !0}) : null,!n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {- className: yE.label[t],+ className: bE.label[t],children: a}),!n && i ? /* @__PURE__ */ (0, V.jsx)(i, {- className: yE.icon[t],+ className: bE.icon[t],"aria-hidden": !0}) : null]@@ -19055,47 +19055,47 @@ function bE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead}//#endregion//#region src/react/components/card.tsx-var _oe = "min-w-0", voe = {+var goe = "min-w-0", _oe = {filled: "bg-background-secondary-default",outlined: "border border-separator-border bg-background-primary-default",raised: "bg-background-primary-default"-}, yoe = {+}, voe = {default: "rounded-2xl shadow-card",chart: "rounded-2-5xl",surface: "rounded-surface",plain: "rounded-2xl"-}, boe = {+}, yoe = {line: "border border-border-button-default",soft: "border border-separator-border"-}, xoe = {+}, boe = {none: "",default: "p-5"-}, Soe = "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", Coe = "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 xE(e = {}) {+}, xoe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Soe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";+function SE(e = {}) {let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");return [- _oe,- voe[t],- yoe[s],- xoe[n],- a ? boe[a] : "",- r ? Soe : "",- i ? Coe : "",+ goe,+ _oe[t],+ voe[s],+ boe[n],+ a ? yoe[a] : "",+ r ? xoe : "",+ i ? Soe : "",o ?? ""].filter(Boolean).join(" ");}//#endregion//#region src/react/components/empty-state.tsx-var woe = {+var Coe = {page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",plain: "px-6 py-12",inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"};-function SE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {+function CE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {let a = i === "page";return /* @__PURE__ */ (0, V.jsxs)("div", {"data-empty-state": "",- className: `flex flex-col items-center gap-2 text-center ${woe[i]}`,+ className: `flex flex-col items-center gap-2 text-center ${Coe[i]}`,children: [a ? /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,@@ -19125,7 +19125,7 @@ function SE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {}//#endregion//#region src/react/components/loading-dots.tsx-function CE({ label: e, inline: t = !1 }) {+function wE({ label: e, inline: t = !1 }) {let n = /* @__PURE__ */ (0, V.jsxs)("span", {"aria-hidden": !0,className: "inline-flex items-center gap-1",@@ -19191,7 +19191,7 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {}//#endregion//#region src/react/components/page.tsx-function wE({ children: e }) {+function TE({ children: e }) {return /* @__PURE__ */ (0, V.jsx)("div", {className: "mx-auto flex w-full max-w-board flex-col gap-8",children: e@@ -19199,21 +19199,21 @@ function wE({ children: e }) {}//#endregion//#region src/react/components/progress.tsx-var TE = 100, Toe = .4;-function EE({ 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 * TE;+var EE = 100, woe = .4;+function DE({ label: e, value: t, max: n = 100, stops: r = [] }) {+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * EE;return /* @__PURE__ */ (0, V.jsxs)("svg", {role: "progressbar","aria-label": e,"aria-valuemin": 0,"aria-valuemax": n,"aria-valuenow": t,- viewBox: `0 0 ${TE} 1`,+ viewBox: `0 0 ${EE} 1`,preserveAspectRatio: "none",className: "h-1.5 w-full overflow-hidden rounded-full",children: [/* @__PURE__ */ (0, V.jsx)("rect", {- width: TE,+ width: EE,height: 1,className: "fill-background-tertiary-default"}),@@ -19224,7 +19224,7 @@ function EE({ label: e, value: t, max: n = 100, stops: r = [] }) {}),r.map((e) => /* @__PURE__ */ (0, V.jsx)("rect", {x: a(e),- width: Toe,+ width: woe,height: 1,className: "fill-background-secondary-default"}, e))@@ -19241,7 +19241,7 @@ function X(e) {}//#endregion//#region src/react/settings/use-action.ts-function DE(e = "") {+function OE(e = "") {let t = (0, B.useRef)(null), [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(e);(0, B.useEffect)(() => () => t.current?.abort(), []);async function o(e, n, i, o) {@@ -19267,21 +19267,21 @@ function DE(e = "") {}//#endregion//#region src/react/boardui/components/application/settings/settings-rows.tsx-function Eoe({ className: e, children: t }) {+function Toe({ className: e, children: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {- className: hE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),+ className: gE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),children: t});}-function OE({ className: e, children: t }) {+function kE({ className: e, children: t }) {return /* @__PURE__ */ (0, V.jsx)("p", {- className: hE("w-full px-3 text-body-2-medium text-text-secondary", e),+ className: gE("w-full px-3 text-body-2-medium text-text-secondary", e),children: t});}-function kE({ label: e, description: t, children: n }) {+function AE({ label: e, description: t, children: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {- className: hE("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),+ className: gE("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-col",children: [/* @__PURE__ */ (0, V.jsx)("p", {@@ -19296,7 +19296,7 @@ function kE({ label: e, description: t, children: n }) {}//#endregion//#region src/react/boardui/components/base/buttons/link-button.tsx-var AE = gE({+var jE = _E({base: ["inline-flex items-center justify-center gap-1 whitespace-nowrap","font-sans select-none cursor-pointer rounded-sm",@@ -19320,15 +19320,15 @@ var AE = gE({secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")}});-function jE({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {- let c = hE(AE.base, AE.size[t], AE.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+function ME({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {+ let c = gE(jE.base, jE.size[t], jE.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsx)(n, {- className: AE.icon[t],+ className: jE.icon[t],"aria-hidden": !0}) : null,i != null && /* @__PURE__ */ (0, V.jsx)("span", { children: i }),r ? /* @__PURE__ */ (0, V.jsx)(r, {- className: AE.icon[t],+ className: jE.icon[t],"aria-hidden": !0}) : null] });@@ -19355,14 +19355,14 @@ function jE({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili}//#endregion//#region src/react/settings/section.tsx-function ME({ title: e, id: t, aside: n, onSubmit: r, children: i }) {+function NE({ title: e, id: t, aside: n, onSubmit: r, children: i }) {let a = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex w-full flex-wrap items-center justify-between gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(OE, { children: e })+ children: /* @__PURE__ */ (0, V.jsx)(kE, { children: e })}), n]- }) : /* @__PURE__ */ (0, V.jsx)(OE, { children: e }), /* @__PURE__ */ (0, V.jsx)(Eoe, { children: i })] });+ }) : /* @__PURE__ */ (0, V.jsx)(kE, { children: e }), /* @__PURE__ */ (0, V.jsx)(Toe, { children: i })] });return r ? /* @__PURE__ */ (0, V.jsx)("form", {id: t,"aria-label": e,@@ -19377,13 +19377,13 @@ function ME({ title: e, id: t, aside: n, onSubmit: r, children: i }) {children: a});}-function NE({ children: e }) {+function PE({ children: e }) {return /* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-col",children: e});}-function PE({ divided: e = !1, children: t }) {+function FE({ divided: e = !1, children: t }) {return e ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",children: t@@ -19392,7 +19392,7 @@ function PE({ divided: e = !1, children: t }) {children: t});}-function FE({ status: e, children: t }) {+function IE({ status: e, children: t }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",children: [e ? /* @__PURE__ */ (0, V.jsx)("div", {@@ -19401,34 +19401,34 @@ function FE({ status: e, children: t }) {}) : null, t]});}-function IE({ role: e, children: t }) {+function LE({ role: e, children: t }) {return /* @__PURE__ */ (0, V.jsx)("p", {role: e,className: "text-body-2-regular text-text-secondary",children: t});}-function LE({ children: e }) {+function RE({ children: e }) {return /* @__PURE__ */ (0, V.jsx)("p", {role: "alert",className: "text-body-2-regular text-text-error-primary",children: e});}-function RE({ children: e }) {+function zE({ children: e }) {return /* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-medium text-text-primary",children: e});}-function zE({ href: e, children: t, leadingIcon: n }) {- return /* @__PURE__ */ (0, V.jsx)(jE, {+function BE({ href: e, children: t, leadingIcon: n }) {+ return /* @__PURE__ */ (0, V.jsx)(ME, {href: e,target: "_blank",rel: "noopener noreferrer",size: "small",leadingIcon: n,- trailingIcon: hT,+ trailingIcon: gT,className: "min-w-0 max-w-full",children: /* @__PURE__ */ (0, V.jsx)("span", {className: "min-w-0 whitespace-normal break-all",@@ -19436,13 +19436,13 @@ function zE({ href: e, children: t, leadingIcon: n }) {})});}-function BE({ children: e }) {+function VE({ children: e }) {return /* @__PURE__ */ (0, V.jsx)("dl", {className: "flex flex-col",children: e});}-function VE({ term: e, children: t }) {+function HE({ term: e, children: t }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",children: [/* @__PURE__ */ (0, V.jsx)("dt", {@@ -19454,7 +19454,7 @@ function VE({ term: e, children: t }) {})]});}-function HE({ summary: e, defaultOpen: t = !1, children: n }) {+function UE({ summary: e, defaultOpen: t = !1, children: n }) {let r = (0, B.useId)(), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(t);return /* @__PURE__ */ (0, V.jsxs)("details", {ref: (e) => {@@ -19467,7 +19467,7 @@ function HE({ summary: e, defaultOpen: t = !1, children: n }) {e.preventDefault(), !(!i.current || !a.current) && (We(i.current, a.current, !s), c(!s));},className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: [/* @__PURE__ */ (0, V.jsx)(cT, {+ children: [/* @__PURE__ */ (0, V.jsx)(lT, {"aria-hidden": !0,className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"}), e]@@ -19482,7 +19482,7 @@ function HE({ summary: e, defaultOpen: t = !1, children: n }) {})]});}-function Doe({ name: e }) {+function Eoe({ name: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -19491,22 +19491,22 @@ function Doe({ name: e }) {children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })});}-function UE({ mark: e }) {+function WE({ mark: e }) {return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, V.jsx)("img", {src: e,alt: "",width: 16,height: 16,className: "size-4 shrink-0"- }) : /* @__PURE__ */ (0, V.jsx)(Doe, { name: e });+ }) : /* @__PURE__ */ (0, V.jsx)(Eoe, { name: e });}//#endregion//#region src/react/activity/tasks.ts-var WE = "/api/tasks", GE = ["tasks"], Ooe = (e, t) => G(`${WE}?${new URLSearchParams({+var GE = "/api/tasks", KE = ["tasks"], Doe = (e, t) => G(`${GE}?${new URLSearchParams({before_finished_at: e.finished_at || "",before_id: String(e.id)})}`, t);-function KE(...e) {+function qE(...e) {let t = /* @__PURE__ */ new Map();for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);return [...t.values()].sort((e, t) => {@@ -19514,26 +19514,26 @@ function KE(...e) {return n === r ? t.id - e.id : n < r ? 1 : -1;});}-var koe = 2e3, Aoe = 1e4, joe = (e) => e?.running.length ? koe : Aoe, qE = (e) => G(WE, e);-async function Moe(e) {+var Ooe = 2e3, koe = 1e4, Aoe = (e) => e?.running.length ? Ooe : koe, JE = (e) => G(GE, e);+async function joe(e) {await z.fetchQuery({- queryKey: GE,- queryFn: () => qE(e)+ queryKey: KE,+ queryFn: () => JE(e)});}-var JE = {+var YE = {manual: "手动",scheduled: "定时",startup: "启动",cli: "命令行"-}, Noe = {+}, Moe = {pending: "排队中",running: "进行中",succeeded: "已完成",failed: "失败",cancelled: "已取消",interrupted: "被打断"-}, Poe = (e) => Noe[e] || e, Foe = {+}, Noe = (e) => Moe[e] || e, Poe = {checked: "已检查",total: "总数",scanned: "已扫描",@@ -19563,7 +19563,7 @@ var JE = {source: "来源",cover_network: "封面连不上图片主机"};-function Ioe(e) {+function Foe(e) {let t = /* @__PURE__ */ new Map();for (let n of e) {if (!n.followup_key || n.parent_run_id == null) continue;@@ -19572,7 +19572,7 @@ function Ioe(e) {}return t;}-function Loe(e, t) {+function Ioe(e, t) {let n = [], r = /* @__PURE__ */ new Map();for (let i of e) {if (!t(i)) {@@ -19594,19 +19594,19 @@ function Loe(e, t) {}return n;}-var Roe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), YE = (e) => e.status === "pending" || e.status === "running";-function zoe(e) {+var Loe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), XE = (e) => e.status === "pending" || e.status === "running";+function Roe(e) {let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;- return [r, e.error || QE(e.result_summary) || (YE(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");+ return [r, e.error || $E(e.result_summary) || (XE(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");}-function XE(e) {+function ZE(e) {if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";let t = Math.floor(e);if (t < 60) return `${t} 秒`;let n = Math.floor(t / 60);return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;}-function ZE(e) {+function QE(e) {if (!e) return "";let t = new Date(e);return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {@@ -19616,7 +19616,7 @@ function ZE(e) {minute: "2-digit"});}-var Boe = /* @__PURE__ */ new Set([+var zoe = /* @__PURE__ */ new Set(["blocked_by","status","run_id",@@ -19625,22 +19625,22 @@ var Boe = /* @__PURE__ */ new Set(["completed_at","finished_at"]);-function QE(e) {- return Object.entries(e || {}).filter(([e, t]) => !Boe.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Foe[e] || e} ${t}`).join(" · ");+function $E(e) {+ return Object.entries(e || {}).filter(([e, t]) => !zoe.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Poe[e] || e} ${t}`).join(" · ");}//#endregion//#region src/react/activity/downloads-panel.tsx-var $E = "/api/downloads", eD = ["downloads"], Voe = "/api/downloads/cancel", tD = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Hoe = {+var eD = "/api/downloads", tD = ["downloads"], Boe = "/api/downloads/cancel", nD = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Voe = {ingested: "lime",failed: "rose",cancelled: "yellow",stalled: "yellow"-}, Uoe = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, nD = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";-function Woe() {- let e = (0, B.useId)(), t = wS({- queryKey: eD,- queryFn: ({ signal: e }) => G(`${$E}?limit=50`, e),- refetchInterval: (e) => tD(e.state.data)+}, Hoe = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, rD = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";+function Uoe() {+ let e = (0, B.useId)(), t = TS({+ queryKey: tD,+ queryFn: ({ signal: e }) => G(`${eD}?limit=50`, e),+ refetchInterval: (e) => nD(e.state.data)}), n = t.data;return !n?.tasks.length && !t.error ? null : /* @__PURE__ */ (0, V.jsxs)("section", {"aria-labelledby": e,@@ -19658,7 +19658,7 @@ function Woe() {n?.tasks.length ? /* @__PURE__ */ (0, V.jsx)("ul", {"aria-live": "polite",className: "flex min-w-0 flex-col gap-3",- children: n.tasks.map((e) => /* @__PURE__ */ (0, V.jsx)(Goe, {+ children: n.tasks.map((e) => /* @__PURE__ */ (0, V.jsx)(Woe, {task: e,writable: n.available}, e.id))@@ -19666,16 +19666,16 @@ function Woe() {]});}-function Goe({ task: e, writable: t }) {- let n = cS(), r = DE(), [i, a] = (0, B.useState)(!1), o = nD(e), s = e.state === "failed", c = [+function Woe({ task: e, writable: t }) {+ let n = lS(), r = OE(), [i, a] = (0, B.useState)(!1), o = rD(e), s = e.state === "failed", c = [e.provider_label,e.code,e.target,- ZE(e.submitted_at)+ QE(e.submitted_at)].filter(Boolean).join(" · "), l = () => {- n.invalidateQueries({ queryKey: eD });+ n.invalidateQueries({ queryKey: tD });}, u = () => {- r.run("cancel", (t) => K(Voe, { id: e.id }, "POST", t), l);+ r.run("cancel", (t) => K(Boe, { id: e.id }, "POST", t), l);}, d = () => {let t = {magnet: e.source_uri,@@ -19685,14 +19685,14 @@ function Goe({ task: e, writable: t }) {title: e.title,origin: e.origin};- r.run("resubmit", (e) => K($E, t, "POST", e), l);+ r.run("resubmit", (e) => K(eD, t, "POST", e), l);}, f = () => {navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));};return /* @__PURE__ */ (0, V.jsxs)("li", {"data-download-state": e.state,"data-download-id": e.id,- className: xE({+ className: SE({padding: "none",bordered: "line",className: s ? "flex flex-col border-border-error-default" : "flex flex-col"@@ -19704,9 +19704,9 @@ function Goe({ task: e, writable: t }) {className: "flex flex-wrap items-center gap-2",children: [/* @__PURE__ */ (0, V.jsx)("strong", {className: "min-w-0 break-words text-title-1-medium text-text-primary",- children: Uoe(e)- }), /* @__PURE__ */ (0, V.jsx)(vE, {- color: Hoe[e.state] ?? "neutral",+ children: Hoe(e)+ }), /* @__PURE__ */ (0, V.jsx)(yE, {+ color: Voe[e.state] ?? "neutral",children: e.state_label})]}),@@ -19714,7 +19714,7 @@ function Goe({ task: e, writable: t }) {className: "min-w-0 break-words text-caption-1-regular text-text-secondary",children: c}),- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, V.jsx)(EE, {+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, V.jsx)(DE, {label: "远端下载进度",value: Math.round(e.progress * 100),max: 100@@ -19723,7 +19723,7 @@ function Goe({ task: e, writable: t }) {className: "min-w-0 break-all text-caption-1-regular text-text-secondary",children: e.ledger_path}) : null,- r.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: r.error }) : null,+ r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null,/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2 pt-1",children: [@@ -19761,23 +19761,23 @@ function Goe({ task: e, writable: t }) {}//#endregion//#region src/react/activity/activity-page.tsx-var Koe = {+var Goe = {succeeded: "lime",failed: "rose",cancelled: "yellow",interrupted: "yellow"};-function rD({ status: e }) {- return /* @__PURE__ */ (0, V.jsx)(vE, {- color: Koe[e] ?? "neutral",- children: Poe(e)+function iD({ status: e }) {+ return /* @__PURE__ */ (0, V.jsx)(yE, {+ color: Goe[e] ?? "neutral",+ children: Noe(e)});}-function qoe({ rows: e }) {+function Koe({ rows: e }) {return /* @__PURE__ */ (0, V.jsx)("ul", {className: "flex min-w-0 flex-col",children: e.map((e) => {- let t = zoe(e);+ let t = Roe(e);return /* @__PURE__ */ (0, V.jsxs)("li", {"data-status": e.status,"data-followup-key": e.followup_key,@@ -19787,7 +19787,7 @@ function qoe({ rows: e }) {className: "min-w-0 break-words text-caption-1-regular text-text-primary",children: e.task_label}),- /* @__PURE__ */ (0, V.jsx)(rD, { status: e.status }),+ /* @__PURE__ */ (0, V.jsx)(iD, { status: e.status }),t ? /* @__PURE__ */ (0, V.jsx)("span", {className: "min-w-0 break-words text-caption-1-regular text-text-secondary",children: t@@ -19797,12 +19797,12 @@ function qoe({ rows: e }) {})});}-function iD({ run: e, meta: t, children: n, footer: r, followups: i }) {+function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {return /* @__PURE__ */ (0, V.jsxs)("li", {"data-status": e.status,"data-task-key": e.task_key,"data-run-id": e.id,- className: xE({+ className: SE({padding: "none",bordered: "line",className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"@@ -19816,7 +19816,7 @@ function iD({ run: e, meta: t, children: n, footer: r, followups: i }) {children: [/* @__PURE__ */ (0, V.jsx)("strong", {className: "min-w-0 break-words text-title-1-medium text-text-primary",children: e.task_label- }), /* @__PURE__ */ (0, V.jsx)(rD, { status: e.status })]+ }), /* @__PURE__ */ (0, V.jsx)(iD, { status: e.status })]}),/* @__PURE__ */ (0, V.jsx)("p", {className: "text-caption-1-regular text-text-secondary",@@ -19825,7 +19825,7 @@ function iD({ run: e, meta: t, children: n, footer: r, followups: i }) {n]}),- i?.length ? /* @__PURE__ */ (0, V.jsx)(qoe, { rows: i }) : null,+ i?.length ? /* @__PURE__ */ (0, V.jsx)(Koe, { rows: i }) : null,r ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",children: /* @__PURE__ */ (0, V.jsx)("p", {@@ -19836,15 +19836,15 @@ function iD({ run: e, meta: t, children: n, footer: r, followups: i }) {]});}-function Joe({ run: e, followups: t }) {- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = XE(e.elapsed_seconds), o = [JE[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");- return /* @__PURE__ */ (0, V.jsx)(iD, {+function qoe({ run: e, followups: t }) {+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = ZE(e.elapsed_seconds), o = [YE[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");+ return /* @__PURE__ */ (0, V.jsx)(aD, {run: e,meta: o,followups: t,children: n > 0 ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, V.jsx)(EE, {+ children: [/* @__PURE__ */ (0, V.jsx)(DE, {label: i,value: r,max: n@@ -19859,20 +19859,20 @@ function Joe({ run: e, followups: t }) {" 项"]})]- }) : /* @__PURE__ */ (0, V.jsx)(CE, { label: i })+ }) : /* @__PURE__ */ (0, V.jsx)(wE, { label: i })});}-function aD({ run: e, followups: t, runs: n }) {- let r = QE(e.result_summary), i = XE(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [- JE[e.trigger] || e.trigger,+function oD({ run: e, followups: t, runs: n }) {+ let r = $E(e.result_summary), i = ZE(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [+ YE[e.trigger] || e.trigger,`近 ${n.length} 轮`,- `${ZE(a.finished_at)} – ${ZE(e.finished_at)}`+ `${QE(a.finished_at)} – ${QE(e.finished_at)}`] : [- JE[e.trigger] || e.trigger,- ZE(e.finished_at),+ YE[e.trigger] || e.trigger,+ QE(e.finished_at),i && `用时 ${i}`]).filter(Boolean).join(" · ");- return /* @__PURE__ */ (0, V.jsx)(iD, {+ return /* @__PURE__ */ (0, V.jsx)(aD, {run: e,meta: o,footer: e.error,@@ -19883,7 +19883,7 @@ function aD({ run: e, followups: t, runs: n }) {}) : null});}-function oD({ title: e, children: t }) {+function sD({ title: e, children: t }) {let n = (0, B.useId)();return /* @__PURE__ */ (0, V.jsxs)("section", {"aria-labelledby": n,@@ -19895,41 +19895,41 @@ function oD({ title: e, children: t }) {}), t]});}-function sD({ live: e = !1, children: t }) {+function cD({ live: e = !1, children: t }) {return /* @__PURE__ */ (0, V.jsx)("ul", {"aria-live": e ? "polite" : void 0,className: "flex min-w-0 flex-col gap-3",children: t});}-function Yoe() {- let e = wS({- queryKey: GE,- queryFn: ({ signal: e }) => qE(e),- refetchInterval: (e) => joe(e.state.data)+function Joe() {+ let e = TS({+ queryKey: KE,+ queryFn: ({ signal: e }) => JE(e),+ refetchInterval: (e) => Aoe(e.state.data)}), t = e.data, n = t?.finished, [r, i] = (0, B.useState)([]), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(n);- n !== s && (c(n), r.length && s && i(KE(r, s)));- let l = DS({- mutationFn: ({ oldest: e }) => Ooe(e),+ n !== s && (c(n), r.length && s && i(qE(r, s)));+ let l = OS({+ mutationFn: ({ oldest: e }) => Doe(e),onSuccess: (e, { shown: t }) => {- i((n) => KE(n, t, e.finished || [])), o(!!e.finished_has_more);+ i((n) => qE(n, t, e.finished || [])), o(!!e.finished_has_more);}}), u = e.error ? W(e.error) : "";- if (!t) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ if (!t) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",children: u || "读取任务中心失败"}) });- let d = KE(t.finished || [], r), f = [+ let d = qE(t.finished || [], r), f = [...t.running || [],...t.skipped || [],...d- ], p = Ioe(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {+ ], p = Foe(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {!l.isPending && _ && l.mutate({oldest: _,shown: d});- }, b = g.filter((e) => p.get(e.id)?.some(YE)), x = h(t.running || []), S = h(t.skipped || []), C = g.filter((e) => !b.includes(e) && !S.some((t) => t.id === e.id)), w = Loe(C, (e) => Roe(e) && !p.get(e.id)?.length), T = !x.length && !b.length && !S.length && !C.length;- return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [+ }, b = g.filter((e) => p.get(e.id)?.some(XE)), x = h(t.running || []), S = h(t.skipped || []), C = g.filter((e) => !b.includes(e) && !S.some((t) => t.id === e.id)), w = Ioe(C, (e) => Loe(e) && !p.get(e.id)?.length), T = !x.length && !b.length && !S.length && !C.length;+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [u ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",children: u@@ -19938,20 +19938,20 @@ function Yoe() {tone: "warning",children: t.message || "账本上还没有任务中心的表"}) : null,- T ? /* @__PURE__ */ (0, V.jsx)(SE, {+ T ? /* @__PURE__ */ (0, V.jsx)(CE, {shell: "plain",- icon: vT,+ icon: yT,title: "还没有任务记录",children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"}) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(oD, {+ /* @__PURE__ */ (0, V.jsx)(sD, {title: "正在进行",- children: x.length || b.length ? /* @__PURE__ */ (0, V.jsxs)(sD, {+ children: x.length || b.length ? /* @__PURE__ */ (0, V.jsxs)(cD, {live: !0,- children: [x.map((e) => /* @__PURE__ */ (0, V.jsx)(Joe, {+ children: [x.map((e) => /* @__PURE__ */ (0, V.jsx)(qoe, {run: e,followups: p.get(e.id)- }, e.id)), b.map((e) => /* @__PURE__ */ (0, V.jsx)(aD, {+ }, e.id)), b.map((e) => /* @__PURE__ */ (0, V.jsx)(oD, {run: e,followups: p.get(e.id)}, e.id))]@@ -19960,17 +19960,17 @@ function Yoe() {children: "没有任务在跑。"})}),- S.length ? /* @__PURE__ */ (0, V.jsx)(oD, {+ S.length ? /* @__PURE__ */ (0, V.jsx)(sD, {title: "被挡下的",- children: /* @__PURE__ */ (0, V.jsx)(sD, { children: S.map((e) => /* @__PURE__ */ (0, V.jsx)(aD, {+ children: /* @__PURE__ */ (0, V.jsx)(cD, { children: S.map((e) => /* @__PURE__ */ (0, V.jsx)(oD, {run: e,followups: p.get(e.id)}, e.id)) })}) : null,- C.length || v ? /* @__PURE__ */ (0, V.jsxs)(oD, {+ C.length || v ? /* @__PURE__ */ (0, V.jsxs)(sD, {title: "最近完成",children: [- C.length ? /* @__PURE__ */ (0, V.jsx)(sD, { children: w.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(aD, {+ C.length ? /* @__PURE__ */ (0, V.jsx)(cD, { children: w.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(oD, {run: e,runs: t,followups: p.get(e.id)@@ -19982,7 +19982,7 @@ function Yoe() {v ? /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: oT,+ leadingIcon: sT,className: "self-start",...X(l.isPending),onClick: y,@@ -19991,12 +19991,12 @@ function Yoe() {]}) : null] }),- /* @__PURE__ */ (0, V.jsx)(Woe, {})+ /* @__PURE__ */ (0, V.jsx)(Uoe, {})] });}//#endregion//#region src/react/components/use-stuck.ts-function cD(e) {+function lD(e) {(0, B.useEffect)(() => {let t = e.current;if (!t) return;@@ -20014,9 +20014,9 @@ function cD(e) {}//#endregion//#region src/react/components/filter-glass.tsx-function Xoe({ title: e, children: t }) {+function Yoe({ title: e, children: t }) {let n = (0, B.useRef)(null);- return cD(n), /* @__PURE__ */ (0, V.jsxs)("div", {+ return lD(n), /* @__PURE__ */ (0, V.jsxs)("div", {ref: n,role: "group","aria-label": e,@@ -20029,52 +20029,52 @@ function Xoe({ title: e, children: t }) {}), t]});}-function lD({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {+function uD({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {let d = (0, B.useRef)(null);- return cD(d), /* @__PURE__ */ (0, V.jsxs)("div", {+ return lD(d), /* @__PURE__ */ (0, V.jsxs)("div", {ref: d,role: "group","aria-label": e,"data-filter-glass": !0,"data-glass-pane": "",...c,- className: hE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),+ className: gE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),children: [s,/* @__PURE__ */ (0, V.jsx)("div", {role: "group","aria-label": t,"data-filter-row": "top",- className: hE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),+ className: gE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),children: n}),/* @__PURE__ */ (0, V.jsx)("div", {ref: u,"data-filter-row": "bottom","aria-busy": l || void 0,- className: hE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),+ className: gE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),children: r})]});}-var Zoe = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";-function uD({ children: e, pressed: t, onPress: n, className: r, ...i }) {+var Xoe = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";+function dD({ children: e, pressed: t, onPress: n, className: r, ...i }) {return /* @__PURE__ */ (0, V.jsx)("button", {type: "button",...i,"aria-pressed": t,- className: hE(Zoe, r),+ className: gE(Xoe, r),onClick: n,children: e});}-var Qoe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";-function dD({ children: e, onPress: t, busy: n = !1 }) {+var Zoe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";+function fD({ children: e, onPress: t, busy: n = !1 }) {return /* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-glass-pill": "",- className: Qoe,+ className: Zoe,"aria-busy": n || void 0,"aria-disabled": n || void 0,onClick: () => {@@ -20085,7 +20085,7 @@ function dD({ children: e, onPress: t, busy: n = !1 }) {}//#endregion//#region src/react/components/use-view-glide.ts-function $oe(e, t, n) {+function Qoe(e, t, n) {if (!t.contains(e)) return null;let r = 0, i = 0;for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;@@ -20109,11 +20109,11 @@ function $oe(e, t, n) {h: e.offsetHeight};}-function fD(e, t, n, r, { axis: i = "x" } = {}) {+function pD(e, t, n, r, { axis: i = "x" } = {}) {let a = (0, B.useRef)(null), o = (0, B.useCallback)((r, o) => {let s = e.current, c = t.current, l = s?.parentElement;if (!s) return;- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? $oe(u, l, i) : null;+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? Qoe(u, l, i) : null;if (!d || !d.w) {s.hidden = !0;return;@@ -20155,12 +20155,12 @@ function fD(e, t, n, r, { axis: i = "x" } = {}) {}//#endregion//#region node_modules/react-aria-components/dist/private/utils.mjs-var pD = Symbol("default");-function mD({ values: e, children: t }) {+var mD = Symbol("default");+function hD({ values: e, children: t }) {for (let [n, r] of e) t = /*#__PURE__*/ B.createElement(n.Provider, { value: r }, t);return t;}-function hD(e) {+function gD(e) {let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;return (0, B.useMemo)(() => {let e, l, u;@@ -20194,11 +20194,11 @@ function hD(e) {c]);}-function gD(e, t) {+function _D(e, t) {let n = (0, B.useContext)(e);if (t === null) return null;if (n && typeof n == "object" && "slots" in n && n.slots) {- let e = t || pD;+ let e = t || mD;if (!n.slots[e]) {let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`);@@ -20207,8 +20207,8 @@ function gD(e, t) {}return n;}-function _D(e, t, n) {- let { ref: r, ...i } = gD(n, e.slot) || {}, a = Nh((0, B.useMemo)(() => mh(t, r), [t, r])), o = U(i, e);+function vD(e, t, n) {+ let { ref: r, ...i } = _D(n, e.slot) || {}, a = Nh((0, B.useMemo)(() => mh(t, r), [t, r])), o = U(i, e);return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {let n = typeof i.style == "function" ? i.style(t) : i.style, r = {...t.defaultStyle,@@ -20226,7 +20226,7 @@ function _D(e, t, n) {...e.style}), [o, a];}-function vD(e = !0) {+function yD(e = !0) {let [t, n] = (0, B.useState)(e), r = (0, B.useRef)(!1), i = (0, B.useCallback)((e) => {r.current = !0, n(!!e);}, []);@@ -20234,12 +20234,12 @@ function vD(e = !0) {r.current || n(!1);}, []), [i, t];}-function yD(e) {+function bD(e) {let t = /^(data-.*)$/, n = {};for (let r in e) t.test(r) || (n[r] = e[r]);return n;}-function ese(e, t, n) {+function $oe(e, t, n) {let { render: r, ...i } = t, a = (0, B.useRef)(null), o = (0, B.useMemo)(() => mh(n, a), [n, a]);Hp(() => {}, [e, r]);let s = {@@ -20248,19 +20248,19 @@ function ese(e, t, n) {};return r ? r(s, void 0) : /*#__PURE__*/ B.createElement(e, s);}-var bD = {}, xD = new Proxy({}, { get(e, t) {+var xD = {}, SD = new Proxy({}, { get(e, t) {if (typeof t != "string") return;- let n = bD[t];- return n || (n = /*#__PURE__*/ (0, B.forwardRef)(ese.bind(null, t)), bD[t] = n), n;-} }), SD = /*#__PURE__*/ (0, B.createContext)(null), CD = /*#__PURE__*/ (0, B.createContext)(null), wD = /*#__PURE__*/ (0, B.createContext)(null), TD = {+ let n = xD[t];+ return n || (n = /*#__PURE__*/ (0, B.forwardRef)($oe.bind(null, t)), xD[t] = n), n;+} }), CD = /*#__PURE__*/ (0, B.createContext)(null), wD = /*#__PURE__*/ (0, B.createContext)(null), TD = /*#__PURE__*/ (0, B.createContext)(null), ED = {CollectionRoot({ collection: e, renderDropIndicator: t }) {- return ED(e, null, t);+ return DD(e, null, t);},CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {- return ED(e, t, n);+ return DD(e, t, n);}};-function ED(e, t, n) {+function DD(e, t, n) {return dp({items: t ? e.getChildren(t.key) : e,dependencies: [n],@@ -20271,11 +20271,11 @@ function ED(e, t, n) {type: "item",key: t.key,dropPosition: "before"- }), r, tse(e, t, n));+ }), r, ese(e, t, n));}});}-function tse(e, t, n) {+function ese(e, t, n) {let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);let o = t.nextKey == null ? null : e.getItem(t.nextKey);@@ -20294,24 +20294,24 @@ function tse(e, t, n) {}return s;}-var DD = /*#__PURE__*/ (0, B.createContext)(TD);-function OD(e) {+var OD = /*#__PURE__*/ (0, B.createContext)(ED);+function kD(e) {return (0, B.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);}//#endregion//#region node_modules/react-aria-components/dist/private/Label.mjs-var kD = /*#__PURE__*/ (0, B.createContext)({}), nse = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = _D(e, t, kD);- let { elementType: n = "label", ...r } = e, i = xD[n];+var AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = vD(e, t, AD);+ let { elementType: n = "label", ...r } = e, i = SD[n];return /*#__PURE__*/ B.createElement(i, {className: "react-aria-Label",...r,ref: t});-}), rse = /*#__PURE__*/ (0, B.createContext)(null), AD = /*#__PURE__*/ (0, B.createContext)({}), jD = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = _D(e, t, AD);+}), nse = /*#__PURE__*/ (0, B.createContext)(null), jD = /*#__PURE__*/ (0, B.createContext)({}), MD = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = vD(e, t, jD);let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Aee(e, t);- i = ase(i, r);+ i = ise(i, r);let { focusProps: o, isFocused: s, isFocusVisible: c } = ry(e), { hoverProps: l, isHovered: u } = sy({...e,isDisabled: e.isDisabled || r@@ -20322,7 +20322,7 @@ var kD = /*#__PURE__*/ (0, B.createContext)({}), nse = /*#__PURE__*/ Bh(functionisFocusVisible: c,isDisabled: e.isDisabled || !1,isPending: r ?? !1- }, f = hD({+ }, f = gD({...e,values: d,defaultClassName: "react-aria-Button"@@ -20339,7 +20339,7 @@ var kD = /*#__PURE__*/ (0, B.createContext)({}), nse = /*#__PURE__*/ Bh(functionp]);let _ = Eg(e, { global: !0 });- return delete _.onClick, /*#__PURE__*/ B.createElement(xD.button, {+ return delete _.onClick, /*#__PURE__*/ B.createElement(SD.button, {...U(_, f, i, o, l),type: i.type === "submit" && r ? "button" : i.type,id: p,@@ -20353,62 +20353,62 @@ var kD = /*#__PURE__*/ (0, B.createContext)({}), nse = /*#__PURE__*/ Bh(function"data-focused": s || void 0,"data-pending": r || void 0,"data-focus-visible": c || void 0- }, /*#__PURE__*/ B.createElement(rse.Provider, { value: { id: m } }, f.children));-}), ise = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;-function ase(e, t) {+ }, /*#__PURE__*/ B.createElement(nse.Provider, { value: { id: m } }, f.children));+}), rse = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;+function ise(e, t) {if (t) {- for (let t in e) t.startsWith("on") && !ise.test(t) && (e[t] = void 0);+ for (let t in e) t.startsWith("on") && !rse.test(t) && (e[t] = void 0);e.href = void 0, e.target = void 0;}return e;}//#endregion//#region node_modules/react-aria-components/dist/private/Heading.mjs-var MD = /*#__PURE__*/ (0, B.createContext)({}), ND = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = _D(e, t, MD);- let { children: n, level: r = 3, className: i, ...a } = e, o = xD[`h${r}`];+var ND = /*#__PURE__*/ (0, B.createContext)({}), PD = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = vD(e, t, ND);+ let { children: n, level: r = 3, className: i, ...a } = e, o = SD[`h${r}`];return /*#__PURE__*/ B.createElement(o, {...a,ref: t,className: i ?? "react-aria-Heading"}, n);-}), PD = /*#__PURE__*/ (0, B.createContext)({}), ose = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = _D(e, t, PD);- let { elementType: n = "span", ...r } = e, i = xD[n];+}), FD = /*#__PURE__*/ (0, B.createContext)({}), ase = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = vD(e, t, FD);+ let { elementType: n = "span", ...r } = e, i = SD[n];return /*#__PURE__*/ B.createElement(i, {className: "react-aria-Text",...r,ref: t});-}), FD = /*#__PURE__*/ (0, B.createContext)(null), ID = /*#__PURE__*/ (0, B.createContext)(null), LD = /*#__PURE__*/ (0, B.createContext)(null), RD = /*#__PURE__*/ (0, B.createContext)(null), sse = /*#__PURE__*/ (0, B.createContext)(null), zD = /*#__PURE__*/ (0, B.createContext)(null);-function cse(e, t) {- let { validationBehavior: n } = gD(ID) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(sse), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {- ...yD(e),+}), ID = /*#__PURE__*/ (0, B.createContext)(null), LD = /*#__PURE__*/ (0, B.createContext)(null), RD = /*#__PURE__*/ (0, B.createContext)(null), zD = /*#__PURE__*/ (0, B.createContext)(null), ose = /*#__PURE__*/ (0, B.createContext)(null), BD = /*#__PURE__*/ (0, B.createContext)(null);+function sse(e, t) {+ let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(ose), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {+ ...bD(e),children: typeof e.children == "function" || e.children,value: e.value,validationBehavior: r};return [i ? $ee(o, i, a) : N_(o, R_(e), a), a];}-var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {let { inputRef: n = null, ...r } = e;- [e, t] = _D(r, t, LD);- let [i, a] = cse(e, n);- return /*#__PURE__*/ B.createElement(zD.Provider, { value: {+ [e, t] = vD(r, t, RD);+ let [i, a] = sse(e, n);+ return /*#__PURE__*/ B.createElement(BD.Provider, { value: {...i,inputRef: a,defaultClassName: "react-aria-Checkbox",isIndeterminate: e.isIndeterminate,isRequired: e.isRequired- } }, /*#__PURE__*/ B.createElement(use, {+ } }, /*#__PURE__*/ B.createElement(lse, {...e,ref: t}));-}), use = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, B.useContext)(zD), { isFocused: p, isFocusVisible: m, focusProps: h } = ry(), g = a || o, { hoverProps: _, isHovered: v } = sy({+}), lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, B.useContext)(BD), { isFocused: p, isFocusVisible: m, focusProps: h } = ry(), g = a || o, { hoverProps: _, isHovered: v } = sy({...e,isDisabled: g- }), y = hD({+ }), y = gD({...e,defaultClassName: u,values: {@@ -20424,7 +20424,7 @@ var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {isRequired: f || !1}}), b = Eg(e, { global: !0 });- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(xD.label, {+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(SD.label, {...U(b, n, _, y),ref: t,slot: e.slot || void 0,@@ -20442,8 +20442,8 @@ var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {...U(r, h),ref: l})), y.children);-}), BD = /*#__PURE__*/ (0, B.createContext)({}), dse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = _D(e, t, BD);+}), VD = /*#__PURE__*/ (0, B.createContext)({}), use = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = vD(e, t, VD);let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";let { hoverProps: l, isHovered: u } = sy({@@ -20451,7 +20451,7 @@ var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {onHoverChange: o,onHoverEnd: s,isDisabled: n- }), { isFocused: d, isFocusVisible: f, focusProps: p } = ry({ within: !0 }), m = hD({+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ry({ within: !0 }), m = gD({...e,values: {isHovered: u,@@ -20462,7 +20462,7 @@ var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {},defaultClassName: "react-aria-Group"});- return /*#__PURE__*/ B.createElement(xD.div, {+ return /*#__PURE__*/ B.createElement(SD.div, {...U(c, p, l),...m,ref: t,@@ -20475,18 +20475,18 @@ var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {"data-invalid": r || void 0,"data-readonly": i || void 0}, m.children);-}), VD = /*#__PURE__*/ (0, B.createContext)({}), fse = (e) => {+}), HD = /*#__PURE__*/ (0, B.createContext)({}), dse = (e) => {let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;return i;-}, pse = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = _D(e, t, VD);+}, fse = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = vD(e, t, HD);let { hoverProps: n, isHovered: r } = sy({...e,isDisabled: e.disabled}), { isFocused: i, isFocusVisible: a, focusProps: o } = ry({isTextInput: !0,autoFocus: e.autoFocus- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = hD({+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = gD({...e,values: {isHovered: r,@@ -20497,8 +20497,8 @@ var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {},defaultClassName: "react-aria-Input"});- return /*#__PURE__*/ B.createElement(xD.input, {- ...U(fse(e), o, n),+ return /*#__PURE__*/ B.createElement(SD.input, {+ ...U(dse(e), o, n),...c,ref: t,"data-focused": i || void 0,@@ -20507,8 +20507,8 @@ var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {"data-focus-visible": a || void 0,"data-invalid": s || void 0});-}), HD = {};-HD = {+}), UD = {};+UD = {colorSwatchPicker: "تغييرات الألوان",dropzoneLabel: "DropZone",selectPlaceholder: "حدد عنصرًا",@@ -20516,8 +20516,8 @@ HD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs-var UD = {};-UD = {+var WD = {};+WD = {colorSwatchPicker: "Цветови мостри",dropzoneLabel: "DropZone",selectPlaceholder: "Изберете предмет",@@ -20525,8 +20525,8 @@ UD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs-var WD = {};-WD = {+var GD = {};+GD = {colorSwatchPicker: "Vzorky barev",dropzoneLabel: "Místo pro přetažení",selectPlaceholder: "Vyberte položku",@@ -20534,8 +20534,8 @@ WD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs-var GD = {};-GD = {+var KD = {};+KD = {colorSwatchPicker: "Farveprøver",dropzoneLabel: "DropZone",selectPlaceholder: "Vælg et element",@@ -20543,8 +20543,8 @@ GD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs-var KD = {};-KD = {+var qD = {};+qD = {colorSwatchPicker: "Farbfelder",dropzoneLabel: "Ablegebereich",selectPlaceholder: "Element wählen",@@ -20552,8 +20552,8 @@ KD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs-var qD = {};-qD = {+var JD = {};+JD = {colorSwatchPicker: "Χρωματικά δείγματα",dropzoneLabel: "DropZone",selectPlaceholder: "Επιλέξτε ένα αντικείμενο",@@ -20561,8 +20561,8 @@ qD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs-var JD = {};-JD = {+var YD = {};+YD = {selectPlaceholder: "Select an item",tableResizer: "Resizer",dropzoneLabel: "DropZone",@@ -20570,8 +20570,8 @@ JD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs-var YD = {};-YD = {+var XD = {};+XD = {colorSwatchPicker: "Muestras de colores",dropzoneLabel: "DropZone",selectPlaceholder: "Seleccionar un artículo",@@ -20579,8 +20579,8 @@ YD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs-var XD = {};-XD = {+var ZD = {};+ZD = {colorSwatchPicker: "Värvinäidised",dropzoneLabel: "DropZone",selectPlaceholder: "Valige üksus",@@ -20588,8 +20588,8 @@ XD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs-var ZD = {};-ZD = {+var QD = {};+QD = {colorSwatchPicker: "Värimallit",dropzoneLabel: "DropZone",selectPlaceholder: "Valitse kohde",@@ -20597,8 +20597,8 @@ ZD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs-var QD = {};-QD = {+var $D = {};+$D = {colorSwatchPicker: "Échantillons de couleurs",dropzoneLabel: "DropZone",selectPlaceholder: "Sélectionner un élément",@@ -20606,8 +20606,8 @@ QD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs-var $D = {};-$D = {+var eO = {};+eO = {colorSwatchPicker: "דוגמיות צבע",dropzoneLabel: "DropZone",selectPlaceholder: "בחר פריט",@@ -20615,8 +20615,8 @@ $D = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs-var eO = {};-eO = {+var tO = {};+tO = {colorSwatchPicker: "Uzorci boja",dropzoneLabel: "Zona spuštanja",selectPlaceholder: "Odaberite stavku",@@ -20624,8 +20624,8 @@ eO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs-var tO = {};-tO = {+var nO = {};+nO = {colorSwatchPicker: "Színtárak",dropzoneLabel: "DropZone",selectPlaceholder: "Válasszon ki egy elemet",@@ -20633,8 +20633,8 @@ tO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs-var nO = {};-nO = {+var rO = {};+rO = {colorSwatchPicker: "Campioni di colore",dropzoneLabel: "Zona di rilascio",selectPlaceholder: "Seleziona un elemento",@@ -20642,8 +20642,8 @@ nO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs-var rO = {};-rO = {+var iO = {};+iO = {colorSwatchPicker: "カラースウォッチ",dropzoneLabel: "ドロップゾーン",selectPlaceholder: "項目を選択",@@ -20651,8 +20651,8 @@ rO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs-var iO = {};-iO = {+var aO = {};+aO = {colorSwatchPicker: "색상 견본",dropzoneLabel: "드롭 영역",selectPlaceholder: "항목 선택",@@ -20660,8 +20660,8 @@ iO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs-var aO = {};-aO = {+var oO = {};+oO = {colorSwatchPicker: "Spalvų pavyzdžiai",dropzoneLabel: "„DropZone“",selectPlaceholder: "Pasirinkite elementą",@@ -20669,8 +20669,8 @@ aO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs-var oO = {};-oO = {+var sO = {};+sO = {colorSwatchPicker: "Krāsu paraugi",dropzoneLabel: "DropZone",selectPlaceholder: "Izvēlēties vienumu",@@ -20678,8 +20678,8 @@ oO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs-var sO = {};-sO = {+var cO = {};+cO = {colorSwatchPicker: "Fargekart",dropzoneLabel: "Droppsone",selectPlaceholder: "Velg et element",@@ -20687,8 +20687,8 @@ sO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs-var cO = {};-cO = {+var lO = {};+lO = {colorSwatchPicker: "kleurstalen",dropzoneLabel: "DropZone",selectPlaceholder: "Selecteer een item",@@ -20696,8 +20696,8 @@ cO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs-var lO = {};-lO = {+var uO = {};+uO = {colorSwatchPicker: "Próbki kolorów",dropzoneLabel: "Strefa upuszczania",selectPlaceholder: "Wybierz element",@@ -20705,8 +20705,8 @@ lO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs-var uO = {};-uO = {+var dO = {};+dO = {colorSwatchPicker: "Amostras de cores",dropzoneLabel: "DropZone",selectPlaceholder: "Selecione um item",@@ -20714,8 +20714,8 @@ uO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs-var dO = {};-dO = {+var fO = {};+fO = {colorSwatchPicker: "Amostras de cores",dropzoneLabel: "DropZone",selectPlaceholder: "Selecione um item",@@ -20723,8 +20723,8 @@ dO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs-var fO = {};-fO = {+var pO = {};+pO = {colorSwatchPicker: "Specimene de culoare",dropzoneLabel: "Zonă de plasare",selectPlaceholder: "Selectați un element",@@ -20732,8 +20732,8 @@ fO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs-var pO = {};-pO = {+var mO = {};+mO = {colorSwatchPicker: "Цветовые образцы",dropzoneLabel: "DropZone",selectPlaceholder: "Выберите элемент",@@ -20741,8 +20741,8 @@ pO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs-var mO = {};-mO = {+var hO = {};+hO = {colorSwatchPicker: "Vzorkovníky farieb",dropzoneLabel: "DropZone",selectPlaceholder: "Vyberte položku",@@ -20750,8 +20750,8 @@ mO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs-var hO = {};-hO = {+var gO = {};+gO = {colorSwatchPicker: "Barvne palete",dropzoneLabel: "DropZone",selectPlaceholder: "Izberite element",@@ -20759,8 +20759,8 @@ hO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs-var gO = {};-gO = {+var _O = {};+_O = {colorSwatchPicker: "Uzorci boje",dropzoneLabel: "DropZone",selectPlaceholder: "Izaberite stavku",@@ -20768,8 +20768,8 @@ gO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs-var _O = {};-_O = {+var vO = {};+vO = {colorSwatchPicker: "Färgrutor",dropzoneLabel: "DropZone",selectPlaceholder: "Välj en artikel",@@ -20777,8 +20777,8 @@ _O = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs-var vO = {};-vO = {+var yO = {};+yO = {colorSwatchPicker: "Renk örnekleri",dropzoneLabel: "Bırakma Bölgesi",selectPlaceholder: "Bir öğe seçin",@@ -20786,8 +20786,8 @@ vO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs-var yO = {};-yO = {+var bO = {};+bO = {colorSwatchPicker: "Зразки кольорів",dropzoneLabel: "DropZone",selectPlaceholder: "Виберіть елемент",@@ -20795,8 +20795,8 @@ yO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs-var bO = {};-bO = {+var xO = {};+xO = {colorSwatchPicker: "颜色色板",dropzoneLabel: "放置区域",selectPlaceholder: "选择一个项目",@@ -20804,8 +20804,8 @@ bO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs-var xO = {};-xO = {+var SO = {};+SO = {colorSwatchPicker: "色票",dropzoneLabel: "放置區",selectPlaceholder: "選取項目",@@ -20813,52 +20813,52 @@ xO = {};//#endregion//#region node_modules/react-aria-components/dist/private/intlStrings.mjs-var SO = {};-SO = {- "ar-AE": HD,- "bg-BG": UD,- "cs-CZ": WD,- "da-DK": GD,- "de-DE": KD,- "el-GR": qD,- "en-US": JD,- "es-ES": YD,- "et-EE": XD,- "fi-FI": ZD,- "fr-FR": QD,- "he-IL": $D,- "hr-HR": eO,- "hu-HU": tO,- "it-IT": nO,- "ja-JP": rO,- "ko-KR": iO,- "lt-LT": aO,- "lv-LV": oO,- "nb-NO": sO,- "nl-NL": cO,- "pl-PL": lO,- "pt-BR": uO,- "pt-PT": dO,- "ro-RO": fO,- "ru-RU": pO,- "sk-SK": mO,- "sl-SI": hO,- "sr-SP": gO,- "sv-SE": _O,- "tr-TR": vO,- "uk-UA": yO,- "zh-CN": bO,- "zh-TW": xO+var CO = {};+CO = {+ "ar-AE": UD,+ "bg-BG": WD,+ "cs-CZ": GD,+ "da-DK": KD,+ "de-DE": qD,+ "el-GR": JD,+ "en-US": YD,+ "es-ES": XD,+ "et-EE": ZD,+ "fi-FI": QD,+ "fr-FR": $D,+ "he-IL": eO,+ "hr-HR": tO,+ "hu-HU": nO,+ "it-IT": rO,+ "ja-JP": iO,+ "ko-KR": aO,+ "lt-LT": oO,+ "lv-LV": sO,+ "nb-NO": cO,+ "nl-NL": lO,+ "pl-PL": uO,+ "pt-BR": dO,+ "pt-PT": fO,+ "ro-RO": pO,+ "ru-RU": mO,+ "sk-SK": hO,+ "sl-SI": gO,+ "sr-SP": _O,+ "sv-SE": vO,+ "tr-TR": yO,+ "uk-UA": bO,+ "zh-CN": xO,+ "zh-TW": SO};//#endregion//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs-var CO = /*#__PURE__*/ (0, B.createContext)({}), wO = /*#__PURE__*/ (0, B.createContext)(null), mse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { render: n } = (0, B.useContext)(wO);+var wO = /*#__PURE__*/ (0, B.createContext)({}), TO = /*#__PURE__*/ (0, B.createContext)(null), pse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { render: n } = (0, B.useContext)(TO);return /*#__PURE__*/ B.createElement(B.Fragment, null, n(e, t));});-function TO(e, t) {+function EO(e, t) {let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, B.useCallback)((e) => {- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ B.createElement(mse, { target: e });+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ B.createElement(pse, { target: e });}, [t?.target,r,@@ -20866,7 +20866,7 @@ function TO(e, t) {]);return e?.useDropIndicator ? i : void 0;}-function EO(e, t, n) {+function DO(e, t, n) {let r = e.focusedKey, i = null;if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {let e = n.collection.getKeyAfter(i), t = null;@@ -20889,14 +20889,14 @@ function EO(e, t, n) {}//#endregion//#region node_modules/react-aria-components/dist/private/Header.mjs-var DO = /*#__PURE__*/ (0, B.createContext)({}), hse = /*#__PURE__*/ (0, B.createContext)(null);-function OO(e) {+var OO = /*#__PURE__*/ (0, B.createContext)({}), mse = /*#__PURE__*/ (0, B.createContext)(null);+function kO(e) {let t = (0, B.useRef)({});- return /*#__PURE__*/ B.createElement(hse.Provider, { value: t }, e.children);+ return /*#__PURE__*/ B.createElement(mse.Provider, { value: t }, e.children);}//#endregion//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs-var kO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), AO = /*#__PURE__*/ (0, B.createContext)({}), gse = /*#__PURE__*/ tg(class extends tp {+var AO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), jO = /*#__PURE__*/ (0, B.createContext)({}), hse = /*#__PURE__*/ tg(class extends tp {static {this.type = "separator";}@@ -20909,10 +20909,10 @@ var kO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), AO = /*#__PURE_return null;}}, function(e, t) {- [e, t] = _D(e, t, AO);+ [e, t] = vD(e, t, jO);let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";c === "hr" && r === "vertical" && (c = "div");- let l = xD[c], { separatorProps: u } = ene({+ let l = SD[c], { separatorProps: u } = $te({...s,elementType: n,orientation: r@@ -20928,13 +20928,13 @@ var kO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), AO = /*#__PURE_});//#endregion//#region node_modules/react-aria/dist/private/utils/inertValue.mjs-function jO(e) {+function MO(e) {let t = B.version.split(".");return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;}//#endregion//#region node_modules/react-stately/dist/private/list/ListCollection.mjs-var MO = class {+var NO = class {constructor(e) {this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;let t = (e) => {@@ -20978,20 +20978,20 @@ var MO = class {getChildren(e) {return this.keyMap.get(e)?.childNodes || [];}-}, NO = class e extends Set {+}, PO = class e extends Set {constructor(t, n, r) {super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);}};//#endregion//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs-function _se(e, t) {+function gse(e, t) {if (e.size !== t.size) return !1;for (let n of e) if (!t.has(n)) return !1;return !0;}-function PO(e) {- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, B.useRef)(!1), [, s] = (0, B.useState)(!1), c = (0, B.useRef)(null), l = (0, B.useRef)(null), [, u] = (0, B.useState)(null), [d, f] = L_((0, B.useMemo)(() => FO(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => FO(e.defaultSelectedKeys, new NO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, B.useState)(i);+function FO(e) {+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, B.useRef)(!1), [, s] = (0, B.useState)(!1), c = (0, B.useRef)(null), l = (0, B.useRef)(null), [, u] = (0, B.useState)(null), [d, f] = L_((0, B.useMemo)(() => IO(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => IO(e.defaultSelectedKeys, new PO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, B.useState)(i);i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");let g = (0, B.useRef)(i);return (0, B.useEffect)(() => {@@ -21018,18 +21018,18 @@ function PO(e) {},selectedKeys: d,setSelectedKeys(e) {- (r || !_se(e, d)) && f(e);+ (r || !gse(e, d)) && f(e);},disabledKeys: p,disabledBehavior: a};}-function FO(e, t) {- return e ? e === "all" ? "all" : new NO(e) : t;+function IO(e, t) {+ return e ? e === "all" ? "all" : new PO(e) : t;}//#endregion//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs-var IO = class e {+var LO = class e {constructor(e, t, n) {this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;}@@ -21112,10 +21112,10 @@ var IO = class e {let t = this.getKey(e);if (t == null) return;let n;- if (this.state.selectedKeys === "all") n = new NO([t], t, t);+ if (this.state.selectedKeys === "all") n = new PO([t], t, t);else {let e = this.state.selectedKeys, r = e.anchorKey ?? t;- n = new NO(e, r, t);+ n = new PO(e, r, t);for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);}@@ -21149,19 +21149,19 @@ var IO = class e {}let t = this.getKey(e);if (t == null) return;- let n = new NO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);+ let n = new PO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);}replaceSelection(e) {if (this.selectionMode === "none") return;let t = this.getKey(e);if (t == null) return;- let n = this.canSelectItem(t) ? new NO([t], t, t) : new NO();+ let n = this.canSelectItem(t) ? new PO([t], t, t) : new PO();this.state.setSelectedKeys(n);}setSelectedKeys(e) {if (this.selectionMode === "none") return;- let t = new NO();+ let t = new PO();for (let n of e) {let e = this.getKey(n);if (e != null && (t.add(e), this.selectionMode === "single")) break;@@ -21184,7 +21184,7 @@ var IO = class e {!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");}clearSelection() {- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new NO());+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new PO());}toggleSelectAll() {this.isSelectAll ? this.clearSelection() : this.selectAll();@@ -21225,9 +21225,9 @@ var IO = class e {fullCollection: this.fullCollection ?? this.collection});}-}, vse = class {+}, _se = class {build(e, t) {- return this.context = t, LO(() => this.iterateCollection(e));+ return this.context = t, RO(() => this.iterateCollection(e));}*iterateCollection(e) {let { children: t, items: n } = e;@@ -21309,10 +21309,10 @@ var IO = class e {...a,key: l,index: s,- wrapper: yse(e.wrapper, a.wrapper)+ wrapper: vse(e.wrapper, a.wrapper)}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];for (let t of u) {- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${RO(t.type)}> in <${RO(r?.type ?? "unknown parent type")}>. Only <${RO(e.type)}> is supported.`);+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${zO(t.type)}> in <${zO(r?.type ?? "unknown parent type")}>. Only <${zO(e.type)}> is supported.`);s++, yield t;}c = o.next(u);@@ -21334,7 +21334,7 @@ var IO = class e {wrapper: e.wrapper,shouldInvalidate: e.shouldInvalidate,hasChildNodes: e.hasChildNodes || !1,- childNodes: LO(function* () {+ childNodes: RO(function* () {if (!e.hasChildNodes || !e.childNodes) return;let n = 0;for (let r of e.childNodes()) {@@ -21353,7 +21353,7 @@ var IO = class e {this.cache = /* @__PURE__ */ new WeakMap();}};-function LO(e) {+function RO(e) {let t = [], n = null;return { *[Symbol.iterator]() {for (let e of t) yield e;@@ -21361,18 +21361,18 @@ function LO(e) {for (let e of n) t.push(e), yield e;} };}-function yse(e, t) {+function vse(e, t) {if (e && t) return (n) => e(t(n));if (e) return e;if (t) return t;}-function RO(e) {+function zO(e) {return e[0].toUpperCase() + e.slice(1);}//#endregion//#region node_modules/react-stately/dist/private/collections/useCollection.mjs-function zO(e, t, n) {- let r = (0, B.useMemo)(() => new vse(), []), { children: i, items: a, collection: o } = e;+function BO(e, t, n) {+ let r = (0, B.useMemo)(() => new _se(), []), { children: i, items: a, collection: o } = e;return (0, B.useMemo)(() => o || t(r.build({children: i,items: a@@ -21387,27 +21387,27 @@ function zO(e, t, n) {}//#endregion//#region node_modules/react-stately/dist/private/list/useListState.mjs-function BO(e) {- let { filter: t, layoutDelegate: n } = e, r = PO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = zO(e, (0, B.useCallback)((e) => t ? new MO(t(e)) : new MO(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new IO(a, r, { layoutDelegate: n }), [+function VO(e) {+ let { filter: t, layoutDelegate: n } = e, r = FO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = BO(e, (0, B.useCallback)((e) => t ? new NO(t(e)) : new NO(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new LO(a, r, { layoutDelegate: n }), [a,r,n]);- return VO(a, o), {+ return HO(a, o), {collection: a,disabledKeys: i,selectionManager: o};}-function bse(e, t) {+function yse(e, t) {let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);- return VO(n, r), {+ return HO(n, r), {collection: n,selectionManager: r,disabledKeys: e.disabledKeys};}-function VO(e, t) {+function HO(e, t) {let n = (0, B.useRef)(null);(0, B.useEffect)(() => {if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {@@ -21435,7 +21435,7 @@ function VO(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs-function HO(e, t) {+function UO(e, t) {let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, B.useRef)(null), s = ug((e) => {for (let t of e) t.isIntersecting && r && r();});@@ -21459,42 +21459,42 @@ function HO(e, t) {}//#endregion//#region node_modules/react-aria-components/dist/private/ListBox.mjs-var UO = /*#__PURE__*/ (0, B.createContext)(null), WO = /*#__PURE__*/ (0, B.createContext)(null), xse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = _D(e, t, UO);- let n = (0, B.useContext)(WO);- return n ? /*#__PURE__*/ B.createElement(GO, {+var WO = /*#__PURE__*/ (0, B.createContext)(null), GO = /*#__PURE__*/ (0, B.createContext)(null), bse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = vD(e, t, WO);+ let n = (0, B.useContext)(GO);+ return n ? /*#__PURE__*/ B.createElement(KO, {state: n,props: e,listBoxRef: t- }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Sse, {+ }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(xse, {props: e,listBoxRef: t,collection: n}));});-function Sse({ props: e, listBoxRef: t, collection: n }) {+function xse({ props: e, listBoxRef: t, collection: n }) {e = {...e,collection: n,children: null,items: null};- let { layoutDelegate: r } = (0, B.useContext)(DD), i = BO({+ let { layoutDelegate: r } = (0, B.useContext)(OD), i = VO({...e,layoutDelegate: r});- return /*#__PURE__*/ B.createElement(GO, {+ return /*#__PURE__*/ B.createElement(KO, {state: i,props: e,listBoxRef: t});}-function GO({ state: e, props: t, listBoxRef: n }) {- [t, n] = _D(t, n, SD);- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = bse(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vg(), { disabledBehavior: p, disabledKeys: m } = l, h = Xv({+function KO({ state: e, props: t, listBoxRef: n }) {+ [t, n] = vD(t, n, CD);+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = yse(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vg(), { disabledBehavior: p, disabledKeys: m } = l, h = Xv({usage: "search",sensitivity: "base"- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, B.useContext)(DD), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, B.useContext)(OD), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({collection: c,collator: h,ref: n,@@ -21555,7 +21555,7 @@ function GO({ state: e, props: t, listBoxRef: n }) {layout: t.layout || "stack",orientation: a,state: s- }, N = hD({+ }, N = gD({...t,children: void 0,defaultClassName: "react-aria-ListBox",@@ -21566,7 +21566,7 @@ function GO({ state: e, props: t, listBoxRef: n }) {style: { display: "contents" }}, t.renderEmptyState(M)));let ee = Eg(t, { global: !0 });- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(xD.div, {+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(SD.div, {...U(ee, N, x, O, w?.collectionProps),ref: n,slot: t.slot || void 0,@@ -21577,52 +21577,52 @@ function GO({ state: e, props: t, listBoxRef: n }) {"data-focus-visible": A || void 0,"data-layout": t.layout || "stack","data-orientation": a- }, /*#__PURE__*/ B.createElement(mD, { values: [- [UO, t],- [WO, s],- [CO, {+ }, /*#__PURE__*/ B.createElement(hD, { values: [+ [WO, t],+ [GO, s],+ [wO, {dragAndDropHooks: r,dragState: S,dropState: C}],- [AO, { elementType: "div" }],- [wO, { render: Tse }],- [wD, {+ [jO, { elementType: "div" }],+ [TO, { render: wse }],+ [TD, {name: "ListBoxSection",- render: Cse+ render: Sse}]- ] }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(y, {+ ] }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(y, {collection: c,scrollRef: n,- persistedKeys: EO(l, r, C),- renderDropIndicator: TO(r, C)+ persistedKeys: DO(l, r, C),+ renderDropIndicator: EO(r, C)}))), P, E));}-function Cse(e, t, n, r = "react-aria-ListBoxSection") {- let i = (0, B.useContext)(WO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(CO), { CollectionBranch: s } = (0, B.useContext)(DD), [c, l] = vD(), { headingProps: u, groupProps: d } = Dte({+function Sse(e, t, n, r = "react-aria-ListBoxSection") {+ let i = (0, B.useContext)(GO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(wO), { CollectionBranch: s } = (0, B.useContext)(OD), [c, l] = yD(), { headingProps: u, groupProps: d } = Dte({heading: l,"aria-label": e["aria-label"] ?? void 0- }), f = hD({+ }), f = gD({...e,id: void 0,children: void 0,defaultClassName: r,values: void 0}), p = Eg(e, { global: !0 });- return delete p.id, /*#__PURE__*/ B.createElement(xD.section, {+ return delete p.id, /*#__PURE__*/ B.createElement(SD.section, {...U(p, f, d),ref: t- }, /*#__PURE__*/ B.createElement(DO.Provider, { value: {+ }, /*#__PURE__*/ B.createElement(OO.Provider, { value: {...u,ref: c} }, /*#__PURE__*/ B.createElement(s, {collection: i.collection,parent: n,- renderDropIndicator: TO(a, o)+ renderDropIndicator: EO(a, o)})));}-var wse = /*#__PURE__*/ tg(ip, function(e, t, n) {- let r = Nh(t), i = (0, B.useContext)(WO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(CO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({+var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {+ let r = Nh(t), i = (0, B.useContext)(GO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(wO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({key: n.key,"aria-label": e?.["aria-label"]}, i, r), { hoverProps: p, isHovered: m } = sy({@@ -21641,7 +21641,7 @@ var wse = /*#__PURE__*/ tg(ip, function(e, t, n) {key: n.key,dropPosition: "on"} }, s, r));- let y = o && o.isDragging(n.key), b = hD({+ let y = o && o.isDragging(n.key), b = gD({...e,id: void 0,children: e.children,@@ -21659,7 +21659,7 @@ var wse = /*#__PURE__*/ tg(ip, function(e, t, n) {(0, B.useEffect)(() => {n.textValue;}, [n.textValue]);- let x = e.href ? xD.a : xD.div, S = Eg(e, { global: !0 });+ let x = e.href ? SD.a : SD.div, S = Eg(e, { global: !0 });return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ B.createElement(x, {...U(S, b, l, p, h, g, _?.dragProps, v?.dropProps),ref: r,@@ -21673,29 +21673,29 @@ var wse = /*#__PURE__*/ tg(ip, function(e, t, n) {"data-dragging": y || void 0,"data-drop-target": v?.isDropTarget || void 0,"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode- }, /*#__PURE__*/ B.createElement(mD, { values: [[PD, { slots: {- [pD]: u,+ }, /*#__PURE__*/ B.createElement(hD, { values: [[FD, { slots: {+ [mD]: u,label: u,description: d- } }], [kO, { isSelected: f.isSelected }]] }, b.children));+ } }], [AO, { isSelected: f.isSelected }]] }, b.children));});-function Tse(e, t) {+function wse(e, t) {t = Nh(t);- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(CO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);- return a ? null : /*#__PURE__*/ B.createElement(Dse, {+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(wO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);+ return a ? null : /*#__PURE__*/ B.createElement(Ese, {...e,dropIndicatorProps: i,isDropTarget: o,ref: t});}-function Ese(e, t) {- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = hD({+function Tse(e, t) {+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = gD({...i,defaultClassName: "react-aria-DropIndicator",values: { isDropTarget: r }});- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xD.div, {+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {...n,...a,role: "option",@@ -21703,10 +21703,10 @@ function Ese(e, t) {"data-drop-target": r || void 0}));}-var Dse = /*#__PURE__*/ (0, B.forwardRef)(Ese);+var Ese = /*#__PURE__*/ (0, B.forwardRef)(Tse);tg(rp, function(e, t, n) {- let r = (0, B.useContext)(WO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);- HO((0, B.useMemo)(() => ({+ let r = (0, B.useContext)(GO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);+ UO((0, B.useMemo)(() => ({onLoadMore: a,collection: r?.collection,sentinelRef: c,@@ -21716,7 +21716,7 @@ tg(rp, function(e, t, n) {o,r?.collection]), c);- let l = hD({+ let l = gD({...s,id: void 0,children: n.rendered,@@ -21729,7 +21729,7 @@ tg(rp, function(e, t, n) {width: 0,height: 0},- inert: jO(!0)+ inert: MO(!0)}, /*#__PURE__*/ B.createElement("div", {"data-testid": "loadMoreSentinel",ref: c,@@ -21738,7 +21738,7 @@ tg(rp, function(e, t, n) {height: 1,width: 1}- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xD.div, {+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {...U(Eg(e, { global: !0 }), { tabIndex: -1 }),...l,role: "option",@@ -21747,10 +21747,10 @@ tg(rp, function(e, t, n) {});//#endregion//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs-var Ose = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });+var Dse = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });//#endregion//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs-function KO(e) {+function qO(e) {let [t, n] = L_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, B.useState)(null);return {isOpen: t,@@ -21770,13 +21770,13 @@ function KO(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/animation.mjs-function qO(e, t = !0) {+function JO(e, t = !0) {let [n, r] = (0, B.useState)(!0), i = n && t;return Hp(() => {if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();- }, [e, i]), YO(e, i, (0, B.useCallback)(() => r(!1), [])), i;+ }, [e, i]), XO(e, i, (0, B.useCallback)(() => r(!1), [])), i;}-function JO(e, t) {+function YO(e, t) {let [n, r] = (0, B.useState)(t ? "open" : "closed");switch (n) {case "open":@@ -21786,11 +21786,11 @@ function JO(e, t) {case "exiting": t && r("open");}let i = n === "exiting";- return YO(e, i, (0, B.useCallback)(() => {+ return XO(e, i, (0, B.useCallback)(() => {r((e) => e === "exiting" ? "closed" : e);}, [])), i;}-function YO(e, t, n) {+function XO(e, t, n) {Hp(() => {if (t && e.current) {if (!("getAnimations" in e.current)) {@@ -21819,9 +21819,9 @@ function YO(e, t, n) {}//#endregion//#region node_modules/react-aria-components/dist/private/Popover.mjs-var XO = /*#__PURE__*/ (0, B.createContext)(null), ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = _D(e, t, XO);- let n = (0, B.useContext)(ck), r = KO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = JO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vh(), { direction: c } = vg();+var ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.createContext)(null), $O = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = vD(e, t, ZO);+ let n = (0, B.useContext)(lk), r = qO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vh(), { direction: c } = vg();if (s) {let t = e.children;return typeof t == "function" && (t = t({@@ -21832,7 +21832,7 @@ var XO = /*#__PURE__*/ (0, B.createContext)(null), ZO = /*#__PURE__*/ (0, B.creadefaultChildren: null})), /*#__PURE__*/ B.createElement(B.Fragment, null, t);}- return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement(kse, {+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement(Ose, {...e,triggerRef: e.triggerRef,state: i,@@ -21841,13 +21841,13 @@ var XO = /*#__PURE__*/ (0, B.createContext)(null), ZO = /*#__PURE__*/ (0, B.creadir: c});});-function kse({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {- let a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useContext)(ZO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({+function Ose({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {+ let a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useContext)(QO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({...i,offset: i.offset ?? 8,arrowRef: a,groupRef: c ? s : o- }, e), m = i.popoverRef, h = qO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = hD({+ }, e), m = i.popoverRef, h = JO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = gD({...i,defaultClassName: "react-aria-Popover",values: {@@ -21882,7 +21882,7 @@ function kse({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,..._.style,"--trigger-width": _.style?.["--trigger-width"] || S- }, E = /*#__PURE__*/ B.createElement(xD.div, {+ }, E = /*#__PURE__*/ B.createElement(SD.div, {...U(Eg(i, { global: !0 }), l),..._,id: y ? i.id : void 0,@@ -21898,7 +21898,7 @@ function kse({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext"data-placement": f,"data-entering": g || void 0,"data-exiting": t || void 0- }, !i.isNonModal && /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }), /*#__PURE__*/ B.createElement(Ose.Provider, { value: {+ }, !i.isNonModal && /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }), /*#__PURE__*/ B.createElement(Dse.Provider, { value: {...d,placement: f,ref: a@@ -21923,15 +21923,15 @@ function kse({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext}), /*#__PURE__*/ B.createElement("div", {ref: o,style: { display: "contents" }- }, /*#__PURE__*/ B.createElement(ZO.Provider, { value: o }, E)));+ }, /*#__PURE__*/ B.createElement(QO.Provider, { value: o }, E)));}//#endregion//#region node_modules/react-aria-components/dist/private/Keyboard.mjs-var Ase = /*#__PURE__*/ (0, B.createContext)({});+var kse = /*#__PURE__*/ (0, B.createContext)({});//#endregion//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs-function $O(e) {- let t = KO(e), [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)([]), o = () => {+function ek(e) {+ let t = qO(e), [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)([]), o = () => {a([]), t.close();}, s = (e, t) => {a((n) => t > n.length ? n : [...n.slice(0, t), e]);@@ -21957,7 +21957,7 @@ function $O(e) {}//#endregion//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs-var jse = class {+var Ase = class {constructor(e, { expandedKeys: t } = {}) {this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();let n = (e) => {@@ -22001,8 +22001,8 @@ var jse = class {};//#endregion//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs-function Mse(e) {- let { onExpandedChange: t } = e, [n, r] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = PO(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = zO(e, (0, B.useCallback)((e) => new jse(e, { expandedKeys: n }), [n]), null);+function jse(e) {+ let { onExpandedChange: t } = e, [n, r] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = FO(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = BO(e, (0, B.useCallback)((e) => new Ase(e, { expandedKeys: n }), [n]), null);return (0, B.useEffect)(() => {i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);}, [o, i.focusedKey]), {@@ -22010,32 +22010,32 @@ function Mse(e) {expandedKeys: n,disabledKeys: a,toggleKey: (e) => {- r(Nse(n, e));+ r(Mse(n, e));},setExpandedKeys: r,- selectionManager: new IO(o, i)+ selectionManager: new LO(o, i)};}-function Nse(e, t) {+function Mse(e, t) {let n = new Set(e);return n.has(t) ? n.delete(t) : n.add(t), n;}//#endregion//#region node_modules/react-aria-components/dist/private/Menu.mjs-var ek = /*#__PURE__*/ (0, B.createContext)(null), tk = /*#__PURE__*/ (0, B.createContext)(null), nk = /*#__PURE__*/ (0, B.createContext)(null), rk = /*#__PURE__*/ (0, B.createContext)(null);-function Pse(e) {- let t = $O(e), n = (0, B.useRef)(null), { menuTriggerProps: r, menuProps: i } = Iv({+var tk = /*#__PURE__*/ (0, B.createContext)(null), nk = /*#__PURE__*/ (0, B.createContext)(null), rk = /*#__PURE__*/ (0, B.createContext)(null), ik = /*#__PURE__*/ (0, B.createContext)(null);+function Nse(e) {+ let t = ek(e), n = (0, B.useRef)(null), { menuTriggerProps: r, menuProps: i } = Iv({...e,type: "menu"}, t, n), a = (0, B.useRef)(null);- return Vh() ? null : /*#__PURE__*/ B.createElement(mD, { values: [- [ek, {+ return Vh() ? null : /*#__PURE__*/ B.createElement(hD, { values: [+ [tk, {...i,ref: a}],- [ck, t],- [nk, t],- [XO, {+ [lk, t],+ [rk, t],+ [ZO, {trigger: "MenuTrigger",triggerRef: n,scrollRef: a,@@ -22049,7 +22049,7 @@ function Pse(e) {isPressed: t.isOpen}, e.children));}-var Fse = /*#__PURE__*/ (0, B.createContext)(null);+var Pse = /*#__PURE__*/ (0, B.createContext)(null);(class extends tp {static {this.type = "submenutrigger";@@ -22063,24 +22063,24 @@ var Fse = /*#__PURE__*/ (0, B.createContext)(null);return null;}});-var Ise = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- return [e, t] = _D(e, t, ek), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Lse, {+var Fse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ return [e, t] = vD(e, t, tk), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Ise, {props: e,collection: n,menuRef: t}));});-function Lse({ props: e, collection: t, menuRef: n }) {- [e, n] = _D(e, n, SD);- let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Mse({+function Ise({ props: e, collection: t, menuRef: n }) {+ [e, n] = vD(e, n, CD);+ let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = jse({...e,collection: a,children: void 0- }), s = (0, B.useContext)(nk), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(DD), { menuProps: u } = kte({+ }), s = (0, B.useContext)(rk), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(OD), { menuProps: u } = kte({...e,isVirtualized: c,onClose: e.onClose || s?.close- }, o, n), d = hD({+ }, o, n), d = gD({...e,children: void 0,defaultClassName: "react-aria-Menu",@@ -22091,35 +22091,35 @@ function Lse({ props: e, collection: t, menuRef: n }) {style: { display: "contents" }}, e.renderEmptyState()));let p = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(xD.div, {+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(SD.div, {...U(p, d, u),ref: n,slot: e.slot || void 0,"data-empty": o.collection.size === 0 || void 0,onScroll: e.onScroll- }, /*#__PURE__*/ B.createElement(mD, { values: [- [tk, o],- [AO, { elementType: "div" }],- [wD, {+ }, /*#__PURE__*/ B.createElement(hD, { values: [+ [nk, o],+ [jO, { elementType: "div" }],+ [TD, {name: "MenuSection",- render: ik+ render: ak}],- [Fse, {+ [Pse, {parentMenuRef: n,shouldUseVirtualFocus: i?.shouldUseVirtualFocus}],- [ok, { shouldCloseOnSelect: e.shouldCloseOnSelect }],- [SD, null],+ [sk, { shouldCloseOnSelect: e.shouldCloseOnSelect }],[CD, null],- [rk, o.selectionManager],- [nk, s ?? $O({})]- ] }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(l, {+ [wD, null],+ [ik, o.selectionManager],+ [rk, s ?? ek({})]+ ] }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(l, {collection: o.collection,- persistedKeys: OD(o.selectionManager.focusedKey),+ persistedKeys: kD(o.selectionManager.focusedKey),scrollRef: n}))), f));}-var Rse = class extends IO {+var Lse = class extends LO {constructor(e, t) {super(e.collection, t), this.parent = e;}@@ -22139,11 +22139,11 @@ var Rse = class extends IO {return this.parent.childFocusStrategy;}};-function ik(e, t, n, r = "react-aria-MenuSection") {- let i = (0, B.useContext)(tk), { CollectionBranch: a } = (0, B.useContext)(DD), [o, s] = vD(), { headingProps: c, groupProps: l } = jte({+function ak(e, t, n, r = "react-aria-MenuSection") {+ let i = (0, B.useContext)(nk), { CollectionBranch: a } = (0, B.useContext)(OD), [o, s] = yD(), { headingProps: c, groupProps: l } = jte({heading: s,"aria-label": n.props["aria-label"] ?? void 0- }), u = hD({+ }), u = gD({...e,id: void 0,children: void 0,@@ -22151,31 +22151,31 @@ function ik(e, t, n, r = "react-aria-MenuSection") {className: n.props?.className,style: n.props?.style,values: void 0- }), d = (0, B.useContext)(rk), f = PO(e), p = e.selectionMode == null ? d : new Rse(d, f), m = gD(ok)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });- return delete h.id, /*#__PURE__*/ B.createElement(xD.section, {+ }), d = (0, B.useContext)(ik), f = FO(e), p = e.selectionMode == null ? d : new Lse(d, f), m = _D(sk)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });+ return delete h.id, /*#__PURE__*/ B.createElement(SD.section, {...U(h, u, l),ref: t- }, /*#__PURE__*/ B.createElement(mD, { values: [- [DO, {+ }, /*#__PURE__*/ B.createElement(hD, { values: [+ [OO, {...c,ref: o}],- [rk, p],- [ok, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]+ [ik, p],+ [sk, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]] }, /*#__PURE__*/ B.createElement(a, {collection: i.collection,parent: n})));}-var ak = /*#__PURE__*/ ng(ap, ik), ok = /*#__PURE__*/ (0, B.createContext)(null), sk = /*#__PURE__*/ tg(ip, function(e, t, n) {- [e, t] = _D(e, t, ok);- let r = gD(ok)?.id, i = (0, B.useContext)(tk), a = Nh(t), o = (0, B.useContext)(rk), { isVirtualized: s } = (0, B.useContext)(DD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({+var ok = /*#__PURE__*/ ng(ap, ak), sk = /*#__PURE__*/ (0, B.createContext)(null), ck = /*#__PURE__*/ tg(ip, function(e, t, n) {+ [e, t] = vD(e, t, sk);+ let r = _D(sk)?.id, i = (0, B.useContext)(nk), a = Nh(t), o = (0, B.useContext)(ik), { isVirtualized: s } = (0, B.useContext)(OD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({...e,id: r,key: n.key,selectionManager: o,isVirtualized: s- }, i, a), { hoverProps: p, isHovered: m } = sy({ isDisabled: f.isDisabled }), h = hD({+ }, i, a), { hoverProps: p, isHovered: m } = sy({ isDisabled: f.isDisabled }), h = gD({...e,id: void 0,children: n.rendered,@@ -22189,7 +22189,7 @@ var ak = /*#__PURE__*/ ng(ap, ik), ok = /*#__PURE__*/ (0, B.createContext)(null)hasSubmenu: !!e["aria-haspopup"],isOpen: e["aria-expanded"] === "true"}- }), g = e.href ? xD.a : xD.div, _ = Eg(e, { global: !0 });+ }), g = e.href ? SD.a : SD.div, _ = Eg(e, { global: !0 });return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(g, {...U(_, h, c, p),ref: a,@@ -22202,19 +22202,19 @@ var ak = /*#__PURE__*/ ng(ap, ik), ok = /*#__PURE__*/ (0, B.createContext)(null)"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,"data-has-submenu": !!e["aria-haspopup"] || void 0,"data-open": e["aria-expanded"] === "true" || void 0- }, /*#__PURE__*/ B.createElement(mD, { values: [- [PD, { slots: {- [pD]: l,+ }, /*#__PURE__*/ B.createElement(hD, { values: [+ [FD, { slots: {+ [mD]: l,label: l,description: u} }],- [Ase, d],- [kO, { isSelected: f.isSelected }]+ [kse, d],+ [AO, { isSelected: f.isSelected }]] }, h.children));});tg(rp, function(e, t, n) {- let r = (0, B.useContext)(tk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);- HO((0, B.useMemo)(() => ({+ let r = (0, B.useContext)(nk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);+ UO((0, B.useMemo)(() => ({onLoadMore: a,collection: r?.collection,sentinelRef: c,@@ -22224,7 +22224,7 @@ tg(rp, function(e, t, n) {o,r?.collection]), c);- let l = hD({+ let l = gD({...s,id: void 0,children: n.rendered,@@ -22237,7 +22237,7 @@ tg(rp, function(e, t, n) {width: 0,height: 0},- inert: jO(!0)+ inert: MO(!0)}, /*#__PURE__*/ B.createElement("div", {"data-testid": "loadMoreSentinel",ref: c,@@ -22246,7 +22246,7 @@ tg(rp, function(e, t, n) {height: 1,width: 1}- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xD.div, {+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {...U(Eg(e, { global: !0 }), { tabIndex: -1 }),...l,role: "menuitem",@@ -22255,56 +22255,56 @@ tg(rp, function(e, t, n) {});//#endregion//#region node_modules/react-aria-components/dist/private/Dialog.mjs-var zse = /*#__PURE__*/ (0, B.createContext)(null), ck = /*#__PURE__*/ (0, B.createContext)(null), lk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+var Rse = /*#__PURE__*/ (0, B.createContext)(null), lk = /*#__PURE__*/ (0, B.createContext)(null), uk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {let n = e["aria-labelledby"];- [e, t] = _D(e, t, zse);+ [e, t] = vD(e, t, Rse);let { dialogProps: r, titleProps: i, contentProps: a } = hte({...e,"aria-labelledby": n- }, t), o = (0, B.useContext)(ck);+ }, t), o = (0, B.useContext)(lk);!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);- let s = hD({+ let s = gD({defaultClassName: "react-aria-Dialog",className: e.className,style: e.style,children: e.children,values: { close: o?.close || (() => {}) }}), c = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(xD.section, {+ return /*#__PURE__*/ B.createElement(SD.section, {...U(c, s, r),render: e.render,ref: t,slot: e.slot || void 0- }, /*#__PURE__*/ B.createElement(mD, { values: [- [MD, { slots: {- [pD]: {},+ }, /*#__PURE__*/ B.createElement(hD, { values: [+ [ND, { slots: {+ [mD]: {},title: {...i,level: 2}} }],- [PD, { slots: {- [pD]: {},+ [FD, { slots: {+ [mD]: {},description: a} }],- [AD, { slots: {- [pD]: {},+ [jD, { slots: {+ [mD]: {},close: { onPress: () => o?.close() }} }]] }, s.children));-}), uk = typeof document < "u" && window.visualViewport;-function Bse() {+}), dk = typeof document < "u" && window.visualViewport;+function zse() {let e = Om(), [t, n] = (0, B.useState)(() => e ? {width: 0,height: 0- } : dk());+ } : fk());return (0, B.useEffect)(() => {let e = (e) => {n((t) => e.width === t.width && e.height === t.height ? t : e);}, t = () => {- uk && uk.scale > 1 || e(dk());+ dk && dk.scale > 1 || e(fk());}, r, i = (t) => {- uk && uk.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {+ dk && dk.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {let t = kp();(!t || !lg(t)) && e({width: document.documentElement.clientWidth,@@ -22312,26 +22312,26 @@ function Bse() {});}));};- return e(dk()), em() && nm() && window.addEventListener("blur", i, !0), uk ? uk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {- cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), uk ? uk.removeEventListener("resize", t) : window.removeEventListener("resize", t);+ return e(fk()), em() && nm() && window.addEventListener("blur", i, !0), dk ? dk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {+ cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), dk ? dk.removeEventListener("resize", t) : window.removeEventListener("resize", t);};}, []), t;}-function dk() {+function fk() {return {- width: uk ? Math.min(uk.width * uk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,- height: uk ? uk.height * uk.scale : document.documentElement.clientHeight+ width: dk ? Math.min(dk.width * dk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,+ height: dk ? dk.height * dk.scale : document.documentElement.clientHeight};}//#endregion//#region node_modules/react-aria-components/dist/private/Modal.mjs-var Vse = /*#__PURE__*/ (0, B.createContext)(null), fk = /*#__PURE__*/ (0, B.createContext)(null), Hse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- if ((0, B.useContext)(fk)) return /*#__PURE__*/ B.createElement(mk, {+var Bse = /*#__PURE__*/ (0, B.createContext)(null), pk = /*#__PURE__*/ (0, B.createContext)(null), Vse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ if ((0, B.useContext)(pk)) return /*#__PURE__*/ B.createElement(hk, {...e,modalRef: t}, e.children);let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;- return /*#__PURE__*/ B.createElement(pk, {+ return /*#__PURE__*/ B.createElement(mk, {isDismissable: n,isKeyboardDismissDisabled: r,isOpen: i,@@ -22341,15 +22341,15 @@ var Vse = /*#__PURE__*/ (0, B.createContext)(null), fk = /*#__PURE__*/ (0, B.creisExiting: l,UNSTABLE_portalContainer: u,shouldCloseOnInteractOutside: d- }, /*#__PURE__*/ B.createElement(mk, {+ }, /*#__PURE__*/ B.createElement(hk, {...f,modalRef: t}, s));});-function Use(e, t) {- [e, t] = _D(e, t, Vse);- let n = (0, B.useContext)(ck), r = KO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = JO(a, i.isOpen), c = JO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();- return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(Wse, {+function Hse(e, t) {+ [e, t] = vD(e, t, Bse);+ let n = (0, B.useContext)(lk), r = qO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = YO(a, i.isOpen), c = YO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(Use, {...e,state: i,isExiting: l,@@ -22357,9 +22357,9 @@ function Use(e, t) {modalRef: o});}-var pk = /*#__PURE__*/ (0, B.forwardRef)(Use);-function Wse({ UNSTABLE_portalContainer: e, ...t }) {- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = qO(t.overlayRef) || t.isEntering || !1, s = hD({+var mk = /*#__PURE__*/ (0, B.forwardRef)(Hse);+function Use({ UNSTABLE_portalContainer: e, ...t }) {+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = JO(t.overlayRef) || t.isEntering || !1, s = gD({...t,defaultClassName: "react-aria-ModalOverlay",values: {@@ -22367,7 +22367,7 @@ function Wse({ UNSTABLE_portalContainer: e, ...t }) {isExiting: t.isExiting,state: r}- }), c = Bse(), l, u;+ }), c = zse(), l, u;if (typeof document < "u") {let e = m_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;l = e.scrollWidth - t, u = e.scrollHeight - n;@@ -22382,22 +22382,22 @@ function Wse({ UNSTABLE_portalContainer: e, ...t }) {return /*#__PURE__*/ B.createElement(ty, {isExiting: t.isExiting,portalContainer: e- }, /*#__PURE__*/ B.createElement(xD.div, {+ }, /*#__PURE__*/ B.createElement(SD.div, {...U(Eg(t, { global: !0 }), a),...s,style: d,ref: t.overlayRef,"data-entering": o || void 0,"data-exiting": t.isExiting || void 0- }, /*#__PURE__*/ B.createElement(mD, { values: [[fk, {+ }, /*#__PURE__*/ B.createElement(hD, { values: [[pk, {modalProps: i,modalRef: n,isExiting: t.isExiting,isDismissable: t.isDismissable- }], [ck, r]] }, s.children)));+ }], [lk, r]] }, s.children)));}-function mk(e) {- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(fk), a = (0, B.useContext)(ck), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = qO(o), c = hD({+function hk(e) {+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(pk), a = (0, B.useContext)(lk), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = JO(o), c = gD({...e,defaultClassName: "react-aria-Modal",values: {@@ -22406,7 +22406,7 @@ function mk(e) {state: a}});- return /*#__PURE__*/ B.createElement(xD.div, {+ return /*#__PURE__*/ B.createElement(SD.div, {...U(Eg(e, { global: !0 }), t),...c,ref: o,@@ -22416,9 +22416,9 @@ function mk(e) {}//#endregion//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs-var Gse = Math.round(Math.random() * 1e10), Kse = 0;-function qse(e) {- let t = (0, B.useMemo)(() => e.name || `radio-group-${Gse}-${++Kse}`, [e.name]), [n, r] = L_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, B.useState)(n), [a, o] = (0, B.useState)(null), s = O_({+var Wse = Math.round(Math.random() * 1e10), Gse = 0;+function Kse(e) {+ let t = (0, B.useMemo)(() => e.name || `radio-group-${Wse}-${++Gse}`, [e.name]), [n, r] = L_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, B.useState)(n), [a, o] = (0, B.useState)(null), s = O_({...e,value: n}), c = (t) => {@@ -22441,16 +22441,16 @@ function qse(e) {}//#endregion//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs-var Jse = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.createContext)(null), hk = /*#__PURE__*/ (0, B.createContext)(null), gk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = _D(e, t, Jse);- let { validationBehavior: n } = gD(ID) || {}, r = e.validationBehavior ?? n ?? "native", i = qse({+var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.createContext)(null), gk = /*#__PURE__*/ (0, B.createContext)(null), _k = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = vD(e, t, qse);+ let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = Kse({...e,validationBehavior: r- }), [a, o] = vD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({+ }), [a, o] = yD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({...e,label: o,validationBehavior: r- }, i), f = hD({+ }, i), f = gD({...e,values: {orientation: e.orientation || "vertical",@@ -22462,7 +22462,7 @@ var Jse = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.cr},defaultClassName: "react-aria-RadioGroup"}), p = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(xD.div, {+ return /*#__PURE__*/ B.createElement(SD.div, {...U(p, f, s),ref: t,slot: e.slot || void 0,@@ -22471,39 +22471,39 @@ var Jse = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.cr"data-disabled": i.isDisabled || void 0,"data-readonly": i.isReadOnly || void 0,"data-required": i.isRequired || void 0- }, /*#__PURE__*/ B.createElement(mD, { values: [- [hk, i],- [kD, {+ }, /*#__PURE__*/ B.createElement(hD, { values: [+ [gk, i],+ [AD, {...c,ref: a,elementType: "span"}],- [PD, { slots: {+ [FD, { slots: {description: l,errorMessage: u} }],- [FD, d]- ] }, /*#__PURE__*/ B.createElement(OO, null, f.children)));-}), _k = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [ID, d]+ ] }, /*#__PURE__*/ B.createElement(kO, null, f.children)));+}), vk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {let { inputRef: n = null, ...r } = e;- [e, t] = _D(r, t, Yse);- let i = B.useContext(hk), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({- ...yD(e),+ [e, t] = vD(r, t, Jse);+ let i = B.useContext(gk), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({+ ...bD(e),children: typeof e.children == "function" || e.children}, i, a);- return /*#__PURE__*/ B.createElement(vk.Provider, { value: {+ return /*#__PURE__*/ B.createElement(yk.Provider, { value: {...o,inputRef: a,defaultClassName: "react-aria-Radio"- } }, /*#__PURE__*/ B.createElement(Xse, {+ } }, /*#__PURE__*/ B.createElement(Yse, {...e,ref: t}));-}), vk = /*#__PURE__*/ (0, B.createContext)(null), Xse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, B.useContext)(vk), l = B.useContext(hk), { isFocused: u, isFocusVisible: d, focusProps: f } = ry(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = sy({+}), yk = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, B.useContext)(yk), l = B.useContext(gk), { isFocused: u, isFocusVisible: d, focusProps: f } = ry(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = sy({...e,isDisabled: p- }), g = hD({+ }), g = gD({...e,defaultClassName: s,values: {@@ -22518,7 +22518,7 @@ var Jse = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.crisRequired: l.isRequired}}), _ = Eg(e, { global: !0 });- return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(xD.label, {+ return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(SD.label, {...U(_, n, m, g),ref: t,"data-selected": i || void 0,@@ -22537,8 +22537,8 @@ var Jse = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.cr});//#endregion//#region node_modules/react-stately/dist/private/select/useSelectState.mjs-function Zse(e) {- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = KO(e), [i, a] = (0, B.useState)(null), o = (0, B.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [+function Xse(e) {+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = qO(e), [i, a] = (0, B.useState)(null), o = (0, B.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [e.defaultValue,e.defaultSelectedKey,t@@ -22554,12 +22554,12 @@ function Zse(e) {let e = [];Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);}- }, d = BO({+ }, d = VO({...e,selectionMode: t,disallowEmptySelection: t === "single",allowDuplicateSelectionEvents: !0,- selectedKeys: (0, B.useMemo)(() => Qse(l), [l]),+ selectedKeys: (0, B.useMemo)(() => Zse(l), [l]),onSelectionChange: (e) => {if (e !== "all") {if (t === "single") {@@ -22596,16 +22596,16 @@ function Zse(e) {setFocused: g};}-function Qse(e) {+function Zse(e) {if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];}//#endregion//#region node_modules/react-aria-components/dist/private/Select.mjs-function $se(e) {+function Qse(e) {return e && e.__esModule ? e.default : e;}-var yk = /*#__PURE__*/ (0, B.createContext)(null), bk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = _D(e, t, yk);+var bk = /*#__PURE__*/ (0, B.createContext)(null), xk = /*#__PURE__*/ (0, B.createContext)(null), $se = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = vD(e, t, bk);let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, B.useMemo)(() => typeof n == "function" ? n({isOpen: !1,isDisabled: r,@@ -22620,24 +22620,24 @@ var yk = /*#__PURE__*/ (0, B.createContext)(null), bk = /*#__PURE__*/ (0, B.creai,a]);- return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement(nce, {+ return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement(tce, {props: e,collection: n,selectRef: t}));-}), tce = [- kD,+}), ece = [AD,- PD+ jD,+ FD];-function nce({ props: e, selectRef: t, collection: n }) {- let { validationBehavior: r } = gD(ID) || {}, i = e.validationBehavior ?? r ?? "native", a = Zse({+function tce({ props: e, selectRef: t, collection: n }) {+ let { validationBehavior: r } = _D(LD) || {}, i = e.validationBehavior ?? r ?? "native", a = Xse({...e,collection: n,children: void 0,validationBehavior: i- }), { isFocusVisible: o, focusProps: s } = ry({ within: !0 }), c = (0, B.useRef)(null), [l, u] = vD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({- ...yD(e),+ }), { isFocusVisible: o, focusProps: s } = ry({ within: !0 }), c = (0, B.useRef)(null), [l, u] = yD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({+ ...bD(e),label: u,validationBehavior: i}, a, c), y = (0, B.useMemo)(() => ({@@ -22654,48 +22654,48 @@ function nce({ props: e, selectRef: t, collection: n }) {e.isDisabled,v.isInvalid,e.isRequired- ]), b = hD({+ ]), b = gD({...e,values: y,defaultClassName: "react-aria-Select"}), x = Eg(e, { global: !0 });delete x.id;let S = (0, B.useRef)(null);- return /*#__PURE__*/ B.createElement(mD, { values: [- [yk, e],- [bk, a],- [xk, p],- [kD, {+ return /*#__PURE__*/ B.createElement(hD, { values: [+ [bk, e],+ [xk, a],+ [Sk, p],+ [AD, {...d,ref: l,elementType: "span"}],- [AD, {+ [jD, {...f,ref: c,isPressed: a.isOpen,autoFocus: e.autoFocus}],- [ck, a],- [XO, {+ [lk, a],+ [ZO, {trigger: "Select",triggerRef: c,scrollRef: S,placement: "bottom start","aria-labelledby": m["aria-labelledby"],- clearContexts: tce+ clearContexts: ece}],- [UO, {+ [WO, {...m,ref: S}],- [WO, a],- [PD, { slots: {+ [GO, a],+ [FD, { slots: {description: h,errorMessage: g} }],- [FD, v]- ] }, /*#__PURE__*/ B.createElement(xD.div, {+ [ID, v]+ ] }, /*#__PURE__*/ B.createElement(SD.div, {...U(x, b, s),ref: t,slot: e.slot || void 0,@@ -22705,14 +22705,14 @@ function nce({ props: e, selectRef: t, collection: n }) {"data-disabled": e.isDisabled || void 0,"data-invalid": v.isInvalid || void 0,"data-required": e.isRequired || void 0- }, b.children, /*#__PURE__*/ B.createElement($te, {+ }, b.children, /*#__PURE__*/ B.createElement(ax, {..._,autoComplete: e.autoComplete})));}-for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = _D(e, t, xk);- let n = (0, B.useContext)(bk), { placeholder: r } = gD(yk), i = n.selectedItems.map((e) => {+for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = vD(e, t, Sk);+ let n = (0, B.useContext)(xk), { placeholder: r } = _D(bk), i = n.selectedItems.map((e) => {let t = e.props?.children;return typeof t == "function" && (t = t({isHovered: !1,@@ -22739,7 +22739,7 @@ for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(fa,o,i- ]), u = wg($se(SO), "react-aria-components"), d = hD({+ ]), u = wg(Qse(CO), "react-aria-components"), d = gD({...e,defaultChildren: l ?? r ?? u.format("selectPlaceholder"),defaultClassName: "react-aria-SelectValue",@@ -22751,32 +22751,32 @@ for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(fstate: n}}), f = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(xD.span, {+ return /*#__PURE__*/ B.createElement(SD.span, {ref: t,...f,...d,"data-placeholder": n.selectedItems.length === 0 || void 0- }, /*#__PURE__*/ B.createElement(PD.Provider, { value: void 0 }, d.children));-}), ice = /*#__PURE__*/ (0, B.createContext)(null), Sk = /*#__PURE__*/ (0, B.createContext)(null), ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ }, /*#__PURE__*/ B.createElement(FD.Provider, { value: void 0 }, d.children));+}), rce = /*#__PURE__*/ (0, B.createContext)(null), Ck = /*#__PURE__*/ (0, B.createContext)(null), ice = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {let { inputRef: n = null, ...r } = e;- [e, t] = _D(r, t, ice);- let i = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = R_(e), o = tne({- ...yD(e),+ [e, t] = vD(r, t, rce);+ let i = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = R_(e), o = ene({+ ...bD(e),children: typeof e.children == "function" || e.children}, a, i);- return /*#__PURE__*/ B.createElement(mD, { values: [[Sk, a], [Ck, {+ return /*#__PURE__*/ B.createElement(hD, { values: [[Ck, a], [wk, {...o,inputRef: i,defaultClassName: "react-aria-Switch"- }]] }, /*#__PURE__*/ B.createElement(oce, {+ }]] }, /*#__PURE__*/ B.createElement(ace, {...e,ref: t}));-}), Ck = /*#__PURE__*/ (0, B.createContext)(null), oce = /*#__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)(Ck), { isFocused: f, isFocusVisible: p, focusProps: m } = ry(), h = a || o, g = (0, B.useContext)(Sk), { hoverProps: _, isHovered: v } = sy({+}), wk = /*#__PURE__*/ (0, B.createContext)(null), ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, B.useContext)(wk), { isFocused: f, isFocusVisible: p, focusProps: m } = ry(), h = a || o, g = (0, B.useContext)(Ck), { hoverProps: _, isHovered: v } = sy({...e,isDisabled: h- }), y = hD({+ }), y = gD({...e,defaultClassName: u,values: {@@ -22792,7 +22792,7 @@ for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(fstate: g}}), b = Eg(e, { global: !0 });- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(xD.label, {+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(SD.label, {...U(b, n, _, y),ref: t,slot: e.slot || void 0,@@ -22809,7 +22809,7 @@ for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(f...U(r, m),ref: l})), y.children);-}), wk = 10, Tk = 5, sce = class {+}), Tk = 10, Ek = 5, oce = class {setup(e, t, n) {this.delegate = e, this.state = t, this.direction = n;}@@ -22819,7 +22819,7 @@ for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(f}resolveDropTarget(e, t, n, r) {let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;- if (Math.abs(a) > Tk && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > wk && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {+ if (Math.abs(a) > Ek && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Tk && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {let t = this.state.collection.getKeyBefore(e.key);for (; t != null;) {let e = this.state.collection.getItem(t);@@ -22898,11 +22898,11 @@ for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(flastSwitchX: n});let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);- if (Math.abs(r - c.lastSwitchY) > Tk && i) {+ if (Math.abs(r - c.lastSwitchY) > Ek && i) {let t = c.preferredTargetIndex || 0;i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;}- if (l > wk && a) {+ if (l > Tk && a) {let t = c.preferredTargetIndex || 0;a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;}@@ -22917,7 +22917,7 @@ for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(fboundaryContext: null};}-}, cce = class {+}, sce = class {constructor(e) {this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];let t = (r) => {@@ -22987,8 +22987,8 @@ for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(fgetChildren(e) {return this.keyMap.get(e)?.childNodes || [];}-}, Ek = "row-header-column-" + Math.random().toString(36).slice(2), Dk = "row-header-column-" + Math.random().toString(36).slice(2); Ek === Dk;) Dk = "row-header-column-" + Math.random().toString(36).slice(2);-function Ok(e, t) {+}, Dk = "row-header-column-" + Math.random().toString(36).slice(2), Ok = "row-header-column-" + Math.random().toString(36).slice(2); Dk === Ok;) Ok = "row-header-column-" + Math.random().toString(36).slice(2);+function kk(e, t) {if (t.length === 0) return [];let n = [], r = /* @__PURE__ */ new Map();for (let i of t) {@@ -23072,13 +23072,13 @@ function Ok(e, t) {textValue: ""}));}-var lce = class extends cce {+var cce = class extends sce {constructor(e, t, n) {let r = /* @__PURE__ */ new Set(), i = null, a = [];if (n?.showSelectionCheckboxes) {let e = {type: "column",- key: Ek,+ key: Dk,value: null,textValue: "",level: 0,@@ -23093,7 +23093,7 @@ var lce = class extends cce {if (n?.showDragButtons) {let e = {type: "column",- key: Dk,+ key: Ok,value: null,textValue: "",level: 0,@@ -23120,7 +23120,7 @@ var lce = class extends cce {for (let t of e.childNodes) c(t);};for (let t of e) c(t);- let l = Ok(s, a);+ let l = kk(s, a);if (l.forEach((e, t) => o.splice(t, 0, e)), super({columnCount: a.length,items: o,@@ -23181,8 +23181,8 @@ var lce = class extends cce {};//#endregion//#region node_modules/react-stately/dist/private/grid/useGridState.mjs-function uce(e) {- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || PO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;+function lce(e) {+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || FO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;r.setFocusedKey = (e, r) => {if (n === "cell" && e != null) {let n = t.getItem(e);@@ -23193,7 +23193,7 @@ function uce(e) {}a(e, r);};- let o = (0, B.useMemo)(() => new IO(t, r), [t, r]), s = (0, B.useRef)(null);+ let o = (0, B.useMemo)(() => new LO(t, r), [t, r]), s = (0, B.useRef)(null);return (0, B.useEffect)(() => {if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;@@ -23232,11 +23232,11 @@ function uce(e) {}//#endregion//#region node_modules/react-stately/dist/private/table/useTableState.mjs-var dce = {+var uce = {ascending: "descending",descending: "ascending"};-function fce(e) {+function dce(e) {let [t, n] = (0, B.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, B.useMemo)(() => ({showSelectionCheckboxes: i && r !== "none",showDragButtons: a,@@ -23247,7 +23247,7 @@ function fce(e) {i,r,a- ]), c = zO(e, (0, B.useCallback)((e) => new lce(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = uce({+ ]), c = BO(e, (0, B.useCallback)((e) => new cce(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = lce({...e,collection: c,disabledBehavior: e.disabledBehavior || "selection"@@ -23263,7 +23263,7 @@ function fce(e) {sort(t, n) {e.onSortChange?.({column: t,- direction: n ?? (e.sortDescriptor?.column === t ? dce[e.sortDescriptor.direction] : "ascending")+ direction: n ?? (e.sortDescriptor?.column === t ? uce[e.sortDescriptor.direction] : "ascending")});},expandedKeys: d,@@ -23276,7 +23276,7 @@ function fce(e) {treeColumn: o};}-function pce(e, t) {+function fce(e, t) {let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);return {...e,@@ -23286,7 +23286,7 @@ function pce(e, t) {}//#endregion//#region node_modules/react-aria-components/dist/private/Table.mjs-var mce = class extends op {+var pce = class extends op {withExpandedKeys(e) {let t = this.clone();return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;@@ -23301,7 +23301,7 @@ var mce = class extends op {}get body() {for (let e of this) if (e.type === "tablebody") return e;- return new Fk(-2);+ return new Ik(-2);}commit(e, t, n = !1) {this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];@@ -23327,7 +23327,7 @@ var mce = class extends op {for (let t of this.getChildren(e.key)) n(t);};for (let e of this.getChildren(this.head.key)) n(e);- if (this.headerRows = Ok(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");+ if (this.headerRows = kk(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");}get columnCount() {return this.columns.length;@@ -23408,11 +23408,11 @@ var mce = class extends op {return r.join(" ");}constructor(...e) {- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Mk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Nk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();}-}, hce = /*#__PURE__*/ (0, B.createContext)(null), gce = /*#__PURE__*/ (0, B.createContext)(null), kk = /*#__PURE__*/ (0, B.createContext)(null), Ak = /*#__PURE__*/ (0, B.createContext)(null), _ce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = _D(e, t, gce);- let n = PO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({+}, mce = /*#__PURE__*/ (0, B.createContext)(null), hce = /*#__PURE__*/ (0, B.createContext)(null), Ak = /*#__PURE__*/ (0, B.createContext)(null), jk = /*#__PURE__*/ (0, B.createContext)(null), gce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = vD(e, t, hce);+ let n = FO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({selectionBehavior: i === "none" ? null : r,selectionMode: i,disallowEmptySelection: a,@@ -23422,26 +23422,26 @@ var mce = class extends op {i,a,o- ]), c = /*#__PURE__*/ B.createElement(bce.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));+ ]), c = /*#__PURE__*/ B.createElement(yce.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));return /*#__PURE__*/ B.createElement(qh, {content: c,- createCollection: () => new mce()- }, (r) => /*#__PURE__*/ B.createElement(yce, {+ createCollection: () => new pce()+ }, (r) => /*#__PURE__*/ B.createElement(vce, {props: e,forwardedRef: t,selectionState: n,collection: r}));-}), vce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(DD);- return n ? /*#__PURE__*/ B.createElement(xD.div, {+}), _ce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(OD);+ return n ? /*#__PURE__*/ B.createElement(SD.div, {...e,ref: t- }) : /*#__PURE__*/ B.createElement(xD.table, {+ }) : /*#__PURE__*/ B.createElement(SD.table, {...e,ref: t});-}), jk = {+}), Mk = {expand: {ltr: "ArrowRight",rtl: "ArrowLeft"@@ -23451,26 +23451,26 @@ var mce = class extends op {rtl: "ArrowRight"}};-function yce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {- [e, t] = _D(e, t, SD);- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(hce);+function vce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {+ [e, t] = vD(e, t, CD);+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(mce);t = Nh((0, B.useMemo)(() => mh(t, c?.tableRef), [t, c?.tableRef]));let [l, u] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);r = (0, B.useMemo)(() => r.withExpandedKeys(l), [r, l]);- let d = fce({+ let d = dce({...s,collection: r,children: void 0,UNSAFE_selectionState: n,expandedKeys: l,onExpandedChange: u- }), f = pce(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(DD), { dragAndDropHooks: _ } = e, { gridProps: v } = sne({+ }), f = fce(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(OD), { dragAndDropHooks: _ } = e, { gridProps: v } = one({...s,layoutDelegate: m,isVirtualized: p}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;(0, B.useRef)(b), (0, B.useRef)(x), (0, B.useEffect)(() => {}, [b, x]);- let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = vg(), [k] = (0, B.useState)(() => new sce());+ let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = vg(), [k] = (0, B.useState)(() => new oce());if (b && _) {S = _.useDraggableCollectionState({collection: f.collection,@@ -23505,12 +23505,12 @@ function yce({ 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 === jk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === jk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);+ (e.key === Mk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Mk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);}}}, C, t), T = C.isDropTarget({ type: "root" });}- let { focusProps: A, isFocused: j, isFocusVisible: M } = ry(), N = hD({+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ry(), N = gD({...e,children: void 0,defaultClassName: "react-aria-Table",@@ -23527,18 +23527,18 @@ function yce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {width: "min-content"}));let I = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(mD, { values: [- [kk, f],- [Ak, F],- [CO, {+ return /*#__PURE__*/ B.createElement(hD, { values: [+ [Ak, f],+ [jk, F],+ [wO, {dragAndDropHooks: _,dragState: S,dropState: C}],- [wO, { render: Ace }],- [SD, null],- [CD, null]- ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(vce, {+ [TO, { render: kce }],+ [CD, null],+ [wD, null]+ ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(_ce, {...U(I, N, v, A, w?.collectionProps),style: ee,ref: t,@@ -23548,45 +23548,45 @@ function yce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {"data-drop-target": T || void 0,"data-focused": j || void 0,"data-focus-visible": M || void 0- }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(g, {+ }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(g, {collection: f.collection,scrollRef: c?.scrollRef ?? t,- persistedKeys: EO(y, _, C)+ persistedKeys: DO(y, _, C)})))), E);}-var bce = /*#__PURE__*/ (0, B.createContext)(null), Mk = class extends tp {+var yce = /*#__PURE__*/ (0, B.createContext)(null), Nk = class extends tp {static {this.type = "tableheader";}-}, xce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(DD);- return n ? /*#__PURE__*/ B.createElement(xD.div, {+}, bce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(OD);+ return n ? /*#__PURE__*/ B.createElement(SD.div, {...e,ref: t- }) : /*#__PURE__*/ B.createElement(xD.thead, {+ }) : /*#__PURE__*/ B.createElement(SD.thead, {...e,ref: t});-}), Nk = /*#__PURE__*/ ng(Mk, (e, t) => {- let n = (0, B.useContext)(kk).collection, r = dp({+}), Pk = /*#__PURE__*/ ng(Nk, (e, t) => {+ let n = (0, B.useContext)(Ak).collection, r = dp({items: n.headerRows,children: (0, B.useCallback)((e) => {switch (e.type) {- case "headerrow": return /*#__PURE__*/ B.createElement(Cce, { item: e });+ case "headerrow": return /*#__PURE__*/ B.createElement(Sce, { item: e });default: throw Error("Unsupported node type in TableHeader: " + e.type);}}, [])- }), { rowGroupProps: i } = Xx(), { hoverProps: a, isHovered: o } = sy({+ }), { rowGroupProps: i } = Zx(), { hoverProps: a, isHovered: o } = sy({onHoverStart: e.onHoverStart,onHoverChange: e.onHoverChange,onHoverEnd: e.onHoverEnd- }), s = hD({+ }), s = gD({...e,children: void 0,defaultClassName: "react-aria-TableHeader",values: { isHovered: o }});- return /*#__PURE__*/ B.createElement(xce, {+ return /*#__PURE__*/ B.createElement(bce, {...U(Eg(e, { global: !0 }), i, a),...s,ref: t,@@ -23595,8 +23595,8 @@ var bce = /*#__PURE__*/ (0, B.createContext)(null), Mk = class extends tp {}, (e) => /*#__PURE__*/ B.createElement(ag, {dependencies: e.dependencies,items: e.columns-}, e.children)), Sce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(DD);+}, e.children)), xce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(OD);return n ? /*#__PURE__*/ B.createElement("div", {...e,ref: t@@ -23605,41 +23605,41 @@ var bce = /*#__PURE__*/ (0, B.createContext)(null), Mk = class extends tp {ref: t});});-function Cce({ item: e }) {- let t = (0, B.useRef)(null), n = (0, B.useContext)(kk), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(DD), { rowProps: a } = dne({+function Sce({ item: e }) {+ let t = (0, B.useRef)(null), n = (0, B.useContext)(Ak), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(OD), { rowProps: a } = une({node: e,isVirtualized: r- }, n, t), { checkboxProps: o } = vne(n);- return /*#__PURE__*/ B.createElement(Sce, {+ }, n, t), { checkboxProps: o } = _ne(n);+ return /*#__PURE__*/ B.createElement(xce, {...a,ref: t- }, /*#__PURE__*/ B.createElement(mD, { values: [[LD, { slots: { selection: o } }], [RD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {+ }, /*#__PURE__*/ B.createElement(hD, { values: [[RD, { slots: { selection: o } }], [zD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {collection: n.collection,parent: e})));}-var wce = class extends tp {+var Cce = class extends tp {static {this.type = "column";}-}, Tce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(DD);- return n ? /*#__PURE__*/ B.createElement(xD.div, {+}, wce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(OD);+ return n ? /*#__PURE__*/ B.createElement(SD.div, {...e,ref: t- }) : /*#__PURE__*/ B.createElement(xD.th, {+ }) : /*#__PURE__*/ B.createElement(SD.th, {...e,ref: t});-}), Pk = /*#__PURE__*/ tg(wce, (e, t, n) => {- let r = Nh(t), i = (0, B.useContext)(kk), { isVirtualized: a } = (0, B.useContext)(DD), { columnHeaderProps: o, isPressed: s } = une({+}), Fk = /*#__PURE__*/ tg(Cce, (e, t, n) => {+ let r = Nh(t), i = (0, B.useContext)(Ak), { isVirtualized: a } = (0, B.useContext)(OD), { columnHeaderProps: o, isPressed: s } = lne({node: n,isVirtualized: a,focusMode: e.focusMode,allowsArrowNavigation: e.allowsArrowNavigation- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ry(), d = (0, B.useContext)(Ak), f = !1;+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ry(), d = (0, B.useContext)(jk), f = !1;d && (f = d.resizingColumn === n.key);- let { hoverProps: p, isHovered: m } = sy({ isDisabled: !e.allowsSorting }), h = hD({+ let { hoverProps: p, isHovered: m } = sy({ isDisabled: !e.allowsSorting }), h = gD({...e,id: void 0,children: n.rendered,@@ -23666,7 +23666,7 @@ var wce = class extends tp {width: d.getColumnWidth(n.key)});let _ = Eg(e, { global: !0 });- return delete _.id, /*#__PURE__*/ B.createElement(Tce, {+ return delete _.id, /*#__PURE__*/ B.createElement(wce, {...U(_, o, u, p),...h,style: g,@@ -23678,28 +23678,28 @@ var wce = class extends tp {"data-resizing": f || void 0,"data-allows-sorting": n.props.allowsSorting || void 0,"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0- }, /*#__PURE__*/ B.createElement(mD, { values: [[Ece, {+ }, /*#__PURE__*/ B.createElement(hD, { values: [[Tce, {column: n,triggerRef: r- }], [DD, TD]] }, h.children));-}), Ece = /*#__PURE__*/ (0, B.createContext)(null), Fk = class extends np {+ }], [OD, ED]] }, h.children));+}), Tce = /*#__PURE__*/ (0, B.createContext)(null), Ik = class extends np {static {this.type = "tablebody";}-}, Dce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(DD);- return n ? /*#__PURE__*/ B.createElement(xD.div, {+}, Ece = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(OD);+ return n ? /*#__PURE__*/ B.createElement(SD.div, {...e,ref: t- }) : /*#__PURE__*/ B.createElement(xD.tbody, {+ }) : /*#__PURE__*/ B.createElement(SD.tbody, {...e,ref: t});-}), Ik = /*#__PURE__*/ ng(Fk, (e, t, n) => {- let r = (0, B.useContext)(kk), { isVirtualized: i } = (0, B.useContext)(DD), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(DD), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(CO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {+}), Lk = /*#__PURE__*/ ng(Ik, (e, t, n) => {+ let r = (0, B.useContext)(Ak), { isVirtualized: i } = (0, B.useContext)(OD), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(OD), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(wO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {isDropTarget: u,isEmpty: d- }, p = hD({+ }, p = gD({...e,id: void 0,children: void 0,@@ -23708,25 +23708,25 @@ var wce = class extends tp {}), m, h = a.columnCount;if (d && e.renderEmptyState && r) {let t = {}, n = {}, r = {};- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ B.createElement(Rk, {+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ B.createElement(zk, {role: "row",...t,style: r- }, /*#__PURE__*/ B.createElement(Bk, {+ }, /*#__PURE__*/ B.createElement(Vk, {role: "rowheader",...n,style: r}, e.renderEmptyState(f)));}- let { rowGroupProps: g } = Xx(), _ = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(Dce, {+ let { rowGroupProps: g } = Zx(), _ = Eg(e, { global: !0 });+ return /*#__PURE__*/ B.createElement(Ece, {...U(_, p, g),ref: t,"data-empty": d || void 0- }, l && /*#__PURE__*/ B.createElement(Fce, null), /*#__PURE__*/ B.createElement(o, {+ }, l && /*#__PURE__*/ B.createElement(Pce, null), /*#__PURE__*/ B.createElement(o, {collection: a,parent: n,- renderDropIndicator: TO(s, c)+ renderDropIndicator: EO(s, c)}), m);});(class extends np {@@ -23734,7 +23734,7 @@ var wce = class extends tp {this.type = "tablefooter";}});-var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Oce = class extends tp {+var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dce = class extends tp {static {this.type = "item";}@@ -23746,17 +23746,17 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Oc}return null;}-}, Rk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(DD);- return n ? /*#__PURE__*/ B.createElement(xD.div, {+}, zk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(OD);+ return n ? /*#__PURE__*/ B.createElement(SD.div, {...e,ref: t- }) : /*#__PURE__*/ B.createElement(xD.tr, {+ }) : /*#__PURE__*/ B.createElement(SD.tr, {...e,ref: t});-}), zk = /*#__PURE__*/ ng(Oce, (e, t, n) => {- let r = Nh(t), i = (0, B.useContext)(kk), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(CO), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(DD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mne({+}), Bk = /*#__PURE__*/ ng(Dce, (e, t, n) => {+ let r = Nh(t), i = (0, B.useContext)(Ak), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(wO), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(OD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = pne({node: n,shouldSelectOnPressUp: !!o,isVirtualized: c@@ -23765,7 +23765,7 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), OconHoverStart: e.onHoverStart,onHoverChange: e.onHoverChange,onHoverEnd: e.onHoverEnd- }), { checkboxProps: x } = _ne({ key: n.key }, i), S;+ }), { checkboxProps: x } = gne({ key: n.key }, i), S;o && a && (S = a.useDraggableItem({key: n.key,hasDragButton: !0@@ -23780,7 +23780,7 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Oc(0, B.useEffect)(() => {o && E.current;}, []);- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = hD({+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = gD({...k,id: void 0,defaultClassName: "react-aria-Row",@@ -23802,10 +23802,10 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Oclevel: n.level + 1}}), N = Eg(e, { global: !0 });- return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(Rk, {+ return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(zk, {role: "row",style: { height: 0 }- }, /*#__PURE__*/ B.createElement(Bk, {+ }, /*#__PURE__*/ B.createElement(Vk, {role: "gridcell",colSpan: i.collection.columnCount,style: { padding: 0 }@@ -23814,7 +23814,7 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Oc...T,...C.dropIndicatorProps,ref: w- }))), /*#__PURE__*/ B.createElement(Rk, {+ }))), /*#__PURE__*/ B.createElement(zk, {...U(N, M, d, g, y, S?.dragProps, v),ref: r,"data-disabled": p.isDisabled || void 0,@@ -23830,17 +23830,17 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Oc"data-expanded": j || void 0,"data-has-child-items": A || void 0,"data-level": n.level + 1- }, /*#__PURE__*/ B.createElement(mD, { values: [- [LD, { slots: {- [pD]: {},+ }, /*#__PURE__*/ B.createElement(hD, { values: [+ [RD, { slots: {+ [mD]: {},selection: x} }],- [RD, { slots: {- [pD]: {},+ [zD, { slots: {+ [mD]: {},selection: x} }],- [AD, { slots: {- [pD]: {},+ [jD, { slots: {+ [mD]: {},chevron: f,drag: {...S?.dragButtonProps,@@ -23848,8 +23848,8 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Ocstyle: { pointerEvents: "none" }}} }],- [kO, { isSelected: p.isSelected }],- [Lk, { isFocusVisibleWithinRow: _ }]+ [AO, { isSelected: p.isSelected }],+ [Rk, { isFocusVisibleWithinRow: _ }]] }, /*#__PURE__*/ B.createElement(l, {collection: i.collection,parent: n@@ -23862,29 +23862,29 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Ocitems: e.columns,idScope: e.id}, e.children);-}), kce = class extends tp {+}), Oce = class extends tp {static {this.type = "cell";}-}, Bk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(DD);- return n ? /*#__PURE__*/ B.createElement(xD.div, {+}, Vk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(OD);+ return n ? /*#__PURE__*/ B.createElement(SD.div, {...e,ref: t- }) : /*#__PURE__*/ B.createElement(xD.td, {+ }) : /*#__PURE__*/ B.createElement(SD.td, {...e,ref: t});-}), Vk = /*#__PURE__*/ tg(kce, (e, t, n) => {- let r = Nh(t), i = (0, B.useContext)(kk), { dragState: a } = (0, B.useContext)(CO), { isVirtualized: o } = (0, B.useContext)(DD);+}), Hk = /*#__PURE__*/ tg(Oce, (e, t, n) => {+ let r = Nh(t), i = (0, B.useContext)(Ak), { dragState: a } = (0, B.useContext)(wO), { isVirtualized: o } = (0, B.useContext)(OD);n.column = i.collection.columns[n.index];- let { gridCellProps: s, isPressed: c } = cne({+ let { gridCellProps: s, isPressed: c } = sne({node: n,shouldSelectOnPressUp: !!a,isVirtualized: o,focusMode: e.focusMode,allowsArrowNavigation: e.allowsArrowNavigation- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ry(), { hoverProps: f, isHovered: p } = sy({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(Lk), 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 = hD({+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ry(), { hoverProps: f, isHovered: p } = sy({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(Rk), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = gD({...e,id: void 0,defaultClassName: "react-aria-Cell",@@ -23904,7 +23904,7 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), OcisTreeColumn: n.column.key === i.treeColumn}}), S = Eg(e, { global: !0 });- return delete S.id, /*#__PURE__*/ B.createElement(Bk, {+ return delete S.id, /*#__PURE__*/ B.createElement(Vk, {...U(S, x, s, d, f),ref: r,"data-focused": l || void 0,@@ -23918,14 +23918,14 @@ var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Oc"data-level": _.level + 1,"data-tree-column": n.column.key === i.treeColumn || void 0,"data-disabled": b || void 0- }, /*#__PURE__*/ B.createElement(DD.Provider, { value: TD }, x.children));+ }, /*#__PURE__*/ B.createElement(OD.Provider, { value: ED }, x.children));});-function Ace(e, t) {+function kce(e, t) {t = Nh(t);- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(CO), i = (0, B.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(wO), i = (0, B.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);if (o) return null;let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;- return /*#__PURE__*/ B.createElement(Pce, {+ return /*#__PURE__*/ B.createElement(Nce, {...e,dropIndicatorProps: a,isDropTarget: s,@@ -23934,40 +23934,40 @@ function Ace(e, t) {ref: t});}-var jce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(DD);- return n ? /*#__PURE__*/ B.createElement(xD.div, {+var Ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(OD);+ return n ? /*#__PURE__*/ B.createElement(SD.div, {...e,ref: t- }) : /*#__PURE__*/ B.createElement(xD.tr, {+ }) : /*#__PURE__*/ B.createElement(SD.tr, {...e,ref: t});-}), Mce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(DD);- return n ? /*#__PURE__*/ B.createElement(xD.div, {+}), jce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(OD);+ return n ? /*#__PURE__*/ B.createElement(SD.div, {...e,ref: t- }) : /*#__PURE__*/ B.createElement(xD.td, {+ }) : /*#__PURE__*/ B.createElement(SD.td, {...e,ref: t});});-function Nce(e, t) {- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(kk), { visuallyHiddenProps: c } = V_(), l = hD({+function Mce(e, t) {+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(Ak), { visuallyHiddenProps: c } = V_(), l = gD({...o,defaultClassName: "react-aria-DropIndicator",defaultStyle: { "--table-row-level": a + 1 },values: { isDropTarget: r }});- return /*#__PURE__*/ B.createElement(jce, {+ return /*#__PURE__*/ B.createElement(Ace, {...Eg(e, { global: !0 }),...l,role: "row",ref: t,"data-drop-target": r || void 0,"aria-level": a- }, /*#__PURE__*/ B.createElement(Mce, {+ }, /*#__PURE__*/ B.createElement(jce, {role: "gridcell",colSpan: s.collection.columnCount,style: { padding: 0 }@@ -23978,14 +23978,14 @@ function Nce(e, t) {ref: i}), l.children));}-var Pce = /*#__PURE__*/ (0, B.forwardRef)(Nce);-function Fce() {- let e = (0, B.useContext)(kk), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(CO), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = V_();- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(Rk, {+var Nce = /*#__PURE__*/ (0, B.forwardRef)(Mce);+function Pce() {+ let e = (0, B.useContext)(Ak), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(wO), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = V_();+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(zk, {role: "row","aria-hidden": i["aria-hidden"],style: { height: 0 }- }, /*#__PURE__*/ B.createElement(Bk, {+ }, /*#__PURE__*/ B.createElement(Vk, {role: "gridcell",colSpan: e.collection.columnCount,style: { padding: 0 }@@ -23997,8 +23997,8 @@ function Fce() {})));}tg(rp, function(e, t, n) {- let r = (0, B.useContext)(kk), { isVirtualized: i } = (0, B.useContext)(DD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);- HO((0, B.useMemo)(() => ({+ let r = (0, B.useContext)(Ak), { isVirtualized: i } = (0, B.useContext)(OD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);+ UO((0, B.useMemo)(() => ({onLoadMore: o,collection: r?.collection,sentinelRef: u,@@ -24008,7 +24008,7 @@ tg(rp, function(e, t, n) {s,r?.collection]), u);- let d = hD({+ let d = gD({...c,id: void 0,children: n.rendered,@@ -24016,10 +24016,10 @@ tg(rp, function(e, t, n) {defaultStyle: { "--table-row-level": n.level + 1 },values: void 0}), f = {}, p = {}, m = {};- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(Rk, {+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zk, {style: { height: 0 },- inert: jO(!0)- }, /*#__PURE__*/ B.createElement(Bk, { style: {+ inert: MO(!0)+ }, /*#__PURE__*/ B.createElement(Vk, { style: {padding: 0,border: 0} }, /*#__PURE__*/ B.createElement("div", {@@ -24030,14 +24030,14 @@ tg(rp, function(e, t, n) {height: 1,width: 1}- }))), a && d.children && /*#__PURE__*/ B.createElement(Rk, {+ }))), a && d.children && /*#__PURE__*/ B.createElement(zk, {...U(Eg(e, { global: !0 }), f),...d,role: "row",ref: t,"aria-level": n.level + 1,"data-level": n.level + 1- }, /*#__PURE__*/ B.createElement(Bk, {+ }, /*#__PURE__*/ B.createElement(Vk, {role: "rowheader",...p,style: m@@ -24045,8 +24045,8 @@ tg(rp, function(e, t, n) {});//#endregion//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs-function Ice(e) {- let [t, n] = L_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, B.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = BO({+function Fce(e) {+ let [t, n] = L_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, B.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = VO({...e,selectionMode: "single",disallowEmptySelection: !0,@@ -24069,24 +24069,24 @@ function Ice(e) {}//#endregion//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs-function Lce(e) {- let t = Ice({+function Ice(e) {+ let t = Fce({...e,onSelectionChange: e.onSelectionChange ? (t) => {t != null && e.onSelectionChange?.(t);} : void 0,suppressTextValueWarning: !0,- defaultSelectedKey: e.defaultSelectedKey ?? Hk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0+ defaultSelectedKey: e.defaultSelectedKey ?? Uk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, B.useRef)(i);return (0, B.useEffect)(() => {let o = i;- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Hk(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Uk(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;}), {...t,isDisabled: e.isDisabled || !1};}-function Hk(e, t) {+function Uk(e, t) {let n = null;if (e) {for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);@@ -24096,20 +24096,20 @@ function Hk(e, t) {}//#endregion//#region node_modules/react-aria-components/dist/private/Tabs.mjs-var Uk = /*#__PURE__*/ (0, B.createContext)(null), Wk = /*#__PURE__*/ (0, B.createContext)(null), Gk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = _D(e, t, Uk);+var Wk = /*#__PURE__*/ (0, B.createContext)(null), Gk = /*#__PURE__*/ (0, B.createContext)(null), Kk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = vD(e, t, Wk);let { children: n, orientation: r = "horizontal" } = e;return n = (0, B.useMemo)(() => typeof n == "function" ? n({orientation: r,defaultChildren: null- }) : n, [n, r]), /*#__PURE__*/ B.createElement(qh, { content: n }, (n) => /*#__PURE__*/ B.createElement(Rce, {+ }) : n, [n, r]), /*#__PURE__*/ B.createElement(qh, { content: n }, (n) => /*#__PURE__*/ B.createElement(Lce, {props: e,collection: n,tabsRef: t}));});-function Rce({ props: e, tabsRef: t, collection: n }) {- let { orientation: r = "horizontal" } = e, i = Lce({+function Lce({ props: e, tabsRef: t, collection: n }) {+ let { orientation: r = "horizontal" } = e, i = Ice({...e,collection: n,children: void 0@@ -24121,12 +24121,12 @@ function Rce({ props: e, tabsRef: t, collection: n }) {r,o,s- ]), l = hD({+ ]), l = gD({...e,defaultClassName: "react-aria-Tabs",values: c}), u = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(xD.div, {+ return /*#__PURE__*/ B.createElement(SD.div, {...U(u, l, a),ref: t,slot: e.slot || void 0,@@ -24134,20 +24134,20 @@ function Rce({ props: e, tabsRef: t, collection: n }) {"data-orientation": r,"data-focus-visible": s || void 0,"data-disabled": i.isDisabled || void 0- }, /*#__PURE__*/ B.createElement(mD, { values: [[Uk, e], [Wk, i]] }, l.children));+ }, /*#__PURE__*/ B.createElement(hD, { values: [[Wk, e], [Gk, i]] }, l.children));}-var Kk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- return (0, B.useContext)(Wk) ? /*#__PURE__*/ B.createElement(zce, {+var qk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ return (0, B.useContext)(Gk) ? /*#__PURE__*/ B.createElement(Rce, {props: e,forwardedRef: t}) : /*#__PURE__*/ B.createElement(ag, e);});-function zce({ props: e, forwardedRef: t }) {- let n = (0, B.useContext)(Wk), { CollectionRoot: r } = (0, B.useContext)(DD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = gD(Uk), o = Nh(t), { tabListProps: s } = xne({+function Rce({ props: e, forwardedRef: t }) {+ let n = (0, B.useContext)(Gk), { CollectionRoot: r } = (0, B.useContext)(OD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = _D(Wk), o = Nh(t), { tabListProps: s } = bne({...e,orientation: i,keyboardActivation: a- }, n, o), c = hD({+ }, n, o), c = gD({...e,children: null,defaultClassName: "react-aria-TabList",@@ -24156,21 +24156,21 @@ function zce({ props: e, forwardedRef: t }) {state: n}}), l = Eg(e, { global: !0 });- return delete l.id, /*#__PURE__*/ B.createElement(xD.div, {+ return delete l.id, /*#__PURE__*/ B.createElement(SD.div, {...U(l, c, s),ref: o,"data-orientation": i || void 0- }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(r, {+ }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(r, {collection: n.collection,- persistedKeys: OD(n.selectionManager.focusedKey)+ persistedKeys: kD(n.selectionManager.focusedKey)})));}-var qk = /*#__PURE__*/ tg(class extends tp {+var Jk = /*#__PURE__*/ tg(class extends tp {static {this.type = "item";}}, (e, t, n) => {- let r = (0, B.useContext)(Wk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yne({+ let r = (0, B.useContext)(Gk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = vne({key: n.key,...e}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ry(), { hoverProps: f, isHovered: p } = sy({@@ -24178,7 +24178,7 @@ var qk = /*#__PURE__*/ tg(class extends tp {onHoverStart: e.onHoverStart,onHoverEnd: e.onHoverEnd,onHoverChange: e.onHoverChange- }), m = hD({+ }), m = gD({...e,id: void 0,children: n.rendered,@@ -24191,7 +24191,7 @@ var qk = /*#__PURE__*/ tg(class extends tp {isPressed: c,isHovered: p}- }), h = n.props.href ? xD.a : xD.div, g = Eg(e, { global: !0 });+ }), h = n.props.href ? SD.a : SD.div, g = Eg(e, { global: !0 });return delete g.id, delete g.onClick, /*#__PURE__*/ B.createElement(h, {...U(g, m, a, l, f),ref: i,@@ -24201,26 +24201,26 @@ var qk = /*#__PURE__*/ tg(class extends tp {"data-focus-visible": d || void 0,"data-pressed": c || void 0,"data-hovered": p || void 0- }, /*#__PURE__*/ B.createElement(kO.Provider, { value: { isSelected: o } }, m.children));-}), Jk = /*#__PURE__*/ Bh(function(e, t) {- let n = (0, B.useContext)(Wk), r = Nh(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);+ }, /*#__PURE__*/ B.createElement(AO.Provider, { value: { isSelected: o } }, m.children));+}), Yk = /*#__PURE__*/ Bh(function(e, t) {+ let n = (0, B.useContext)(Gk), r = Nh(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);- let s = JO(r, i);- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(Bce, {+ let s = YO(r, i);+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(zce, {...e,tabPanelRef: r,isInitiallySelected: a || !1,isExiting: s});});-function Bce(e) {- let t = (0, B.useContext)(Wk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ry(), d = t.selectedKey === e.id, f = qO(r) && !i, p = hD({+function zce(e) {+ let t = (0, B.useContext)(Gk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ry(), d = t.selectedKey === e.id, f = JO(r) && !i, p = gD({...e,defaultClassName: "react-aria-TabPanel",values: {isFocused: l,isFocusVisible: u,- isInert: jO(!d),+ isInert: MO(!d),isEntering: f,isExiting: a,state: t@@ -24228,31 +24228,31 @@ function Bce(e) {}), m = Eg(o, { global: !0 });delete m.id;let h = d ? U(m, s, c, p) : U(m, p);- return /*#__PURE__*/ B.createElement(xD.div, {+ return /*#__PURE__*/ B.createElement(SD.div, {...h,ref: r,"data-focused": l || void 0,"data-focus-visible": u || void 0,- inert: jO(!d || e.inert),+ inert: MO(!d || e.inert),"data-inert": d ? void 0 : "true","data-entering": f || void 0,"data-exiting": a || void 0- }, /*#__PURE__*/ B.createElement(mD, { values: [[Uk, null], [Wk, null]] }, /*#__PURE__*/ B.createElement(DD.Provider, { value: TD }, p.children)));+ }, /*#__PURE__*/ B.createElement(hD, { values: [[Wk, null], [Gk, null]] }, /*#__PURE__*/ B.createElement(OD.Provider, { value: ED }, p.children)));}//#endregion//#region node_modules/react-aria-components/dist/private/TextArea.mjs-var Vce = /*#__PURE__*/ (0, B.createContext)({}), Hce = /*#__PURE__*/ (0, B.createContext)(null), Uce = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = _D(e, t, Hce);- let { validationBehavior: n } = gD(ID) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);- [e, i] = _D(e, i, CD);- let [a, o] = vD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({- ...yD(e),+var Bce = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.createContext)(null), Hce = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = vD(e, t, Vce);+ let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);+ [e, i] = vD(e, i, wD);+ let [a, o] = yD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({+ ...bD(e),inputElementType: s,label: o,validationBehavior: r}, i), m = (0, B.useCallback)((e) => {i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");- }, [i]), h = hD({+ }, [i]), h = gD({...e,values: {isDisabled: e.isDisabled || !1,@@ -24262,7 +24262,7 @@ var Vce = /*#__PURE__*/ (0, B.createContext)({}), Hce = /*#__PURE__*/ (0, B.crea},defaultClassName: "react-aria-TextField"}), g = Eg(e, { global: !0 });- return delete g.id, /*#__PURE__*/ B.createElement(xD.div, {+ return delete g.id, /*#__PURE__*/ B.createElement(SD.div, {...g,...h,ref: t,@@ -24271,31 +24271,31 @@ var Vce = /*#__PURE__*/ (0, B.createContext)({}), Hce = /*#__PURE__*/ (0, B.crea"data-invalid": p.isInvalid || void 0,"data-readonly": e.isReadOnly || void 0,"data-required": e.isRequired || void 0- }, /*#__PURE__*/ B.createElement(mD, { values: [- [kD, {+ }, /*#__PURE__*/ B.createElement(hD, { values: [+ [AD, {...l,ref: a}],- [VD, {+ [HD, {...u,ref: m}],- [Vce, {+ [Bce, {...u,ref: m}],- [BD, {+ [VD, {role: "presentation",isInvalid: p.isInvalid,isDisabled: e.isDisabled || !1}],- [PD, { slots: {+ [FD, { slots: {description: d,errorMessage: f} }],- [FD, p]+ [ID, p]] }, h.children));-}), Wce = {+}), Uce = {selection: {type: ni,duration: .16,@@ -24307,7 +24307,7 @@ var Vce = /*#__PURE__*/ (0, B.createContext)({}), Hce = /*#__PURE__*/ (0, B.creabounce: 0}};-function Yk(e) {+function Xk(e) {let [t, n] = (0, B.useState)(null);return (0, B.useLayoutEffect)(() => {if (!t) return;@@ -24328,7 +24328,7 @@ function Yk(e) {let E = `translate(${b}px, ${x}px) scale(1, 1)`;if (u && a && !r.matches && T && s !== h) {let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;- l = Qf(n, { transform: [r, E] }, Wce[e]);+ l = Qf(n, { transform: [r, E] }, Uce[e]);} else n.style.transform = E;s = h, c = w, t.dataset.surfaceReady = "";}, m = (t) => {@@ -24365,25 +24365,25 @@ function Yk(e) {}//#endregion//#region src/react/components/segmented.tsx-function Xk(e) {- let t = Yk("selection");- return /* @__PURE__ */ (0, V.jsx)(Kk, {+function Zk(e) {+ let t = Xk("selection");+ return /* @__PURE__ */ (0, V.jsx)(qk, {...e,ref: t});}-function Zk(e) {- let t = Yk("selection");- return /* @__PURE__ */ (0, V.jsx)(gk, {+function Qk(e) {+ let t = Xk("selection");+ return /* @__PURE__ */ (0, V.jsx)(_k, {...e,ref: t});}-var Qk = "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", $k = "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", Gce = "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", eA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", tA = "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)", Kce = { "text-aa": 1.435 }, nA = /* @__PURE__ */ new Map();-function rA(e) {- let t = nA.get(e);+var $k = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", eA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Wce = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", tA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", nA = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", Gce = { "text-aa": 1.435 }, rA = /* @__PURE__ */ new Map();+function iA(e) {+ let t = rA.get(e);if (t) return t;- let n = Kce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {+ let n = Gce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {"aria-hidden": !0,viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,@@ -24397,23 +24397,23 @@ function rA(e) {className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })});- return r.displayName = `SpriteGlyph(${e})`, nA.set(e, r), r;+ return r.displayName = `SpriteGlyph(${e})`, rA.set(e, r), r;}//#endregion//#region src/react/entity-filter/entity-filter.ts-var qce = (e) => e === "videos", iA = () => /* @__PURE__ */ (0, V.jsx)("span", {+var Kce = (e) => e === "videos", aA = () => /* @__PURE__ */ (0, V.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"});-function Jce(e) {- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = qce(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), _ = fD(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = fD(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);+function qce(e) {+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Kce(t), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = pD(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = pD(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);return (0, B.useEffect)(() => {c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);- }, [c]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(aA, {+ }, [c]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(oA, {items: o,hidden: !l,actions: s- }), /* @__PURE__ */ (0, V.jsx)(lD, {+ }), /* @__PURE__ */ (0, V.jsx)(uD, {label: "筛选与排序",topLabel: "媒体与标签",attrs: {@@ -24433,13 +24433,13 @@ function Jce(e) {"data-view-glide": "round","aria-hidden": "true"})] }),- top: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Yce, {+ top: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Jce, {keys: n,view: t,row: p,glide: v,onView: s.setView- }), l ? /* @__PURE__ */ (0, V.jsx)(iA, {}) : null] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {+ }), l ? /* @__PURE__ */ (0, V.jsx)(aA, {}) : null] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {ref: m,"data-entity-scroll": "",children: [/* @__PURE__ */ (0, V.jsxs)("div", {@@ -24459,11 +24459,11 @@ function Jce(e) {r !== e.k && s.setState(e.k);},children: e.label- }, e.k)), /* @__PURE__ */ (0, V.jsx)(iA, {})]+ }, e.k)), /* @__PURE__ */ (0, V.jsx)(aA, {})]}), /* @__PURE__ */ (0, V.jsx)("div", {ref: h,"data-entity-tags": "",- children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(uD, {+ children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(dD, {"data-entity-tag": e.k,"data-entity-press": "",pressed: e.selected,@@ -24475,10 +24475,10 @@ function Jce(e) {}, e.k)) : null})]})] }),- bottom: /* @__PURE__ */ (0, V.jsx)(Xce, { ...e })+ bottom: /* @__PURE__ */ (0, V.jsx)(Yce, { ...e })})] });}-function Yce({ keys: e, view: t, row: n, glide: r, onView: i }) {+function Jce({ keys: e, view: t, row: n, glide: r, onView: i }) {let a = [];return e.people && a.push({value: "people",@@ -24520,7 +24520,7 @@ function Yce({ keys: e, view: t, row: n, glide: r, onView: i }) {})});}-function aA({ items: e, hidden: t, actions: n }) {+function oA({ items: e, hidden: t, actions: n }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-entity-combo": "",hidden: t,@@ -24540,7 +24540,7 @@ function aA({ items: e, hidden: t, actions: n }) {})] }) : null});}-function Xce(e) {+function Yce(e) {let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t === "photos" && a?.back ? /* @__PURE__ */ (0, V.jsxs)("button", {@@ -24552,22 +24552,22 @@ function Xce(e) {dangerouslySetInnerHTML: { __html: R("chevron-left") }}), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部照片" })]}) : null,- /* @__PURE__ */ (0, V.jsx)(Zce, {+ /* @__PURE__ */ (0, V.jsx)(Xce, {text: n,busy: r}),- t === "videos" && i ? /* @__PURE__ */ (0, V.jsx)(Qce, {+ t === "videos" && i ? /* @__PURE__ */ (0, V.jsx)(Zce, {head: i,actions: o}) : null,- t === "photos" && a ? /* @__PURE__ */ (0, V.jsx)($ce, {+ t === "photos" && a ? /* @__PURE__ */ (0, V.jsx)(Qce, {head: a,actions: o,helpers: s}) : null] });}-function Zce({ text: e, busy: t }) {+function Xce({ text: e, busy: t }) {return /* @__PURE__ */ (0, V.jsx)("h3", {"data-entity-readout": "",children: t ? /* @__PURE__ */ (0, V.jsx)("span", {@@ -24577,22 +24577,22 @@ function Zce({ text: e, busy: t }) {}) : e});}-function oA({ name: e, label: t, value: n, options: r, onChange: i }) {- return /* @__PURE__ */ (0, V.jsx)(gk, {+function sA({ name: e, label: t, value: n, options: r, onChange: i }) {+ return /* @__PURE__ */ (0, V.jsx)(_k, {name: e,"aria-label": t,orientation: "horizontal",value: n,onChange: i,"data-entity-layout": "",- className: eA,+ className: tA,children: r.map(([e, t, n]) => {- let r = rA(n);- return /* @__PURE__ */ (0, V.jsx)(_k, {+ let r = iA(n);+ return /* @__PURE__ */ (0, V.jsx)(vk, {value: e,"aria-label": t,"data-glass-segment": "",- className: tA,+ className: nA,children: /* @__PURE__ */ (0, V.jsx)("span", {title: t,className: "contents",@@ -24602,7 +24602,7 @@ function oA({ name: e, label: t, value: n, options: r, onChange: i }) {})});}-function sA({ onPress: e, busy: t = !1 }) {+function cA({ onPress: e, busy: t = !1 }) {return /* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-entity-batch": "",@@ -24616,27 +24616,27 @@ function sA({ onPress: e, busy: t = !1 }) {dangerouslySetInnerHTML: { __html: t ? Ke("正在换一批") : R("shuffle") }});}-function Qce({ head: e, actions: t }) {+function Zce({ head: e, actions: t }) {return /* @__PURE__ */ (0, V.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, V.jsx)(sA, { onPress: () => void t.reshuffle() }),- e.jav ? /* @__PURE__ */ (0, V.jsx)(oA, {+ /* @__PURE__ */ (0, V.jsx)(cA, { onPress: () => void t.reshuffle() }),+ e.jav ? /* @__PURE__ */ (0, V.jsx)(sA, {label: "JAV 卡片版式",value: e.jav.layout,options: e.jav.options,onChange: t.setJavLayout}) : null,- /* @__PURE__ */ (0, V.jsx)(cA, {+ /* @__PURE__ */ (0, V.jsx)(lA, {sorts: e.sorts,onSort: t.setSort})]});}-function cA({ sorts: e, onSort: t }) {+function lA({ sorts: e, onSort: t }) {return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: e.map((e) => {- let n = rA(e.dir === "asc" ? "arrow-up" : "arrow-down");+ let n = iA(e.dir === "asc" ? "arrow-up" : "arrow-down");return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-entity-sort": e.key,@@ -24648,20 +24648,20 @@ function cA({ sorts: e, onSort: t }) {}, e.key);}) });}-function $ce({ head: e, actions: t, helpers: n }) {+function Qce({ head: e, actions: t, helpers: n }) {let [r, i] = (0, B.useState)(!1), a = (0, B.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";return (0, B.useEffect)(() => {a.current && o && n.wireSourceTools(a.current);}, [n, o]), /* @__PURE__ */ (0, V.jsxs)("span", {"data-entity-sorts": "",children: [- e.shuffle ? /* @__PURE__ */ (0, V.jsx)(sA, {+ e.shuffle ? /* @__PURE__ */ (0, V.jsx)(cA, {onPress: () => {i(!0), t.reshuffle().finally(() => i(!1));},busy: r}) : null,- /* @__PURE__ */ (0, V.jsx)(oA, {+ /* @__PURE__ */ (0, V.jsx)(sA, {label: "图片布局",value: e.layout,options: e.layouts,@@ -24677,34 +24677,34 @@ function $ce({ head: e, actions: t, helpers: n }) {}//#endregion//#region src/react/catalog-filter/catalog-filter-page.tsx-var lA = "";-function ele(e) {- let t = !e.tiers, n = sle(e.comboHost);+var uA = "";+function $ce(e) {+ let t = !e.tiers, n = ole(e.comboHost);return /* @__PURE__ */ (0, V.jsxs)("div", {"data-catalog-root": "","data-loading": t || void 0,"data-refreshing": e.refreshing || void 0,className: "contents",children: [- n ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(aA, {+ n ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(oA, {items: e.combo,hidden: e.comboHidden,actions: e.actions}), n) : null,- /* @__PURE__ */ (0, V.jsx)(rle, { ...e }),- e.offscreen ? null : /* @__PURE__ */ (0, V.jsx)(tle, { ...e })+ /* @__PURE__ */ (0, V.jsx)(nle, { ...e }),+ e.offscreen ? null : /* @__PURE__ */ (0, V.jsx)(ele, { ...e })]});}-function tle(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 = fD(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);+function ele(e) {+ let { actions: t, helpers: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = pD(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);(0, B.useEffect)(() => {n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);}, [n]);- let l = !e.tiers, u = dA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);+ let l = !e.tiers, u = fA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);return (0, B.useLayoutEffect)(() => {Le(o.current, "tagbar");- }, [u]), /* @__PURE__ */ (0, V.jsx)(lD, {+ }, [u]), /* @__PURE__ */ (0, V.jsx)(uD, {label: "筛选与排序",topLabel: "视图与标签",attrs: {@@ -24747,17 +24747,17 @@ function tle(e) {}), /* @__PURE__ */ (0, V.jsxs)("div", {ref: o,"data-catalog-tags": "",- children: [e.empty || l ? /* @__PURE__ */ (0, V.jsx)(uA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, V.jsx)(nle, {+ children: [e.empty || l ? /* @__PURE__ */ (0, V.jsx)(dA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, V.jsx)(tle, {tag: e,onPress: t.toggleTag}, e.k))]})]}),- bottom: e.trash ? null : /* @__PURE__ */ (0, V.jsx)(ale, { ...e })+ bottom: e.trash ? null : /* @__PURE__ */ (0, V.jsx)(ile, { ...e })});}-function nle({ tag: e, onPress: t }) {- return /* @__PURE__ */ (0, V.jsxs)(uD, {+function tle({ tag: e, onPress: t }) {+ return /* @__PURE__ */ (0, V.jsxs)(dD, {"data-catalog-tag": e.k,"data-entity-press": "",pressed: e.selected,@@ -24768,12 +24768,12 @@ function nle({ tag: e, onPress: t }) {})]});}-function rle(e) {+function nle(e) {let { actions: t, helpers: n } = e, r = e.tiers ?? {key: "",performers: [],studios: []- }, i = e.empty || !e.tiers, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useCallback)((e) => () => t.moreTops(e), [t]), c = dA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = dA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;+ }, i = e.empty || !e.tiers, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useCallback)((e) => () => t.moreTops(e), [t]), c = fA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = fA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;return (0, B.useEffect)(() => {n.wireDrag(a.current), n.wireDrag(o.current);}, [@@ -24786,7 +24786,7 @@ function rle(e) {children: [u ? /* @__PURE__ */ (0, V.jsx)("div", {ref: a,"data-catalog-tier": "performers",- children: i ? /* @__PURE__ */ (0, V.jsx)(uA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {+ children: i ? /* @__PURE__ */ (0, V.jsx)(dA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-tier-performer": "","data-entity-kind": "performer",@@ -24803,18 +24803,18 @@ function rle(e) {}) : null, d ? /* @__PURE__ */ (0, V.jsx)("div", {ref: o,"data-catalog-tier": "studios",- children: i ? /* @__PURE__ */ (0, V.jsx)(uA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {+ children: i ? /* @__PURE__ */ (0, V.jsx)(dA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-tier-studio": "","data-entity-kind": "studio","data-entity-name": e.name,onClick: () => t.openEntity("studio", e.name),- children: [/* @__PURE__ */ (0, V.jsx)(ile, { studio: e }), e.name]+ children: [/* @__PURE__ */ (0, V.jsx)(rle, { studio: e }), e.name]}, e.name))}) : null]});}-function ile({ studio: e }) {+function rle({ studio: e }) {let [t, n] = (0, B.useState)(!1);return /* @__PURE__ */ (0, V.jsx)("span", {"data-tier-mark": "",@@ -24828,7 +24828,7 @@ function ile({ studio: e }) {}) : e.fallback});}-function uA({ kind: e }) {+function dA({ kind: e }) {let t = Array.from({ length: 64 }, (e, t) => t);return e === "tag" ? /* @__PURE__ */ (0, V.jsx)("span", {"data-catalog-placeholder": "tag",@@ -24844,32 +24844,32 @@ function uA({ kind: e }) {children: [/* @__PURE__ */ (0, V.jsx)("span", {}), /* @__PURE__ */ (0, V.jsx)("span", { children: "\xA0" })]}, t)) });}-function ale({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {+function ile({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {let [a, o] = (0, B.useState)(!1);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(ole, { count: e }), /* @__PURE__ */ (0, V.jsxs)("span", {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(ale, { count: e }), /* @__PURE__ */ (0, V.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, V.jsx)(sA, {+ /* @__PURE__ */ (0, V.jsx)(cA, {onPress: () => {o(!0), i.reshuffle().finally(() => o(!1));},busy: a || t}),- n ? /* @__PURE__ */ (0, V.jsx)(oA, {+ n ? /* @__PURE__ */ (0, V.jsx)(sA, {name: n.name,label: n.label,value: n.value,options: n.options,onChange: i.setLayout}, n.name) : null,- /* @__PURE__ */ (0, V.jsx)(cA, {+ /* @__PURE__ */ (0, V.jsx)(lA, {sorts: r,onSort: i.setSort})]})] });}-function ole({ count: e }) {+function ale({ count: e }) {let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";return (0, B.useLayoutEffect)(() => {if (!e) {@@ -24877,7 +24877,7 @@ function ole({ count: e }) {return;}let i = t.current;- i && (lA && i.dataset.popCount === void 0 && (i.dataset.popCount = lA), lA = r, Re(i, r));+ i && (uA && i.dataset.popCount === void 0 && (i.dataset.popCount = uA), uA = r, Re(i, r));}, [e, r]), e ? /* @__PURE__ */ (0, V.jsx)("span", {ref: t,"data-catalog-readout": "",@@ -24893,7 +24893,7 @@ function ole({ count: e }) {})}, "skeleton");}-function sle(e) {+function ole(e) {let [t, n] = (0, B.useState)(null);return (0, B.useLayoutEffect)(() => {if (!e) return;@@ -24903,7 +24903,7 @@ function sle(e) {};}, [e]), t;}-function dA(e, t, n, r, i) {+function fA(e, t, n, r, i) {let a = () => ({key: n,limit: r,@@ -24949,7 +24949,7 @@ function dA(e, t, n, r, i) {}//#endregion//#region src/react/components/grid-reveal.tsx-function fA(e, t) {+function pA(e, t) {let [n, r] = (0, B.useState)(e ? "skeleton" : "none"), [i] = (0, B.useState)(() => e ? t() : ""), a = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {a.current && ke(a.current);@@ -24975,7 +24975,7 @@ function fA(e, t) {fading: n === "fade"};}-function pA({ message: e, onRetry: t }) {+function mA({ message: e, onRetry: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-media-error": "",onClick: (e) => {@@ -24989,7 +24989,7 @@ function pA({ message: e, onRetry: t }) {}//#endregion//#region src/react/components/art-slot.tsx-function mA({ artwork: e, identity: t = e.html, relayout: n }) {+function hA({ artwork: e, identity: t = e.html, relayout: n }) {let [r, i] = (0, B.useState)({identity: t,artwork: e@@ -25009,24 +25009,24 @@ function mA({ artwork: e, identity: t = e.html, relayout: n }) {}//#endregion//#region src/react/components/media-card.tsx-var cle = 9 / 16;-function hA({ name: e }) {+var sle = 9 / 16;+function gA({ name: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })});}-var lle = {+var cle = {image: "图片",audio: "音频",archive: "压缩包",other: "其它文件"};-function gA(e, t, n) {- return t === "short" ? cle : o(n);+function _A(e, t, n) {+ return t === "short" ? sle : o(n);}-function ule(e) {+function lle(e) {let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = E(e), s = i[0] || "", c = ee(e);return {avatar: r ? /* @__PURE__ */ (0, V.jsx)("div", {@@ -25073,7 +25073,7 @@ function ule(e) {})};}-function dle() {+function ule() {return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-media-preview": "",@@ -25092,7 +25092,7 @@ function dle() {})]});}-function fle({ item: e, actions: t }) {+function dle({ item: e, actions: t }) {let [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;return /* @__PURE__ */ (0, V.jsx)("div", {"data-media-later": "",@@ -25110,21 +25110,21 @@ function fle({ item: e, actions: t }) {},"aria-busy": i || void 0,"aria-disabled": i || void 0,- children: /* @__PURE__ */ (0, V.jsx)(hA, { name: o ? "check" : "bookmark-plus" })+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: o ? "check" : "bookmark-plus" })})});}-function _A(e, t) {+function vA(e, t) {let n = e?.querySelector("video.hv");!n || !Number.isFinite(n.duration) || (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));}-function ple({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {+function fle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {let l = (0, B.useRef)(null), u = (0, B.useRef)(e);u.current = e;let d = (0, B.useCallback)((e) => {let t = u.current;l.current && l.current !== e && re(l.current), l.current = e, e && (!t.medium || t.medium === "video") && oe(e, t);- }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = T(e, h, !1, n.javImage), _ = h === "small" ? g.html : T(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = ule(e), E = (e.follow_tags || e.tags || []).slice(0, 3), D = [+ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = T(e, h, !1, n.javImage), _ = h === "small" ? g.html : T(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = lle(e), E = (e.follow_tags || e.tags || []).slice(0, 3), D = [e.feedback === "dislike" && "dislike",e.feedback === "seen" && "seen",e.disposal === "trash" && "dispose",@@ -25158,9 +25158,9 @@ function ple({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSc(e, r);}, k = /* @__PURE__ */ (0, V.jsxs)("div", {"data-media-pic": "",- style: { "--card-ratio": String(gA(e, t, n)) },+ style: { "--card-ratio": String(_A(e, t, n)) },children: [- g.html ? /* @__PURE__ */ (0, V.jsx)(mA, {+ g.html ? /* @__PURE__ */ (0, V.jsx)(hA, {artwork: g,identity: _,relayout: (e) => ne(e, h)@@ -25174,11 +25174,11 @@ function ple({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS}),/* @__PURE__ */ (0, V.jsx)("span", {"data-media-check": "",- children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "check" })+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "check" })}),/* @__PURE__ */ (0, V.jsxs)("span", {"data-media-trash-mark": "",- children: [/* @__PURE__ */ (0, V.jsx)(hA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]+ children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]}),f ? /* @__PURE__ */ (0, V.jsx)("span", {"data-media-group": "",@@ -25205,8 +25205,8 @@ function ple({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS"data-media-scrub": "",children: /* @__PURE__ */ (0, V.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })}),- /* @__PURE__ */ (0, V.jsx)(dle, {}),- /* @__PURE__ */ (0, V.jsx)(fle, {+ /* @__PURE__ */ (0, V.jsx)(ule, {}),+ /* @__PURE__ */ (0, V.jsx)(dle, {item: e,actions: s}),@@ -25216,27 +25216,27 @@ function ple({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS/* @__PURE__ */ (0, V.jsx)("button", {type: "button",onClick: (e) => {- e.stopPropagation(), _A(l.current, -a);+ e.stopPropagation(), vA(l.current, -a);},title: `后退 ${a} 秒`,"aria-label": `后退 ${a} 秒`,- children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "rotate-ccw" })+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "rotate-ccw" })}),/* @__PURE__ */ (0, V.jsx)("button", {type: "button",onClick: (e) => {- e.stopPropagation(), _A(l.current, a);+ e.stopPropagation(), vA(l.current, a);},title: `前进 ${a} 秒`,"aria-label": `前进 ${a} 秒`,- children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "rotate-cw" })+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "rotate-cw" })}),/* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-open": "",title: "打开详情","aria-label": "打开详情",- children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "expand" })+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "expand" })})]})@@ -25312,8 +25312,8 @@ function ple({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS]});}-function mle({ 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") ? "网址快捷方式" : lle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {+function ple({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : cle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {t.preventDefault(), t.stopPropagation(), !s && (c(!0), i.resourceOperation(e, p).catch(() => {}).finally(() => c(!1)));}, g = (t) => {if (o.current) {@@ -25339,7 +25339,7 @@ function mle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpchildren: [/* @__PURE__ */ (0, V.jsxs)("span", {"data-media-glyph": "",- children: [/* @__PURE__ */ (0, V.jsx)(hA, { name: f }), /* @__PURE__ */ (0, V.jsx)("b", { children: d })]+ children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: f }), /* @__PURE__ */ (0, V.jsx)("b", { children: d })]}),l ? /* @__PURE__ */ (0, V.jsx)("span", {"data-media-art": "thumb",@@ -25351,11 +25351,11 @@ function mle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp}),/* @__PURE__ */ (0, V.jsx)("span", {"data-media-check": "",- children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "check" })+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "check" })}),/* @__PURE__ */ (0, V.jsxs)("span", {"data-media-trash-mark": "",- children: [/* @__PURE__ */ (0, V.jsx)(hA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]+ children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]}),/* @__PURE__ */ (0, V.jsx)("button", {type: "button",@@ -25365,7 +25365,7 @@ function mle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOponClick: h,"aria-busy": s || void 0,"aria-disabled": s || void 0,- children: s ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: Ke(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, V.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(hA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, V.jsx)("span", { children: m })] })+ children: s ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: Ke(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, V.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, V.jsx)("span", { children: m })] })})]}), /* @__PURE__ */ (0, V.jsxs)("div", {@@ -25374,7 +25374,7 @@ function mle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp"data-media-avatar": "","data-media-kind-glyph": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)(hA, { name: f })+ children: /* @__PURE__ */ (0, V.jsx)(gA, { name: f })}), /* @__PURE__ */ (0, V.jsxs)("div", {"data-media-text": "",children: [/* @__PURE__ */ (0, V.jsx)("span", {@@ -25403,17 +25403,17 @@ function mle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp})]});}-function hle(e) {- return e.variant === "resource" ? /* @__PURE__ */ (0, V.jsx)(mle, { ...e }) : /* @__PURE__ */ (0, V.jsx)(ple, { ...e });+function mle(e) {+ return e.variant === "resource" ? /* @__PURE__ */ (0, V.jsx)(ple, { ...e }) : /* @__PURE__ */ (0, V.jsx)(fle, { ...e });}-var vA = (0, B.memo)(hle), gle = 1100, _le = 340, vle = 5e3;-function yle(e, t, n) {+var yA = (0, B.memo)(mle), hle = 1100, gle = 340, _le = 5e3;+function vle(e, t, n) {return new Promise((r) => {let i = new Image();n && (i.referrerPolicy = n);let a = !1, o = (e) => {a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));- }, s = () => o(!1), c = setTimeout(s, vle);+ }, s = () => o(!1), c = setTimeout(s, _le);t.cancels.add(s), i.onerror = s, i.onload = () => {if (!i.naturalWidth) {o(!1);@@ -25423,7 +25423,7 @@ function yle(e, t, n) {}, i.src = e;});}-function yA({ load: e, canFlip: t, referrerPolicy: n }) {+function bA({ load: e, canFlip: t, referrerPolicy: n }) {let [r, i] = (0, B.useState)([]), [a, o] = (0, B.useState)(0), [s, c] = (0, B.useState)(null), l = (0, B.useRef)({live: !1,generation: 0,@@ -25465,11 +25465,11 @@ function yA({ load: e, canFlip: t, referrerPolicy: n }) {return;}if (!r() || !u.current.canFlip() || a.length < 2) return;- let s = await Promise.all(a.map((t) => yle(t, e, n)));+ let s = await Promise.all(a.map((t) => vle(t, e, n)));if (!r() || !u.current.canFlip()) return;let d = a.filter((e, t) => s[t]);d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {- p(), e.cycle = setInterval(p, gle);+ p(), e.cycle = setInterval(p, hle);}));};return (0, B.useEffect)(() => d, [d]), {@@ -25478,7 +25478,7 @@ function yA({ 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(_le, () => {+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(gle, () => {e.armed = null, m();});},@@ -25489,8 +25489,8 @@ function yA({ load: e, canFlip: t, referrerPolicy: n }) {}//#endregion//#region src/react/components/mix-card.tsx-var bA = rA("play");-function ble({ src: e }) {+var xA = iA("play");+function yle({ src: e }) {let [t, n] = (0, B.useState)(!1);return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {"data-mix-poster": "",@@ -25503,8 +25503,8 @@ function ble({ src: e }) {className: "absolute inset-0 block size-full object-contain"});}-var xA = "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 xle({ faces: e, fallback: t, onOpenEntity: n }) {+var SA = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";+function ble({ faces: e, fallback: t, onOpenEntity: n }) {return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {"data-mix-avatars": "",children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, V.jsx)("button", {@@ -25512,18 +25512,18 @@ function xle({ faces: e, fallback: t, onOpenEntity: n }) {title: `打开资料页:${e.name}`,"aria-label": `打开资料页:${e.name}`,onClick: () => n(e.kind, e.name),- className: `${xA} cursor-pointer outline-none`,+ className: `${SA} cursor-pointer outline-none`,dangerouslySetInnerHTML: { __html: w(e.name, e, ae(e.name), e.kind) }}, `${e.kind}:${e.id}`))}) : /* @__PURE__ */ (0, V.jsx)("span", {"data-mix-initial": "","aria-hidden": !0,- className: `${xA} mt-0.5`,+ className: `${SA} mt-0.5`,children: t});}-function SA({ 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 = yA({+function CA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {+ let b = bA({load: i,canFlip: a}), x = (0, B.useRef)(b.onPointerLeave);@@ -25550,11 +25550,11 @@ function SA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:style: d === void 0 ? void 0 : { "--card-ratio": String(d) },className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",children: [- f?.html ? /* @__PURE__ */ (0, V.jsx)(mA, {+ f?.html ? /* @__PURE__ */ (0, V.jsx)(hA, {artwork: f,identity: p,relayout: m- }) : r ? /* @__PURE__ */ (0, V.jsx)(ble, { src: r }, r) : /* @__PURE__ */ (0, V.jsx)("span", {+ }) : r ? /* @__PURE__ */ (0, V.jsx)(yle, { src: r }, r) : /* @__PURE__ */ (0, V.jsx)("span", {className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",children: "无预览"}),@@ -25584,7 +25584,7 @@ function SA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:/* @__PURE__ */ (0, V.jsxs)("span", {"data-mix-badge": "",className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",- children: [/* @__PURE__ */ (0, V.jsx)(bA, {+ children: [/* @__PURE__ */ (0, V.jsx)(xA, {"aria-hidden": !0,className: "size-3.75"}), g ?? `${n} 个视频`]@@ -25597,8 +25597,8 @@ function SA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:_ ? /* @__PURE__ */ (0, V.jsx)("span", {"data-mix-glyph": "","aria-hidden": !0,- children: /* @__PURE__ */ (0, V.jsx)(bA, {})- }) : /* @__PURE__ */ (0, V.jsx)(xle, {+ children: /* @__PURE__ */ (0, V.jsx)(xA, {})+ }) : /* @__PURE__ */ (0, V.jsx)(ble, {faces: o,fallback: e.slice(0, 1),onOpenEntity: s@@ -25622,20 +25622,20 @@ function SA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:}//#endregion//#region src/react/catalog-grid/catalog-grid-page.tsx-function CA(e) {- if (e.mode === "items") return /* @__PURE__ */ (0, V.jsx)(Cle, { ...e });- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${kC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;- return /* @__PURE__ */ (0, V.jsx)(wle, { ...e }, t);+function wA(e) {+ if (e.mode === "items") return /* @__PURE__ */ (0, V.jsx)(TA, { ...e });+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${AC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;+ return /* @__PURE__ */ (0, V.jsx)(Sle, { ...e }, t);}-function Sle({ name: e }) {+function xle({ name: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })});}-function Cle(e) {- let { actions: t } = e, n = (0, B.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, V.jsx)(vA, {+function TA(e) {+ let { actions: t } = e, n = (0, B.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, V.jsx)(yA, {item: i,variant: r,layout: e.layout,@@ -25655,15 +25655,15 @@ function Cle(e) {children: i});}-function wle(e) {- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? jre(e) : AC(e), s = i && e.initial ? {+function Sle(e) {+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Are(e) : jC(e), s = i && e.initial ? {pages: [{...e.initial,items: e.initial.items || [],offset: 0}],pageParams: [0]- } : void 0, c = OS({+ } : void 0, c = kS({queryKey: o.queryKey,queryFn: ({ pageParam: e, signal: t }) => o.queryFn({pageParam: e,@@ -25676,7 +25676,7 @@ function wle(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)(() => Fre(c.data?.pages || [], {+ let { tiles: u, pageStarts: d } = (0, B.useMemo)(() => Pre(c.data?.pages || [], {collapse: e.groupCollapse !== !1,mix: !!e.mix && !a,javImage: r.javImage@@ -25686,7 +25686,7 @@ function wle(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 = fA(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = Tle(e, c.data, u, d, h);+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = pA(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = Cle(e, c.data, u, d, h);(0, B.useLayoutEffect)(() => {if (!c.data) return;let t = !0;@@ -25703,12 +25703,12 @@ function wle(e) {let _ = (0, B.useCallback)((e, t) => n.open(e, t), [n]), v = (0, B.useCallback)((e, t) => n.openResource(e, t), [n]), y = (0, B.useCallback)((e) => n.openShort(e), [n]), b = (0, B.useCallback)(async () => {let e = await c.fetchNextPage({ cancelRefetch: !1 });if (e.isFetchNextPageError) throw e.error;- }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)(Dle, {+ }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)(Tle, {seed: i.seed,layout: r,helpers: t,actions: n- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, V.jsx)(vA, {+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, V.jsx)(yA, {item: i.item,variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",layout: r,@@ -25725,7 +25725,7 @@ function wle(e) {"data-grid-reveal": m.fading ? "" : void 0,children: [m.layer, (() => {if (c.isPending) return null;- if (!c.data) return /* @__PURE__ */ (0, V.jsx)(pA, {+ if (!c.data) return /* @__PURE__ */ (0, V.jsx)(mA, {message: ye(c.error),onRetry: () => void c.refetch()});@@ -25742,15 +25742,15 @@ function wle(e) {return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {"data-media-sections": "","data-select-mode": e.selectMode ? "" : void 0,- children: Rre(u, g).map((t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {+ children: Lre(u, g).map((t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {"data-media-grid": "",children: t.tiles.map(x)- }), t.strip ? /* @__PURE__ */ (0, V.jsx)(Ele, {+ }), t.strip ? /* @__PURE__ */ (0, V.jsx)(wle, {cut: t.strip,props: e,onOpen: y}) : null] }, t.start))- }), c.hasNextPage ? /* @__PURE__ */ (0, V.jsx)(wA, {+ }), c.hasNextPage ? /* @__PURE__ */ (0, V.jsx)(EA, {entity: i,load: b,enabled: () => e.canLoadMore?.() !== !1@@ -25758,7 +25758,7 @@ function wle(e) {})()]});}-function wA({ entity: e, load: t, enabled: n, children: r }) {+function EA({ entity: e, load: t, enabled: n, children: r }) {let i = (0, B.useRef)(null), a = (0, B.useRef)(!1), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)({busy: !1,error: ""@@ -25819,12 +25819,12 @@ function wA({ entity: e, load: t, enabled: n, children: r }) {...f,onClick: () => void u(!0),dangerouslySetInnerHTML: { __html: Pe("继续载入中…") }- }), s.error ? /* @__PURE__ */ (0, V.jsx)(pA, {+ }), s.error ? /* @__PURE__ */ (0, V.jsx)(mA, {message: s.error,onRetry: () => void u(!0)}) : null] });}-function Tle(e, t, n, r, i) {+function Cle(e, t, n, r, i) {let [a, o] = (0, B.useState)([]), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(0), u = (0, B.useRef)(0), d = (0, B.useRef)([]);return (0, B.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, B.useEffect)(() => {let n = t?.pages.length || 0;@@ -25833,7 +25833,7 @@ function Tle(e, t, n, r, i) {let r = new AbortController();d.current.push(r);let i = n - 1;- G(`/api/items?${Lre(e.filters || {}, l.current)}`, r.signal).then((e) => {+ G(`/api/items?${Ire(e.filters || {}, l.current)}`, r.signal).then((e) => {let t = e.items || [];if (!t.length) {l.current = 0;@@ -25849,7 +25849,7 @@ function Tle(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 = Ire(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 = Fre(n.length - e, f, d);if (!p.length) return;let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {@@ -25859,7 +25859,7 @@ function Tle(e, t, n, r, i) {}]);}, [s]), a;}-function Ele({ cut: e, props: t, onOpen: n }) {+function wle({ cut: e, props: t, onOpen: n }) {let r = (0, B.useRef)(null), { wireDrag: i } = t;return (0, B.useEffect)(() => {r.current && i(r.current);@@ -25875,12 +25875,12 @@ function Ele({ cut: e, props: t, onOpen: n }) {type: "button","data-shorts-enter": "",onClick: () => t.actions.openShorts(),- children: [/* @__PURE__ */ (0, V.jsx)(Sle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "进入沉浸模式" })]+ children: [/* @__PURE__ */ (0, V.jsx)(xle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "进入沉浸模式" })]})] }), /* @__PURE__ */ (0, V.jsx)("div", {ref: r,"data-shorts-row": "",- children: e.items.map((e) => /* @__PURE__ */ (0, V.jsx)(vA, {+ children: e.items.map((e) => /* @__PURE__ */ (0, V.jsx)(yA, {item: e,variant: "short",layout: t.layout,@@ -25894,17 +25894,17 @@ function Ele({ cut: e, props: t, onOpen: n }) {})]});}-function TA(e, t, n) {+function DA(e, t, n) {return N(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);}-function Dle({ seed: e, layout: t, helpers: n, actions: r }) {+function Tle({ seed: e, layout: t, helpers: n, actions: r }) {let i = (0, B.useRef)(/* @__PURE__ */ new Map()), a = (0, B.useRef)(t);a.current = t;let o = P(e, n.tagLabel), s = (0, B.useCallback)(async () => {- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => jC(e, t.javImage)).slice(0, 9);- return i.current = new Map(n.map((e) => [String(e.id), TA(e, t, !0).html])), n.map((e) => String(e.id));- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = TA(e, t, !1);- return /* @__PURE__ */ (0, V.jsx)(SA, {+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => MC(e, t.javImage)).slice(0, 9);+ return i.current = new Map(n.map((e) => [String(e.id), DA(e, t, !0).html])), n.map((e) => String(e.id));+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = DA(e, t, !1);+ return /* @__PURE__ */ (0, V.jsx)(CA, {"data-mix-seed": String(e.id),name: `Mix · ${o}`,caption: `${n.displayName(e, e.name || "")}及相似作品`,@@ -25914,12 +25914,12 @@ function Dle({ seed: e, layout: t, helpers: n, actions: r }) {wholeCard: !0,poster: null,artwork: l,- artworkIdentity: c === "small" ? l.html : TA(e, {+ artworkIdentity: c === "small" ? l.html : DA(e, {...t,size: "small"}, !1).html,relayoutArt: (e) => ne(e, c),- ratio: gA(e, "grid", t),+ ratio: _A(e, "grid", t),flipImages: s,faceHtml: (e) => i.current.get(e) || "",canFlip: r.canFlip,@@ -25931,31 +25931,31 @@ function Dle({ seed: e, layout: t, helpers: n, actions: r }) {}//#endregion//#region src/react/media-sources.ts-async function EA(e) {+async function OA(e) {await z.fetchQuery({queryKey: et,queryFn: () => nt(e)});}-var Ole = [+var Ele = ["local","115","pikpak"-], kle = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ale = "/api/duplicates?limit=120", DA = ["duplicates"], OA = "/api/batch", kA = (e) => G(Ale, e);-async function jle(e) {+], Dle = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ole = "/api/duplicates?limit=120", kA = ["duplicates"], AA = "/api/batch", jA = (e) => G(Ole, e);+async function kle(e) {await Promise.all([z.fetchQuery({- queryKey: DA,- queryFn: () => kA(e)- }), EA(e)]);+ queryKey: kA,+ queryFn: () => jA(e)+ }), OA(e)]);}-var AA = {+var MA = {largest: "最大的一个",longest: "最长的一个",115: "115(没有则留最大)",pikpak: "PikPak(没有则留最大)",all: "零个文件"-}, Mle = (e, t) => t.filter((t) => e.some((e) => e.location === t)), jA = (e, t) => Mle(e, t).filter((t) => e.some((e) => e.location !== t)), Nle = (e, t) => t.filter((t) => e.some((e) => jA(e.files, [t]).length));-function Ple(e, t) {+}, Ale = (e, t) => t.filter((t) => e.some((e) => e.location === t)), NA = (e, t) => Ale(e, t).filter((t) => e.some((e) => e.location !== t)), jle = (e, t) => t.filter((t) => e.some((e) => NA(e.files, [t]).length));+function Mle(e, t) {let n = [];for (let r of e) {if (t === "all") {@@ -25974,47 +25974,47 @@ function Ple(e, t) {}return n;}-function Fle(e, t) {+function Nle(e, t) {let n = new Set(t);return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);}-async function MA(e, t) {- for (let n = 0; n < e.length; n += 200) await K(OA, {+async function PA(e, t) {+ for (let n = 0; n < e.length; n += 200) await K(AA, {ids: e.slice(n, n + 200),operation: t});}//#endregion//#region src/react/library-processing/library-processing.ts-var NA = "/api/library-processing", PA = ["library-processing"], FA = (e) => G(NA, e);-async function IA(e) {+var FA = "/api/library-processing", IA = ["library-processing"], LA = (e) => G(FA, e);+async function RA(e) {await z.fetchQuery({- queryKey: PA,- queryFn: () => FA(e)+ queryKey: IA,+ queryFn: () => LA(e)});}-var Ile = 2e3, Lle = 1e4, LA = "连接中断,正在重新读取处理进度";-function Rle(e, t) {- return e?.status === "running" ? Ile : t ? Lle : !1;+var Ple = 2e3, Fle = 1e4, zA = "连接中断,正在重新读取处理进度";+function Ile(e, t) {+ return e?.status === "running" ? Ple : t ? Fle : !1;}-var zle = {+var Lle = {reading_local: "读取本地资料",querying_metadata: "查询外部资料",fetching_cover: "采集缺失封面",writing_candidates: "保存资料候选"-}, RA = {+}, BA = {querying_metadata: "没有资料",fetching_cover: "没有封面"};-function Ble(e) {- let t = Object.entries(e).filter(([e, t]) => RA[e] && t > 0).map(([e, t]) => `${RA[e]} ${t} 部`);+function Rle(e) {+ let t = Object.entries(e).filter(([e, t]) => BA[e] && t > 0).map(([e, t]) => `${BA[e]} ${t} 部`);return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";}-function zA(e) {- let t = zle[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";+function VA(e) {+ let t = Lle[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;}-function Vle(e) {+function zle(e) {let t = e.issue_preview || [];return t.length ? {label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,@@ -26028,21 +26028,21 @@ function Vle(e) {log: e.issues_log || ""} : null;}-var BA = "peach.library-processing.announced", Hle = 120;-function Ule(e, t, n) {+var HA = "peach.library-processing.announced", Ble = 120;+function Vle(e, t, n) {if (e.status !== "complete") return;- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Hle;+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Ble;if (!(!n && !r)) {try {- if (e.job_id && localStorage.getItem(BA) === e.job_id) return;- e.job_id && localStorage.setItem(BA, e.job_id);+ if (e.job_id && localStorage.getItem(HA) === e.job_id) return;+ e.job_id && localStorage.setItem(HA, e.job_id);} catch {}t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);}}//#endregion//#region src/react/media-repair/media-repair.ts-var VA = "/api/media-repair", HA = ["media-repair"], UA = ["media-repair", "libraries"], Wle = {+var UA = "/api/media-repair", WA = ["media-repair"], GA = ["media-repair", "libraries"], Hle = {status: "idle",library: "",stage: "",@@ -26054,33 +26054,33 @@ var VA = "/api/media-repair", HA = ["media-repair"], UA = ["media-repair", "librmissing_tool: 0,skipped: 0,message: ""-}, WA = (e) => G(VA, e), GA = async (e) => (await G("/api/libraries", e)).libraries || [];-async function Gle(e) {+}, KA = (e) => G(UA, e), qA = async (e) => (await G("/api/libraries", e)).libraries || [];+async function Ule(e) {await Promise.all([z.fetchQuery({- queryKey: HA,- queryFn: () => WA(e)+ queryKey: WA,+ queryFn: () => KA(e)}), z.fetchQuery({- queryKey: UA,- queryFn: () => GA(e)+ queryKey: GA,+ queryFn: () => qA(e)})]);}-var KA = (e) => Number(e).toLocaleString();-function Kle(e) {+var JA = (e) => Number(e).toLocaleString();+function Wle(e) {if (e.status === "running") {- let t = e.total ? `${KA(e.checked)} / ${KA(e.total)}` : "准备中";+ let t = e.total ? `${JA(e.checked)} / ${JA(e.total)}` : "准备中";return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;}- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${KA(e.repaired)} 部,${KA(e.failed)} 部修不了` : `修好 ${KA(e.repaired)} 部` : "";+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${JA(e.repaired)} 部,${JA(e.failed)} 部修不了` : `修好 ${JA(e.repaired)} 部` : "";}-var qle = (e) => `${KA(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Jle = "/api/quality-goals?limit=200", qA = ["quality-goals"], JA = (e) => G(Jle, e);-async function Yle(e) {+var Gle = (e) => `${JA(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Kle = "/api/quality-goals?limit=200", YA = ["quality-goals"], XA = (e) => G(Kle, e);+async function qle(e) {await z.fetchQuery({- queryKey: qA,- queryFn: () => JA(e)+ queryKey: YA,+ queryFn: () => XA(e)});}-var Xle = (e) => e.has_cover ? D(e) : `/poster?id=${e.id}&c=4`;-function YA(e, t, n = 1) {+var Jle = (e) => e.has_cover ? D(e) : `/poster?id=${e.id}&c=4`;+function ZA(e, t, n = 1) {let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);if (n * 2 + 5 >= t) return r(1, t);let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;@@ -26100,21 +26100,21 @@ function YA(e, t, n = 1) {t];}-function XA(e, t) {+function QA(e, t) {return Math.max(1, Math.ceil(e / t));}-function ZA(e, t) {+function $A(e, t) {return Math.min(Math.max(1, Math.floor(e) || 1), t);}//#endregion//#region src/selection.ts-function Zle(e, t, n, r, i, a = i || !e.has(r)) {+function Yle(e, t, n, r, i, a = i || !e.has(r)) {let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;}//#endregion//#region src/react/time.ts-function QA(e) {+function ej(e) {if (!e) return "";let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);@@ -26123,7 +26123,7 @@ function QA(e) {}//#endregion//#region src/react/review/review.ts-var Qle = "/api/review", $le = "/api/review/decision", eue = "/api/review/genre", $A = ["review"], ej = {+var Xle = "/api/review", Zle = "/api/review/decision", Qle = "/api/review/genre", tj = ["review"], nj = {metadata_fields: "元数据字段",creator_tags: "创作者标签",studio_logos: "厂牌 Logo",@@ -26133,15 +26133,15 @@ var Qle = "/api/review", $le = "/api/review/decision", eue = "/api/review/genre"fc2_markings: "FC2 评论标记",fc2_similarity: "FC2 跨号相似",video_endcards: "片尾/出处证据"-}, tue = Object.keys(ej), nue = "metadata_fields", tj = (e) => typeof e == "string" && Object.hasOwn(ej, e), rue = {+}, $le = Object.keys(nj), eue = "metadata_fields", rj = (e) => typeof e == "string" && Object.hasOwn(nj, e), tue = {creator_tags: "creator",western_identity: "creator"};-function iue(e, t) {+function nue(e, t) {let n = [["candidates", t ? "按候选数量" : "全部待复核"]];return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;}-function nj(e, t) {+function ij(e, t) {let n = /* @__PURE__ */ new Map();for (let r of e) {let e, i;@@ -26158,43 +26158,43 @@ function nj(e, t) {}return [...n.values()];}-function aue(e, t, n) {- return n && nj(e, t).find((e) => e.key === n)?.rows || e;+function rue(e, t, n) {+ return n && ij(e, t).find((e) => e.key === n)?.rows || e;}-function oue(e, t) {- let n = XA(e.length, 20), r = ZA(t, n);+function iue(e, t) {+ let n = QA(e.length, 20), r = $A(t, n);return {page: r,pages: n,rows: e.slice((r - 1) * 20, r * 20)};}-function sue(e) {+function aue(e) {return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];}-function cue(e, t, n, r, i, a) {- return Zle(e, t, n, r, i, a);+function oue(e, t, n, r, i, a) {+ return Yle(e, t, n, r, i, a);}-function rj(e, t) {+function aj(e, t) {return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";}-function ij(e, t) {+function oj(e, t) {return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);}-var aj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";-function lue(e, t) {- let n = ij(e, t), r = aj(e, t);+var sj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";+function sue(e, t) {+ let n = oj(e, t), r = sj(e, t);return r ? `${n} · ${r}` : n;}-var uue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", due = (e) => String(e.tags || "").split("|").filter(Boolean), fue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];-function pue(e) {+var cue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", lue = (e) => String(e.tags || "").split("|").filter(Boolean), uue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];+function due(e) {let t = e.candidates || [];return {candidateKey: t.length === 1 ? t[0].candidate_key : "",assets: (e.preview_assets || []).map((e) => e.id)};}-function oj(e, t, n, r) {+function cj(e, t, n, r) {let i = !!t.asset_path && t.asset_mutation_revision != null;return {category: e,@@ -26210,19 +26210,19 @@ function oj(e, t, n, r) {...i ? { expected_revision: t.asset_mutation_revision } : {}};}-var mue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", sj = (e) => G(Qle, e), cj = (e) => K($le, e), hue = (e, t) => K(eue, {+var fue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", lj = (e) => G(Xle, e), uj = (e) => K(Zle, e), pue = (e, t) => K(Qle, {genre: e,tag: t});-async function gue(e) {+async function mue(e) {await z.fetchQuery({- queryKey: $A,- queryFn: () => sj(e)+ queryKey: tj,+ queryFn: () => lj(e)});}-function lj(e, t) {+function dj(e, t) {let n = new Set(t);- n.size && z.setQueryData($A, (t) => {+ n.size && z.setQueryData(tj, (t) => {if (!t) return t;let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));return i.length === r.length ? t : {@@ -26238,207 +26238,207 @@ function lj(e, t) {};});}-var _ue = () => z.invalidateQueries({- queryKey: $A,+var hue = () => z.invalidateQueries({+ queryKey: tj,exact: !0});-function vue(e, t) {- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${QA(e.fetched_at)} 的缓存` : e?.error || t;+function gue(e, t) {+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${ej(e.fetched_at)} 的缓存` : e?.error || t;}//#endregion//#region src/react/data-cleanup/links.ts-var yue = "/api/links", uj = "/api/links/check", dj = "/api/links/prune", fj = ["links"], pj = ["links", "check"], mj = ["links", "prune"], hj = {+var _ue = "/api/links", fj = "/api/links/check", pj = "/api/links/prune", mj = ["links"], hj = ["links", "check"], gj = ["links", "prune"], _j = {official: "官网/事务所",social: "社交账号",catalog: "作品资料站",source_reference: "资料出处"};-async function gj(e) {+async function vj(e) {let t = await e;if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");return t;}-var _j = (e) => G(yue, e), vj = (e) => K(uj, { status_only: !0 }, "POST", e), bue = ({ retry: e, checkId: t }) => gj(K(uj, e ? {+var yj = (e) => G(_ue, e), bj = (e) => K(fj, { status_only: !0 }, "POST", e), vue = ({ retry: e, checkId: t }) => vj(K(fj, e ? {retry: e,check_id: t-} : { restart: !0 })), yj = (e) => G(dj, e), xue = (e) => gj(K(dj, {+} : { restart: !0 })), xj = (e) => G(pj, e), yue = (e) => vj(K(pj, {confirm: !0,check_id: e,background: !0-})), bj = (e) => Number(e || 0).toLocaleString(), Sue = (e) => `已删除 ${bj(e.removed)} 条;${e.marked ? `已隐退女优的 ${bj(e.marked)} 条留作不可点的记录;` : ""}保留 ${bj(e.recovered)} 条未确认失效的链接。`;-function Cue(e) {+})), Sj = (e) => Number(e || 0).toLocaleString(), bue = (e) => `已删除 ${Sj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Sj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Sj(e.recovered)} 条未确认失效的链接。`;+function xue(e) {let t = e.scope === "retry";- return e.total ? `${t ? "已重验" : "已检查"} ${bj(e.checked)} / ${bj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";+ return e.total ? `${t ? "已重验" : "已检查"} ${Sj(e.checked)} / ${Sj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";}//#endregion//#region src/react/settings-panel/settings-data.ts-var xj = "/api/settings", Sj = "/api/follow/schedule", Cj = "/api/thumbnail-jobs", wj = ["settings"], Tj = ["follow-schedule"], Ej = ["thumbnail-jobs"], wue = (e) => G(xj, e), Dj = (e) => G(Sj, e), Oj = (e) => G(Cj, e);-function Tue(e = z) {+var Cj = "/api/settings", wj = "/api/follow/schedule", Tj = "/api/thumbnail-jobs", Ej = ["settings"], Dj = ["follow-schedule"], Oj = ["thumbnail-jobs"], Sue = (e) => G(Cj, e), kj = (e) => G(wj, e), Aj = (e) => G(Tj, e);+function Cue(e = z) {return e.fetchQuery({- queryKey: Tj,- queryFn: ({ signal: e }) => Dj(e),+ queryKey: Dj,+ queryFn: ({ signal: e }) => kj(e),staleTime: 0}).catch(() => null), e.fetchQuery({- queryKey: Ej,- queryFn: ({ signal: e }) => Oj(e),+ queryKey: Oj,+ queryFn: ({ signal: e }) => Aj(e),staleTime: 0}).catch(() => null), e.fetchQuery({- queryKey: wj,- queryFn: ({ signal: e }) => wue(e),+ queryKey: Ej,+ queryFn: ({ signal: e }) => Sue(e),staleTime: 0}).catch(() => null);}-function kj() {- return DS({- mutationFn: (e) => K(xj, e),- onSuccess: (e) => z.setQueryData(wj, e)+function jj() {+ return OS({+ mutationFn: (e) => K(Cj, e),+ onSuccess: (e) => z.setQueryData(Ej, e)});}-function Eue() {- return DS({- mutationFn: (e) => K(Sj, {+function wue() {+ return OS({+ mutationFn: (e) => K(wj, {enabled: e > 0,interval_minutes: e || 60}),- onSuccess: (e) => z.setQueryData(Tj, e)+ onSuccess: (e) => z.setQueryData(Dj, e)});}-function Due() {- return DS({- mutationFn: (e) => K(Cj, { mode: e }),- onSuccess: (e) => z.setQueryData(Ej, e)+function Tue() {+ return OS({+ mutationFn: (e) => K(Tj, { mode: e }),+ onSuccess: (e) => z.setQueryData(Oj, e)});}-function Oue(e) {- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${QA(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${QA(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";+function Eue(e) {+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${ej(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${ej(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";}-function kue(e) {+function Due(e) {return e.status === "running" ? "正在采集,进度在活动页查看。" : e.status === "failed" ? `上一轮采集停下了:${e.stopped || "原因未取得"}` : e.status === "complete" ? e.stopped ? "上一轮采集已按停。" : "上一轮采集已完成。" : e.mode === "off" ? "关闭时不采集;已经生成的图留在盘上,清理走数据管理页。" : "选定档位后从最近看过的片子开始采集。";}//#endregion//#region src/react/data-cleanup/organize.ts-var Aue = "/api/organize", jue = "/api/organize/preview", Mue = "/api/organize/apply", Nue = "/api/organize/rollback", Aj = ["organize"], jj = (e) => G(Aue, e);-async function Pue(e) {+var Oue = "/api/organize", kue = "/api/organize/preview", Aue = "/api/organize/apply", jue = "/api/organize/rollback", Mj = ["organize"], Nj = (e) => G(Oue, e);+async function Mue(e) {await z.fetchQuery({- queryKey: Aj,- queryFn: () => jj(e)+ queryKey: Mj,+ queryFn: () => Nj(e)});}-var Fue = (e) => K(jue, e), Iue = (e) => e.kind === "apply" ? K(Mue, {+var Nue = (e) => K(kue, e), Pue = (e) => e.kind === "apply" ? K(Aue, {...e.request,confirm: !0-}) : K(Nue, { confirm: !0 });-async function Lue(e) {- z.setQueryData(Aj, (t) => t && {+}) : K(jue, { confirm: !0 });+async function Fue(e) {+ z.setQueryData(Mj, (t) => t && {...t,templates: e});try {- await K(xj, { organizeTemplates: e });+ await K(Cj, { organizeTemplates: e });} catch {}}-var Rue = (e, t) => e && {+var Iue = (e, t) => e && {...e,...t-}, zue = /目录模板|分隔符|盘符|`\.`/;-function Mj(e) {+}, Lue = /目录模板|分隔符|盘符|`\.`/;+function Pj(e) {let t = String(e || "");return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);}-var Nj = (e) => Number(e || 0).toLocaleString();-function Bue(e) {- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Nj(t)}`).join(" · ");- return Number(e.counts?.change || 0) ? `${Nj(e.counts.change)} 个文件会改名或移动,${Nj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;+var Fj = (e) => Number(e || 0).toLocaleString();+function Rue(e) {+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Fj(t)}`).join(" · ");+ return Number(e.counts?.change || 0) ? `${Fj(e.counts.change)} 个文件会改名或移动,${Fj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;}-function Pj(e) {+function Ij(e) {let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);return {- text: t ? `已退回 ${Nj(r)} 个文件${n ? `,${Nj(n)} 行未能退回` : ""}。` : `已整理 ${Nj(r)} 个文件${n ? `,${Nj(n)} 行未能处理` : ""}。`,+ text: t ? `已退回 ${Fj(r)} 个文件${n ? `,${Fj(n)} 行未能退回` : ""}。` : `已整理 ${Fj(r)} 个文件${n ? `,${Fj(n)} 行未能处理` : ""}。`,failed: n,rollback: t};}//#endregion//#region src/react/data-cleanup/resource-sync.ts-var Fj = "/api/resource-sync/scan", Ij = "/api/resource-sync/apply", Lj = ["resource-sync", "scan"], Rj = ["resource-sync", "apply"], zj = (e) => K(Fj, {+var Lj = "/api/resource-sync/scan", Rj = "/api/resource-sync/apply", zj = ["resource-sync", "scan"], Bj = ["resource-sync", "apply"], Vj = (e) => K(Lj, {background: !0,status_only: !0-}, "POST", e), Vue = () => K(Fj, {+}, "POST", e), zue = () => K(Lj, {background: !0,restart: !0-}), Bj = (e) => G(Ij, e), Hue = (e) => K(Ij, {+}), Hj = (e) => G(Rj, e), Bue = (e) => K(Rj, {confirm: !0,clean_cache: !0,scan_id: e,background: !0-}), Vj = (e) => (e?.sources ?? []).some((e) => Ole.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);-async function Uue(e) {- Vj(z.getQueryData(tt)) && await Promise.all([z.fetchQuery({- queryKey: Lj,- queryFn: () => zj(e)+}), Uj = (e) => (e?.sources ?? []).some((e) => Ele.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);+async function Vue(e) {+ Uj(z.getQueryData(tt)) && await Promise.all([z.fetchQuery({+ queryKey: zj,+ queryFn: () => Vj(e)}), z.fetchQuery({- queryKey: Rj,- queryFn: () => Bj(e)+ queryKey: Bj,+ queryFn: () => Hj(e)})]);}-var Wue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Gue = {+var Hue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Uue = {local: "本地磁盘",115: "115",pikpak: "PikPak"-}, Hj = (e) => Number(e || 0).toLocaleString(), Kue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Uj = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), Wj = (e) => e.vanish ? `${Hj(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", Gj = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", que = (e) => `将永久删除文件已不在盘上的 ${Hj(Uj(e))} 条记录和 ${Hj(e.empty)} 个空文件夹,并清理 ${Hj(e.cache?.files)} 个闲置缓存。${Gj(e)}${Wj(e)}`, Jue = (e) => `将永久删除文件已不在盘上的 ${Hj(Uj(e))} 条记录(含回收站里的)、${Hj(e.empty)} 个空文件夹,并清理 ${Hj(e.cache?.files)} 个闲置缓存。来源根目录保留。${Gj(e)}${Wj(e)}`, Yue = (e) => e.online ? [- `找不到文件 · 共 ${Hj(e.total)} 项`,- e.vanish ? `${Hj(e.vanish)} 项带个人记录` : "",- e.empty ? `空文件夹 ${Hj(e.empty)} 个` : "",- e.unreadable ? `${Hj(e.unreadable)} 个目录读取失败,已跳过` : ""-].filter(Boolean).join(" · ") : `馆藏中有 ${Hj(e.total)} 项`;-function Kj(e) {+}, Wj = (e) => Number(e || 0).toLocaleString(), Wue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Gj = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), Kj = (e) => e.vanish ? `${Wj(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", qj = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Gue = (e) => `将永久删除文件已不在盘上的 ${Wj(Gj(e))} 条记录和 ${Wj(e.empty)} 个空文件夹,并清理 ${Wj(e.cache?.files)} 个闲置缓存。${qj(e)}${Kj(e)}`, Kue = (e) => `将永久删除文件已不在盘上的 ${Wj(Gj(e))} 条记录(含回收站里的)、${Wj(e.empty)} 个空文件夹,并清理 ${Wj(e.cache?.files)} 个闲置缓存。来源根目录保留。${qj(e)}${Kj(e)}`, que = (e) => e.online ? [+ `找不到文件 · 共 ${Wj(e.total)} 项`,+ e.vanish ? `${Wj(e.vanish)} 项带个人记录` : "",+ e.empty ? `空文件夹 ${Wj(e.empty)} 个` : "",+ e.unreadable ? `${Wj(e.unreadable)} 个目录读取失败,已跳过` : ""+].filter(Boolean).join(" · ") : `馆藏中有 ${Wj(e.total)} 项`;+function Jj(e) {let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");return {done: i,left: a,rest: [- t.length ? `${Hj(t.length)} 条记录没有删除(${o})` : "",- n ? `${Hj(n)} 个文件夹没有删除` : "",- r.length ? `${Hj(r.length)} 个缓存没有清理` : ""+ t.length ? `${Wj(t.length)} 条记录没有删除(${o})` : "",+ n ? `${Wj(n)} 个文件夹没有删除` : "",+ r.length ? `${Wj(r.length)} 个缓存没有清理` : ""].filter(Boolean).join(",")};}-var Xue = (e, t) => {- let { rest: n } = Kj(e), r = `已永久删除 ${Hj(e.purged)} 条失效记录和 ${Hj(e.dirs_removed)} 个空文件夹,清理 ${Hj(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Hj(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Hj(e.reattached)} 条的记录已接到库里的另一个版本。` : "");+var Jue = (e, t) => {+ let { rest: n } = Jj(e), r = `已永久删除 ${Wj(e.purged)} 条失效记录和 ${Wj(e.dirs_removed)} 个空文件夹,清理 ${Wj(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Wj(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Wj(e.reattached)} 条的记录已接到库里的另一个版本。` : "");return n ? `${r}${n},重新检查后可再试。` : r;-}, Zue = "/api/review?counts=1", qj = ["review", "counts"], Que = "/api/ads?limit=1", Jj = ["junk-summary"], Yj = "/api/items?state=trash&limit=1", Xj = ["trash-summary"], $ue = [+}, Yue = "/api/review?counts=1", Yj = ["review", "counts"], Xue = "/api/ads?limit=1", Xj = ["junk-summary"], Zj = "/api/items?state=trash&limit=1", Qj = ["trash-summary"], Zue = [["video", "视频"],["image", "图片"],["archive", "压缩包"],["audio", "音频"],["url", "网址"],["other", "其它"]-], Zj = (e) => G(Zue, e), Qj = (e) => G(Que, e), $j = (e) => {+], $j = (e) => G(Yue, e), eM = (e) => G(Xue, e), tM = (e) => {let t = sessionStorage.getItem("peach.library");- return G(t ? `${Yj}&library=${encodeURIComponent(t)}` : Yj, e);-}, eM = (e) => Number(e || 0).toLocaleString();-function ede(e) {- let t = ej, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);+ return G(t ? `${Zj}&library=${encodeURIComponent(t)}` : Zj, e);+}, nM = (e) => Number(e || 0).toLocaleString();+function Que(e) {+ let t = nj, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);return a && i.push(`其余 ${a.toLocaleString()}`), {figure: `${r.toLocaleString()} 条待复核`,meta: i.join(" · ")};}-function tde(e) {+function $ue(e) {if (!e) return "";- let t = $ue.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${eM(e.counts[t])}`);- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${eM(e.dismissed_total)}`), t.join(" · ");-}-var nde = [- [qj, ({ signal: e }) => Zj(e)],- [qA, ({ signal: e }) => JA(e)],- [Xj, ({ signal: e }) => $j(e)],- [fj, ({ signal: e }) => _j(e)],- [pj, ({ signal: e }) => vj(e)],- [mj, ({ signal: e }) => yj(e)]+ let t = Zue.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${nM(e.counts[t])}`);+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${nM(e.dismissed_total)}`), t.join(" · ");+}+var ede = [+ [Yj, ({ signal: e }) => $j(e)],+ [YA, ({ signal: e }) => XA(e)],+ [Qj, ({ signal: e }) => tM(e)],+ [mj, ({ signal: e }) => yj(e)],+ [hj, ({ signal: e }) => bj(e)],+ [gj, ({ signal: e }) => xj(e)]];-async function rde(e) {- let t = location.hash === "#resource-sync", n = nde.map(([n, r]) => {+async function tde(e) {+ let t = location.hash === "#resource-sync", n = ede.map(([n, r]) => {if (t) return z.fetchQuery({queryKey: n,queryFn: () => r({ signal: e })@@ -26451,49 +26451,49 @@ async function rde(e) {await Promise.all([...n,z.fetchQuery({- queryKey: Jj,- queryFn: () => Qj(e)+ queryKey: Xj,+ queryFn: () => eM(e)}),z.fetchQuery({- queryKey: DA,- queryFn: () => kA(e)+ queryKey: kA,+ queryFn: () => jA(e)}),- EA(e).then(() => Uue(e)),- IA(e),- Gle(e),- Pue(e)+ OA(e).then(() => Vue(e)),+ RA(e),+ Ule(e),+ Mue(e)]);}//#endregion//#region src/react/components/stat-card.tsx-var ide = [+var nde = ["text-chart-6","text-chart-5","text-chart-7","text-chart-8"-], ade = [+], rde = ["bg-chart-6/10","bg-chart-5/10","bg-chart-7/10","bg-chart-8/10"];-function tM(e = {}) {- return `${xE({+function rM(e = {}) {+ return `${SE({...e,padding: "none"})} flex flex-col overflow-hidden pt-4 text-left`;}-var nM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ode = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";-function rM({ interactive: e = !1 } = {}) {- return xE({+var iM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ide = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";+function aM({ interactive: e = !1 } = {}) {+ return SE({padding: "none",radius: "plain",interactive: e,className: "flex min-h-33 flex-col gap-2 p-4 text-left"});}-var sde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";-function iM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {+var ade = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";+function oM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",@@ -26526,13 +26526,13 @@ function iM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta})] });}-function aM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {+function sM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",children: [t ? /* @__PURE__ */ (0, V.jsx)("i", {"aria-hidden": !0,- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${ide[n % 4]} ${ade[n % 4]}`,+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${nde[n % 4]} ${rde[n % 4]}`,children: /* @__PURE__ */ (0, V.jsx)(t, {"aria-hidden": !0,className: "size-4"@@ -26554,16 +26554,16 @@ function aM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {}//#endregion//#region src/react/components/menu-dialog.tsx-function oM(e) {- let t = Yk("hover");- return /* @__PURE__ */ (0, V.jsx)(lk, {+function cM(e) {+ let t = Xk("hover");+ return /* @__PURE__ */ (0, V.jsx)(uk, {...e,ref: t});}//#endregion//#region src/react/boardui/components/base/dropdown/menu-styles.ts-var sM = [+var lM = ["max-w-[calc(100vw-32px)] overflow-y-auto","rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown","transition duration-150 ease-out",@@ -26571,74 +26571,74 @@ var sM = ["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(" "), cde = "w-[266px]", lde = "flex w-full flex-col gap-1 outline-none", cM = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), lM = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";+].join(" "), ode = "w-[266px]", sde = "flex w-full flex-col gap-1 outline-none", uM = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), dM = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";({medium: "h-9 rounded-2lg p-2 text-body-medium",small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"}).medium;//#endregion//#region src/management.ts-var ude = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", dde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", fde = xE({+var cde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", lde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", ude = SE({padding: "none",bordered: "line",className: "overflow-hidden"-}), pde = {+}), dde = {split: "min-w-0 p-6",stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"-}, mde = {+}, fde = {split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"-}, hde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", gde = {+}, pde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", mde = {neutral: "border-border-button-default bg-card-footer",error: "border-border-error-default bg-background-tertiary-error"-}, _de = xE({+}, hde = SE({padding: "none",radius: "surface",bordered: "line",className: "overflow-hidden"-}), uM = "border-t border-border-button-default p-4 first:border-t-0";-function dM({ tone: e = "neutral", status: t, children: n }) {+}), fM = "border-t border-border-button-default p-4 first:border-t-0";+function pM({ tone: e = "neutral", status: t, children: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {- className: `${hde} ${gde[e]}`,+ className: `${pde} ${mde[e]}`,children: [t ? /* @__PURE__ */ (0, V.jsx)("p", {className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,children: t}) : null, n]});}-function fM({ id: e, children: t }) {+function mM({ id: e, children: t }) {return /* @__PURE__ */ (0, V.jsx)("h2", {id: e,className: "text-title-2-medium! m-0! text-text-primary",children: t});}-function pM({ id: e, gap: t = "none", children: n }) {+function hM({ id: e, gap: t = "none", children: n }) {return /* @__PURE__ */ (0, V.jsx)("h3", {id: e,className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,children: n});}-function mM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {+function gM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {return /* @__PURE__ */ (0, V.jsxs)("section", {id: r,"aria-label": t,"aria-labelledby": n,...o,- className: `${fde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,+ className: `${ude} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: pde[e],+ className: dde[e],children: a}), i ? /* @__PURE__ */ (0, V.jsx)("footer", {- className: mde[e],+ className: fde[e],children: i}) : null]});}//#endregion//#region src/react/components/overlay-scrollbar.ts-function hM() {+function _M() {let e = (0, B.useRef)(null);return (0, B.useEffect)(() => {Ce(e.current);@@ -26646,7 +26646,7 @@ function hM() {}//#endregion//#region src/react/boardui/components/base/buttons/icon-button.tsx-var gM = gE({+var vM = _E({base: ["relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg","bg-background-primary-default text-foreground-icon-primary",@@ -26667,21 +26667,21 @@ var gM = gE({small: "size-4 shrink-0"}});-function _M({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {+function yM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {return /* @__PURE__ */ (0, V.jsx)("button", {ref: i,type: r,- className: hE(gM.base, gM.size[t], n),+ className: gE(vM.base, vM.size[t], n),...a,children: /* @__PURE__ */ (0, V.jsx)(e, {- className: gM.icon[t],+ className: vM.icon[t],"aria-hidden": !0})});}//#endregion//#region src/react/components/path-line.tsx-function vde({ className: e }) {+function gde({ className: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -26694,8 +26694,8 @@ function vde({ className: e }) {children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-folder-open" })});}-var yde = "打开文件管理器失败,请重试";-function vM({ path: e, prefix: t, className: n, onRevealed: r }) {+var _de = "打开文件管理器失败,请重试";+function bM({ path: e, prefix: t, className: n, onRevealed: r }) {let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(""), c = (0, B.useRef)(!0);(0, B.useEffect)(() => () => {c.current = !1;@@ -26706,7 +26706,7 @@ function vM({ path: e, prefix: t, className: n, onRevealed: r }) {try {await K("/api/reveal", { path: e }), r?.("已在资源管理器中显示");} catch (e) {- c.current && s(e instanceof AS ? e.message : yde);+ c.current && s(e instanceof jS ? e.message : _de);} finally {c.current && a(!1);}@@ -26717,10 +26717,10 @@ function vM({ path: e, prefix: t, className: n, onRevealed: r }) {children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex items-center justify-between gap-2",children: [/* @__PURE__ */ (0, V.jsxs)("p", {- className: hE("min-w-0 break-all", n),+ className: gE("min-w-0 break-all", n),children: [t, e]- }), /* @__PURE__ */ (0, V.jsx)(_M, {- icon: vde,+ }), /* @__PURE__ */ (0, V.jsx)(yM, {+ icon: gde,size: "small",className: "shrink-0","aria-label": "在资源管理器中显示",@@ -26735,38 +26735,38 @@ function vM({ path: e, prefix: t, className: n, onRevealed: r }) {}//#endregion//#region src/react/components/task-progress.tsx-function yM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {+function xM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-task-progress": !0,- className: r ? "flex flex-col gap-1.5" : xE({+ className: r ? "flex flex-col gap-1.5" : SE({variant: "outlined",padding: "none",className: "flex flex-col gap-1.5 px-4 py-3.5"}),- children: n && n > 0 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(EE, {+ children: n && n > 0 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(DE, {label: e,value: t,max: n}), /* @__PURE__ */ (0, V.jsx)("p", {className: "text-caption-1-regular text-text-secondary",children: e- })] }) : /* @__PURE__ */ (0, V.jsx)(CE, { label: e })+ })] }) : /* @__PURE__ */ (0, V.jsx)(wE, { label: e })});}//#endregion//#region src/react/library-processing/use-library-processing.ts-function bM({ toast: e, mode: t, monitor: n }) {- let r = t === "notice" || !!n, i = wS({- queryKey: PA,- queryFn: ({ signal: e }) => FA(e),- refetchInterval: (e) => Rle(e.state.data, r)+function SM({ toast: e, mode: t, monitor: n }) {+ let r = t === "notice" || !!n, i = TS({+ queryKey: IA,+ queryFn: ({ signal: e }) => LA(e),+ refetchInterval: (e) => Ile(e.state.data, r)}), [a, o] = (0, B.useState)(null), s = (0, B.useRef)(void 0), c = i.data;return (0, B.useEffect)(() => {if (!c) return;let n = s.current;s.current = c.status;let r = n === "running" && c.status !== "running";- r && o(c), (r || t === "notice") && Ule(c, e, r);+ r && o(c), (r || t === "notice") && Vle(c, e, r);}, [c,t,@@ -26779,29 +26779,29 @@ function bM({ toast: e, mode: t, monitor: n }) {}//#endregion//#region src/react/library-processing/library-processing-card.tsx-var bde = [+var vde = [{label: "扫描并补全资料",- icon: pT,+ icon: mT,command: {}},{label: "只扫描",- icon: _T,+ icon: vT,command: { stage: "scan" }},{label: "只采集",- icon: dae,+ icon: uae,command: { stage: "collect" }}-], xde = hE(cM, lM, "text-body-2-medium"), Sde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Cde = (e) => {+], yde = gE(uM, dM, "text-body-2-medium"), bde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", xde = (e) => {let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;if (!t && !n && !r && !i) return "";let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;-}, wde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Cde(e);-function Tde({ busy: e, onRun: t }) {+}, Sde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + xde(e);+function Cde({ busy: e, onRun: t }) {let n = (0, B.useRef)(null), [r, i] = (0, B.useState)(!1), a = (n) => {e || (i(!1), t(n));};@@ -26810,14 +26810,14 @@ function Tde({ busy: e, onRun: t }) {"data-split-button": !0,"data-variant": "primary",children: [/* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: pT,+ leadingIcon: mT,onClick: () => a({}),...X(e),children: "扫描并补全资料"}), /* @__PURE__ */ (0, V.jsx)(J, {ref: n,iconOnly: !0,- leadingIcon: oT,+ leadingIcon: sT,"aria-label": "更多扫描与采集方式","aria-haspopup": "dialog","aria-expanded": r,@@ -26826,19 +26826,19 @@ function Tde({ busy: e, onRun: t }) {e || i(!0);}})]- }), /* @__PURE__ */ (0, V.jsx)(QO, {+ }), /* @__PURE__ */ (0, V.jsx)($O, {triggerRef: n,isOpen: r,onOpenChange: i,placement: "bottom end",offset: 4,- className: sM,- children: /* @__PURE__ */ (0, V.jsx)(oM, {+ className: lM,+ children: /* @__PURE__ */ (0, V.jsx)(cM, {"aria-label": "更多扫描与采集方式",className: "flex w-52 flex-col gap-1 outline-none",- children: bde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, V.jsxs)("button", {+ children: vde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, V.jsxs)("button", {type: "button",- className: xde,+ className: yde,onClick: () => a(n),children: [/* @__PURE__ */ (0, V.jsx)(t, {"aria-hidden": !0,@@ -26848,8 +26848,8 @@ function Tde({ busy: e, onRun: t }) {})})] });}-function Ede({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {- let a = Vle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Ble(e.notes || {}), c = hM();+function wde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {+ let a = zle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Rle(e.notes || {}), c = _M();return /* @__PURE__ */ (0, V.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-4 empty:hidden",@@ -26857,7 +26857,7 @@ function Ede({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {e.status === "running" && e.stalled ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "warning",title: "处理较慢",- children: Sde+ children: bde}) : null,t || e.status === "failed" ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",@@ -26869,7 +26869,7 @@ function Ede({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {}) : null,extra: a ? /* @__PURE__ */ (0, V.jsx)("div", {className: "mt-1.5 border-t border-current/20 pt-1.5",- children: /* @__PURE__ */ (0, V.jsxs)(HE, {+ children: /* @__PURE__ */ (0, V.jsxs)(UE, {summary: a.label,children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "relative",@@ -26900,7 +26900,7 @@ function Ede({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {})}), a.log ? /* @__PURE__ */ (0, V.jsx)("div", {className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",- children: /* @__PURE__ */ (0, V.jsx)(vM, {+ children: /* @__PURE__ */ (0, V.jsx)(bM, {path: a.log,prefix: "完整记录:",className: "text-caption-1-regular",@@ -26914,13 +26914,13 @@ function Ede({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {n?.status === "complete" ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "success",title: "处理完成",- children: wde(n)+ children: Sde(n)}) : null,e.status !== "running" && s ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "neutral",extra: e.issues_log ? /* @__PURE__ */ (0, V.jsx)("div", {className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",- children: /* @__PURE__ */ (0, V.jsx)(vM, {+ children: /* @__PURE__ */ (0, V.jsx)(bM, {path: e.issues_log,prefix: "完整记录:",className: "text-caption-1-regular",@@ -26932,38 +26932,38 @@ function Ede({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {]});}-function xM(e) {- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = bM(e), o = DS({- mutationFn: (e) => K(NA, e),+function CM(e) {+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = SM(e), o = OS({+ mutationFn: (e) => K(FA, e),onSuccess: (e) => {- a(), z.setQueryData(PA, e), z.invalidateQueries({ queryKey: PA });+ a(), z.setQueryData(IA, e), z.invalidateQueries({ queryKey: IA });}});(0, B.useEffect)(() => {i && n?.();}, [i, n]);- let s = r.data ?? { status: "idle" }, c = o.error ? W(o.error) : r.isError ? r.data ? LA : W(r.error) : "", l = o.isPending || s.status === "running", u = zA(s), d = (e) => {+ let s = r.data ?? { status: "idle" }, c = o.error ? W(o.error) : r.isError ? r.data ? zA : W(r.error) : "", l = o.isPending || s.status === "running", u = VA(s), d = (e) => {l || (o.reset(), o.mutate(e));};return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-4",- children: [/* @__PURE__ */ (0, V.jsx)(mM, {+ children: [/* @__PURE__ */ (0, V.jsx)(gM, {layout: "stack",label: "扫描与采集",footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(jE, {+ /* @__PURE__ */ (0, V.jsx)(ME, {href: "/scraping",size: "small",- trailingIcon: sT,+ trailingIcon: cT,children: "来源和凭证"}),- s.candidates ? /* @__PURE__ */ (0, V.jsx)(jE, {+ s.candidates ? /* @__PURE__ */ (0, V.jsx)(ME, {href: "/review",size: "small",- trailingIcon: sT,+ trailingIcon: cT,children: "复核资料"}) : null,- /* @__PURE__ */ (0, V.jsx)(Tde, {+ /* @__PURE__ */ (0, V.jsx)(Cde, {busy: l,onRun: d})@@ -26971,12 +26971,12 @@ function xM(e) {children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(pM, { children: "扫描与采集" }),+ /* @__PURE__ */ (0, V.jsx)(hM, { children: "扫描与采集" }),/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: ude+ children: cde}),- s.status === "running" ? /* @__PURE__ */ (0, V.jsx)(yM, {+ s.status === "running" ? /* @__PURE__ */ (0, V.jsx)(xM, {embedded: !0,label: u,value: s.checked,@@ -26984,7 +26984,7 @@ function xM(e) {}) : null]})- }), /* @__PURE__ */ (0, V.jsx)(Ede, {+ }), /* @__PURE__ */ (0, V.jsx)(wde, {state: s,problem: c,settled: i,@@ -27000,7 +27000,7 @@ function xM(e) {}//#endregion//#region src/react/boardui/components/foundations/icons/chevrons.tsx-function Dde(e) {+function Tde(e) {return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 16 16",fill: "none",@@ -27014,7 +27014,7 @@ function Dde(e) {})});}-function Ode(e) {+function Ede(e) {return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24",fill: "none",@@ -27028,7 +27028,7 @@ function Ode(e) {}//#endregion//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts-function kde(e, t, n) {+function Dde(e, t, n) {(0, B.useEffect)(() => {if (!e) return;let r = (e) => {@@ -27042,7 +27042,7 @@ function kde(e, t, n) {n]);}-function Ade(e, t) {+function Ode(e, t) {let n = (0, B.useRef)(!1);return (0, B.useEffect)(() => {if (!e) return;@@ -27056,33 +27056,33 @@ function Ade(e, t) {}//#endregion//#region src/react/boardui/components/base/select/select.tsx-var SM = (0, B.createContext)("md");-function CM({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {+var wM = (0, B.createContext)("md");+function TM({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {let l = (0, B.useRef)(null), u = (0, B.useRef)(null), [d, f] = (0, B.useState)(!1);- kde(d, () => f(!1), [l, u]);- let p = Ade(d, l);- return /* @__PURE__ */ (0, V.jsx)(ece, {+ Dde(d, () => f(!1), [l, u]);+ let p = Ode(d, l);+ return /* @__PURE__ */ (0, V.jsx)($se, {ref: s,...c,isOpen: d,onOpenChange: (e) => p(e) && f(e),- className: hE("group flex flex-col", e),- children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(jD, {+ className: gE("group flex flex-col", e),+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(MD, {ref: l,- className: hE("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),- children: [/* @__PURE__ */ (0, V.jsx)(rce, {- className: hE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),+ className: gE("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),+ children: [/* @__PURE__ */ (0, V.jsx)(nce, {+ className: gE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),children: o- }), /* @__PURE__ */ (0, V.jsx)(Dde, { className: hE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]- }), /* @__PURE__ */ (0, V.jsx)(QO, {+ }), /* @__PURE__ */ (0, V.jsx)(Tde, { className: gE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]+ }), /* @__PURE__ */ (0, V.jsx)($O, {ref: u,isNonModal: !0,offset: 4,- className: hE(cde, sM, "p-2", n),- children: /* @__PURE__ */ (0, V.jsx)(xse, {+ className: gE(ode, lM, "p-2", n),+ children: /* @__PURE__ */ (0, V.jsx)(bse, {items: a,- className: hE(lde, "max-h-[240px] overflow-auto"),- children: /* @__PURE__ */ (0, V.jsx)(SM.Provider, {+ className: gE(sde, "max-h-[240px] overflow-auto"),+ children: /* @__PURE__ */ (0, V.jsx)(wM.Provider, {value: r,children: i})@@ -27090,30 +27090,30 @@ function CM({ className: e, triggerClassName: t, popoverClassName: n, size: r =})] })});}-function wM({ className: e, children: t, ...n }) {- let r = (0, B.useContext)(SM);- return /* @__PURE__ */ (0, V.jsx)(wse, {+function EM({ className: e, children: t, ...n }) {+ let r = (0, B.useContext)(wM);+ return /* @__PURE__ */ (0, V.jsx)(Cse, {...n,- className: (t) => hE(cM, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),+ className: (t) => gE(uM, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),children: t});}//#endregion//#region src/react/background-job.ts-var TM = 2e3, jde = (e) => e, Mde = (e, t) => t;-function EM(e) {- let { queryKey: t, jobOf: n = jde, withJob: r = Mde, idlePollMs: i } = e, [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(e);+var DM = 2e3, kde = (e) => e, Ade = (e, t) => t;+function OM(e) {+ let { queryKey: t, jobOf: n = kde, withJob: r = Ade, idlePollMs: i } = e, [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(e);(0, B.useEffect)(() => {l.current = e;});- let u = wS({+ let u = TS({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" ? TM : i ?? !1;+ return t !== void 0 && n(t)?.status === "running" ? DM : i ?? !1;}- }), d = DS({+ }), d = OS({mutationFn: (e) => l.current.start(e),onSuccess: (e) => {o(!0), c(null), l.current.onStarted?.(e), z.setQueryData(t, (t) => r(t, e)), z.invalidateQueries({@@ -27142,32 +27142,32 @@ function EM(e) {}//#endregion//#region src/react/media-repair/media-repair-card.tsx-var Nde = (e) => Se[e] || e, DM = (e) => z.setQueryData(HA, e);-function Pde() {- let e = wS({- queryKey: HA,- queryFn: ({ signal: e }) => WA(e),- refetchInterval: (e) => e.state.data?.status === "running" && TM- }), t = wS({- queryKey: UA,- queryFn: ({ signal: e }) => GA(e)- }), [n, r] = (0, B.useState)(""), i = DE(), a = e.data ?? Wle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {+var jde = (e) => Se[e] || e, kM = (e) => z.setQueryData(WA, e);+function Mde() {+ let e = TS({+ queryKey: WA,+ queryFn: ({ signal: e }) => KA(e),+ refetchInterval: (e) => e.state.data?.status === "running" && DM+ }), t = TS({+ queryKey: GA,+ queryFn: ({ signal: e }) => qA(e)+ }), [n, r] = (0, B.useState)(""), i = OE(), a = e.data ?? Hle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {c && Te({title: `修复媒体库「${c.name}」`,body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),confirmLabel: "修复媒体库",- onConfirm: async () => DM(await K(VA, {+ onConfirm: async () => kM(await K(UA, {library: c.id,restart: !0}))});- }, u = () => void i.run("stop", (e) => K(VA, { stop: !0 }, "POST", e), DM), d = Kle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");+ }, u = () => void i.run("stop", (e) => K(UA, { stop: !0 }, "POST", e), kM), d = Wle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-4",- children: [/* @__PURE__ */ (0, V.jsx)(mM, {+ children: [/* @__PURE__ */ (0, V.jsx)(gM, {layout: "split",label: "媒体修复",- footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(CM, {+ footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "媒体库",className: "w-48",selectedKey: c?.id ?? null,@@ -27175,10 +27175,10 @@ function Pde() {onSelectionChange: (e) => {e !== null && r(String(e));},- children: o.map((e) => /* @__PURE__ */ (0, V.jsxs)(wM, {+ children: o.map((e) => /* @__PURE__ */ (0, V.jsxs)(EM, {id: e.id,textValue: e.name,- children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: Nde(e.icon) }), e.name]+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: jde(e.icon) }), e.name]}, e.id))}), s ? /* @__PURE__ */ (0, V.jsx)(J, {onClick: u,@@ -27192,12 +27192,12 @@ function Pde() {children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(pM, { children: "媒体修复" }),+ /* @__PURE__ */ (0, V.jsx)(hM, { children: "媒体修复" }),/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: dde+ children: lde}),- s && a.total ? /* @__PURE__ */ (0, V.jsx)(EE, {+ s && a.total ? /* @__PURE__ */ (0, V.jsx)(DE, {label: "修复进度",value: a.checked,max: a.total@@ -27221,7 +27221,7 @@ function Pde() {f && a.missing_tool ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "warning",title: "缺少 untrunc",- children: qle(a)+ children: Gle(a)}) : null,p ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",@@ -27233,7 +27233,7 @@ function Pde() {}//#endregion//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx-var OM = {+var AM = {md: {box: "size-4",glyph: "size-4",@@ -27247,11 +27247,11 @@ var OM = {gap: "gap-1.5"}};-function kM({ state: e, size: t = "md" }) {- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = OM[t], c = n || r, l = o && !a;+function jM({ state: e, size: t = "md" }) {+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = AM[t], c = n || r, l = o && !a;return /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,- className: hE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? hE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : hE("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),+ className: gE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? gE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : gE("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),children: /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 16 16",fill: "none",@@ -27275,36 +27275,36 @@ function kM({ state: e, size: t = "md" }) {}//#endregion//#region src/react/boardui/components/base/checkbox/checkbox.tsx-function AM({ className: e, children: t, size: n = "md", ref: r, ...i }) {- let a = OM[n];- return /* @__PURE__ */ (0, V.jsx)(lse, {+function MM({ className: e, children: t, size: n = "md", ref: r, ...i }) {+ let a = AM[n];+ return /* @__PURE__ */ (0, V.jsx)(cse, {ref: r,...i,- className: (t) => hE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),- children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(kM, {+ className: (t) => gE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),+ children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(jM, {state: e,size: n}), t != null && /* @__PURE__ */ (0, V.jsx)("span", {- className: hE(a.label, "text-text-primary"),+ className: gE(a.label, "text-text-primary"),children: t})] })});}//#endregion//#region src/react/boardui/components/base/table/table.tsx-function jM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {+function NM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {return /* @__PURE__ */ (0, V.jsx)("div", {- className: hE("w-full overflow-x-auto", n),- children: /* @__PURE__ */ (0, V.jsx)(_ce, {+ className: gE("w-full overflow-x-auto", n),+ children: /* @__PURE__ */ (0, V.jsx)(gce, {ref: r,...i,- className: hE("bui-table", e === "sm" && "bui-table-sm", t)+ className: gE("bui-table", e === "sm" && "bui-table-sm", t)})});}//#endregion//#region src/react/components/row-click.ts-var Fde = [+var Nde = ["a","button","input",@@ -27317,15 +27317,15 @@ var Fde = ["[role=\"link\"]","[role=\"menu\"]"].join(",");-function MM(e, t) {+function PM(e, t) {let n = e.target;if (!(n instanceof Element) || !t.contains(n)) return !1;- let r = n.closest(Fde);+ let r = n.closest(Nde);return !r || !t.contains(r) || r === t;}//#endregion//#region src/react/components/data-table-frame.tsx-function NM({ children: e, follow: t = !1, onRowClick: n }) {+function FM({ children: e, follow: t = !1, onRowClick: n }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-board-data-table": !0,"data-follow-table": t || void 0,@@ -27333,15 +27333,15 @@ function NM({ 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 && MM(e, r) && n(r.dataset.key);+ r && PM(e, r) && n(r.dataset.key);} : void 0,children: e});}//#endregion//#region src/react/data-cleanup/link-manager.tsx-var Ide = rA("unlink"), PM = rA("rotate-cw"), Lde = "站点返回 404 或 410,确认这个地址不存在。", Rde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", zde = "删除前会逐条重验一次;此操作不可撤销。", Bde = "暂时无法读取进度,正在重新连接…", FM = (e) => Number(e || 0).toLocaleString();-function IM({ label: e, value: t, note: n }) {+var Pde = iA("unlink"), IM = iA("rotate-cw"), Fde = "站点返回 404 或 410,确认这个地址不存在。", Ide = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Lde = "删除前会逐条重验一次;此操作不可撤销。", Rde = "暂时无法读取进度,正在重新连接…", LM = (e) => Number(e || 0).toLocaleString();+function RM({ label: e, value: t, note: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-col gap-0.5",children: [@@ -27360,11 +27360,11 @@ function IM({ label: e, value: t, note: n }) {]});}-function LM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {+function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {if (!t.length) return null;let o = r ?? [], s = o.length > 0 && o.length === t.length;return /* @__PURE__ */ (0, V.jsxs)("div", {- className: uM,+ className: fM,children: [/* @__PURE__ */ (0, V.jsxs)("h4", {className: "mb-1 text-body-semibold text-text-primary",@@ -27377,13 +27377,13 @@ function LM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })className: "mb-3 text-caption-1-regular text-text-secondary",children: n}),- /* @__PURE__ */ (0, V.jsx)(NM, { children: /* @__PURE__ */ (0, V.jsxs)(jM, {+ /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {"aria-label": e,size: "sm",- children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [- i ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [+ i ? /* @__PURE__ */ (0, V.jsx)(Fk, {id: "pick",- children: /* @__PURE__ */ (0, V.jsx)(AM, {+ children: /* @__PURE__ */ (0, V.jsx)(MM, {slot: null,"aria-label": "全选本次未访问成功的链接",isSelected: s,@@ -27391,44 +27391,44 @@ function LM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })onChange: (e) => i(e ? t.map((e) => e.id) : [])})}) : null,- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "entity",isRowHeader: !0,children: "所属"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "kind",children: "类型"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "label",children: "标签"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "note",children: "结果"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "url",children: "地址"})- ] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(zk, {+ ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(Bk, {id: e.id,children: [- i ? /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(AM, {+ i ? /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {slot: null,"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,isSelected: o.includes(e.id),onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))}) }) : null,- /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.entity }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: hj[e.link_kind] || e.link_kind }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.label || "" }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.entity }),+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: _j[e.link_kind] || e.link_kind }),+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.label || "" }),+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {className: "tabular-nums text-text-error-primary",children: e.note}) }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsxs)("a", {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("a", {href: e.url,target: "_blank",rel: "noreferrer",@@ -27438,7 +27438,7 @@ function LM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })"data-middle-truncate": !0,className: "min-w-0 truncate",children: e.url- }), /* @__PURE__ */ (0, V.jsx)(hT, {+ }), /* @__PURE__ */ (0, V.jsx)(gT, {"aria-hidden": !0,className: "size-3.5 shrink-0"})]@@ -27450,27 +27450,27 @@ function LM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })]});}-function Vde() {- let e = wS({- queryKey: fj,- queryFn: ({ signal: e }) => _j(e)- }), [t, n] = (0, B.useState)([]), r = EM({+function zde() {+ let e = TS({queryKey: mj,- queryFn: ({ signal: e }) => yj(e),- start: xue,+ queryFn: ({ signal: e }) => yj(e)+ }), [t, n] = (0, B.useState)([]), r = OM({+ queryKey: gj,+ queryFn: ({ signal: e }) => xj(e),+ start: yue,onFinish: () => {z.invalidateQueries({- queryKey: fj,+ queryKey: mj,exact: !0}), z.invalidateQueries({- queryKey: pj,+ queryKey: hj,exact: !0});}- }), i = EM({- queryKey: pj,- queryFn: ({ signal: e }) => vj(e),- start: bue,+ }), i = OM({+ queryKey: hj,+ queryFn: ({ signal: e }) => bj(e),+ start: vue,onStarted: () => {r.dismiss(), n([]);}@@ -27500,7 +27500,7 @@ function Vde() {else if (_) b = /* @__PURE__ */ (0, V.jsx)(Y, {tone: "success",title: "完成",- children: Sue(_)+ children: bue(_)});else if (v) b = /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",@@ -27510,7 +27510,7 @@ function Vde() {else if (i.query.isError && a) b = /* @__PURE__ */ (0, V.jsx)(Y, {tone: "neutral",title: "任务状态",- children: Bde+ children: Rde});else if (a?.status === "failed") b = /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",@@ -27518,12 +27518,12 @@ function Vde() {children: a.error || "检查失败"});else if (a && a.status !== "idle") {- y = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, V.jsx)(yM, {+ y = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, V.jsx)(xM, {embedded: !0,- label: Cue(a),+ label: xue(a),value: a.checked,total: a.total- }) : null, c ? /* @__PURE__ */ (0, V.jsx)(yM, {+ }) : null, c ? /* @__PURE__ */ (0, V.jsx)(xM, {embedded: !0,label: r.job?.message || "正在重验并删除失效链接…",value: r.job?.checked,@@ -27531,38 +27531,38 @@ function Vde() {}) : null] });let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";b = l || u.length || d.length ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: _de,+ className: hde,children: [- /* @__PURE__ */ (0, V.jsx)(LM, {+ /* @__PURE__ */ (0, V.jsx)(zM, {title: "地址已失效",items: u,- hint: Lde+ hint: Fde}),- /* @__PURE__ */ (0, V.jsx)(LM, {+ /* @__PURE__ */ (0, V.jsx)(zM, {title: "本次未访问成功",items: d,- hint: Rde,+ hint: Ide,picked: f.length ? t : void 0,onPick: f.length ? n : void 0,children: f.length ? /* @__PURE__ */ (0, V.jsx)("div", {className: "-mx-4 mt-3 -mb-4",- children: /* @__PURE__ */ (0, V.jsxs)(dM, { children: [/* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: PM,+ children: /* @__PURE__ */ (0, V.jsxs)(pM, { children: [/* @__PURE__ */ (0, V.jsx)(J, {+ leadingIcon: IM,disabled: !t.length,...X(s),onClick: () => h(t),children: e}), /* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: PM,+ leadingIcon: IM,...X(s),onClick: () => h(f.map((e) => e.id)),children: `全部重试(${f.length})`})] })}) : null}),- l && u.length ? /* @__PURE__ */ (0, V.jsx)(dM, {+ l && u.length ? /* @__PURE__ */ (0, V.jsx)(pM, {tone: "error",- status: zde,+ status: Lde,children: /* @__PURE__ */ (0, V.jsx)(J, {variant: "danger",...X(c),@@ -27571,7 +27571,7 @@ function Vde() {})}) : null,l && !u.length && !d.length ? /* @__PURE__ */ (0, V.jsx)("p", {- className: `${uM} text-body-regular text-notification-success-foreground`,+ className: `${fM} text-body-regular text-notification-success-foreground`,children: "全部链接均可访问。"}) : null]@@ -27582,21 +27582,21 @@ function Vde() {"aria-labelledby": "link-manager-title",className: "flex scroll-mt-20 flex-col gap-4",children: [- /* @__PURE__ */ (0, V.jsx)(fM, {+ /* @__PURE__ */ (0, V.jsx)(mM, {id: "link-manager-title",children: "链接管理"}),- /* @__PURE__ */ (0, V.jsxs)(mM, {+ /* @__PURE__ */ (0, V.jsxs)(gM, {layout: "stack",labelledBy: "link-manager-box",footer: /* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: Ide,+ leadingIcon: Pde,...X(s),onClick: () => h(),children: s ? "检查中" : l ? "重新检查" : "检查死链"}),children: [- /* @__PURE__ */ (0, V.jsx)(pM, {+ /* @__PURE__ */ (0, V.jsx)(hM, {id: "link-manager-box",gap: "small",children: "站外链接"@@ -27607,13 +27607,13 @@ function Vde() {children: W(e.error)}) : p ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "link-stat-grid mt-4 gap-x-8 gap-y-3",- children: [/* @__PURE__ */ (0, V.jsx)(IM, {+ children: [/* @__PURE__ */ (0, V.jsx)(RM, {label: "链接总数",- value: FM(p.total),- note: `分布在 ${FM(p.entities)} 个女优、厂牌与系列`- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(IM, {- label: hj[e] || e,- value: FM(t)+ value: LM(p.total),+ note: `分布在 ${LM(p.entities)} 个女优、厂牌与系列`+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(RM, {+ label: _j[e] || e,+ value: LM(t)}, e))]}), m ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "mt-4 flex min-w-0 flex-col gap-0.5",@@ -27642,11 +27642,11 @@ function Vde() {}//#endregion//#region src/react/boardui/components/base/input/label.tsx-function Hde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, V.jsxs)(nse, {+function Bde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, V.jsxs)(tse, {"data-label": "true",...a,- className: hE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),+ className: gE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),children: [i,e && /* @__PURE__ */ (0, V.jsx)("span", {@@ -27654,7 +27654,7 @@ function Hde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childclassName: "text-body-medium text-text-error-primary",children: "*"}),- n && /* @__PURE__ */ (0, V.jsx)(pae, {+ n && /* @__PURE__ */ (0, V.jsx)(fae, {className: "size-4 shrink-0 text-foreground-icon-quaternary","aria-hidden": !0})@@ -27663,33 +27663,33 @@ function Hde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child}//#endregion//#region src/react/boardui/components/base/input/hint-text.tsx-function Ude({ isInvalid: e = !1, className: t, ...n }) {- return /* @__PURE__ */ (0, V.jsx)(ose, {+function Vde({ isInvalid: e = !1, className: t, ...n }) {+ return /* @__PURE__ */ (0, V.jsx)(ase, {slot: e ? "errorMessage" : "description",...n,- className: hE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)+ className: gE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)});}//#endregion//#region src/react/boardui/components/base/input/input.tsx-var RM = (0, B.createContext)({});-function zM({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, V.jsx)(RM.Provider, {+var BM = (0, B.createContext)({});+function VM({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, V.jsx)(BM.Provider, {value: {size: e,fieldClassName: t,inputClassName: n},- children: /* @__PURE__ */ (0, V.jsx)(Uce, {+ children: /* @__PURE__ */ (0, V.jsx)(Hce, {...a,"data-input-size": e,- className: hE("group flex h-max w-full flex-col items-start gap-1", r),+ className: gE("group flex h-max w-full flex-col items-start gap-1", r),children: i})});}-zM.displayName = "TextField";-var BM = gE({+VM.displayName = "TextField";+var HM = _E({field: ["relative flex w-full items-center","rounded-2lg",@@ -27718,44 +27718,44 @@ var BM = gE({].join(" "),icon: "size-5 shrink-0"});-function VM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {- let l = (0, B.useContext)(RM), u = e ?? l.size ?? "medium", d = r != null;- return /* @__PURE__ */ (0, V.jsx)(dse, {+function UM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {+ let l = (0, B.useContext)(BM), u = e ?? l.size ?? "medium", d = r != null;+ return /* @__PURE__ */ (0, V.jsx)(use, {ref: s,- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => hE(BM.field, d ? BM.fieldWithAddonSize[u] : BM.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => gE(HM.field, d ? HM.fieldWithAddonSize[u] : HM.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),children: /* @__PURE__ */ (0, V.jsxs)("div", {- className: BM.content,+ className: HM.content,children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: BM.leftSection,+ className: HM.leftSection,children: [d ? r : t ? /* @__PURE__ */ (0, V.jsx)(t, {- className: BM.icon,+ className: HM.icon,"aria-hidden": !0- }) : null, /* @__PURE__ */ (0, V.jsx)(pse, {+ }) : null, /* @__PURE__ */ (0, V.jsx)(fse, {ref: o,...c,- className: hE(BM.input, l.inputClassName, a)+ className: gE(HM.input, l.inputClassName, a)})]}), n ? /* @__PURE__ */ (0, V.jsx)(n, {- className: BM.icon,+ className: HM.icon,"aria-hidden": !0}) : null]})});}-VM.displayName = "InputBase";-function HM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {- return /* @__PURE__ */ (0, V.jsx)(zM, {+UM.displayName = "InputBase";+function WM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {+ return /* @__PURE__ */ (0, V.jsx)(VM, {...d,className: u,"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- e && /* @__PURE__ */ (0, V.jsx)(Hde, {+ e && /* @__PURE__ */ (0, V.jsx)(Bde, {isRequired: u,isInvalid: d,tooltip: n,children: e}),- /* @__PURE__ */ (0, V.jsx)(VM, {+ /* @__PURE__ */ (0, V.jsx)(UM, {ref: c,groupRef: l,placeholder: r,@@ -27764,28 +27764,28 @@ function HM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, traleadingAddon: o,fieldClassName: s}),- t && /* @__PURE__ */ (0, V.jsx)(Ude, {+ t && /* @__PURE__ */ (0, V.jsx)(Vde, {isInvalid: d,children: t})] })});}-HM.displayName = "Input";+WM.displayName = "Input";//#endregion//#region src/react/data-cleanup/organize-card.tsx-var Wde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Gde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Kde = 8;-function qde({ plan: e }) {+var Hde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Ude = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Wde = 8;+function Gde({ plan: e }) {return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("ol", {className: "mt-2 flex min-w-0 flex-col gap-1",- children: e.rows.slice(0, Kde).map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {+ children: e.rows.slice(0, Wde).map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",children: [/* @__PURE__ */ (0, V.jsx)("span", {"data-middle-truncate": !0,title: e.current_path,className: "min-w-0 truncate",- children: Mj(e.current_path)+ children: Pj(e.current_path)}),/* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,@@ -27795,7 +27795,7 @@ function qde({ plan: e }) {"data-middle-truncate": !0,title: e.target_path,className: "min-w-0 truncate text-text-primary",- children: Mj(e.target_path)+ children: Pj(e.target_path)})]}, e.current_path))@@ -27804,10 +27804,10 @@ function qde({ plan: e }) {children: "只列出前 8 行,完整计划在计划 CSV 里。"}) : null] });}-function Jde({ toast: e, failure: t }) {- let n = wS({- queryKey: Aj,- queryFn: ({ signal: e }) => jj(e)+function Kde({ toast: e, failure: t }) {+ let n = TS({+ queryKey: Mj,+ queryFn: ({ signal: e }) => Nj(e)}), r = n.data, i = r?.locations ?? [], [a, o] = (0, B.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, B.useState)(null), d = l?.location === s ? l : {location: s,file: c?.file ?? "",@@ -27819,9 +27819,9 @@ function Jde({ toast: e, failure: t }) {location: s,file_template: d.file.trim(),dir_template: d.dir.trim()- }), v = DS({- mutationFn: Fue,- onSuccess: (e, t) => void Lue({+ }), v = OS({+ mutationFn: Nue,+ onSuccess: (e, t) => void Fue({...r?.templates ?? {},[t.location]: {file: t.file_template,@@ -27829,29 +27829,29 @@ function Jde({ toast: e, failure: t }) {}}),onError: (e) => {- let t = zue.test(W(e)) ? "dir" : "file";+ let t = Lue.test(W(e)) ? "dir" : "file";m(t), (t === "dir" ? g : h).current?.focus();}- }), y = EM({- queryKey: Aj,- queryFn: ({ signal: e }) => jj(e),- start: Iue,+ }), y = OM({+ queryKey: Mj,+ queryFn: ({ signal: e }) => Nj(e),+ start: Pue,jobOf: (e) => e,- withJob: Rue,+ withJob: Iue,onStarted: () => v.reset(),onFinish: (n) => {if (z.invalidateQueries({- queryKey: Aj,+ queryKey: Mj,exact: !0}), n.status !== "complete") return;- let { text: r, failed: i } = Pj(n);+ let { text: r, failed: i } = Ij(n);i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));}}), b = y.running || y.start.isPending, x = v.data, S = Number(x?.counts?.change || 0), C = se[s] || s, w = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), T = () => {v.isPending || !s || (m(null), v.mutate(_()));}, E = () => void Te({title: "按模板整理文件",- body: Wde(C),+ body: Hde(C),confirmLabel: "整理文件",onConfirm: () => y.start.mutateAsync({kind: "apply",@@ -27859,13 +27859,13 @@ function Jde({ toast: e, failure: t }) {})}), D = () => void Te({title: "回滚上一批整理",- body: Gde,+ body: Ude,confirmLabel: "回滚整理",onConfirm: () => y.start.mutateAsync({ kind: "rollback" })}), O = null, k = y.job, A = y.outcome;if (k?.status === "running") {let e = k.message || k.stage || "正在整理文件…";- O = /* @__PURE__ */ (0, V.jsx)(yM, {+ O = /* @__PURE__ */ (0, V.jsx)(xM, {embedded: !0,label: e,value: k.checked,@@ -27877,7 +27877,7 @@ function Jde({ toast: e, failure: t }) {children: A.error || "请查看任务记录,核对已处理的文件。"});else if (A) {- let { text: e, failed: t } = Pj(A);+ let { text: e, failed: t } = Ij(A);O = /* @__PURE__ */ (0, V.jsx)(Y, {tone: t ? "warning" : "success",title: t ? "部分完成" : "整理结果",@@ -27887,7 +27887,7 @@ function Jde({ toast: e, failure: t }) {tone: "error",title: "整理失败",children: W(y.start.error)- }) : v.isPending ? O = /* @__PURE__ */ (0, V.jsx)(yM, {+ }) : v.isPending ? O = /* @__PURE__ */ (0, V.jsx)(xM, {embedded: !0,label: "正在按模板算计划…"}) : v.isError ? O = /* @__PURE__ */ (0, V.jsx)(Y, {@@ -27897,9 +27897,9 @@ function Jde({ toast: e, failure: t }) {}) : x && (O = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Y, {tone: "neutral",title: "预览结果",- children: Bue(x)- }), S ? /* @__PURE__ */ (0, V.jsx)(qde, { plan: x }) : null] }));- return /* @__PURE__ */ (0, V.jsxs)(mM, {+ children: Rue(x)+ }), S ? /* @__PURE__ */ (0, V.jsx)(Gde, { plan: x }) : null] }));+ return /* @__PURE__ */ (0, V.jsxs)(gM, {layout: "stack",id: "organize",labelledBy: "cleanup-organize-title",@@ -27923,7 +27923,7 @@ function Jde({ toast: e, failure: t }) {}) : null] }),children: [- /* @__PURE__ */ (0, V.jsx)(pM, {+ /* @__PURE__ */ (0, V.jsx)(hM, {id: "cleanup-organize-title",gap: "medium",children: "整理"@@ -27943,20 +27943,20 @@ function Jde({ toast: e, failure: t }) {/* @__PURE__ */ (0, V.jsxs)("div", {className: "mt-3 flex flex-col gap-3",children: [- i.length ? /* @__PURE__ */ (0, V.jsx)(CM, {+ i.length ? /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "整理哪个来源",className: "w-fit min-w-25",selectedKey: s || null,onSelectionChange: (e) => {e !== null && (o(String(e)), m(null), v.reset());},- children: i.map((e) => /* @__PURE__ */ (0, V.jsxs)(wM, {+ children: i.map((e) => /* @__PURE__ */ (0, V.jsxs)(EM, {id: e.location,textValue: se[e.location] || e.location,- children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: Se[e.location] || "database" }), se[e.location] || e.location]+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] || "database" }), se[e.location] || e.location]}, e.location))}) : null,- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "文件名模板",placeholder: "{number}[ {title}]",value: d.file,@@ -27967,7 +27967,7 @@ function Jde({ toast: e, failure: t }) {f({ file: e }), m(null);}}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "目录模板",placeholder: "留空表示原地改名",value: d.dir,@@ -28007,56 +28007,56 @@ function Jde({ toast: e, failure: t }) {}//#endregion//#region src/react/data-cleanup/orphan-records.ts-var Yde = "/api/orphan-records", Xde = "/api/orphan-records/attach", UM = ["orphan-records"], Zde = [+var qde = "/api/orphan-records", Jde = "/api/orphan-records/attach", GM = ["orphan-records"], Yde = [["asset_preference", "喜欢与理由"],["watch_queue", "稍后看"],["playlist_item", "播放列表"],["asset_quality_goal", "寻找更好版本"],["activity_event", "观看历史"],["asset_tag_preference", "隐藏标签"]-], Qde = (e) => G(Yde, e), $de = (e, t) => K(Xde, {+], Xde = (e) => G(qde, e), Zde = (e, t) => K(Jde, {id: e,target: t-}), efe = (e) => K(OA, {+}), Qde = (e) => K(AA, {ids: [e],operation: "delete"-}), tfe = (e) => [+}), $de = (e) => [e.rating ? `评分 ${e.rating}` : "",e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""-], WM = (e) => [...Zde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...tfe(e)].filter(Boolean).join(" · "), nfe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", GM = (e) => [e.name, nfe(e.duration)].filter(Boolean).join(" · "), rfe = rA("play"), KM = () => z.invalidateQueries({- queryKey: UM,+], KM = (e) => [...Yde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...$de(e)].filter(Boolean).join(" · "), efe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", qM = (e) => [e.name, efe(e.duration)].filter(Boolean).join(" · "), tfe = iA("play"), JM = () => z.invalidateQueries({+ queryKey: GM,exact: !0});-function ife({ item: e, toast: t }) {- let [n, r] = (0, B.useState)(e.candidates[0]?.id ?? null), i = DS({- mutationFn: () => $de(e.id, Number(n)),+function nfe({ item: e, toast: t }) {+ let [n, r] = (0, B.useState)(e.candidates[0]?.id ?? null), i = OS({+ mutationFn: () => Zde(e.id, Number(n)),onSuccess: (e) => {- t(`记录已接到新文件,批次 ${e.batch}`), KM();+ t(`记录已接到新文件,批次 ${e.batch}`), JM();},onError: (e) => t(W(e))- }), a = DS({- mutationFn: () => efe(e.id),+ }), a = OS({+ mutationFn: () => Qde(e.id),onSuccess: (n) => {- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), KM();+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), JM();}}), o = () => {Te({title: "彻底删除",- body: `将删除「${e.name}」这一条和它带的记录(${WM(e.records)})。此操作不可撤销。`,+ body: `将删除「${e.name}」这一条和它带的记录(${KM(e.records)})。此操作不可撤销。`,confirmLabel: "彻底删除",danger: !0,onConfirm: () => a.mutateAsync()});}, s = i.isPending || a.isPending;- return /* @__PURE__ */ (0, V.jsxs)(zk, {+ return /* @__PURE__ */ (0, V.jsxs)(Bk, {id: e.id,children: [- /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 items-center gap-3",children: [/* @__PURE__ */ (0, V.jsxs)("span", {className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",- children: [/* @__PURE__ */ (0, V.jsx)(rfe, {+ children: [/* @__PURE__ */ (0, V.jsx)(tfe, {"aria-hidden": !0,className: "size-5"}), e.has_thumb ? /* @__PURE__ */ (0, V.jsx)("img", {@@ -28078,27 +28078,27 @@ function ife({ item: e, toast: t }) {})]})]}) }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {className: "block min-w-44",- children: WM(e.records)+ children: KM(e.records)}) }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(CM, {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": `把 ${e.name} 的记录接到哪个文件`,className: "w-64",selectedKey: n,onSelectionChange: (e) => {e !== null && r(Number(e));},- children: e.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: e.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e.id,- textValue: GM(e),- children: GM(e)+ textValue: qM(e),+ children: qM(e)}, e.id))}) : /* @__PURE__ */ (0, V.jsx)("span", {className: "text-text-secondary",children: "没有番号或文件名对得上的文件"}) }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex flex-wrap gap-2",children: [e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(J, {size: "small",@@ -28118,23 +28118,23 @@ function ife({ item: e, toast: t }) {]});}-function afe({ toast: e }) {- let t = wS({- queryKey: UM,- queryFn: ({ signal: e }) => Qde(e)+function rfe({ toast: e }) {+ let t = TS({+ queryKey: GM,+ queryFn: ({ signal: e }) => Xde(e)}), n = t.data?.items ?? [];return !t.isError && !n.length ? null : /* @__PURE__ */ (0, V.jsxs)("section", {id: "orphan-records","aria-labelledby": "orphan-records-title",className: "flex scroll-mt-20 flex-col gap-4",- children: [/* @__PURE__ */ (0, V.jsx)(fM, {+ children: [/* @__PURE__ */ (0, V.jsx)(mM, {id: "orphan-records-title",children: "孤儿记录"- }), /* @__PURE__ */ (0, V.jsxs)(mM, {+ }), /* @__PURE__ */ (0, V.jsxs)(gM, {layout: "stack",labelledBy: "orphan-records-box",children: [- /* @__PURE__ */ (0, V.jsx)(pM, {+ /* @__PURE__ */ (0, V.jsx)(hM, {id: "orphan-records-box",gap: "small",children: "文件已消失的作品"@@ -28147,28 +28147,28 @@ function afe({ toast: e }) {tone: "error",title: "孤儿记录读取失败",children: W(t.error)- }) : /* @__PURE__ */ (0, V.jsx)(NM, { children: /* @__PURE__ */ (0, V.jsxs)(jM, {+ }) : /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {"aria-label": "文件已消失的作品",size: "sm",- children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [- /* @__PURE__ */ (0, V.jsx)(Pk, {+ children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "item",isRowHeader: !0,children: "作品"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "records",children: "带的记录"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "target",children: "接到"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "actions",children: "操作"})- ] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(ife, {+ ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(nfe, {item: t,toast: e}, t.id)) })]@@ -28179,99 +28179,99 @@ function afe({ toast: e }) {}//#endregion//#region src/react/data-cleanup/resource-sync-card.tsx-var ofe = rA("git-compare"), sfe = rA("rotate-cw"), cfe = "暂时无法读取进度,正在重新连接…", qM = "清理失效条目", JM = "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", YM = (e) => Number(e || 0).toLocaleString();-function lfe({ scan: e }) {+var ife = iA("git-compare"), afe = iA("rotate-cw"), ofe = "暂时无法读取进度,正在重新连接…", YM = "清理失效条目", XM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", ZM = (e) => Number(e || 0).toLocaleString();+function sfe({ scan: e }) {let t = e.cache ?? {files: 0,bytes: 0};return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: JM,+ className: XM,children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, V.jsx)("article", {- className: rM(),- children: /* @__PURE__ */ (0, V.jsx)(iM, {- label: Gue[e.location] || "媒体来源",- mark: /* @__PURE__ */ (0, V.jsx)(UE, { mark: Se[e.location] ?? "database" }),+ className: aM(),+ children: /* @__PURE__ */ (0, V.jsx)(oM, {+ label: Uue[e.location] || "媒体来源",+ mark: /* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] ?? "database" }),aside: /* @__PURE__ */ (0, V.jsx)("span", {className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",children: e.online ? "可访问" : "离线,已跳过"}),- figure: e.online ? `${YM(e.missing)} 项` : "—",- meta: Yue(e),+ figure: e.online ? `${ZM(e.missing)} 项` : "—",+ meta: que(e),wrapMeta: !0})}, e.location))}), /* @__PURE__ */ (0, V.jsxs)("div", {- className: JM,+ className: XM,children: [/* @__PURE__ */ (0, V.jsx)("article", {- className: rM(),- children: /* @__PURE__ */ (0, V.jsx)(iM, {+ className: aM(),+ children: /* @__PURE__ */ (0, V.jsx)(oM, {label: "待永久删除",- figure: `${YM(Uj(e))} 项`,+ figure: `${ZM(Gj(e))} 项`,meta: "文件已不在盘上,含回收站"})}),/* @__PURE__ */ (0, V.jsx)("article", {- className: rM(),- children: /* @__PURE__ */ (0, V.jsx)(iM, {+ className: aM(),+ children: /* @__PURE__ */ (0, V.jsx)(oM, {label: "将标为已消失",- figure: `${YM(e.vanish)} 项`,+ figure: `${ZM(e.vanish)} 项`,meta: "带个人记录,记录留着"})}),/* @__PURE__ */ (0, V.jsx)("article", {- className: rM(),- children: /* @__PURE__ */ (0, V.jsx)(iM, {+ className: aM(),+ children: /* @__PURE__ */ (0, V.jsx)(oM, {label: "空文件夹",- figure: `${YM(e.empty)} 个`,+ figure: `${ZM(e.empty)} 个`,meta: "保留来源根目录"})}),/* @__PURE__ */ (0, V.jsx)("article", {- className: rM(),- children: /* @__PURE__ */ (0, V.jsx)(iM, {+ className: aM(),+ children: /* @__PURE__ */ (0, V.jsx)(oM, {label: "可清理的缓存",- figure: `${YM(t.files)} 个`,+ figure: `${ZM(t.files)} 个`,meta: t.files ? pe(t.bytes) : ""})})]})] });}-function ufe({ toast: e }) {- let t = EM({- queryKey: Rj,- queryFn: ({ signal: e }) => Bj(e),- start: Hue,+function cfe({ toast: e }) {+ let t = OM({+ queryKey: Bj,+ queryFn: ({ signal: e }) => Hj(e),+ start: Bue,onFinish: (t) => {if (z.invalidateQueries({- queryKey: Xj,+ queryKey: Qj,exact: !0}), z.invalidateQueries({- queryKey: Lj,+ queryKey: zj,exact: !0}), t.status !== "complete") return;- let { done: n, left: r } = Kj(t);- r ? e(`已完成 ${YM(n)} 项,${YM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");+ let { done: n, left: r } = Jj(t);+ r ? e(`已完成 ${ZM(n)} 项,${ZM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");}- }), n = EM({- queryKey: Lj,- queryFn: ({ signal: e }) => zj(e),- start: Vue,+ }), n = OM({+ queryKey: zj,+ queryFn: ({ signal: e }) => Vj(e),+ start: zue,onStarted: () => t.dismiss()}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void Te({- title: qM,- body: Jue(e),- confirmLabel: qM,+ title: YM,+ body: Kue(e),+ confirmLabel: YM,danger: !0,onConfirm: () => t.start.mutateAsync(e.scan_id || "")}), l = t.outcome, u = (e) => {- let t = Kj(e).left > 0;+ let t = Jj(e).left > 0;return /* @__PURE__ */ (0, V.jsx)(Y, {tone: t ? "warning" : "success",title: t ? "部分完成" : "清理结果",- children: Xue(e, pe)+ children: Jue(e, pe)});}, d = null, f = null;if (l?.status === "failed") f = /* @__PURE__ */ (0, V.jsx)(Y, {@@ -28280,7 +28280,7 @@ function ufe({ toast: e }) {children: l.error || "请查看任务记录,核对已处理的文件。"});else if (l) f = u(l);- else if (t.running) d = /* @__PURE__ */ (0, V.jsx)(yM, {+ else if (t.running) d = /* @__PURE__ */ (0, V.jsx)(xM, {embedded: !0,label: t.job?.message || "正在复核并清理失效条目…"});@@ -28292,11 +28292,11 @@ function ufe({ toast: e }) {else if (n.query.isError && r) f = /* @__PURE__ */ (0, V.jsx)(Y, {tone: "neutral",title: "任务状态",- children: cfe+ children: ofe});else if (r?.status === "running") {- let e = Kue(r);- d = /* @__PURE__ */ (0, V.jsx)(yM, {+ let e = Wue(r);+ d = /* @__PURE__ */ (0, V.jsx)(xM, {embedded: !0,label: e,value: r.completed_sources,@@ -28313,13 +28313,13 @@ function ufe({ toast: e }) {children: "这次检查的结果已经清理,重新扫描可再核对。"});else if (r?.status === "complete") {- let e = Wue(r);+ let e = Hue(r);f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(lfe, { scan: r }),+ /* @__PURE__ */ (0, V.jsx)(sfe, { scan: r }),e ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "neutral",title: "清理内容",- children: que(r)+ children: Gue(r)}) : null,/* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-wrap items-center justify-end gap-2",@@ -28327,7 +28327,7 @@ function ufe({ toast: e }) {variant: "danger",...X(a),onClick: () => c(r),- children: a ? "正在复核并清理…" : qM+ children: a ? "正在复核并清理…" : YM}) : /* @__PURE__ */ (0, V.jsx)("p", {className: "mr-auto text-body-regular text-notification-success-foreground",children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"@@ -28344,16 +28344,16 @@ function ufe({ toast: e }) {"aria-labelledby": "resource-sync-title",className: "flex scroll-mt-20 flex-col gap-4",children: [- /* @__PURE__ */ (0, V.jsx)(fM, {+ /* @__PURE__ */ (0, V.jsx)(mM, {id: "resource-sync-title",children: "资源同步"}),- /* @__PURE__ */ (0, V.jsxs)(mM, {+ /* @__PURE__ */ (0, V.jsxs)(gM, {layout: "split",labelledBy: "resource-sync-box",footer: /* @__PURE__ */ (0, V.jsx)(J, {"data-resource-scan": !0,- leadingIcon: o && !i ? sfe : ofe,+ leadingIcon: o && !i ? afe : ife,...X(i),onClick: () => {i || n.start.mutate();@@ -28361,7 +28361,7 @@ function ufe({ toast: e }) {children: s}),children: [- /* @__PURE__ */ (0, V.jsx)(pM, {+ /* @__PURE__ */ (0, V.jsx)(hM, {id: "resource-sync-box",gap: "small",children: "文件与记录核对"@@ -28387,16 +28387,16 @@ function ufe({ toast: e }) {}//#endregion//#region src/react/data-cleanup/data-cleanup-page.tsx-function XM(e, t) {+function QM(e, t) {return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);}-function ZM({ section: e, label: t, icon: n, value: r, open: i }) {+function $M({ section: e, label: t, icon: n, value: r, open: i }) {return /* @__PURE__ */ (0, V.jsx)("button", {type: "button",- className: rM({ interactive: !0 }),+ className: aM({ interactive: !0 }),"data-cleanup-go": e,onClick: () => i(e),- children: /* @__PURE__ */ (0, V.jsx)(iM, {+ children: /* @__PURE__ */ (0, V.jsx)(oM, {label: t,icon: n,figure: r.figure,@@ -28404,80 +28404,80 @@ function ZM({ section: e, label: t, icon: n, value: r, open: i }) {})});}-var dfe = rA("square-check-big"), ffe = rA("sparkles"), pfe = rA("file-stack"), mfe = rA("file-archive"), hfe = rA("trash"), gfe = [- qj,- qA,- DA-], _fe = () => {- for (let e of gfe) z.invalidateQueries({+var lfe = iA("square-check-big"), ufe = iA("sparkles"), dfe = iA("file-stack"), ffe = iA("file-archive"), pfe = iA("trash"), mfe = [+ Yj,+ YA,+ kA+], hfe = () => {+ for (let e of mfe) z.invalidateQueries({queryKey: e,exact: !0});};-function vfe({ toast: e, failure: t, open: n }) {- let r = wS({- queryKey: qj,- queryFn: ({ signal: e }) => Zj(e)- }), i = wS({- queryKey: qA,- queryFn: ({ signal: e }) => JA(e)- }), a = wS({- queryKey: DA,- queryFn: ({ signal: e }) => kA(e)- }), o = wS({- queryKey: Jj,- queryFn: ({ signal: e }) => Qj(e)- }), s = wS({- queryKey: Xj,+function gfe({ toast: e, failure: t, open: n }) {+ let r = TS({+ queryKey: Yj,queryFn: ({ signal: e }) => $j(e)- }), c = wS({+ }), i = TS({+ queryKey: YA,+ queryFn: ({ signal: e }) => XA(e)+ }), a = TS({+ queryKey: kA,+ queryFn: ({ signal: e }) => jA(e)+ }), o = TS({+ queryKey: Xj,+ queryFn: ({ signal: e }) => eM(e)+ }), s = TS({+ queryKey: Qj,+ queryFn: ({ signal: e }) => tM(e)+ }), c = TS({queryKey: tt,queryFn: ({ signal: e }) => rt(e)}), l = (t) => e(t);- return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: sde,+ className: ade,children: [- /* @__PURE__ */ (0, V.jsx)(ZM, {+ /* @__PURE__ */ (0, V.jsx)($M, {section: "review",label: "人工复核",- icon: dfe,+ icon: lfe,open: n,- value: XM(r, ede)+ value: QM(r, Que)}),- /* @__PURE__ */ (0, V.jsx)(ZM, {+ /* @__PURE__ */ (0, V.jsx)($M, {section: "quality",label: "高清版",- icon: ffe,+ icon: ufe,open: n,- value: XM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))+ value: QM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))}),- /* @__PURE__ */ (0, V.jsx)(ZM, {+ /* @__PURE__ */ (0, V.jsx)($M, {section: "duplicates",label: "重复文件",- icon: pfe,+ icon: dfe,open: n,- value: XM(a, (e) => Number(e.total || 0) ? {+ value: QM(a, (e) => Number(e.total || 0) ? {figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,meta: `可回收 ${pe(e.reclaimable || 0)}`} : { figure: "没有重复内容" })}),- /* @__PURE__ */ (0, V.jsx)(ZM, {+ /* @__PURE__ */ (0, V.jsx)($M, {section: "ads",label: "垃圾文件",- icon: mfe,+ icon: ffe,open: n,- value: XM(o, (e) => ({+ value: QM(o, (e) => ({figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,- meta: tde(e)+ meta: $ue(e)}))}),- /* @__PURE__ */ (0, V.jsx)(ZM, {+ /* @__PURE__ */ (0, V.jsx)($M, {section: "trash",label: "回收站",- icon: hfe,+ icon: pfe,open: n,- value: XM(s, (e) => ({+ value: QM(s, (e) => ({figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,meta: e.total ? `占用 ${pe(e.bytes || 0)}` : ""}))@@ -28490,31 +28490,31 @@ function vfe({ toast: e, failure: t, open: n }) {/* @__PURE__ */ (0, V.jsx)("div", {id: "libraryProcessing",className: "scroll-mt-20",- children: /* @__PURE__ */ (0, V.jsx)(xM, {+ children: /* @__PURE__ */ (0, V.jsx)(CM, {toast: l,monitor: !0,- onComplete: _fe+ onComplete: hfe})}),/* @__PURE__ */ (0, V.jsx)("div", {id: "mediaRepair",- children: /* @__PURE__ */ (0, V.jsx)(Pde, {})+ children: /* @__PURE__ */ (0, V.jsx)(Mde, {})}),- /* @__PURE__ */ (0, V.jsx)(Jde, {+ /* @__PURE__ */ (0, V.jsx)(Kde, {toast: l,failure: t})]}),- /* @__PURE__ */ (0, V.jsx)(Vde, {}),- /* @__PURE__ */ (0, V.jsx)(afe, { toast: l }),- Vj(c.data) ? /* @__PURE__ */ (0, V.jsx)(ufe, { toast: e }) : null+ /* @__PURE__ */ (0, V.jsx)(zde, {}),+ /* @__PURE__ */ (0, V.jsx)(rfe, { toast: l }),+ Uj(c.data) ? /* @__PURE__ */ (0, V.jsx)(cfe, { toast: e }) : null] });}//#endregion//#region src/react/feed-new/feed-new.ts-var QM = (e) => ["feed-new", e ?? "home"], yfe = 8, bfe = 1500;-function xfe(e, t, n) {+var eN = (e) => ["feed-new", e ?? "home"], _fe = 8, vfe = 1500;+function yfe(e, t, n) {let r = document.createElement("template");r.innerHTML = e;let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {@@ -28525,32 +28525,32 @@ function xfe(e, t, n) {setTimeout(e, n);})]);}-async function Sfe(e, t, n) {+async function bfe(e, t, n) {let r = new URLSearchParams({ limit: "12" });e && r.set("entity", String(e));let i = await ce(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);- return n && o.length && await xfe(s, yfe, bfe), {+ return n && o.length && await yfe(s, _fe, vfe), {items: o,html: s};}-var $M = (e, t, n = !1) => ({- queryKey: QM(e),- queryFn: () => Sfe(e, t, n),+var tN = (e, t, n = !1) => ({+ queryKey: eN(e),+ queryFn: () => bfe(e, t, n),staleTime: Infinity-}), eN = (e, t) => ce("/api/feeds/discovery", {+}), nN = (e, t) => ce("/api/feeds/discovery", {method: "POST",body: JSON.stringify({action: t,ids: [e]})}).then(() => void 0, () => void 0);-async function Cfe(e) {- z.removeQueries({ queryKey: QM(null) }), await z.fetchQuery($M(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));+async function xfe(e) {+ z.removeQueries({ queryKey: eN(null) }), await z.fetchQuery(tN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));}//#endregion//#region src/react/entity-page/entity-page.ts-var wfe = [+var Sfe = ["loc","creator","tag",@@ -28560,51 +28560,51 @@ var wfe = ["orient","sort","dir"-], tN = {+], rN = {media: "videos",set: 0-}, nN = (e, t) => [+}, iN = (e, t) => ["entity",e,t-], Tfe = (e, t, n, r) => [+], Cfe = (e, t, n, r) => ["entity-items",e,t,n,r-], rN = (e, t, n, r) => [+], aN = (e, t, n, r) => ["entity-photos",e,t,n,r-], iN = (e) => String(e || "").split(",").filter(Boolean), Efe = (e, t) => iN(e).includes(t);-function aN(e, t, n, r, i = 0) {+], oN = (e) => String(e || "").split(",").filter(Boolean), wfe = (e, t) => oN(e).includes(t);+function sN(e, t, n, r, i = 0) {let a = new URLSearchParams();a.set(e, t), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");- for (let t of wfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);+ for (let t of Sfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);return r.jav && a.set("jav", "1"), a;}-async function oN(e, t, n, r, i, a) {- return await ce(`/api/items?${aN(e, t, n, r, i)}`, a ? { signal: a } : {});+async function cN(e, t, n, r, i, a) {+ return await ce(`/api/items?${sN(e, t, n, r, i)}`, a ? { signal: a } : {});}-var sN = (e) => {+var lN = (e) => {let t = {jav: e.jav,seed: e.seed- }, n = aN(e.kind, e.name, e.filters, t).toString();+ }, n = sN(e.kind, e.name, e.filters, t).toString();return {- queryKey: Tfe(e.kind, e.name, n, e.revision),- queryFn: ({ signal: n }) => oN(e.kind, e.name, e.filters, t, 0, n),+ queryKey: Cfe(e.kind, e.name, n, e.revision),+ queryFn: ({ signal: n }) => cN(e.kind, e.name, e.filters, t, 0, n),staleTime: Infinity};-}, cN = (e, t) => ({- queryKey: nN(e, t),+}, uN = (e, t) => ({+ queryKey: iN(e, t),queryFn: ({ signal: n }) => ce(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),staleTime: Infinity});-function Dfe(e, t, n, r, i, a) {+function Tfe(e, t, n, r, i, a) {let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;if (i) {let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;@@ -28613,10 +28613,10 @@ function Dfe(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 lN = (e, t, n, r) => ({- queryKey: rN(e, t, n, r),+var dN = (e, t, n, r) => ({+ queryKey: aN(e, t, n, r),queryFn: async ({ pageParam: i }) => {- let a = await ce(Dfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {+ let a = await ce(Tfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {if (i) throw e;return { error: String(e) };});@@ -28629,8 +28629,8 @@ var lN = (e, t, n, r) => ({seed: t[0]?.seed || ""} : void 0,staleTime: Infinity-}), uN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];-async function Ofe(e) {+}), fN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];+async function Efe(e) {let { kind: t, name: n } = e;for (let e of ["entity",@@ -28642,51 +28642,51 @@ async function Ofe(e) {n] });await Promise.all([- z.fetchQuery(cN(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: QM(Number(t.id)) }), z.fetchQuery($M(Number(t.id), e.helpers.feedRowHtml, !0)))),- z.fetchQuery(sN(e)),- z.fetchInfiniteQuery(lN(t, n, 0, "")),- e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery(lN(t, n, e.media.set, "")) : null+ z.fetchQuery(uN(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: eN(Number(t.id)) }), z.fetchQuery(tN(Number(t.id), e.helpers.feedRowHtml, !0)))),+ z.fetchQuery(lN(e)),+ z.fetchInfiniteQuery(dN(t, n, 0, "")),+ e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery(dN(t, n, e.media.set, "")) : null]);}//#endregion//#region src/react/follow/online-vocab.ts-var kfe = "/api/follow/authors", Afe = "/api/follow/tags", jfe = (e) => [+var Dfe = "/api/follow/authors", Ofe = "/api/follow/tags", kfe = (e) => ["follow","authors",e-], Mfe = (e, t) => [+], Afe = (e, t) => ["follow","tags",e,t];-function Nfe(e, t, n) {+function jfe(e, t, n) {let r = new URLSearchParams({limit: String(t),offset: String(n)});- return e && r.set("q", e), `${kfe}?${r}`;+ return e && r.set("q", e), `${Dfe}?${r}`;}-function Pfe(e, t, n, r) {+function Mfe(e, t, n, r) {let i = new URLSearchParams({types: "all",limit: String(n),offset: String(r)});- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Afe}?${i}`;+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Ofe}?${i}`;}-var Ffe = (e, t, n, r) => G(Nfe(e, t, n), r), Ife = (e, t, n, r, i) => G(Pfe(e, t, n, r), i), Lfe = "/api/index", dN = {+var Nfe = (e, t, n, r) => G(jfe(e, t, n), r), Pfe = (e, t, n, r, i) => G(Mfe(e, t, n, r), i), Ffe = "/api/index", pN = {performers: "艺人",creators: "卖家",studios: "厂牌",agencies: "事务所",tags: "标签"-}, Rfe = {+}, Ife = {performers: "performer",creators: "creator",studios: "studio",agencies: "agency"-}, fN = [+}, mN = [["all", "全部"],["meta", "影片属性"],["relationship", "人物关系"],@@ -28696,38 +28696,38 @@ var Ffe = (e, t, n, r) => G(Nfe(e, t, n), r), Ife = (e, t, n, r, i) => G(Pfe(e,["story", "故事剧情"],["position", "性交体位"],["general", "其他内容"]-], pN = [+], hN = [["all", "全部"],["general", "通用"],["artist", "创作者"],["character", "角色"],["copyright", "作品"],["metadata", "元数据"]-], mN = [+], gN = [["all", "全部"],["japanese_av", "女优"],["amateur", "素人"],["western", "西方"],["blogger", "网黄博主"],["animation", "动画作者"]-], hN = {+], _N = {people: 120,tags: 180-}, gN = (e) => e !== "tags", _N = (e) => e === "studios" || e === "agencies";-function vN(e) {- if (e.kind === "creators" && e.category === "animation") return vN({+}, vN = (e) => e !== "tags", yN = (e) => e === "studios" || e === "agencies";+function bN(e) {+ if (e.kind === "creators" && e.category === "animation") return bN({...e,kind: "performers",scope: "local"});- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? pN : fN : e.kind === "performers" && t === "local" ? mN : []).some(([t]) => t === e.category);+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? hN : mN : e.kind === "performers" && t === "local" ? gN : []).some(([t]) => t === e.category);return {...e,scope: t,category: n ? e.category : "all"};}-function yN(e) {+function xN(e) {let { kind: t, q: n, scope: r, category: i } = e;return t === "tags" ? r === "online" ? {what: "online-tags",@@ -28747,50 +28747,50 @@ function yN(e) {...i && i !== "all" ? { category: i } : {}};}-var bN = (e, t, n = "all") => [+var SN = (e, t, n = "all") => ["index",e,t,...e === "tags" || n !== "all" ? [n] : []];-function xN(e, t, n, r, i) {+function CN(e, t, n, r, i) {let a = new URLSearchParams({kind: e,limit: String(r),offset: String(i)});- return t && a.set("q", t), n !== "all" && a.set("category", n), `${Lfe}?${a}`;+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Ffe}?${a}`;}-function SN(e) {- let t = e.what === "people" || e.what === "online-authors" ? hN.people : hN.tags, n = {+function wN(e) {+ let t = e.what === "people" || e.what === "online-authors" ? _N.people : _N.tags, n = {initialPageParam: 0,getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0};switch (e.what) {case "people": return {...n,- queryKey: bN(e.kind, e.q, e.category || "all"),- queryFn: ({ pageParam: n, signal: r }) => G(xN(e.kind, e.q, e.category || "all", t, n), r)+ queryKey: SN(e.kind, e.q, e.category || "all"),+ queryFn: ({ pageParam: n, signal: r }) => G(CN(e.kind, e.q, e.category || "all", t, n), r)};case "tags": return {...n,- queryKey: bN("tags", e.q, e.category),- queryFn: ({ pageParam: n, signal: r }) => G(xN("tags", e.q, e.category, t, n), r)+ queryKey: SN("tags", e.q, e.category),+ queryFn: ({ pageParam: n, signal: r }) => G(CN("tags", e.q, e.category, t, n), r)};case "online-authors": return {...n,- queryKey: jfe(e.q),- queryFn: ({ pageParam: n, signal: r }) => Ffe(e.q, t, n, r)+ queryKey: kfe(e.q),+ queryFn: ({ pageParam: n, signal: r }) => Nfe(e.q, t, n, r)};case "online-tags": return {...n,- queryKey: Mfe(e.q, e.category),- queryFn: ({ pageParam: n, signal: r }) => Ife(e.q, e.category, t, n, r)+ queryKey: Afe(e.q, e.category),+ queryFn: ({ pageParam: n, signal: r }) => Pfe(e.q, e.category, t, n, r)};}}-async function zfe(e, t) {- let n = SN(yN(vN(e)));+async function Lfe(e, t) {+ let n = wN(xN(bN(e)));z.removeQueries({queryKey: n.queryKey,exact: !0@@ -28804,13 +28804,13 @@ async function zfe(e, t) {getNextPageParam: n.getNextPageParam});}-var Bfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Vfe = (e, t) => `${e}${t ? "+" : ""} 项`, CN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Hfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Ufe = {+var Rfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], zfe = (e, t) => `${e}${t ? "+" : ""} 项`, TN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Bfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Vfe = {numeric: !0,sensitivity: "base"};-function Wfe(e, t) {+function Hfe(e, t) {let n = /* @__PURE__ */ new Map();- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Ufe))) {+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Vfe))) {let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);a ? a.push(r) : n.set(i, [r]);}@@ -28818,7 +28818,7 @@ function Wfe(e, t) {}//#endregion//#region src/react/index/index-people.tsx-function wN({ html: e, face: t, company: n, big: r }) {+function EN({ html: e, face: t, company: n, big: r }) {let i = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");@@ -28830,18 +28830,18 @@ function wN({ html: e, face: t, company: n, big: r }) {dangerouslySetInnerHTML: { __html: e }});}-var Gfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";-function TN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {+var Ufe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";+function DN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button",...a,"data-index-cell": "",onClick: i,- className: xE({+ className: SE({radius: "plain",padding: "none",interactive: !0,- className: `${Gfe} ${n ? "items-stretch text-left" : "items-center text-center"}`+ className: `${Ufe} ${n ? "items-stretch text-left" : "items-center text-center"}`}),children: [r,@@ -28858,23 +28858,23 @@ function TN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {]});}-function EN({ kind: e, items: t, layout: n, props: r }) {- let i = _N(e), a = n === "big";+function ON({ kind: e, items: t, layout: n, props: r }) {+ let i = yN(e), a = n === "big";return /* @__PURE__ */ (0, V.jsx)("div", {"data-index-grid": "","data-layout": n,"data-cells": i ? "company" : "people",className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,children: t.map((t) => {- let n = t.entity_kind || Rfe[e], o = r.personAvatar(t, n, a);- return /* @__PURE__ */ (0, V.jsx)(TN, {+ let n = t.entity_kind || Ife[e], o = r.personAvatar(t, n, a);+ return /* @__PURE__ */ (0, V.jsx)(DN, {"data-k": t.k,"data-kind": n,name: t.k,- readout: `${Hfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,+ readout: `${Bfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,big: a,onPress: () => r.openEntity(n, t.k),- children: /* @__PURE__ */ (0, V.jsx)(wN, {+ children: /* @__PURE__ */ (0, V.jsx)(EN, {html: o.html,face: o.face,company: i,@@ -28884,21 +28884,21 @@ function EN({ kind: e, items: t, layout: n, props: r }) {})});}-function Kfe({ items: e, layout: t, props: n }) {+function Wfe({ items: e, layout: t, props: n }) {let r = t === "big";return /* @__PURE__ */ (0, V.jsx)("div", {"data-index-grid": "","data-layout": t,"data-cells": "people",className: "index-grid-person gap-3",- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(TN, {+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(DN, {"data-follow-author": e.key,"data-kind": "performer",name: e.k,readout: `${e.n.toLocaleString()} 项更新`,big: r,onPress: () => n.openFollowAuthor(e.key),- children: /* @__PURE__ */ (0, V.jsx)(wN, {+ children: /* @__PURE__ */ (0, V.jsx)(EN, {html: n.authorAvatar(e),company: !1,big: r@@ -28908,7 +28908,7 @@ function Kfe({ items: e, layout: t, props: n }) {}//#endregion//#region node_modules/scheduler/cjs/scheduler.production.js-var qfe = /* @__PURE__ */ xt(((e) => {+var Gfe = /* @__PURE__ */ xt(((e) => {function t(e, t) {var n = e.length;e.push(t);@@ -29107,10 +29107,10 @@ var qfe = /* @__PURE__ */ xt(((e) => {}};};-})), Jfe = /* @__PURE__ */ xt(((e, t) => {- t.exports = qfe();-})), Yfe = /* @__PURE__ */ xt(((e) => {- var t = Jfe(), n = Ot(), r = At();+})), Kfe = /* @__PURE__ */ xt(((e, t) => {+ t.exports = Gfe();+})), qfe = /* @__PURE__ */ xt(((e) => {+ var t = Kfe(), n = Ot(), r = At();function i(e) {var t = "https://react.dev/errors/" + e;if (1 < arguments.length) {@@ -37520,7 +37520,7 @@ var qfe = /* @__PURE__ */ xt(((e) => {var n = !1, r = "", o = Tc, s = Ec, c = Dc;return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[bt] = t.current, ep(e), new $h(t);};-})), DN = (/* @__PURE__ */ xt(((e, t) => {+})), kN = (/* @__PURE__ */ xt(((e, t) => {function n() {if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);@@ -37528,16 +37528,16 @@ var qfe = /* @__PURE__ */ xt(((e) => {console.error(e);}}- n(), t.exports = Yfe();+ n(), t.exports = qfe();})))();-function Xfe(e) {+function Jfe(e) {let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;e.style.setProperty("--board-range-value", `${i}%`);}//#endregion//#region src/react/photo-lightbox/photo-lightbox.ts-var ON = "/vendor/swiper/14.2.0/", kN = null, Zfe = () => kN ??= Promise.all([new Promise((e, t) => {- let n = `${ON}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);+var AN = "/vendor/swiper/14.2.0/", jN = null, Yfe = () => jN ??= Promise.all([new Promise((e, t) => {+ let n = `${AN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);if (r?.sheet) {e();return;@@ -37551,11 +37551,11 @@ var ON = "/vendor/swiper/14.2.0/", kN = null, Zfe = () => kN ??= Promise.all([nereturn;}let r = document.createElement("script");- r.src = `${ON}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);+ r.src = `${AN}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);})]).then(([, e]) => e).catch((e) => {- throw kN = null, e;+ throw jN = null, e;});-function Qfe(e, t, n) {+function Xfe(e, t, n) {let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {let e = i();return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);@@ -37576,48 +37576,48 @@ function Qfe(e, t, n) {}};}-var AN = (e) => {+var MN = (e) => {let t = Number(e) || 0;return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : pe(t)).replace(" ", "\xA0") : "大小未知";-}, $fe = (e) => e.asset?.name || e.name || "未命名图片";-function epe(e, t) {+}, Zfe = (e) => e.asset?.name || e.name || "未命名图片";+function Qfe(e, t) {let n = e.asset;- if (n) return [se[n.location ?? ""] || n.location || "来源未知", AN(n.size)].join(" · ");+ if (n) return [se[n.location ?? ""] || n.location || "来源未知", MN(n.size)].join(" · ");let r = (e.total ?? 0) > 1 ? `第 ${e.position} / ${e.total} 张` : "", i = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";return [e.source || "在线图片",r,i,- e.size ? AN(e.size) : ""+ e.size ? MN(e.size) : ""].filter(Boolean).join(" · ");}//#endregion//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx-var jN = null, MN = null, tpe = 0;-function npe() {- return (!MN || !jN?.isConnected) && (MN?.unmount(), jN = document.createElement("div"), jN.className = "peach-react", jN.dataset.photoLightboxHost = "", document.body.append(jN), MN = (0, DN.createRoot)(jN)), MN;+var NN = null, PN = null, $fe = 0;+function epe() {+ return (!PN || !NN?.isConnected) && (PN?.unmount(), NN = document.createElement("div"), NN.className = "peach-react", NN.dataset.photoLightboxHost = "", document.body.append(NN), PN = (0, kN.createRoot)(NN)), PN;}-async function NN(e, t, n) {+async function FN(e, t, n) {if (!t.length || e < 0 || e >= t.length) return;let r;try {- r = await Zfe();+ r = await Yfe();} catch {window.open(t[e].src, "_blank", "noopener");return;}- let i = npe();- (0, $f.flushSync)(() => i.render(/* @__PURE__ */ (0, V.jsx)(rpe, {+ let i = epe();+ (0, $f.flushSync)(() => i.render(/* @__PURE__ */ (0, V.jsx)(tpe, {slides: t,index: e,Swiper: r,host: n ?? null- }, ++tpe)));+ }, ++$fe)));}-function PN() {- MN && (0, $f.flushSync)(() => MN.render(null));+function IN() {+ PN && (0, $f.flushSync)(() => PN.render(null));}-function rpe({ slides: e, index: t, Swiper: n, host: r }) {+function tpe({ slides: e, index: t, Swiper: n, host: r }) {let i = e.length > 1, a = (0, B.useId)(), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), [_, v] = (0, B.useState)(t), [y, b] = (0, B.useState)(100), [x, S] = (0, B.useState)({}), [C, w] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, B.useState)(!1), [D, O] = (0, B.useState)({at: t,text: ""@@ -37660,7 +37660,7 @@ function rpe({ slides: e, index: t, Swiper: n, host: r }) {v(this.activeIndex), i(this.activeIndex);} }});- i(t, 0), h.current = Qfe(e, a, b);+ i(t, 0), h.current = Xfe(e, a, b);let m = Ye(e, f.current, p.current), _ = (e = !1) => {m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();};@@ -37677,13 +37677,13 @@ function rpe({ 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) : PN());+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : IN());};return document.addEventListener("keydown", x, !0), () => {document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");};}, []), (0, B.useLayoutEffect)(() => {- m.current && Xfe(m.current);+ m.current && Jfe(m.current);}, [y]);let k = e[_], A = k.asset ?? null, j = async (e) => {if (!A || !r || e.getAttribute("aria-busy") === "true") return;@@ -37714,18 +37714,18 @@ function rpe({ slides: e, index: t, Swiper: n, host: r }) {"data-photo-lightbox": "","data-has-strip": i ? "" : void 0,onCancel: (e) => {- e.preventDefault(), PN();+ e.preventDefault(), IN();},onClick: (e) => {let t = e.target;- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && PN();+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && IN();},children: [/* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-photo-close": "","aria-label": "关闭",- onClick: PN,+ onClick: IN,dangerouslySetInnerHTML: { __html: R("x") }}),/* @__PURE__ */ (0, V.jsxs)("div", {@@ -37858,10 +37858,10 @@ function rpe({ slides: e, index: t, Swiper: n, host: r }) {id: `${a}-title`,"data-middle-truncate": "",tabIndex: -1,- children: $fe(k)+ children: Zfe(k)}, _), /* @__PURE__ */ (0, V.jsx)("span", {"data-photo-detail-meta": "",- children: epe(k, x[_])+ children: Qfe(k, x[_])})]}),/* @__PURE__ */ (0, V.jsx)("button", {@@ -37900,33 +37900,33 @@ function rpe({ 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, V.jsx)(ape, {+function npe(e) {+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, V.jsx)(rpe, {roster: e.roster,props: e- }) : e.view === "videos" ? /* @__PURE__ */ (0, V.jsx)(ope, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, V.jsx)(lpe, {+ }) : e.view === "videos" ? /* @__PURE__ */ (0, V.jsx)(ipe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, V.jsx)(spe, {photos: e.photos,props: e}, e.photos.revision) : null;}-function ape({ roster: e, props: t }) {+function rpe({ roster: e, props: t }) {let { helpers: n, actions: r } = t, i = (0, B.useMemo)(() => ({personAvatar: n.personAvatar,openEntity: r.openEntity}), [n, r]);- return /* @__PURE__ */ (0, V.jsx)(EN, {+ return /* @__PURE__ */ (0, V.jsx)(ON, {kind: e.kind,items: e.people,layout: e.layout,props: i});}-function ope(e) {- let t = fA(!e.items, e.skeletonHtml);+function ipe(e) {+ let t = pA(!e.items, e.skeletonHtml);return /* @__PURE__ */ (0, V.jsxs)("div", {"data-entity-grid": "","data-grid-reveal": t.fading ? "" : void 0,- children: [t.layer, e.items ? /* @__PURE__ */ (0, V.jsx)(CA, {+ children: [t.layer, e.items ? /* @__PURE__ */ (0, V.jsx)(wA, {mode: "entity",entityKey: `${e.kind}:${e.name}`,revision: e.revision,@@ -37945,16 +37945,16 @@ function ope(e) {}) : null]});}-var spe = (e) => Array.from({ length: e.n }, (t, n) => ({+var ape = (e) => Array.from({ length: e.n }, (t, n) => ({sample: !0,code: e.code,position: n + 1,total: e.n,name: `${e.code} 样张 ${n + 1}`,source: e.site_label || "官方样张"-})), FN = (e) => e.sample === !0, IN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, LN = (e) => FN(e) ? `/sample-thumb?${IN(e)}` : `/photo-thumb?id=${e.id}`, cpe = (e) => FN(e) ? {- src: `/sample-image?${IN(e)}`,- thumb: LN(e),+})), LN = (e) => e.sample === !0, RN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, zN = (e) => LN(e) ? `/sample-thumb?${RN(e)}` : `/photo-thumb?id=${e.id}`, ope = (e) => LN(e) ? {+ src: `/sample-image?${RN(e)}`,+ thumb: zN(e),name: e.name,asset: null,source: e.source,@@ -37962,18 +37962,18 @@ var spe = (e) => Array.from({ length: e.n }, (t, n) => ({total: e.total} : {src: `/photo?id=${e.id}`,- thumb: LN(e),+ thumb: zN(e),name: e.name || "",asset: e};-function lpe({ photos: e, props: t }) {- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, B.useMemo)(() => [...e.codeSets.flatMap(spe), ...e.items], [e]), [s, c] = (0, B.useState)(() => /* @__PURE__ */ new Set()), l = (0, B.useCallback)((e) => c((t) => {+function spe({ photos: e, props: t }) {+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, B.useMemo)(() => [...e.codeSets.flatMap(ape), ...e.items], [e]), [s, c] = (0, B.useState)(() => /* @__PURE__ */ new Set()), l = (0, B.useCallback)((e) => c((t) => {if (t.has(e)) return t;let n = new Set(t);return n.add(e), n;}), []), u = (0, B.useCallback)((e) => {- NN(e, o.map(cpe), { revealSource: i.revealSource });- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, V.jsx)(upe, {+ FN(e, o.map(ope), { revealSource: i.revealSource });+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, V.jsx)(cpe, {item: e,index: t,lost: s.has(t),@@ -37991,7 +37991,7 @@ function lpe({ photos: e, props: t }) {};}), h = p;return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(RN, {+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(BN, {label: e.code,title: e.name,meta: [@@ -38003,7 +38003,7 @@ function lpe({ photos: e, props: t }) {...f,children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))})] }, e.code)),- m.length && e.total ? /* @__PURE__ */ (0, V.jsx)(RN, {+ m.length && e.total ? /* @__PURE__ */ (0, V.jsx)(BN, {label: "本地图片",meta: `${e.total.toLocaleString()} 张`}) : null,@@ -38012,14 +38012,14 @@ function lpe({ photos: e, props: t }) {"data-local-wall": "",children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))}),- e.hasMore ? /* @__PURE__ */ (0, V.jsx)(wA, {+ e.hasMore ? /* @__PURE__ */ (0, V.jsx)(EA, {entity: !0,load: i.loadMorePhotos,enabled: () => a?.() !== !1}, e.items.length) : null] });}-function RN({ label: e, title: t, meta: n }) {+function BN({ label: e, title: t, meta: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {"data-photo-group": "",children: [@@ -38036,7 +38036,7 @@ function RN({ label: e, title: t, meta: n }) {]});}-function upe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {+function cpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {let a = e.name ?? "";return /* @__PURE__ */ (0, V.jsx)("button", {type: "button",@@ -38045,7 +38045,7 @@ function upe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {title: a,onClick: () => i(t),children: n ? null : /* @__PURE__ */ (0, V.jsx)("img", {- src: LN(e),+ src: zN(e),alt: a,loading: "lazy",decoding: "async",@@ -38054,7 +38054,7 @@ function upe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {})});}-function zN(e) {+function VN(e) {return {x0: 0,y0: 0,@@ -38062,7 +38062,7 @@ function zN(e) {y1: e.height};}-function BN(e) {+function HN(e) {return {x0: Math.round(e.x0),y0: Math.round(e.y0),@@ -38070,40 +38070,40 @@ function BN(e) {y1: Math.round(e.y1)};}-function VN(e) {+function UN(e) {return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;}-function HN(e, t) {- if (!VN(e)) return {+function WN(e, t) {+ if (!UN(e)) return {x0: 0,y0: 0,x1: 0,y1: 0};- if (t == null || !(t > 0)) return zN(e);+ if (t == null || !(t > 0)) return VN(e);let n = e.width, r = n / t;r > e.height && (r = e.height, n = r * t);let i = (e.width - n) / 2, a = (e.height - r) / 2;- return BN({+ return HN({x0: i,y0: a,x1: i + n,y1: a + r});}-function dpe(e, t) {- if (!VN(e) || !(t > 0)) return zN(e);+function lpe(e, t) {+ if (!UN(e) || !(t > 0)) return VN(e);let n = Math.min(e.width, e.height * t);- return BN({+ return HN({x0: e.width - n,y0: 0,x1: e.width,y1: e.height});}-function fpe(e, t, n) {- if (!VN(t) || !(n > 0)) return zN(t);- let r = UN(e, t), i = HN({+function upe(e, t, n) {+ if (!UN(t) || !(n > 0)) return VN(t);+ let r = GN(e, t), i = WN({width: r.x1 - r.x0,height: r.y1 - r.y0}, n);@@ -38114,8 +38114,8 @@ function fpe(e, t, n) {y1: r.y0 + i.y1};}-function UN(e, t, n = null, r = "width") {- if (!VN(t)) return {+function GN(e, t, n = null, r = "width") {+ if (!UN(t)) return {x0: 0,y0: 0,x1: 0,@@ -38124,43 +38124,43 @@ function UN(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 BN({+ return HN({x0: s,y0: c,x1: s + a,y1: c + o});}-function WN(e, t, n, r) {+function KN(e, t, n, r) {let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));- return BN({+ return HN({x0: o,y0: s,x1: o + i,y1: s + a});}-function GN(e, t, n, r = null) {- if (!VN(n) || !(t > 0)) return e;+function qN(e, t, n, r = null) {+ if (!UN(n) || !(t > 0)) return e;let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;- return UN({+ return GN({x0: i - o / 2,y0: a - s / 2,x1: i + o / 2,y1: a + s / 2}, n, r);}-function ppe(e, t, n, r, i = null) {+function dpe(e, t, n, r, i = null) {let a = {x0: e.x0,y0: e.y0,x1: Math.max(e.x0 + 1, t),y1: Math.max(e.y0 + 1, n)};- return UN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");+ return GN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");}-function mpe(e, t) {- return VN(t) ? {+function fpe(e, t) {+ return UN(t) ? {left: e.x0 / t.width * 100,top: e.y0 / t.height * 100,width: (e.x1 - e.x0) / t.width * 100,@@ -38172,8 +38172,8 @@ function mpe(e, t) {height: 0};}-function hpe(e, t) {- if (!VN(t)) return {+function ppe(e, t) {+ if (!UN(t)) return {size: "cover",position: "50% 50%"};@@ -38183,7 +38183,7 @@ function hpe(e, t) {position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`};}-function gpe(e, t) {+function mpe(e, t) {let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);return {left: `${-e.x0 / n * 100}%`,@@ -38192,29 +38192,29 @@ function gpe(e, t) {height: `${t.height / r * 100}%`};}-function KN(e, t, n) {+function JN(e, t, n) {return t > 0 ? e * n / t : 0;}//#endregion//#region src/react/components/modal-frame.tsx-var _pe = {+var hpe = {"avatar-picker": "max-w-avatar-picker","cover-crop": "max-w-cover-crop",form: "max-w-form-modal"};-function qN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {+function YN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {let { isFocusVisible: a } = Zm();- return /* @__PURE__ */ (0, V.jsx)(pk, {+ return /* @__PURE__ */ (0, V.jsx)(mk, {isOpen: e,onOpenChange: t,isDismissable: !0,"data-modal-motion": "","data-motion-instant": a || void 0,className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",- children: /* @__PURE__ */ (0, V.jsx)(Hse, {+ children: /* @__PURE__ */ (0, V.jsx)(Vse, {"data-modal-surface": "",- className: `flex max-h-full w-full ${_pe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,- children: /* @__PURE__ */ (0, V.jsx)(lk, {+ className: `flex max-h-full w-full ${hpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,+ children: /* @__PURE__ */ (0, V.jsx)(uk, {"aria-label": r,className: "flex min-h-0 flex-col outline-none",children: i@@ -38222,7 +38222,7 @@ function qN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {})});}-function JN({ children: e }) {+function XN({ children: e }) {return /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",@@ -38231,8 +38231,8 @@ function JN({ children: e }) {}//#endregion//#region src/react/crop/crop-frame.tsx-var vpe = .02, YN = 1.08;-function XN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {+var gpe = .02, ZN = 1.08;+function QN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {let s = (0, B.useRef)(null), c = (0, B.useRef)(null), [l, u] = (0, B.useState)(!1);(0, B.useEffect)(() => {u(!1);@@ -38243,8 +38243,8 @@ function XN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: odx: 0,dy: 0} : {- dx: KN(e, n.clientWidth, r.width),- dy: KN(t, n.clientHeight, r.height)+ dx: JN(e, n.clientWidth, r.width),+ dy: JN(t, n.clientHeight, r.height)};}, [r]);function f(e) {@@ -38262,29 +38262,29 @@ function XN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: oif (!n || !a || !r) return;let o = d(e.clientX - n.x, e.clientY - n.y);if (n.mode === "move") {- i(WN(n.box, o.dx, o.dy, r));+ i(KN(n.box, o.dx, o.dy, r));return;}- i(ppe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));+ i(dpe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));}function m(e) {c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));}function h(e) {if (!n || !r) return;- let a = Math.max(1, (n.x1 - n.x0) * vpe), o = {+ let a = Math.max(1, (n.x1 - n.x0) * gpe), o = {ArrowLeft: [-a, 0],ArrowRight: [a, 0],ArrowUp: [0, -a],ArrowDown: [0, a]};if (o[e.key]) {- e.preventDefault(), i(WN(n, o[e.key][0], o[e.key][1], r));+ e.preventDefault(), i(KN(n, o[e.key][0], o[e.key][1], r));return;}- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(GN(n, e.key === "-" ? 1 / YN : YN, r, t)));+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(qN(n, e.key === "-" ? 1 / ZN : ZN, r, t)));}- let g = n && r ? mpe(UN(n, r, t), r) : null, _ = g ? {+ let g = n && r ? fpe(GN(n, r, t), r) : null, _ = g ? {"--crop-l": `${g.left}%`,"--crop-t": `${g.top}%`,"--crop-w": `${g.width}%`,@@ -38303,7 +38303,7 @@ function XN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: odraggable: !1,onLoad: (e) => {let t = e.currentTarget;- VN({+ UN({width: t.naturalWidth,height: t.naturalHeight}) && a({@@ -38342,7 +38342,7 @@ function XN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: oonPointerCancel: m,onKeyDown: h,onWheel: (e) => {- !n || !r || i(GN(n, e.deltaY > 0 ? YN : 1 / YN, r, t));+ !n || !r || i(qN(n, e.deltaY > 0 ? ZN : 1 / ZN, r, t));},className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",children: /* @__PURE__ */ (0, V.jsx)("span", {@@ -38364,101 +38364,61 @@ function XN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o}//#endregion//#region src/react/avatar-picker/avatar-picker.ts-var ype = "/api/avatar-choices", ZN = "/api/avatar-pick", bpe = "/api/avatar-code-cover", QN = "/api/avatar-frame", xpe = "/avatar-choice", $N = (e, t) => [+var _pe = "/api/avatar-choices", $N = "/api/avatar-pick", vpe = "/api/avatar-code-cover", ype = "/avatar-choice", eP = (e, t) => ["avatar-choices",e,t-], eP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, tP = (e, t, n, r = "") => `${xpe}${eP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), nP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Spe = (e, t, n) => G(ype + eP(e, t), n), Cpe = (e) => K(bpe, { code: e });-async function wpe(e, t, n) {- let r = await K(QN, {- kind: e,- id: t,- ref: n.ref- });- return {- ...n,- width: r.width,- height: r.height,- focus: r.focus,- bases: r.bases- };-}-var Tpe = (e, t, n) => K(QN, {- kind: e,- id: t,- url: n-}), Epe = (e, t, n) => rP(`${QN}${eP(e, t)}&name=${encodeURIComponent(n.name)}`, n);-async function rP(e, t) {- let n = await fetch(e, {- method: "POST",- credentials: "same-origin",- body: t- }), r = await n.json().catch(() => null);- if (n.ok) return r;- throw new AS(r?.error || `请求失败(${n.status})`, n.status, r);-}+], tP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, nP = (e, t, n, r = "") => `${ype}${tP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), rP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", bpe = (e, t, n) => G(_pe + tP(e, t), n), xpe = (e) => K(vpe, { code: e });function iP(e, t, n) {let r = t.width === e.width && t.height === e.height;- return e.focus && r ? fpe(e.focus, t, n) : HN(t, n);+ return e.focus && r ? upe(e.focus, t, n) : WN(t, n);}-var Dpe = (e) => e.crop && VN({+var Spe = (e) => e.crop && UN({width: e.width,height: e.height});-async function Ope(e, t, n) {+async function Cpe(e, t, n) {if (!("file" in n)) {- await K(ZN, {+ await K($N, {kind: e,id: t,...n});return;}- let { file: r, crop: i } = n, a = i ? `&crop=${[- i.x0,- i.y0,- i.x1,- i.y1- ].join(",")}` : "";- await rP(`${ZN}${eP(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);+ let r = n.file, i = await fetch(`${$N}${tP(e, t)}&name=${encodeURIComponent(r.name)}`, {+ method: "POST",+ credentials: "same-origin",+ body: r+ });+ if (i.ok) return;+ let a = await i.json().catch(() => null);+ throw new jS(a?.error || `请求失败(${i.status})`, i.status, a);}-function kpe(e, t) {+function wpe(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 Ape = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;-function jpe(e) {- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Ape(e.index_age_hours)}没更新,新收的人像这里还查不到。`;+var Tpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;+function Epe(e) {+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Tpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;}-var aP = (e) => e.cast > 1, Mpe = (e) => aP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Npe = {+var aP = (e) => e.cast > 1, Dpe = (e) => aP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Ope = {gfriends: "图库",history: "用过的",asset: "作品画面",- code: "番号封面",- url: "地址",- upload: "本机"+ code: "番号封面"};-function Ppe(e) {+function kpe(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 Fpe = (e) => `${Npe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (aP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Ipe = 8, Lpe = 3 / 4;-async function Rpe(e, t, n) {- switch (n.via) {- case "choice": return { choice: await wpe(e, t, n.choice) };- case "code": return { choice: await Cpe(n.code) };- case "url": return { choice: await Tpe(e, t, n.url) };- case "file": return {- choice: await Epe(e, t, n.file),- file: n.file- };- }-}-function zpe({ kind: e, entityId: t, name: n, onPicked: r }) {+var Ape = (e) => `${Ope[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (aP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), jpe = 8, Mpe = 3 / 4;+function Npe({ kind: e, entityId: t, name: n, onPicked: r }) {let [i, a] = (0, B.useState)(!1);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", {className: "absolute right-1 bottom-1 z-10",@@ -38468,17 +38428,17 @@ function zpe({ kind: e, entityId: t, name: n, onPicked: r }) {"aria-label": `更换${n}的头像`,onClick: () => a(!0),className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",- children: /* @__PURE__ */ (0, V.jsx)($ie, {+ children: /* @__PURE__ */ (0, V.jsx)(Qie, {"aria-hidden": !0,className: "size-4"})})- }), /* @__PURE__ */ (0, V.jsx)(qN, {+ }), /* @__PURE__ */ (0, V.jsx)(YN, {isOpen: i,onOpenChange: a,width: "avatar-picker",label: "更换头像",- children: /* @__PURE__ */ (0, V.jsx)(Bpe, {+ children: /* @__PURE__ */ (0, V.jsx)(Ppe, {kind: e,entityId: t,name: n,@@ -38487,61 +38447,50 @@ function zpe({ kind: e, entityId: t, name: n, onPicked: r }) {})})] });}-function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {- let a = (0, B.useRef)(null), o = hM(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), p = $N(e, t), m = (0, B.useRef)(!1), h = wS({- queryKey: p,- queryFn: ({ signal: n }) => Spe(e, t, n),+function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {+ let a = (0, B.useRef)(null), o = _M(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = eP(e, t), g = (0, B.useRef)(!1), _ = TS({+ queryKey: h,+ queryFn: ({ signal: n }) => bpe(e, t, n),retryOnMount: !0});(0, B.useEffect)(() => () => {- m.current && z.removeQueries({ queryKey: $N(e, t) });+ g.current && z.removeQueries({ queryKey: eP(e, t) });}, [e, t]);- let g = DS({- mutationFn: (n) => Ope(e, t, n),+ let v = OS({+ mutationFn: (n) => Cpe(e, t, n),onSuccess: () => {- m.current = !0, i(), r();+ g.current = !0, i(), r();}- }), _ = DS({- mutationFn: (n) => Rpe(e, t, n),- onSuccess: f- }), v = (e) => _.isPending && _.variables?.via === e;- function y(e) {+ }), y = OS({+ mutationFn: (e) => xpe(e),+ onSuccess: (e) => m(e)+ });+ function b(e) {let t = e.currentTarget, n = t.files?.[0];- t.value = "", n && !w && _.mutate({- via: "file",- file: n- });+ t.value = "", f(""), n && v.mutate({ file: n });}- function b(e) {- if (g.isPending || !d) return;- let { choice: t, file: n } = d;- n ? g.mutate(e ? {- file: n,- crop: e.crop- } : { file: n }) : g.mutate(e ?? { ref: t.ref });- }- let x = h.data, S = x?.choices ?? [], C = (g.error ? W(g.error) : "") || (!d && _.error ? W(_.error) : "") || (h.error ? W(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : jpe(x);+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? W(v.error) : "") || (!p && y.error ? W(y.error) : "") || (_.error ? W(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Epe(x);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [- /* @__PURE__ */ (0, V.jsx)(JN, { children: /* @__PURE__ */ (0, V.jsx)(TT, { className: "size-6" }) }),+ /* @__PURE__ */ (0, V.jsx)(XN, { children: /* @__PURE__ */ (0, V.jsx)(ET, { className: "size-6" }) }),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(ND, {+ children: [/* @__PURE__ */ (0, V.jsx)(PD, {slot: "title",className: "text-title-3-semibold text-text-primary",- children: d ? "框出头像那一块" : "更换头像"- }), !d && S.length ? /* @__PURE__ */ (0, V.jsxs)(vE, {+ children: p ? "框出头像那一块" : "更换头像"+ }), !p && S.length ? /* @__PURE__ */ (0, V.jsxs)(yE, {color: "soft",children: [S.length, " 张可选"]}) : null]}),/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: d ? Mpe(d.choice) : kpe(n, x)+ children: p ? Dpe(p) : wpe(n, x)}),T ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "neutral",@@ -38553,21 +38502,26 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}) : null]}),- /* @__PURE__ */ (0, V.jsx)(_M, {- icon: dT,+ /* @__PURE__ */ (0, V.jsx)(yM, {+ icon: fT,size: "small","aria-label": "关闭",onClick: i})]- }), d ? /* @__PURE__ */ (0, V.jsx)(Upe, {+ }), p ? /* @__PURE__ */ (0, V.jsx)(Ipe, {kind: e,entityId: t,- choice: d.choice,- file: d.file,- busy: g.isPending,- back: () => f(null),- confirm: b+ choice: p,+ busy: v.isPending,+ back: () => m(null),+ confirm: (e, t, n) => {+ v.isPending || v.mutate({+ ref: e,+ crop: t,+ version: n+ });+ }}) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "relative flex min-h-0 flex-1 flex-col",children: /* @__PURE__ */ (0, V.jsx)("div", {@@ -38576,10 +38530,10 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {children: /* @__PURE__ */ (0, V.jsx)("div", {role: "listbox","aria-label": "候选头像",- "aria-busy": h.isPending || void 0,- "data-skeleton": h.isPending ? "avatar-choices" : void 0,+ "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: h.isPending ? Array.from({ length: Ipe }, (e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {+ children: _.isPending ? Array.from({ length: jpe }, (e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {"aria-hidden": !0,"data-avatar-skeleton": !0,className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",@@ -38592,18 +38546,15 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {role: "option","data-avatar-choice": !0,"aria-selected": n.current,- title: Fpe(n),+ title: Ape(n),...X(w),onClick: () => {- w || (n.crop ? f({ choice: n }) : _.mutate({- via: "choice",- choice: n- }));+ w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));},className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",children: [- /* @__PURE__ */ (0, V.jsx)(Vpe, {- src: tP(e, t, n.ref, nP(n, n.ref)),+ /* @__PURE__ */ (0, V.jsx)(Fpe, {+ src: nP(e, t, n.ref, rP(n, n.ref)),choice: n}),/* @__PURE__ */ (0, V.jsx)("span", {@@ -38612,7 +38563,7 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}),n.current ? /* @__PURE__ */ (0, V.jsx)("span", {className: "absolute top-1 left-1",- children: /* @__PURE__ */ (0, V.jsx)(vE, {+ children: /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "gray",children: "在用"@@ -38620,7 +38571,7 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}) : null,aP(n) ? /* @__PURE__ */ (0, V.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, V.jsxs)(vE, {+ children: /* @__PURE__ */ (0, V.jsxs)(yE, {variant: "caption",color: "gray",children: [n.cast, " 人"]@@ -38635,14 +38586,11 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {children: [/* @__PURE__ */ (0, V.jsxs)("form", {className: "flex min-w-0 items-center gap-2",onSubmit: (e) => {- e.preventDefault(), l.trim() && !w && _.mutate({- via: "code",- code: l.trim()- });+ e.preventDefault(), l.trim() && !w && y.mutate(l.trim());},children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(HM, {+ children: /* @__PURE__ */ (0, V.jsx)(WM, {"aria-label": "番号",placeholder: "番号,如 ABW-232",value: l,@@ -38652,7 +38600,7 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {type: "submit",variant: "secondary",disabled: !l.trim(),- ...X(v("code")),+ ...X(y.isPending),children: "取封面来框"})]}), /* @__PURE__ */ (0, V.jsxs)("div", {@@ -38661,7 +38609,7 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",onClick: () => a.current?.click(),- ...X(v("file")),+ ...X(v.isPending),children: "从本机选图片"}),/* @__PURE__ */ (0, V.jsx)("input", {@@ -38671,13 +38619,13 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {tabIndex: -1,"aria-hidden": !0,className: "hidden",- onChange: y+ onChange: b}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-1 items-center gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(HM, {+ children: /* @__PURE__ */ (0, V.jsx)(WM, {type: "url","aria-label": "图片地址",placeholder: "https://…",@@ -38686,12 +38634,9 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {})}), /* @__PURE__ */ (0, V.jsx)(J, {disabled: !s.trim(),- ...X(v("url")),+ ...X(v.isPending),onClick: () => {- w || _.mutate({- via: "url",- url: s.trim()- });+ v.isPending || v.mutate({ url: s.trim() });},children: "用这个地址"})]@@ -38700,7 +38645,7 @@ function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {})]})] })] });}-function Vpe({ src: e, choice: t }) {+function Fpe({ 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);@@ -38708,7 +38653,7 @@ function Vpe({ src: e, choice: t }) {let a = {width: t.width,height: t.height- }, o = Dpe(t) ? gpe(iP(t, a, Lpe), a) : null, s = r ? !0 : void 0;+ }, o = Spe(t) ? mpe(iP(t, a, Mpe), a) : null, s = r ? !0 : void 0;return /* @__PURE__ */ (0, V.jsxs)("span", {className: "relative block w-full aspect-avatar-choice overflow-hidden",children: [/* @__PURE__ */ (0, V.jsx)("img", {@@ -38733,45 +38678,37 @@ function Vpe({ src: e, choice: t }) {})]});}-function Hpe(e) {- let [t, n] = (0, B.useState)("");- return (0, B.useEffect)(() => {- if (!e) return;- let t = URL.createObjectURL(e);- return n(t), () => URL.revokeObjectURL(t);- }, [e]), t;-}-function Upe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confirm: o }) {- let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, B.useState)(s[0]), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(null), m = nP(n, c), h = Hpe(r), g = r ? h : tP(e, t, c, m), _ = hM();- function v(e) {- l(e), d(null), p(null);+function Ipe({ 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 = rP(n, s), m = nP(e, t, s, p), h = _M();+ function g(e) {+ c(e), u(null), f(null);}- let y = f && u ? hpe(f, u) : null;+ let _ = d && l ? ppe(d, l) : null;return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {- ref: _,+ 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: [g ? /* @__PURE__ */ (0, V.jsx)(XN, {- src: g,+ children: [/* @__PURE__ */ (0, V.jsx)(QN, {+ src: m,aspect: 1,- box: f,- size: u,+ box: d,+ size: l,label: `${n.label} 的头像取景框`,onSize: (e) => {- d(e), VN(e) && p(c === n.ref ? iP(n, e, 1) : HN(e, 1));+ u(e), UN(e) && f(s === n.ref ? iP(n, e, 1) : WN(e, 1));},- onBox: p- }) : null, s.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {+ onBox: f+ }), o.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {role: "radiogroup","aria-label": "底图",className: "flex flex-wrap justify-center gap-2",- children: s.map((e) => /* @__PURE__ */ (0, V.jsx)("button", {+ children: o.map((e) => /* @__PURE__ */ (0, V.jsx)("button", {type: "button",role: "radio",- "aria-checked": e === c,+ "aria-checked": e === s,"data-crop-base": !0,- onClick: () => v(e),+ 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: Ppe(e)+ children: kpe(e)}, e))}) : null]}), /* @__PURE__ */ (0, V.jsxs)("div", {@@ -38780,41 +38717,26 @@ function Upe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confi"aria-hidden": !0,"data-crop-preview": !0,className: "size-crop-preview shrink-0 rounded-full border border-separator-border bg-background-secondary-default bg-(image:--crop-preview) bg-(position:--crop-preview-at) bg-(length:--crop-preview-size) bg-no-repeat",- style: y ? {- "--crop-preview": `url("${g}")`,- "--crop-preview-size": y.size,- "--crop-preview-at": y.position+ style: _ ? {+ "--crop-preview": `url("${m}")`,+ "--crop-preview-size": _.size,+ "--crop-preview-at": _.position} : void 0}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-1 flex-wrap items-center justify-end gap-3",- children: [- /* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- onClick: a,- ...X(i),- children: "回候选"- }),- n.crop ? null : /* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- ...X(i),- onClick: () => {- i || o(null);- },- children: "整张使用"- }),- /* @__PURE__ */ (0, V.jsx)(J, {- disabled: !f || !u,- ...X(i),- onClick: () => {- f && !i && o({- ref: c,- crop: f,- version: m- });- },- children: "用这一块"- })- ]+ children: [/* @__PURE__ */ (0, V.jsx)(J, {+ variant: "secondary",+ onClick: i,+ ...X(r),+ children: "回候选"+ }), /* @__PURE__ */ (0, V.jsx)(J, {+ disabled: !d || !l,+ ...X(r),+ onClick: () => {+ d && !r && a(s, d, p);+ },+ children: "用这一块"+ })]})]})] });}@@ -38854,12 +38776,12 @@ function oP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {}//#endregion//#region src/react/entity-hero/glyph.tsx-var Wpe = {+var Lpe = {"text-aa": 1.435,"mark-javdb": 326 / 111};function sP({ name: e }) {- let t = Wpe[e];+ let t = Lpe[e];return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24","aria-hidden": "true",@@ -38949,7 +38871,7 @@ function dP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {}), a]})] });}-function Gpe({ following: e, busy: t, onToggle: n, tip: r }) {+function Rpe({ 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 = () => {lP(o.current) && o.current.hidePopover(), c(!1);}, d = () => {@@ -39002,29 +38924,29 @@ function Gpe({ following: e, busy: t, onToggle: n, tip: r }) {}//#endregion//#region src/react/entity-hero/name-picker.tsx-function Kpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {+function zpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {let [i, a] = (0, B.useState)(!1), o = (0, B.useRef)(null);return (0, B.useEffect)(() => {o.current?.setAttribute("title", "名字与别名");- }, []), /* @__PURE__ */ (0, V.jsxs)(Pse, {+ }, []), /* @__PURE__ */ (0, V.jsxs)(Nse, {isOpen: i,onOpenChange: a,- children: [/* @__PURE__ */ (0, V.jsx)(jD, {+ children: [/* @__PURE__ */ (0, V.jsx)(MD, {ref: o,"data-namepick-toggle": "","aria-label": "名字与别名",children: /* @__PURE__ */ (0, V.jsx)(sP, { name: "chevron-down" })- }), /* @__PURE__ */ (0, V.jsx)(QO, {+ }), /* @__PURE__ */ (0, V.jsx)($O, {placement: "bottom start",offset: 8,containerPadding: 8,- className: sM,+ className: lM,"data-namepick-menu": "",- children: /* @__PURE__ */ (0, V.jsxs)(Ise, {+ children: /* @__PURE__ */ (0, V.jsxs)(Fse, {"aria-label": "名字与别名","data-namepick-list": "",children: [- /* @__PURE__ */ (0, V.jsx)(ak, {+ /* @__PURE__ */ (0, V.jsx)(ok, {selectionMode: "single",disallowEmptySelection: !0,selectedKeys: [e],@@ -39032,15 +38954,15 @@ function Kpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {let r = [...t][0];r && r !== e && n(r);},- children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(sk, {+ children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(ck, {id: e,textValue: e,"data-namepick-name": e,children: [/* @__PURE__ */ (0, V.jsx)(sP, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]}, e))}),- /* @__PURE__ */ (0, V.jsx)(gse, { "data-namepick-rule": "" }),- /* @__PURE__ */ (0, V.jsx)(ak, { children: /* @__PURE__ */ (0, V.jsxs)(sk, {+ /* @__PURE__ */ (0, V.jsx)(hse, { "data-namepick-rule": "" }),+ /* @__PURE__ */ (0, V.jsx)(ok, { children: /* @__PURE__ */ (0, V.jsxs)(ck, {id: "alias",textValue: "添加别名","data-namepick-alias": "",@@ -39052,8 +38974,8 @@ function Kpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {})]});}-var qpe = (e) => e === "studio" || e === "agency", fP = (e) => e === "performer" || e === "creator", Jpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";-function Ype(e) {+var Bpe = (e) => e === "studio" || e === "agency", fP = (e) => e === "performer" || e === "creator", Vpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";+function Hpe(e) {return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);}function pP(e) {@@ -39072,7 +38994,7 @@ function mP(e, t) {return r && [e.label, n].map(me).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";}var hP = (e) => ({ site: he(e) });-function Xpe(e, t) {+function Upe(e, t) {let n = pP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({type: "icon",url: e.url,@@ -39117,7 +39039,7 @@ function Xpe(e, t) {return [...r, ...a];}var gP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");-function Zpe(e) {+function Wpe(e) {return [["legal_name",@@ -39173,7 +39095,7 @@ function Zpe(e) {}]}] : []);}-function Qpe(e) {+function Gpe(e) {if (!e) return [];let t = [];e.birth_date && t.push({@@ -39230,14 +39152,14 @@ function Qpe(e) {tags: e.tags}), t;}-function $pe(e) {+function Kpe(e) {let t = e.length > 5 ? 4 : e.length;return {shown: e.slice(0, t),rest: e.length - t};}-function eme(e) {+function qpe(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 ? {@@ -39248,7 +39170,7 @@ function eme(e) {}//#endregion//#region src/react/entity-hero/entity-hero-page.tsx-function tme(e) {+function Jpe(e) {return A({id: e.id,hasImage: e.has_image,@@ -39258,8 +39180,8 @@ function tme(e) {focus: e.avatar_focus});}-function nme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {- let s = fP(e), c = qpe(e), l = s ? Qpe(n.profile) : c ? Zpe(n.company_profile) : [], u = Xpe(n, e), d = gP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, B.useRef)(null), m = (0, B.useRef)(null);+function Ype({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {+ let s = fP(e), c = Bpe(e), l = s ? Gpe(n.profile) : c ? Wpe(n.company_profile) : [], u = Upe(n, e), d = gP(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)(() => {@@ -39272,7 +39194,7 @@ function nme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,children: [/* @__PURE__ */ (0, V.jsxs)("div", {"data-entity-portrait-wrap": "",- children: [/* @__PURE__ */ (0, V.jsx)(rme, {+ children: [/* @__PURE__ */ (0, V.jsx)(Xpe, {kind: e,name: t,helpers: o,@@ -39280,7 +39202,7 @@ function nme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,company: c}), s && n.id ? /* @__PURE__ */ (0, V.jsx)("span", {"data-avatar-picker": "",- children: /* @__PURE__ */ (0, V.jsx)(zpe, {+ children: /* @__PURE__ */ (0, V.jsx)(Npe, {kind: e,entityId: Number(n.id),name: n.canonical_name || t,@@ -39293,14 +39215,14 @@ function nme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,children: [/* @__PURE__ */ (0, V.jsxs)("div", {"data-entity-title": "",- children: [/* @__PURE__ */ (0, V.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, V.jsx)(Kpe, {+ children: [/* @__PURE__ */ (0, V.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, V.jsx)(zpe, {current: n.canonical_name,- choices: Ype(n),+ choices: Hpe(n),onChoose: a.chooseName,onAddAlias: a.addAlias})]}),- /* @__PURE__ */ (0, V.jsx)(ime, {+ /* @__PURE__ */ (0, V.jsx)(Zpe, {kind: e,entity: n,actions: a@@ -39321,9 +39243,9 @@ function nme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,u.length ? /* @__PURE__ */ (0, V.jsx)("div", {ref: p,"data-entity-links": "",- children: u.map((e, t) => /* @__PURE__ */ (0, V.jsx)(cme, { link: e }, t))+ children: u.map((e, t) => /* @__PURE__ */ (0, V.jsx)(tme, { link: e }, t))}) : null,- d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)(lme, {+ d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)(nme, {entity: n,actions: a,helpers: o@@ -39332,11 +39254,11 @@ function nme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,}),l.length ? /* @__PURE__ */ (0, V.jsx)("dl", {"data-entity-facts": "",- children: l.map((e) => /* @__PURE__ */ (0, V.jsx)(ome, {+ children: l.map((e) => /* @__PURE__ */ (0, V.jsx)($pe, {glyph: e.glyph,label: e.label,clip: e.clip,- children: e.tags ? /* @__PURE__ */ (0, V.jsx)(sme, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {+ children: e.tags ? /* @__PURE__ */ (0, V.jsx)(eme, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,children: [t ? " " : "", e.text]}, t))@@ -39355,7 +39277,7 @@ function nme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,onClick: () => a.openEntity("performer", e.k),children: [/* @__PURE__ */ (0, V.jsx)("span", {"data-hero-ring": "",- dangerouslySetInnerHTML: { __html: `<span>${L(e.k.slice(0, 1))}</span>${tme(e)}` }+ dangerouslySetInnerHTML: { __html: `<span>${L(e.k.slice(0, 1))}</span>${Jpe(e)}` }}), /* @__PURE__ */ (0, V.jsx)("span", {"data-hero-costar-name": "",children: e.k@@ -39370,7 +39292,7 @@ function nme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,act: (e, t) => a.feedAction(e, t)}), i) : null] });}-function rme({ kind: e, name: t, helpers: n, people: r, company: i }) {+function Xpe({ kind: e, name: t, helpers: n, people: r, company: i }) {let [a] = (0, B.useState)(() => `${n.portraitImg()}<span>${L(t.slice(0, 1))}</span>`);return /* @__PURE__ */ (0, V.jsx)("div", {"data-entity-portrait": r ? "round" : "square",@@ -39379,7 +39301,7 @@ function rme({ kind: e, name: t, helpers: n, people: r, company: i }) {dangerouslySetInnerHTML: { __html: a }});}-function ime({ kind: e, entity: t, actions: n }) {+function Zpe({ kind: e, entity: t, actions: n }) {let r = pP(t), i = (e, t) => (r) => {r.preventDefault(), n.openEntity(e, t);}, a = r ? r.linked ? /* @__PURE__ */ (0, V.jsx)("a", {@@ -39389,7 +39311,7 @@ function ime({ kind: e, entity: t, actions: n }) {children: r.name}) : r.name : null, o = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });if (e === "performer" || e === "creator") {- let e = eme(t.name_groups);+ let e = qpe(t.name_groups);return /* @__PURE__ */ (0, V.jsxs)("div", {"data-entity-alias": "meta",children: [@@ -39419,7 +39341,7 @@ function ime({ kind: e, entity: t, actions: n }) {rest: e.rest,label: `另外 ${e.rest} 个别名`,heading: `${e.total} 个别名`,- children: /* @__PURE__ */ (0, V.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, V.jsx)(ame, {+ children: /* @__PURE__ */ (0, V.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, V.jsx)(Qpe, {label: e.label,names: e.names}, t)) })@@ -39481,21 +39403,21 @@ function _P({ entity: e }) {children: [/* @__PURE__ */ (0, V.jsx)(sP, { name: "user-round" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.identity_labels.join(" · ") })]}) : null;}-function ame({ label: e, names: t }) {+function Qpe({ label: e, names: t }) {return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, V.jsx)("dd", {"data-wide": e ? void 0 : "",children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, V.jsx)("small", { children: e.reading }) : null] }, t))})] });}-function ome({ glyph: e, label: t, clip: n, children: r }) {+function $pe({ glyph: e, label: t, clip: n, children: r }) {return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("dt", { children: [/* @__PURE__ */ (0, V.jsx)(sP, { name: e }), t] }), /* @__PURE__ */ (0, V.jsx)("dd", {"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,title: n,children: r})] });}-function sme({ tags: e }) {- let { shown: t, rest: n } = $pe(e);+function eme({ tags: e }) {+ let { shown: t, rest: n } = Kpe(e);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, V.jsx)("span", {"data-fact-tag": "",children: e@@ -39525,7 +39447,7 @@ function vP({ mark: e }) {dangerouslySetInnerHTML: { __html: t }});}-function cme({ link: e }) {+function tme({ link: e }) {switch (e.type) {case "icon": return /* @__PURE__ */ (0, V.jsx)("a", {"data-link": "icon",@@ -39564,7 +39486,7 @@ function cme({ link: e }) {});}}-function lme({ entity: e, actions: t, helpers: n }) {+function nme({ 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);@@ -39596,20 +39518,20 @@ function lme({ entity: e, actions: t, helpers: n }) {"data-entry-ordinal": "",children: e.ordinal}) : null]- }, t)), e.feed ? /* @__PURE__ */ (0, V.jsx)(Gpe, {+ }, t)), e.feed ? /* @__PURE__ */ (0, V.jsx)(Rpe, {following: r,busy: a,onToggle: (e) => {l(e);},- tip: Jpe(r)+ tip: Vpe(r)}) : null]});}//#endregion//#region src/react/entity-page/entity-page-view.tsx-function ume(e) {- let { kind: t, name: n } = e, r = wS(cN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;+function rme(e) {+ let { kind: t, name: n } = e, r = TS(uN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;return (0, B.useLayoutEffect)(() => {i && o.missing();}, [o, i]), (0, B.useLayoutEffect)(() => {@@ -39624,12 +39546,12 @@ function ume(e) {o,a?.kind,a?.name- ]), r.isError ? /* @__PURE__ */ (0, V.jsx)(pA, {+ ]), r.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {message: W(r.error),onRetry: () => {r.refetch();}- }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(pme, {+ }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(ome, {...e,entity: r.data});@@ -39646,14 +39568,14 @@ function yP(e) {};return n(r), r.n;}-var dme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);-function fme(e, t) {+var ime = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);+function ame(e, t) {return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;}-function pme(e) {- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = OS(lN(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || uN(p).length > 0, g = a.media === "photos" && h ? a : tN, [_, v] = (0, B.useState)("people"), y = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [b, x] = (0, B.useState)(y);+function ome(e) {+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = kS(dN(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || fN(p).length > 0, g = a.media === "photos" && h ? a : rN, [_, v] = (0, B.useState)("people"), y = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [b, x] = (0, B.useState)(y);b !== y && (x(y), v("videos"));- let S = l && _ === "people" && u.length ? "people" : g.media, [C, w] = (0, B.useState)(0), T = sN(e), E = wS(T), D = yP(JSON.stringify([T.queryKey, C])), [O] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));+ let S = l && _ === "people" && u.length ? "people" : g.media, [C, w] = (0, B.useState)(0), T = lN(e), E = TS(T), D = yP(JSON.stringify([T.queryKey, C])), [O] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));(0, B.useLayoutEffect)(() => {s.javContext(O);}, [s, O]);@@ -39663,26 +39585,26 @@ function pme(e) {}, [e.layout, O]), A = {jav: e.jav,seed: e.seed- }, j = (0, B.useCallback)((e, r) => oN(t, n, i, A, e, r), [D]), [M, N] = (0, B.useState)({}), P = g.set, ee = M[P] || "", F = OS({- ...lN(t, n, P, ee),+ }, j = (0, B.useCallback)((e, r) => cN(t, n, i, A, e, r), [D]), [M, N] = (0, B.useState)({}), P = g.set, ee = M[P] || "", F = kS({+ ...dN(t, n, P, ee),enabled: S === "photos"- }), I = F.data?.pages[0], te = yP(JSON.stringify(rN(t, n, P, ee))), ne = (0, B.useMemo)(() => {+ }), I = F.data?.pages[0], te = yP(JSON.stringify(aN(t, n, P, ee))), ne = (0, B.useMemo)(() => {let e = F.data?.pages;if (!e?.[0] || e[0].error) return null;let t = e[0];return {revision: te,- codeSets: t.id ? [] : uN(t),+ codeSets: t.id ? [] : fN(t),items: e.flatMap((e) => e.items || []),total: t.total || 0,hasMore: !!e[e.length - 1]?.has_more};- }, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = wS({- ...$M(d, o.feedRowHtml),+ }, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = TS({+ ...tN(d, o.feedRowHtml),enabled: !!d}), oe = (0, B.useRef)(e.feedRevision);(0, B.useEffect)(() => {- oe.current !== e.feedRevision && (oe.current = e.feedRevision, z.invalidateQueries({ queryKey: QM(d) }));+ oe.current !== e.feedRevision && (oe.current = e.feedRevision, z.invalidateQueries({ queryKey: eN(d) }));}, [d, e.feedRevision]);let se = !!E.data;(0, B.useEffect)(() => {@@ -39699,12 +39621,12 @@ function pme(e) {le.current = !1;}, []);let ue = (0, B.useCallback)(async () => {- await z.invalidateQueries({ queryKey: nN(t, n) }), await z.invalidateQueries({ queryKey: [+ await z.invalidateQueries({ queryKey: iN(t, n) }), await z.invalidateQueries({ queryKey: ["entity-items",t,n] });- }, [t, n]), L = DS({+ }, [t, n]), L = OS({mutationFn: (e) => ce("/api/entity-alias", {method: "POST",body: JSON.stringify({@@ -39714,14 +39636,14 @@ function pme(e) {})}),onSuccess: () => ue()- }), de = DS({ mutationFn: ({ from: e, to: n }) => ce("/api/entity-name", {+ }), de = OS({ mutationFn: ({ from: e, to: n }) => ce("/api/entity-name", {method: "POST",body: JSON.stringify({kind: t,name: e,canonical: n})- }) }), fe = DS({+ }) }), fe = OS({mutationFn: (e) => ce("/api/feeds/source", {method: "POST",body: JSON.stringify({@@ -39730,7 +39652,7 @@ function pme(e) {enabled: e})}),- onSuccess: (e, r) => z.setQueryData(nN(t, n), (e) => e && {+ onSuccess: (e, r) => z.setQueryData(iN(t, n), (e) => e && {...e,feed: {...e.feed,@@ -39778,10 +39700,10 @@ function pme(e) {let e = await ce("/api/feeds/check").catch(() => null);if (!e || e.status !== "running") break;}- le.current && await z.invalidateQueries({ queryKey: QM(d) });+ le.current && await z.invalidateQueries({ queryKey: eN(d) });})();},- feedAction: eN,+ feedAction: nN,avatarPicked: () => {s.avatarChanged(), ue().then(() => {le.current && w((e) => e + 1);@@ -39812,19 +39734,19 @@ function pme(e) {e === S && !g.set || (v(e === "people" ? "people" : "videos"), s.route(i, e === "photos" ? {media: "photos",set: 0- } : tN));+ } : rN));},setState: (e) => s.route({...i,state: e- }, tN),+ }, rN),toggleTag: s.toggleTag,clearFilter: s.clearFilter,clearAll: s.clearAll,setSort: s.setSort,reshuffle: async () => {if (S !== "photos") {- let r = s.reshuffleVideos(), a = sN({+ let r = s.reshuffleVideos(), a = lN({kind: t,name: n,filters: {@@ -39838,7 +39760,7 @@ function pme(e) {await z.fetchQuery(a).catch(() => null);return;}- let r = dme(), a = await z.fetchInfiniteQuery(lN(t, n, P, r)).catch(() => null);+ let r = ime(), a = await z.fetchInfiniteQuery(dN(t, n, P, r)).catch(() => null);!le.current || !a?.pages[0] || a.pages[0].error || N((e) => ({...e,[P]: r@@ -39871,7 +39793,7 @@ function pme(e) {k: e.k,label: ot(e.k),n: e.n,- selected: Efe(i.tag, e.k)+ selected: wfe(i.tag, e.k)})), _e = m || u.length ? {label: u.length ? "页面视图" : "媒体类型",people: u.length ? {@@ -39897,9 +39819,9 @@ function pme(e) {if (S === "people") xe = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;else if (S === "videos") {Se = !E.data;- let e = iN(i.tag).map((e) => ot(e));+ let e = oN(i.tag).map((e) => ot(e));xe = `视频 · ${(E.data?.work_total ?? E.data?.total ?? 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;- } else I && !I.error ? xe = ye ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : fme(I, uN(I).length) : Se = F.isPending;+ } else I && !I.error ? xe = ye ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : ame(I, fN(I).length) : Se = F.isPending;let Ce = (0, B.useMemo)(() => ({...e.card.actions,loadMorePhotos: async () => {@@ -39916,7 +39838,7 @@ function pme(e) {u]);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(nme, {+ /* @__PURE__ */ (0, V.jsx)(Ype, {kind: t,name: n,entity: r,@@ -39926,7 +39848,7 @@ function pme(e) {actions: pe,helpers: me}, C),- (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(Jce, {+ (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(qce, {kind: t,name: n,view: S,@@ -39942,12 +39864,12 @@ function pme(e) {actions: R,helpers: he}), c.filter),- (0, $f.createPortal)(S === "videos" && E.isError ? /* @__PURE__ */ (0, V.jsx)(pA, {+ (0, $f.createPortal)(S === "videos" && E.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {message: W(E.error),onRetry: () => {E.refetch();}- }) : /* @__PURE__ */ (0, V.jsx)(ipe, {+ }) : /* @__PURE__ */ (0, V.jsx)(npe, {kind: t,name: n,view: S,@@ -40000,20 +39922,20 @@ function bP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !}//#endregion//#region src/react/duplicates/duplicates-page.tsx-var mme = rA("play"), hme = rA("file-stack"), gme = xE({+var sme = iA("play"), cme = iA("file-stack"), lme = SE({padding: "none",radius: "surface",className: "mb-6 overflow-hidden dark:bg-background-primary-default"}), xP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", SP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", CP = "font-mono text-caption-1-regular leading-5 text-text-secondary", wP = () => {z.invalidateQueries({- queryKey: DA,+ queryKey: kA,exact: !0}), z.invalidateQueries({- queryKey: Xj,+ queryKey: Qj,exact: !0});};-function _me(e) {+function ume(e) {return e.identical ? /* @__PURE__ */ (0, V.jsx)("span", {className: `${SP} text-(--keep)`,children: "sha1 一致"@@ -40022,7 +39944,7 @@ function _me(e) {children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"});}-function vme({ file: e, openItem: t }) {+function dme({ file: e, openItem: t }) {let n = () => t(e.id);return /* @__PURE__ */ (0, V.jsxs)("div", {className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",@@ -40032,7 +39954,7 @@ function vme({ file: e, openItem: t }) {onClick: n,"aria-label": `预览 ${e.name}`,className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsx)(mme, {+ children: [/* @__PURE__ */ (0, V.jsx)(sme, {"aria-hidden": !0,className: "size-6"}), /* @__PURE__ */ (0, V.jsx)("img", {@@ -40066,7 +39988,7 @@ function vme({ file: e, openItem: t }) {}),/* @__PURE__ */ (0, V.jsxs)("span", {className: `${CP} flex min-w-0 items-center gap-1.5`,- children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: Se[e.location] || "database" }), /* @__PURE__ */ (0, V.jsx)("span", {+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] || "database" }), /* @__PURE__ */ (0, V.jsx)("span", {className: "whitespace-nowrap",children: se[e.location] || e.location || e.drive})]@@ -40088,19 +40010,19 @@ function vme({ file: e, openItem: t }) {]});}-function yme({ openItem: e, toast: t, failure: n }) {- let r = wS({- queryKey: DA,- queryFn: ({ signal: e }) => kA(e)- }), i = wS({+function fme({ openItem: e, toast: t, failure: n }) {+ let r = TS({+ queryKey: kA,+ queryFn: ({ signal: e }) => jA(e)+ }), i = TS({queryKey: tt,queryFn: ({ signal: e }) => rt(e)- }), [a, o] = (0, B.useState)(""), s = DS({- mutationFn: (e) => MA(e, "dispose"),+ }), [a, o] = (0, B.useState)(""), s = OS({+ mutationFn: (e) => PA(e, "dispose"),onSuccess: (e, r) => {wP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {try {- await MA(r, "restore");+ await PA(r, "restore");} catch (e) {n("撤销移入回收站", e);} finally {@@ -40118,12 +40040,12 @@ function yme({ openItem: e, toast: t, failure: n }) {children: r.error ? W(r.error) : "未取得重复文件列表,请刷新页面重试。"})});- let l = c.groups ?? [], u = kle(i.data), d = ({ groups: e, keep: t, key: n }) => {+ let l = c.groups ?? [], u = Dle(i.data), d = ({ groups: e, keep: t, key: n }) => {if (s.isPending) return;- let r = Ple(e, t);+ let r = Mle(e, t);r.length && Te({title: "移入回收站",- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${AA[t] ?? AA.largest}。文件共 ${pe(Fle(e, r))},记录可从回收站还原。`,+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${MA[t] ?? MA.largest}。文件共 ${pe(Nle(e, r))},记录可从回收站还原。`,confirmLabel: "移入回收站",onConfirm: () => (o(n), s.mutateAsync(r))});@@ -40136,10 +40058,10 @@ function yme({ openItem: e, toast: t, failure: n }) {figure: `${Number(c.total || 0).toLocaleString()} 组`,detail: `${c.files} 个文件 · 可回收 ${pe(c.reclaimable)}`}),- l.length ? /* @__PURE__ */ (0, V.jsxs)(Xoe, {+ l.length ? /* @__PURE__ */ (0, V.jsxs)(Yoe, {title: "批量保留",children: [- /* @__PURE__ */ (0, V.jsx)(dD, {+ /* @__PURE__ */ (0, V.jsx)(fD, {busy: a === "all:largest",onPress: () => d({groups: l,@@ -40148,7 +40070,7 @@ function yme({ openItem: e, toast: t, failure: n }) {}),children: "全部保留最大"}),- /* @__PURE__ */ (0, V.jsx)(dD, {+ /* @__PURE__ */ (0, V.jsx)(fD, {busy: a === "all:longest",onPress: () => d({groups: l,@@ -40157,7 +40079,7 @@ function yme({ openItem: e, toast: t, failure: n }) {}),children: "全部保留最长"}),- Nle(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(dD, {+ jle(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(fD, {busy: a === `all:${e}`,onPress: () => d({groups: l,@@ -40180,7 +40102,7 @@ function yme({ openItem: e, toast: t, failure: n }) {let r = [t], i = (e) => `${n}:${e}`;return /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": t.code,- className: gme,+ className: lme,children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",children: [@@ -40192,7 +40114,7 @@ function yme({ openItem: e, toast: t, failure: n }) {className: "font-mono text-caption-1-regular leading-5 text-text-primary",children: `${t.count} 个 · 可回收 ${pe(t.reclaimable)}`}),- _me(t),+ ume(t),t.cross_drive ? /* @__PURE__ */ (0, V.jsx)("span", {className: `${SP} text-text-secondary`,children: `跨盘 ${t.drives.join(" ")}`@@ -40222,7 +40144,7 @@ function yme({ openItem: e, toast: t, failure: n }) {}),children: "留最长"}),- jA(t.files, u).map((e) => /* @__PURE__ */ (0, V.jsx)(J, {+ NA(t.files, u).map((e) => /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",...f(i(e)),@@ -40247,13 +40169,13 @@ function yme({ openItem: e, toast: t, failure: n }) {]})]- }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(vme, {+ }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(dme, {file: t,openItem: e}, t.id)) })]}, `${t.code}-${n}`);- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- icon: hme,+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ icon: cme,title: "没有找到重复文件",children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"})@@ -40263,7 +40185,7 @@ function yme({ openItem: e, toast: t, failure: n }) {//#endregion//#region src/react/diagnostics/diagnostics.tsvar TP = ["diagnostics"], EP = (e) => G("/api/diagnostics", e);-async function bme(e) {+async function pme(e) {await z.fetchQuery({queryKey: TP,queryFn: () => EP(e),@@ -40278,7 +40200,7 @@ var DP = {failed: "需处理",unknown: "未取得",disabled: "未配置"-}, xme = [+}, mme = [["媒体库与挂载", ["media_mounts", "data_root"]],["数据库与迁移", ["database", "schema"]],["工具", ["ffmpeg"]],@@ -40290,7 +40212,7 @@ var DP = {]],["后台任务", ["tasks"]]], OP = (e) => new Date(e).toLocaleString();-function Sme({ name: e, check: t, navigate: n, configure: r }) {+function hme({ name: e, check: t, navigate: n, configure: r }) {let i = e === "security" ? "网络与访问" : e === "configured" ? "通用" : "媒体";return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2 border-b border-separator-border py-4 pr-3 last:border-b-0",@@ -40322,14 +40244,14 @@ function Sme({ name: e, check: t, navigate: n, configure: r }) {]});}-function Cme({ group: e, openItem: t, receipt: n }) {- let r = DE(), i = hM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");- return /* @__PURE__ */ (0, V.jsx)(HE, {+function gme({ group: e, openItem: t, receipt: n }) {+ let r = OE(), i = _M(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");+ return /* @__PURE__ */ (0, V.jsx)(UE, {summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count} 项`}`,children: e.count === null ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "neutral",children: "清单未取得,请重新检查。"- }) : e.items.length ? /* @__PURE__ */ (0, V.jsxs)(PE, { children: [+ }) : e.items.length ? /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center justify-between gap-2",children: [e.truncated ? /* @__PURE__ */ (0, V.jsxs)("span", {@@ -40364,20 +40286,20 @@ function Cme({ group: e, openItem: t, receipt: n }) {}) }, e.id))})})- ] }) : /* @__PURE__ */ (0, V.jsx)(SE, {- icon: lae,+ ] }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ icon: cae,title: "清单为空",shell: "plain",children: "没有需要处理的作品。"})});}-function wme(e) {- let t = wS({+function _me(e) {+ let t = TS({queryKey: TP,queryFn: ({ signal: e }) => EP(e),staleTime: 1e4- }), n = DE(), [r, i] = (0, B.useState)(""), a = () => void n.run("refresh", async () => {+ }), n = OE(), [r, i] = (0, B.useState)(""), a = () => void n.run("refresh", async () => {let e = await t.refetch();if (e.error) throw e.error;return e.data;@@ -40398,27 +40320,27 @@ function wme(e) {tone: "error",children: r}) : null,- /* @__PURE__ */ (0, V.jsx)(ME, {+ /* @__PURE__ */ (0, V.jsx)(NE, {title: "库健康",- children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {+ children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {className: "text-body-2-regular text-text-secondary",children: ["处理记录 · ", OP(o.library.issue_at)]- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(Cme, {+ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(gme, {group: n,...e}, t))] })}),- xme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(ME, {+ mme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(NE, {title: t,- children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(Sme, {+ children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(hme, {name: t,check: o.checks[t],...e}, t) : null)}, t)),- /* @__PURE__ */ (0, V.jsx)(ME, {+ /* @__PURE__ */ (0, V.jsx)(NE, {title: "来源会话",- children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {+ children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, V.jsxs)("h3", {@@ -40433,10 +40355,10 @@ function wme(e) {className: "text-body-regular text-text-primary",children: e.reason}),- /* @__PURE__ */ (0, V.jsxs)(BE, { children: [/* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsxs)(VE, { children: [/* @__PURE__ */ (0, V.jsx)(HE, {term: "上次解析成功",children: e.last_success_at ? OP(e.last_success_at) : "未取得"- }), /* @__PURE__ */ (0, V.jsx)(VE, {+ }), /* @__PURE__ */ (0, V.jsx)(HE, {term: "冷却截止",children: e.cooldown_until ? OP(e.cooldown_until) : "未在冷却"})] })@@ -40466,15 +40388,15 @@ function wme(e) {}//#endregion//#region src/react/feed-new/feed-new-page.tsx-function Tme({ host: e, revision: t, helpers: n, actions: r }) {- let i = wS($M(null, n.feedRowHtml)), a = (0, B.useRef)(t);+function vme({ host: e, revision: t, helpers: n, actions: r }) {+ let i = TS(tN(null, n.feedRowHtml)), a = (0, B.useRef)(t);return (0, B.useEffect)(() => {- a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: QM(null) }));+ a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: eN(null) }));}, [t]), (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(oP, {feedNew: i.data ?? null,host: e,wire: n.wireFeedRow,- act: eN,+ act: nN,settled: r.settled}), e);}@@ -40488,7 +40410,7 @@ var kP = [["source", "来源名称"],["provider", "站点"],["status", "状态"]-], Eme = "checked", AP = {+], yme = "checked", AP = {checked: "desc",added: "desc",name: "asc",@@ -40496,9 +40418,9 @@ var kP = [source: "asc",provider: "asc",status: "asc"-}, Dme = (e) => kP.some(([t]) => t === e);+}, bme = (e) => kP.some(([t]) => t === e);function jP(e, t) {- let n = Dme(e) ? e : Eme;+ let n = bme(e) ? e : yme;return {sort: n,dir: t === "asc" || t === "desc" ? t : AP[n]@@ -40506,7 +40428,7 @@ function jP(e, t) {}//#endregion//#region src/react/follow-manage/follow-manage.ts-var MP = "/api/follow", NP = "/api/follow/credentials", PP = "/api/follow/check", FP = "/api/follow/source", IP = "/api/follow/resolve", Ome = "/api/follow/suggest", LP = "/api/follow/author-alias", kme = "/api/follow/credential", RP = "/api/follow/status", Ame = "/api/feeds", zP = "/api/feeds/source", jme = "/api/feeds/check", Mme = "/api/feeds/lookup", BP = ["follow-manage"], VP = ["follow-manage", "credentials"], Nme = ["follow-manage", "check"], Pme = ["follow-manage", "resolve"], HP = ["follow-manage", "feeds"], Fme = (e) => [+var MP = "/api/follow", NP = "/api/follow/credentials", PP = "/api/follow/check", FP = "/api/follow/source", IP = "/api/follow/resolve", xme = "/api/follow/suggest", LP = "/api/follow/author-alias", Sme = "/api/follow/credential", RP = "/api/follow/status", Cme = "/api/feeds", zP = "/api/feeds/source", wme = "/api/feeds/check", Tme = "/api/feeds/lookup", BP = ["follow-manage"], VP = ["follow-manage", "credentials"], Eme = ["follow-manage", "check"], Dme = ["follow-manage", "resolve"], HP = ["follow-manage", "feeds"], Ome = (e) => ["follow-manage","suggest",e@@ -40515,13 +40437,13 @@ var MP = "/api/follow", NP = "/api/follow/credentials", PP = "/api/follow/check"20,50,100-], Ime = Object.fromEntries(kP), GP = {+], kme = Object.fromEntries(kP), GP = {author: "name",source: "source",provider: "provider",status: "status",checked: "checked"-}, Lme = (e) => UP.some(([t]) => t === e), Rme = (e) => WP.includes(Number(e)) ? Number(e) : 20, zme = {+}, Ame = (e) => UP.some(([t]) => t === e), jme = (e) => WP.includes(Number(e)) ? Number(e) : 20, Mme = {checked: ["从近到远", "从远到近"],added: ["从近到远", "从远到近"],name: ["倒序", "正序"],@@ -40529,12 +40451,12 @@ var MP = "/api/follow", NP = "/api/follow/credentials", PP = "/api/follow/check"source: ["倒序", "正序"],provider: ["倒序", "正序"],status: ["倒序", "正序"]-}, Bme = (e, t) => `按${Ime[e]}${zme[e][t === "asc" ? 0 : 1]}排序`;+}, Nme = (e, t) => `按${kme[e]}${Mme[e][t === "asc" ? 0 : 1]}排序`;function KP(e) {let t = e.last_status;return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;}-function Vme(e) {+function Pme(e) {return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";}var qP = (e) => e.last_status === "error" || e.last_status === "unauthorized", JP = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), YP = {@@ -40574,7 +40496,7 @@ function tF(e) {}return t.map((e) => n.get(e));}-function Hme(e, t, n, r = []) {+function Fme(e, t, n, r = []) {let i = tF(e), a = n === AP[t] ? 1 : -1, o = (e) => QP(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = YP[t];if (c) {for (let e of i) e.sort((e, t) => a * c(e, t));@@ -40583,7 +40505,7 @@ function Hme(e, t, n, r = []) {let l = (e) => Math.max(...e.map((e) => XP(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => XP(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 Ume(e, t, n, r = []) {+function Ime(e, t, n, r = []) {let i = e.flatMap((e) => {let t = QP(e, r);return e.map((n) => ({@@ -40599,7 +40521,7 @@ function Ume(e, t, n, r = []) {return i;}function nF(e, t, n) {- let r = XA(e, t), i = ZA(n, r), a = (i - 1) * t;+ let r = QA(e, t), i = $A(n, r), a = (i - 1) * t;return {page: i,pages: r,@@ -40608,7 +40530,7 @@ function nF(e, t, n) {end: Math.min(a + t, e)};}-function Wme(e, t) {+function Lme(e, t) {let n = new Set(t.map((e) => e.id));return new Set([...e].filter((e) => n.has(e)));}@@ -40624,10 +40546,10 @@ function iF(e, t, n) {for (let e of t) n ? r.add(e) : r.delete(e);return r;}-var aF = (e) => G(`${MP}?summary=1`, e), oF = (e) => G(NP, e), Gme = (e) => G(PP, e), Kme = (e) => G(IP, e), qme = (e, t) => G(`${Ome}?q=${encodeURIComponent(e)}`, t), sF = (e) => K(PP, {+var aF = (e) => G(`${MP}?summary=1`, e), oF = (e) => G(NP, e), Rme = (e) => G(PP, e), zme = (e) => G(IP, e), Bme = (e, t) => G(`${xme}?q=${encodeURIComponent(e)}`, t), sF = (e) => K(PP, {...e?.length ? { sources: e } : {},background: !0-}), Jme = (e) => K(IP, {+}), Vme = (e) => K(IP, {lines: e,background: !0}), cF = (e, t) => K(FP, {@@ -40637,7 +40559,7 @@ var aF = (e) => G(`${MP}?summary=1`, e), oF = (e) => G(NP, e), Gme = (e) => G(PP}), lF = (e) => K(FP, {action: "remove",id: e-}), Yme = (e) => K(FP, {+}), Hme = (e) => K(FP, {action: "add",url: e.url,label: e.label,@@ -40648,18 +40570,18 @@ var aF = (e) => G(`${MP}?summary=1`, e), oF = (e) => G(NP, e), Gme = (e) => G(PPaction: "add",canonical: e,alias: t-}), Xme = (e) => K(LP, {+}), Ume = (e) => K(LP, {action: "remove",alias: e-}), Zme = (e, t) => K(kme, {+}), Wme = (e, t) => K(Sme, {provider: e,values: t-}), Qme = (e, t) => K(RP, {+}), Gme = (e, t) => K(RP, {item: e,to: t-}), $me = () => G(`${MP}?status=new&limit=1000`);+}), Kme = () => G(`${MP}?status=new&limit=1000`);async function dF(e) {- let t = await G(Ame, e);+ let t = await G(Cme, e);if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");return t;}@@ -40670,12 +40592,12 @@ var fF = (e, t, n) => K(zP, {}, "POST", n), pF = (e, t) => K(zP, {action: "remove",id: e-}, "POST", t), mF = (e, t) => K(jme, t?.length ? { sources: t } : { all: !0 }, "POST", e), ehe = (e, t) => G(`${Mme}?q=${encodeURIComponent(e)}`, t), the = (e, t, n) => K(zP, {+}, "POST", t), mF = (e, t) => K(wme, t?.length ? { sources: t } : { all: !0 }, "POST", e), qme = (e, t) => G(`${Tme}?q=${encodeURIComponent(e)}`, t), Jme = (e, t, n) => K(zP, {action: "follow-name",name: e,ids: t}, "POST", n);-async function nhe(e, t = "") {+async function Yme(e, t = "") {await Promise.all([z.fetchQuery({queryKey: BP,@@ -40711,13 +40633,13 @@ var _F = () => z.invalidateQueries({queryKey: BP,exact: !0});-function rhe(e) {+function Xme(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 ihe = (e) => (e?.results || []).filter((e) => !e.ok), ahe = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", vF = (e) => e.last_checked_at ? QA(e.last_checked_at) : "未检查", ohe = /* @__PURE__ */ new Set([+var Zme = (e) => (e?.results || []).filter((e) => !e.ok), Qme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", vF = (e) => e.last_checked_at ? ej(e.last_checked_at) : "未检查", $me = /* @__PURE__ */ new Set(["fanbox","patreon","subscribestar",@@ -40730,17 +40652,17 @@ var ihe = (e) => (e?.results || []).filter((e) => !e.ok), ahe = (e) => (e?.resul"gofile","f95zone","simpcity"-]), yF = (e) => ohe.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", she = {+]), yF = (e) => $me.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", ehe = {required: "需要",optional: "可选",none: "不需要",blocked: "接不进来"-}, bF = (e) => !!e.present && !e.missing.length, che = [+}, bF = (e) => !!e.present && !e.missing.length, the = [["", "全部"],["new", "未看"],["saved", "已保存"],["ignored", "已忽略"]-], lhe = [+], nhe = [["new", "更新时间"],["hot", "热度"],["dur", "时长"]@@ -40751,7 +40673,7 @@ var ihe = (e) => (e?.results || []).filter((e) => !e.ok), ahe = (e) => (e?.resul};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.durMin ? `&dur_min=${e.durMin}` : "") + (e.durMax ? `&dur_max=${e.durMax}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);+ 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}`);}var CF = 18e5;function wF(e, t) {@@ -40764,12 +40686,12 @@ function wF(e, t) {queryFn: ({ pageParam: t, signal: n }) => G(SF(e, t), n),initialPageParam: 0,getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,- placeholderData: kS.keepPreviousData,+ placeholderData: AS.keepPreviousData,gcTime: CF};}var TF = ["follow-feed", "credentials"], EF = (e) => G(NP, e).catch(() => ({ providers: [] }));-async function uhe(e, t) {+async function rhe(e, t) {let n = wF(e.view, e.revision);z.removeQueries({queryKey: TF,@@ -40810,7 +40732,7 @@ function kF(e) {...e.duplicates].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));}-function dhe(e) {+function ihe(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;@@ -40828,7 +40750,7 @@ function dhe(e) {}return null;}-function fhe(e) {+function ahe(e) {z.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)@@ -40848,7 +40770,7 @@ function fhe(e) {}))});}-function phe(e, t) {+function ohe(e, t) {z.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)@@ -40879,7 +40801,7 @@ var FF = {image: "张图片",mixed: "个媒体"};-function mhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {+function she({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${FF[s] || FF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];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 {@@ -40889,7 +40811,7 @@ function mhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: rfaces: d.length > 1 ? d.slice(0, i) : []};}-function hhe(e) {+function che(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);@@ -40904,7 +40826,7 @@ function IF(e, t, n) {dir: "desc"};}-function ghe(e, t, n, r) {+function lhe(e, t, n, r) {let i = IF(e, n, r);if (!i) return "";let a = xF[i.sort];@@ -40940,7 +40862,7 @@ function LF(e, t, n, r) {})};}-function _he(e, t) {+function uhe(e, t) {let n = [];return e.author && n.push({kind: "创作者",@@ -40960,7 +40882,7 @@ function _he(e, t) {label: e})), n;}-function vhe(e, t) {+function dhe(e, t) {return t.kind === "创作者" ? {...e,author: ""@@ -40975,7 +40897,7 @@ function vhe(e, t) {tags: e.tags.filter((e) => e !== t.key)};}-function yhe(e, t) {+function fhe(e, t) {for (let n of e) {let e = n.primary?.tag_types?.[t];if (e) return e;@@ -40984,7 +40906,7 @@ function yhe(e, t) {}//#endregion//#region src/sidebar.ts-var bhe = [+var phe = ["","follow","jav",@@ -40993,7 +40915,7 @@ var bhe = ["studios","flagged","manage"-], xhe = [+], mhe = ["playlists","immerse","stats",@@ -41003,8 +40925,8 @@ var bhe = ["follow-manage","quality"];-[...bhe, ...xhe];-function She(e) {+[...phe, ...mhe];+function hhe(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);@@ -41062,7 +40984,7 @@ function KF(e, t) {let n = RF(e.media_error);return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";}-var qF = (e) => e.published_at ? QA(e.published_at) : "时间未取得", JF = /* @__PURE__ */ new Set(), YF = [], XF = null;+var qF = (e) => e.published_at ? ej(e.published_at) : "时间未取得", JF = /* @__PURE__ */ new Set(), YF = [], XF = null;function ZF() {if (XF = null, !YF.length) return;let e = YF.splice(0, 200);@@ -41071,7 +40993,7 @@ function ZF() {body: JSON.stringify({ entries: e })}).catch(() => {}), YF.length && (XF = setTimeout(ZF, 800));}-function Che(e, t, n, r) {+function ghe(e, t, n, r) {let i = `${e}:${t ?? ""}`;JF.has(i) || (JF.add(i), YF.push(t === null ? {item: e,@@ -41086,11 +41008,11 @@ function Che(e, t, n, r) {}//#endregion//#region src/react/follow-feed/follow-card.tsx-var whe = (e) => Number(e) > 0;-function The(e) {+var _he = (e) => Number(e) > 0;+function vhe(e) {return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;}-function Ehe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {+function yhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {let [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(!1);return a ? null : /* @__PURE__ */ (0, V.jsx)("img", {src: s ? t : e,@@ -41108,8 +41030,8 @@ function Ehe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {} : void 0});}-function Dhe(e) {- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = NF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Che(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? PF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = mhe({+function bhe(e) {+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = NF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => ghe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? PF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = she({cover: p,coverFace: (f?.thumb_url ? f : u).face,stack: t.stack,@@ -41117,7 +41039,7 @@ function Dhe(e) {limit: 9}), S = (0, B.useRef)(x.faces);S.current = x.faces;- let C = yA({+ let C = bA({load: async () => S.current,canFlip: () => S.current.length > 1 && l.canFlip(),referrerPolicy: "no-referrer"@@ -41158,7 +41080,7 @@ function Dhe(e) {}), /* @__PURE__ */ (0, V.jsxs)("div", {"data-media-pic": "",children: [- p ? /* @__PURE__ */ (0, V.jsx)(Ehe, {+ p ? /* @__PURE__ */ (0, V.jsx)(yhe, {src: p,fallback: m,width: _?.width,@@ -41194,7 +41116,7 @@ function Dhe(e) {},dangerouslySetInnerHTML: { __html: R("check") }}),- whe(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {+ _he(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {"data-media-duration": "",children: fe(u.duration)}) : null,@@ -41287,7 +41209,7 @@ function Dhe(e) {}), /* @__PURE__ */ (0, V.jsx)("time", {dateTime: u.published_at || "",title: D,- children: The(D)+ children: vhe(D)})]}),E.credited ? /* @__PURE__ */ (0, V.jsx)("div", {@@ -41323,10 +41245,10 @@ function Dhe(e) {]});}-var Ohe = (0, B.memo)(Dhe), QF = () => /* @__PURE__ */ (0, V.jsx)("span", {+var xhe = (0, B.memo)(bhe), QF = () => /* @__PURE__ */ (0, V.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"-}), khe = rA("settings"), Ahe = rA("chevron-down"), jhe = rA("history"), Mhe = [[+}), She = iA("settings"), Che = iA("chevron-down"), whe = iA("history"), The = [["fixed","固定比例","layout-grid"@@ -41335,7 +41257,7 @@ var Ohe = (0, B.memo)(Dhe), QF = () => /* @__PURE__ */ (0, V.jsx)("span", {"瀑布流","columns-2"]];-function Nhe(e, t, n) {+function Ehe(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) => {@@ -41383,43 +41305,37 @@ function Nhe(e, t, n) {n]);}-function Phe(e) {- let { view: t, seed: n, revision: r, actions: i } = e, a = wF(t, r), o = OS(a), s = wS({+function Dhe(e) {+ let { view: t, seed: n, revision: r, actions: i } = e, a = wF(t, r), o = kS(a), s = TS({queryKey: TF,queryFn: ({ signal: e }) => EF(e)}), c = (0, B.useMemo)(() => DF(o.data), [o.data]), l = (0, B.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, B.useMemo)(() => ({sources: c?.sources || [],aliases: c?.author_aliases || [],credentials: l- }), [c, l]), d = Nhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => ({- tags: She(d.visible.flatMap(kF).map((e) => ({ tags: e.tags || [] }))),- providers: [...d.providers].map(([e, t]) => [- e,- t,- yF(e)- ]),- duration: !!c?.facets?.duration- }), [- d.visible,- d.providers,- c- ]);+ }), [c, l]), d = Ehe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => hhe(d.visible.flatMap(kF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);(0, B.useEffect)(() => {- p && i.loaded(m);+ if (!p) return;+ let e = !0;+ return queueMicrotask(() => {+ e && i.loaded(m);+ }), () => {+ e = !1;+ };}, [p,m,i]);- let h = Fhe(e, !!c);- if (!c) return o.isError ? /* @__PURE__ */ (0, V.jsx)(pA, {+ let h = Ohe(e, !!c);+ if (!c) return o.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {message: ye(o.error),onRetry: () => void o.refetch()}) : null;let g = (e) => i.route({...t,...e- }), _ = _he({+ }), _ = uhe({...t,author: d.author,provider: d.provider@@ -41444,7 +41360,7 @@ function Phe(e) {"data-follow-head-actions": "",children: [/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",- leadingIcon: khe,+ leadingIcon: She,"data-follow-manage": "",onClick: i.openManage,children: "管理关注"@@ -41461,20 +41377,20 @@ function Phe(e) {}) : null]})]}),- /* @__PURE__ */ (0, V.jsx)(Ihe, {+ /* @__PURE__ */ (0, V.jsx)(khe, {facets: d,pressed: d.author,context: u,props: e,onPick: (e) => g({ author: d.author === e ? "" : e })}),- /* @__PURE__ */ (0, V.jsx)(Lhe, {+ /* @__PURE__ */ (0, V.jsx)(Ahe, {rows: d.workRows,pressed: t.work,props: e,onPick: (e) => g({ work: t.work === e ? "" : e })}),- /* @__PURE__ */ (0, V.jsx)(Rhe, {+ /* @__PURE__ */ (0, V.jsx)(jhe, {facets: d,view: t,total: v,@@ -41482,23 +41398,21 @@ function Phe(e) {props: e,route: g}),- /* @__PURE__ */ (0, V.jsx)(zhe, {+ /* @__PURE__ */ (0, V.jsx)(Mhe, {conditions: _,- onDrop: (e) => i.route(vhe(t, e)),+ onDrop: (e) => i.route(dhe(t, e)),onClear: () => g({author: "",provider: "",work: "",- tags: [],- durMin: 0,- durMax: 0+ tags: []})}),- d.broken.length ? /* @__PURE__ */ (0, V.jsx)(Bhe, {+ d.broken.length ? /* @__PURE__ */ (0, V.jsx)(Nhe, {count: d.broken.length,onManage: i.openManage}) : null,- /* @__PURE__ */ (0, V.jsx)(Vhe, {+ /* @__PURE__ */ (0, V.jsx)(Phe, {pending: f,facets: d,data: c,@@ -41509,19 +41423,19 @@ function Phe(e) {"data-follow-pagination": "",children: [c.has_more ? /* @__PURE__ */ (0, V.jsx)("span", {"data-follow-page-action": "",- children: /* @__PURE__ */ (0, V.jsxs)(wA, {+ children: /* @__PURE__ */ (0, V.jsxs)(EA, {entity: !0,enabled: () => !h.busyRef.current,load: async () => {await o.fetchNextPage({ throwOnError: !0 });},- children: [/* @__PURE__ */ (0, V.jsx)(Ahe, { className: "size-3.5" }), "加载更多"]+ children: [/* @__PURE__ */ (0, V.jsx)(Che, { className: "size-3.5" }), "加载更多"]}, o.data?.pages.length)}) : null, y ? /* @__PURE__ */ (0, V.jsxs)("span", {"data-follow-page-action": "",children: [/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",- leadingIcon: h.olderBusy ? void 0 : jhe,+ leadingIcon: h.olderBusy ? void 0 : whe,"data-follow-older": "","aria-busy": h.busy || void 0,onClick: () => void h.start(!0),@@ -41531,14 +41445,14 @@ function Phe(e) {}), /* @__PURE__ */ (0, V.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"}), /* @__PURE__ */ (0, V.jsx)("span", {"data-follow-backfill": "",- children: hhe(d.sources)+ children: che(d.sources)})]}) : null]}) : null]})] });}-function Fhe(e, t) {+function Ohe(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@@ -41596,7 +41510,7 @@ function Fhe(e, t) {olderBusy: c === "older" || u && o};}-function Ihe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {+function khe({ 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);@@ -41622,7 +41536,7 @@ function Ihe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {})}) : null;}-function Lhe({ rows: e, pressed: t, props: n, onPick: r }) {+function Ahe({ rows: e, pressed: t, props: n, onPick: r }) {let i = (0, B.useRef)(null);return (0, B.useEffect)(() => {n.helpers.wireDrag(i.current);@@ -41643,13 +41557,13 @@ function Lhe({ rows: e, pressed: t, props: n, onPick: r }) {}, e[0]))}) : null;}-function Rhe({ 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 = fD(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = fD(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);+function jhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {+ let { helpers: o, actions: s } = i, c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = pD(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = pD(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);(0, B.useEffect)(() => {o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);}, [o]);let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";- return /* @__PURE__ */ (0, V.jsx)(lD, {+ return /* @__PURE__ */ (0, V.jsx)(uD, {label: "筛选与排序",topLabel: m ? "媒体与关注筛选" : "关注筛选",attrs: {@@ -41710,7 +41624,7 @@ function Rhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {"aria-label": "状态","data-entity-states": "",onPointerLeave: h.leave,- children: [che.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {+ children: [the.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-entity-state": e,"data-follow-filter": e,@@ -41737,10 +41651,10 @@ function Rhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {dangerouslySetInnerHTML: { __html: BF(t) }}, t)),_.length && e.tagRows.length ? /* @__PURE__ */ (0, V.jsx)(QF, {}) : null,- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(uD, {+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(dD, {"data-follow-tag": n,"data-entity-press": "",- "data-tag-cat": `r34-${yhe(e.groups, n)}`,+ "data-tag-cat": `r34-${fhe(e.groups, n)}`,pressed: t.tags.includes(n),onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),children: [ot(n), r ? /* @__PURE__ */ (0, V.jsx)("span", {@@ -41758,11 +41672,11 @@ function Rhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {}), /* @__PURE__ */ (0, V.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, V.jsx)(sA, { onPress: s.shuffle }),- y ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(oA, {+ /* @__PURE__ */ (0, V.jsx)(cA, { onPress: s.shuffle }),+ y ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(sA, {label: "图片布局",value: i.photoLayout,- options: Mhe,+ options: The,onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")}), /* @__PURE__ */ (0, V.jsxs)("button", {type: "button",@@ -41779,15 +41693,15 @@ function Rhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {dangerouslySetInnerHTML: { __html: R("captions-off") }})]})] }) : null,- lhe.map(([e, n]) => {- let r = t.sort === e, i = rA(t.dir === "asc" ? "arrow-up" : "arrow-down");+ nhe.map(([e, n]) => {+ let r = t.sort === e, i = iA(t.dir === "asc" ? "arrow-up" : "arrow-down");return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-entity-sort": e,"data-follow-sort": e,"data-entity-press": "","aria-pressed": r,- "aria-label": ghe(e, n, t.sort, t.dir) || void 0,+ "aria-label": lhe(e, n, t.sort, t.dir) || void 0,onClick: () => {let n = IF(e, t.sort, t.dir);n && a(n);@@ -41799,7 +41713,7 @@ function Rhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {})] })});}-function zhe({ conditions: e, onDrop: t, onClear: n }) {+function Mhe({ conditions: e, onDrop: t, onClear: n }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-entity-combo": "","data-follow-combo": "",@@ -41824,7 +41738,7 @@ function zhe({ conditions: e, onDrop: t, onClear: n }) {})] }) : null});}-function Bhe({ count: e, onManage: t }) {+function Nhe({ count: e, onManage: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-follow-broken": "",onClick: (e) => {@@ -41833,12 +41747,12 @@ function Bhe({ count: e, onManage: t }) {dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }});}-function Vhe({ pending: e, facets: t, data: n, context: r, props: i }) {- let { view: a, helpers: o } = i, s = a.media === "images", c = fA(e, () => o.listSkeletonHtml(a.media));+function Phe({ pending: e, facets: t, data: n, context: r, props: i }) {+ let { view: a, helpers: o } = i, s = a.media === "images", c = pA(e, () => o.listSkeletonHtml(a.media));return /* @__PURE__ */ (0, V.jsxs)("div", {"data-follow-list-body": "","data-grid-reveal": c.fading ? "" : void 0,- children: [c.layer, e ? null : /* @__PURE__ */ (0, V.jsx)(Hhe, {+ children: [c.layer, e ? null : /* @__PURE__ */ (0, V.jsx)(Fhe, {facets: t,data: n,context: r,@@ -41847,15 +41761,15 @@ function Vhe({ pending: e, facets: t, data: n, context: r, props: i }) {})]});}-function Hhe({ facets: e, data: t, context: n, props: r, images: i }) {- let { view: a, actions: o } = r, s = Ghe(r), c = i ? {+function Fhe({ facets: e, data: t, context: n, props: r, images: i }) {+ let { view: a, actions: o } = r, s = Rhe(r), c = i ? {"data-size": r.photoSize,"data-layout": r.photoLayout,"data-images-only": String(r.imagesOnly)} : {}, l;return l = e.visible.length ? e.visible.map((t) => {let i = e.byId.get(t.primary?.source_id), c = i?.author_key && e.authorSources.get(i.author_key) || [], l = t.primary.id;- return /* @__PURE__ */ (0, V.jsx)(Ohe, {+ return /* @__PURE__ */ (0, V.jsx)(xhe, {group: t,authorSources: c,media: a.media,@@ -41868,7 +41782,7 @@ function Hhe({ facets: e, data: t, context: n, props: r, images: i }) {onStatus: s.status,onSave: s.save}, `${l}:${a.media}`);- }) : /* @__PURE__ */ (0, V.jsx)(Uhe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {+ }) : /* @__PURE__ */ (0, V.jsx)(Ihe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {"data-follow-list": "","data-follow-wall": i ? "" : void 0,...c,@@ -41878,20 +41792,20 @@ function Hhe({ facets: e, data: t, context: n, props: r, images: i }) {function $F(e, t) {return NF(e, t.media).id;}-function Uhe({ data: e }) {- let t = (e.groups || []).length ? Oe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源、时长或标签后再试。") : (e.sources || []).length ? Oe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Oe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });+function Ihe({ data: e }) {+ let t = (e.groups || []).length ? Oe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? Oe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Oe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });return /* @__PURE__ */ (0, V.jsx)("div", {"data-follow-empty": "",className: "contents",dangerouslySetInnerHTML: { __html: t }});}-var Whe = {+var Lhe = {new: "已恢复未看",seen: "已标记已看",ignored: "已忽略"};-function Ghe(e) {+function Rhe(e) {let { view: t, revision: n, actions: r } = e, [i, a] = (0, B.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, B.useState)(() => /* @__PURE__ */ new Map()), c = wF(t, n).queryKey, l = (e, t, n) => n((n) => {let r = new Map(n);return t ? r.set(e, t) : r.delete(e), r;@@ -41908,13 +41822,13 @@ function Ghe(e) {...n.duplicates]) if (t.id === e) return t.status;return "new";- }, p = DS({+ }, p = OS({mutationFn: ({ id: e, to: t }) => K(RP, {item: e,to: t}),onSuccess: (e, { id: t, to: n, was: i }) => {- u(t, n), d(), r.toast(Whe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {+ u(t, n), d(), r.toast(Lhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {await K(RP, {item: t,to: i@@ -41925,7 +41839,7 @@ function Ghe(e) {l(t, ye(e), s), r.failure("更新关注状态", e);},onSettled: (e, t, { id: n }) => l(n, "", a)- }), m = DS({+ }), m = OS({mutationFn: (e) => K("/api/follow/save", { item: e }),onSuccess: (e, t) => {u(t, "saved"), d(), r.toast("已保存到账本");@@ -41991,10 +41905,10 @@ function tI({ group: e, name: t }) {}function nI({ source: e }) {let t = qP(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";- return /* @__PURE__ */ (0, V.jsx)(vE, {+ return /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: t,- children: Vme(e)+ children: Pme(e)});}function rI({ source: e }) {@@ -42009,11 +41923,11 @@ function rI({ source: e }) {}//#endregion//#region src/react/follow-manage/add-source.tsx-var iI = hE(cM, lM, "text-body-2-medium"), Khe = "粘贴来源链接,或输入创作者名、id…", qhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Jhe = "识别中…", Yhe = "站内没有查到来源", aI = (e, t) => `${e}:${t.url}`;-function Xhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {+var iI = gE(uM, dM, "text-body-2-medium"), zhe = "粘贴来源链接,或输入创作者名、id…", Bhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Vhe = "识别中…", Hhe = "站内没有查到来源", aI = (e, t) => `${e}:${t.url}`;+function Uhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {return (0, B.useEffect)(() => {t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });- }, [t, r]), /* @__PURE__ */ (0, V.jsxs)(QO, {+ }, [t, r]), /* @__PURE__ */ (0, V.jsxs)($O, {ref: t,triggerRef: e,isOpen: !0,@@ -42025,17 +41939,17 @@ function Xhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCplacement: "bottom start",offset: 4,"aria-label": "来源建议",- className: hE(sM, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),+ className: gE(lM, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),children: [i && !n.length ? /* @__PURE__ */ (0, V.jsx)("div", {className: "px-2 py-1.5",- children: /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在查找建议" })+ children: /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在查找建议" })}) : null, n.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, V.jsx)("div", {className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",children: e.group}), /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","aria-current": t === r ? "true" : void 0,- className: t === r ? hE(iI, "bg-background-secondary-default") : iI,+ className: t === r ? gE(iI, "bg-background-secondary-default") : iI,onMouseDown: (e) => e.preventDefault(),onClick: () => a(e.value),children: [@@ -42055,7 +41969,7 @@ function Xhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC})] }, `${e.group}-${e.value}`))]});}-function Zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {+function Whe({ 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);@@ -42063,20 +41977,20 @@ function Zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J, {ref: i,variant: "secondary",- leadingIcon: uae,+ leadingIcon: lae,"aria-haspopup": "dialog","aria-expanded": a,"aria-label": l,onClick: () => o(!0),children: l- }), /* @__PURE__ */ (0, V.jsx)(QO, {+ }), /* @__PURE__ */ (0, V.jsx)($O, {triggerRef: i,isOpen: a,onOpenChange: o,placement: "bottom end",offset: 4,- className: sM,- children: /* @__PURE__ */ (0, V.jsxs)(lk, {+ className: lM,+ children: /* @__PURE__ */ (0, V.jsxs)(uk, {"aria-label": "来源筛选",className: "flex w-64 flex-col gap-1 outline-none",children: [s.length ? /* @__PURE__ */ (0, V.jsxs)("div", {@@ -42092,11 +42006,11 @@ function Zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {onClick: () => n(new Set(s.map((e) => e.provider_label))),children: "全不选"})]- }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "暂无可用来源" }), s.map((e) => {+ }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "暂无可用来源" }), s.map((e) => {let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(AM, {+ children: [/* @__PURE__ */ (0, V.jsx)(MM, {isSelected: !t.has(e.provider_label),onChange: (t) => u(e.provider_label, t),children: /* @__PURE__ */ (0, V.jsxs)("span", {@@ -42117,7 +42031,7 @@ function Zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {})})] });}-function Qhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {+function Ghe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {if (e.kind === "error") return /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: e.line,@@ -42125,7 +42039,7 @@ function Qhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {});let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});return /* @__PURE__ */ (0, V.jsxs)("div", {- className: xE({+ className: SE({variant: "outlined",padding: "none",className: "flex flex-col gap-2 p-4"@@ -42137,7 +42051,7 @@ function Qhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {}),a.length ? a.map((e) => {let n = aI(t, e);- return /* @__PURE__ */ (0, V.jsx)(AM, {+ return /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: !e.known && !r.has(n),isDisabled: e.known,onChange: (e) => i(n, e),@@ -42160,22 +42074,22 @@ function Qhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {]})}, n);- }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: Yhe }),+ }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: Hhe }),(e.external_searches || []).map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [/* @__PURE__ */ (0, V.jsx)("small", {className: "text-caption-1-regular text-text-secondary",children: e.evidence- }), /* @__PURE__ */ (0, V.jsx)(zE, {+ }), /* @__PURE__ */ (0, V.jsx)(BE, {href: e.url,children: `${e.label}:${e.query}`})]}, e.url)),- o.length ? /* @__PURE__ */ (0, V.jsx)(IE, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null+ o.length ? /* @__PURE__ */ (0, V.jsx)(LE, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null]});}-function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {+function Khe({ 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();@@ -42186,19 +42100,19 @@ function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:let t = setTimeout(() => u(e), 250);return () => clearTimeout(t);}, [a]);- let D = wS({- queryKey: Fme(l),- queryFn: ({ signal: e }) => qme(l, e),+ let D = TS({+ queryKey: Ome(l),+ queryFn: ({ signal: e }) => Bme(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 } = EM({- queryKey: Pme,- queryFn: ({ signal: e }) => Kme(e),- start: (e) => Jme([e]),+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = OM({+ queryKey: Dme,+ queryFn: ({ signal: e }) => zme(e),+ start: (e) => Vme([e]),onStarted: () => S(/* @__PURE__ */ new Set()),onError: (e) => w(W(e)),onFinish: (e) => {@@ -42233,13 +42147,13 @@ function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:}, ne = j?.results || [], re = ne.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({candidate: e,key: aI(t, e)- })).filter((e) => !x.has(e.key))), ie = DS({+ })).filter((e) => !x.has(e.key))), ie = OS({mutationFn: async (e) => {let t = [], n = [];E(0);for (let r of e) {try {- let e = await Yme(r.candidate);+ let e = await Hme(r.candidate);n.push(e.source);} catch (e) {t.push(`${r.candidate.label}:${W(e)}`);@@ -42266,7 +42180,7 @@ function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:onError: (e) => w(W(e))}), ae = e.suggestions || [], oe = !s.includes("/");return /* @__PURE__ */ (0, V.jsxs)("div", {- className: xE({+ className: SE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -42286,15 +42200,15 @@ function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:let t = e.relatedTarget;!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);},- children: [/* @__PURE__ */ (0, V.jsx)(HM, {+ children: [/* @__PURE__ */ (0, V.jsx)(WM, {"aria-label": "来源链接、名字或 id",- placeholder: Khe,+ placeholder: zhe,value: a,- leadingIcon: CT,+ leadingIcon: wT,isDisabled: n,onChange: o,onKeyDown: te- }), F ? /* @__PURE__ */ (0, V.jsx)(Xhe, {+ }), F ? /* @__PURE__ */ (0, V.jsx)(Uhe, {field: _,menu: v,options: O,@@ -42304,7 +42218,7 @@ function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:onClose: I}) : null]}),- /* @__PURE__ */ (0, V.jsx)(Zhe, {+ /* @__PURE__ */ (0, V.jsx)(Whe, {credentials: t,hidden: y,onHidden: b,@@ -42322,9 +42236,9 @@ function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:/* @__PURE__ */ (0, V.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-3 empty:hidden",- children: [A || M.isPending ? /* @__PURE__ */ (0, V.jsx)(yM, {+ children: [A || M.isPending ? /* @__PURE__ */ (0, V.jsx)(xM, {embedded: !0,- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? qhe : Jhe),+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Bhe : Vhe),value: k?.checked,total: k?.total}) : null, C ? /* @__PURE__ */ (0, V.jsx)(Y, {@@ -42336,8 +42250,8 @@ function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:ne.length ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)(RE, { children: "查找结果" }),- ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Qhe, {+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "查找结果" }),+ ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Ghe, {row: e,at: t,hidden: y,@@ -42392,8 +42306,8 @@ function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:}//#endregion//#region src/react/follow-manage/alias-manager.tsx-var ege = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, oI = (e) => e.alias;-function tge(e, t, n) {+var qhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, oI = (e) => e.alias;+function Jhe(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) : [];}@@ -42401,7 +42315,7 @@ function sI({ sources: e, name: t, canonicalKey: n }) {return /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex items-center gap-2",children: [/* @__PURE__ */ (0, V.jsx)(tI, {- group: tge(e, t, n),+ group: Jhe(e, t, n),name: t}), /* @__PURE__ */ (0, V.jsx)("b", {className: "text-body-medium",@@ -42409,8 +42323,8 @@ function sI({ sources: e, name: t, canonicalKey: n }) {})]});}-function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {- let [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), p = DS({+function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {+ let [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), p = OS({mutationFn: async (e) => {let t = 0;for (let n of e) {@@ -42430,14 +42344,14 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ic(""), o(/* @__PURE__ */ new Set()), _F(), i(`已合并 ${e.done} 组创作者别名`);},onError: (e) => c(W(e))- }), m = DS({+ }), m = OS({mutationFn: (e) => uF(e.canonical, e.alias),onSuccess: () => {c(""), u(""), f(""), _F(), i("已保存创作者别名");},onError: (e) => c(W(e))- }), h = DS({- mutationFn: (e) => Xme(e),+ }), h = OS({+ mutationFn: (e) => Ume(e),onSuccess: () => {c(""), _F(), i("已移除创作者别名");},@@ -42451,7 +42365,7 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i});}, _ = t.filter((e) => a.has(oI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);return /* @__PURE__ */ (0, V.jsxs)("div", {- className: xE({+ className: SE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -42462,10 +42376,10 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {+ children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {"aria-label": "规范创作者名",placeholder: "规范创作者名",value: l,@@ -42473,7 +42387,7 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iisDisabled: r,className: "w-56"}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {"aria-label": "平台别名",placeholder: "平台别名",value: d,@@ -42494,13 +42408,13 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i]})]}),- s ? /* @__PURE__ */ (0, V.jsx)(LE, { children: s }) : null,+ s ? /* @__PURE__ */ (0, V.jsx)(RE, { children: s }) : null,t.length ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(RE, { children: "待合并" }),+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "待合并" }),/* @__PURE__ */ (0, V.jsx)("span", {className: "mr-auto text-body-2-regular text-text-secondary",children: `${t.length} 组`@@ -42522,13 +42436,13 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ichildren: `全部合并(${t.length})`})]- }), /* @__PURE__ */ (0, V.jsx)(NM, { children: /* @__PURE__ */ (0, V.jsxs)(jM, {+ }), /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {"aria-label": "待合并创作者别名",size: "sm",- children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [- /* @__PURE__ */ (0, V.jsx)(Pk, {+ children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "select",- children: /* @__PURE__ */ (0, V.jsx)(AM, {+ children: /* @__PURE__ */ (0, V.jsx)(MM, {slot: null,isSelected: v,isIndeterminate: _.length > 0 && !v,@@ -42536,30 +42450,30 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ionChange: (e) => o(e ? new Set(t.map(oI)) : /* @__PURE__ */ new Set())})}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "canonical",children: "规范创作者"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "alias",isRowHeader: !0,children: "平台别名"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "evidence",children: "依据"}),- /* @__PURE__ */ (0, V.jsx)(Pk, {+ /* @__PURE__ */ (0, V.jsx)(Fk, {id: "actions",children: "操作"})- ] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: t.map((e) => {+ ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: t.map((e) => {let t = oI(e);- return /* @__PURE__ */ (0, V.jsxs)(zk, {+ return /* @__PURE__ */ (0, V.jsxs)(Bk, {id: t,"data-board-selected": a.has(t) || void 0,children: [- /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(AM, {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {slot: null,isSelected: a.has(t),"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,@@ -42568,16 +42482,16 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ie ? n.add(t) : n.delete(t), o(n);}}) }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {sources: n,name: e.canonical}) }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.alias }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.alias }),+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: e.evidence}) }),- /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",disabled: r,@@ -42594,27 +42508,27 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iclassName: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {+ children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: `${e.length} 组`})]- }), e.length ? /* @__PURE__ */ (0, V.jsx)(NM, { children: /* @__PURE__ */ (0, V.jsxs)(jM, {+ }), e.length ? /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {"aria-label": "已保存创作者别名",size: "sm",- children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [/* @__PURE__ */ (0, V.jsx)(Pk, {+ children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [/* @__PURE__ */ (0, V.jsx)(Fk, {id: "canonical",isRowHeader: !0,children: "规范创作者"- }), /* @__PURE__ */ (0, V.jsx)(Pk, {+ }), /* @__PURE__ */ (0, V.jsx)(Fk, {id: "aliases",children: "平台别名"- })] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(zk, {+ })] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(Bk, {id: e.canonical_key,- children: [/* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {+ children: [/* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {sources: n,name: e.canonical_name,canonicalKey: e.canonical_key- }) }), /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {+ }) }), /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {className: "flex flex-wrap items-center gap-1.5",children: e.aliases.map((e) => /* @__PURE__ */ (0, V.jsxs)("span", {className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",@@ -42622,13 +42536,13 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ivariant: "ghost",size: "xs",iconOnly: !0,- leadingIcon: dT,+ leadingIcon: fT,"aria-label": `移除别名 ${e.name}`,disabled: r,...X(h.isPending),onClick: () => void Te({title: "移除创作者别名",- body: ege(e.name),+ body: qhe(e.name),confirmLabel: "移除创作者别名",onConfirm: () => h.mutateAsync(e.name)})@@ -42636,9 +42550,9 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}, e.key))}) })]}, e.canonical_key)) })]- }) }) : /* @__PURE__ */ (0, V.jsx)(SE, {+ }) }) : /* @__PURE__ */ (0, V.jsx)(CE, {shell: "plain",- icon: TT,+ icon: ET,title: "还没有保存创作者别名",children: "填写规范创作者名和平台别名以添加。"})]@@ -42648,26 +42562,26 @@ function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}//#endregion//#region src/react/follow-manage/credentials.tsx-var rge = "这些账号信息存在哪里", ige = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", age = "将清除这个来源在本机和共享副本中的登录凭据。", oge = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";-function sge(e, t) {+var Xhe = "这些账号信息存在哪里", Zhe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Qhe = "将清除这个来源在本机和共享副本中的登录凭据。", $he = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";+function ege(e, t) {return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";}-function cge({ row: e }) {- if (bF(e)) return /* @__PURE__ */ (0, V.jsx)(vE, {+function tge({ row: e }) {+ if (bF(e)) return /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "lime",children: "已配置"});let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";- return /* @__PURE__ */ (0, V.jsx)(vE, {+ return /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: t,- children: she[e.requirement] || ""+ children: ehe[e.requirement] || ""});}-function lge({ row: e, readOnly: t, toast: n }) {- let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = bF(e), c = DS({- mutationFn: (t) => Zme(e.provider, t),+function nge({ row: e, readOnly: t, toast: n }) {+ let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = bF(e), c = OS({+ mutationFn: (t) => Wme(e.provider, t),onSuccess: (e, t) => {if (e.note) {o(e.note);@@ -42690,17 +42604,17 @@ function lge({ row: e, readOnly: t, toast: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(zE, {+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(BE, {href: e.where,children: "去取"})] }) : null] }),- e.howto ? /* @__PURE__ */ (0, V.jsx)(IE, { children: e.howto }) : null,+ e.howto ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.howto }) : null,/* @__PURE__ */ (0, V.jsx)("div", {className: "flex w-full flex-col gap-3",- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, V.jsx)(HM, {+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, V.jsx)(WM, {type: "password",label: n,- placeholder: sge(e, n),+ placeholder: ege(e, n),autoComplete: "off",spellCheck: "false",isDisabled: t,@@ -42728,7 +42642,7 @@ function lge({ row: e, readOnly: t, toast: n }) {...X(c.isPending),onClick: () => void Te({title: "清除来源凭据",- body: age,+ body: Qhe,confirmLabel: "清除来源凭据",danger: !0,onConfirm: () => c.mutateAsync({})@@ -42736,9 +42650,9 @@ function lge({ row: e, readOnly: t, toast: n }) {children: "清除"}) : null]}),- a ? /* @__PURE__ */ (0, V.jsx)(LE, { children: a }) : null,- (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(IE, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,- e.path ? /* @__PURE__ */ (0, V.jsx)(vM, {+ a ? /* @__PURE__ */ (0, V.jsx)(RE, { children: a }) : null,+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(LE, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,+ e.path ? /* @__PURE__ */ (0, V.jsx)(bM, {path: e.path,className: "font-mono text-caption-1-regular text-text-tertiary",onRevealed: n@@ -42746,12 +42660,12 @@ function lge({ row: e, readOnly: t, toast: n }) {e.world_readable ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "凭据文件权限过宽",- children: oge+ children: $he}) : null]});}-function uge({ row: e, readOnly: t, toast: n }) {+function rge({ row: e, readOnly: t, toast: n }) {let r = /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 items-center gap-2",children: [@@ -42763,8 +42677,8 @@ function uge({ row: e, readOnly: t, toast: n }) {className: "text-body-medium text-text-primary",children: e.provider_label}),- /* @__PURE__ */ (0, V.jsx)(cge, { row: e }),- e.missing.length ? /* @__PURE__ */ (0, V.jsx)(vE, {+ /* @__PURE__ */ (0, V.jsx)(tge, { row: e }),+ e.missing.length ? /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "rose",children: `缺 ${e.missing.join("、")}`@@ -42773,13 +42687,13 @@ function uge({ row: e, readOnly: t, toast: n }) {});return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsx)(IE, { children: e.why }) : null]+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.why }) : null]}) : /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",- children: [r, /* @__PURE__ */ (0, V.jsx)(HE, {+ children: [r, /* @__PURE__ */ (0, V.jsx)(UE, {summary: bF(e) ? "修改凭据" : "填写凭据",defaultOpen: e.requirement === "required" && !bF(e),- children: /* @__PURE__ */ (0, V.jsx)(lge, {+ children: /* @__PURE__ */ (0, V.jsx)(nge, {row: e,readOnly: t,toast: n@@ -42787,10 +42701,10 @@ function uge({ row: e, readOnly: t, toast: n }) {})]});}-function dge({ data: e, readOnly: t, toast: n }) {+function ige({ data: e, readOnly: t, toast: n }) {let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !bF(e));return r.length ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: xE({+ className: SE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -42825,12 +42739,12 @@ function dge({ data: e, readOnly: t, toast: n }) {className: "text-body-medium text-text-secondary",children: e.title}), /* @__PURE__ */ (0, V.jsx)("div", {- className: xE({+ className: SE({variant: "outlined",padding: "none",className: "flex flex-col overflow-hidden"}),- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(uge, {+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(rge, {row: e,readOnly: t,toast: n@@ -42842,13 +42756,13 @@ function dge({ data: e, readOnly: t, toast: n }) {children: [/* @__PURE__ */ (0, V.jsx)("b", {className: "text-body-medium text-text-primary",- children: rge+ children: Xhe}),/* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",- children: ige+ children: Zhe}),- /* @__PURE__ */ (0, V.jsx)(vM, {+ /* @__PURE__ */ (0, V.jsx)(bM, {path: e.root,prefix: "凭据文件在 ",className: "text-body-2-regular text-text-secondary",@@ -42857,9 +42771,9 @@ function dge({ data: e, readOnly: t, toast: n }) {]})]- }) : /* @__PURE__ */ (0, V.jsx)(SE, {+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {shell: "plain",- icon: hae,+ icon: mae,title: "没有可配置的来源",children: "已接入的站点及其凭据状态会显示在这里。"});@@ -42893,10 +42807,10 @@ function uI(e, t) {function dI(e) {return e instanceof Function;}-function fge(e) {+function age(e) {return Array.isArray(e) && e.every((e) => typeof e == "number");}-function pge(e, t) {+function oge(e, t) {let n = [], r = (e) => {e.forEach((e) => {n.push(e);@@ -42935,7 +42849,7 @@ function pI(e, t, n, r) {onChange: r};}-function mge(e, t, n, r) {+function sge(e, t, n, r) {let i = {id: `${t.id}_${n.id}`,row: t,@@ -42960,7 +42874,7 @@ function mge(e, t, n, r) {r.createCell == null || r.createCell(i, n, t, e);}, {}), i;}-function hge(e, t, n, r) {+function cge(e, t, n, r) {let i = {...e._getDefaultColumnDef(),...t@@ -43015,7 +42929,7 @@ function hI(e, t, n) {t.createHeader == null || t.createHeader(r, e);}), r;}-var gge = { createTable: (e) => {+var lge = { createTable: (e) => {e.getHeaderGroups = fI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),@@ -43113,7 +43027,7 @@ function gI(e, t, n, r) {});return c(o[0]?.headers ?? []), o;}-var _ge = (e, t, n, r, i, a, o) => {+var uge = (e, t, n, r, i, a, o) => {let s = {id: t,index: r,@@ -43134,7 +43048,7 @@ var _ge = (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: () => oge(s.subRows, (e) => e.subRows),getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,getParentRows: () => {let e = [], t = s;@@ -43145,7 +43059,7 @@ var _ge = (e, t, n, r, i, a, o) => {}return e.reverse();},- getAllCells: fI(() => [e.getAllLeafColumns()], (t) => t.map((t) => mge(e, s, t, t.id)), pI(e.options, "debugRows", "getAllCells")),+ getAllCells: fI(() => [e.getAllLeafColumns()], (t) => t.map((t) => sge(e, s, t, t.id)), pI(e.options, "debugRows", "getAllCells")),_getAllCellsByColumnId: fI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), pI(e.options, "debugRows", "getAllCellsByColumnId"))};for (let t = 0; t < e._features.length; t++) {@@ -43153,7 +43067,7 @@ var _ge = (e, t, n, r, i, a, o) => {n == null || n.createRow == null || n.createRow(s, e);}return s;-}, vge = { createColumn: (e, t) => {+}, dge = { 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();};@@ -43212,7 +43126,7 @@ var EI = {function DI(e) {return e == null || e === "";}-var yge = {+var fge = {getDefaultColumnDef: () => ({ filterFn: "auto" }),getInitialState: (e) => ({columnFilters: [],@@ -43296,7 +43210,7 @@ var kI = {median: (e, t) => {if (!t.length) return;let n = t.map((t) => t.getValue(e));- if (!fge(n)) return;+ if (!age(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];@@ -43304,7 +43218,7 @@ var kI = {unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,count: (e, t) => t.length-}, bge = {+}, pge = {getDefaultColumnDef: () => ({aggregatedCell: (e) => {var t;@@ -43356,12 +43270,12 @@ var kI = {};}};-function xge(e, t, n) {+function mge(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 Sge = {+var hge = {getInitialState: (e) => ({columnOrder: [],...e@@ -43391,13 +43305,13 @@ var Sge = {}i = [...i, ...n];}- return xge(i, t, n);+ return mge(i, t, n);}, pI(e.options, "debugTable", "_getOrderColumnsFn"));}}, AI = () => ({left: [],right: []-}), Cge = {+}), gge = {getInitialState: (e) => ({columnPinning: AI(),...e@@ -43455,7 +43369,7 @@ var Sge = {}, pI(e.options, "debugColumns", "getCenterLeafColumns"));}};-function wge(e) {+function _ge(e) {return e || (typeof document < "u" ? document : null);}var jI = {@@ -43469,7 +43383,7 @@ var jI = {deltaPercentage: null,isResizingColumn: !1,columnSizingStart: []-}), Tge = {+}), vge = {getDefaultColumnDef: () => jI,getInitialState: (e) => ({columnSizing: {},@@ -43542,7 +43456,7 @@ var jI = {deltaPercentage: null,columnSizingStart: []}));- }, p = wge(n), m = {+ }, p = _ge(n), m = {moveHandler: (e) => d(e.clientX),upHandler: (e) => {p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);@@ -43552,7 +43466,7 @@ var jI = {upHandler: (e) => {p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);}- }, g = Ege() ? { passive: !1 } : !1;+ }, g = yge() ? { passive: !1 } : !1;PI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({...e,startOffset: c,@@ -43573,7 +43487,7 @@ var jI = {}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;}}, NI = null;-function Ege() {+function yge() {if (typeof NI == "boolean") return NI;let e = !1;try {@@ -43589,7 +43503,7 @@ function Ege() {function PI(e) {return e.type === "touchstart";}-var Dge = {+var bge = {getInitialState: (e) => ({columnVisibility: {},...e@@ -43636,11 +43550,11 @@ var Dge = {function FI(e, t) {return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();}-var Oge = { createTable: (e) => {+var xge = { 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();};-} }, kge = {+} }, Sge = {getInitialState: (e) => ({globalFilter: void 0,...e@@ -43667,7 +43581,7 @@ var Oge = { createTable: (e) => {e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);};}-}, Age = {+}, Cge = {getInitialState: (e) => ({expanded: {},...e@@ -43747,7 +43661,7 @@ var Oge = { createTable: (e) => {}, II = 0, LI = 10, RI = () => ({pageIndex: II,pageSize: LI-}), jge = {+}), wge = {getInitialState: (e) => ({...e,pagination: {@@ -43813,7 +43727,7 @@ var Oge = { createTable: (e) => {}, zI = () => ({top: [],bottom: []-}), Mge = {+}), Tge = {getInitialState: (e) => ({rowPinning: zI(),...e@@ -43875,7 +43789,7 @@ var Oge = { createTable: (e) => {return e.filter((e) => !r.has(e.id));}, pI(e.options, "debugRows", "getCenterRows"));}-}, Nge = {+}, Ege = {getInitialState: (e) => ({rowSelection: {},...e@@ -43992,10 +43906,10 @@ function UI(e, t, n) {}}), i ? "all" : a ? "some" : !1;}-var WI = /([0-9]+)/gm, Pge = (e, t, n) => qI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), Fge = (e, t, n) => qI(KI(e.getValue(n)), KI(t.getValue(n))), Ige = (e, t, n) => GI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), Lge = (e, t, n) => GI(KI(e.getValue(n)), KI(t.getValue(n))), Rge = (e, t, n) => {+var WI = /([0-9]+)/gm, Dge = (e, t, n) => qI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), Oge = (e, t, n) => qI(KI(e.getValue(n)), KI(t.getValue(n))), kge = (e, t, n) => GI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), Age = (e, t, n) => GI(KI(e.getValue(n)), KI(t.getValue(n))), jge = (e, t, n) => {let r = e.getValue(n), i = t.getValue(n);return r > i ? 1 : r < i ? -1 : 0;-}, zge = (e, t, n) => GI(e.getValue(n), t.getValue(n));+}, Mge = (e, t, n) => GI(e.getValue(n), t.getValue(n));function GI(e, t) {return e === t ? 0 : e > t ? 1 : -1;}@@ -44018,21 +43932,21 @@ function qI(e, t) {return n.length - r.length;}var JI = {- alphanumeric: Pge,- alphanumericCaseSensitive: Fge,- text: Ige,- textCaseSensitive: Lge,- datetime: Rge,- basic: zge-}, Bge = [+ alphanumeric: Dge,+ alphanumericCaseSensitive: Oge,+ text: kge,+ textCaseSensitive: Age,+ datetime: jge,+ basic: Mge+}, Nge = [+ lge,+ bge,+ hge,gge,- Dge,+ dge,+ fge,+ xge,Sge,- Cge,- vge,- yge,- Oge,- kge,{getInitialState: (e) => ({sorting: [],@@ -44094,15 +44008,15 @@ var JI = {}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());}},- bge,- Age,- jge,- Mge,- Nge,- Tge+ pge,+ Cge,+ wge,+ Tge,+ Ege,+ vge];-function Vge(e) {- let t = [...Bge, ...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 Pge(e) {+ let t = [...Nge, ...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 ?? {} };@@ -44159,7 +44073,7 @@ function Vge(e) {getAllColumns: fI(() => [n._getColumnDefs()], (e) => {let t = function(e, r, i) {return i === void 0 && (i = 0), e.map((e) => {- let a = hge(n, e, i, r), o = e;+ let a = cge(n, e, i, r), o = e;return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;});};@@ -44187,7 +44101,7 @@ function YI() {i === void 0 && (i = 0);let o = [];for (let c = 0; c < t.length; c++) {- let l = _ge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);+ let l = uge(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));@@ -44198,7 +44112,7 @@ function YI() {return n.rows = r(t), n;}, pI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));}-function Hge(e) {+function Fge(e) {let t = [], n = (e) => {var r;t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);@@ -44223,7 +44137,7 @@ function XI(e) {rows: a,flatRows: o,rowsById: s- } : Hge({+ } : Fge({rows: a,flatRows: o,rowsById: s@@ -44237,18 +44151,18 @@ function XI(e) {//#endregion//#region node_modules/@tanstack/react-table/build/lib/index.mjsfunction ZI(e, t) {- return e ? Uge(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;+ return e ? Ige(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;}-function Uge(e) {- return Wge(e) || typeof e == "function" || Gge(e);+function Ige(e) {+ return Lge(e) || typeof e == "function" || Rge(e);}-function Wge(e) {+function Lge(e) {return typeof e == "function" && (() => {let t = Object.getPrototypeOf(e);return t.prototype && t.prototype.isReactComponent;})();}-function Gge(e) {+function Rge(e) {return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);}function QI(e) {@@ -44257,7 +44171,7 @@ function QI(e) {onStateChange: () => {},renderFallbackValue: null,...e- }, [n] = B.useState(() => ({ current: Vge(t) })), [r, i] = B.useState(() => n.current.initialState);+ }, [n] = B.useState(() => ({ current: Pge(t) })), [r, i] = B.useState(() => n.current.initialState);return n.current.setOptions((t) => ({...t,...e,@@ -44272,7 +44186,7 @@ function QI(e) {}//#endregion//#region src/react/boardui/components/base/switch/switch.tsx-var Kge = gE({+var zge = _E({sm: {track: "h-4 w-7",trackRadius: {@@ -44334,23 +44248,23 @@ var Kge = gE({}}});-function qge({ state: e, size: t = "md", shape: n = "pill" }) {- let r = Kge[t];+function Bge({ state: e, size: t = "md", shape: n = "pill" }) {+ let r = zge[t];return /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,- className: hE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? hE("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),+ className: gE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? gE("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),children: /* @__PURE__ */ (0, V.jsx)("span", {- className: hE("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),- children: /* @__PURE__ */ (0, V.jsx)("span", { className: hE("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })+ className: gE("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),+ children: /* @__PURE__ */ (0, V.jsx)("span", { className: gE("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })})});}function $I({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {- return /* @__PURE__ */ (0, V.jsx)(ace, {+ return /* @__PURE__ */ (0, V.jsx)(ice, {ref: i,...a,- className: (t) => hE("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),- children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(qge, {+ className: (t) => gE("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),+ children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Bge, {state: e,size: n,shape: r@@ -44362,8 +44276,8 @@ function $I({ className: e, children: t, size: n = "md", shape: r = "pill", ref:}//#endregion//#region src/react/components/legacy-avatar.ts-var eL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Jge = "输入女优名,到 JavDB 找她的演员页";-function Yge(e, t) {+var eL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Vge = "输入女优名,到 JavDB 找她的演员页";+function Hge(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 {@@ -44382,10 +44296,10 @@ function Yge(e, t) {blocked: !1};}-function Xge({ card: e, picked: t, onPick: n }) {+function Uge({ card: e, picked: t, onPick: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(AM, {+ children: [/* @__PURE__ */ (0, V.jsx)(MM, {isSelected: t,onChange: n,children: /* @__PURE__ */ (0, V.jsxs)("span", {@@ -44395,7 +44309,7 @@ function Xge({ card: e, picked: t, onPick: n }) {className: "min-w-0 break-words",children: e.names.join("、")}),- e.record ? /* @__PURE__ */ (0, V.jsx)(vE, {+ e.record ? /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "neutral",children: e.record@@ -44406,16 +44320,16 @@ function Xge({ card: e, picked: t, onPick: n }) {}) : null]})- }), /* @__PURE__ */ (0, V.jsx)(zE, {+ }), /* @__PURE__ */ (0, V.jsx)(BE, {href: e.url,children: e.id})]});}-function Zge({ 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 = DE(), u = () => {+function Wge({ readOnly: e, toast: t, onAdded: n }) {+ let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(/* @__PURE__ */ new Set()), l = OE(), u = () => {let t = r.trim();- !t || e || l.run("lookup", (e) => ehe(t, e), (e) => {+ !t || e || l.run("lookup", (e) => qme(t, e), (e) => {o(e), c(new Set(e.suggested));});}, d = (e) => {@@ -44423,12 +44337,12 @@ function Zge({ readOnly: e, toast: t, onAdded: n }) {}, f = () => {o(null), c(/* @__PURE__ */ new Set()), l.setError("");}, p = () => {- a && l.run("follow", (e) => the(a.q, [...s], e), (e) => {+ a && l.run("follow", (e) => Jme(a.q, [...s], e), (e) => {t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();});- }, m = a ? Yge(a, s) : null;+ }, m = a ? Hge(a, s) : null;return /* @__PURE__ */ (0, V.jsxs)("div", {- className: xE({+ className: SE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -44441,11 +44355,11 @@ function Zge({ readOnly: e, toast: t, onAdded: n }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-64 grow",- children: /* @__PURE__ */ (0, V.jsx)(HM, {+ children: /* @__PURE__ */ (0, V.jsx)(WM, {"aria-label": "女优名",- placeholder: Jge,+ placeholder: Vge,value: r,- leadingIcon: CT,+ leadingIcon: wT,isDisabled: e,onChange: i,onKeyDown: d@@ -44466,16 +44380,16 @@ function Zge({ readOnly: e, toast: t, onAdded: n }) {a ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)(RE, { children: "JavDB 上的演员卡" }),- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Xge, {+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "JavDB 上的演员卡" }),+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Uge, {card: e,picked: s.has(e.id),onPick: (t) => c((n) => {let r = new Set(n);return t ? r.add(e.id) : r.delete(e.id), r;})- }, e.id)) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "JavDB 上没有搜到这个名字。" }),- a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(IE, {+ }, e.id)) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "JavDB 上没有搜到这个名字。" }),+ a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(LE, {role: "status",children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"}) : null,@@ -44502,8 +44416,8 @@ function Zge({ readOnly: e, toast: t, onAdded: n }) {}//#endregion//#region src/react/follow-manage/source-list.tsx-var Qge = Object.fromEntries(Object.entries(GP).map(([e, t]) => [t, e])), tL = 740;-function $ge() {+var Gge = Object.fromEntries(Object.entries(GP).map(([e, t]) => [t, e])), tL = 740;+function Kge() {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;@@ -44514,7 +44428,7 @@ function $ge() {}, []);return (0, B.useEffect)(() => () => n.current?.disconnect(), []), [r, e];}-var e_e = {+var qge = {select: "选择",author: "创作者",source: "来源",@@ -44537,7 +44451,7 @@ function nL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {}),/* @__PURE__ */ (0, V.jsx)("ul", {className: "flex flex-wrap items-center gap-1",- children: YA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {+ children: ZA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,className: "px-1 text-body-2-regular text-text-tertiary",children: "…"@@ -44560,15 +44474,15 @@ function nL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {]});}-function t_e({ source: e, selected: t, onToggle: n, handlers: r }) {+function Jge({ source: e, selected: t, onToggle: n, handlers: r }) {return /* @__PURE__ */ (0, V.jsxs)("div", {"data-selected": t || void 0,className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",onClick: (e) => {- MM(e, e.currentTarget) && n(!t);+ PM(e, e.currentTarget) && n(!t);},children: [- /* @__PURE__ */ (0, V.jsx)(AM, {+ /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: t,onChange: n,"aria-label": `选择 ${e.label}`@@ -44605,7 +44519,7 @@ function t_e({ source: e, selected: t, onToggle: n, handlers: r }) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: xT,+ leadingIcon: ST,"aria-label": `检查 ${e.label} 的更新`,disabled: !e.enabled || r.readOnly,...X(r.busy),@@ -44614,7 +44528,7 @@ function t_e({ source: e, selected: t, onToggle: n, handlers: r }) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: mT,+ leadingIcon: hT,"aria-label": `移除 ${e.label}`,disabled: r.readOnly,onClick: () => r.remove(e)@@ -44623,11 +44537,11 @@ function t_e({ source: e, selected: t, onToggle: n, handlers: r }) {]});}-function n_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {+function Yge({ 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(qP).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = rF(r, c);return /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": `${t} 的关注来源`,- className: xE({+ className: SE({variant: "raised",padding: "none",className: "flex flex-col overflow-hidden p-2"@@ -44649,7 +44563,7 @@ function n_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: xT,+ leadingIcon: ST,"aria-label": `检查 ${t} 的全部来源`,disabled: !l.length || i.readOnly,...X(i.busy),@@ -44667,7 +44581,7 @@ function n_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: uT,+ leadingIcon: dT,"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false","aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,onClick: () => o(!p.all),@@ -44678,7 +44592,7 @@ function n_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,size: "small","aria-expanded": n,"aria-controls": f,- leadingIcon: n ? lT : oT,+ leadingIcon: n ? uT : sT,"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,onClick: () => a(!n),children: n ? "收起" : "展开"@@ -44688,7 +44602,7 @@ function n_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, V.jsx)(t_e, {+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(Jge, {source: e,handlers: i,selected: r.has(e.id),@@ -44697,34 +44611,34 @@ function n_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,})]});}-function r_e(e) {- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = $ge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Hme(g, n, r, _), [+function Xge(e) {+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = Kge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Fme(g, n, r, _), [g,n,r,_- ]), E = (0, B.useMemo)(() => Ume(T, n, r, _), [+ ]), E = (0, B.useMemo)(() => Ime(T, n, r, _), [T,n,r,_- ]), { job: D, running: O, outcome: k, start: A } = EM({- queryKey: Nme,- queryFn: ({ signal: e }) => Gme(e),+ ]), { job: D, running: O, outcome: k, start: A } = OM({+ queryKey: Eme,+ queryFn: ({ signal: e }) => Rme(e),start: (e) => sF(e),onError: (e) => w(W(e)),onFinish: (e) => {- _F(), m(e.status === "failed" ? e.error || "检查失败" : rhe(e));+ _F(), m(e.status === "failed" ? e.error || "检查失败" : Xme(e));}}), j = (e) => {O || A.isPending || (w(""), A.mutate(e));- }, M = (e, t) => p(iF(s, [e], t)), N = (e, t) => p(iF(s, e, t)), P = DS({+ }, M = (e, t) => p(iF(s, [e], t)), N = (e, t) => p(iF(s, e, t)), P = OS({mutationFn: (e) => lF(e),onSuccess: (e, t) => {gF([t]), p(iF(s, [t], !1)), m("已取消关注来源");},onError: (e) => w(W(e))- }), ee = DS({+ }), ee = OS({mutationFn: (e) => cF(e.id, e.enabled),onSuccess: (e, t) => {hF(t.id, { enabled: t.enabled }), w("");@@ -44736,7 +44650,7 @@ function r_e(e) {confirmLabel: "取消关注来源",danger: !0,onConfirm: () => P.mutateAsync(e.id)- }), I = DS({+ }), I = OS({mutationFn: async (e) => {let t = await ge(e.ids, 4, async (t) => {e.action === "remove" ? await lF(t) : await cF(t, e.action === "enabled");@@ -44761,16 +44675,16 @@ function r_e(e) {m(`已${n} ${e.done.length} 个关注来源`);},onError: (e) => w(W(e))- }), te = DS({+ }), te = OS({mutationFn: async (e) => {- let t = ((await $me()).groups || []).flatMap((e) => [+ let t = ((await Kme()).groups || []).flatMap((e) => [e.primary,...e.variants,...e.duplicates]).filter((e) => e.status === "new").map((e) => e.id);return {ids: t,- failed: (await ge(t, 6, (t) => Qme(t, e))).filter((e) => !e.ok)+ failed: (await ge(t, 6, (t) => Gme(t, e))).filter((e) => !e.ok)};},onSuccess: (e) => {@@ -44799,12 +44713,12 @@ function r_e(e) {readOnly: c};let ie = re.current, ae = (0, B.useMemo)(() => {- let e = cI(), t = (e) => () => e_e[e] || e;+ let e = cI(), t = (e) => () => qge[e] || e;return [e.display({id: "select",header: t("select"),- cell: (e) => /* @__PURE__ */ (0, V.jsx)(AM, {+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(MM, {slot: null,isSelected: e.row.getIsSelected(),onChange: (t) => e.row.toggleSelected(t),@@ -44870,7 +44784,7 @@ function r_e(e) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: xT,+ leadingIcon: ST,"aria-label": `检查 ${e.row.original.source.label} 的更新`,disabled: !e.row.original.source.enabled || ie.readOnly,...X(ie.busy),@@ -44880,7 +44794,7 @@ function r_e(e) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: mT,+ leadingIcon: hT,"aria-label": `移除 ${e.row.original.source.label}`,disabled: ie.readOnly,onClick: () => re.current.remove(e.row.original.source)@@ -44890,7 +44804,7 @@ function r_e(e) {})];}, [ie]), oe = (0, B.useMemo)(() => {- let e = Qge[n];+ let e = Gge[n];return e ? [{id: e,desc: r === "desc"@@ -44928,9 +44842,9 @@ function r_e(e) {},getCoreRowModel: YI(),getPaginationRowModel: XI()- }), L = ue.getRowModel().rows, de = ce ? L.map((e) => e.original.source.id) : T.slice(le.start, le.end).flatMap((e) => e.map((e) => e.id)), fe = rF(s, de), pe = [...s], me = ihe(k), R = ahe(k), he = T.length > 0 && y.size >= T.length;+ }), L = ue.getRowModel().rows, de = ce ? L.map((e) => e.original.source.id) : T.slice(le.start, le.end).flatMap((e) => e.map((e) => e.id)), fe = rF(s, de), pe = [...s], me = Zme(k), R = Qme(k), he = T.length > 0 && y.size >= T.length;return g.length ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: xE({+ className: SE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -44949,7 +44863,7 @@ function r_e(e) {}),/* @__PURE__ */ (0, V.jsx)(J, {variant: "primary",- leadingIcon: xT,+ leadingIcon: ST,disabled: c,"aria-label": "检查全部",iconOnly: S,@@ -44964,20 +44878,20 @@ function r_e(e) {children: [/* @__PURE__ */ (0, V.jsx)(J, {variant: "ghost",iconOnly: !0,- leadingIcon: gae,+ leadingIcon: hae,"aria-label": UP[0][1],"aria-pressed": !ce,onClick: () => d("default")}), /* @__PURE__ */ (0, V.jsx)(J, {variant: "ghost",iconOnly: !0,- leadingIcon: yae,+ leadingIcon: vae,"aria-label": UP[1][1],"aria-pressed": ce,onClick: () => d("table")})]}),- /* @__PURE__ */ (0, V.jsx)(CM, {+ /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "关注列表排序",selectedKey: n,onSelectionChange: (e) => {@@ -44985,7 +44899,7 @@ function r_e(e) {let t = String(e);l(t, AP[t]);},- children: kP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: kP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e,children: t}, e))@@ -44993,14 +44907,14 @@ function r_e(e) {/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",iconOnly: !0,- leadingIcon: r === "asc" ? tae : eae,- "aria-label": Bme(n, r),+ leadingIcon: r === "asc" ? eae : $ie,+ "aria-label": Nme(n, r),onClick: () => l(n, r === "asc" ? "desc" : "asc")}),ce ? null : /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",iconOnly: S,- leadingIcon: he ? oT : lT,+ leadingIcon: he ? sT : uT,"aria-label": he ? "全部展开" : "全部收起",onClick: () => b(he ? /* @__PURE__ */ new Set() : new Set(T.map((e) => String(e[0].author_key || e[0].id)))),children: he ? "全部展开" : "全部收起"@@ -45011,7 +44925,7 @@ function r_e(e) {"aria-live": "polite",className: "flex flex-col gap-3 empty:hidden",children: [- O ? /* @__PURE__ */ (0, V.jsx)(yM, {+ O ? /* @__PURE__ */ (0, V.jsx)(xM, {embedded: !0,label: D?.message || (D?.total ? `${D.older ? "抓取历史" : "检查更新"}:已完成 ${D.checked || 0}/${D.total} 个来源` : "正在准备检查任务"),value: D?.checked,@@ -45037,7 +44951,7 @@ function r_e(e) {}) : null]}),- /* @__PURE__ */ (0, V.jsxs)(eS, {+ /* @__PURE__ */ (0, V.jsxs)(tS, {label: "关注来源批量操作",visible: pe.length > 0,count: `已选 ${pe.length} 个来源`,@@ -45097,10 +45011,10 @@ function r_e(e) {})]}),- ce ? /* @__PURE__ */ (0, V.jsx)(NM, {+ ce ? /* @__PURE__ */ (0, V.jsx)(FM, {follow: !0,onRowClick: (e) => M(Number(e), !s.has(Number(e))),- children: /* @__PURE__ */ (0, V.jsxs)(jM, {+ children: /* @__PURE__ */ (0, V.jsxs)(NM, {"aria-label": "关注来源",size: "sm",sortDescriptor: oe[0] ? {@@ -45111,9 +45025,9 @@ function r_e(e) {id: String(e.column),desc: e.direction === "descending"}]),- children: [/* @__PURE__ */ (0, V.jsx)(Nk, { children: ue.getHeaderGroups()[0].headers.map((e) => {+ children: [/* @__PURE__ */ (0, V.jsx)(Pk, { children: ue.getHeaderGroups()[0].headers.map((e) => {let t = e.column.id in GP, n = ZI(e.column.columnDef.header, e.getContext());- return /* @__PURE__ */ (0, V.jsx)(Pk, {+ return /* @__PURE__ */ (0, V.jsx)(Fk, {id: e.id,allowsSorting: t,isRowHeader: e.column.id === "source",@@ -45122,20 +45036,20 @@ function r_e(e) {children: [n, /* @__PURE__ */ (0, V.jsx)("span", {"data-sort-indicator": !0,"data-direction": e || void 0,- children: /* @__PURE__ */ (0, V.jsx)(Ode, {})+ children: /* @__PURE__ */ (0, V.jsx)(Ede, {})})]}) : /* @__PURE__ */ (0, V.jsx)(H_, { children: n })}, e.id);- }) }), /* @__PURE__ */ (0, V.jsx)(Ik, {+ }) }), /* @__PURE__ */ (0, V.jsx)(Lk, {renderEmptyState: () => "这一页没有来源",- children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(zk, {+ children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(Bk, {id: e.id,"data-follow-selected": e.getIsSelected() || void 0,- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Vk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))}, e.id))})]})- }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(AM, {+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(MM, {isSelected: fe.all,isIndeterminate: fe.some,onChange: (e) => N(de, e),@@ -45145,7 +45059,7 @@ function r_e(e) {className: "flex flex-col gap-3",children: T.slice(le.start, le.end).map((e) => {let t = String(e[0].author_key || e[0].id);- return /* @__PURE__ */ (0, V.jsx)(n_e, {+ return /* @__PURE__ */ (0, V.jsx)(Yge, {group: e,name: QP(e, _),handlers: ie,@@ -45167,14 +45081,14 @@ function r_e(e) {className: "text-body-2-regular text-text-secondary",children: `${le.start + 1}–${le.end} / ${le.total} ${ce ? "个来源" : "位创作者"}`}),- /* @__PURE__ */ (0, V.jsx)(CM, {+ /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "每页显示数量",size: "sm",selectedKey: String(o),onSelectionChange: (e) => {e !== null && ue.setPageSize(Number(e));},- children: WP.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: WP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {id: String(e),children: `每页 ${e} ${ce ? "条" : "位"}`}, e))@@ -45228,11 +45142,11 @@ function r_e(e) {]}) : null]- }) : /* @__PURE__ */ (0, V.jsx)(SE, {+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {shell: "plain",- icon: ST,+ icon: CT,title: "还没有关注来源",- actions: /* @__PURE__ */ (0, V.jsx)(bE, {+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {variant: "primary",size: "small",href: "/follow-manage?tab=add",@@ -45243,7 +45157,7 @@ function r_e(e) {}//#endregion//#region src/react/follow-manage/feed-sources.tsx-var i_e = {+var Zge = {select: "选择",name: "名称",kind: "类型",@@ -45253,33 +45167,33 @@ var i_e = {fetched: "上次拉取",fresh: "上次新增",actions: "操作"-}, a_e = /* @__PURE__ */ new Set(["select", "actions"]), rL = () => z.invalidateQueries({+}, Qge = /* @__PURE__ */ new Set(["select", "actions"]), rL = () => z.invalidateQueries({queryKey: HP,exact: !0-}), iL = (e) => e.name || e.url, o_e = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;-function s_e(e) {+}), iL = (e) => e.name || e.url, $ge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;+function e_e(e) {try {return new URL(e).hostname.replace(/^www\./, "");} catch {return e;}}-function c_e({ source: e }) {- return e.last_error ? /* @__PURE__ */ (0, V.jsx)(vE, {+function t_e({ source: e }) {+ return e.last_error ? /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "rose",children: "拉取失败"- }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(vE, {+ }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "lime",children: "正常"- }) : /* @__PURE__ */ (0, V.jsx)(vE, {+ }) : /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "neutral",children: "已暂停"});}-function l_e({ source: e }) {+function n_e({ source: e }) {let t = e.entity_id ? {id: e.entity_id,has_image: !!e.has_image,@@ -45292,8 +45206,8 @@ function l_e({ source: e }) {dangerouslySetInnerHTML: { __html: w(iL(e), t, null, "performer") }});}-var u_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";-function d_e(e) {+var r_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";+function i_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;@@ -45308,11 +45222,11 @@ function aL(e, t) {onConfirm: t});}-function f_e({ readOnly: e, toast: t }) {- let n = wS({+function a_e({ readOnly: e, toast: t }) {+ let n = TS({queryKey: HP,queryFn: ({ signal: e }) => dF(e)- }), r = DE(), 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 = nF(a.length, u, c);+ }), r = OE(), i = n.data, a = (0, B.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, B.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, B.useState)(1), [u, d] = (0, B.useState)(20), f = nF(a.length, u, c);(0, B.useEffect)(() => {l((e) => Math.min(e, f.pages));}, [f.pages]), (0, B.useEffect)(() => {@@ -45321,7 +45235,7 @@ function f_e({ readOnly: e, toast: t }) {return n.size === e.size ? e : n;});}, [a]);- let p = DS({+ let p = OS({mutationFn: async (e) => {let t = await ge(e.ids, 4, async (t) => {e.action === "remove" ? await pF(t) : await fF(t, e.action === "enabled");@@ -45339,7 +45253,7 @@ function f_e({ readOnly: e, toast: t }) {}},onError: (e) => r.setError(W(e))- }), m = (0, B.useMemo)(() => d_e(a), [a]), h = (0, B.useRef)({+ }), m = (0, B.useMemo)(() => i_e(a), [a]), h = (0, B.useRef)({readOnly: e,shared: m,busy: null,@@ -45358,12 +45272,12 @@ function f_e({ readOnly: e, toast: t }) {})};let g = (0, B.useMemo)(() => {- let e = cI(), t = (e) => () => i_e[e] || e;+ let e = cI(), t = (e) => () => Zge[e] || e;return [e.display({id: "select",header: t("select"),- cell: (e) => /* @__PURE__ */ (0, V.jsx)(AM, {+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(MM, {slot: null,isSelected: e.row.getIsSelected(),onChange: (t) => e.row.toggleSelected(t),@@ -45374,11 +45288,11 @@ function f_e({ readOnly: e, toast: t }) {id: "name",header: t("name"),cell: (e) => {- let t = u_e(e.row.original, h.current.shared);+ let t = r_e(e.row.original, h.current.shared);return /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",children: [- /* @__PURE__ */ (0, V.jsx)(l_e, { source: e.row.original }),+ /* @__PURE__ */ (0, V.jsx)(n_e, { source: e.row.original }),e.getValue(),t ? /* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",@@ -45406,15 +45320,15 @@ function f_e({ readOnly: e, toast: t }) {rel: "noreferrer noopener",title: "打开来源页面",className: "text-text-primary underline-offset-2 hover:underline",- children: s_e(e.getValue())+ children: e_e(e.getValue())})}),e.display({id: "status",header: t("status"),- cell: (e) => /* @__PURE__ */ (0, V.jsx)(c_e, { source: e.row.original })+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(t_e, { source: e.row.original })}),- e.accessor((e) => o_e(e.interval_minutes), {+ e.accessor((e) => $ge(e.interval_minutes), {id: "interval",header: t("interval"),cell: (e) => /* @__PURE__ */ (0, V.jsx)("span", {@@ -45422,7 +45336,7 @@ function f_e({ readOnly: e, toast: t }) {children: e.getValue()})}),- e.accessor((e) => e.last_fetched_at ? QA(e.last_fetched_at) : "还没拉过", {+ e.accessor((e) => e.last_fetched_at ? ej(e.last_fetched_at) : "还没拉过", {id: "fetched",header: t("fetched"),cell: (e) => /* @__PURE__ */ (0, V.jsx)("span", {@@ -45454,7 +45368,7 @@ function f_e({ readOnly: e, toast: t }) {variant: "secondary",size: "xs",iconOnly: !0,- leadingIcon: xT,+ leadingIcon: ST,"aria-label": `拉取 ${iL(e.row.original)}`,disabled: h.current.readOnly,...X(h.current.busy === `check-${e.row.original.id}`),@@ -45464,7 +45378,7 @@ function f_e({ readOnly: e, toast: t }) {variant: "secondary",size: "xs",iconOnly: !0,- leadingIcon: mT,+ leadingIcon: hT,"aria-label": `移除 ${iL(e.row.original)}`,disabled: h.current.readOnly,onClick: () => h.current.remove(e.row.original)@@ -45496,20 +45410,20 @@ function f_e({ readOnly: e, toast: t }) {tone: "error",title: "打不开订阅源",children: W(n.error)- }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "正在读订阅源。" });+ }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "正在读订阅源。" });let y = () => void r.run("check", (e) => mF(e), () => void rL()), b = (e) => s((t) => {let n = new Set(t);return n.has(e) ? n.delete(e) : n.add(e), n;}), x = a.filter((e) => o.has(e.id)), S = a.filter((e) => e.last_error);return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",- children: [/* @__PURE__ */ (0, V.jsx)(Zge, {+ children: [/* @__PURE__ */ (0, V.jsx)(Wge, {readOnly: e,toast: t,onAdded: () => void rL()}), /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": "JAV 订阅列表",- className: xE({+ className: SE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -45539,9 +45453,9 @@ function f_e({ readOnly: e, toast: t }) {tone: "error",title: `${iL(e)} 拉取失败`,children: e.last_error- }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: r.error }) : null]+ }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null]}) : null,- /* @__PURE__ */ (0, V.jsxs)(eS, {+ /* @__PURE__ */ (0, V.jsxs)(tS, {visible: x.length > 0,label: "订阅源批量操作",count: `已选 ${x.length} 条订阅源`,@@ -45587,26 +45501,26 @@ function f_e({ readOnly: e, toast: t }) {})]}),- a.length ? /* @__PURE__ */ (0, V.jsx)(NM, {+ a.length ? /* @__PURE__ */ (0, V.jsx)(FM, {onRowClick: (e) => b(Number(e)),- children: /* @__PURE__ */ (0, V.jsxs)(jM, {+ children: /* @__PURE__ */ (0, V.jsxs)(NM, {"aria-label": "JAV 订阅源",size: "sm",- children: [/* @__PURE__ */ (0, V.jsx)(Nk, { children: v.getHeaderGroups()[0].headers.map((e) => {+ children: [/* @__PURE__ */ (0, V.jsx)(Pk, { children: v.getHeaderGroups()[0].headers.map((e) => {let t = ZI(e.column.columnDef.header, e.getContext());- return /* @__PURE__ */ (0, V.jsx)(Pk, {+ return /* @__PURE__ */ (0, V.jsx)(Fk, {id: e.id,isRowHeader: e.column.id === "name",- children: a_e.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t+ children: Qge.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t}, e.id);- }) }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(zk, {+ }) }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Bk, {id: e.id,"data-follow-selected": e.getIsSelected() || void 0,- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Vk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))}, e.id)) })]})- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- icon: ST,+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ icon: CT,title: "还没有订阅源",shell: "plain",children: "在上面按女优名添加,或在人物页点「订阅新作」。"@@ -45618,14 +45532,14 @@ function f_e({ readOnly: e, toast: t }) {className: "text-body-2-regular text-text-secondary",children: `${f.start + 1}–${f.end} / ${f.total} 个订阅源`}),- /* @__PURE__ */ (0, V.jsx)(CM, {+ /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "每页显示数量",size: "sm",selectedKey: String(u),onSelectionChange: (e) => {e !== null && (d(Number(e)), l(1));},- children: WP.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: WP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {id: String(e),children: `每页 ${e} 条`}, e))@@ -45652,18 +45566,18 @@ function f_e({ readOnly: e, toast: t }) {}//#endregion//#region src/react/activity/resource-search.tsx-function p_e({ className: e }) {+function o_e({ className: e }) {return /* @__PURE__ */ (0, V.jsx)("span", {className: e,"aria-hidden": !0,dangerouslySetInnerHTML: { __html: Ke("") }});}-function m_e(e) {+function s_e(e) {return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";}-function h_e({ initialCode: e, reason: t, choose: n }) {- let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => m_e(t)), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(""), [h, g] = (0, B.useState)(""), _ = DE(), v = () => {+function c_e({ initialCode: e, reason: t, choose: n }) {+ let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => s_e(t)), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(""), [h, g] = (0, B.useState)(""), _ = OE(), v = () => {if (!r.trim() || _.busy) return;let e = new URLSearchParams({code: r.trim(),@@ -45680,17 +45594,17 @@ function h_e({ initialCode: e, reason: t, choose: n }) {"aria-busy": !!_.busy,className: "flex min-w-0 flex-col gap-4",children: [- t ? /* @__PURE__ */ (0, V.jsxs)(IE, { children: [+ t ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["版本目标:",t,"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"] }) : null,- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "搜索资源",value: r,maxLength: 80,placeholder: "输入番号,按回车搜索",- leadingIcon: _.busy ? p_e : CT,+ leadingIcon: _.busy ? o_e : wT,isReadOnly: !!_.busy,"aria-busy": !!_.busy,onChange: i,@@ -45700,7 +45614,7 @@ function h_e({ initialCode: e, reason: t, choose: n }) {}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(CM, {+ children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(TM, {"aria-label": "优先寻找",selectedKey: a,isDisabled: !!_.busy,@@ -45708,15 +45622,15 @@ function h_e({ initialCode: e, reason: t, choose: n }) {e !== null && o(String(e));},children: [- /* @__PURE__ */ (0, V.jsx)(wM, {+ /* @__PURE__ */ (0, V.jsx)(EM, {id: "quality",children: "高清"}),- /* @__PURE__ */ (0, V.jsx)(wM, {+ /* @__PURE__ */ (0, V.jsx)(EM, {id: "chinese",children: "中字"}),- /* @__PURE__ */ (0, V.jsx)(wM, {+ /* @__PURE__ */ (0, V.jsx)(EM, {id: "uncensored",children: "无码"})@@ -45725,32 +45639,32 @@ function h_e({ initialCode: e, reason: t, choose: n }) {}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex gap-3 max-sm:flex-col",- children: [/* @__PURE__ */ (0, V.jsx)(HM, {+ children: [/* @__PURE__ */ (0, V.jsx)(WM, {label: "最小体积(GiB)",inputMode: "decimal",value: s,onChange: c- }), /* @__PURE__ */ (0, V.jsx)(HM, {+ }), /* @__PURE__ */ (0, V.jsx)(WM, {label: "最大体积(GiB)",inputMode: "decimal",value: l,onChange: u})]}),- _.busy ? /* @__PURE__ */ (0, V.jsx)(IE, {+ _.busy ? /* @__PURE__ */ (0, V.jsx)(LE, {role: "status",children: "正在搜索资源"}) : null,- _.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _.error }) : null,- d?.error ? /* @__PURE__ */ (0, V.jsx)(IE, {+ _.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: _.error }) : null,+ d?.error ? /* @__PURE__ */ (0, V.jsx)(LE, {role: "status",children: d.error}) : null,- d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(IE, {+ d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(LE, {role: "status",children: "没有符合条件的资源。"}) : null,- d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(IE, { children: e }, e)),+ d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(LE, { children: e }, e)),d?.items.length ? /* @__PURE__ */ (0, V.jsx)("ul", {className: "flex min-w-0 flex-col gap-4",children: d.items.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {@@ -45760,7 +45674,7 @@ function h_e({ initialCode: e, reason: t, choose: n }) {className: "break-words text-body-2-medium text-text-primary",children: e.name}),- /* @__PURE__ */ (0, V.jsx)(IE, { children: [+ /* @__PURE__ */ (0, V.jsx)(LE, { children: [`${(e.size / 1024 ** 3).toFixed(2)} GiB`,`${e.seeders} 个做种`,e.resolution ? `${e.resolution}p` : "",@@ -45785,19 +45699,19 @@ function h_e({ initialCode: e, reason: t, choose: n }) {}//#endregion//#region src/react/activity/cloud-download-dialog.tsx-var g_e = {+var l_e = {submitted: "已提交离线下载,进度在活动页",adopted: "这个磁力已有任务,没有重复提交",adopted_remote: "远端已有同一任务,已接管"};function oL({ prefill: e, close: t, receipt: n, provider: r }) {- return /* @__PURE__ */ (0, V.jsx)(qN, {+ return /* @__PURE__ */ (0, V.jsx)(YN, {isOpen: !!e,onOpenChange: (e) => {e || t();},width: "form",- children: e ? /* @__PURE__ */ (0, V.jsx)(__e, {+ children: e ? /* @__PURE__ */ (0, V.jsx)(u_e, {prefill: e,close: t,receipt: n,@@ -45805,14 +45719,14 @@ function oL({ prefill: e, close: t, receipt: n, provider: r }) {}) : null});}-function __e({ prefill: e, close: t, receipt: n, provider: r }) {- let i = wS({- queryKey: eD,- queryFn: ({ signal: e }) => G(`${$E}?limit=50`, e),- refetchInterval: (e) => tD(e.state.data)+function u_e({ prefill: e, close: t, receipt: n, provider: r }) {+ let i = TS({+ queryKey: tD,+ queryFn: ({ signal: e }) => G(`${eD}?limit=50`, e),+ refetchInterval: (e) => nD(e.state.data)}), a = i.data, o = a?.providers.filter((e) => e.configured) ?? [], s = [e.code, e.title].filter(Boolean).join(" "), c = /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1 px-5 pt-5",- children: [/* @__PURE__ */ (0, V.jsx)(ND, {+ children: [/* @__PURE__ */ (0, V.jsx)(PD, {slot: "title",className: "text-title-2-semibold text-text-primary",children: "云下载"@@ -45821,7 +45735,7 @@ function __e({ prefill: e, close: t, receipt: n, provider: r }) {children: s}) : null]});- return a?.available && o.length ? /* @__PURE__ */ (0, V.jsx)(v_e, {+ return a?.available && o.length ? /* @__PURE__ */ (0, V.jsx)(d_e, {header: c,snapshot: a,prefill: e,@@ -45860,8 +45774,8 @@ function __e({ prefill: e, close: t, receipt: n, provider: r }) {]});}-function v_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {- let o = cS(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, B.useState)(c.key), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(n.code ?? ""), [h, g] = (0, B.useState)(c.target), [_, v] = (0, B.useState)(""), y = DE(), b = (0, B.useRef)(null), x = (e) => {+function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {+ let o = lS(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, B.useState)(c.key), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(n.code ?? ""), [h, g] = (0, B.useState)(c.target), [_, v] = (0, B.useState)(""), y = OE(), b = (0, B.useRef)(null), x = (e) => {u(e), g(s.find((t) => t.key === e)?.target ?? "");};return /* @__PURE__ */ (0, V.jsxs)("form", {@@ -45877,14 +45791,14 @@ function v_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, providetitle: n.title,origin: n.origin};- v(""), y.run("submit", (e) => K($E, t, "POST", e), (e) => {- o.invalidateQueries({ queryKey: eD });- let t = g_e[e.outcome];+ v(""), y.run("submit", (e) => K(eD, t, "POST", e), (e) => {+ o.invalidateQueries({ queryKey: tD });+ let t = l_e[e.outcome];if (e.ok && t) {i(t), r();return;}- let n = nD(e.task);+ let n = rD(e.task);v(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");});},@@ -45894,14 +45808,14 @@ function v_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",children: [- /* @__PURE__ */ (0, V.jsx)(h_e, {+ /* @__PURE__ */ (0, V.jsx)(c_e, {initialCode: n.code ?? "",reason: n.searchReason,choose: (e, t) => {f(e), m(t), b.current?.focus();}}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {ref: b,label: "磁力链接",placeholder: "magnet:?xt=urn:btih:…",@@ -45913,22 +45827,22 @@ function v_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1",children: [- /* @__PURE__ */ (0, V.jsx)(RE, { children: "下载到" }),- /* @__PURE__ */ (0, V.jsx)(CM, {+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "下载到" }),+ /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "下载到",selectedKey: l,onSelectionChange: (e) => {e !== null && x(String(e));},- children: s.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: s.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e.key,children: e.label}, e.key))}),- l === "115" ? /* @__PURE__ */ (0, V.jsx)(IE, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null+ l === "115" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null]}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "目标目录",placeholder: "/云下载",autoComplete: "off",@@ -45936,7 +45850,7 @@ function v_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, providevalue: h,onChange: g}),- n.code ? null : /* @__PURE__ */ (0, V.jsx)(HM, {+ n.code ? null : /* @__PURE__ */ (0, V.jsx)(WM, {label: "番号",placeholder: "可不填",autoComplete: "off",@@ -45944,7 +45858,7 @@ function v_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, providevalue: p,onChange: m}),- _ || y.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _ || y.error }) : null+ _ || y.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: _ || y.error }) : null]}),/* @__PURE__ */ (0, V.jsxs)("div", {@@ -45980,11 +45894,11 @@ function uL() {return [];}}-function y_e(e, t) {+function f_e(e, t) {let n = uL().find((t) => t.code === e);return n && Date.now() - n.saved < lL(t) ? n : void 0;}-function b_e(e, t) {+function p_e(e, t) {if (t.state === "ready") try {let n = uL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");localStorage.setItem(sL, JSON.stringify([{@@ -46005,8 +45919,8 @@ function dL({ icon: e, children: t }) {}), t]});}-function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, B.useState)([]), d = DE(), f = cS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => y_e(e.code || "", e.release_date), [e.code, e.release_date]);+function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, B.useState)([]), d = OE(), f = lS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => f_e(e.code || "", e.release_date), [e.code, e.release_date]);(0, B.useEffect)(() => {if (!o.current || s) return;let e = new IntersectionObserver((t) => {@@ -46014,7 +45928,7 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}, { rootMargin: "100px" });return e.observe(o.current), () => e.disconnect();}, [s]);- let h = wS({+ let h = TS({queryKey: ["want-magnets",e.id,@@ -46022,7 +45936,7 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour],queryFn: async ({ signal: t }) => {let n = p.current, r = await G(`/api/wants/magnets?id=${e.id}${n ? "&refresh=1" : ""}`, t);- return p.current = n && r.state === "busy", b_e(e.code || "", r), r;+ return p.current = n && r.state === "busy", p_e(e.code || "", r), r;},initialData: m?.result,initialDataUpdatedAt: m?.saved,@@ -46039,7 +45953,7 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}, [h.data?.source_url, a]);let g = n?.providers.find((e) => e.key === r && e.configured), _ = (r) => {t || !n?.available || !g || r.protocol !== "magnet" || d.run(r.id, async (t) => {- let n = await K($E, {+ let n = await K(eD, {magnet: r.uri,provider: g.key,target: g.target,@@ -46050,7 +45964,7 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourif (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");return n;}, (e) => {- u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: eD });+ u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: tD });});}, v = (e) => {d.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));@@ -46068,7 +45982,7 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}), /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: xT,+ leadingIcon: ST,...X(y),onClick: () => {y || (p.current = !0, h.refetch());@@ -46076,7 +45990,7 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourchildren: "重新查询"})]}),- y ? /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在查找资源链接…" }) : null,+ y ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在查找资源链接…" }) : null,b ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "资源链接未取得",@@ -46105,18 +46019,18 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourclassName: "flex min-w-0 flex-1 flex-col gap-1",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(vE, {+ children: [/* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",children: /* @__PURE__ */ (0, V.jsxs)("span", {className: "inline-flex items-center gap-1",- children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(Cae, {+ children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(Sae, {"aria-hidden": !0,className: "size-3.5"- }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(sae, {+ }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(oae, {"aria-hidden": !0,className: "size-3.5"- }) : /* @__PURE__ */ (0, V.jsx)(yT, {+ }) : /* @__PURE__ */ (0, V.jsx)(bT, {"aria-hidden": !0,className: "size-3.5"}), e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ed2k" : "网页链接"]@@ -46129,23 +46043,23 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourclassName: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",children: [/* @__PURE__ */ (0, V.jsx)(dL, {- icon: yT,+ icon: bT,children: e.source}),/* @__PURE__ */ (0, V.jsx)(dL, {- icon: _T,+ icon: vT,children: e.size || "大小未知"}),e.files ? /* @__PURE__ */ (0, V.jsx)(dL, {- icon: cae,+ icon: sae,children: e.files.replaceAll("個", "个")}) : null,/* @__PURE__ */ (0, V.jsx)(dL, {- icon: nae,+ icon: tae,children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"}),e.attributes.map((e) => /* @__PURE__ */ (0, V.jsx)(dL, {- icon: bT,+ icon: xT,children: e}, e))]@@ -46153,11 +46067,11 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex shrink-0 flex-wrap gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(bE, {+ /* @__PURE__ */ (0, V.jsx)(xE, {"data-button-link": "",variant: "secondary",size: "small",- trailingIcon: hT,+ trailingIcon: gT,href: e.source_url,target: "_blank",rel: "noopener noreferrer",@@ -46166,7 +46080,7 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: oae,+ leadingIcon: aae,...X(d.busy === `copy:${e.id}`),onClick: () => v(e),children: "复制链接"@@ -46174,7 +46088,7 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSoure.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(J, {variant: "primary",size: "small",- leadingIcon: iae,+ leadingIcon: rae,disabled: t || !n?.available || !g || r,...X(d.busy === e.id),onClick: () => _(e),@@ -46187,7 +46101,7 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourreturn /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("ul", {className: "flex min-w-0 flex-col gap-4",children: e.slice(0, 3)- }), e.length > 3 ? /* @__PURE__ */ (0, V.jsx)(HE, {+ }), e.length > 3 ? /* @__PURE__ */ (0, V.jsx)(UE, {summary: `更多资源(${e.length - 3} 条)`,children: /* @__PURE__ */ (0, V.jsx)("ul", {className: "flex min-w-0 flex-col gap-4",@@ -46200,31 +46114,31 @@ function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}//#endregion//#region src/react/wants/wants.ts-var fL = "/api/wants", pL = ["wants"], S_e = (e) => [+var fL = "/api/wants", pL = ["wants"], h_e = (e) => ["wants","follow",e-], C_e = [+], g_e = [["searching", "待找"],["unreleased", "未发售"],["given_up", "暂时放弃"],["acquired", "已入库"]-], w_e = (e) => G(fL, e), T_e = (e, t) => G(`${fL}?follow=${encodeURIComponent(e)}`, t), mL = (e, t) => K(fL, {+], __e = (e) => G(fL, e), v_e = (e, t) => G(`${fL}?follow=${encodeURIComponent(e)}`, t), mL = (e, t) => K(fL, {action: "add",...e}, "POST", t), hL = (e, t) => K(fL, {action: "remove",ids: e-}, "POST", t), E_e = (e, t) => K(fL, {+}, "POST", t), y_e = (e, t) => K(fL, {action: "reset",ids: e}, "POST", t), gL = () => z.invalidateQueries({ queryKey: pL }), _L = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;-function D_e(e) {+function b_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 O_e = {+var x_e = {code: "手动添加",feed: "Feed 新作",follow: "关注"@@ -46232,9 +46146,9 @@ var O_e = {e.release_date,e.studio,e.performers,- O_e[e.origin]+ x_e[e.origin]].filter(Boolean).join(" · ");-function k_e({ want: e }) {+function S_e({ want: e }) {return /* @__PURE__ */ (0, V.jsxs)("span", {className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",children: [/* @__PURE__ */ (0, V.jsx)("span", {@@ -46250,17 +46164,17 @@ function k_e({ want: e }) {}) : null]});}-function A_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {+function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {let [l, u] = (0, B.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");return /* @__PURE__ */ (0, V.jsxs)("li", {"data-want-id": e.id,- className: xE({+ className: SE({bordered: "soft",className: "flex flex-col gap-4 max-sm:p-4"}),children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 items-start gap-4 max-sm:gap-3",- children: [/* @__PURE__ */ (0, V.jsx)(k_e, { want: e }), /* @__PURE__ */ (0, V.jsxs)("div", {+ children: [/* @__PURE__ */ (0, V.jsx)(S_e, { want: e }), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-1",children: [/* @__PURE__ */ (0, V.jsxs)("p", {@@ -46280,7 +46194,7 @@ function A_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, V.jsx)("p", {"data-want-note": "",className: "text-caption-1-regular text-text-secondary",- children: D_e(e)+ children: b_e(e)}) : null,e.scrape_error ? /* @__PURE__ */ (0, V.jsxs)("p", {className: "text-caption-1-regular text-text-secondary",@@ -46289,11 +46203,11 @@ function A_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo/* @__PURE__ */ (0, V.jsxs)("div", {className: "mt-1 flex flex-wrap items-center gap-2",children: [- d ? /* @__PURE__ */ (0, V.jsx)(bE, {+ d ? /* @__PURE__ */ (0, V.jsx)(xE, {"data-button-link": "",variant: "secondary",size: "small",- trailingIcon: hT,+ trailingIcon: gT,href: d,target: "_blank",rel: "noopener noreferrer",@@ -46317,7 +46231,7 @@ function A_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: mT,+ leadingIcon: hT,disabled: t,...X(n === `remove:${e.id}`),onClick: i,@@ -46327,7 +46241,7 @@ function A_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo})]})]- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, V.jsx)(x_e, {+ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, V.jsx)(m_e, {want: e,readOnly: t,downloads: o,@@ -46337,10 +46251,10 @@ function A_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo}) : null]});}-function j_e({ readOnly: e, toast: t }) {- let [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(null), [o, s] = (0, B.useState)(""), c = DE(), l = wS({+function w_e({ readOnly: e, toast: t }) {+ let [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(null), [o, s] = (0, B.useState)(""), c = OE(), l = TS({queryKey: pL,- queryFn: ({ signal: e }) => w_e(e),+ queryFn: ({ signal: e }) => __e(e),refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1}), u = () => {let i = n.trim();@@ -46354,19 +46268,19 @@ function j_e({ readOnly: e, toast: t }) {t(`已移除:${_L(e)}`), gL();});}, p = (e) => {- c.run(`reset:${e.id}`, (t) => E_e([e.id], t), () => {+ c.run(`reset:${e.id}`, (t) => y_e([e.id], t), () => {t(`${_L(e)} 回到待找`), gL();});- }, m = l.data, h = m?.items || [], g = wS({- queryKey: eD,- queryFn: ({ signal: e }) => G(`${$E}?limit=100`, e),+ }, m = l.data, h = m?.items || [], g = TS({+ queryKey: tD,+ queryFn: ({ signal: e }) => G(`${eD}?limit=100`, e),enabled: h.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))}), _ = g.data?.providers.filter((e) => e.configured) || [], v = _.find((e) => e.key === o)?.key || _[0]?.key || "";return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-8",children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: xE({+ className: SE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -46379,7 +46293,7 @@ function j_e({ readOnly: e, toast: t }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-64 grow max-sm:min-w-0",- children: /* @__PURE__ */ (0, V.jsx)(HM, {+ children: /* @__PURE__ */ (0, V.jsx)(WM, {"aria-label": "番号",placeholder: "输入番号,例如 SSIS-950",value: n,@@ -46395,7 +46309,7 @@ function j_e({ readOnly: e, toast: t }) {children: "添加"})]}),- /* @__PURE__ */ (0, V.jsx)(IE, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),c.error ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "这一次没有完成",@@ -46408,7 +46322,7 @@ function j_e({ readOnly: e, toast: t }) {title: "想要清单读取失败",children: W(l.error)}) : null,- m?.scraping ? /* @__PURE__ */ (0, V.jsx)(IE, {+ m?.scraping ? /* @__PURE__ */ (0, V.jsx)(LE, {role: "status",children: "正在给刚加入的番号取资料与封面。"}) : null,@@ -46421,11 +46335,11 @@ function j_e({ readOnly: e, toast: t }) {}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(CM, {+ children: [/* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "下载到",selectedKey: v,onSelectionChange: (e) => s(String(e)),- children: _.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: _.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e.key,children: e.label}, e.key))@@ -46436,7 +46350,7 @@ function j_e({ readOnly: e, toast: t }) {children: "提交磁力"})]}),- /* @__PURE__ */ (0, V.jsx)(IE, { children: _.find((e) => e.key === v)?.target || "使用已配置的目标目录" })+ /* @__PURE__ */ (0, V.jsx)(LE, { children: _.find((e) => e.key === v)?.target || "使用已配置的目标目录" })]}) : null,g.error ? /* @__PURE__ */ (0, V.jsx)(Y, {@@ -46452,13 +46366,13 @@ function j_e({ readOnly: e, toast: t }) {tone: "neutral",children: "云下载只在账本写入端可用。"}) : null,- m && !h.length ? /* @__PURE__ */ (0, V.jsx)(SE, {+ m && !h.length ? /* @__PURE__ */ (0, V.jsx)(CE, {shell: "plain",- icon: vae,+ icon: _ae,title: "还没有想要的作品",children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"}) : null,- C_e.map(([n, r]) => {+ g_e.map(([n, r]) => {let i = h.filter((e) => e.phase === n);return i.length ? /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": r,@@ -46472,7 +46386,7 @@ function j_e({ readOnly: e, toast: t }) {})]}), /* @__PURE__ */ (0, V.jsx)("ul", {className: "flex flex-col gap-4",- children: i.map((n) => /* @__PURE__ */ (0, V.jsx)(A_e, {+ children: i.map((n) => /* @__PURE__ */ (0, V.jsx)(C_e, {want: n,readOnly: e,busy: c.busy,@@ -46510,7 +46424,7 @@ var yL = [], bL = (e) => yL.some(([t]) => t === e);function xL({ term: e, figure: t, unit: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {- className: xE({+ className: SE({padding: "none",className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"}),@@ -46526,14 +46440,14 @@ function xL({ term: e, figure: t, unit: n }) {})]});}-function M_e(e) {- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, B.useState)(bL(e.tab) ? e.tab : "list"), [u, d] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, B.useState)(() => jP(e.sort, e.dir).sort), [m, h] = (0, B.useState)(() => jP(e.sort, e.dir).dir), [g, _] = (0, B.useState)(Lme(e.layout) ? e.layout : "default"), [v, y] = (0, B.useState)(Rme(e.pageSize)), [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), S = wS({+function T_e(e) {+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, B.useState)(bL(e.tab) ? e.tab : "list"), [u, d] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, B.useState)(() => jP(e.sort, e.dir).sort), [m, h] = (0, B.useState)(() => jP(e.sort, e.dir).dir), [g, _] = (0, B.useState)(Ame(e.layout) ? e.layout : "default"), [v, y] = (0, B.useState)(jme(e.pageSize)), [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), S = TS({queryKey: BP,queryFn: ({ signal: e }) => aF(e)- }), C = wS({+ }), C = TS({queryKey: VP,queryFn: ({ signal: e }) => oF(e)- }), w = wS({+ }), w = TS({queryKey: HP,queryFn: ({ signal: e }) => dF(e)}), T = S.data || { sources: [] }, E = C.data || {@@ -46542,7 +46456,7 @@ function M_e(e) {}, D = T.sources;(0, B.useEffect)(() => {x((e) => {- let t = Wme(e, D);+ let t = Lme(e, D);return t.size === e.size ? e : t;});}, [D]);@@ -46555,7 +46469,7 @@ function M_e(e) {dir: r === AP[n] ? "" : r});}, k = tF(D), A = D.filter(qP).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !bF(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;- return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [a ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "warning",title: "本机只能浏览",@@ -46570,7 +46484,7 @@ function M_e(e) {children: o}) : null,/* @__PURE__ */ (0, V.jsxs)("div", {- className: ode,+ className: ide,"aria-label": "关注概览",children: [/* @__PURE__ */ (0, V.jsx)(xL, {@@ -46605,7 +46519,7 @@ function M_e(e) {})]}),- /* @__PURE__ */ (0, V.jsxs)(Gk, {+ /* @__PURE__ */ (0, V.jsxs)(Kk, {selectedKey: c,onSelectionChange: (e) => {let t = String(e);@@ -46613,21 +46527,21 @@ function M_e(e) {},className: "flex flex-col gap-6",children: [- /* @__PURE__ */ (0, V.jsx)(Kk, {+ /* @__PURE__ */ (0, V.jsx)(qk, {"aria-label": "关注管理区域","data-section-nav": !0,"data-section-items": !0,className: "flex max-w-full flex-nowrap overflow-x-auto",- children: yL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(qk, {+ children: yL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Jk, {id: e,className: "cursor-pointer whitespace-nowrap",children: e === "source" && M ? `${t}(${M})` : t}, e))}),- /* @__PURE__ */ (0, V.jsx)(Jk, {+ /* @__PURE__ */ (0, V.jsx)(Yk, {id: "list",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, V.jsx)(r_e, {+ children: /* @__PURE__ */ (0, V.jsx)(Xge, {data: T,sort: f,dir: m,@@ -46657,10 +46571,10 @@ function M_e(e) {}})}),- /* @__PURE__ */ (0, V.jsxs)(Jk, {+ /* @__PURE__ */ (0, V.jsxs)(Yk, {id: "add",className: "flex flex-col gap-8",- children: [/* @__PURE__ */ (0, V.jsx)($he, {+ children: [/* @__PURE__ */ (0, V.jsx)(Khe, {data: T,credentials: E,readOnly: a,@@ -46668,7 +46582,7 @@ function M_e(e) {openCredentials: () => {l("source"), O({ tab: "source" });}- }), /* @__PURE__ */ (0, V.jsx)(nge, {+ }), /* @__PURE__ */ (0, V.jsx)(Yhe, {groups: T.author_aliases || [],readOnly: a,toast: r,@@ -46676,26 +46590,26 @@ function M_e(e) {sources: T.sources})]}),- /* @__PURE__ */ (0, V.jsx)(Jk, {+ /* @__PURE__ */ (0, V.jsx)(Yk, {id: "feeds",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, V.jsx)(f_e, {+ children: /* @__PURE__ */ (0, V.jsx)(a_e, {readOnly: a,toast: r})}),- /* @__PURE__ */ (0, V.jsx)(Jk, {+ /* @__PURE__ */ (0, V.jsx)(Yk, {id: "wants",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, V.jsx)(j_e, {+ children: /* @__PURE__ */ (0, V.jsx)(w_e, {readOnly: a,toast: r})}),- /* @__PURE__ */ (0, V.jsx)(Jk, {+ /* @__PURE__ */ (0, V.jsx)(Yk, {id: "source",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, V.jsx)(dge, {+ children: /* @__PURE__ */ (0, V.jsx)(ige, {data: E,readOnly: a,toast: r@@ -46714,7 +46628,7 @@ function SL({ value: e }) {children: e.toLocaleString()});}-var N_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";+var E_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";function CL({ tabs: e, value: t, label: n, onChange: r }) {let i = (0, B.useRef)(null), a = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {@@ -46743,14 +46657,14 @@ function CL({ 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 ? rA(e.symbol) : null, i = e.value === t;+ let n = e.symbol ? iA(e.symbol) : null, i = e.value === t;return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button",role: "tab","data-tab": e.value,"aria-selected": i,tabIndex: i ? 0 : -1,- className: N_e,+ className: E_e,onClick: () => {i || r(e.value);},@@ -46771,13 +46685,13 @@ var wL = () => /* @__PURE__ */ (0, V.jsx)("span", {"data-tag-dot": "",className: "size-1.75 flex-none rounded-full"});-function P_e({ tag: e, actions: t }) {+function D_e({ tag: e, actions: t }) {let n = t.picked.has(e.k);return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-alpha-tag": "","data-k": e.k,- "data-tag-cat": CN(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",@@ -46794,13 +46708,13 @@ function P_e({ tag: e, actions: t }) {]});}-function F_e({ groups: e, actions: t }) {+function O_e({ groups: e, actions: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-alphabet": "",className: "flex flex-col gap-4",children: e.map(([e, n], r) => /* @__PURE__ */ (0, V.jsxs)("section", {"data-alpha-group": r,- className: xE({+ className: SE({radius: "plain",padding: "none",className: "px-5 pt-4 pb-3"@@ -46810,7 +46724,7 @@ function F_e({ groups: e, actions: t }) {children: [e, /* @__PURE__ */ (0, V.jsx)(SL, { value: n.length })]}), /* @__PURE__ */ (0, V.jsx)("div", {className: "index-tag-list gap-x-4 gap-y-0.5",- children: n.map((e) => /* @__PURE__ */ (0, V.jsx)(P_e, {+ children: n.map((e) => /* @__PURE__ */ (0, V.jsx)(D_e, {tag: e,actions: t}, e.k))@@ -46818,8 +46732,8 @@ function F_e({ groups: e, actions: t }) {}, e))});}-var I_e = "\xA0";-function L_e({ tags: e, actions: t }) {+var k_e = "\xA0";+function A_e({ tags: e, actions: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-tag-cloud": "",className: "flex flex-wrap gap-1.75",@@ -46827,11 +46741,11 @@ function L_e({ tags: e, actions: t }) {type: "button","data-tag-chip": "","data-k": e.k,- "data-tag-cat": CN(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 + I_e, /* @__PURE__ */ (0, V.jsx)("span", {+ children: [e.label + k_e, /* @__PURE__ */ (0, V.jsx)("span", {"data-tag-n": "",className: "text-caption-1-regular opacity-60",children: e.n.toLocaleString()@@ -46839,7 +46753,7 @@ function L_e({ tags: e, actions: t }) {}, e.k))});}-var R_e = [[+var j_e = [["cloud","标签云","tags"@@ -46848,13 +46762,13 @@ var R_e = [["字母表","text-aa"]];-function z_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {- return /* @__PURE__ */ (0, V.jsx)(lD, {+function M_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {+ return /* @__PURE__ */ (0, V.jsx)(uD, {label: "标签筛选",topLabel: "标签类型",- top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(uD, {+ top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(dD, {"data-tag-pill": "",- "data-tag-cat": e === "all" ? "all" : CN(n, e),+ "data-tag-cat": e === "all" ? "all" : TN(n, e),pressed: t === e,onPress: () => o(e),children: [/* @__PURE__ */ (0, V.jsx)(wL, {}), r]@@ -46876,19 +46790,19 @@ function z_e({ categories: e, category: t, online: n, readout: r, letters: i, vichildren: e}, e))}) : null,- /* @__PURE__ */ (0, V.jsx)(gk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": "标签视图",orientation: "horizontal",value: a,onChange: (e) => c(e),- className: `ml-auto ${eA}`,- children: R_e.map(([e, t, n]) => {- let r = rA(n);- return /* @__PURE__ */ (0, V.jsx)(_k, {+ className: `ml-auto ${tA}`,+ children: j_e.map(([e, t, n]) => {+ let r = iA(n);+ return /* @__PURE__ */ (0, V.jsx)(vk, {value: e,"aria-label": t,"data-glass-segment": "",- className: tA,+ className: nA,children: /* @__PURE__ */ (0, V.jsx)("span", {title: t,className: "contents",@@ -46900,13 +46814,13 @@ function z_e({ categories: e, category: t, online: n, readout: r, letters: i, vi] })});}-function B_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {- return /* @__PURE__ */ (0, V.jsxs)(eS, {+function N_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {+ return /* @__PURE__ */ (0, V.jsxs)(tS, {visible: e > 0,label: "所选标签操作",count: `已选 ${e} 个标签`,children: [- /* @__PURE__ */ (0, V.jsx)(AM, {+ /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: t === "any",onChange: (e) => n(e ? "any" : "all"),children: /* @__PURE__ */ (0, V.jsxs)("span", {@@ -46938,7 +46852,7 @@ function B_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {}//#endregion//#region src/react/index/index-page.tsx-var V_e = [{+var P_e = [{value: "studios",label: "厂牌",symbol: "clapperboard"@@ -46946,7 +46860,7 @@ var V_e = [{value: "agencies",label: "事务所",symbol: "briefcase"-}], H_e = [{+}], F_e = [{value: "local",label: "本地",symbol: "hard-drive"@@ -46954,7 +46868,7 @@ var V_e = [{value: "online",label: "在线",symbol: "rss"-}], U_e = [+}], I_e = [{value: "performers",label: "艺人",@@ -46970,7 +46884,7 @@ var V_e = [{label: "在线",symbol: "rss"}-], W_e = {+], L_e = {people: [["big","大图 · 竖幅头像",@@ -46990,20 +46904,20 @@ var V_e = [{"layout-grid"]]};-function G_e({ kind: e, layout: t, onChange: n }) {- return /* @__PURE__ */ (0, V.jsx)(Zk, {- "aria-label": `${dN[e]}索引版式`,+function R_e({ kind: e, layout: t, onChange: n }) {+ return /* @__PURE__ */ (0, V.jsx)(Qk, {+ "aria-label": `${pN[e]}索引版式`,orientation: "horizontal",value: t,onChange: (e) => n(e),"data-index-layout": "",- className: `flex-none max-board-narrow:order-3 ${Qk}`,- children: W_e[_N(e) ? "company" : "people"].map(([e, t, n]) => {- let r = rA(n);- return /* @__PURE__ */ (0, V.jsx)(_k, {+ className: `flex-none max-board-narrow:order-3 ${$k}`,+ children: L_e[yN(e) ? "company" : "people"].map(([e, t, n]) => {+ let r = iA(n);+ return /* @__PURE__ */ (0, V.jsx)(vk, {value: e,"aria-label": t,- className: Gce,+ className: Wce,children: /* @__PURE__ */ (0, V.jsx)("span", {title: t,className: "contents",@@ -47013,8 +46927,8 @@ function G_e({ kind: e, layout: t, onChange: n }) {})});}-var K_e = rA("search");-function q_e({ label: e, value: t, onQuery: n }) {+var z_e = iA("search");+function B_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) => {@@ -47029,15 +46943,15 @@ function q_e({ label: e, value: t, onQuery: n }) {onCompositionEnd: (e) => {a.current = !1, s(e.target.value);},- children: /* @__PURE__ */ (0, V.jsx)(zM, {+ children: /* @__PURE__ */ (0, V.jsx)(VM, {"aria-label": e,value: r,onChange: (e) => {i(e), a.current || s(e);},- children: /* @__PURE__ */ (0, V.jsx)(VM, {+ children: /* @__PURE__ */ (0, V.jsx)(UM, {type: "search",- leadingIcon: K_e,+ leadingIcon: z_e,spellCheck: !1,autoComplete: "off",onKeyDown: (e) => {@@ -47047,14 +46961,14 @@ function q_e({ label: e, value: t, onQuery: n }) {})});}-function J_e(e) {- let [t, n] = (0, B.useState)(() => vN({+function V_e(e) {+ let [t, n] = (0, B.useState)(() => bN({kind: e.kind,q: e.q,scope: e.scope,view: e.view,category: e.category- })), [r, i] = (0, B.useState)(e.layout), [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)("any"), l = (0, B.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = dN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";+ })), [r, i] = (0, B.useState)(e.layout), [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)("any"), l = (0, B.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = pN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";(0, B.useEffect)(() => {(t.kind !== e.kind || t.scope !== e.scope || t.category !== e.category) && e.route(t, { replace: !0 });}, []), (0, B.useEffect)(() => {@@ -47066,7 +46980,7 @@ function J_e(e) {...r};y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });- }, x = SN(yN(t)), S = OS({+ }, x = wN(xN(t)), S = kS({queryKey: x.queryKey,queryFn: ({ pageParam: e, signal: t }) => x.queryFn({pageParam: e,@@ -47074,8 +46988,8 @@ function J_e(e) {}),initialPageParam: 0,getNextPageParam: x.getNextPageParam,- placeholderData: v ? kS.keepPreviousData : void 0- }), C = Bfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Vfe(C.length, !!S.hasNextPage), E = `${u}:${f}:${d}`, D = (0, B.useRef)(null), O = S.data?.pages[0]?.categories;+ placeholderData: v ? AS.keepPreviousData : void 0+ }), C = Rfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = zfe(C.length, !!S.hasNextPage), E = `${u}:${f}:${d}`, D = (0, B.useRef)(null), O = S.data?.pages[0]?.categories;O && !S.isPlaceholderData && (D.current = {key: E,counts: O@@ -47087,14 +47001,14 @@ function J_e(e) {let j = (0, B.useMemo)(() => u === "tags" ? C.map((t) => ({...t,label: e.tagLabel(t.k)- })) : [], [C, u]), M = (0, B.useMemo)(() => u === "tags" && p === "alphabet" ? Wfe(j, (t) => e.tagLabel(t)) : [], [+ })) : [], [C, u]), M = (0, B.useMemo)(() => u === "tags" && p === "alphabet" ? Hfe(j, (t) => e.tagLabel(t)) : [], [j,p,u]), N = (t) => {i(t), e.savePreference({ layout: t });}, P = u === "tags" ? /* @__PURE__ */ (0, V.jsx)(CL, {- tabs: H_e,+ tabs: F_e,value: f,label: "词表",onChange: (e) => {@@ -47104,8 +47018,8 @@ function J_e(e) {view: e === "online" ? "alphabet" : p});}- }) : _N(u) ? /* @__PURE__ */ (0, V.jsx)(CL, {- tabs: V_e,+ }) : yN(u) ? /* @__PURE__ */ (0, V.jsx)(CL, {+ tabs: P_e,value: u,label: "公司类型",onChange: (e) => b({ kind: e })@@ -47122,7 +47036,7 @@ function J_e(e) {let n = new Set(e);return n.delete(t) || n.add(t), n;});- }, F = (g ? pN : fN).filter(A);+ }, F = (g ? hN : mN).filter(A);return /* @__PURE__ */ (0, V.jsxs)("div", {ref: l,"data-index-page": u,@@ -47137,12 +47051,12 @@ function J_e(e) {className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",children: h}),- gN(u) ? /* @__PURE__ */ (0, V.jsx)("span", {+ vN(u) ? /* @__PURE__ */ (0, V.jsx)("span", {"data-index-count": "",className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",children: S.isPending ? "" : T}) : null,- gN(u) ? /* @__PURE__ */ (0, V.jsx)(G_e, {+ vN(u) ? /* @__PURE__ */ (0, V.jsx)(R_e, {kind: u,layout: r,onChange: N@@ -47151,7 +47065,7 @@ function J_e(e) {"aria-hidden": !0,className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"}),- /* @__PURE__ */ (0, V.jsx)(q_e, {+ /* @__PURE__ */ (0, V.jsx)(B_e, {label: `过滤${h}`,value: d,onQuery: (e) => {@@ -47161,7 +47075,7 @@ function J_e(e) {]}),u === "performers" || u === "creators" ? /* @__PURE__ */ (0, V.jsx)(CL, {- tabs: U_e,+ tabs: I_e,value: _ ? "online" : u,label: "人物名册",onChange: (t) => {@@ -47176,7 +47090,7 @@ function J_e(e) {u === "performers" && f === "local" ? /* @__PURE__ */ (0, V.jsx)("div", {"aria-label": "身份分类",className: "mb-4 flex flex-wrap gap-2",- children: mN.filter((e) => e[0] === m || A(e)).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(J, {+ children: gN.filter((e) => e[0] === m || A(e)).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(J, {variant: m === e ? "primary" : "secondary",size: "small","aria-pressed": m === e,@@ -47184,7 +47098,7 @@ function J_e(e) {children: t}, e))}) : null,- u === "tags" ? /* @__PURE__ */ (0, V.jsx)(z_e, {+ u === "tags" ? /* @__PURE__ */ (0, V.jsx)(M_e, {categories: F,category: m,online: g,@@ -47209,8 +47123,8 @@ function J_e(e) {mode: p}) }});- if (S.isError) return /* @__PURE__ */ (0, V.jsx)(SE, {- icon: rA("search"),+ if (S.isError) return /* @__PURE__ */ (0, V.jsx)(CE, {+ icon: iA("search"),title: `没能读取${h}`,actions: /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",@@ -47219,18 +47133,18 @@ function J_e(e) {}),children: ye(S.error)});- if (!C.length) return /* @__PURE__ */ (0, V.jsx)(X_e, {+ if (!C.length) return /* @__PURE__ */ (0, V.jsx)(U_e, {kind: u,filtered: !!d || m !== "all",online: g || _,configurable: e.configurable});- if (_) return /* @__PURE__ */ (0, V.jsx)(Kfe, {+ if (_) return /* @__PURE__ */ (0, V.jsx)(Wfe, {items: C,layout: r,props: e});- if (gN(u)) return /* @__PURE__ */ (0, V.jsx)(EN, {+ if (vN(u)) return /* @__PURE__ */ (0, V.jsx)(ON, {kind: u,items: C,layout: r,@@ -47241,10 +47155,10 @@ function J_e(e) {picked: a,press: ee};- return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(F_e, {+ return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(O_e, {groups: M,actions: t- }) : /* @__PURE__ */ (0, V.jsx)(L_e, {+ }) : /* @__PURE__ */ (0, V.jsx)(A_e, {tags: j,actions: t});@@ -47259,13 +47173,13 @@ function J_e(e) {disabled: S.isFetchingNextPage,"aria-busy": S.isFetchingNextPage || void 0,onClick: () => void S.fetchNextPage(),- children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(CE, {+ children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(wE, {inline: !0,label: "继续载入中…"}) : "载入更多"})}) : null,- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(B_e, {+ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(N_e, {count: a.size,match: s,onMatch: c,@@ -47278,31 +47192,31 @@ function J_e(e) {]});}-var Y_e = {+var H_e = {tags: "标签",performers: "艺人",creators: "卖家",studios: "厂牌",agencies: "事务所"};-function X_e({ kind: e, filtered: t, online: n, configurable: r }) {- if (t) return /* @__PURE__ */ (0, V.jsx)(SE, {- icon: rA("search"),+function U_e({ kind: e, filtered: t, online: n, configurable: r }) {+ if (t) return /* @__PURE__ */ (0, V.jsx)(CE, {+ icon: iA("search"),title: "没有符合条件的内容",- actions: /* @__PURE__ */ (0, V.jsx)(bE, {+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {variant: "primary",href: "/?loc=&thumb=0",children: "查看全部内容"}),children: "清除筛选或搜索条件后查看全部内容。"});- let i = n && e === "performers" ? "创作者" : Y_e[e], a = /* @__PURE__ */ (0, V.jsx)(bE, {+ let i = n && e === "performers" ? "创作者" : H_e[e], a = /* @__PURE__ */ (0, V.jsx)(xE, {variant: !r || n ? "primary" : "secondary",href: "/follow-manage?tab=add",children: "添加关注"});- return /* @__PURE__ */ (0, V.jsx)(SE, {- icon: rA(e === "tags" ? "tags" : "user-round"),+ return /* @__PURE__ */ (0, V.jsx)(CE, {+ icon: iA(e === "tags" ? "tags" : "user-round"),title: `还没有${i}`,actions: n ? a : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r ? /* @__PURE__ */ (0, V.jsx)(J, {variant: "primary",@@ -47319,8 +47233,8 @@ var TL = {audio: ["音频", "file-audio"],url: ["网址快捷方式", "globe"],other: ["其它文件", "hard-drive"]-}, Z_e = (e) => TL[e.junk_kind || "other"] || TL.other;-function Q_e(e) {+}, W_e = (e) => TL[e.junk_kind || "other"] || TL.other;+function G_e(e) {return e === "dismissed" ? {operation: "reconsider-junk",label: "重新判断",@@ -47331,21 +47245,21 @@ function Q_e(e) {glyph: "check"};}-var EL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), $_e = (e, t) => [+var EL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), K_e = (e, t) => ["junk-queue",e.view,e.kind,t];-function eve({ kind: e, view: t }) {+function q_e({ kind: e, view: t }) {let n = new URLSearchParams({limit: "200",status: t});return e && n.set("kind", e), n.toString();}-async function tve(e, t) {- let n = await G(`/api/ads?${eve(e)}`, t);+async function J_e(e, t) {+ let n = await G(`/api/ads?${q_e(e)}`, t);return {...n,items: n.items || []@@ -47361,8 +47275,8 @@ function DL({ name: e }) {});}var OL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;-function nve({ 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] = Z_e(e), m = String(e.name || ""), h = Q_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {+function Y_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = e.junk_kind || "other", [f, p] = W_e(e), m = String(e.name || ""), h = G_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {t.target.closest("[data-junk-actions]") || OL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));}, y = (t) => {if (t.stopPropagation(), OL(r, t)) {@@ -47495,7 +47409,7 @@ function nve({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions]});}-var rve = (0, B.memo)(nve), kL = [+var X_e = (0, B.memo)(Y_e), kL = [["","全部",@@ -47538,7 +47452,7 @@ function AL(e = "", t = "pending") {let r = n.toString();return `/junk-files${r ? `?${r}` : ""}`;}-function ive(e) {+function Z_e(e) {return e === "dismissed" ? {view: "pending",label: "返回待判断",@@ -47551,7 +47465,7 @@ function ive(e) {href: AL("", "dismissed")};}-var ave = (e) => e === "dismissed" ? "已排除" : "待判断";+var Q_e = (e) => e === "dismissed" ? "已排除" : "待判断";//#endregion//#region src/react/junk-queue/junk-count.tsxfunction jL({ name: e }) {@@ -47567,8 +47481,8 @@ function ML({ scope: e, count: t }) {children: t.toLocaleString()})] }) : null;}-function ove({ route: e, page: t, failed: n, onNavigate: r }) {- let i = hM(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = fD(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? kL.map(([e]) => EL(t, e)).join(",") : ""}`), l = ive(s), u = (e) => {+function $_e({ route: e, page: t, failed: n, onNavigate: r }) {+ let i = _M(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = pD(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? kL.map(([e]) => EL(t, e)).join(",") : ""}`), l = Z_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") || AL()));}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";@@ -47578,7 +47492,7 @@ function ove({ route: e, page: t, failed: n, onNavigate: r }) {"data-junk-summary": "","aria-live": "polite",children: /* @__PURE__ */ (0, V.jsx)(bP, {- label: ave(s),+ label: Q_e(s),figure: d,pending: !t && !n,flush: !0@@ -47637,33 +47551,33 @@ function ove({ route: e, page: t, failed: n, onNavigate: r }) {}//#endregion//#region src/react/junk-queue/junk-queue-page.tsx-var sve = rA("check"), cve = (e, t) => e[1] === t.view && e[2] === t.kind;-function lve(e) {+var eve = iA("check"), tve = (e, t) => e[1] === t.view && e[2] === t.kind;+function nve(e) {let t = {kind: e.kind,view: e.view- }, n = wS({- queryKey: $_e(t, e.revision),- queryFn: ({ signal: e }) => tve(t, e),- placeholderData: (e, n) => n && cve(n.queryKey, t) ? e : void 0+ }, n = TS({+ queryKey: K_e(t, e.revision),+ queryFn: ({ signal: e }) => J_e(t, e),+ placeholderData: (e, n) => n && tve(n.queryKey, t) ? e : void 0});(0, B.useEffect)(() => {n.isFetching || e.settled?.(e.revision);}, [n.isFetching, e.revision]);- let r = uve(e.countRow), i = n.isPending;+ let r = rve(e.countRow), i = n.isPending;(0, B.useLayoutEffect)(() => {let t = e.countRow;t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));}, [e.countRow, i]), (0, B.useLayoutEffect)(() => {r && n.data && Le(r, "junk");}, [r, n.data]);- let { navigate: a } = e.actions, o = r ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(ove, {+ let { navigate: a } = e.actions, o = r ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)($_e, {route: t,page: n.data,failed: n.isError && !n.data,onNavigate: a}), r) : null;- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)(dve, {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)(ive, {props: e,data: n.data,pending: i,@@ -47671,7 +47585,7 @@ function lve(e) {retry: () => void n.refetch()}, `${t.view}:${t.kind}`)] });}-function uve(e) {+function rve(e) {let [t, n] = (0, B.useState)(null);return (0, B.useLayoutEffect)(() => {if (!e) return;@@ -47681,8 +47595,8 @@ function uve(e) {};}, [e]), t;}-function dve({ props: e, data: t, pending: n, error: r, retry: i }) {- let a = fA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, B.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, B.useCallback)(() => {+function ive({ props: e, data: t, pending: n, error: r, retry: i }) {+ let a = pA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, B.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, B.useCallback)(() => {d?.() !== !1 && c((e) => e + 1);}, [d]);return /* @__PURE__ */ (0, V.jsxs)("div", {@@ -47690,14 +47604,14 @@ function dve({ props: e, data: t, pending: n, error: r, retry: i }) {"data-grid-reveal": a.fading ? "" : void 0,children: [a.layer, (() => {if (n) return null;- if (!t) return /* @__PURE__ */ (0, V.jsx)(pA, {+ if (!t) return /* @__PURE__ */ (0, V.jsx)(mA, {message: ye(r),onRetry: i});if (!l.length) {let t = e.view === "dismissed";- return /* @__PURE__ */ (0, V.jsx)(SE, {- icon: sve,+ return /* @__PURE__ */ (0, V.jsx)(CE, {+ icon: eve,title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"});@@ -47706,7 +47620,7 @@ function dve({ props: e, data: t, pending: n, error: r, retry: i }) {"data-media-grid": "","data-junk-grid": "","data-select-mode": e.selectMode ? "" : void 0,- children: u.map((t) => /* @__PURE__ */ (0, V.jsx)(rve, {+ children: u.map((t) => /* @__PURE__ */ (0, V.jsx)(X_e, {item: t,view: e.view,selected: e.selected.has(t.id),@@ -47714,11 +47628,11 @@ function dve({ props: e, data: t, pending: n, error: r, retry: i }) {helpers: e.helpers,actions: e.actions}, t.id))- }), u.length < l.length ? /* @__PURE__ */ (0, V.jsx)(fve, { onMore: f }, s) : null] });+ }), u.length < l.length ? /* @__PURE__ */ (0, V.jsx)(ave, { onMore: f }, s) : null] });})()]});}-function fve({ onMore: e }) {+function ave({ onMore: e }) {let t = (0, B.useRef)(null);return (0, B.useEffect)(() => {let n = t.current;@@ -47736,12 +47650,12 @@ function fve({ onMore: e }) {}//#endregion//#region src/react/library-processing/library-processing-notice.tsx-var NL = "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", pve = {+var NL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", ove = {gray: `${NL} border-separator-border bg-background-secondary-default text-text-secondary`,warning: `${NL} border-current/35 bg-status-yellow-background text-status-yellow-text`,error: `${NL} border-current/35 bg-background-tertiary-error text-text-error-primary`};-function mve({ value: e, max: t }) {+function sve({ value: e, max: t }) {let n = Math.max(0, Math.min(100, e / t * 100));return /* @__PURE__ */ (0, V.jsxs)("svg", {role: "progressbar",@@ -47769,16 +47683,16 @@ function mve({ value: e, max: t }) {})]});}-function hve(e) {- let { job: t } = bM(e), n = t.data, r = t.isError ? n ? LA : W(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";+function cve(e) {+ let { job: t } = SM(e), n = t.data, r = t.isError ? n ? zA : W(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";if (!r && !o && !a) return null;- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : zA(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? mae : aae;+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : VA(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? pae : iae;return /* @__PURE__ */ (0, V.jsxs)("aside", {role: a ? "alert" : "status",- className: pve[s],+ className: ove[s],children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 items-center gap-3",- children: [o && l ? /* @__PURE__ */ (0, V.jsx)(mve, {+ children: [o && l ? /* @__PURE__ */ (0, V.jsx)(sve, {value: c,max: l}) : /* @__PURE__ */ (0, V.jsx)(d, {@@ -47788,18 +47702,18 @@ function hve(e) {className: "min-w-0 text-body-2-regular",children: u})]- }), /* @__PURE__ */ (0, V.jsx)(jE, {+ }), /* @__PURE__ */ (0, V.jsx)(ME, {href: "/data-cleanup#libraryProcessing",size: "small",- trailingIcon: sT,+ trailingIcon: cT,children: r || a ? "查看并处理" : "查看进度"})]});}//#endregion//#region src/react/playlists/playlists.ts-var gve = "/api/playlists", PL = "/api/playlist", FL = ["playlists"], IL = (e) => G(gve, e);-async function _ve(e) {+var lve = "/api/playlists", PL = "/api/playlist", FL = ["playlists"], IL = (e) => G(lve, e);+async function uve(e) {await z.fetchQuery({queryKey: FL,queryFn: () => IL(e),@@ -47809,7 +47723,7 @@ async function _ve(e) {var LL = () => z.invalidateQueries({queryKey: FL,exact: !0-}), vve = (e) => e.current_asset_id || e.preview_asset_id || null, RL = (e) => `/poster?id=${e}&c=4`, yve = (e) => K(PL, {+}), dve = (e) => e.current_asset_id || e.preview_asset_id || null, RL = (e) => `/poster?id=${e}&c=4`, fve = (e) => K(PL, {action: "create",name: e,asset_ids: []@@ -47820,8 +47734,8 @@ var LL = () => z.invalidateQueries({}), BL = (e) => K(PL, {action: "delete",id: e-}), bve = (e) => G(`${PL}?id=${e}`).catch(() => null);-function xve(e) {+}), pve = (e) => G(`${PL}?id=${e}`).catch(() => null);+function mve(e) {let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;return K(PL, {action: "create",@@ -47833,16 +47747,16 @@ function xve(e) {}//#endregion//#region src/react/playlists/playlists-page.tsx-var Sve = rA("ellipsis"), Cve = rA("pencil"), wve = rA("trash"), Tve = rA("playlist"), VL = hE(cM, lM, "text-body-2-medium"), HL = "播放列表名称不能为空", UL = (e) => async () => {+var hve = iA("ellipsis"), gve = iA("pencil"), _ve = iA("trash"), vve = iA("playlist"), VL = gE(uM, dM, "text-body-2-medium"), HL = "播放列表名称不能为空", UL = (e) => async () => {try {await e();} finally {LL();}};-function Eve({ toast: e }) {- let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = DS({- mutationFn: (e) => yve(e),+function yve({ toast: e }) {+ let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = OS({+ mutationFn: (e) => fve(e),onSuccess: (t) => {n(""), i(""), LL(), e("已新建播放列表", { undo: UL(() => BL(t.playlist.id)) });},@@ -47863,7 +47777,7 @@ function Eve({ toast: e }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",- children: /* @__PURE__ */ (0, V.jsx)(HM, {+ children: /* @__PURE__ */ (0, V.jsx)(WM, {label: "新播放列表",placeholder: "输入名称",maxLength: 80,@@ -47882,7 +47796,7 @@ function Eve({ toast: e }) {})]});}-function Dve({ target: e, close: t, toast: n }) {+function bve({ 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;@@ -47892,14 +47806,14 @@ function Dve({ target: e, close: t, toast: n }) {});return () => cancelAnimationFrame(t);}, [e]);- let c = DS({+ let c = OS({mutationFn: ({ row: e, value: t }) => zL(e.id, t),onSuccess: (e, { row: r }) => {t(), LL(), n("已重命名播放列表", { undo: UL(() => zL(r.id, r.name)) });},onError: (e) => o(W(e))});- return /* @__PURE__ */ (0, V.jsx)(qN, {+ return /* @__PURE__ */ (0, V.jsx)(YN, {isOpen: !!e,onOpenChange: (e) => {e || t();@@ -47922,11 +47836,11 @@ function Dve({ target: e, close: t, toast: n }) {className: "flex min-h-0 flex-col",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-4 p-5",- children: [/* @__PURE__ */ (0, V.jsx)(ND, {+ children: [/* @__PURE__ */ (0, V.jsx)(PD, {slot: "title",className: "text-title-2-semibold text-text-primary",children: "编辑名称"- }), /* @__PURE__ */ (0, V.jsx)(HM, {+ }), /* @__PURE__ */ (0, V.jsx)(WM, {ref: s,label: "名称",placeholder: "输入名称",@@ -47954,7 +47868,7 @@ function Dve({ target: e, close: t, toast: n }) {})});}-function Ove({ name: e, onRename: t, onDelete: n }) {+function xve({ name: e, onRename: t, onDelete: n }) {let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {a(!1), e();};@@ -47968,25 +47882,25 @@ function Ove({ name: e, onRename: t, onDelete: n }) {"data-playlist-menu": "",onClick: () => a(!0),className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: /* @__PURE__ */ (0, V.jsx)(Sve, {+ children: /* @__PURE__ */ (0, V.jsx)(hve, {"aria-hidden": !0,className: "size-4.5"})- }), /* @__PURE__ */ (0, V.jsx)(QO, {+ }), /* @__PURE__ */ (0, V.jsx)($O, {triggerRef: r,isOpen: i,onOpenChange: a,placement: "bottom end",offset: 4,- className: sM,- children: /* @__PURE__ */ (0, V.jsxs)(oM, {+ className: lM,+ children: /* @__PURE__ */ (0, V.jsxs)(cM, {"aria-label": `播放列表操作:${e}`,className: "flex w-37.5 flex-col gap-0.5 outline-none",children: [/* @__PURE__ */ (0, V.jsxs)("button", {type: "button",className: VL,onClick: () => o(t),- children: [/* @__PURE__ */ (0, V.jsx)(Cve, {+ children: [/* @__PURE__ */ (0, V.jsx)(gve, {"aria-hidden": !0,className: "size-4 shrink-0"}), "编辑名称"]@@ -47994,7 +47908,7 @@ function Ove({ name: e, onRename: t, onDelete: n }) {type: "button",className: VL,onClick: () => o(n),- children: [/* @__PURE__ */ (0, V.jsx)(wve, {+ children: [/* @__PURE__ */ (0, V.jsx)(_ve, {"aria-hidden": !0,className: "size-4 shrink-0"}), "删除播放列表"]@@ -48002,8 +47916,8 @@ function Ove({ name: e, onRename: t, onDelete: n }) {})})] });}-function kve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {- let a = wS({+function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {+ let a = TS({queryKey: FL,queryFn: ({ signal: e }) => IL(e)}), [o, s] = (0, B.useState)(null), c = (0, B.useRef)(i);@@ -48026,8 +47940,8 @@ function kve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: iconfirmLabel: "删除播放列表",danger: !0,onConfirm: async () => {- let t = await bve(e.id);- await BL(e.id), LL(), r("已删除播放列表", t ? { undo: UL(() => xve(t)) } : void 0);+ let t = await pve(e.id);+ await BL(e.id), LL(), r("已删除播放列表", t ? { undo: UL(() => mve(t)) } : void 0);}});};@@ -48042,14 +47956,14 @@ function kve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i}), /* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "保存 Mix,按自己的顺序继续播放。"- })] }), /* @__PURE__ */ (0, V.jsx)(Eve, { toast: r })]+ })] }), /* @__PURE__ */ (0, V.jsx)(yve, { toast: r })]}),u.length ? /* @__PURE__ */ (0, V.jsx)("div", {"data-playlist-grid": "",className: "card-grid-cover gap-4.5",children: u.map((r) => {- let i = vve(r);- return /* @__PURE__ */ (0, V.jsx)(SA, {+ let i = dve(r);+ return /* @__PURE__ */ (0, V.jsx)(CA, {"data-playlist-card": String(r.id),name: r.name,caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",@@ -48061,19 +47975,19 @@ function kve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: ionOpenEntity: t,...i ? { onOpen: () => e(r.id, i) } : {},openLabel: `打开播放列表 ${r.name}`,- menu: /* @__PURE__ */ (0, V.jsx)(Ove, {+ menu: /* @__PURE__ */ (0, V.jsx)(xve, {name: r.name,onRename: () => s(r),onDelete: () => d(r)})}, r.id);})- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- icon: Tve,+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ icon: vve,title: "还没有播放列表",children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"}),- /* @__PURE__ */ (0, V.jsx)(Dve, {+ /* @__PURE__ */ (0, V.jsx)(bve, {target: o,close: () => s(null),toast: r@@ -48083,11 +47997,11 @@ function kve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i}//#endregion//#region src/react/quality-goals/quality-goals-page.tsx-function Ave({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {+function Cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {let o = () => t(e.id);return /* @__PURE__ */ (0, V.jsxs)("li", {"data-goal-id": e.id,- className: xE({+ className: SE({padding: "none",bordered: "soft",className: "flex flex-col gap-3 p-3"@@ -48103,7 +48017,7 @@ function Ave({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisclassName: "text-caption-1-regular text-text-secondary",children: "暂无预览"}), /* @__PURE__ */ (0, V.jsx)("img", {- src: Xle(e),+ src: Jle(e),alt: "",loading: "lazy",onError: (e) => e.currentTarget.remove(),@@ -48161,18 +48075,18 @@ function Ave({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis})]});}-function jve({ toast: e, ...t }) {- let [n, r] = (0, B.useState)(null), i = wS({- queryKey: qA,- queryFn: ({ signal: e }) => JA(e)+function wve({ toast: e, ...t }) {+ let [n, r] = (0, B.useState)(null), i = TS({+ queryKey: YA,+ queryFn: ({ signal: e }) => XA(e)}), a = i.data;- if (!a) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ if (!a) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "高清版目标读取失败",children: i.error ? W(i.error) : "未取得高清版目标,请刷新页面重试。"}) });let o = a.items || [];- return o.length ? /* @__PURE__ */ (0, V.jsxs)(wE, { children: [+ return o.length ? /* @__PURE__ */ (0, V.jsxs)(TE, { children: [/* @__PURE__ */ (0, V.jsx)(bP, {label: "待升级",figure: `${a.total} 部作品`,@@ -48180,7 +48094,7 @@ function jve({ toast: e, ...t }) {}),/* @__PURE__ */ (0, V.jsx)("ul", {className: "card-grid-cover gap-5",- children: o.map((e) => /* @__PURE__ */ (0, V.jsx)(Ave, {+ children: o.map((e) => /* @__PURE__ */ (0, V.jsx)(Cve, {item: e,...t,searchResources: r@@ -48191,17 +48105,17 @@ function jve({ toast: e, ...t }) {close: () => r(null),receipt: e})- ] }) : /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(SE, {+ ] }) : /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(CE, {shell: "plain",- icon: wae,+ icon: Cae,title: "没有标记中的高清版目标",children: "现有版本都已满足条件,或还没有加入追踪。"}) });}//#endregion//#region src/react/review/bulk-toolbar.tsx-function Mve(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 = sue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";+function Tve(e) {+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = aue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {role: "group","aria-label": "复核筛选",@@ -48209,29 +48123,29 @@ function Mve(e) {"data-glass-pane": "",className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",children: [- /* @__PURE__ */ (0, V.jsx)(CM, {+ /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "筛选分组方式",size: "sm",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: t.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: t.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e,children: t}, e))}),- i.length > 1 ? /* @__PURE__ */ (0, V.jsxs)(CM, {+ i.length > 1 ? /* @__PURE__ */ (0, V.jsxs)(TM, {"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",size: "sm",selectedKey: a || "*",onSelectionChange: (e) => {e !== null && o(String(e) === "*" ? "" : String(e));},- children: [/* @__PURE__ */ (0, V.jsx)(wM, {+ children: [/* @__PURE__ */ (0, V.jsx)(EM, {id: "*",children: "全部分类"- }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {+ }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e.key,children: `${e.title} · ${e.rows.length}`}, e.key))]@@ -48239,7 +48153,7 @@ function Mve(e) {/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: uT,+ leadingIcon: dT,"aria-pressed": v,disabled: p || !s.length,onClick: () => {@@ -48250,12 +48164,12 @@ function Mve(e) {children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"})]- }), /* @__PURE__ */ (0, V.jsxs)(eS, {+ }), /* @__PURE__ */ (0, V.jsxs)(tS, {label: "复核所选项目",visible: c.size > 0,count: `已选 ${c.size} 项`,children: [- b ? /* @__PURE__ */ (0, V.jsxs)(CM, {+ b ? /* @__PURE__ */ (0, V.jsxs)(TM, {"aria-label": "统一选择来源",size: "sm",selectedKey: "",@@ -48263,10 +48177,10 @@ function Mve(e) {onSelectionChange: (e) => {e !== null && e !== "" && h(String(e));},- children: [/* @__PURE__ */ (0, V.jsx)(wM, {+ children: [/* @__PURE__ */ (0, V.jsx)(EM, {id: "",children: x- }), y.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {+ }), y.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e,children: e}, e))]@@ -48302,7 +48216,7 @@ function Mve(e) {}//#endregion//#region src/react/review/candidate-form.tsx-var Nve = {+var Eve = {title: "标题",original_title: "原标题",runtime: "来源时长",@@ -48313,7 +48227,7 @@ var Nve = {screenshot_urls: "截图",trailer_url: "预告片"}, WL = "reviewgenretags";-function Pve({ tags: e }) {+function Dve({ tags: e }) {return e.length ? /* @__PURE__ */ (0, V.jsx)("datalist", {id: WL,children: e.map((e) => /* @__PURE__ */ (0, V.jsx)("option", { value: e }, e))@@ -48356,7 +48270,7 @@ function GL({ candidate: e, selectable: t = !1 }) {children: [/* @__PURE__ */ (0, V.jsx)("dt", {className: "text-body-2-regular text-text-secondary",- children: Nve[e] || e+ children: Eve[e] || e}),/* @__PURE__ */ (0, V.jsx)("dd", {className: "min-w-0 text-body-2-regular break-words text-text-primary",@@ -48371,18 +48285,18 @@ function GL({ candidate: e, selectable: t = !1 }) {}) : null]});}-function Fve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {+function Ove({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {let a = e.candidates || [];return a.length ? a.length === 1 ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",children: /* @__PURE__ */ (0, V.jsx)(GL, { candidate: a[0] })- }) : /* @__PURE__ */ (0, V.jsx)(gk, {+ }) : /* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": `${t || "候选"}的来源`,value: n,isDisabled: i,onChange: r,className: "flex flex-col gap-2",- children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(_k, {+ children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(vk, {value: e.candidate_key,className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",children: /* @__PURE__ */ (0, V.jsx)(GL, {@@ -48392,15 +48306,15 @@ function Fve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {}, e.candidate_key))}) : null;}-function Ive({ genre: e, tags: t, locked: n, toast: r }) {- let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = DS({- mutationFn: (t) => hue(e, t),+function kve({ genre: e, tags: t, locked: n, toast: r }) {+ let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = OS({+ mutationFn: (t) => pue(e, t),onSuccess: async (t, n) => {if (!t.ok) {s(t.error || "服务端拒绝了这次收录");return;}- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await _ue();+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await hue();},onError: (e) => s(W(e))}), l = () => {@@ -48419,14 +48333,14 @@ function Ive({ genre: e, tags: t, locked: n, toast: r }) {className: "text-body-medium text-text-primary",children: e}),- /* @__PURE__ */ (0, V.jsx)(zM, {+ /* @__PURE__ */ (0, V.jsx)(VM, {"aria-label": `「${e}」收录成的中文标签`,value: i,onChange: a,maxLength: 40,isDisabled: n || c.isPending,className: "min-w-40 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(VM, {+ children: /* @__PURE__ */ (0, V.jsx)(UM, {size: "small",list: t.length ? WL : void 0,autoComplete: "off",@@ -48460,8 +48374,8 @@ function Ive({ genre: e, tags: t, locked: n, toast: r }) {]});}-function Lve({ row: e, tags: t, locked: n, toast: r }) {- let i = fue(e);+function Ave({ row: e, tags: t, locked: n, toast: r }) {+ let i = uue(e);return i.length ? /* @__PURE__ */ (0, V.jsxs)("div", {role: "group","aria-label": "未收录 genre",@@ -48469,7 +48383,7 @@ function Lve({ row: e, tags: t, locked: n, toast: r }) {children: [/* @__PURE__ */ (0, V.jsx)("h5", {className: "text-body-2-medium text-text-secondary",children: `未收录 genre · ${i.length}`- }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(Ive, {+ }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(kve, {genre: e,tags: t,locked: n,@@ -48479,9 +48393,9 @@ function Lve({ row: e, tags: t, locked: n, toast: r }) {}//#endregion//#region src/react/review/review-evidence.tsx-var KL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Rve = (e = "") => KL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");+var KL = (e = "") => /^https?:\/\//i.test(e) ? e : "", jve = (e = "") => KL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");function qL({ url: e }) {- let t = Rve(e || ""), [n, r] = (0, B.useState)(!1);+ let t = jve(e || ""), [n, r] = (0, B.useState)(!1);return /* @__PURE__ */ (0, V.jsx)("div", {className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",children: t && !n ? /* @__PURE__ */ (0, V.jsx)("img", {@@ -48522,14 +48436,14 @@ function JL({ asset: e, openItem: t }) {}), /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: _ae,+ leadingIcon: gae,onClick: () => t(e.id),children: "打开原视频"})]})]});}-function zve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {+function Mve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 items-center gap-3",children: [/* @__PURE__ */ (0, V.jsx)("button", {@@ -48552,7 +48466,7 @@ function zve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {})]});}-function Bve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {+function Nve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {let o = KL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));return /* @__PURE__ */ (0, V.jsxs)("section", {className: "flex flex-col gap-3",@@ -48563,10 +48477,10 @@ function Bve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [o ? /* @__PURE__ */ (0, V.jsx)(bE, {+ children: [o ? /* @__PURE__ */ (0, V.jsx)(xE, {variant: "secondary",size: "small",- trailingIcon: hT,+ trailingIcon: gT,href: o,target: "_blank",rel: "noopener noreferrer",@@ -48621,7 +48535,7 @@ function Bve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no]});}-function Vve({ assets: e, picked: t, onPicked: n, locked: r }) {+function Pve({ 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);@@ -48677,7 +48591,7 @@ function Vve({ assets: e, picked: t, onPicked: n, locked: r }) {}),/* @__PURE__ */ (0, V.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, V.jsx)(kM, {+ children: /* @__PURE__ */ (0, V.jsx)(jM, {size: "sm",state: {isSelected: n,@@ -48697,19 +48611,19 @@ function Vve({ assets: e, picked: t, onPicked: n, locked: r }) {}//#endregion//#region src/react/review/review-card.tsx-var Hve = xE({+var Fve = SE({variant: "outlined",padding: "none",className: "flex flex-col gap-4 px-5 pt-4"-}), YL = "flex min-h-6 min-w-0 items-center", Uve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";-function Wve(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 = hM(), h = hM(), g = t === "metadata_fields", _ = rue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = lue(t, n), x = aj(t, n), S = ij(t, n), C = uue(n), T = due(n), E = rj(t, n), D = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = D.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {+}), YL = "flex min-h-6 min-w-0 items-center", Ive = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";+function Lve(e) {+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, B.useRef)(!1), m = _M(), h = _M(), g = t === "metadata_fields", _ = tue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = sue(t, n), x = sj(t, n), S = oj(t, n), C = cue(n), T = lue(n), E = aj(t, n), D = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = D.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-col gap-3",children: D.map((e) => /* @__PURE__ */ (0, V.jsx)(JL, {asset: e,openItem: f.openItem}, e.id))- }) : y ? /* @__PURE__ */ (0, V.jsx)(zve, {+ }) : y ? /* @__PURE__ */ (0, V.jsx)(Mve, {kind: _,name: v,works: Number(n.video_count || n.videos || 0),@@ -48727,7 +48641,7 @@ function Wve(e) {name: n.asset_name,preview_url: n.asset_preview_url}- }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(Fve, {+ }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(Ove, {row: n,fieldName: x,value: r.candidateKey,@@ -48736,7 +48650,7 @@ function Wve(e) {candidateKey: e}),locked: s- }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(Vve, {+ }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(Pve, {assets: O,picked: r.assets,locked: s,@@ -48744,12 +48658,12 @@ function Wve(e) {...r,assets: e})- }) : /* @__PURE__ */ (0, V.jsx)(SE, {+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {shell: "inset",- icon: fae,+ icon: dae,title: "这批作品尚未抽帧",children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(Bve, {+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(Nve, {row: n,openItem: f.openItem,openEntity: f.openEntity,@@ -48758,7 +48672,7 @@ function Wve(e) {note: f.revealNote}) : /* @__PURE__ */ (0, V.jsx)(qL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, V.jsxs)("h4", {className: `${YL} flex-wrap gap-2`,- children: [/* @__PURE__ */ (0, V.jsx)(vE, {+ children: [/* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "blue",children: x@@ -48778,7 +48692,7 @@ function Wve(e) {return /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": b,"data-review-key": n.item_key,- className: `${Hve} ${Uve(t)} overflow-hidden`,+ className: `${Fve} ${Ive(t)} overflow-hidden`,children: [/* @__PURE__ */ (0, V.jsxs)("header", {className: "flex min-w-0 shrink-0 items-start gap-2",@@ -48791,7 +48705,7 @@ function Wve(e) {onKeyDownCapture: (e) => {p.current = e.shiftKey;},- children: /* @__PURE__ */ (0, V.jsx)(AM, {+ children: /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: a,"aria-label": `选择 ${b}`,onChange: (e) => o(p.current, e)@@ -48801,7 +48715,7 @@ function Wve(e) {className: "min-w-0 flex-1",children: M}),- k ? /* @__PURE__ */ (0, V.jsx)(vE, {+ k ? /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "neutral",children: n.decision@@ -48825,7 +48739,7 @@ function Wve(e) {!y && A ? A : null,T.length || t === "creator_tags" ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-wrap gap-1",- children: T.length ? T.map((e) => /* @__PURE__ */ (0, V.jsx)(vE, {+ children: T.length ? T.map((e) => /* @__PURE__ */ (0, V.jsx)(yE, {variant: "caption",color: "soft",children: e@@ -48835,7 +48749,7 @@ function Wve(e) {})}) : null,j,- /* @__PURE__ */ (0, V.jsx)(Lve, {+ /* @__PURE__ */ (0, V.jsx)(Ave, {row: n,tags: u,locked: s,@@ -48897,8 +48811,8 @@ function Wve(e) {}//#endregion//#region src/react/review/review-page.tsx-var Gve = "flex cursor-pointer items-center justify-between gap-2";-function Kve({ page: e, pages: t, onPage: n }) {+var Rve = "flex cursor-pointer items-center justify-between gap-2";+function zve({ page: e, pages: t, onPage: n }) {return t <= 1 ? null : /* @__PURE__ */ (0, V.jsxs)("nav", {"aria-label": "复核分页",className: "flex w-full flex-wrap items-center justify-between gap-2",@@ -48912,7 +48826,7 @@ function Kve({ page: e, pages: t, onPage: n }) {}),/* @__PURE__ */ (0, V.jsx)("ul", {className: "flex flex-wrap items-center gap-1",- children: YA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {+ children: ZA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,className: "px-1 text-body-2-regular text-text-tertiary",children: "…"@@ -48935,48 +48849,48 @@ function Kve({ page: e, pages: t, onPage: n }) {]});}-function qve(e) {+function Bve(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)(tj(e.category) ? e.category : nue), [p, m] = (0, B.useState)("candidates"), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(1), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, B.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, B.useState)(""), D = (0, B.useRef)(null), [O, k] = (0, B.useState)(0), [A, j] = (0, B.useState)(""), M = (0, B.useRef)(!0);+ let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, B.useState)(rj(e.category) ? e.category : eue), [p, m] = (0, B.useState)("candidates"), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(1), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, B.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, B.useState)(""), D = (0, B.useRef)(null), [O, k] = (0, B.useState)(0), [A, j] = (0, B.useState)(""), M = (0, B.useRef)(!0);(0, B.useEffect)(() => () => {M.current = !1;}, []);- let N = wS({- queryKey: $A,- queryFn: ({ signal: e }) => sj(e)+ let N = TS({+ queryKey: tj,+ queryFn: ({ signal: e }) => lj(e)}).data || {sections: {},counts: {}- }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = iue(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = nj(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = oue(aue(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({+ }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = nue(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = ij(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = iue(rue(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({...e,rows: e.rows.filter((e) => oe.has(e.item_key))- })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || pue(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {+ })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || due(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {let t = new Set(e);b((e) => new Set([...e].filter((e) => !t.has(e)))), S((e) => new Map([...e].filter(([e]) => !t.has(e)))), w((e) => new Map([...e].filter(([e]) => !t.has(e))));}, L = (e, t) => w((n) => new Map(n).set(e, t)), de = (e) => {f(e), m("candidates"), g(""), v(1), b(/* @__PURE__ */ new Set()), S(/* @__PURE__ */ new Map()), w(/* @__PURE__ */ new Map()), E(""), D.current = null, r({ category: e === "metadata_fields" ? "" : e });- }, fe = DS({- mutationFn: ({ row: e, status: t }) => cj(oj(d, e, t, ce(e))),+ }, fe = OS({+ mutationFn: ({ row: e, status: t }) => uj(cj(d, e, t, ce(e))),onSuccess: (e, { row: t, status: n }) => {if (!e.ok) {L(t.item_key, e.error || "服务端拒绝了这次判定");return;}- lj(d, [t.item_key]), ue([t.item_key]), s(mue(n));+ dj(d, [t.item_key]), ue([t.item_key]), s(fue(n));},onError: (e, { row: t }) => L(t.item_key, W(e))- }), pe = DS({+ }), pe = OS({mutationFn: async (e) => {let t = le, n = [], r = [];for (let [i, a] of t.entries()) {if (!M.current) break;E(`正在处理 ${i} / ${t.length}`);try {- let t = await cj(oj(d, a, e, ce(a)));+ let t = await uj(cj(d, a, e, ce(a)));if (!t.ok) throw Error(t.error || "服务端未采用该项");n.push(a.item_key);} catch (e) {@@ -48990,7 +48904,7 @@ function qve(e) {};},onSuccess: ({ status: e, done: t, failures: n }) => {- lj(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));+ dj(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));},onError: (e) => {E(W(e));@@ -49020,7 +48934,7 @@ function qve(e) {k(e), j("");let t = await o(e);M.current && (k(0), j(t));- }, ge = vue(N.mirror, l), _e = N.genre_tags || [], ve = {+ }, ge = gue(N.mirror, l), _e = N.genre_tags || [], ve = {openItem: i,openEntity: a,onReveal: he,@@ -49028,7 +48942,7 @@ function qve(e) {revealNote: A,toast: s};- return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {+ return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-5 pb-10",children: [F ? /* @__PURE__ */ (0, V.jsx)(Y, {@@ -49044,13 +48958,13 @@ function qve(e) {}) : void 0,children: ge}) : null,- /* @__PURE__ */ (0, V.jsx)(Pve, { tags: _e }),- /* @__PURE__ */ (0, V.jsxs)(Gk, {+ /* @__PURE__ */ (0, V.jsx)(Dve, { tags: _e }),+ /* @__PURE__ */ (0, V.jsxs)(Kk, {orientation: t ? "horizontal" : "vertical",selectedKey: d,onSelectionChange: (e) => {let t = String(e);- tj(t) && de(t);+ rj(t) && de(t);},className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",children: [/* @__PURE__ */ (0, V.jsxs)("div", {@@ -49059,27 +48973,27 @@ function qve(e) {children: [/* @__PURE__ */ (0, V.jsx)("h2", {id: "reviewcategories",children: "复核分类"- }), /* @__PURE__ */ (0, V.jsx)(Kk, {+ }), /* @__PURE__ */ (0, V.jsx)(qk, {"aria-labelledby": "reviewcategories","data-section-items": !0,className: "flex review-split:flex-col review-split:items-stretch",- children: tue.map((e) => {+ children: $le.map((e) => {let t = Number(N.counts[e] || 0);- return /* @__PURE__ */ (0, V.jsxs)(qk, {+ return /* @__PURE__ */ (0, V.jsxs)(Jk, {id: e,- className: Gve,- children: [ej[e], t ? /* @__PURE__ */ (0, V.jsx)("span", {+ className: Rve,+ children: [nj[e], t ? /* @__PURE__ */ (0, V.jsx)("span", {className: "tabular-nums text-caption-1-medium text-text-secondary",children: t.toLocaleString()}) : null]}, e);})})]- }), /* @__PURE__ */ (0, V.jsxs)(Jk, {+ }), /* @__PURE__ */ (0, V.jsxs)(Yk, {id: d,className: "flex min-w-0 flex-1 flex-col gap-5",children: [- P.length && !F ? /* @__PURE__ */ (0, V.jsx)(Mve, {+ P.length && !F ? /* @__PURE__ */ (0, V.jsx)(Tve, {groupOptions: I,groupBy: te,onGroupBy: (e) => {@@ -49095,7 +49009,7 @@ function qve(e) {onSelected: b,selectedRows: le,metadata: ee,- approvable: le.every((e) => rj(d, e)),+ approvable: le.every((e) => aj(d, e)),busy: pe.isPending,feedback: T,onUnifySource: R,@@ -49120,7 +49034,7 @@ function qve(e) {})]}) : null, /* @__PURE__ */ (0, V.jsx)("div", {className: "review-grid gap-5",- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Wve, {+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Lve, {category: d,row: e,choice: ce(e),@@ -49128,7 +49042,7 @@ function qve(e) {selected: y.has(e.item_key),onSelect: (t, n) => b((r) => {let i = new Set(r);- return D.current = cue(i, ae, D.current, e.item_key, t, n), i;+ return D.current = oue(i, ae, D.current, e.item_key, t, n), i;}),locked: F,busy: fe.isPending && fe.variables?.row.item_key === e.item_key,@@ -49143,12 +49057,12 @@ function qve(e) {handlers: ve}, e.item_key))})]- }, e.key)) : /* @__PURE__ */ (0, V.jsx)(SE, {- icon: rae,+ }, e.key)) : /* @__PURE__ */ (0, V.jsx)(CE, {+ icon: nae,title: "此分类没有待复核项目",children: "可切换分类查看其他候选。"}),- /* @__PURE__ */ (0, V.jsx)(Kve, {+ /* @__PURE__ */ (0, V.jsx)(zve, {page: ie.page,pages: ie.pages,onPage: v@@ -49161,8 +49075,8 @@ function qve(e) {}//#endregion//#region src/react/scraping/scraping.ts-var Jve = "/api/scraping", Yve = "/api/scraping/settings", Xve = "/api/scraping/check", XL = "/api/scraping/cover", Zve = "/api/scraping/amane-bridge", Qve = "/api/scraping/amane-bridge/check", $ve = "/api/scraping/amane-bridge/rebuild", ZL = ["scraping"], QL = ["scraping", "cover"], $L = ["scraping", "amane-bridge"], eR = (e) => G(Jve, e), tR = (e) => G(XL, e), nR = (e) => G(Zve, e);-async function eye(e) {+var Vve = "/api/scraping", Hve = "/api/scraping/settings", Uve = "/api/scraping/check", XL = "/api/scraping/cover", Wve = "/api/scraping/amane-bridge", Gve = "/api/scraping/amane-bridge/check", Kve = "/api/scraping/amane-bridge/rebuild", ZL = ["scraping"], QL = ["scraping", "cover"], $L = ["scraping", "amane-bridge"], eR = (e) => G(Vve, e), tR = (e) => G(XL, e), nR = (e) => G(Wve, e);+async function qve(e) {await Promise.all([z.fetchQuery({queryKey: ZL,@@ -49178,12 +49092,12 @@ async function eye(e) {})]);}-function tye(e, t) {+function Jve(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 nye = [["peach", "Peach 代理"], ["direct", "直接连接"]], rR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];+var Yve = [["peach", "Peach 代理"], ["direct", "直接连接"]], rR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];function iR({ source: e }) {let t = ["javten",@@ -49202,16 +49116,16 @@ function iR({ source: e }) {className: "size-4 shrink-0 rounded-sm object-contain"});}-function rye() {+function Xve() {return /* @__PURE__ */ (0, V.jsx)(iR, { source: "github" });}-function iye({ source: e, toast: t }) {+function Zve({ source: e, toast: t }) {let [n, r] = (0, B.useState)(e.network), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(rR[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 = DS({- mutationFn: (t) => K(Yve, {+ let g = OS({+ mutationFn: (t) => K(Hve, {source: e.source,network: n,cookie: i,@@ -49224,7 +49138,7 @@ function iye({ source: e, toast: t }) {sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");}- }), _ = DS({ mutationFn: () => K(Xve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {+ }), _ = OS({ mutationFn: () => K(Uve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {e.preventDefault(), !v && (_.reset(), g.mutate(!1));}, b = () => {v || (_.reset(), g.mutate(!0));@@ -49249,40 +49163,40 @@ function iye({ source: e, toast: t }) {}}let C = f || (g.error ? W(g.error) : "") || (_.error ? W(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: e.label,onSubmit: y,aside: /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 items-center gap-1",- children: [/* @__PURE__ */ (0, V.jsx)(iR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(zE, {+ children: [/* @__PURE__ */ (0, V.jsx)(iR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(BE, {href: e.login,children: e.login})]}),children: [- /* @__PURE__ */ (0, V.jsx)(NE, { children: /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(AE, {label: "连接方式",- children: /* @__PURE__ */ (0, V.jsx)(CM, {+ children: /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "连接方式",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: nye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: Yve.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e,children: t}, e))})}) }),- T ? /* @__PURE__ */ (0, V.jsxs)(PE, {+ T ? /* @__PURE__ */ (0, V.jsxs)(FE, {divided: !0,children: [n === "peach" ? /* @__PURE__ */ (0, V.jsx)("span", {className: "self-start",- children: /* @__PURE__ */ (0, V.jsx)(jE, {+ children: /* @__PURE__ */ (0, V.jsx)(ME, {href: "/configuration#peachProxy",size: "small",- trailingIcon: sT,+ trailingIcon: cT,children: "配置 Peach 代理"})}) : null,@@ -49295,20 +49209,20 @@ function iye({ source: e, toast: t }) {className: "text-body-2-regular text-text-secondary",children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"}),- /* @__PURE__ */ (0, V.jsx)(Zk, {+ /* @__PURE__ */ (0, V.jsx)(Qk, {"aria-label": "提供 Cookie 的方式(二选一)",value: c,onChange: (e) => {l(e), h();},- className: Qk,- children: rR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(_k, {+ className: $k,+ children: rR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {value: e,- className: $k,+ className: eA,children: t}, e))}),- c === "paste" ? /* @__PURE__ */ (0, V.jsx)(HM, {+ c === "paste" ? /* @__PURE__ */ (0, V.jsx)(WM, {type: "password",label: "Cookie",autoComplete: "off",@@ -49317,7 +49231,7 @@ function iye({ source: e, toast: t }) {}) : /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(RE, { children: "Netscape Cookie 文件(.txt)" }),+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "Netscape Cookie 文件(.txt)" }),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-3",children: [/* @__PURE__ */ (0, V.jsx)(J, {@@ -49343,14 +49257,14 @@ function iye({ source: e, toast: t }) {]})] }) : null,- C ? /* @__PURE__ */ (0, V.jsx)(LE, { children: C }) : null,+ C ? /* @__PURE__ */ (0, V.jsx)(RE, { children: C }) : null,w.map((t) => /* @__PURE__ */ (0, V.jsx)(Y, {tone: t.ok ? "success" : "error",- children: tye(t, e.label)+ children: Jve(t, e.label)}, t.label))]}) : null,- /* @__PURE__ */ (0, V.jsxs)(FE, { children: [+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",onClick: b,@@ -49372,8 +49286,8 @@ function iye({ source: e, toast: t }) {]});}-function aye({ toast: e }) {- let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = EM({+function Qve({ toast: e }) {+ let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = OM({queryKey: QL,queryFn: ({ signal: e }) => tR(e),start: () => K(XL, { code: t }),@@ -49383,15 +49297,15 @@ function aye({ toast: e }) {}), o = (e) => {e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();}, s = a.error ? W(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";- return /* @__PURE__ */ (0, V.jsx)(ME, {+ return /* @__PURE__ */ (0, V.jsx)(NE, {title: "高清封面",onSubmit: o,- children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [+ children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(HM, {+ children: /* @__PURE__ */ (0, V.jsx)(WM, {"aria-label": "馆藏番号",isRequired: !0,isDisabled: r,@@ -49406,7 +49320,7 @@ function aye({ toast: e }) {children: "抓取封面"})]}),- r ? /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在抓取封面" }) : null,+ r ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在抓取封面" }) : null,s ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",children: s@@ -49418,11 +49332,11 @@ function aye({ toast: e }) {] })});}-function oye({ toast: e }) {- let { query: t, running: n, outcome: r, start: i } = EM({+function $ve({ toast: e }) {+ let { query: t, running: n, outcome: r, start: i } = OM({queryKey: $L,queryFn: ({ signal: e }) => nR(e),- start: () => K($ve, {}),+ start: () => K(Kve, {}),jobOf: (e) => e.job,withJob: (e, t) => e && {...e,@@ -49431,45 +49345,45 @@ function oye({ toast: e }) {onFinish: (t) => {t.status === "complete" && e(t.result || "amane 桥已重建");}- }), a = DS({ mutationFn: () => K(Qve, {}) }), o = t.data;- if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(ME, {+ }), a = OS({ mutationFn: () => K(Gve, {}) }), o = t.data;+ if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(NE, {title: "amane",- children: /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ children: /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",children: W(t.error)}) })}) : null;let s = n || i.isPending || a.isPending, c = i.error ? W(i.error) : a.error ? W(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "amane",- aside: /* @__PURE__ */ (0, V.jsx)(zE, {+ aside: /* @__PURE__ */ (0, V.jsx)(BE, {href: o.repository,- leadingIcon: rye,+ leadingIcon: Xve,children: o.repository}),children: [- /* @__PURE__ */ (0, V.jsxs)(BE, { children: [- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsxs)(VE, { children: [+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "已安装版本",children: o.installed_version || "未安装"}),- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "上游最新版本",children: a.data?.latest ?? "尚未检查"}),- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "运行环境",children: o.installed ? "已安装" : "未安装"}),- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "内置站点",children: o.sites.map((e) => e.label).join("、")})] }),- /* @__PURE__ */ (0, V.jsxs)(PE, {+ /* @__PURE__ */ (0, V.jsxs)(FE, {divided: !0,children: [- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["已安装版本:",o.installed_version || "未安装","。amane(",@@ -49478,7 +49392,7 @@ function oye({ toast: e }) {o.version," 版本,不随上游自动升级。"] }),- n ? /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在重建运行环境" }) : null,+ n ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在重建运行环境" }) : null,c ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",children: c@@ -49489,7 +49403,7 @@ function oye({ toast: e }) {}) : null]}),- /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",onClick: () => {s || a.mutate();@@ -49506,23 +49420,23 @@ function oye({ toast: e }) {]});}-function sye({ toast: e }) {- let t = wS({+function eye({ toast: e }) {+ let t = TS({queryKey: ZL,queryFn: ({ signal: e }) => eR(e)}), n = t.data;- return n ? /* @__PURE__ */ (0, V.jsxs)(wE, { children: [+ return n ? /* @__PURE__ */ (0, V.jsxs)(TE, { children: [/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "高清图片可能要经代理才能下载,先检查连接。"}),- /* @__PURE__ */ (0, V.jsx)(aye, { toast: e }),- (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(iye, {+ /* @__PURE__ */ (0, V.jsx)(Qve, { toast: e }),+ (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(Zve, {source: t,toast: e}, t.source)),- /* @__PURE__ */ (0, V.jsx)(oye, { toast: e })- ] }) : /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ /* @__PURE__ */ (0, V.jsx)($ve, { toast: e })+ ] }) : /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "采集来源读取失败",children: t.error ? W(t.error) : "读取采集来源失败"@@ -49537,7 +49451,7 @@ var aR = /* @__PURE__ */ new Set(["agency","series"]), oR = /* @__PURE__ */ new Set(["asset"]), sR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();-function cye({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {+function tye({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {let s = 0, c = [], l = (e) => {let t = {...e,@@ -49591,7 +49505,7 @@ function cye({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: aoptions: c};}-function lye(e, t, n = Math.random) {+function nye(e, t, n = Math.random) {let r = [...e];for (let e = r.length - 1; e > 0; --e) {let t = Math.floor(n() * (e + 1));@@ -49601,7 +49515,7 @@ function lye(e, t, n = Math.random) {}//#endregion//#region src/react/search/search-page.tsx-var uye = () => ({+var rye = () => ({history: [],pool: [],poolRequest: 0,@@ -49616,7 +49530,7 @@ var uye = () => ({active: -1,reveal: !1,rewind: !1-}), cR = (e) => cye({+}), cR = (e) => tye({query: e.query,history: e.history,picks: e.picks,@@ -49624,18 +49538,18 @@ var uye = () => ({groups: e.groups,tabs: e.tabs,kind: e.kind-}), dye = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), lR = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {+}), iye = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), lR = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })});-function fye(e) {+function aye(e) {let t = (0, B.useRef)(e);t.current = e;let n = (0, B.useRef)(null);- n.current ??= uye();+ n.current ??= rye();let r = n.current, i = (0, B.useRef)(null), [, a] = (0, B.useReducer)((e) => e + 1, 0), o = (0, B.useRef)(null);- o.current ??= pye(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);+ o.current ??= oye(() => 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();@@ -49648,7 +49562,7 @@ function fye(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 = cR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(hye, {+ let c = cR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(cye, {entry: t,active: t.index === r.active,helpers: e.helpers,@@ -49668,7 +49582,7 @@ function fye(e) {"data-search-root": "","data-history-limit": l,children: [- c.tabs ? /* @__PURE__ */ (0, V.jsx)(mye, {+ c.tabs ? /* @__PURE__ */ (0, V.jsx)(sye, {tabs: c.tabs,kind: r.kind,onPick: s.pickKind,@@ -49689,7 +49603,7 @@ function fye(e) {]});}-function pye(e, t, n, r) {+function oye(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 () => {@@ -49736,9 +49650,9 @@ function pye(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 ? [] : lye(t.pool, o()), t.active = -1;+ t.query = i().value.trim(), t.picks = t.query ? [] : nye(t.pool, o()), t.active = -1;let a = n();- a && (dye(cR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();+ a && (iye(cR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();}, h = () => {t.active = -1, t.kind = "", clearTimeout(t.timer);let e = i().value.trim();@@ -49820,7 +49734,7 @@ function pye(e, t, n, r) {pickKind: g};}-function mye({ tabs: e, kind: t, onPick: n, wire: r }) {+function sye({ tabs: e, kind: t, onPick: n, wire: r }) {let i = (0, B.useRef)(null);(0, B.useLayoutEffect)(() => {r(i.current);@@ -49843,7 +49757,7 @@ function mye({ tabs: e, kind: t, onPick: n, wire: r }) {});}var uR = (e) => e.preventDefault();-function hye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {+function cye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {let o = {"data-search-value": e.value,"data-active": t ? "" : void 0,@@ -49974,7 +49888,7 @@ function fR({ item: e, kind: t }) {}//#endregion//#region src/configuration-endpoints.ts-var pR = "/api/configuration", gye = "/api/pick-folder", mR = ["configuration"], hR = (e) => G(pR, e);+var pR = "/api/configuration", lye = "/api/pick-folder", mR = ["configuration"], hR = (e) => G(pR, e);async function gR(e) {await z.fetchQuery({queryKey: mR,@@ -49996,41 +49910,41 @@ function vR(e) {//#endregion//#region src/react/settings/indexer-settings.tsxvar yR = "/api/configuration/indexers";-function _ye({ receipt: e }) {- let t = wS({+function uye({ receipt: e }) {+ let t = TS({queryKey: ["indexers"],queryFn: ({ signal: e }) => G(yR, e)});- return t.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(vye, {+ return t.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(dye, {initial: t.data,receipt: e}) : null;}-function vye({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e.indexers), i = DE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {+function dye({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e.indexers), i = OE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,...t} : n));- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "资源索引器",onSubmit: (e) => {e.preventDefault(), i.run("save", (e) => K(yR, { indexers: n }, "POST", e), (e) => {r(e.indexers), t("已保存索引器");});},- children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [- /* @__PURE__ */ (0, V.jsx)(IE, { children: "接入 Prowlarr 或 Jackett 后可以按番号搜磁力。Torznab 地址在 Prowlarr 每个索引器的详情里, API key 在 Settings → General。" }),+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "接入 Prowlarr 或 Jackett 后可以按番号搜磁力。Torznab 地址在 Prowlarr 每个索引器的详情里, API key 在 Settings → General。" }),n.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",children: [- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: `索引器 ${t + 1} 名称`,value: e.name,maxLength: 80,isDisabled: !!i.busy,onChange: (t) => a(e.key, { name: t })}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: `索引器 ${t + 1} Torznab 地址`,value: e.url,type: "url",@@ -50039,7 +49953,7 @@ function vye({ initial: e, receipt: t }) {isDisabled: !!i.busy,onChange: (t) => a(e.key, { url: t })}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: `索引器 ${t + 1} API key`,type: "password",autoComplete: "new-password",@@ -50048,13 +49962,13 @@ function vye({ initial: e, receipt: t }) {isDisabled: !!i.busy,onChange: (t) => a(e.key, { api_key: t })}),- /* @__PURE__ */ (0, V.jsx)(AM, {+ /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: e.enabled,isDisabled: !!i.busy,onChange: (t) => a(e.key, { enabled: t }),children: "启用"}),- e.api_key_set ? /* @__PURE__ */ (0, V.jsx)(AM, {+ e.api_key_set ? /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: !!e.clear_api_key,isDisabled: !!i.busy,onChange: (t) => a(e.key, { clear_api_key: t }),@@ -50068,8 +49982,8 @@ function vye({ initial: e, receipt: t }) {}) })]}, e.key)),- i.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: i.error }) : null- ] }), /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {+ i.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.error }) : null+ ] }), /* @__PURE__ */ (0, V.jsxs)(IE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {type: "button",disabled: !!i.busy || n.length >= e.max_indexers,onClick: () => r([...n, {@@ -50089,24 +50003,24 @@ function vye({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/download-settings.tsx-var yye = "/api/configuration/downloads", bR = "/api/configuration/downloads/check", bye = "/api/configuration/downloads/folder", xye = "/api/configuration/downloads/pikpak/login", Sye = "/api/configuration/downloads/pikpak/logout", xR = "/api/configuration/downloads/pikpak/browser-login", SR = 2e3;-function Cye({ initial: e, receipt: t, panel: n }) {+var fye = "/api/configuration/downloads", bR = "/api/configuration/downloads/check", pye = "/api/configuration/downloads/folder", mye = "/api/configuration/downloads/pikpak/login", hye = "/api/configuration/downloads/pikpak/logout", xR = "/api/configuration/downloads/pikpak/browser-login", SR = 2e3;+function gye({ initial: e, receipt: t, panel: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {...vR(n),- children: [/* @__PURE__ */ (0, V.jsx)(wye, {+ children: [/* @__PURE__ */ (0, V.jsx)(_ye, {initial: e,receipt: t- }), /* @__PURE__ */ (0, V.jsx)(_ye, { receipt: t })]+ }), /* @__PURE__ */ (0, V.jsx)(uye, { receipt: t })]});}-function wye({ initial: e, receipt: t }) {+function _ye({ initial: e, receipt: t }) {let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), o = n.pikpak.logged_in || !!i.trim();- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Tye, {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(vye, {state: n,settle: r,receipt: t,pikpakAccount: o- }), /* @__PURE__ */ (0, V.jsx)(Dye, {+ }), /* @__PURE__ */ (0, V.jsx)(bye, {state: n,settle: r,receipt: t,@@ -50114,8 +50028,8 @@ function wye({ initial: e, receipt: t }) {setUsername: a})] });}-function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {- let [i, a] = (0, B.useState)(e.config), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(String(e.config.wait_hours)), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(CR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = DE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({+function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {+ let [i, a] = (0, B.useState)(e.config), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(String(e.config.wait_hours)), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(CR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = OE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({...i,targets: {...i.targets,@@ -50145,7 +50059,7 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {root: !e.config.pikpak_root};b.run("auto", (e) => G(bR, e), (e) => w(e, t), (e) => _(W(e)));- }, []), /* @__PURE__ */ (0, V.jsxs)(ME, {+ }, []), /* @__PURE__ */ (0, V.jsxs)(NE, {title: "云下载",onSubmit: (e) => {if (e.preventDefault(), C) {@@ -50158,7 +50072,7 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {token: o,pikpak_account: r};- b.run("save", (e) => K(yye, f, "POST", e), (e) => {+ b.run("save", (e) => K(fye, 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,@@ -50168,9 +50082,9 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {}, (e) => _(W(e)));},children: [- /* @__PURE__ */ (0, V.jsxs)(PE, { children: [- /* @__PURE__ */ (0, V.jsx)(IE, { children: "磁力交给 115 或 PikPak 离线下载,下完自动入库。" }),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsxs)(FE, { children: [+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "磁力交给 115 或 PikPak 离线下载,下完自动入库。" }),+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "CloudDrive2 地址",placeholder: "留空自动探测本机 19798 / 29798",autoComplete: "off",@@ -50182,7 +50096,7 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {clouddrive_address: e})}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "CloudDrive2 API 令牌",type: "password",autoComplete: "off",@@ -50193,7 +50107,7 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {isDisabled: !e.available,onChange: s}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "115 目标目录",placeholder: "留空时按推送发现自动填写",autoComplete: "off",@@ -50205,7 +50119,7 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {isDisabled: !e.available,onChange: (e) => S("115", e)}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "PikPak 目标目录",placeholder: "以 / 开头的网盘路径",autoComplete: "off",@@ -50217,7 +50131,7 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(CM, {+ children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "PikPak 根目录对应的媒体文件夹",selectedKey: i.pikpak_root || null,isDisabled: !e.available,@@ -50226,13 +50140,13 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {...i,pikpak_root: e === null ? "" : String(e)}),- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e,children: e}, e))- }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "先在「媒体」分组添加 PikPak 挂载的文件夹,这里才能选。" })]+ }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "先在「媒体」分组添加 PikPak 挂载的文件夹,这里才能选。" })]}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "等待上限(小时)",type: "number",inputMode: "numeric",@@ -50243,11 +50157,11 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {onChange: l})] }),- b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(PE, {+ b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(FE, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在检查 CloudDrive2" })+ children: /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在检查 CloudDrive2" })}) : null,- u ? /* @__PURE__ */ (0, V.jsx)(Eye, {+ u ? /* @__PURE__ */ (0, V.jsx)(yye, {report: u,detected: f,suggested: m,@@ -50259,7 +50173,7 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {pikpak_root: i.pikpak_root,pikpak_account: r};- b.run("folder", (e) => K(bye, t, "POST", e), (t) => {+ b.run("folder", (e) => K(pye, t, "POST", e), (t) => {d(t), h((t) => ({...t,target: {@@ -50271,11 +50185,11 @@ function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {} : void 0,creating: b.busy === "folder"}) : null,- g || b.error ? /* @__PURE__ */ (0, V.jsx)(PE, {+ g || b.error ? /* @__PURE__ */ (0, V.jsx)(FE, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(LE, { children: g || b.error })+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: g || b.error })}) : null,- /* @__PURE__ */ (0, V.jsxs)(FE, {+ /* @__PURE__ */ (0, V.jsxs)(IE, {status: e.available ? void 0 : "云下载只在账本写入端可用。",children: [/* @__PURE__ */ (0, V.jsx)(J, {onClick: () => {@@ -50310,20 +50224,20 @@ var CR = {root: "",saved: !1};-function Eye({ report: e, detected: t, suggested: n, create: r, creating: i }) {+function yye({ report: e, detected: t, suggested: n, create: r, creating: i }) {let a = n.target;- return /* @__PURE__ */ (0, V.jsxs)(PE, {+ return /* @__PURE__ */ (0, V.jsxs)(FE, {divided: !0,- children: [/* @__PURE__ */ (0, V.jsxs)(BE, { children: [- t ? /* @__PURE__ */ (0, V.jsx)(VE, {+ children: [/* @__PURE__ */ (0, V.jsxs)(VE, { children: [+ t ? /* @__PURE__ */ (0, V.jsx)(HE, {term: "CloudDrive2 地址",children: `探测到 ${t},保存配置后生效`}) : null,- a?.exists ? /* @__PURE__ */ (0, V.jsx)(VE, {+ a?.exists ? /* @__PURE__ */ (0, V.jsx)(HE, {term: "115 目标目录",children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`}) : null,- a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(VE, {+ a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(HE, {term: "115 目标目录",children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, V.jsx)(J, {size: "small",@@ -50332,27 +50246,27 @@ function Eye({ report: e, detected: t, suggested: n, create: r, creating: i }) {children: "新建这个目录"}) : null]}) : null,- n.root ? /* @__PURE__ */ (0, V.jsx)(VE, {+ n.root ? /* @__PURE__ */ (0, V.jsx)(HE, {term: "PikPak 根目录",children: `按推送发现填入 ${n.root},保存配置后生效`}) : null,- e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(VE, {+ e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(HE, {term: "离线权限",children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"}) : null,- e.folder ? /* @__PURE__ */ (0, V.jsx)(VE, {+ e.folder ? /* @__PURE__ */ (0, V.jsx)(HE, {term: "目标目录",children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`}) : null,- e.quota ? /* @__PURE__ */ (0, V.jsx)(VE, {+ e.quota ? /* @__PURE__ */ (0, V.jsx)(HE, {term: "115 离线配额",children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`}) : null- ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(LE, { children: e }, e))]+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(RE, { children: e }, e))]});}-function Dye({ 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 = DE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";+function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {+ let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = OE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";(0, B.useEffect)(() => {if (!v) return;let e = new AbortController(), r, i = async () => {@@ -50384,7 +50298,7 @@ function Dye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {password: a,remember: s};- h.run("login", (e) => K(xye, i, "POST", e), (e) => {+ h.run("login", (e) => K(mye, i, "POST", e), (e) => {if (t(e.settings), f(""), !e.ok) {u(e.captcha_url ?? "");return;@@ -50392,11 +50306,11 @@ function Dye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {u(""), o(""), n("已登录 PikPak");}, (e) => f(W(e)));}, S = () => {- h.run("logout", (e) => K(Sye, {}, "POST", e), (e) => {+ h.run("logout", (e) => K(hye, {}, "POST", e), (e) => {t(e), f(""), n("已登出 PikPak");}, (e) => f(W(e)));}, C = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "账号",placeholder: "邮箱或手机号",autoComplete: "username",@@ -50405,7 +50319,7 @@ function Dye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {isDisabled: !e.available,onChange: i}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {label: "密码",type: "password",autoComplete: "current-password",@@ -50414,7 +50328,7 @@ function Dye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {isDisabled: !e.available,onChange: o}),- /* @__PURE__ */ (0, V.jsx)(AM, {+ /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: s,isDisabled: !e.available,onChange: c,@@ -50425,7 +50339,7 @@ function Dye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {title: "需要人机验证",extra: /* @__PURE__ */ (0, V.jsx)("div", {className: "pt-2",- children: /* @__PURE__ */ (0, V.jsx)(zE, {+ children: /* @__PURE__ */ (0, V.jsx)(BE, {href: l,children: "打开 PikPak 验证页"})@@ -50438,31 +50352,31 @@ function Dye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {...X(h.busy === "login"),children: "登录"}), T = _.state === "timeout" || _.state === "failed";- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "PikPak 账号",onSubmit: x,children: [- g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(BE, { children: [/* @__PURE__ */ (0, V.jsx)(VE, {+ g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(VE, { children: [/* @__PURE__ */ (0, V.jsx)(HE, {term: "账号",children: g.username || "已登录"- }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(VE, {+ }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(HE, {term: "登录方式",children: "浏览器登录,由 Peach 续期"- }) : /* @__PURE__ */ (0, V.jsx)(VE, {+ }) : /* @__PURE__ */ (0, V.jsx)(HE, {term: "密码",children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"- })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(PE, { children: [- /* @__PURE__ */ (0, V.jsx)(IE, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),- p ? T ? /* @__PURE__ */ (0, V.jsx)(LE, { children: p }) : /* @__PURE__ */ (0, V.jsx)(IE, {+ })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(FE, { children: [+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),+ p ? T ? /* @__PURE__ */ (0, V.jsx)(RE, { children: p }) : /* @__PURE__ */ (0, V.jsx)(LE, {role: "status",children: p}) : null,- /* @__PURE__ */ (0, V.jsx)(HE, {+ /* @__PURE__ */ (0, V.jsx)(UE, {summary: "用账号密码登录",children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-4",children: [- /* @__PURE__ */ (0, V.jsx)(IE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),C,/* @__PURE__ */ (0, V.jsx)("div", {className: "flex justify-end",@@ -50471,13 +50385,13 @@ function Dye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {]})})- ] }) : /* @__PURE__ */ (0, V.jsxs)(PE, { children: [/* @__PURE__ */ (0, V.jsx)(IE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),- d || h.error ? /* @__PURE__ */ (0, V.jsx)(PE, {+ ] }) : /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(LE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),+ d || h.error ? /* @__PURE__ */ (0, V.jsx)(FE, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(LE, { children: d || h.error })+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: d || h.error })}) : null,- /* @__PURE__ */ (0, V.jsx)(FE, {- status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(CE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,+ /* @__PURE__ */ (0, V.jsx)(IE, {+ status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(wE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,children: g.logged_in ? /* @__PURE__ */ (0, V.jsx)(J, {onClick: S,disabled: !e.available,@@ -50501,51 +50415,51 @@ function Dye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {}//#endregion//#region src/react/settings/maintenance-settings.tsx-var Oye = [+var xye = [["6", "每 6 小时"],["24", "每天"],["168", "每周"]];-function kye({ data: e, receipt: t, reopenTutorial: n, panel: r }) {+function Sye({ data: e, receipt: t, reopenTutorial: n, panel: r }) {return /* @__PURE__ */ (0, V.jsxs)("div", {...vR(r),children: [- /* @__PURE__ */ (0, V.jsx)(Mye, { facts: e.facts }),- /* @__PURE__ */ (0, V.jsx)(Aye, {+ /* @__PURE__ */ (0, V.jsx)(Tye, { facts: e.facts }),+ /* @__PURE__ */ (0, V.jsx)(Cye, {receipt: t,reopenTutorial: n}),- e.uninstall ? /* @__PURE__ */ (0, V.jsx)(Nye, {+ e.uninstall ? /* @__PURE__ */ (0, V.jsx)(Eye, {uninstall: e.uninstall,receipt: t}) : null]});}-function Aye({ receipt: e, reopenTutorial: t }) {- let n = DE();- return /* @__PURE__ */ (0, V.jsxs)(ME, {+function Cye({ receipt: e, reopenTutorial: t }) {+ let n = OE();+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "安装教程",- children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [/* @__PURE__ */ (0, V.jsx)(IE, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(LE, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),...X(n.busy === "reopen"),children: "重新打开教程"}) })]});}-function jye({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = DE(e.error), s = (r) => {+function wye({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = OE(e.error), s = (r) => {r.preventDefault(), e.available && o.run("save", (e) => K("/api/configuration/automatic-updates", {mode: n,interval_hours: i}, "POST", e), () => t("已保存配置"));}, c = e.available ? e.download_available ? "下载完成后在这里确认重启安装。" : void 0 : "自动更新需要由托盘管理的服务。";- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "自动更新",onSubmit: s,children: [- /* @__PURE__ */ (0, V.jsxs)(NE, { children: [- /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsxs)(PE, { children: [+ /* @__PURE__ */ (0, V.jsx)(AE, {label: "自动检查新版本",children: /* @__PURE__ */ (0, V.jsx)($I, {"aria-label": "自动检查新版本",@@ -50554,7 +50468,7 @@ function jye({ initial: e, receipt: t }) {onChange: (e) => r(e ? "check" : "off")})}),- /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsx)(AE, {label: "自动下载更新",children: /* @__PURE__ */ (0, V.jsx)($I, {"aria-label": "自动下载更新",@@ -50563,28 +50477,28 @@ function jye({ initial: e, receipt: t }) {onChange: (e) => r(e ? "download" : "check")})}),- /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsx)(AE, {label: "检查频率",description: c,- children: /* @__PURE__ */ (0, V.jsx)(CM, {+ children: /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "检查频率",selectedKey: String(i),isDisabled: !e.available,onSelectionChange: (e) => {e !== null && a(Number(e));},- children: Oye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: xye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e,children: t}, e))})})] }),- o.error ? /* @__PURE__ */ (0, V.jsx)(PE, {+ o.error ? /* @__PURE__ */ (0, V.jsx)(FE, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(LE, { children: o.error })+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: o.error })}) : null,- /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",disabled: !e.available,...X(o.busy === "save"),@@ -50593,22 +50507,22 @@ function jye({ initial: e, receipt: t }) {]});}-function Mye({ facts: e }) {- return /* @__PURE__ */ (0, V.jsxs)(ME, {+function Tye({ facts: e }) {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "运行信息",- children: [/* @__PURE__ */ (0, V.jsx)(BE, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(VE, {+ children: [/* @__PURE__ */ (0, V.jsx)(VE, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(HE, {term: e.term,- children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(zE, {+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(BE, {href: e.download_url,children: e.download_label}) : null]- }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(jE, {+ }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(ME, {href: "/diagnostics",children: "打开系统诊断"}) })]});}-function Nye({ uninstall: e, receipt: t }) {+function Eye({ uninstall: e, receipt: t }) {let [n, r] = (0, B.useState)(!1), [i, a] = (0, B.useState)(""), o = () => void Te({title: "卸载 Peach",danger: !0,@@ -50622,26 +50536,26 @@ function Nye({ uninstall: e, receipt: t }) {a(e.message);}}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {id: "uninstallPeach",title: "卸载 Peach",- children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [- e.available ? /* @__PURE__ */ (0, V.jsx)(IE, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,- /* @__PURE__ */ (0, V.jsx)(AM, {+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [+ e.available ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,+ /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: n,isDisabled: !e.full_available || !!i,onChange: r,children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"}),- /* @__PURE__ */ (0, V.jsx)(HE, {+ /* @__PURE__ */ (0, V.jsx)(UE, {summary: "数据目录",- children: c.map((e) => /* @__PURE__ */ (0, V.jsx)(vM, {+ children: c.map((e) => /* @__PURE__ */ (0, V.jsx)(bM, {path: e,className: "text-body-2-regular text-text-secondary",onRevealed: t}, e))})- ] }), /* @__PURE__ */ (0, V.jsx)(FE, {+ ] }), /* @__PURE__ */ (0, V.jsx)(IE, {status: s ? /* @__PURE__ */ (0, V.jsx)("p", {role: i ? "status" : void 0,children: s@@ -50664,16 +50578,16 @@ var wR = /* @__PURE__ */ new Set(["preparing","restarting","installing"-]), Pye = [+]), Dye = [65,67,90], TR = 120;-function Fye({ initial: e, initialJob: t }) {+function Oye({ initial: e, initialJob: t }) {let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(t || {state: "idle",progress: 0- }), [o, s] = (0, B.useState)(""), c = DE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = wR.has(i.state);+ }), [o, s] = (0, B.useState)(""), c = OE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = wR.has(i.state);(0, B.useEffect)(() => (u.current = !0, () => {u.current = !1;}), []);@@ -50719,57 +50633,57 @@ function Fye({ initial: e, initialJob: t }) {state: "error"}), c.setError(W(t));}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "检查更新",children: [- /* @__PURE__ */ (0, V.jsxs)(BE, { children: [- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsxs)(VE, { children: [+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "当前版本",children: n.current_version}),- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "安装方式",children: n.installation}),- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "更新通道",children: n.channel}),- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "最新版本",children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")})] }),- n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(PE, {+ n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(FE, {divided: !0,children: [- n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(IE, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,+ n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,n.state === "available" && !g ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "info",title: "有可用更新",children: n.message- }) : g || n.state === "error" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(IE, {+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, V.jsx)(RE, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(LE, {role: "status",children: n.message}),- i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: i.message }) : null,+ i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.message }) : null,i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, V.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(EE, {+ /* @__PURE__ */ (0, V.jsx)(DE, {label: "更新准备进度",value: i.progress,- stops: Pye+ stops: Dye}),- /* @__PURE__ */ (0, V.jsxs)(IE, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),- /* @__PURE__ */ (0, V.jsx)(IE, { children: _ })+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),+ /* @__PURE__ */ (0, V.jsx)(LE, { children: _ })]}) : null]}),- /* @__PURE__ */ (0, V.jsxs)(FE, {- status: /* @__PURE__ */ (0, V.jsx)(zE, {+ /* @__PURE__ */ (0, V.jsxs)(IE, {+ status: /* @__PURE__ */ (0, V.jsx)(BE, {href: n.release_url,children: "查看发布页"}),@@ -50796,28 +50710,28 @@ function Fye({ initial: e, initialJob: t }) {}//#endregion//#region src/react/settings/general-settings.tsx-function Iye({ data: e, receipt: t, panel: n }) {+function kye({ data: e, receipt: t, panel: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {...vR(n),children: [- e.startup ? /* @__PURE__ */ (0, V.jsx)(Lye, {+ e.startup ? /* @__PURE__ */ (0, V.jsx)(Aye, {startup: e.startup,receipt: t}) : null,- e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(jye, {+ e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(wye, {initial: e.automatic_updates,receipt: t}) : null,- e.updates ? /* @__PURE__ */ (0, V.jsx)(Fye, {+ e.updates ? /* @__PURE__ */ (0, V.jsx)(Oye, {initial: e.updates,initialJob: e.update_job}) : null]});}-function Lye({ 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 = DE(), l = e.available && !e.desktop_message;- return /* @__PURE__ */ (0, V.jsxs)(ME, {+function Aye({ startup: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e.enabled), [i, a] = (0, B.useState)(e.silent), [o, s] = (0, B.useState)(e.desktop), c = OE(), l = e.available && !e.desktop_message;+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "开机自启",onSubmit: (r) => {r.preventDefault(), e.available && c.run("save", (e) => K("/api/configuration/startup", {@@ -50827,8 +50741,8 @@ function Lye({ startup: e, receipt: t }) {}, "POST", e), () => t("已保存配置"));},children: [- /* @__PURE__ */ (0, V.jsxs)(NE, { children: [- /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsxs)(PE, { children: [+ /* @__PURE__ */ (0, V.jsx)(AE, {label: "开机后启动 Peach",children: /* @__PURE__ */ (0, V.jsx)($I, {"aria-label": "开机后启动 Peach",@@ -50837,7 +50751,7 @@ function Lye({ startup: e, receipt: t }) {onChange: r})}),- /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsx)(AE, {label: "静默启动",description: "开机后只显示托盘图标,不打开网页。",children: /* @__PURE__ */ (0, V.jsx)($I, {@@ -50847,7 +50761,7 @@ function Lye({ startup: e, receipt: t }) {onChange: a})}),- /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsx)(AE, {label: "在桌面创建快捷方式",description: e.desktop_message || "双击图标打开 Peach 网页。",children: /* @__PURE__ */ (0, V.jsx)($I, {@@ -50858,11 +50772,11 @@ function Lye({ startup: e, receipt: t }) {})})] }),- e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(PE, {+ e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(FE, {divided: !0,- children: [e.message ? /* @__PURE__ */ (0, V.jsx)(IE, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: c.error }) : null]+ children: [e.message ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",disabled: !e.available,...X(c.busy === "save"),@@ -50873,7 +50787,7 @@ function Lye({ startup: e, receipt: t }) {}//#endregion//#region src/react/restart-redirect.ts-var Rye = 8e3, zye = [+var jye = 8e3, Mye = [{name: "机械硬盘,或内存 8 GB 以内",cache: "10–20 GiB",@@ -50892,33 +50806,33 @@ var Rye = 8e3, zye = [read: "256 / 128 KB",task: "2 个起步"}-], Bye = [+], Nye = [["cache", "缓存上限"],["read", "读取长度(默认 / 最小)"],["task", "同时处理视频"]];-function Vye() {+function Pye() {return /* @__PURE__ */ (0, V.jsx)("div", {className: "@container flex flex-col gap-3",- children: /* @__PURE__ */ (0, V.jsxs)(HE, {+ children: /* @__PURE__ */ (0, V.jsxs)(UE, {summary: "CloudDrive 设置帮助",children: [- /* @__PURE__ */ (0, V.jsxs)(IE, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(zE, {+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(BE, {href: "https://www.clouddrive2.com/help.html",children: "挂载帮助"})] }),- /* @__PURE__ */ (0, V.jsx)(IE, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),+ /* @__PURE__ */ (0, V.jsx)(LE, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),/* @__PURE__ */ (0, V.jsx)("ul", {"aria-label": "按缓存所在硬盘分档",className: "flex flex-col gap-2",- children: zye.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {+ children: Mye.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-medium text-text-primary",children: e.name}), /* @__PURE__ */ (0, V.jsx)("dl", {className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",- children: Bye.map(([t, n]) => /* @__PURE__ */ (0, V.jsxs)("div", {+ children: Nye.map(([t, n]) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col",children: [/* @__PURE__ */ (0, V.jsx)("dt", {className: "text-caption-1-regular text-text-secondary",@@ -50939,9 +50853,9 @@ function Vye() {/* @__PURE__ */ (0, V.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })]}),- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [+ /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["三处缓存的分工、往上调的方法和这些起步值的来源在",- /* @__PURE__ */ (0, V.jsx)(zE, {+ /* @__PURE__ */ (0, V.jsx)(BE, {href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",children: "CloudDrive 配置与调优"}),@@ -50953,7 +50867,7 @@ function Vye() {}//#endregion//#region src/react/settings/folder-rows.tsx-function Hye({ className: e }) {+function Fye({ className: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -50970,8 +50884,8 @@ var ER = [["local", "本地磁盘"],["115", "CloudDrive · 115"],["pikpak", "CloudDrive · PikPak"]-], DR = (e) => Se[e] || "database", Uye = (e) => e === "115" || e === "pikpak";-function Wye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {+], DR = (e) => Se[e] || "database", Iye = (e) => e === "115" || e === "pikpak";+function Lye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {let [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)([]), [l, u] = (0, B.useState)(null), [d, f] = (0, B.useState)(null), p = (0, B.useRef)(!1), m = (0, B.useRef)([]);(0, B.useLayoutEffect)(() => {l !== null && (m.current[l]?.focus(), u(null));@@ -51014,14 +50928,14 @@ function Wye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:}};}-function Gye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {+function Rye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {return /* @__PURE__ */ (0, V.jsxs)("div", {"data-folder-row": !0,className: "@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex items-start gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {className: "min-w-0 flex-1","aria-label": e,placeholder: "本机文件夹路径",@@ -51036,14 +50950,14 @@ function Gye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,className: "flex h-10 shrink-0 items-center",children: c}) : null,- /* @__PURE__ */ (0, V.jsx)(_M, {- icon: Hye,+ /* @__PURE__ */ (0, V.jsx)(yM, {+ icon: Fye,"aria-label": "选择文件夹",onClick: o,...X(a)}),- s ? /* @__PURE__ */ (0, V.jsx)(_M, {- icon: dT,+ s ? /* @__PURE__ */ (0, V.jsx)(yM, {+ icon: fT,"aria-label": "移除这个文件夹",onClick: s}) : null@@ -51054,23 +50968,23 @@ function Gye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,})]});}-function Kye({ index: e, value: t, onChange: n, options: r = ER }) {- return /* @__PURE__ */ (0, V.jsx)(CM, {+function zye({ index: e, value: t, onChange: n, options: r = ER }) {+ return /* @__PURE__ */ (0, V.jsx)(TM, {className: "w-full @lg:w-60","aria-label": `媒体来源 ${e + 1}`,selectedKey: t,onSelectionChange: (e) => {e !== null && n(String(e));},- children: r.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)(wM, {+ children: r.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)(EM, {id: e,textValue: t,- children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: DR(e) }), t]+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: DR(e) }), t]}, e))});}-function qye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {- return /* @__PURE__ */ (0, V.jsx)(HM, {+function Bye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {+ return /* @__PURE__ */ (0, V.jsx)(WM, {label: n,placeholder: r,value: e,@@ -51123,13 +51037,13 @@ var OR = [["star", "收藏"],["tags", "主题"]];-function Jye(e) {+function Vye(e) {let t = e === "local" ? "" : Se[e];return t ? [t, "自动识别"] : ["hard-drive", "默认"];}var kR = "auto";-function Yye({ 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] = Jye(n);+function Hye({ value: e, label: t, kind: n = "local", onChange: r }) {+ let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(e), [l, u] = Vye(n);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J, {ref: i,variant: "secondary",@@ -51143,34 +51057,34 @@ function Yye({ value: e, label: t, kind: n = "local", onChange: r }) {children: /* @__PURE__ */ (0, V.jsxs)("span", {"data-icon-choice": !0,className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: e || l }), ((e) => e && OR.find(([t]) => t === e)?.[1] || u)(e)]+ children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: e || l }), ((e) => e && OR.find(([t]) => t === e)?.[1] || u)(e)]})- }), /* @__PURE__ */ (0, V.jsx)(QO, {+ }), /* @__PURE__ */ (0, V.jsx)($O, {triggerRef: i,isOpen: a,onOpenChange: o,placement: "bottom start",offset: 4,- className: sM,- children: /* @__PURE__ */ (0, V.jsxs)(lk, {+ className: lM,+ children: /* @__PURE__ */ (0, V.jsxs)(uk, {"aria-label": `${t}候选`,className: "flex w-72 flex-col gap-3 outline-none",children: [- /* @__PURE__ */ (0, V.jsx)(ND, {+ /* @__PURE__ */ (0, V.jsx)(PD, {slot: "title",className: "px-1 text-body-medium text-text-primary",children: "选择媒体库图标"}),- /* @__PURE__ */ (0, V.jsx)(gk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": "候选图标",value: s || kR,onChange: (e) => c(e === kR ? "" : e),className: "inline-grid grid-cols-7 gap-1",- children: OR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(_k, {+ children: OR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {value: e || kR,"aria-label": e ? t : u,className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",- children: /* @__PURE__ */ (0, V.jsx)(UE, { mark: e || l })+ children: /* @__PURE__ */ (0, V.jsx)(WE, { mark: e || l })}, e || kR))}),/* @__PURE__ */ (0, V.jsxs)("div", {@@ -51193,9 +51107,9 @@ function Yye({ value: e, label: t, kind: n = "local", onChange: r }) {}//#endregion//#region src/react/settings/push-discovery-settings.tsx-var Xye = "/api/configuration/push-discovery", Zye = "/api/configuration/push-discovery/secret";-function Qye({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = DE(), l = hM(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {+var Uye = "/api/configuration/push-discovery", Wye = "/api/configuration/push-discovery/secret";+function Gye({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = OE(), l = _M(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {r(e), f(e), a(e.prefixes), s(""), t(n);}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {...n,@@ -51208,18 +51122,18 @@ function Qye({ initial: e, receipt: t }) {cloud: n.cloud,prefixes: i};- c.run("save", (e) => K(Xye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));+ c.run("save", (e) => K(Uye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));}, g = () => {- c.run("secret", (e) => K(Zye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));+ c.run("secret", (e) => K(Wye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));}, _ = () => {navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看配置」选中自己复制。"));}, v = `已入库 ${d.queue.ingested} 个文件` + (d.queue.pending ? `,队列里还有 ${d.queue.pending} 条` : ""), y = d.local_running ? `正在监视 ${d.local_roots.join("、")}` : d.local_message || "没有运行";- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "推送发现",onSubmit: h,children: [- /* @__PURE__ */ (0, V.jsxs)(NE, { children: [- /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsxs)(PE, { children: [+ /* @__PURE__ */ (0, V.jsx)(AE, {label: "新文件落地就入库",description: d.enabled ? v : void 0,children: /* @__PURE__ */ (0, V.jsx)($I, {@@ -51232,7 +51146,7 @@ function Qye({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsx)(AE, {label: "监视本机文件夹",description: d.enabled && d.watch_local ? y : void 0,children: /* @__PURE__ */ (0, V.jsx)($I, {@@ -51245,7 +51159,7 @@ function Qye({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsx)(AE, {label: "接收 CloudDrive2 通知",children: /* @__PURE__ */ (0, V.jsx)($I, {"aria-label": "接收 CloudDrive2 通知",@@ -51257,7 +51171,7 @@ function Qye({ initial: e, receipt: t }) {})})}),- d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(kE, {+ d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(AE, {label: "Webhook 配置",description: d.config_toml ? "贴进 CloudDrive2「设置 → Webhooks」,需要会员;更换密钥后要重贴。" : d.origin ? "还没有共享密钥,保存配置后生成。" : "要先有 CloudDrive2 能访问的 HTTPS 地址才能生成。",children: d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {@@ -51267,11 +51181,11 @@ function Qye({ initial: e, receipt: t }) {}) : null}) : null] }),- d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(PE, {+ d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(FE, {divided: !0,children: /* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-col gap-3",- children: /* @__PURE__ */ (0, V.jsxs)(HE, {+ children: /* @__PURE__ */ (0, V.jsxs)(UE, {summary: "查看配置",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "relative",@@ -51281,16 +51195,16 @@ function Qye({ initial: e, receipt: t }) {className: "overflow-x-auto rounded-2xl bg-background-tertiary-default p-3 text-caption-1-regular whitespace-pre text-text-primary",children: d.config_toml})- }), /* @__PURE__ */ (0, V.jsx)(IE, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]+ }), /* @__PURE__ */ (0, V.jsx)(LE, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]})})}) : null,- n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(PE, {+ n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(FE, {divided: !0,children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)(RE, { children: "云端路径前缀" }),+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "云端路径前缀" }),/* @__PURE__ */ (0, V.jsx)("div", {role: "group","aria-label": "云端路径前缀",@@ -51298,7 +51212,7 @@ function Qye({ initial: e, receipt: t }) {children: i.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex items-start gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {className: "min-w-0 flex-1","aria-label": `云端路径前缀 ${t + 1}`,placeholder: "/115",@@ -51307,19 +51221,19 @@ function Qye({ initial: e, receipt: t }) {value: e.prefix,onChange: (e) => m(t, { prefix: e })}),- /* @__PURE__ */ (0, V.jsx)(CM, {+ /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": `前缀 ${t + 1} 对应的媒体根`,selectedKey: e.root,onSelectionChange: (e) => {e !== null && m(t, { root: String(e) });},- children: u.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: u.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e,children: e}, e))}),- /* @__PURE__ */ (0, V.jsx)(_M, {- icon: dT,+ /* @__PURE__ */ (0, V.jsx)(yM, {+ icon: fT,"aria-label": "移除这一条",onClick: () => a((e) => e.filter((e, n) => n !== t))})@@ -51337,11 +51251,11 @@ function Qye({ initial: e, receipt: t }) {]})}) : null,- o || c.error ? /* @__PURE__ */ (0, V.jsx)(PE, {+ o || c.error ? /* @__PURE__ */ (0, V.jsx)(FE, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(LE, { children: o || c.error })+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: o || c.error })}) : null,- /* @__PURE__ */ (0, V.jsxs)(FE, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {onClick: g,disabled: !n.available,...X(c.busy === "secret"),@@ -51357,14 +51271,14 @@ function Qye({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/media-settings.tsx-var $ye = (e) => ER.find(([t]) => t === e)?.[1] ?? e, ebe = async (e) => (await K(gye, { initial: e })).path, AR = (e = "") => ({+var Kye = (e) => ER.find(([t]) => t === e)?.[1] ?? e, qye = async (e) => (await K(lye, { initial: e })).path, AR = (e = "") => ({path: e,location: "local",root: "",library: "",library_icon: ""});-function tbe(e) {+function Jye(e) {let t = e.media_sources?.filter((e) => ER.some(([t]) => t === e.location));return t?.length ? t.map((e) => ({path: e.path,@@ -51374,12 +51288,12 @@ function tbe(e) {library_icon: e.library_icon || ""})) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => AR(e));}-var nbe = (e) => !(e instanceof AS) || e.status !== 400 ? null : e.body?.errors ?? null;-function rbe({ data: e, receipt: t, panel: n }) {+var Yye = (e) => !(e instanceof jS) || e.status !== 400 ? null : e.body?.errors ?? null;+function Xye({ data: e, receipt: t, panel: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {...vR(n),children: [- e.editable ? /* @__PURE__ */ (0, V.jsx)(ibe, {+ e.editable ? /* @__PURE__ */ (0, V.jsx)(Zye, {data: e,receipt: t}) : /* @__PURE__ */ (0, V.jsx)(Y, {@@ -51387,24 +51301,24 @@ function rbe({ data: e, receipt: t, panel: n }) {title: "只读",children: e.notice}),- e.editable ? null : /* @__PURE__ */ (0, V.jsx)(abe, { data: e }),- e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Qye, {+ e.editable ? null : /* @__PURE__ */ (0, V.jsx)(Qye, { data: e }),+ e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Gye, {initial: e.push_discovery,receipt: t}) : null]});}-function ibe({ data: e, receipt: t }) {- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Wye({- initial: () => tbe(e),+function Zye({ data: e, receipt: t }) {+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Lye({+ initial: () => Jye(e),blank: () => AR(),- pickFolder: ebe,+ pickFolder: qye,describe: W- }), [d, f] = (0, B.useState)(String(e.port)), [p, m] = (0, B.useState)(!1), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(""), [y, b] = (0, B.useState)(null), x = (0, B.useRef)(e.revision), S = DE();+ }), [d, f] = (0, B.useState)(String(e.port)), [p, m] = (0, B.useState)(!1), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(""), [y, b] = (0, B.useState)(null), x = (0, B.useRef)(e.revision), S = OE();(0, B.useEffect)(() => {if (!y) return;- let e = setTimeout(() => location.assign(y.url), Rye);+ let e = setTimeout(() => location.assign(y.url), jye);return () => clearTimeout(e);}, [y]);let C = (r) => {@@ -51417,18 +51331,18 @@ function ibe({ data: e, receipt: t }) {}, "POST", t), (e) => {x.current = e.revision, s([]), g(""), t("已保存配置"), b(e);}, (e) => {- let t = nbe(e);+ let t = Yye(e);s(t?.media_dirs ?? []), g(t?.port ?? ""), t || v(W(e));});};- if (y) return /* @__PURE__ */ (0, V.jsx)(ME, {+ if (y) return /* @__PURE__ */ (0, V.jsx)(NE, {title: "这台电脑",- children: /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {+ children: /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {tone: "success",title: "配置已保存",children: ["Peach 正在重新启动。稍后自动跳转,或点击",- /* @__PURE__ */ (0, V.jsx)(jE, {+ /* @__PURE__ */ (0, V.jsx)(ME, {href: y.url,size: "small",children: "进入馆藏"@@ -51437,20 +51351,20 @@ function ibe({ data: e, receipt: t }) {]}) })});- let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Uye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Iye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "这台电脑",onSubmit: C,- children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)(RE, { children: "媒体文件夹" }),+ /* @__PURE__ */ (0, V.jsx)(zE, { children: "媒体文件夹" }),/* @__PURE__ */ (0, V.jsx)("div", {role: "group","aria-label": "媒体文件夹",className: "flex flex-col gap-3",- children: n.map((t, i) => /* @__PURE__ */ (0, V.jsxs)(Gye, {+ children: n.map((t, i) => /* @__PURE__ */ (0, V.jsxs)(Rye, {label: `媒体文件夹 ${i + 1}`,path: t.path,onPath: (e) => r(i, { path: e }),@@ -51461,12 +51375,12 @@ function ibe({ data: e, receipt: t }) {onRemove: n.length > 1 ? () => a(i) : void 0,status: w(t.path) ? /* @__PURE__ */ (0, V.jsx)(jR, { online: w(t.path)?.online }) : null,children: [- /* @__PURE__ */ (0, V.jsx)(Kye, {+ /* @__PURE__ */ (0, V.jsx)(zye, {index: i,value: t.location,onChange: (e) => r(i, { location: e })}),- /* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(WM, {className: "min-w-40 flex-1","aria-label": `媒体库名称 ${i + 1}`,maxLength: 80,@@ -51474,13 +51388,13 @@ function ibe({ data: e, receipt: t }) {value: t.library,onChange: (e) => r(i, { library: e })}),- /* @__PURE__ */ (0, V.jsx)(Yye, {+ /* @__PURE__ */ (0, V.jsx)(Hye, {label: `媒体库图标 ${i + 1}`,value: t.library_icon,kind: t.location,onChange: (e) => r(i, { library_icon: e })}),- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(qye, {+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Bye, {value: t.root,onChange: (e) => r(i, { root: e })}) : null@@ -51494,18 +51408,18 @@ function ibe({ data: e, receipt: t }) {})]}),- T ? /* @__PURE__ */ (0, V.jsx)(Vye, {}) : null,- E.map((e) => /* @__PURE__ */ (0, V.jsxs)(IE, { children: [+ T ? /* @__PURE__ */ (0, V.jsx)(Pye, {}) : null,+ E.map((e) => /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["未检测到 ",e.name,"。",- /* @__PURE__ */ (0, V.jsxs)(zE, {+ /* @__PURE__ */ (0, V.jsxs)(BE, {href: e.download_url,children: ["下载 ", e.name]})] }, e.name)),- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(IE, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,- e.port_editable === !1 ? null : /* @__PURE__ */ (0, V.jsx)(HM, {+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, V.jsx)(WM, {id: "configPort",label: "本机访问端口",inputMode: "numeric",@@ -51515,7 +51429,7 @@ function ibe({ data: e, receipt: t }) {isInvalid: !!h,hint: h || "浏览器地址里冒号后面的数字,一般不用改。"}),- /* @__PURE__ */ (0, V.jsx)(AM, {+ /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: p,onChange: m,children: "保存后扫描并补全资料"@@ -51525,7 +51439,7 @@ function ibe({ data: e, receipt: t }) {title: "没有保存",children: _}) : null- ] }), /* @__PURE__ */ (0, V.jsx)(FE, {+ ] }), /* @__PURE__ */ (0, V.jsx)(IE, {status: e.port_editable === !1 ? void 0 : "保存后 Peach 会重新启动,端口改了就用新地址打开。",children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",@@ -51559,20 +51473,20 @@ function jR({ online: e }) {}), "未检测"]});}-function abe({ data: e }) {- let t = e.media_sources, n = DE();- return t ? /* @__PURE__ */ (0, V.jsxs)(ME, {+function Qye({ data: e }) {+ let t = e.media_sources, n = OE();+ return t ? /* @__PURE__ */ (0, V.jsxs)(NE, {title: "挂载状态",children: [- /* @__PURE__ */ (0, V.jsx)(BE, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(VE, {- term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: DR(e.location) }), $ye(e.location)] }),+ /* @__PURE__ */ (0, V.jsx)(VE, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(HE, {+ term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: DR(e.location) }), Kye(e.location)] }),children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, V.jsx)(jR, { online: e.online })]}, t)) }),- n.error ? /* @__PURE__ */ (0, V.jsx)(PE, {+ n.error ? /* @__PURE__ */ (0, V.jsx)(FE, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(LE, { children: n.error })+ children: /* @__PURE__ */ (0, V.jsx)(RE, { children: n.error })}) : null,- /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {onClick: () => void n.run("refresh", (e) => hR(e), (e) => z.setQueryData(mR, e)),...X(n.busy === "refresh"),children: "刷新挂载状态"@@ -51582,8 +51496,8 @@ function abe({ data: e }) {}//#endregion//#region src/react/settings/password-pair.tsx-function obe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(HM, {+function $ye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WM, {id: "access-password",type: "password",label: e,@@ -51596,7 +51510,7 @@ function obe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmavalidationBehavior: "aria",isInvalid: !a && !!o,hint: a ? s : o || s- }), /* @__PURE__ */ (0, V.jsx)(HM, {+ }), /* @__PURE__ */ (0, V.jsx)(WM, {id: "access-confirm",type: "password",label: "确认访问密码",@@ -51613,13 +51527,13 @@ function obe({ label: e, password: t, confirmation: n, onPassword: r, onConfirma}//#endregion//#region src/react/settings/access-settings.tsx-var sbe = {+var ebe = {legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",locked: "访问设置无法读取,请在本机检查配置文件。",password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"};-function cbe({ 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 = DE(), g = (e) => {+function tbe({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)({}), m = (0, B.useRef)(null), h = OE(), g = (e) => {e.preventDefault();let f = {};if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {@@ -51636,28 +51550,28 @@ function cbe({ initial: e, receipt: t }) {}, "POST", e), (e) => {r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");}, (e) => {- let t = e instanceof AS ? e.body : null, n = t?.errors || t?.detail?.errors;+ let t = e instanceof jS ? e.body : null, n = t?.errors || t?.detail?.errors;n ? p(n) : h.setError(W(e));});- }, _ = sbe[n.mode], v = n.mode !== "locked";- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ }, _ = ebe[n.mode], v = n.mode !== "locked";+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "访问密码",onSubmit: g,children: [/* @__PURE__ */ (0, V.jsx)("div", {ref: m,- children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [- _ ? /* @__PURE__ */ (0, V.jsx)(IE, { children: _ }) : null,+ children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [+ _ ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _ }) : null,n.mode === "open" ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "warning",title: "未设置访问密码",children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"}) : null,- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, V.jsx)(AM, {+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, V.jsx)(MM, {isSelected: u,onChange: d,children: "关闭访问密码"}) : null,- n.mode === "password" ? /* @__PURE__ */ (0, V.jsx)(HM, {+ n.mode === "password" ? /* @__PURE__ */ (0, V.jsx)(WM, {id: "access-current",type: "password",label: "当前访问密码",@@ -51670,7 +51584,7 @@ function cbe({ initial: e, receipt: t }) {isInvalid: !!f.current_password,hint: f.current_password}) : null,- v ? /* @__PURE__ */ (0, V.jsx)(obe, {+ v ? /* @__PURE__ */ (0, V.jsx)($ye, {label: n.mode === "password" ? "新访问密码" : "设置访问密码",password: o,confirmation: c,@@ -51686,9 +51600,9 @@ function cbe({ initial: e, receipt: t }) {title: "访问范围",children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"}) : null,- h.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: h.error }) : null+ h.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: h.error }) : null] })- }), v ? /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ }), v ? /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",...X(h.busy === "save"),children: "保存配置"@@ -51697,15 +51611,15 @@ function cbe({ initial: e, receipt: t }) {}//#endregion//#region src/configuration-copy.ts-var lbe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", ube = "只填域名,留空用默认地址";+var nbe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", rbe = "只填域名,留空用默认地址";//#endregion//#region src/react/settings/entry-links-settings.tsx-function dbe({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e.sites), i = DE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {+function ibe({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e.sites), i = OE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,host: t} : n));- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "外部入口",onSubmit: (e) => {e.preventDefault();@@ -51714,9 +51628,9 @@ function dbe({ initial: e, receipt: t }) {r(e.sites), t("已保存配置");});},- children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [- /* @__PURE__ */ (0, V.jsx)(IE, { children: lbe }),- n.map((e) => /* @__PURE__ */ (0, V.jsx)(HM, {+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [+ /* @__PURE__ */ (0, V.jsx)(LE, { children: nbe }),+ n.map((e) => /* @__PURE__ */ (0, V.jsx)(WM, {id: `entry-link-${e.key}`,label: `${e.label} 地址`,autoComplete: "off",@@ -51725,10 +51639,10 @@ function dbe({ initial: e, receipt: t }) {placeholder: e.default_host,onChange: (t) => a(e.key, t),validationBehavior: "aria",- hint: ube+ hint: rbe}, e.key)),- i.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: i.error }) : null- ] }), /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ i.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.error }) : null+ ] }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",...X(i.busy === "save"),children: "保存配置"@@ -51737,19 +51651,19 @@ function dbe({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/tunnel-settings.tsx-var fbe = 2e3, pbe = [["quick", "临时链接"], ["named", "命名隧道"]], mbe = {+var abe = 2e3, obe = [["quick", "临时链接"], ["named", "命名隧道"]], sbe = {quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"};-function hbe({ 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 = DE(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";+function cbe({ revision: e, initial: t, receipt: n }) {+ let [r, i] = (0, B.useState)(t), [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)(t.mode), [l, u] = (0, B.useState)(t.hostname), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)({}), h = OE(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";(0, B.useEffect)(() => {if (r.state !== "starting") return;let e = new AbortController(), t = window.setInterval(() => {hR(e.signal).then((t) => {e.signal.aborted || !t.tunnel || (z.setQueryData(mR, t), i(t.tunnel), o(t.revision));}).catch(() => void 0);- }, fbe);+ }, abe);return () => {e.abort(), window.clearInterval(t);};@@ -51764,30 +51678,30 @@ function hbe({ 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 AS ? e.body : null, n = t?.errors || t?.detail?.errors;+ let t = e instanceof jS ? e.body : null, n = t?.errors || t?.detail?.errors;n ? m(n) : h.setError(W(e));});};- return /* @__PURE__ */ (0, V.jsxs)(ME, {+ return /* @__PURE__ */ (0, V.jsxs)(NE, {title: "Cloudflare 公网入口",onSubmit: (e) => {e.preventDefault(), v("save", g, () => n("已保存配置"));},- children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [- r.named_available ? /* @__PURE__ */ (0, V.jsx)(Zk, {+ children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [+ r.named_available ? /* @__PURE__ */ (0, V.jsx)(Qk, {"aria-label": "公网入口的形态(二选一)",value: s,isDisabled: g,onChange: (e) => c(e),- className: Qk,- children: pbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(_k, {+ className: $k,+ children: obe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {value: e,- className: $k,+ className: eA,children: t}, e))}) : null,- /* @__PURE__ */ (0, V.jsx)(IE, { children: mbe[_ ? "named" : "quick"] }),- _ ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(HM, {+ /* @__PURE__ */ (0, V.jsx)(LE, { children: sbe[_ ? "named" : "quick"] }),+ _ ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WM, {id: "tunnel-hostname",label: "公开主机名",autoComplete: "off",@@ -51798,7 +51712,7 @@ function hbe({ revision: e, initial: t, receipt: n }) {validationBehavior: "aria",isInvalid: !!p.hostname,hint: p.hostname || "Cloudflare Zero Trust 里指向这台电脑的主机名。"- }), /* @__PURE__ */ (0, V.jsx)(HM, {+ }), /* @__PURE__ */ (0, V.jsx)(WM, {id: "tunnel-token",type: "password",label: "隧道令牌",@@ -51818,7 +51732,7 @@ function hbe({ revision: e, initial: t, receipt: n }) {r.state === "running" && r.url ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "info",title: "公网地址",- children: /* @__PURE__ */ (0, V.jsx)(zE, {+ children: /* @__PURE__ */ (0, V.jsx)(BE, {href: r.url,children: r.url})@@ -51828,9 +51742,9 @@ function hbe({ revision: e, initial: t, receipt: n }) {title: "正在连接",children: "正在等待 cloudflared 连上 Cloudflare 边缘。"}) : null,- r.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: r.error }) : null,- h.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: h.error }) : null- ] }), /* @__PURE__ */ (0, V.jsxs)(FE, {+ r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null,+ h.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: h.error }) : null+ ] }), /* @__PURE__ */ (0, V.jsxs)(IE, {status: r.enabled ? "Peach 重启后自动恢复。" : void 0,children: [/* @__PURE__ */ (0, V.jsx)(J, {onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),@@ -51846,28 +51760,28 @@ function hbe({ revision: e, initial: t, receipt: n }) {}//#endregion//#region src/react/settings/network-settings.tsx-var gbe = [+var lbe = [["environment", "系统代理"],["direct", "直连"],["proxy", "自定义"]];-function _be({ data: e, receipt: t, panel: n }) {+function ube({ data: e, receipt: t, panel: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {...vR(n),children: [- e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(vbe, {+ e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(dbe, {initial: e.peach_proxy,receipt: t}) : null,- e.entry_links ? /* @__PURE__ */ (0, V.jsx)(dbe, {+ e.entry_links ? /* @__PURE__ */ (0, V.jsx)(ibe, {initial: e.entry_links,receipt: t}) : null,- e.access ? /* @__PURE__ */ (0, V.jsx)(cbe, {+ e.access ? /* @__PURE__ */ (0, V.jsx)(tbe, {initial: e.access,receipt: t}) : null,- e.tunnel ? /* @__PURE__ */ (0, V.jsx)(hbe, {+ e.tunnel ? /* @__PURE__ */ (0, V.jsx)(cbe, {revision: e.revision,initial: e.tunnel,receipt: t@@ -51875,9 +51789,9 @@ function _be({ data: e, receipt: t, panel: n }) {]});}-function vbe({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = DE();- return /* @__PURE__ */ (0, V.jsxs)(ME, {+function dbe({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = OE();+ return /* @__PURE__ */ (0, V.jsxs)(NE, {id: "peachProxy",title: "Peach 代理",onSubmit: (e) => {@@ -51889,25 +51803,25 @@ function vbe({ initial: e, receipt: t }) {});},children: [- /* @__PURE__ */ (0, V.jsx)(NE, { children: /* @__PURE__ */ (0, V.jsx)(kE, {+ /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(AE, {label: "连接方式",description: "采集来源选「Peach 代理」时共用这里的连接方式。",- children: /* @__PURE__ */ (0, V.jsx)(CM, {+ children: /* @__PURE__ */ (0, V.jsx)(TM, {"aria-label": "连接方式",selectedKey: i,onSelectionChange: (e) => {e !== null && a(String(e));},- children: gbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {+ children: lbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {id: e,children: t}, e))})}) }),- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(PE, {+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(FE, {divided: !0,children: [- i === "proxy" ? /* @__PURE__ */ (0, V.jsx)(HM, {+ i === "proxy" ? /* @__PURE__ */ (0, V.jsx)(WM, {id: "peachProxyAddress",type: "password",label: "代理地址",@@ -51921,10 +51835,10 @@ function vbe({ initial: e, receipt: t }) {title: "需要选择连接方式",children: "已有来源的代理地址不同,请选择公共连接方式。"}) : null,- c.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: c.error }) : null+ c.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",...X(c.busy === "save"),children: "保存配置"@@ -51934,12 +51848,12 @@ function vbe({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/configuration-page.tsx-function ybe({ receipt: e, reopenTutorial: t, section: n = "" }) {- let r = wS({+function fbe({ receipt: e, reopenTutorial: t, section: n = "" }) {+ let r = TS({queryKey: mR,queryFn: ({ signal: e }) => hR(e)}), i = r.data;- return i ? /* @__PURE__ */ (0, V.jsx)(xbe, {+ return i ? /* @__PURE__ */ (0, V.jsx)(mbe, {data: i,receipt: e,reopenTutorial: t,@@ -51953,29 +51867,29 @@ function ybe({ receipt: e, reopenTutorial: t, section: n = "" }) {})});}-var bbe = 0;-function xbe({ data: e, receipt: t, reopenTutorial: n, section: r }) {- let [i] = (0, B.useState)(() => `board-tabs-${++bbe}`), [a, o] = (0, B.useState)(r), s = (0, B.useRef)([]), c = {+var pbe = 0;+function mbe({ data: e, receipt: t, reopenTutorial: n, section: r }) {+ let [i] = (0, B.useState)(() => `board-tabs-${++pbe}`), [a, o] = (0, B.useState)(r), s = (0, B.useRef)([]), c = {data: e,receipt: t}, l = !!(e.startup || e.automatic_updates || e.updates), u = !!(e.peach_proxy || e.entry_links || e.access || e.tunnel), d = e.downloads, f = [...l ? [{title: "通用",- body: (e) => /* @__PURE__ */ (0, V.jsx)(Iye, {+ body: (e) => /* @__PURE__ */ (0, V.jsx)(kye, {...c,panel: e})}] : [],{title: "媒体",- body: (e) => /* @__PURE__ */ (0, V.jsx)(rbe, {+ body: (e) => /* @__PURE__ */ (0, V.jsx)(Xye, {...c,panel: e})},...d ? [{title: "下载",- body: (e) => /* @__PURE__ */ (0, V.jsx)(Cye, {+ body: (e) => /* @__PURE__ */ (0, V.jsx)(gye, {initial: d,receipt: t,panel: e@@ -51983,14 +51897,14 @@ function xbe({ data: e, receipt: t, reopenTutorial: n, section: r }) {}] : [],...u ? [{title: "网络与访问",- body: (e) => /* @__PURE__ */ (0, V.jsx)(_be, {+ body: (e) => /* @__PURE__ */ (0, V.jsx)(ube, {...c,panel: e})}] : [],{title: "维护",- body: (e) => /* @__PURE__ */ (0, V.jsx)(kye, {+ body: (e) => /* @__PURE__ */ (0, V.jsx)(Sye, {...c,reopenTutorial: n,panel: e@@ -52046,35 +51960,35 @@ function MR(e, t, n, r) {}//#endregion//#region src/react/settings/configuration-summary.tsx-var Sbe = (e) => {+var hbe = (e) => {let t = e.updates;return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";};-function Cbe({ openConfiguration: e }) {- let t = wS({+function gbe({ openConfiguration: e }) {+ let t = TS({queryKey: mR,queryFn: ({ signal: e }) => hR(e)}), n = t.data;return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col",- children: [n ? /* @__PURE__ */ (0, V.jsxs)(BE, { children: [- /* @__PURE__ */ (0, V.jsx)(VE, {+ children: [n ? /* @__PURE__ */ (0, V.jsxs)(VE, { children: [+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "媒体库",children: `${n.library_count} 个`}),- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "端口",children: String(n.port)}),- /* @__PURE__ */ (0, V.jsx)(VE, {+ /* @__PURE__ */ (0, V.jsx)(HE, {term: "更新",- children: Sbe(n)+ children: hbe(n)})- ] }) : /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ ] }) : /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "配置读取失败",children: t.error ? W(t.error) : "未取得配置,请刷新页面重试。"- }) }), /* @__PURE__ */ (0, V.jsx)(FE, {+ }) }), /* @__PURE__ */ (0, V.jsx)(IE, {status: "媒体文件夹、端口、代理与更新在配置页上改。",children: /* @__PURE__ */ (0, V.jsx)(J, {onClick: e,@@ -52131,7 +52045,7 @@ function FR({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a ="aria-describedby": s});}-function wbe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {+function _be({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {let s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)({onStep: a,onSettle: o@@ -52166,7 +52080,7 @@ function wbe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet}//#endregion//#region src/react/settings-panel/glow-settings.tsx-var Tbe = [+var vbe = [["strength","强度",@@ -52193,7 +52107,7 @@ var Tbe = [100]];-function Ebe({ host: e, spot: i, index: a, glow: o }) {+function ybe({ host: e, spot: i, index: a, glow: o }) {let s = t[a], c = (0, B.useRef)(null), l = (0, B.useRef)(null), d = (0, B.useRef)(null), [f, p] = (0, B.useState)("all");(0, B.useLayoutEffect)(() => {let [e, t, n] = [@@ -52232,7 +52146,7 @@ function Ebe({ host: e, spot: i, index: a, glow: o }) {children: m})]}),- /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })+ /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })]}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "popmenu",@@ -52271,7 +52185,7 @@ function Ebe({ host: e, spot: i, index: a, glow: o }) {})]});}-function Dbe({ host: e }) {+function bbe({ host: e }) {let t = e.store.value.homeGlow, n = f(t.preset);return /* @__PURE__ */ (0, V.jsxs)("section", {"data-glow-setting": "",@@ -52290,7 +52204,7 @@ function Dbe({ host: e }) {children: d(t.preset)})]}),- /* @__PURE__ */ (0, V.jsx)(aS, {+ /* @__PURE__ */ (0, V.jsx)(oS, {store: e.store,label: "光晕配色"}),@@ -52301,7 +52215,7 @@ function Dbe({ host: e }) {}),/* @__PURE__ */ (0, V.jsx)("div", {"data-glow-fields": "",- children: Tbe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(wbe, {+ children: vbe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(_be, {field: r,label: i,max: a,@@ -52323,7 +52237,7 @@ function Dbe({ host: e }) {hidden: n,children: [/* @__PURE__ */ (0, V.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, V.jsx)("div", {"data-glow-stops": "",- children: i.map((n, r) => /* @__PURE__ */ (0, V.jsx)(Ebe, {+ children: i.map((n, r) => /* @__PURE__ */ (0, V.jsx)(ybe, {host: e,spot: n,index: r,@@ -52348,7 +52262,7 @@ function Dbe({ host: e }) {}//#endregion//#region src/react/settings-panel/number-setting.tsx-var Obe = {+var xbe = {batchSizeSetting: {min: 1,max: 200,@@ -52391,7 +52305,7 @@ var Obe = {}}, IR = (e) => `peach.number.${e}`;function LR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {- let a = Obe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);+ let a = xbe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);d.current ||= MR(Number(localStorage.getItem(IR(e))), o, s, n && n > 0 ? n : l);let [f, p] = (0, B.useState)(n ?? 0), [m, h] = (0, B.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, B.useState)(""), v = (0, B.useRef)(null), y = (0, B.useRef)(i);y.current = i, (0, B.useLayoutEffect)(() => {@@ -52470,7 +52384,7 @@ function LR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {//#endregion//#region src/react/sidebar/sidebar-order.tsfunction RR(e) {- let { mutate: t } = kj();+ let { mutate: t } = jj();return (0, B.useCallback)((n) => {e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });}, [e, t]);@@ -52485,8 +52399,8 @@ function zR(e, t, n, r) {}//#endregion//#region src/react/settings-panel/sidebar-order.tsx-var kbe = "__home__", BR = (e) => e === "" ? kbe : e;-function Abe({ host: e }) {+var Sbe = "__home__", BR = (e) => e === "" ? Sbe : e;+function Cbe({ host: e }) {let t = RR(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, B.useState)(null), [c, l] = (0, B.useState)(!1), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (e, r, i) => {let a = zR(n, e, r, i);a && t(a);@@ -52548,9 +52462,9 @@ function Abe({ host: e }) {/* @__PURE__ */ (0, V.jsx)("i", {"data-sidebar-grip": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "grip-vertical" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "grip-vertical" })}),- /* @__PURE__ */ (0, V.jsx)(eT, { name: a ?? "" }),+ /* @__PURE__ */ (0, V.jsx)(tT, { name: a ?? "" }),/* @__PURE__ */ (0, V.jsx)("b", { children: r })]}), /* @__PURE__ */ (0, V.jsxs)("span", {@@ -52564,7 +52478,7 @@ function Abe({ host: e }) {title: "上移",disabled: o === 0,onClick: () => _(e, -1),- children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-up" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-up" })}),/* @__PURE__ */ (0, V.jsx)("button", {type: "button",@@ -52574,7 +52488,7 @@ function Abe({ host: e }) {title: "下移",disabled: o === i.length - 1,onClick: () => _(e, 1),- children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })}),/* @__PURE__ */ (0, V.jsx)("button", {type: "button",@@ -52586,7 +52500,7 @@ function Abe({ host: e }) {onClick: () => {n.length > 1 && t(n.filter((t) => t !== e));},- children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "eye-off" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "eye-off" })})]})]@@ -52606,13 +52520,13 @@ function Abe({ host: e }) {ref: m,onClick: b,children: v ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(eT, { name: v[2] ?? "" }),+ /* @__PURE__ */ (0, V.jsx)(tT, { name: v[2] ?? "" }),/* @__PURE__ */ (0, V.jsx)("span", {"data-sidebar-add-label": "",children: v[1]}),- /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })- ] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部页面都已显示" })] })+ /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })+ ] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部页面都已显示" })] })}), a.length ? /* @__PURE__ */ (0, V.jsx)("div", {className: "popmenu","data-sidebar-add-menu": "",@@ -52630,7 +52544,7 @@ function Abe({ host: e }) {onClick: () => {s(BR(e)), y(), m.current?.focus();},- children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]+ children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]}, BR(e)))}) : null]}), /* @__PURE__ */ (0, V.jsx)("button", {@@ -52656,7 +52570,7 @@ var VR = [["关注", "ri-rss-line"],["安全", "ri-shield-check-line"],["这台电脑", "ri-macbook-line"]-], jbe = [+], wbe = [["seed", "随机"],["rating", "评分"],["o", "高潮计数"],@@ -52665,16 +52579,16 @@ var VR = [["size", "体积"],["new", "入库时间"],["played", "观看时间"]-], Mbe = [["desc", "降序"], ["asc", "升序"]], Nbe = [+], Tbe = [["desc", "降序"], ["asc", "升序"]], Ebe = [["off", "关闭"],["precise", "精准"],["coarse", "粗略"]-], Pbe = [+], Dbe = [["7", "每周"],["30", "每月"],["90", "每季"],["0", "从不"]-], Fbe = [[+], Obe = [["cover","官方封面",""@@ -52682,7 +52596,7 @@ var VR = ["thumbnail","预览图",""-]], Ibe = [+]], kbe = [["feedHideGroupSetting","feedHideGroupCompilations",@@ -52707,28 +52621,28 @@ var VR = ["feedHideExcerptDescription","把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"]-], Lbe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", HR = null, UR = {+], Abe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", HR = null, UR = {open: !1,closing: !1,epoch: 0,tab: 0,machine: "none"}, WR = 0, GR = null, KR = /* @__PURE__ */ new Set();-function Rbe(e) {+function jbe(e) {return KR.add(e), () => {KR.delete(e);};}-function zbe() {+function Mbe() {for (let e of [...KR]) e();}function qR(e) {UR = {...UR,...e- }, (0, $f.flushSync)(zbe);+ }, (0, $f.flushSync)(Mbe);}-async function Bbe(e) {+async function Nbe(e) {if (UR.machine === "summary") return;let t = await e.configurable();if (UR.open) {@@ -52742,11 +52656,11 @@ async function Bbe(e) {UR.open && qR({ machine: "summary" });}}-function Vbe(e = "") {+function Pbe(e = "") {let t = HR;if (!t) return;we(), WR += 1, GR ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");- let n = VR.findIndex(([t]) => t === e), r = Tue();+ let n = VR.findIndex(([t]) => t === e), r = Cue();qR({open: !0,closing: !1,@@ -52754,7 +52668,7 @@ function Vbe(e = "") {tab: n >= 0 ? n : UR.tab}), r.then((e) => {e && t.syncRemote(e);- }), Bbe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());+ }), Nbe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());}function JR() {if (!UR.open || UR.closing) return;@@ -52772,31 +52686,31 @@ function JR() {}document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);}-var Hbe = {- open: Vbe,+var Fbe = {+ open: Pbe,close: JR,isOpen: () => UR.open,reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))};-function Ube(e) {- return HR = e, Hbe;+function Ibe(e) {+ return HR = e, Fbe;}-function Wbe() {- let e = (0, B.useSyncExternalStore)(Rbe, () => UR);- return HR ? /* @__PURE__ */ (0, V.jsx)(qbe, {+function Lbe() {+ let e = (0, B.useSyncExternalStore)(jbe, () => UR);+ return HR ? /* @__PURE__ */ (0, V.jsx)(Bbe, {host: HR,view: e}) : null;}-function Gbe(e) {+function Rbe(e) {if (e.key !== "Tab") return;- let t = [...e.currentTarget.querySelectorAll(Lbe)].filter((e) => e.getClientRects().length > 0);+ let t = [...e.currentTarget.querySelectorAll(Abe)].filter((e) => e.getClientRects().length > 0);if (!t.length) return;let n = t[0], r = t[t.length - 1];e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());}var YR = (e) => `settings-tab-${e}`, XR = (e) => e === VR.length - 1 ? "machineGroup" : `settings-group-${e}`;-function Kbe({ tab: e, epoch: t, onSelect: n }) {+function zbe({ tab: e, epoch: t, onSelect: n }) {let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(e), s = (0, B.useRef)([]), c = (e, t) => {let n = i.current;if (!n) return;@@ -52868,7 +52782,7 @@ function Kbe({ tab: e, epoch: t, onSelect: n }) {onPointerEnter: (e) => {e.pointerType !== "touch" && c(e.currentTarget, !0);},- children: [/* @__PURE__ */ (0, V.jsx)(Hie, { name: r }), t]+ children: [/* @__PURE__ */ (0, V.jsx)(Vie, { name: r }), t]}, t))]});@@ -52912,7 +52826,7 @@ var ez = ({ html: e, ...t }) => /* @__PURE__ */ (0, V.jsx)("small", {...t,dangerouslySetInnerHTML: { __html: e }}), tz = () => `${Ke("保存中")}<span>正在保存…</span>`, nz = (e, t) => e instanceof Error && e.message || t;-function qbe({ host: e, view: t }) {+function Bbe({ host: e, view: t }) {(0, B.useSyncExternalStore)(e.store.subscribe, e.store.version);let n = e.store.value, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(t.tab), l = () => {let [e, t] = [i.current, o.current];@@ -52944,7 +52858,7 @@ function qbe({ host: e, view: t }) {"aria-labelledby": "settingsTitle","data-closing": t.closing ? "" : void 0,ref: r,- onKeyDown: Gbe,+ onKeyDown: Rbe,onClick: (e) => {e.target === e.currentTarget && JR();},@@ -52969,7 +52883,7 @@ function qbe({ host: e, view: t }) {})})]}),- /* @__PURE__ */ (0, V.jsx)(Kbe, {+ /* @__PURE__ */ (0, V.jsx)(zbe, {tab: t.tab,epoch: d,onSelect: f@@ -53031,23 +52945,23 @@ function qbe({ host: e, view: t }) {n.homeGlow.on = t, p(), e.changed("glow");}}),- /* @__PURE__ */ (0, V.jsx)(Dbe, { host: e }),+ /* @__PURE__ */ (0, V.jsx)(bbe, { host: e }),/* @__PURE__ */ (0, V.jsxs)("section", {"data-sidebar-setting": "","aria-labelledby": "sidebarOrderTitle",children: [/* @__PURE__ */ (0, V.jsxs)("span", { children: [/* @__PURE__ */ (0, V.jsx)("b", {id: "sidebarOrderTitle",children: "左侧导航"- }), /* @__PURE__ */ (0, V.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, V.jsx)(Abe, { host: e })]+ }), /* @__PURE__ */ (0, V.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, V.jsx)(Cbe, { host: e })]})]}),- /* @__PURE__ */ (0, V.jsx)(Ybe, {+ /* @__PURE__ */ (0, V.jsx)(Hbe, {host: e,tab: t.tab,epoch: d}),- /* @__PURE__ */ (0, V.jsx)(Zbe, {+ /* @__PURE__ */ (0, V.jsx)(Wbe, {host: e,tab: t.tab,epoch: d@@ -53055,12 +52969,12 @@ function qbe({ host: e, view: t }) {/* @__PURE__ */ (0, V.jsx)(ZR, {index: 3,tab: t.tab,- children: /* @__PURE__ */ (0, V.jsx)($be, {+ children: /* @__PURE__ */ (0, V.jsx)(Kbe, {host: e,epoch: d})}),- /* @__PURE__ */ (0, V.jsx)(exe, {+ /* @__PURE__ */ (0, V.jsx)(qbe, {host: e,tab: t.tab,epoch: d@@ -53080,7 +52994,7 @@ function qbe({ host: e, view: t }) {/* @__PURE__ */ (0, V.jsx)(ZR, {index: 6,tab: t.tab,- children: /* @__PURE__ */ (0, V.jsx)(nxe, {+ children: /* @__PURE__ */ (0, V.jsx)(Ybe, {host: e,machine: t.machine})@@ -53091,7 +53005,7 @@ function qbe({ host: e, view: t }) {})});}-function Jbe(e, t) {+function Vbe(e, t) {let n = e.querySelector("[data-select-label]");if (!n) return;n.querySelector("[data-icon-swap]") || (n.innerHTML = je("arrow-up", "arrow-down", "a", {@@ -53101,7 +53015,7 @@ function Jbe(e, t) {let r = n.querySelector("[data-sort-direction-label]");r && (r.textContent = t ? "升序" : "降序");}-function Ybe({ host: e, tab: t, epoch: n }) {+function Hbe({ host: e, tab: t, epoch: n }) {let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";return /* @__PURE__ */ (0, V.jsxs)(ZR, {index: 1,@@ -53134,7 +53048,7 @@ function Ybe({ host: e, tab: t, epoch: n }) {children: [/* @__PURE__ */ (0, V.jsx)(FR, {id: "defaultSortSetting",label: "默认排序",- options: jbe,+ options: wbe,value: r.defaultSort,epoch: n,onPick: (t) => {@@ -53143,7 +53057,7 @@ function Ybe({ host: e, tab: t, epoch: n }) {}), /* @__PURE__ */ (0, V.jsx)(FR, {id: "defaultSortDirectionSetting",label: "默认排序方向",- options: Mbe,+ options: Tbe,value: o ? "asc" : "desc",hidden: a,disabled: a,@@ -53152,7 +53066,7 @@ function Ybe({ host: e, tab: t, epoch: n }) {onPick: (t) => {r.defaultSortDirection = t, i(), e.changed("sortDirection");},- decorate: (e) => Jbe(e, o)+ decorate: (e) => Vbe(e, o)})]})}),@@ -53176,14 +53090,14 @@ function Ybe({ host: e, tab: t, epoch: n }) {id: "javImageSetting",name: "jav-image",legend: "JAV 默认封面",- options: Fbe,+ options: Obe,value: r.javImage,attr: "data-jav-image-choice",variant: "javimageswitch",text: !0,epoch: n,onChoose: (t) => {- r.javImage = DC(t), i(), e.changed("javImage");+ r.javImage = OC(t), i(), e.changed("javImage");}})}),@@ -53213,7 +53127,7 @@ function Ybe({ host: e, tab: t, epoch: n }) {r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");}}),- Ibe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(Xbe, {+ kbe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(Ube, {host: e,id: t,settingKey: n,@@ -53225,8 +53139,8 @@ function Ybe({ host: e, tab: t, epoch: n }) {]});}-function Xbe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {- let s = kj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {+function Ube({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {+ let s = jj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {l(t), Ue(u.current), s.mutate({ [n]: t }, {onSuccess: (i) => {d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);@@ -53254,7 +53168,7 @@ function Xbe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a})]});}-function Zbe({ host: e, tab: t, epoch: n }) {+function Wbe({ host: e, tab: t, epoch: n }) {let r = e.store.value, i = () => e.store.save();return /* @__PURE__ */ (0, V.jsxs)(ZR, {index: 2,@@ -53308,7 +53222,7 @@ function Zbe({ host: e, tab: t, epoch: n }) {}, n)})}),- /* @__PURE__ */ (0, V.jsx)(Qbe, { epoch: n }),+ /* @__PURE__ */ (0, V.jsx)(Gbe, { epoch: n }),/* @__PURE__ */ (0, V.jsx)($R, {title: "相关推荐",description: "详情下方一次显示的相似作品数量。",@@ -53327,15 +53241,15 @@ function Zbe({ host: e, tab: t, epoch: n }) {]});}-function Qbe({ epoch: e }) {- let t = wS({- queryKey: Ej,- queryFn: ({ signal: e }) => Oj(e)- }), n = Due(), r = n.reset;+function Gbe({ epoch: e }) {+ let t = TS({+ queryKey: Oj,+ queryFn: ({ signal: e }) => Aj(e)+ }), n = Tue(), r = n.reset;(0, B.useEffect)(() => {r();}, [e, r]);- let i = t.data?.mode || "off", a = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : t.data ? rz(kue(t.data)) : "读取运行状态…";+ let i = t.data?.mode || "off", a = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : t.data ? rz(Due(t.data)) : "读取运行状态…";return /* @__PURE__ */ (0, V.jsx)($R, {title: "视频缩略图采集",description: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, V.jsx)(ez, {@@ -53346,7 +53260,7 @@ function Qbe({ epoch: e }) {children: /* @__PURE__ */ (0, V.jsx)(FR, {id: "videoThumbnailSetting",label: "视频缩略图采集",- options: Nbe,+ options: Ebe,value: n.isPending || n.isError ? n.variables ?? i : i,disabled: n.isPending || t.isFetching,epoch: e,@@ -53354,8 +53268,8 @@ function Qbe({ epoch: e }) {})});}-function $be({ host: e, epoch: t }) {- let n = e.store.value, r = kj();+function Kbe({ host: e, epoch: t }) {+ let n = e.store.value, r = jj();return /* @__PURE__ */ (0, V.jsx)($R, {title: "搜索记录",description: "保存在 Peach 账本,所有访问端同步。",@@ -53372,8 +53286,8 @@ function $be({ host: e, epoch: t }) {})});}-function exe({ host: e, tab: t, epoch: n }) {- let r = e.store.value, i = kj(), o = kj(), [s, c] = (0, B.useState)("");+function qbe({ host: e, tab: t, epoch: n }) {+ let r = e.store.value, i = jj(), o = jj(), [s, c] = (0, B.useState)("");(0, B.useEffect)(() => {c("");}, [n]);@@ -53408,14 +53322,14 @@ function exe({ host: e, tab: t, epoch: n }) {onPick: (e) => l(Number(e))})}),- /* @__PURE__ */ (0, V.jsx)(txe, { epoch: n }),+ /* @__PURE__ */ (0, V.jsx)(Jbe, { epoch: n }),/* @__PURE__ */ (0, V.jsx)($R, {title: "头像与站点图标刷新",description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",children: /* @__PURE__ */ (0, V.jsx)(FR, {id: "metadataRefreshSetting",label: "头像与站点图标刷新",- options: Pbe,+ options: Dbe,value: String(r.metadataRefreshDays),epoch: n,onPick: (t) => {@@ -53427,15 +53341,15 @@ function exe({ host: e, tab: t, epoch: n }) {]});}-function txe({ epoch: e }) {- let t = wS({- queryKey: Tj,- queryFn: ({ signal: e }) => Dj(e)- }), n = Eue(), r = n.reset;+function Jbe({ epoch: e }) {+ let t = TS({+ queryKey: Dj,+ queryFn: ({ signal: e }) => kj(e)+ }), n = wue(), r = n.reset;(0, B.useEffect)(() => {r();}, [e, r]);- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : i ? rz(Oue(i)) : "读取运行状态…";+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : i ? rz(Eue(i)) : "读取运行状态…";return /* @__PURE__ */ (0, V.jsx)($R, {title: "关注自动更新",description: /* @__PURE__ */ (0, V.jsx)(ez, {@@ -53455,12 +53369,12 @@ function txe({ epoch: e }) {})});}-function nxe({ host: e, machine: t }) {+function Ybe({ host: e, machine: t }) {return t === "summary" ? /* @__PURE__ */ (0, V.jsx)("div", {id: "machineSettings",children: /* @__PURE__ */ (0, V.jsx)("div", {className: "peach-react",- children: /* @__PURE__ */ (0, V.jsx)(Cbe, { openConfiguration: () => {+ children: /* @__PURE__ */ (0, V.jsx)(gbe, { openConfiguration: () => {JR(), e.openConfiguration();} })})@@ -53474,7 +53388,7 @@ function rz(e) {}//#endregion//#region src/react/sidebar/sidebar-island.tsx-var iz = "__home__", rxe = {+var iz = "__home__", Xbe = {creator: 26,tag: 30,tech: 16@@ -53486,7 +53400,7 @@ var iz = "__home__", rxe = {},epoch: 0}, cz = /* @__PURE__ */ new Set();-function ixe(e) {+function Zbe(e) {return cz.add(e), () => {cz.delete(e);};@@ -53494,7 +53408,7 @@ function ixe(e) {function lz() {for (let e of [...cz]) e();}-var axe = {+var Qbe = {render(e) {sz = {...sz,@@ -53508,7 +53422,7 @@ var axe = {}, (0, $f.flushSync)(lz);}};-function oxe(e) {+function $be(e) {return oz = e, sz = {...sz,props: {@@ -53516,26 +53430,26 @@ function oxe(e) {filters: {},latest: null}- }, axe;+ }, Qbe;}-function sxe() {- let e = (0, B.useSyncExternalStore)(ixe, () => sz);- return oz ? /* @__PURE__ */ (0, V.jsx)(cxe, {+function exe() {+ let e = (0, B.useSyncExternalStore)(Zbe, () => sz);+ return oz ? /* @__PURE__ */ (0, V.jsx)(txe, {host: oz,props: e.props,epoch: e.epoch}) : null;}-function cxe({ host: e, props: t, epoch: n }) {+function txe({ host: e, props: t, epoch: n }) {let r = (0, B.useSyncExternalStore)(e.store.subscribe, e.store.version);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", { "data-sidebar-head": "" }),- /* @__PURE__ */ (0, V.jsx)(lxe, {+ /* @__PURE__ */ (0, V.jsx)(nxe, {host: e,epoch: n,version: r}),- t.content ? /* @__PURE__ */ (0, V.jsx)(dxe, {+ t.content ? /* @__PURE__ */ (0, V.jsx)(ixe, {host: e,content: t.content,filters: t.filters,@@ -53543,8 +53457,8 @@ function cxe({ host: e, props: t, epoch: n }) {}) : null] });}-function lxe({ host: e, epoch: t, version: n }) {- let r = RR(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = fD(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || iz : "").join(",")}`, { axis: "y" }), { sync: d } = u;+function nxe({ host: e, epoch: t, version: n }) {+ let r = RR(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = pD(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || iz : "").join(",")}`, { axis: "y" }), { sync: d } = u;(0, B.useEffect)(() => {let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());return [@@ -53600,7 +53514,7 @@ function lxe({ host: e, epoch: t, version: n }) {"data-sidebar-home-logo": "",src: "/peach-logo.png",alt: ""- }) : /* @__PURE__ */ (0, V.jsx)(eT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]+ }) : /* @__PURE__ */ (0, V.jsx)(tT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]}, t || iz))}), v ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)("span", {"data-sidebar-glide": "",@@ -53609,7 +53523,7 @@ function lxe({ host: e, epoch: t, version: n }) {}), v) : null] });}var uz = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);-function uxe(e) {+function rxe(e) {if (!e) return null;let t = /* @__PURE__ */ new Map(), n = [["loc", e.locations],@@ -53622,8 +53536,8 @@ function uxe(e) {for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);return t;}-function dxe({ host: e, content: t, filters: n, latest: r }) {- let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;+function ixe({ host: e, content: t, filters: n, latest: r }) {+ let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}`;(0, B.useLayoutEffect)(() => {t.kind === "catalog" && Le(e.scroll, "drawer");}, [@@ -53631,8 +53545,8 @@ function dxe({ host: e, content: t, filters: n, latest: r }) {i,t.kind]);- let a = t.kind === "catalog" ? fxe(e, t.facets, n, r, i) : pxe(e, t, n), o = 0;- return a.map((e) => e && /* @__PURE__ */ (0, V.jsx)(mxe, {+ let a = t.kind === "catalog" ? axe(e, t.facets, n, r, i) : [oxe(e, t.tags, new Set(t.selected))], o = 0;+ return a.map((e) => e && /* @__PURE__ */ (0, V.jsx)(sxe, {title: e.title,kind: e.kind,active: e.active,@@ -53641,8 +53555,8 @@ function dxe({ host: e, content: t, filters: n, latest: r }) {children: e.body}, e.title));}-function fxe(e, t, n, r, i) {- let a = uxe(r), o = (t, r, i) => {+function axe(e, t, n, r, i) {+ let a = rxe(r), o = (t, r, i) => {if (!t.length) return null;let o = uz(n, r);return /* @__PURE__ */ (0, V.jsx)(pz, {@@ -53667,12 +53581,12 @@ function fxe(e, t, n, r, i) {title: t,kind: s,active: p,- body: /* @__PURE__ */ (0, V.jsx)(gxe, {+ body: /* @__PURE__ */ (0, V.jsx)(lxe, {epoch: i,title: t,rows: c,latest: m ?? null,- limit: rxe[d],+ limit: Xbe[d],filterKey: l,selected: f,counts: a,@@ -53687,7 +53601,7 @@ function fxe(e, t, n, r, i) {title: "时长",kind: "meta",active: !1,- body: /* @__PURE__ */ (0, V.jsx)(gz, {+ body: /* @__PURE__ */ (0, V.jsx)(uxe, {host: e,filters: n})@@ -53710,45 +53624,18 @@ function fxe(e, t, n, r, i) {} : null];}-function pxe(e, t, n) {- let r = t.providers || [], i = uz(n, "provider"), a = new Set(t.selected);- return [- r.length ? {- title: "来源",- kind: "src",- active: r.some((e) => i.includes(e.value)),- body: /* @__PURE__ */ (0, V.jsx)(pz, {- rows: r,- filterKey: "provider",- multi: !1,- selected: i,- counts: null,- host: e,- onToggle: (t, n) => e.selectFollowProvider(n)- })- } : null,- t.duration ? {- title: "时长",- kind: "meta",- active: !1,- body: /* @__PURE__ */ (0, V.jsx)(gz, {- host: e,- filters: n,- commit: e.setFollowDuration- })- } : null,- t.tags.length ? {- title: "内容标签",- kind: "online",- active: t.tags.some((e) => a.has(e.value)),- body: /* @__PURE__ */ (0, V.jsx)(mz, {- rows: t.tags,- host: e,- selected: a,- badges: !1- })- } : null- ];+function oxe(e, t, n) {+ return t.length ? {+ title: "内容标签",+ kind: "online",+ active: t.some((e) => n.has(e.value)),+ body: /* @__PURE__ */ (0, V.jsx)(mz, {+ rows: t,+ host: e,+ selected: n,+ badges: !1+ })+ } : null;}function dz(e, t) {let n = null;@@ -53757,7 +53644,7 @@ function dz(e, t) {} catch {}return n === null ? t : n === "open";}-function mxe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {+function sxe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {let o = (0, B.useRef)(null), s = (0, B.useRef)(null), [c, l] = (0, B.useState)(() => dz(e, n)), u = (0, B.useRef)(!1);(0, B.useLayoutEffect)(() => {let t = o.current, r = s.current;@@ -53783,7 +53670,7 @@ function mxe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })"aria-expanded": c,"aria-controls": f,onClick: d,- children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]+ children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]}), /* @__PURE__ */ (0, V.jsx)("div", {ref: s,"data-sidebar-collapse": "",@@ -53804,18 +53691,18 @@ function mxe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })});}var fz = (0, B.createContext)(() => {});-function hxe({ dot: e }) {- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(eT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {+function cxe({ dot: e }) {+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(tT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {"data-sidebar-source-icon": "",src: e.src,alt: ""}) : /* @__PURE__ */ (0, V.jsx)("i", { "data-sidebar-cost": e.cost }) : null;}-function pz({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {+function pz({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-sidebar-chips": "",children: e.map((e) => {- let a = e.n === null ? null : i ? i.get(`${t}\n${e.value}`) ?? 0 : e.n;+ let o = e.n === null ? null : i ? i.get(`${t}\n${e.value}`) ?? 0 : e.n;return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-sidebar-chip": "",@@ -53826,24 +53713,24 @@ function pz({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,"data-offline": e.offline ? "" : void 0,disabled: !!e.offline,title: e.offline,- onClick: () => o(t, e.value, n),+ onClick: () => a.toggleChip(t, e.value, n),children: [- /* @__PURE__ */ (0, V.jsx)(hxe, { dot: e.dot }),+ /* @__PURE__ */ (0, V.jsx)(cxe, { dot: e.dot }),/* @__PURE__ */ (0, V.jsx)("span", {"data-sidebar-chip-label": "",children: e.label}),- a === null ? null : /* @__PURE__ */ (0, V.jsx)("span", {+ o === null ? null : /* @__PURE__ */ (0, V.jsx)("span", {"data-sidebar-count": "","data-count-badge": `${t}:${e.value}`,- children: a.toLocaleString()+ children: o.toLocaleString()})]}, e.value);})});}-function gxe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {+function lxe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {let u = (0, B.useContext)(fz), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(e);p !== e && (m(e), f(null));let h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;@@ -53884,7 +53771,7 @@ function gxe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, sall: !_}), _ && u());},- children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })}) : null] });}function mz({ rows: e, host: t, selected: n, badges: r }) {@@ -53909,34 +53796,34 @@ function mz({ rows: e, host: t, selected: n, badges: r }) {});}var hz = (e, t) => e ? Math.min(az, Number(e) / 60) : t;-function gz({ host: e, filters: t, commit: n = e.setDuration }) {- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, B.useState)(r), [o, s] = (0, B.useState)(() => [hz(t.dur_min, 0), hz(t.dur_max, az)]), [c, l] = (0, B.useState)("max");- i !== r && (a(r), s([hz(t.dur_min, 0), hz(t.dur_max, az)]));- let [u, d] = o, f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(o);- h.current = o;- let g = (e, t) => {- let [n, r] = e === "min" ? [t, d] : [u, t];- return n > r && (e === "min" ? r = n : n = r), l(e), s([n, r]), [n, r];+function uxe({ host: e, filters: t }) {+ let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, B.useState)(n), [a, o] = (0, B.useState)(() => [hz(t.dur_min, 0), hz(t.dur_max, az)]), [s, c] = (0, B.useState)("max");+ r !== n && (i(n), o([hz(t.dur_min, 0), hz(t.dur_max, az)]));+ let [l, u] = a, d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(a);+ m.current = a;+ let h = (e, t) => {+ let [n, r] = e === "min" ? [t, u] : [l, t];+ return n > r && (e === "min" ? r = n : n = r), c(e), o([n, r]), [n, r];};(0, B.useEffect)(() => {- let e = () => n(h.current[0], h.current[1]), t = [p.current, m.current];- return t.forEach((t) => t?.addEventListener("change", e)), () => t.forEach((t) => t?.removeEventListener("change", e));- }, [n]), (0, B.useLayoutEffect)(() => {- let e = f.current;+ let t = () => e.setDuration(m.current[0], m.current[1]), n = [f.current, p.current];+ return n.forEach((e) => e?.addEventListener("change", t)), () => n.forEach((e) => e?.removeEventListener("change", t));+ }, [e]), (0, B.useLayoutEffect)(() => {+ let e = d.current;if (!e) return;- e.style.setProperty("--lo", `${u / az * 100}%`), e.style.setProperty("--hi", `${d / az * 100}%`);+ e.style.setProperty("--lo", `${l / az * 100}%`), e.style.setProperty("--hi", `${u / az * 100}%`);let t = e.getBoundingClientRect();e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {- let n = e.dataset.rangeEnd === "max" ? d : u;+ let n = e.dataset.rangeEnd === "max" ? u : l;e.style.left = `${n / az * 100}%`, e.style.setProperty("--range-tip-shift", "0px");let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);});- }, [u, d]);- let _ = (e, t) => /* @__PURE__ */ (0, V.jsx)("output", {+ }, [l, u]);+ let g = (e, t) => /* @__PURE__ */ (0, V.jsx)("output", {"data-sidebar-range-tip": "","data-range-end": e,- "data-range-active": c === e ? "" : void 0,+ "data-range-active": s === e ? "" : void 0,"aria-hidden": "true",children: e === "max" && t >= az ? "不限" : `${t} 分钟`});@@ -53945,7 +53832,7 @@ function gz({ host: e, filters: t, commit: n = e.setDuration }) {children: /* @__PURE__ */ (0, V.jsxs)("div", {"data-sidebar-range": "",id: "durationRange",- ref: f,+ ref: d,children: [/* @__PURE__ */ (0, V.jsx)("span", { "data-sidebar-range-base": "" }),/* @__PURE__ */ (0, V.jsx)("span", { "data-sidebar-range-fill": "" }),@@ -53955,10 +53842,10 @@ function gz({ host: e, filters: t, commit: n = e.setDuration }) {min: "0",max: az,step: "5",- value: u,+ value: l,"aria-label": "最短时长(分钟)",- ref: p,- onChange: (e) => g("min", Number(e.currentTarget.value))+ ref: f,+ onChange: (e) => h("min", Number(e.currentTarget.value))}),/* @__PURE__ */ (0, V.jsx)("input", {id: "durMax",@@ -53966,3191 +53853,4027 @@ function gz({ host: e, filters: t, commit: n = e.setDuration }) {min: "0",max: az,step: "5",- value: d,+ value: u,"aria-label": "最长时长(分钟)",- ref: m,- onChange: (e) => g("max", Number(e.currentTarget.value))+ ref: p,+ onChange: (e) => h("max", Number(e.currentTarget.value))}),- _("min", u),- _("max", d)+ g("min", l),+ g("max", u)]})});}//#endregion-//#region src/react/stats/stats.ts-var _xe = "/api/stats", _z = ["stats"], vz = (e) => G(_xe, e);-async function vxe(e) {- await z.fetchQuery({- queryKey: _z,- queryFn: () => vz(e)- });-}-var yz = (e, t) => t ? Math.round(e / t * 100) : 0, yxe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, bz = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, xz = (e) => (e.max_reached || 0) * 100, bxe = (e) => e.kind === "online" ? "在线直接观看" : bz(e) < xz(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", xxe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Sxe = (e) => Math.max(1, ...e) * 1.1, Cxe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), wxe = {- video: "视频",- image: "图片",- illustration: "插画",- archive: "压缩包",- audio: "音频",- account: "账号",- other: "其它文件"-}, Txe = (e) => e.map((e) => ({- name: wxe[e.k] ?? e.k,- value: e.n-})).sort((e, t) => t.value - e.value), Exe = {- 速食: "<5 分钟",- 短: "5–15 分钟",- 中: "15–40 分钟",- 长: ">40 分钟"-}, Sz = (e, t = {}) => e.map((e) => ({- name: t[e.k] ?? e.k,- value: e.n-})), Dxe = (e) => Sz(e, Exe), Oxe = [- [- 1,- 1,- "1 次"- ],- [- 2,- 2,- "2 次"- ],- [- 3,- 3,- "3 次"- ],- [- 4,- 4,- "4 次"- ],- [- 5,- 5,- "5 次"- ],- [- 6,- 9,- "6–9 次"- ],- [- 10,- Infinity,- "≥10 次"- ]-], kxe = (e) => Oxe.map(([t, n, r]) => ({- name: r,- value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)-})), Axe = /* @__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 Cz(e) {- return typeof e == "string" && Axe.includes(e);-}-//#endregion-//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js-var jxe = /* @__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 wz(e) {- return typeof e == "string" && jxe.has(e);-}-function Tz(e) {- return typeof e == "string" && e.startsWith("data-");-}-function Ez(e) {- if (typeof e != "object" || !e) return {};- var t = {};- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (wz(n) || Tz(n)) && (t[n] = e[n]);- return t;-}-function Dz(e) {- if (e == null) return null;- if (/*#__PURE__*/ (0, B.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {- var t = e.props;- return Ez(t);- }- return typeof e == "object" && !Array.isArray(e) ? Ez(e) : null;-}-//#endregion-//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js-function Oz(e) {- var t = {};- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (wz(n) || Tz(n) || Cz(n)) && (t[n] = e[n]);- return t;-}-function Mxe(e) {- return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? Oz(e.props) : typeof e == "object" && !Array.isArray(e) ? Oz(e) : null;+//#region src/board-skeleton.ts+var gz = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, dxe = () => `${gz("80%")}${gz("48%")}`, fxe = (e, t) => e.repeat(t);+function pxe() {+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${gz("85%")}${gz("65%")}${fxe(dxe(), 4)}</div></aside></div>`;}//#endregion-//#region node_modules/recharts/es6/container/Surface.js-var Nxe = [- "children",- "width",- "height",- "viewBox",- "className",- "style",- "title",- "desc"-];-function kz() {- return kz = 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;- }, kz.apply(null, arguments);-}-function Pxe(e, t) {- if (e == null) return {};- var n, r, i = Fxe(e, t);- if (Object.getOwnPropertySymbols) {- var a = Object.getOwnPropertySymbols(e);- for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);+//#region src/react/follow-detail/follow-detail.ts+var _z = (e) => ["follow-item", e], mxe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, hxe = "/api/follow/save", gxe = "/api/follow/media/hide";+async function vz(e, t) {+ let n = await G(mxe(e), t);+ for (let t of n.groups || []) {+ let r = kF(t).find((t) => t.id === e);+ if (r) return {+ item: r,+ group: t,+ sources: n.sources || [],+ aliases: n.author_aliases || []+ };}- return i;+ throw Error("这条关注内容已不存在");}-function Fxe(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];- }- return n;+async function yz(e, t) {+ let n = _z(e.id), r = ihe(e.id), i = z.getQueryData(TF) ? null : z.fetchQuery({+ queryKey: TF,+ queryFn: () => EF(t)+ });+ r ? z.setQueryData(n, {+ ...r,+ item: r.item+ }) : await z.fetchQuery({+ queryKey: n,+ queryFn: () => vz(e.id, t)+ }), await i;}-var Az = /*#__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 = Pxe(e, Nxe), d = a || {- width: r,- height: i,- x: 0,- y: 0- }, f = _h("recharts-surface", o);- return /*#__PURE__*/ B.createElement("svg", kz({}, Oz(u), {- className: f,- width: r,- height: i,- style: s,- viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,- ref: t- }), /*#__PURE__*/ B.createElement("title", null, c), /*#__PURE__*/ B.createElement("desc", null, l), n);-}), Ixe = ["children", "className"];-function jz() {- return jz = 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;- }, jz.apply(null, arguments);+function _xe(e, t, n, r) {+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && PF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);+ return {+ embedded: i,+ selected: s,+ kind: p,+ images: c,+ position: l,+ carousel: u,+ embeddedQueue: d,+ collection: f,+ frameRatio: p === "image" ? m.length ? Math.min(...m.map((e) => e.width / e.height)) : +!!u : 0,+ src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""+ };}-function Lxe(e, t) {- if (e == null) return {};- var n, r, i = Rxe(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]);+var vxe = (e) => kF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), yxe = {+ "gofile.io": "Gofile",+ "pixeldrain.com": "Pixeldrain",+ "mega.nz": "MEGA",+ "mega.io": "MEGA",+ "mediafire.com": "MediaFire",+ "drive.google.com": "Google Drive"+}, bxe = {+ gofile: "Gofile",+ pixeldrain: "Pixeldrain",+ mega: "MEGA",+ mediafire: "MediaFire",+ google_drive: "Google Drive"+};+function xxe(e) {+ try {+ let t = new URL(e).hostname.replace(/^www\./, "");+ return yxe[t] || t;+ } catch {+ return "外部文件页";}- return i;}-function Rxe(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];- }- return n;+function bz(e, t) {+ return bxe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";}-var Mz = /*#__PURE__*/ B.forwardRef((e, t) => {- var { children: n, className: r } = e, i = Lxe(e, Ixe), a = _h("recharts-layer", r);- return /*#__PURE__*/ B.createElement("g", jz({ className: a }, Oz(i), { ref: t }), n);-}), Nz = /*#__PURE__*/ (0, B.createContext)(null), zxe = () => (0, B.useContext)(Nz);-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js-function Pz(e) {- return function() {- return e;+function Sxe(e, t, n = "") {+ let r = n;+ !r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";+ let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;+ return {+ label: r,+ title: e.is_release && t.author ? `${t.author}:${i}` : i};}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js-var Fz = Math.cos, Iz = Math.sin, Lz = Math.sqrt, Rz = Math.PI;-Rz / 2;-var zz = 2 * Rz, Bz = Math.PI, Vz = 2 * Bz, Hz = 1e-6, Bxe = Vz - Hz;-function Uz(e) {- this._ += e[0];- for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];+var Cxe = (e) => String(e.name || "").trim(), xz = (e, t) => e.tag_types?.[t] || "unknown", wxe = /* @__PURE__ */ new Set([+ "artist",+ "character",+ "copyright",+ "metadata",+ "unknown"+]);+function Txe(e, t) {+ let n = xz(e, t);+ return `r34-${wxe.has(n) ? n : "general"}`;}-function Vxe(e) {- let t = Math.floor(e);- if (!(t >= 0)) throw Error(`invalid digits: ${e}`);- if (t > 15) return Uz;- 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 Sz = [+ "copyright",+ "character",+ "artist",+ "general",+ "metadata"+];+function Exe(e, t) {+ let n = e.detail_tags || e.tags || [], r = (t) => {+ let n = Sz.indexOf(xz(e, t));+ return n < 0 ? Sz.length : n;};+ return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));}-var Wz = class {- constructor(e) {- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? Uz : Vxe(e);- }- moveTo(e, t) {- this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;- }- closePath() {- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);- }- lineTo(e, t) {- this._append`L${this._x1 = +e},${this._y1 = +t}`;- }- quadraticCurveTo(e, t, n, r) {- this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;- }- bezierCurveTo(e, t, n, r, i, a) {- this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;- }- arcTo(e, t, n, r, i) {- 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 > Hz) {- if (!(Math.abs(u * s - c * l) > Hz) || !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((Bz - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;- Math.abs(y - 1) > Hz && 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) > Hz || Math.abs(this._y1 - l) > Hz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % Vz + Vz), d > Bxe ? 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 > Hz && this._append`A${n},${n},0,${+(d >= Bz)},${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`;- }- toString() {- return this._;- }-};-Wz.prototype;-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js-function Gz(e) {- let t = 3;- return e.digits = function(n) {- if (!arguments.length) return t;- if (n == null) t = null;- else {- let e = Math.floor(n);- if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);- t = e;- }- return e;- }, () => new Wz(t);-}-Array.prototype.slice;-function Kz(e) {- return typeof e == "object" && "length" in e ? e : Array.from(e);+function Dxe(e, t) {+ let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);+ return !r.length && n && r.push(n), r;}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js-function qz(e) {- this._context = e;-}-qz.prototype = {- areaStart: function() {- this._line = 0;- },- areaEnd: function() {- this._line = NaN;- },- lineStart: function() {- this._point = 0;- },- lineEnd: function() {- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;- },- point: function(e, t) {- switch (e = +e, t = +t, this._point) {- case 0:- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);- break;- case 1: this._point = 2;- default: this._context.lineTo(e, t);- }- }-};-function Jz(e) {- return new qz(e);-}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js-function Yz(e) {- return e[0];-}-function Xz(e) {- return e[1];+var Oxe = (e, t) => ({+ sources: e.sources,+ aliases: e.aliases,+ credentials: t+}), Cz = (e) => e?.size ? { size: e.size } : {};+function kxe(e, t) {+ let { images: n, kind: r, src: i, selected: a } = t;+ return n.length ? n.map((t, r) => ({+ src: `/follow-stream?id=${e.id}&media=${t.index}`,+ thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,+ name: t.name || e.title,+ source: bz(t, e),+ ...Cz(t),+ position: r + 1,+ total: n.length+ })) : r === "image" && i ? [{+ src: i,+ thumb: e.thumb_url || i,+ name: e.title,+ source: bz(a, e),+ ...Cz(a),+ position: 1,+ total: 1+ }] : e.thumb_url ? [{+ src: e.thumb_url,+ thumb: e.thumb_url,+ name: e.title,+ source: e.provider_label || e.provider || "在线图片",+ position: 1,+ total: 1+ }] : [];}+var Axe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js-function Zz(e, t) {- var n = Pz(!0), r = null, i = Jz, a = null, o = Gz(s);- e = typeof e == "function" ? e : e === void 0 ? Yz : Pz(e), t = typeof t == "function" ? t : t === void 0 ? Xz : Pz(t);- function s(s) {- var c, l = (s = Kz(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 : Pz(+t), s) : e;- }, s.y = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : Pz(+e), s) : t;- }, s.defined = function(e) {- return arguments.length ? (n = typeof e == "function" ? e : Pz(!!e), s) : n;- }, s.curve = function(e) {- return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;- }, s.context = function(e) {- return arguments.length ? (e == null ? r = a = null : a = i(r = e), s) : r;- }, s;+//#region src/react/components/mix-queue.tsx+function wz({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {+ let c = (0, B.useRef)(null), l = (0, B.useCallback)((e) => {+ c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);+ }, [a]);+ return (0, B.useLayoutEffect)(() => {+ let e = c.current, t = e?.querySelector("[data-mix-item][aria-current=\"true\"]");+ if (!e || !t) return;+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();+ (r.top < n.top || r.bottom > n.bottom) && (e.scrollTop += r.top - n.top - (n.height - r.height) / 2), (r.left < n.left || r.right > n.right) && (e.scrollLeft += r.left - n.left - (n.width - r.width) / 2);+ }, []), /* @__PURE__ */ (0, V.jsxs)("aside", {+ "data-mix-queue": "",+ "data-queue-kind": e,+ ...s,+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ "data-mix-queue-head": "",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", { children: [/* @__PURE__ */ (0, V.jsx)("h2", {+ className: "font-semibold",+ children: t+ }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })] }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-mix-queue-actions": "",+ children: [i, /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-queue-close": "",+ title: "关闭",+ "aria-label": "关闭",+ onClick: r,+ dangerouslySetInnerHTML: { __html: R("x") }+ })]+ })]+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ "data-mix-list": "",+ ref: l,+ children: o+ })]+ });}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js-function Qz(e, t, n) {- var r = null, i = Pz(!0), a = null, o = Jz, s = null, c = Gz(l);- e = typeof e == "function" ? e : e === void 0 ? Yz : Pz(+e), t = typeof t == "function" ? t : Pz(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? Xz : Pz(+n);- function l(l) {- var u, d, f, p = (l = Kz(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();- else {- for (s.lineEnd(), s.lineStart(), f = u - 1; f >= d; --f) s.point(_[f], v[f]);- s.lineEnd(), s.areaEnd();- }- }- h && (_[u] = +e(m, u, l), v[u] = +t(m, u, l), s.point(r ? +r(m, u, l) : _[u], n ? +n(m, u, l) : v[u]));- }- if (g) return s = null, g + "" || null;- }- function u() {- return Zz().defined(i).curve(o).context(a);- }- return l.x = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : Pz(+t), r = null, l) : e;- }, l.x0 = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : Pz(+t), l) : e;- }, l.x1 = function(e) {- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : Pz(+e), l) : r;- }, l.y = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : Pz(+e), n = null, l) : t;- }, l.y0 = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : Pz(+e), l) : t;- }, l.y1 = function(e) {- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : Pz(+e), l) : n;- }, l.lineX0 = l.lineY0 = function() {- return u().x(e).y(t);- }, l.lineY1 = function() {- return u().x(e).y(n);- }, l.lineX1 = function() {- return u().x(r).y(t);- }, l.defined = function(e) {- return arguments.length ? (i = typeof e == "function" ? e : Pz(!!e), l) : i;- }, l.curve = function(e) {- return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;- }, l.context = function(e) {- return arguments.length ? (e == null ? a = s = null : s = o(a = e), l) : a;- }, l;+function Tz({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {+ let s = /* @__PURE__ */ (0, V.jsx)("span", {+ "data-mix-item-text": "",+ children: a+ });+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-mix-row": "",+ ...i,+ children: [/* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-mix-item": "",+ "aria-current": e ? "true" : "false",+ ...o,+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ "data-mix-item-pic": "",+ children: t+ }), n === void 0 ? s : /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-mix-item-meta": "",+ children: [n, s]+ })]+ }), r]+ });}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js-var $z = class {- constructor(e, t) {- this._context = e, this._x = t;- }- areaStart() {- this._line = 0;- }- areaEnd() {- this._line = NaN;- }- lineStart() {- this._point = 0;- }- lineEnd() {- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;- }- point(e, t) {- switch (e = +e, t = +t, this._point) {- case 0:- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);- break;- case 1: this._point = 2;- default: this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);- }- this._x0 = e, this._y0 = t;- }-};-function Hxe(e) {- return new $z(e, !0);+var jxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, V.jsxs)("h3", {+ "data-mix-group-label": "",+ children: [+ e,+ " ",+ /* @__PURE__ */ (0, V.jsx)("span", { children: t })+ ]+}), Ez = (e) => Number(e) > 0, Mxe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {+ className: "contents",+ dangerouslySetInnerHTML: { __html: R(e) }+}), Dz = R("external-link", "externalmark");+function Nxe(e) {+ let { id: t, actions: n } = e, r = TS({+ queryKey: _z(t),+ queryFn: ({ signal: e }) => vz(t, e)+ }), i = TS({+ queryKey: TF,+ queryFn: ({ signal: e }) => EF(e)+ }), a = (0, B.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, B.useState)(e.mediaIndex);+ return r.data ? /* @__PURE__ */ (0, V.jsx)(Pxe, {+ ...e,+ data: r.data,+ context: Oxe(r.data, a),+ mediaIndex: o,+ onMedia: s+ }) : /* @__PURE__ */ (0, V.jsx)("div", {+ "data-stage-grid": "",+ "data-follow-detail": "",+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-media": "",+ "data-follow-detail-media": "none",+ children: [/* @__PURE__ */ (0, V.jsx)(Oz, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {+ "data-follow-detail-placeholder": "",+ children: r.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {+ message: ye(r.error),+ onRetry: () => void r.refetch()+ }) : null+ })]+ })+ });}-function Uxe(e) {- return new $z(e, !1);+var Oz = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-close": "",+ id: "closeStage",+ title: "关闭",+ "aria-label": "关闭",+ onClick: e,+ dangerouslySetInnerHTML: { __html: R("x") }+});+function Pxe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {+ let { item: s, group: c } = e, l = _xe(s, c, n, i), u = Rxe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, B.useState)({+ key: "",+ kind: ""+ }), m = {+ failed: () => p({+ key: d,+ kind: "failed"+ }),+ thumbFallback: () => p({+ key: d,+ kind: "thumb"+ })+ };+ (0, B.useLayoutEffect)(() => {+ o.present(s, l.kind);+ }, [+ o,+ s,+ l.kind+ ]);+ let h = !l.embedded.length && l.collection ? vxe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(Mz, {+ item: s,+ current: l.selected.index,+ helpers: a,+ actions: o,+ onMedia: r+ }) : l.collection ? h ? /* @__PURE__ */ (0, V.jsx)(Mz, {+ item: h,+ current: null,+ helpers: a,+ actions: o,+ onMedia: r,+ currentId: s.id+ }) : /* @__PURE__ */ (0, V.jsx)(Ixe, {+ group: l.collection,+ itemId: s.id,+ helpers: a,+ actions: o+ }) : null;+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-grid": "",+ "data-with-queue": g ? "" : void 0,+ "data-follow-detail": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)(Fxe, {+ item: s,+ media: l,+ helpers: a,+ actions: o,+ onMedia: r,+ issues: m+ }, d),+ g,+ /* @__PURE__ */ (0, V.jsx)(Lxe, {+ item: s,+ data: e,+ context: t,+ media: l,+ write: u,+ issue: f.key === d ? f.kind : "",+ helpers: a,+ actions: o+ })+ ]+ });}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js-var eB = { draw(e, t) {- let n = Lz(t / Rz);- e.moveTo(n, 0), e.arc(0, 0, n, 0, zz);-} }, Wxe = { draw(e, t) {- let n = Lz(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();-} }, tB = Lz(1 / 3), Gxe = tB * 2, Kxe = { draw(e, t) {- let n = Lz(t / Gxe), r = n * tB;- e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();-} }, qxe = { draw(e, t) {- let n = Lz(t), r = -n / 2;- e.rect(r, r, n, n);-} }, Jxe = .8908130915292852, nB = Iz(Rz / 10) / Iz(7 * Rz / 10), Yxe = Iz(zz / 10) * nB, Xxe = -Fz(zz / 10) * nB, Zxe = { draw(e, t) {- let n = Lz(t * Jxe), r = Yxe * n, i = Xxe * n;- e.moveTo(0, -n), e.lineTo(r, i);- for (let t = 1; t < 5; ++t) {- let a = zz * t / 5, o = Fz(a), s = Iz(a);- e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);- }- e.closePath();-} }, rB = Lz(3), Qxe = { draw(e, t) {- let n = -Lz(t / (rB * 3));- e.moveTo(0, n * 2), e.lineTo(-rB * n, -n), e.lineTo(rB * n, -n), e.closePath();-} }, iB = -.5, aB = Lz(3) / 2, oB = 1 / Lz(12), $xe = (oB / 2 + 1) * 3, eSe = { draw(e, t) {- let n = Lz(t / $xe), r = n / 2, i = n * oB, a = r, o = n * oB + n, s = -a, c = o;- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(iB * r - aB * i, aB * r + iB * i), e.lineTo(iB * a - aB * o, aB * a + iB * o), e.lineTo(iB * s - aB * c, aB * s + iB * c), e.lineTo(iB * r + aB * i, iB * i - aB * r), e.lineTo(iB * a + aB * o, iB * o - aB * a), e.lineTo(iB * s + aB * c, iB * c - aB * s), e.closePath();-} };-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js-function tSe(e, t) {- let n = null, r = Gz(i);- e = typeof e == "function" ? e : Pz(e || eB), t = typeof t == "function" ? t : Pz(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 : Pz(t), i) : e;- }, i.size = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : Pz(+e), i) : t;- }, i.context = function(e) {- return arguments.length ? (n = e ?? null, i) : n;- }, i;+function Fxe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(null), h = kxe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, B.useState)(v), S = (0, B.useRef)({+ item: e,+ selected: o+ }), C = (0, B.useRef)(i.failed);+ C.current = i.failed, (0, B.useLayoutEffect)(() => {+ let e = f.current;+ if (!(!e || !_)) return n.mountPlayer(e, S.current.item, S.current.selected, { onError: () => C.current() });+ }, [n, _]), (0, B.useLayoutEffect)(() => {+ let e = f.current, t = e?.querySelector("[data-follow-detail-poster]"), n = e?.querySelector("[data-follow-image-step]");+ if (!e || !t || !n) return;+ let r = () => {+ if (!t.naturalWidth || !t.naturalHeight) return;+ let r = e.getBoundingClientRect(), i = Math.min(r.width, r.height * (t.naturalWidth / t.naturalHeight)), a = Math.max(0, (r.width - i) / 2), o = matchMedia("(max-width:640px)").matches ? 10 : 16;+ m(Math.round(a >= n.offsetWidth + o * 2 ? (a - n.offsetWidth) / 2 : o));+ }, i = new ResizeObserver(r);+ return i.observe(e), t.addEventListener("load", r), () => {+ i.disconnect(), t.removeEventListener("load", r);+ };+ }, [b]);+ let w = (e) => r(c[(l + e + c.length) % c.length].index);+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: f,+ "data-stage-media": "",+ "data-follow-detail-media": a || "none",+ "data-framed": d ? "" : void 0,+ style: {+ "--follow-frame-ratio": d ? d.toFixed(4) : void 0,+ "--follow-image-arrow-inset": p === null ? void 0 : `${p}px`+ },+ children: [+ /* @__PURE__ */ (0, V.jsx)(Oz, { onClose: n.close }),+ _ ? null : v ? /* @__PURE__ */ (0, V.jsx)("img", {+ "data-follow-detail-poster": "",+ "data-zoomable": h.length ? "" : void 0,+ src: b,+ alt: e.title,+ referrerPolicy: "no-referrer",+ onClick: h.length ? () => void FN(Math.max(0, l), h) : void 0,+ onError: () => {+ if (y && b !== y) {+ x(y), i.thumbFallback();+ return;+ }+ i.failed();+ }+ }) : /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-follow-detail-placeholder": "",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ className: "contents",+ dangerouslySetInnerHTML: { __html: BF(e.resource_provider || e.provider) }+ }), /* @__PURE__ */ (0, V.jsx)("span", { children: "没有可用预览" })]+ }),+ u ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-follow-image-step": "-1",+ "data-follow-image-arrow": "prev",+ "aria-label": "上一张图片",+ title: "上一张",+ onClick: () => w(-1),+ dangerouslySetInnerHTML: { __html: R("chevron-left") }+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-follow-image-step": "1",+ "data-follow-image-arrow": "next",+ "aria-label": "下一张图片",+ title: "下一张",+ onClick: () => w(1),+ dangerouslySetInnerHTML: { __html: R("chevron-right") }+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ "data-follow-image-dots": "",+ role: "group",+ "aria-label": `${c.length} 张图片`,+ children: c.map((e, t) => /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-follow-image-item": e.index,+ "aria-current": t === l ? "true" : "false",+ "aria-label": `第 ${t + 1} 张,共 ${c.length} 张`,+ title: `第 ${t + 1} 张`,+ onClick: () => r(e.index)+ }, e.index))+ })+ ] }) : null+ ]+ });}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js-function sB() {}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js-function cB(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);+var kz = ({ kind: e }) => /* @__PURE__ */ (0, V.jsx)("span", {+ "data-follow-nothumb": "",+ dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }+});+function Az({ src: e }) {+ let [t, n] = (0, B.useState)(!1);+ return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {+ src: e,+ alt: "",+ loading: "lazy",+ referrerPolicy: "no-referrer",+ onError: () => n(!0)+ });}-function lB(e) {- this._context = e;+function jz(e) {+ return (0, B.useCallback)((t) => {+ t && e.wireDrag(t);+ }, [e]);}-lB.prototype = {- areaStart: function() {- this._line = 0;- },- areaEnd: function() {- this._line = NaN;- },- lineStart: function() {- this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;- },- lineEnd: function() {- switch (this._point) {- case 3: cB(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;- },- point: function(e, t) {- switch (e = +e, t = +t, this._point) {- case 0:- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);- break;- case 1:- 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: cB(this, e, t);- }- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;- }-};-function nSe(e) {- return new lB(e);+function Ixe({ group: e, itemId: t, helpers: n, actions: r }) {+ let i = PF(e), a = jz(n);+ return /* @__PURE__ */ (0, V.jsx)(wz, {+ kind: "collection",+ "data-follow-queue": "",+ title: "视频合集",+ onClose: r.close,+ listRef: a,+ summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,+ children: i.map((n) => {+ let i = e.duplicates.includes(n), a = Sxe(e, n, i ? n.provider_label : ""), o = i ? BF(n.provider, n.provider_label) : "";+ return /* @__PURE__ */ (0, V.jsxs)(Tz, {+ current: n.id === t,+ "data-follow-queue-item": n.id,+ onClick: () => r.openItem(n.id),+ pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(Az, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(kz, { kind: "video" }), Ez(n.duration) ? /* @__PURE__ */ (0, V.jsx)("i", {+ className: "mono",+ "data-mix-item-duration": "",+ children: fe(n.duration)+ }) : null] }),+ children: [/* @__PURE__ */ (0, V.jsx)("b", {+ "data-truncate-end": "",+ children: a.title+ }), /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-follow-queue-meta": "",+ children: [o ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-follow-queue-source": "",+ dangerouslySetInnerHTML: { __html: o }+ }) : /* @__PURE__ */ (0, V.jsx)("i", {+ "data-follow-variant": n.variant_kind || "",+ children: a.label+ }), /* @__PURE__ */ (0, V.jsx)("time", {+ dateTime: n.published_at || "",+ children: qF(n)+ })]+ })]+ }, n.id);+ })+ });}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js-function uB(e) {- this._context = e;+function Mz({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {+ let o = e.media_items || [], s = jz(r), c = [];+ o.forEach((e) => {+ let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);+ n || (n = {+ key: t,+ label: e.resource_group_label || "",+ items: []+ }, c.push(n)), n.items.push(e);+ });+ let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);+ return /* @__PURE__ */ (0, V.jsx)(wz, {+ kind: "media",+ "data-follow-queue": "",+ title: "多媒体",+ onClose: i.close,+ listRef: s,+ summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, V.jsx)(jxe, {+ label: n.label,+ count: n.items.length+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, V.jsxs)(Tz, {+ current: n.index === t,+ "data-follow-media-owner": e.id,+ "data-follow-media-item": n.index,+ "data-media-kind": n.media_kind || "",+ onClick: () => l(n),+ pic: n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(Az, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(kz, { kind: n.media_kind || "" }),+ children: [/* @__PURE__ */ (0, V.jsx)("b", {+ "data-middle-truncate": "",+ children: Cxe(n)+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ "data-truncate-end": "",+ children: n.media_kind === "image" ? "图片" : "视频"+ })]+ }, n.index))])+ });}-uB.prototype = {- areaStart: sB,- areaEnd: sB,- 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;- },- lineEnd: function() {- switch (this._point) {- case 1:- this._context.moveTo(this._x2, this._y2), this._context.closePath();- break;- case 2:- this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();- break;- case 3: this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);- }- },- point: function(e, t) {- switch (e = +e, t = +t, this._point) {- case 0:- this._point = 1, this._x2 = e, this._y2 = t;- break;- case 1:- this._point = 2, this._x3 = e, this._y3 = t;- break;- 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: cB(this, e, t);- }- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;- }-};-function rSe(e) {- return new uB(e);-}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js-function dB(e) {- this._context = e;+function Lxe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {+ let { kind: c, selected: l, src: u } = r, d = {+ primary: e,+ variants: [],+ duplicates: [],+ has_wip: e.variant_kind === "wip"+ }, f = GF(d, e), p = UF(e, Dxe(e, t.sources), n), m = p.credited ? "" : e.author && me(e.author) !== me(p.author) ? e.author : "", h = KF(e, n), g = Exe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {};+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-stage-side": "",+ "data-follow-detail-side": "",+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-side-content": "",+ children: [+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-follow-detail-title": "",+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ "data-stage-title": "",+ "data-follow-detail-name": "",+ "data-reveal-line": "",+ dangerouslySetInnerHTML: { __html: WF(d, e) + L(e.title) }+ }), e.url ? /* @__PURE__ */ (0, V.jsx)("a", {+ "data-follow-origin": "",+ href: e.url,+ target: "_blank",+ rel: "noreferrer noopener",+ title: "打开来源页面",+ "aria-label": "打开来源页面",+ dangerouslySetInnerHTML: { __html: Dz }+ }) : null]+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-follow-detail-identity": "",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ "data-follow-source-avatar": "",+ dangerouslySetInnerHTML: { __html: p.avatar }+ }), /* @__PURE__ */ (0, V.jsxs)("div", { children: [+ /* @__PURE__ */ (0, V.jsx)("b", { children: p.author }),+ m ? /* @__PURE__ */ (0, V.jsxs)("span", { children: ["发布者 ", m] }) : null,+ p.credited ? /* @__PURE__ */ (0, V.jsxs)("span", { children: ["署名含 ", p.credited] }) : null+ ] })]+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "mono",+ "data-stage-meta": "",+ "data-reveal-line": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)("span", { children: qF(e) }),+ Ez(e.duration) ? /* @__PURE__ */ (0, V.jsx)("span", { children: fe(e.duration) }) : null,+ f ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-follow-badges": "",+ dangerouslySetInnerHTML: { __html: f }+ }) : null+ ]+ }),+ e.summary ? /* @__PURE__ */ (0, V.jsx)("p", {+ "data-follow-detail-summary": "",+ children: e.summary+ }) : null,+ h ? /* @__PURE__ */ (0, V.jsx)("p", {+ "data-follow-media-issue": "",+ children: h+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("p", {+ "data-follow-media-issue": "",+ "data-media-load-issue": "",+ hidden: a !== "failed",+ children: "媒体未取回:上游这一次没有返回内容,多半是站点限流,过一阵再打开。"+ }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ "data-follow-media-issue": "",+ "data-media-thumb-fallback": "",+ hidden: a !== "thumb",+ children: "原图未取回,先显示缩略图:上游拦下了这一次请求。"+ }),+ e.resource_urls?.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-follow-resources": "",+ children: e.resource_urls.map((e) => /* @__PURE__ */ (0, V.jsxs)("a", {+ href: e,+ target: "_blank",+ rel: "noreferrer noopener",+ children: [xxe(e), /* @__PURE__ */ (0, V.jsx)("span", {+ className: "contents",+ dangerouslySetInnerHTML: { __html: Dz }+ })]+ }, e))+ }) : null,+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-actions": "",+ "data-follow-detail-actions": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-action": "later",+ "data-follow-detail-save": "",+ "aria-label": _ ? "已保存" : "保存到账本",+ title: _ ? "已保存" : "保存到账本",+ disabled: _,+ ...y("save"),+ onClick: i.save,+ dangerouslySetInnerHTML: { __html: R(_ ? "check" : "bookmark-plus") }+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-action": "later",+ "data-follow-detail-want": "",+ "aria-pressed": !!i.want,+ "aria-label": i.want ? "取消想要" : "想要",+ title: i.want ? "取消想要" : "想要",+ ...y("want"),+ onClick: i.toggleWant,+ dangerouslySetInnerHTML: { __html: R("star") }+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-action": "seen",+ "data-follow-detail-status": "seen",+ "aria-label": "标记已看",+ title: "标记已看",+ "aria-pressed": e.status === "seen",+ ...y("seen"),+ onClick: () => i.status("seen"),+ dangerouslySetInnerHTML: { __html: R("eye") }+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-action": "dislike",+ "data-follow-detail-status": "ignored",+ "aria-label": "忽略",+ title: "忽略",+ "aria-pressed": e.status === "ignored",+ ...y("ignored"),+ onClick: () => i.status("ignored"),+ dangerouslySetInnerHTML: { __html: R("eye-off") }+ }),+ e.status === "seen" || e.status === "ignored" ? /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-follow-detail-status": "new",+ "aria-label": "恢复未看",+ title: "恢复未看",+ ...y("new"),+ onClick: () => i.status("new"),+ dangerouslySetInnerHTML: { __html: R("rotate-ccw") }+ }) : null,+ c === "image" && l ? /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-action": "dislike",+ "data-follow-media-hide": l.index,+ "aria-label": "隐藏这张图",+ title: "隐藏这张图",+ ...y(`hide:${l.index}`),+ onClick: () => i.hide(l.index),+ dangerouslySetInnerHTML: { __html: R("image-off") }+ }) : null,+ u ? /* @__PURE__ */ (0, V.jsx)("a", {+ "data-follow-download": "",+ href: `${u}${u.includes("?") ? "&" : "?"}download=1`,+ download: "",+ "aria-label": "下载到本地",+ title: "下载到本地",+ dangerouslySetInnerHTML: { __html: R("download") }+ }) : null+ ]+ }),+ e.hidden_media?.length ? /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-follow-hidden-media": "",+ children: [/* @__PURE__ */ (0, V.jsxs)("span", {+ "data-follow-hidden-label": "",+ children: [+ "已隐藏 ",+ e.hidden_media.length,+ " 张"+ ]+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ "data-follow-hidden-thumbs": "",+ children: e.hidden_media.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-follow-media-restore": e.index,+ title: `恢复显示 ${e.name || ""}`,+ "aria-label": `恢复显示 ${e.name || ""}`,+ ...y(`restore:${e.index}`),+ onClick: () => i.restore(e.index),+ children: [e.thumb_url ? /* @__PURE__ */ (0, V.jsx)(Az, { src: e.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(Mxe, { name: "image-off" }), /* @__PURE__ */ (0, V.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]+ }, e.index))+ })]+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-follow-state": "",+ "aria-live": "polite",+ children: i.failure+ }),+ g.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-stage-tags": "",+ "data-follow-detail-tags": "",+ children: g.map((t) => /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-tag-cat": Txe(e, t),+ "data-follow-tag": t,+ onClick: () => s.openTag(t),+ children: o.tagLabel(t)+ }, t))+ }) : null+ ]+ })+ });}-dB.prototype = {- areaStart: function() {- this._line = 0;- },- areaEnd: function() {- this._line = NaN;- },- lineStart: function() {- this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;- },- lineEnd: function() {- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;- },- point: function(e, t) {- switch (e = +e, t = +t, this._point) {- case 0:- this._point = 1;- break;- case 1:- this._point = 2;- break;- case 2:- this._point = 3;- var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;- this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);- break;- case 3: this._point = 4;- default: cB(this, e, t);+function Rxe(e, t, n) {+ let r = e.id, i = _z(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), l = (e, t) => o((n) => {+ let r = new Set(n);+ return t ? r.add(e) : r.delete(e), r;+ }), u = (e) => {+ z.setQueryData(i, (t) => t && {+ ...t,+ item: {+ ...t.item,+ status: e+ }+ }), ohe(r, e);+ }, d = (e) => {+ c(ye(e) || "操作失败"), t.failure("更新关注状态", e);+ }, f = OS({+ mutationFn: ({ to: e }) => K(RP, {+ item: r,+ to: e+ }),+ onSuccess: (e, { to: n, was: i }) => {+ u(n), c(""), n === "ignored" && gL(), t.toast(Axe(n), { undo: i === "saved" ? void 0 : async () => {+ await K(RP, {+ item: r,+ to: i+ }), u(i);+ } });+ },+ onError: d,+ onSettled: (e, t, { to: n }) => l(n, !1)+ }), p = OS({+ mutationFn: () => K(hxe, { item: r }),+ onSuccess: () => {+ u("saved"), c(""), t.toast("已保存到账本");+ },+ onError: d,+ onSettled: () => l("save", !1)+ }), m = OS({+ mutationFn: async ({ index: e, hidden: t }) => {+ await K(gxe, {+ item: r,+ media: e,+ hidden: t+ }), await z.invalidateQueries({+ queryKey: i,+ exact: !0+ });+ },+ onSuccess: (e, { hidden: r, next: a }) => {+ let o = z.getQueryData(i);+ o && ahe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");+ },+ onError: d,+ onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)+ }), h = TS({+ queryKey: h_e(r),+ queryFn: ({ signal: e }) => v_e(r, e)+ }).data?.want ?? null, g = OS({+ mutationFn: async (e) => (e ? await hL([e.id]) : await mL({ follow: r }), !e),+ onSuccess: (e) => {+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), gL();+ },+ onError: d,+ onSettled: () => l("want", !1)+ });+ return {+ busy: a,+ failure: s,+ want: h,+ toggleWant: () => {+ l("want", !0), g.mutate(h);+ },+ save: () => {+ l("save", !0), p.mutate();+ },+ status: (t) => {+ l(t, !0), f.mutate({+ to: t,+ was: e.status+ });+ },+ hide: (t) => {+ let n = (e.media_items || []).find((e) => e.index !== t && e.media_kind === "image");+ l(`hide:${t}`, !0), m.mutate({+ index: t,+ hidden: !0,+ next: n ? n.index : null+ });+ },+ restore: (e) => {+ l(`restore:${e}`, !0), m.mutate({+ index: e,+ hidden: !1,+ next: e+ });}- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;- }-};-function iSe(e) {- return new dB(e);+ };}//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js-function fB(e) {- this._context = e;+//#region src/react/components/overlay-host.ts+function zxe(e) {+ let t = e.querySelector(":scope > [data-react-overlays]");+ if (t) return t;+ let n = e.ownerDocument.createElement("div");+ return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;}-fB.prototype = {- areaStart: sB,- areaEnd: sB,- lineStart: function() {- this._point = 0;- },- lineEnd: function() {- this._point && this._context.closePath();- },- point: function(e, t) {- e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));- }-};-function aSe(e) {- return new fB(e);+function Bxe(e) {+ let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");+ return zxe(n ?? t.body);}//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js-function pB(e) {- return e < 0 ? -1 : 1;-}-function mB(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 (pB(a) + pB(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;-}-function hB(e, t) {- var n = e._x1 - e._x0;- return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;-}-function gB(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 _B(e) {- this._context = e;-}-_B.prototype = {- areaStart: function() {- this._line = 0;- },- areaEnd: function() {- this._line = NaN;- },- lineStart: function() {- this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;- },- lineEnd: function() {- switch (this._point) {- case 2:- this._context.lineTo(this._x1, this._y1);- break;- case 3: gB(this, this._t0, hB(this, this._t0));- }- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;- },- point: function(e, t) {- var n = NaN;- if (e = +e, t = +t, e !== this._x1 || t !== this._y1) {- switch (this._point) {- case 0:- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);- break;- case 1:- this._point = 2;- break;- case 2:- this._point = 3, gB(this, hB(this, n = mB(this, e, t)), n);- break;- default: gB(this, this._t0, n = mB(this, e, t));- }- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;- }- }-};-function vB(e) {- this._context = new yB(e);-}-(vB.prototype = Object.create(_B.prototype)).point = function(e, t) {- _B.prototype.point.call(this, t, e);-};-function yB(e) {- this._context = e;-}-yB.prototype = {- moveTo: function(e, t) {- this._context.moveTo(t, e);- },- closePath: function() {- this._context.closePath();- },- lineTo: function(e, t) {- this._context.lineTo(t, e);- },- bezierCurveTo: function(e, t, n, r, i, a) {- this._context.bezierCurveTo(t, e, r, n, a, i);- }-};-function oSe(e) {- return new _B(e);-}-function sSe(e) {- return new vB(e);-}+//#region src/react/cover-crop/cover-crop.ts+var Vxe = "/api/cover-crop", Hxe = (e, t) => K(Vxe, {+ code: e,+ box: t+});//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js-function bB(e) {- this._context = e;+//#region src/react/cover-crop/cover-crop-page.tsx+function Nz({ className: e }) {+ return /* @__PURE__ */ (0, V.jsx)("svg", {+ "aria-hidden": !0,+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: 2,+ strokeLinecap: "round",+ strokeLinejoin: "round",+ className: e,+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-crop" })+ });}-bB.prototype = {- areaStart: function() {- this._line = 0;- },- areaEnd: function() {- this._line = NaN;- },- lineStart: function() {- this._x = [], this._y = [];- },- lineEnd: function() {- 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 = xB(e), i = xB(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]);+function Uxe({ code: e, coverUrl: t, box: n, onSaved: r }) {+ let [i, a] = (0, B.useState)(!1), o = (0, B.useRef)(null);+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {+ ref: o,+ type: "button",+ "aria-haspopup": "dialog",+ "data-cover-crop": !0,+ "aria-label": `裁剪 ${e} 的封面`,+ title: "裁剪封面:框出正封那一块",+ onClick: () => a(!0),+ className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",+ children: /* @__PURE__ */ (0, V.jsx)(Nz, { className: "size-3.75" })+ }), /* @__PURE__ */ (0, V.jsx)(Qv, {+ getContainer: () => Bxe(o.current),+ children: /* @__PURE__ */ (0, V.jsx)(YN, {+ isOpen: i,+ onOpenChange: a,+ width: "cover-crop",+ label: "裁剪封面",+ children: /* @__PURE__ */ (0, V.jsx)(Wxe, {+ code: e,+ coverUrl: t,+ box: n,+ onSaved: r,+ close: () => a(!1)+ })+ })+ })] });+}+function Wxe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {+ let [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(null), [l, u] = (0, B.useState)(!0), d = _M(), f = OS({+ mutationFn: (t) => Hxe(e, t),+ onSuccess: (e) => {+ i(), r(e.poster_box);}- (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;- },- point: function(e, t) {- this._x.push(+e), this._y.push(+t);+ });+ function p(e) {+ o(e);+ let t = n && n.px?.[0] === e.width && n.px?.[1] === e.height ? {+ x0: n.x0,+ y0: n.y0,+ x1: n.x1,+ y1: n.y1+ } : lpe(e, kC);+ c(GN(t, e, null));}-};-function xB(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];- for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];- 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 cSe(e) {- return new bB(e);-}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js-function SB(e, t) {- this._context = e, this._t = t;-}-SB.prototype = {- areaStart: function() {- this._line = 0;- },- areaEnd: function() {- this._line = NaN;- },- lineStart: function() {- this._x = this._y = NaN, this._point = 0;- },- lineEnd: function() {- 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);- },- point: function(e, t) {- switch (e = +e, t = +t, this._point) {- case 0:- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);- break;- case 1: this._point = 2;- default: if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);- else {- var n = this._x * (1 - this._t) + e * this._t;- this._context.lineTo(n, this._y), this._context.lineTo(n, t);- }- }- this._x = e, this._y = t;- }-};-function lSe(e) {- return new SB(e, .5);-}-function uSe(e) {- return new SB(e, 0);-}-function dSe(e) {- return new SB(e, 1);-}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js-function CB(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 wB(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 fSe(e, t) {- return e[t];-}-function pSe(e) {- let t = [];- return t.key = e, t;-}-function mSe() {- var e = Pz([]), t = wB, n = CB, r = fSe;- function i(i) {- var a = Array.from(e.apply(this, arguments), pSe), 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 = Kz(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 : Pz(Array.from(t)), i) : e;- }, i.value = function(e) {- return arguments.length ? (r = typeof e == "function" ? e : Pz(+e), i) : r;- }, i.order = function(e) {- return arguments.length ? (t = e == null ? wB : typeof e == "function" ? e : Pz(Array.from(e)), i) : t;- }, i.offset = function(e) {- return arguments.length ? (n = e ?? CB, i) : n;- }, i;-}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js-function hSe(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;- }- CB(e, t);- }-}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js-function gSe(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;- }- CB(e, t);- }-}-//#endregion-//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js-function _Se(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) {- for (var u = e[t[s]], d = u[r][1] || 0, f = (d - (u[r - 1][1] || 0)) / 2, p = 0; p < s; ++p) {- var m = e[t[p]], h = m[r][1] || 0, g = m[r - 1][1] || 0;- f += h - g;- }- c += d, l += f * d;- }- i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);- }- i[r - 1][1] += i[r - 1][0] = n, CB(e, t);- }-}-//#endregion-//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs-function TB(e) {- return e === "__proto__";+ let m = f.isPending;+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex shrink-0 items-start gap-4 p-5",+ children: [+ /* @__PURE__ */ (0, V.jsx)(XN, { children: /* @__PURE__ */ (0, V.jsx)(Nz, { className: "size-6" }) }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex min-w-0 flex-1 flex-col gap-2",+ children: [+ /* @__PURE__ */ (0, V.jsx)(PD, {+ slot: "title",+ className: "text-title-3-semibold text-text-primary",+ children: "裁剪封面"+ }),+ /* @__PURE__ */ (0, V.jsxs)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]+ }),+ f.error ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ children: W(f.error)+ }) : null+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)(yM, {+ icon: fT,+ size: "small",+ "aria-label": "关闭",+ onClick: i+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ ref: d,+ className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",+ children: /* @__PURE__ */ (0, V.jsx)(QN, {+ src: t,+ aspect: l ? kC : null,+ box: s,+ size: a,+ label: `${e} 的正封取景框`,+ onSize: (e) => {+ UN(e) && p(e);+ },+ onBox: c+ })+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",+ children: [/* @__PURE__ */ (0, V.jsx)($I, {+ isSelected: l,+ onChange: (e) => {+ u(e), e && s && a && c(GN(s, a, kC));+ },+ children: /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-body-2-regular text-text-secondary",+ children: "锁定正封比例"+ })+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-1 flex-wrap items-center justify-end gap-3",+ children: [/* @__PURE__ */ (0, V.jsx)(J, {+ variant: "secondary",+ ...X(m),+ onClick: () => {+ m || f.mutate(null);+ },+ children: "恢复默认"+ }), /* @__PURE__ */ (0, V.jsx)(J, {+ disabled: !s || !a,+ ...X(m),+ onClick: () => {+ s && !m && f.mutate(s);+ },+ children: "用这一块"+ })]+ })]+ })+ ] });}//#endregion-//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs-var vSe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;-function EB(e) {- switch (typeof e) {- case "number":- case "symbol": return !1;- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : vSe.test(e);- default: return !1;+//#region src/react/item-detail/item-detail-page.tsx+var Pz = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {+ className: "contents",+ dangerouslySetInnerHTML: { __html: R(e) }+}), Fz = ({ html: e }) => /* @__PURE__ */ (0, V.jsx)("span", {+ className: "contents",+ dangerouslySetInnerHTML: { __html: e }+});+function Gxe(e) {+ let { queue: t, actions: n } = e, r = TS({+ queryKey: t ? IC(t) : ["item-queue", "none"],+ queryFn: ({ signal: n }) => GC(t, e.helpers, n),+ enabled: !!t+ }), i = t && r.data || null, a = i ? JC(i, e.id) : t ? null : e.id, o = TS({+ queryKey: FC(a ?? 0),+ queryFn: ({ signal: e }) => WC(a, e),+ enabled: a != null+ });+ if (!o.data || t && !i) {+ let e = o.error || r.error;+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-stage-grid": "",+ "data-item-detail": "",+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-media": "",+ "data-item-media": "none",+ children: [/* @__PURE__ */ (0, V.jsx)(Iz, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {+ "data-item-placeholder": "",+ children: e ? /* @__PURE__ */ (0, V.jsx)(mA, {+ message: ye(e),+ onRetry: () => {+ r.error && r.refetch(), o.error && o.refetch();+ }+ }) : null+ })]+ })+ });}+ return /* @__PURE__ */ (0, V.jsx)(Kxe, {+ ...e,+ item: Vre(o.data, i),+ queue: i+ }, o.data.id);}-//#endregion-//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs-function DB(e) {- return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);+var Iz = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-close": "",+ id: "closeStage",+ title: "关闭",+ "aria-label": "关闭",+ onClick: e,+ dangerouslySetInnerHTML: { __html: R("x") }+});+function Kxe(e) {+ let { item: t, queue: n, actions: r, helpers: i } = e, a = cSe(t, r, i.tagLabel), o = (0, B.useRef)(t);+ (0, B.useLayoutEffect)(() => {+ r.present(o.current, n);+ }, [r]), (0, B.useEffect)(() => {+ n?.kind === "playlist" && K(LC, {+ action: "progress",+ id: n.playlistId,+ asset_id: t.id+ }).catch(() => {});+ }, []);+ let s = eie(t, i.sourceOffline(t.location || ""));+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-grid": "",+ "data-with-queue": n ? "" : void 0,+ "data-item-detail": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)(qxe, {+ item: t,+ gate: s,+ helpers: i,+ actions: r+ }),+ n ? /* @__PURE__ */ (0, V.jsx)(Yxe, {+ queue: n,+ itemId: t.id,+ helpers: i,+ actions: r+ }) : null,+ /* @__PURE__ */ (0, V.jsx)(Qxe, {+ item: t,+ queue: n,+ write: a,+ helpers: i,+ actions: r+ })+ ]+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, V.jsx)(sSe, { ...e }) : null] });}-//#endregion-//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs-function OB(e) {- return typeof e == "symbol" || e instanceof Symbol;+function qxe({ item: e, gate: t, helpers: n, actions: r }) {+ let [i, a] = (0, B.useState)(t ? "" : "auto"), o = (0, B.useRef)(null), s = (0, B.useRef)(e);+ (0, B.useLayoutEffect)(() => {+ let e = o.current;+ if (!(!e || !i)) return r.mountPlayer(e, s.current, null, i === "clicked" ? { autoplay: !0 } : void 0);+ }, [r, i]);+ let c = n.badgeHtml(e.location || "", e.cost || "", "srcbig");+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: o,+ "data-stage-media": "",+ "data-item-media": t || "video",+ children: [/* @__PURE__ */ (0, V.jsx)(Iz, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(Jxe, {+ item: e,+ badge: c,+ helpers: n,+ actions: r+ }) : t === "online" ? /* @__PURE__ */ (0, V.jsxs)("div", {+ id: "onlineGate",+ role: "status",+ "data-item-gate": "online",+ children: [+ /* @__PURE__ */ (0, V.jsx)(Fz, { html: c }),+ /* @__PURE__ */ (0, V.jsx)("b", { children: "在线资产" }),+ /* @__PURE__ */ (0, V.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ className: "chip",+ id: "openSavedFollow",+ type: "button",+ onClick: r.openSavedFollow,+ children: "打开已保存关注"+ })+ ]+ }) : t === "metered" && !i ? /* @__PURE__ */ (0, V.jsxs)("div", {+ id: "gate",+ "data-item-gate": "metered",+ onClick: () => a("clicked"),+ children: [/* @__PURE__ */ (0, V.jsx)(Fz, { html: c }), /* @__PURE__ */ (0, V.jsxs)("span", { children: ["点此开始拉流 · ", pe(e.size || 0)] })]+ }) : null]+ });}-//#endregion-//#region node_modules/es-toolkit/dist/compat/util/toString.mjs-function ySe(e) {- return e == null ? "" : kB(e);+function Jxe({ item: e, badge: t, helpers: n, actions: r }) {+ let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(!1), c = async () => {+ a(!0);+ let t = await r.checkSource(e.location || "").catch(() => !1);+ a(!1), t ? r.reopen() : s(!0);+ };+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ id: "offlineGate",+ role: "status",+ "data-item-gate": "offline",+ children: [+ /* @__PURE__ */ (0, V.jsx)(Fz, { html: t }),+ /* @__PURE__ */ (0, V.jsx)("b", { children: "脱盘模式" }),+ /* @__PURE__ */ (0, V.jsx)("span", { children: n.offlineReason(e.location || "") }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ className: "chip",+ id: "offlineRetry",+ type: "button",+ disabled: i,+ onClick: () => void c(),+ children: o ? "仍无法读取 · 刷新" : "刷新状态"+ })+ ]+ });}-function kB(e) {- if (typeof e == "string") return e;- if (Array.isArray(e)) return e.map(kB).join(",");- if (OB(e)) return e.toString();- let t = e + "";- return t === "0" && Object.is(Number(e), -0) ? "-0" : t;+function Yxe({ queue: e, itemId: t, helpers: n, actions: r }) {+ let i = Xre(e), a = (0, B.useRef)(null), o = Zxe(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, {+ selector: "[data-queue-row]",+ attribute: "data-queue-row",+ onMove: (e, t, n) => s.current.move(+e, +t, n)+ }));+ }, [n, e.kind]), l = Xxe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-save-mix": "",+ title: "保存为播放列表",+ "aria-label": "保存为播放列表",+ onClick: l,+ dangerouslySetInnerHTML: { __html: R("playlist") }+ }) : e.kind === "playlist" ? /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-edit-playlist": "",+ title: "编辑播放列表",+ "aria-label": "编辑播放列表",+ onClick: r.editPlaylist,+ dangerouslySetInnerHTML: { __html: R("playlist") }+ }) : null, d = {+ kind: e.kind,+ seedId: e.seedId,+ playlistId: e.playlistId+ };+ return /* @__PURE__ */ (0, V.jsx)(wz, {+ kind: e.kind,+ title: i.title,+ summary: i.summary,+ onClose: r.close,+ actions: u,+ listRef: c,+ children: e.items.map((i) => {+ let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, V.jsx)("i", {+ className: `javedition ${Jre[i.edition_label] || "censored"}`,+ "data-queue-edition": "",+ children: i.edition_label+ }) : null, s = e.kind === "playlist" && qC(i);+ return /* @__PURE__ */ (0, V.jsxs)(Tz, {+ current: i.id === t,+ "data-queue-item": i.id,+ row: { "data-queue-row": i.id },+ disabled: s,+ title: s ? "文件已不在盘上,不能播放" : void 0,+ ...s ? { "data-queue-vanished": "" } : {},+ onClick: () => {+ s || r.openQueueItem(d, i.id);+ },+ pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Fz, { html: I(i, n.javImage()) }), /* @__PURE__ */ (0, V.jsx)("i", {+ className: "mono",+ "data-mix-item-duration": "",+ children: fe(i.duration)+ })] }),+ lead: /* @__PURE__ */ (0, V.jsx)(Fz, { html: F(i) }),+ after: e.kind === "playlist" ? /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-queue-edit": "",+ children: [/* @__PURE__ */ (0, V.jsx)("i", {+ "data-queue-grip": "",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "grip-vertical" })+ }), /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-queue-remove": i.id,+ title: "移出播放列表",+ "aria-label": "移出播放列表",+ onClick: () => o.remove(i.id),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "x" })+ })]+ }) : null,+ children: [/* @__PURE__ */ (0, V.jsxs)("span", {+ "data-queue-head": "",+ children: [a, /* @__PURE__ */ (0, V.jsx)("b", {+ "data-middle-truncate": "",+ children: n.displayName(i)+ })]+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ "data-truncate-end": "",+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? rw(i.part_label) : P(i, n.tagLabel)+ })]+ }, i.id);+ })+ });}-//#endregion-//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs-function AB(e) {- if (Array.isArray(e)) return e.map(DB);- if (typeof e == "symbol") return [e];- e = ySe(e);- let t = [], n = e.length;- if (n === 0) return t;- let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;- for (e.charCodeAt(0) === 46 && t.push(""); r < n;) {- let l = e[r];- if (a) l === "\\" && r + 1 < n ? (r++, i += e[r]) : l === a ? a = "" : i += l;- else if (o) {- if (l === "\"" || l === "'") a = l, s = !0;- else if (l === "]") {- if (o = !1, !s && i.includes(".") && !c.test(i)) {- let e = i.split(".");- for (let n = 0; n < e.length; n++) e[n] !== "" && t.push(e[n]);- } else t.push(i);- i = "";- } else i += l;- } else if (l === "[") o = !0, s = !1, i &&= (t.push(i), "");- else if (l === ".") {- i &&= (t.push(i), "");- let n = e[r + 1];- (n === void 0 || n === ".") && t.push("");- } else i += l;- r++;- }- return i && t.push(i), t;+function Xxe(e, t) {+ let n = OS({ mutationFn: (t) => K(LC, {+ action: "create",+ name: t,+ asset_ids: e.items.map((e) => e.id),+ source_kind: "mix",+ source_seed_asset_id: e.seedId+ }).then((e) => e.playlist) });+ return () => t.saveMix({+ title: e.title,+ count: e.items.length,+ save: (e) => n.mutateAsync(e)+ });}-//#endregion-//#region node_modules/es-toolkit/dist/compat/object/get.mjs-function jB(e, t, n) {- if (e == null) return n;- switch (typeof t) {- case "string": {- if (TB(t)) return n;- let r = e[t];- return r === void 0 ? EB(t) && !Object.hasOwn(e, t) ? jB(e, AB(t), n) : n : r;- }- case "number":- case "symbol": {- typeof t == "number" && (t = DB(t));- let r = e[t];- return r === void 0 ? n : r;- }- default: {- if (Array.isArray(t)) return bSe(e, t, n);- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), TB(t)) return n;- let r = e[t];- return r === void 0 ? n : r;+function Zxe(e, t, n) {+ let r = IC({+ kind: "playlist",+ playlistId: e.playlistId+ }), i = (e) => (z.setQueryData(r, KC(e)), e), a = (t) => K(LC, {+ id: e.playlistId,+ ...t+ }).then((e) => e.playlist), o = OS({+ mutationFn: (e) => a({+ action: "reorder",+ asset_ids: e+ }),+ onSuccess: (e, t) => {+ i(e);+ },+ onError: (e) => n.failure("调整播放顺序", e)+ }), s = e.items.map((e) => e.id);+ return {+ move: async (t, r, c) => {+ if (e.kind !== "playlist") return;+ let l = Qre(s, t, r, c);+ if ($re(l, s)) return;+ let u = s;+ await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {+ i(await a({+ action: "reorder",+ asset_ids: u+ }));+ } });+ },+ remove: (e) => {+ let r = s;+ Te({+ title: "移出播放列表",+ body: "这个视频将从播放列表移除,视频文件保留。",+ confirmLabel: "移出播放列表",+ onConfirm: async () => {+ let o = await a({+ action: "remove",+ asset_id: e+ });+ if (n.toast("已移出播放列表", { undo: async () => {+ await a({+ action: "add",+ asset_ids: [e]+ });+ let s = i(await a({+ action: "reorder",+ asset_ids: r+ }));+ (!o.items.length || e === t) && n.openQueueItem({+ kind: "playlist",+ playlistId: s.id+ }, t, !1);+ } }), !o.items.length) {+ n.openPlaylists();+ return;+ }+ i(o), e === t && n.openQueueItem({+ kind: "playlist",+ playlistId: o.id+ }, o.current_asset_id || o.items[0].id, !1);+ }+ });}- }-}-function bSe(e, t, n) {- if (t.length === 0) return n;- let r = e;- for (let e = 0; e < t.length; e++) {- if (r == null || TB(t[e])) return n;- r = r[t[e]];- }- return r === void 0 ? n : r;-}-//#endregion-//#region node_modules/recharts/es6/util/round.js-var xSe = 4;-function MB(e) {- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : xSe), n = Math.round(e * t) / t;- return Object.is(n, -0) ? 0 : n;-}-function NB(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 + MB(i) + n;- }, "");-}-//#endregion-//#region node_modules/recharts/es6/util/DataUtils.js-var PB = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, FB = (e) => typeof e == "number" && e != +e, IB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !FB(e), LB = (e) => Z(e) || typeof e == "string", SSe = 0, RB = (e) => {- var t = ++SSe;- return `${e || ""}${t}`;-}, zB = 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 (IB(e)) {- if (t == null) return n;- var a = e.indexOf("%");- i = t * parseFloat(e.slice(0, a)) / 100;- } else i = +e;- return FB(i) && (i = n), r && t != null && i > t && (i = t), i;-}, BB = (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 VB(e, t, n) {- return Z(e) && Z(t) ? MB(e + n * (t - e)) : t;-}-function HB(e, t, n) {- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : jB(e, t)) === n);+ };}-var UB = (e) => e == null, WB = (e) => UB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;-function GB(e) {- return e != null;-}-function KB() {}-//#endregion-//#region node_modules/recharts/es6/shape/Symbols.js-var CSe = [- "type",- "size",- "sizeType"-];-function qB() {- return qB = 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;- }, qB.apply(null, arguments);-}-function JB(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function YB(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? JB(Object(n), !0).forEach(function(t) {- wSe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JB(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;+function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {+ let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, B.useState)(!1);+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-stage-side": "",+ "data-item-side": "",+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-side-content": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)($xe, {+ item: e,+ queue: t,+ helpers: r,+ actions: i,+ onStatus: n.setSourceState+ }),+ a ? null : /* @__PURE__ */ (0, V.jsx)("span", {+ "data-title-state": "",+ "aria-live": "polite",+ children: n.sourceState+ }),+ /* @__PURE__ */ (0, V.jsx)(tSe, {+ item: e,+ write: n+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "mono",+ "data-stage-meta": "",+ "data-reveal-line": "",+ children: [+ /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-spec-item": "",+ children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "monitor" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [+ e.width || "?",+ "×",+ e.height || "?"+ ] })]+ }),+ /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-spec-item": "",+ children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "hard-drive" }), /* @__PURE__ */ (0, V.jsx)("span", { children: pe(e.size || 0) })]+ }),+ e.release_date ? /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-spec-item": "",+ children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "calendar" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.release_date })]+ }) : null,+ e.region_label ? /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-spec-item": "",+ "data-open-region": e.region || "",+ title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",+ onClick: () => i.openRegion(e.region || ""),+ children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "globe" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]+ }) : null+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)(nSe, {+ item: e,+ helpers: r,+ actions: i+ }),+ /* @__PURE__ */ (0, V.jsx)(rSe, {+ item: e,+ write: n,+ helpers: r,+ actions: i+ }),+ /* @__PURE__ */ (0, V.jsx)(aSe, { item: e }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-actions": "",+ "data-item-feedback": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ id: "likeBtn",+ "data-fb": "like",+ "aria-label": e.liked ? "取消喜欢" : "喜欢",+ title: "喜欢 · 记录口味偏好",+ "aria-pressed": !!e.liked,+ ...o("like"),+ onClick: () => n.preference({ liked: !e.liked }),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "thumbs-up" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ id: "preferenceToggle",+ "data-fb": "reason",+ "aria-label": "喜爱理由",+ title: "喜爱理由",+ "aria-expanded": s,+ "aria-controls": "preferencePanel",+ "data-has-reason": String(!!e.like_reason),+ onClick: () => c((e) => !e),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "notebook-pen" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-action": "dislike",+ "data-kind": "dislike",+ "aria-label": "不合口味",+ title: "不合口味 · 降低推荐权重",+ "aria-pressed": e.feedback === "dislike",+ ...o("dislike"),+ onClick: () => n.feedback("dislike"),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "thumbs-down" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-action": "seen",+ "data-kind": "seen",+ "aria-label": "看过了",+ title: "看过了 · 只降低近期推荐",+ "aria-pressed": e.feedback === "seen",+ ...o("seen"),+ onClick: () => n.feedback("seen"),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "eye" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-stage-action": "later",+ id: "stageLater",+ "aria-label": "稍后看",+ title: "稍后看 · 加入或移出队列",+ "aria-pressed": !!e.watch_later,+ ...o("later"),+ onClick: n.later,+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: e.watch_later ? "check" : "bookmark-plus" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ id: "addPlaylist",+ "data-fb": "playlist",+ "aria-label": "加入播放列表",+ title: "加入播放列表",+ onClick: () => i.addToPlaylist(e),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "playlist" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ id: "betterVersion",+ "data-fb": "quality",+ "aria-label": "寻找更好版本",+ title: e.better_version ? e.better_version_reason || "已标记寻找更好版本" : "寻找高清、无水印或完整版",+ "aria-pressed": !!e.better_version,+ ...o("quality"),+ onClick: n.quality,+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "sparkles" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-kind": "dispose",+ "data-fb": "dispose",+ "aria-label": "移入回收站",+ title: "移入回收站 · 文件仍保留,可从回收站永久清除",+ "aria-pressed": e.disposal === "trash",+ ...o("dispose"),+ onClick: () => n.feedback("dispose"),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "trash" })+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)(oSe, {+ item: e,+ open: s,+ write: n+ }),+ /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-kind": "o",+ ...o("o"),+ onClick: () => n.feedback("o"),+ children: [+ /* @__PURE__ */ (0, V.jsx)(Pz, { name: "sperm" }),+ /* @__PURE__ */ (0, V.jsx)("span", { children: "记一次高潮" }),+ /* @__PURE__ */ (0, V.jsx)("b", {+ className: "mono",+ id: "oCount",+ children: e.o_count || 0+ })+ ]+ })+ ]+ })+ });}-function wSe(e, t, n) {- return (t = TSe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;+function $xe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {+ let a = (0, B.useRef)(null), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(!1);+ (0, B.useLayoutEffect)(() => {+ let e = a.current;+ if (!e) return;+ let t = () => {+ e.hasAttribute("data-expanded") || l(e.scrollHeight > e.clientHeight + 1);+ }, 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) + Zre(e, t);+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-item-title": "",+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-title": "",+ "data-title-line": "",+ "data-reveal-line": "",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ ref: a,+ "data-detail-title": "",+ "data-expanded": o ? "" : void 0,+ "data-foldable": c ? "" : void 0,+ onClick: () => {+ c && !String(getSelection() || "") && u();+ },+ dangerouslySetInnerHTML: { __html: d }+ }), /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-title-tools": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-title-fold": "",+ hidden: !c,+ "aria-expanded": o,+ "aria-label": o ? "收起标题" : "展开标题",+ title: o ? "收起标题" : "展开完整标题",+ onClick: u,+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: o ? "chevron-up" : "chevron-down" })+ }),+ e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-cover-crop-host": "",+ children: /* @__PURE__ */ (0, V.jsx)(Uxe, {+ code: e.cover_key || e.code || "",+ coverUrl: D(e),+ box: e.poster_box || null,+ onSaved: (t) => {+ z.invalidateQueries({+ queryKey: FC(e.id),+ exact: !0+ }), PC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });+ }+ })+ }) : null,+ e.location === "online" ? null : /* @__PURE__ */ (0, V.jsx)(eSe, {+ id: e.id,+ actions: r,+ onStatus: i+ })+ ]+ })]+ })+ });}-function TSe(e) {- var t = ESe(e, "string");- return typeof t == "symbol" ? t : t + "";+function eSe({ id: e, actions: t, onStatus: n }) {+ let [r, i] = (0, B.useState)(""), a = async () => {+ r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));+ }, o = async () => {+ if (r) return;+ i("sync"), n("正在核对目录…");+ let a = await t.sync(e);+ n(a.text), i(""), a.removed.includes(e) && t.close();+ };+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-reveal": e,+ title: "在文件管理器里打开源文件所在目录",+ "aria-label": "定位源文件",+ ...r === "reveal" ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {},+ onClick: () => void a(),+ dangerouslySetInnerHTML: { __html: r === "reveal" ? Ke("正在定位") : R("folder-open") }+ }), /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-sync": e,+ title: "核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失",+ "aria-label": "同步删除",+ ...r === "sync" ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {},+ onClick: () => void o(),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "folder-sync" })+ })] });}-function ESe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);+function tSe({ item: e, write: t }) {+ let n = ZC(e.rating);+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ id: "detailRating",+ role: "group",+ "data-item-rating": "",+ "aria-label": "评分",+ "data-value": XC(e.rating),+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ "data-rating-stars": "",+ children: [+ 1,+ 2,+ 3,+ 4,+ 5+ ].map((e) => /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-rate": e,+ "data-on": String(e <= n),+ title: e === n ? "再点一次取消评分" : `${e} 星`,+ "aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,+ ...t.busyAttrs(`rate:${e}`),+ onClick: () => t.rate(e),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "star" })+ }, e))+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ "data-rating-value": "",+ "aria-live": "polite",+ children: Ure(e.rating)+ })]+ });}-function DSe(e, t) {- if (e == null) return {};- var n, r, i = OSe(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 nSe({ item: e, actions: t }) {+ let n = (0, B.useMemo)(() => Hre(e), [e]), [r, i] = (0, B.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {+ let a = e === "performer" && i >= 8 && !r, o = e === "performer" ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-id-face": "",+ dangerouslySetInnerHTML: { __html: `<span>${L(n.name.slice(0, 1))}</span>` + A({+ id: n.id,+ hasImage: n.has_image,+ version: n.image_version,+ focus: n.avatar_focus+ }) }+ }) : /* @__PURE__ */ (0, V.jsx)("span", {+ "data-id-face": "",+ children: e === "studio" ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: n.name.slice(0, 2) }), n.has_logo ? /* @__PURE__ */ (0, V.jsx)("img", {+ src: M(n.name, "icon", n.logo_version),+ alt: "",+ loading: "lazy",+ "data-drop": "self"+ }) : null] }) : /* @__PURE__ */ (0, V.jsx)("span", { children: n.name.slice(0, 1) })+ }), s = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)("span", {+ "data-id-name": "",+ children: n.name+ })] }), c = e === "performer" && i >= 8 ? { "data-castoverflow": "" } : {};+ return n.id ? /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-id-cell": e,+ "data-entity-kind": e,+ "data-entity-name": n.name,+ title: n.name,+ hidden: a,+ ...c,+ onClick: () => t.openEntity(e, n.name),+ children: s+ }, `${e}:${n.name}`) : /* @__PURE__ */ (0, V.jsx)("span", {+ "data-id-cell": e,+ title: n.name,+ hidden: a,+ ...c,+ children: s+ }, `${e}:${n.name}`);+ }, s = (e, t, n, r = null) => n.length ? /* @__PURE__ */ (0, V.jsxs)("section", {+ "data-id-group": t,+ children: [/* @__PURE__ */ (0, V.jsx)("h5", {+ "data-id-label": "",+ children: e+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-id-row": "",+ children: [n.map((e, n) => o(t, e, n)), r]+ })]+ }, `${t}:${e}`) : null, c = [+ n.unowned ? /* @__PURE__ */ (0, V.jsxs)("section", {+ "data-id-group": "unowned",+ children: [/* @__PURE__ */ (0, V.jsx)("h5", {+ "data-id-label": "",+ children: "归属"+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ "data-id-row": "",+ children: /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-id-cell": "unowned",+ "data-open-unowned": "",+ title: "打开未归属:馆藏里没有署名人的作品",+ onClick: t.openUnowned,+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ "data-id-face": "",+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "user-round" })+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ "data-id-name": "",+ children: "未归属"+ })]+ })+ })]+ }, "unowned") : s(ee(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, V.jsxs)(J, {+ variant: "secondary",+ size: "small",+ id: "castMore",+ "data-cast-more": "",+ trailingIcon: sT,+ "aria-expanded": !1,+ onClick: () => i(!0),+ children: [+ "还有 ",+ a,+ " 位"+ ]+ }) : null),+ s("厂牌", "studio", n.studios),+ s("片商", "studio", n.makers)+ ].filter(Boolean);+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-item-identity": "",+ children: [+ c.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-identity-primary": "",+ children: c+ }) : null,+ s("创作者", "creator", n.creators),+ n.series.length ? /* @__PURE__ */ (0, V.jsxs)("section", {+ "data-id-group": "series",+ children: [/* @__PURE__ */ (0, V.jsx)("h5", {+ "data-id-label": "",+ children: "系列"+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ "data-series-rows": "",+ children: n.series.map((e) => e.id ? /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-series-link": "",+ "data-entity-kind": "series",+ "data-entity-name": e.name,+ title: e.name,+ onClick: () => t.openEntity("series", e.name),+ children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]+ }, e.name) : /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-series-link": "",+ title: e.name,+ children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]+ }, e.name))+ })]+ }) : null+ ]+ });}-function OSe(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];- }- return n;+function rSe({ item: e, write: t, helpers: n, actions: r }) {+ let i = Gre(e, n);+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-stage-tags": "",+ id: "detailTags",+ "data-item-tags": "",+ children: [i.map((e) => /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-detail-tag": "",+ children: [/* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-tag": e.k,+ onClick: () => r.openTag(e.k),+ children: n.tagLabel(e.k)+ }), /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-remove-tag": e.k,+ title: "从此视频隐藏该标签",+ "aria-label": `删除标签 ${n.tagLabel(e.k)}`,+ ...t.busyAttrs(`tag:${e.k}`),+ onClick: () => t.removeTag(e),+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "x" })+ })]+ }, e.k)), /* @__PURE__ */ (0, V.jsx)(iSe, {+ item: e,+ write: t,+ helpers: n+ })]+ });}-var XB = {- symbolCircle: eB,- symbolCross: Wxe,- symbolDiamond: Kxe,- symbolSquare: qxe,- symbolStar: Zxe,- symbolTriangle: Qxe,- symbolWye: eSe-}, kSe = Math.PI / 180, ASe = (e) => XB[`symbol${WB(e)}`] || eB, jSe = (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 * kSe;- 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;- }-}, MSe = (e, t) => {- XB[`symbol${WB(e)}`] = t;-}, ZB = (e) => {- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = YB(YB({}, DSe(e, CSe)), {}, {- type: t,- size: n,- sizeType: r- }), a = "circle";- typeof t == "string" && (a = t);- var o = () => {- var e = ASe(a), t = tSe().type(e).size(jSe(n, r, a))();- if (t !== null) return t;- }, { className: s, cx: c, cy: l } = i, u = Oz(i);- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", qB({}, u, {- className: _h("recharts-symbols", s),- transform: `translate(${c}, ${l})`,- d: o()- })) : null;-};-ZB.registerSymbol = MSe;-//#endregion-//#region node_modules/recharts/es6/util/types.js-var QB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, $B = (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) => {- Cz(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));- }), r;-}, NSe = (e, t, n) => (r) => (e(t, n, r), null), eV = (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];- Cz(i) && typeof a == "function" && (r ||= {}, r[i] = NSe(a, t, n));- }), r;-};-//#endregion-//#region node_modules/recharts/es6/util/resolveDefaultProps.js-function tV(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;+function iSe({ item: e, write: t, helpers: n }) {+ let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(-1), h = (0, B.useCallback)(() => {+ i.current && De(i.current), c(!1);+ }, []);+ (0, B.useEffect)(() => {+ if (!s) return;+ let e = (e) => {+ let t = e.target;+ !i.current?.contains(t) && t !== r.current && h();+ }, t = setTimeout(() => document.addEventListener("pointerdown", e, !0), 0);+ return () => {+ clearTimeout(t), document.removeEventListener("pointerdown", e, !0);+ };+ }, [s, h]);+ let g = s ? qre(d, n.tagCandidates(), nw()) : {+ recent: [],+ results: [],+ create: ""+ }, _ = [+ ...g.recent,+ ...g.results,+ ...g.create ? [{+ k: g.create,+ n: -1+ }] : []+ ], v = (e, n) => {+ h(), n || t.addTag(e.k);+ }, y = (n) => {+ if (!n.nativeEvent.isComposing) {+ if (n.key === "Escape") {+ n.preventDefault(), h(), r.current?.focus();+ return;+ }+ if (n.key === "ArrowDown" || n.key === "ArrowUp") {+ if (n.preventDefault(), !_.length) return;+ let e = (p + (n.key === "ArrowDown" ? 1 : -1) + _.length) % _.length;+ m(e), i.current?.querySelectorAll("[data-pick]")[e]?.scrollIntoView({ block: "nearest" });+ return;+ }+ if (n.key === "Enter") {+ n.preventDefault();+ let r = p >= 0 ? _[p] : null;+ r ? v(r, r.n !== -1 && QC(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));+ }+ }+ }, b = -1, x = (t) => {+ b += 1;+ let r = b, i = QC(e, t.k);+ return /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-pick": t.k,+ "data-active": r === p ? "" : void 0,+ "aria-pressed": i,+ onClick: () => v(t, i),+ children: [+ /* @__PURE__ */ (0, V.jsx)(Pz, { name: i ? "check" : "tags" }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-pick-name": "",+ children: n.tagLabel(t.k)+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-pick-count": "",+ children: (t.n || 0).toLocaleString()+ })+ ]+ }, `${r}:${t.k}`);+ };+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {+ ref: r,+ type: "button",+ id: "tagPlus",+ "data-tag-plus": "",+ title: "添加标签",+ "aria-label": "添加标签",+ "aria-expanded": s,+ onClick: () => {+ i.current && (ze(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));+ },+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "plus" })+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: i,+ id: "tagPicker",+ "data-tag-picker": "",+ role: "dialog",+ "aria-label": "添加标签",+ hidden: !0,+ children: [/* @__PURE__ */ (0, V.jsxs)("label", {+ "data-tag-search": "",+ children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "search" }), /* @__PURE__ */ (0, V.jsx)("input", {+ ref: a,+ id: "tagPickSearch",+ maxLength: 80,+ placeholder: "搜索或输入新标签",+ autoComplete: "off",+ value: l,+ onChange: (e) => {+ u(e.target.value), m(-1), o.current || f(e.target.value);+ },+ onCompositionStart: () => {+ o.current = !0;+ },+ onCompositionEnd: (e) => {+ o.current = !1, f(e.currentTarget.value);+ },+ onKeyDown: y+ })]+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ id: "tagPickBody",+ "data-tag-body": "",+ children: [s && g.recent.length ? /* @__PURE__ */ (0, V.jsxs)("section", {+ "data-tag-section": "",+ children: [/* @__PURE__ */ (0, V.jsx)("h4", { children: "最近使用" }), /* @__PURE__ */ (0, V.jsx)("div", {+ "data-tag-grid": "",+ children: g.recent.map(x)+ })]+ }) : null, s ? /* @__PURE__ */ (0, V.jsxs)("section", {+ "data-tag-section": "",+ children: [/* @__PURE__ */ (0, V.jsx)("h4", { children: d.trim() ? "搜索结果" : "全部标签" }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-tag-grid": "",+ children: [g.results.map(x), g.create ? (() => {+ b += 1;+ let e = b;+ return /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-pick": g.create,+ "data-active": e === p ? "" : void 0,+ onClick: () => {+ h(), t.addTag(g.create);+ },+ children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "plus" }), /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-pick-name": "",+ children: [+ "新建“",+ g.create,+ "”"+ ]+ })]+ }, "create");+ })() : null]+ })]+ }) : null]+ })]+ })] });}-function PSe(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? tV(Object(n), !0).forEach(function(t) {- FSe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tV(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+function aSe({ item: e }) {+ let t = tie(e);+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-item-trace": "",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ "data-trace-metric": "",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ "data-trace-label": "",+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "离开位置" }), /* @__PURE__ */ (0, V.jsx)("span", {+ id: "ratioTxt",+ children: "0%"+ })]+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-trace-bar": "",+ children: [/* @__PURE__ */ (0, V.jsx)("u", { id: "watched" }), /* @__PURE__ */ (0, V.jsx)("b", { id: "mark" })]+ })]+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-trace-metric": "",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ "data-trace-label": "",+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "真实观看" }), /* @__PURE__ */ (0, V.jsx)("span", {+ id: "realTxt",+ children: t == null ? "0%" : `${t.toFixed(0)}%`+ })]+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ "data-trace-bar": "",+ children: /* @__PURE__ */ (0, V.jsx)("u", {+ id: "realBar",+ "data-trace-real": "",+ style: t == null ? void 0 : { width: `${t.toFixed(1)}%` }+ })+ })]+ })]+ });+}+function oSe({ item: e, open: t, write: n }) {+ let [r, i] = (0, B.useState)(e.like_reason || ""), a = (0, B.useRef)(null);+ (0, B.useEffect)(() => {+ t && a.current?.focus();+ }, [t]), (0, B.useEffect)(() => {+ i(e.like_reason || "");+ }, [e.like_reason]);+ let o = n.busy.has("preference");+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ id: "preferencePanel",+ "data-item-preference": "",+ hidden: !t,+ children: [/* @__PURE__ */ (0, V.jsx)("textarea", {+ ref: a,+ id: "likeReason",+ maxLength: 2e3,+ placeholder: "为什么喜欢?",+ value: r,+ onChange: (e) => i(e.target.value)+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-preference-foot": "",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ id: "preferenceState",+ "aria-live": "polite",+ children: n.preferenceState+ }), /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ className: "geist-button primary",+ id: "savePreference",+ "data-save-preference": "",+ title: "提交喜爱理由",+ "aria-label": "提交喜爱理由",+ ...n.busyAttrs("preference"),+ onClick: () => n.preference({ reason: r }),+ dangerouslySetInnerHTML: { __html: o ? `${Ke("正在提交喜爱理由")}<span>提交中…</span>` : "<span>提交</span>" }+ })]+ })]+ });+}+function sSe(e) {+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = TS({+ queryKey: Rre(t.id, n),+ queryFn: async ({ signal: e }) => (await G(Bre(t.id, n), e)).items || []+ }), [o] = (0, B.useState)(() => r.relatedSkeletonHtml()), s = (0, B.useCallback)((e) => {+ e && (ke(e), r.wireDrag(e));+ }, [r]);+ return a.data && !a.data.length ? null : /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-item-related": "",+ children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ className: "font-semibold",+ children: "接着看"+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ ref: s,+ id: "nrow",+ "data-related-row": "",+ children: a.data ? /* @__PURE__ */ (0, V.jsx)(wA, {+ mode: "items",+ variant: "next",+ items: a.data,+ helpers: i.helpers,+ actions: i.actions,+ layout: e.layout,+ selectMode: e.selectMode,+ selected: e.selected,+ seekSeconds: e.seekSeconds,+ revision: 0,+ wireDrag: r.wireDrag,+ skeletonHtml: () => ""+ }) : a.isError ? null : /* @__PURE__ */ (0, V.jsx)(Fz, { html: o })+ })]+ });+}+function cSe(e, t, n) {+ let r = e.id, i = FC(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = (e, t) => o((n) => {+ let r = new Set(n);+ return t ? r.add(e) : r.delete(e), r;+ }), f = () => z.getQueryData(i) || e, p = (e) => {+ let t = typeof e == "function" ? e(f()) : {+ ...f(),+ ...e+ };+ z.setQueryData(i, t);+ let n = {+ feedback: t.feedback,+ disposal: t.disposal,+ watch_later: t.watch_later,+ rating: t.rating,+ o_count: t.o_count+ };+ return NC(r, n), t;+ }, m = (e, t) => K(e, {+ id: r,+ ...t+ }), h = OS({+ mutationFn: ({ run: e }) => e(),+ onError: (e, { action: n }) => t.failure(n, e),+ onSettled: (e, t, { name: n }) => d(n, !1)+ }), g = (e, t, n) => {+ a.has(e) || (d(e, !0), h.mutate({+ name: e,+ action: t,+ run: n+ }));+ }, _ = async (e, t) => {+ let n = await m(RC, t === void 0 ? { kind: e } : {+ kind: e,+ value: t});- }- return e;+ return p(e === "rate" ? { rating: n.rating ?? null } : {+ feedback: n.feedback ?? void 0,+ disposal: n.disposal ?? void 0,+ o_count: n.o_count+ }), n;+ };+ return {+ busy: a,+ sourceState: s,+ setSourceState: c,+ preferenceState: l,+ busyAttrs: (e) => a.has(e) ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {},+ rate: (e) => g(`rate:${e}`, "评分", async () => {+ let n = f().rating || 0, r = Wre(n, e);+ await _("rate", r), t.toast(r ? `已评 ${ZC(r)} 星` : "已取消评分", { undo: async () => {+ await _("rate", n);+ } });+ }),+ feedback: (e) => g(e, "操作", async () => {+ let n = { feedback: f().feedback || null }, r = await _(e);+ t.toast(iw(e, r), { undo: async () => {+ e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);+ } }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);+ }),+ later: () => g("later", "更新稍后看", async () => {+ let e = await m(BC, {});+ p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {+ p({ watch_later: (await m(BC, {})).watch_later });+ } });+ }),+ quality: () => g("quality", "更新版本需求", async () => {+ let e = {+ wanted: !!f().better_version,+ reason: f().better_version_reason || ""+ }, n = (e) => p({+ better_version: e.better_version,+ better_version_reason: e.better_version_reason || ""+ }), r = await m(VC, { wanted: !e.wanted });+ n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {+ n(await m(VC, e));+ } });+ }),+ preference: ({ liked: e, reason: n }) => {+ g(e === void 0 ? "preference" : "like", "保存喜欢偏好", async () => {+ let r = {+ liked: !!f().liked,+ reason: f().like_reason || ""+ }, i = n ?? r.reason, a = e ?? (r.liked || i.trim().length > 0), o = (e) => p({+ liked: e.liked,+ like_reason: e.like_reason || ""+ });+ u("保存中…");+ try {+ o(await m(HC, {+ liked: a,+ reason: i+ }));+ } catch (e) {+ throw u("保存失败 · 请重试"), e;+ }+ u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);+ let s = f();+ t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {+ o(await m(HC, r));+ } });+ });+ },+ removeTag: (e) => g(`tag:${e.k}`, "删除标签", async () => {+ if (!(await m("/api/item-tag", {+ operation: "remove",+ tag: e.k+ })).ok) throw Error("标签未删除");+ p((t) => $C(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {+ await m(zC, {+ operation: "add",+ tag: e.k+ }), p((t) => ew(t, e));+ } });+ }),+ addTag: (e) => {+ let r = e.trim();+ r && g(`add:${r}`, "添加标签", async () => {+ (await m("/api/item-tag", {+ operation: "add",+ tag: r+ })).ok && (p((e) => ew(e, {+ k: r,+ cat: "general"+ })), Kre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {+ await m(zC, {+ operation: "remove",+ tag: r+ }), p((e) => $C(e, r));+ } }));+ });+ }+ };}-function FSe(e, t, n) {- return (t = ISe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;+//#endregion+//#region src/react/stage/stage-player.ts+var Lz = null, Rz = null, zz = null, Bz = null, Vz = null, Hz = !1, Uz = 0, Wz = null, Gz = () => !1, Kz = (e, t, n) => `${e}:${t}:${n ?? ""}`;+function lSe(e, t) {+ Lz = e, Gz = () => t.isOpen(), Wz = () => t.requestClose(), Yne({+ ...e.player,+ stage: () => document.getElementById("stage")+ }), Xne({+ inMiniplayer: (e) => Rz?.player === e,+ kind: (e) => Rz?.player === e ? Rz.kind : zz?.kind ?? Bz?.kind ?? "item",+ expand: () => dB(),+ toMiniplayer: () => fB()+ }), qz || (qz = !0, addEventListener("pagehide", () => fC()));+}+var qz = !1;+function Jz() {+ if (!Lz) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");+ return Lz;}-function ISe(e) {- var t = LSe(e, "string");- return typeof t == "symbol" ? t : t + "";+function Yz(e) {+ Bz = e;}-function LSe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);+var uSe = () => Bz;+function Xz(e, t) {+ let { kind: n, item: r, media: i = null } = t, a = Kz(n, r.id, i?.index ?? null);+ if (Rz && Rz.key === a) return dSe(e, Rz);+ Rz && uB();+ let o = {+ player: null,+ kind: n,+ item: r,+ mediaIndex: i?.index ?? null,+ key: a+ };+ zz = o;+ let s = document.createElement("video");+ t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);+ let c = EC(s, {+ kind: n,+ item: r,+ media: i,+ autoplay: t.autoplay,+ resume: t.resume ?? null,+ onPlayer: (e) => {+ zz === o && (o.player = e);+ },+ handedOff: (e) => Rz?.player === e+ });+ return () => {+ let e = !!o.player && Rz?.player === o.player;+ zz === o && (zz = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), fC());+ };}-function nV(e, t) {- var n = PSe({}, e), r = t;- return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);+function dSe(e, t) {+ let { player: n } = t;+ cB(t), Rz = null, lB(), n.el().classList.remove("vjs-peach-mini"), wC(e), e.append(n.el()), VS(n);+ let r = {+ player: n,+ kind: t.kind,+ item: t.item,+ mediaIndex: t.mediaIndex,+ key: t.key+ };+ zz = r;+ let i = TC(n, e);+ return HS(n), () => {+ zz === r && (zz = null), i(), Rz?.player !== n && (BS() === n && VS(null), iC(n), fC());+ };}-//#endregion-//#region node_modules/recharts/es6/component/DefaultLegendContent.js-function rV() {- return rV = 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;- }, rV.apply(null, arguments);+var Zz = () => {+ let e = zz?.player;+ return e && !e.isDisposed() ? e : null;+};+function fSe(e) {+ let t = Hz;+ Hz = !1, Rz?.pending && uB();+ let n = zz, r = n?.player, i = Bz;+ if (!n || !r || r.isDisposed() || !i || !Vz) return;+ let a = Jz().player.settings();+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && gSe({+ player: r,+ kind: n.kind,+ item: n.item,+ mediaIndex: n.mediaIndex,+ key: n.key+ }, i);}-function iV(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);+function Qz(e, t) {+ if (Hz = !1, Rz) {+ if (Rz.kind === e && Rz.item.id === t) {+ Rz.pending = !0, lB();+ return;+ }+ uB();}- return n;}-function aV(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? iV(Object(n), !0).forEach(function(t) {- RSe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iV(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+function $z(e) {+ Vz = e, Vz && oB();+}+var eB = () => !!Rz && !Rz.pending && !Rz.player.isDisposed();+function pSe() {+ return eB() ? Vz?.frame.querySelector("video") ?? null : null;+}+function mSe() {+ return Gz() ? document.getElementById("stage")?.querySelector("video") ?? null : pSe();+}+function tB(e) {+ Vz && (Vz.title.textContent = e.title || "", Vz.sub.textContent = e.sub || "", Vz.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));+}+function nB(e = Rz?.item) {+ if (!Vz) return;+ let t = Vz.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;+ Vz.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);+}+function rB() {+ let e = Rz?.player;+ if (!e || e.isDisposed() || !Vz) return;+ let t = e.paused();+ Vz.play.setAttribute("aria-label", t ? "播放" : "暂停"), Vz.play.querySelector("[data-icon-swap]") || (Vz.play.innerHTML = je("player-pause", "player-play", t ? "b" : "a")), Ge(Vz.play, t ? "b" : "a");+}+function iB() {+ let e = Rz?.player;+ if (!e || e.isDisposed() || !Vz) return;+ let t = ve(Rz?.item.duration) || ve(e.duration());+ Vz.time.textContent = `${de(e.currentTime())} / ${t ? de(t) : "0:00"}`;+}+var aB = () => Math.max(1, Number(Jz().player.settings().seekSeconds) || 10);+function oB() {+ if (!Vz || !Lz) return;+ let e = aB();+ for (let [t, n] of [[Vz.back, `后退 ${e} 秒`], [Vz.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;+}+function sB(e) {+ let t = (t, n) => {+ e.player.on(t, n), e.off.push(() => {+ try {+ e.player.off(t, n);+ } catch {}});+ };+ t([+ "play",+ "pause",+ "ended"+ ], rB), t([+ "timeupdate",+ "durationchange",+ "loadedmetadata"+ ], iB), t("loadedmetadata", () => nB()), rB(), iB(), nB(), oB();+}+function cB(e) {+ e.off.forEach((e) => e()), e.off = [];+}+function hSe() {+ let e = Vz?.root;+ if (!e) return;+ let t = e.hidden;+ if (e.hidden = !1, !t) return;+ e.setAttribute("data-miniplayer-enter", "");+ let n = () => e.removeAttribute("data-miniplayer-enter");+ e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);+}+function lB() {+ let e = Vz?.root;+ if (e) {+ e.hidden = !0;+ for (let t of [+ "data-miniplayer-drag",+ "data-miniplayer-snap",+ "data-miniplayer-enter"+ ]) e.removeAttribute(t);+ e.style.transform = "";}- return e;}-function RSe(e, t, n) {- return (t = zSe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;+function gSe(e, t) {+ if (!Vz) return;+ let n = {+ ...e,+ meta: t,+ off: [],+ pending: !1+ };+ Rz = n, Uz++, e.player.el().classList.add("vjs-peach-mini"), Vz.frame.prepend(e.player.el()), tB(t), sB(n), hSe(), HS(e.player);}-function zSe(e) {- var t = BSe(e, "string");- return typeof t == "symbol" ? t : t + "";+function uB() {+ let e = Rz;+ e && cB(e), Rz = null, Uz++;+ let t = e?.player ?? null;+ t && BS() === t && VS(null), iC(t), t && fC(), Vz?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), RS(), lB();}-function BSe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");+function dB() {+ if (!eB() || !Rz) return;+ let { kind: e, item: t, mediaIndex: n } = Rz;+ Jz().expand(e, t.id, n);+}+function fB() {+ if (eB() && !Gz()) {+ dB();+ return;}- return (t === "string" ? String : Number)(e);+ Gz() && Zz() && Wz && (Hz = !0, Wz());}-var oV = 32, VSe = {- align: "center",- iconSize: 14,- inactiveColor: "#ccc",- layout: "horizontal",- verticalAlign: "middle",- labelStyle: {}-};-function HSe(e) {- if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);+function _Se() {+ let e = Rz?.player;+ !e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());}-function USe(e) {- var { data: t, iconType: n, inactiveColor: r } = e, i = oV / 2, a = oV / 6, o = oV / 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: HSe(t.payload),- x1: 0,- y1: i,- x2: oV,- y2: i,- className: "recharts-legend-icon"- });- if (c === "line") return /*#__PURE__*/ B.createElement("path", {- strokeWidth: 4,- fill: "none",- stroke: s,- d: `M0,${i}h${o}- A${a},${a},0,1,1,${2 * o},${i}- H${oV}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,${oV / 8}h${oV}v${oV * 3 / 4}h${-oV}z`,- className: "recharts-legend-icon"- });- if (/*#__PURE__*/ B.isValidElement(t.legendIcon)) {- var l = aV({}, t);- return delete l.legendIcon, /*#__PURE__*/ B.cloneElement(t.legendIcon, l);- }- return /*#__PURE__*/ B.createElement(ZB, {- fill: s,- cx: i,- cy: i,- size: oV,- sizeType: "diameter",- type: c- });+function pB(e) {+ let t = Rz?.player;+ if (!t || t.isDisposed()) return;+ let n = ve(t.duration()) || ve(Rz?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + aB() * e);+ t.currentTime(n ? Math.min(n, r) : r);}-function WSe(e) {- var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {- x: 0,- y: 0,- width: oV,- height: oV- }, l = {- display: r === "horizontal" ? "inline-block" : "block",- marginRight: 10- }, u = {- display: "inline-block",- verticalAlign: "middle",- marginRight: 4- };- return t.map((t, r) => {- var d = t.formatter || i, f = _h({- "recharts-legend-item": !0,- [`legend-item-${r}`]: !0,- inactive: t.inactive- });- if (t.type === "none") return null;- var p = typeof s == "object" ? aV({}, 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", rV({- className: f,- style: l,- key: `legend-item-${r}`- }, eV(e, t, r)), /*#__PURE__*/ B.createElement(Az, {- width: n,- height: n,- viewBox: c,- style: u,- "aria-label": `${m} legend icon`- }, /*#__PURE__*/ B.createElement(USe, {- data: t,- iconType: o,- inactiveColor: a- })), /*#__PURE__*/ B.createElement("span", {- className: "recharts-legend-item-text",- style: p- }, m));- });+function mB(e) {+ return !(!eB() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || Jz().sourceOffline(String(e.location ?? "")));}-var GSe = (e) => {- var t = nV(e, VSe), { payload: n, layout: r, align: i } = t;- if (!n || !n.length) return null;- var a = {- padding: 0,- margin: 0,- textAlign: r === "horizontal" ? i : "left"- };- return /*#__PURE__*/ B.createElement("ul", {- className: "recharts-default-legend",- style: a- }, /*#__PURE__*/ B.createElement(WSe, rV({}, t, { payload: n })));-};-//#endregion-//#region node_modules/es-toolkit/dist/array/uniqBy.mjs-function KSe(e, t) {- let n = /* @__PURE__ */ new Map();- for (let r = 0; r < e.length; r++) {- let i = e[r], a = t(i, r, e);- n.has(a) || n.set(a, i);+async function vSe(e) {+ if (!eB() || !Rz || !Vz) return;+ let t = ++Uz, n = await ce(`/api/item?id=${e}`).catch(() => null);+ if (t !== Uz || !eB() || !Rz || !Vz || !n || n.error) return;+ if (!mB(n)) {+ Jz().openItem(e);+ return;}- return Array.from(n.values());-}-//#endregion-//#region node_modules/es-toolkit/dist/function/ary.mjs-function qSe(e, t) {- return function(...n) {- return e.apply(this, n.slice(0, t));+ let r = Rz;+ cB(r), BS() === r.player && VS(null), iC(r.player), fC(), Vz.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());+ let i = document.createElement("video");+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", Vz.frame.prepend(i);+ let a = {+ kind: "item",+ item: n,+ title: String(n.title || n.name || ""),+ sub: String(n.performers?.[0] || n.creator || "未归属")};+ tB(a), EC(i, {+ kind: "item",+ item: n,+ autoplay: !0,+ chrome: !1,+ onPlayer: (r) => {+ if (t !== Uz) {+ r && BS() === r && VS(null), iC(r);+ return;+ }+ if (!r) {+ uB(), Jz().openItem(e);+ return;+ }+ r.el().classList.add("vjs-peach-mini");+ let i = {+ player: r,+ kind: "item",+ item: n,+ mediaIndex: null,+ key: Kz("item", n.id, null),+ meta: a,+ off: [],+ pending: !1+ };+ Rz = i, sB(i);+ }+ }), nB(n);}//#endregion-//#region node_modules/es-toolkit/dist/function/identity.mjs-function sV(e) {- return e;+//#region src/react/stage/miniplayer.tsx+var hB = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 24 24",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })+}), ySe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, gB = (e) => (t) => {+ t.stopPropagation(), e();+}, bSe = (0, B.memo)(function() {+ let e = (0, B.useRef)(null), t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)(null);+ return (0, B.useLayoutEffect)(() => ($z({+ root: e.current,+ frame: n.current,+ play: r.current,+ time: i.current,+ back: a.current,+ ahead: o.current,+ title: s.current,+ sub: c.current,+ info: l.current+ }), () => $z(null)), []), (0, B.useEffect)(() => SSe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {+ ref: e,+ "data-miniplayer": "",+ id: "miniplayer",+ "data-corner": "br",+ "aria-label": "小窗播放",+ hidden: !0,+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: t,+ "data-miniplayer-card": "",+ id: "miniplayerCard",+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ ref: n,+ "data-miniplayer-frame": "",+ id: "miniplayerFrame",+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-miniplayer-scrim": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-miniplayer-button": "expand",+ id: "miniplayerExpand",+ "aria-label": "展开到详情",+ "aria-keyshortcuts": "i",+ onClick: gB(dB),+ children: /* @__PURE__ */ (0, V.jsx)(hB, { name: "maximize-2" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-miniplayer-button": "close",+ id: "miniplayerClose",+ "aria-label": "关闭小窗",+ onClick: gB(uB),+ children: /* @__PURE__ */ (0, V.jsx)(hB, { name: "x" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ ref: a,+ type: "button",+ "data-miniplayer-seek": "",+ id: "miniplayerBack",+ onClick: gB(() => pB(-1)),+ children: /* @__PURE__ */ (0, V.jsx)(hB, { name: "rotate-ccw" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ ref: r,+ type: "button",+ "data-miniplayer-play": "",+ id: "miniplayerPlay",+ "aria-label": "暂停",+ "aria-keyshortcuts": "k",+ onClick: gB(_Se),+ dangerouslySetInnerHTML: ySe+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ ref: o,+ type: "button",+ "data-miniplayer-seek": "",+ id: "miniplayerAhead",+ onClick: gB(() => pB(1)),+ children: /* @__PURE__ */ (0, V.jsx)(hB, { name: "rotate-cw" })+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ ref: i,+ className: "mono",+ "data-miniplayer-time": "",+ id: "miniplayerTime",+ children: "0:00 / 0:00"+ })+ ]+ })+ }), /* @__PURE__ */ (0, V.jsxs)("button", {+ ref: l,+ type: "button",+ "data-miniplayer-info": "",+ id: "miniplayerInfo",+ "aria-label": "展开到详情",+ onClick: () => dB(),+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ ref: s,+ "data-miniplayer-title": "",+ id: "miniplayerTitle"+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ ref: c,+ "data-miniplayer-sub": "",+ id: "miniplayerSub"+ })]+ })]+ })+ });+});+function xSe(e, t, n) {+ let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {+ left: r.left - t,+ top: r.top - n+ }, s = {+ left: i.endsWith("l") ? 16 : innerWidth - 16 - r.width,+ top: i.startsWith("t") ? a + 16 : innerHeight - 16 - r.height+ };+ e.removeAttribute("data-miniplayer-drag");+ let c = () => {+ e.removeAttribute("data-miniplayer-snap"), e.style.transition = "none", e.dataset.corner = i, e.style.transform = "", e.getBoundingClientRect(), e.style.transition = "";+ };+ if (matchMedia("(prefers-reduced-motion: reduce)").matches) {+ c();+ return;+ }+ e.setAttribute("data-miniplayer-snap", ""), e.style.transform = `translate(${s.left - o.left}px,${s.top - o.top}px)`;+ let l = !1, u = () => {+ l || (l = !0, e.removeEventListener("transitionend", u), c());+ };+ e.addEventListener("transitionend", u), setTimeout(u, 600);}-//#endregion-//#region node_modules/es-toolkit/dist/predicate/isLength.mjs-function JSe(e) {- return Number.isSafeInteger(e) && e >= 0;+function SSe(e, t) {+ let n = null, r = (e) => {+ if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {+ n = {+ id: e.pointerId,+ x: e.clientX,+ y: e.clientY,+ dx: 0,+ dy: 0,+ moved: !1+ };+ try {+ t.setPointerCapture(e.pointerId);+ } catch {}+ }+ }, i = (t) => {+ !n || t.pointerId !== n.id || (n.dx = t.clientX - n.x, n.dy = t.clientY - n.y, !(!n.moved && Math.hypot(n.dx, n.dy) < 4) && (n.moved || (n.moved = !0, e.setAttribute("data-miniplayer-drag", ""), e.removeAttribute("data-miniplayer-snap")), e.style.transform = `translate(${n.dx}px,${n.dy}px)`));+ }, a = (r) => {+ if (!n || r.pointerId !== n.id) return;+ let i = n;+ n = null;+ try {+ t.releasePointerCapture(r.pointerId);+ } catch {}+ i.moved && (e.dataset.dragged = "1", setTimeout(() => {+ delete e.dataset.dragged;+ }, 0), xSe(e, i.dx, i.dy));+ }, o = (t) => {+ e.dataset.dragged && (t.stopPropagation(), t.preventDefault());+ }, s = (e) => {+ n && e.preventDefault();+ };+ return t.addEventListener("pointerdown", r), t.addEventListener("mousedown", s), t.addEventListener("pointermove", i), t.addEventListener("pointerup", a), t.addEventListener("pointercancel", a), t.addEventListener("click", o, !0), () => {+ t.removeEventListener("pointerdown", r), t.removeEventListener("mousedown", s), t.removeEventListener("pointermove", i), t.removeEventListener("pointerup", a), t.removeEventListener("pointercancel", a), t.removeEventListener("click", o, !0);+ };}//#endregion-//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs-function cV(e) {- return e != null && typeof e != "function" && JSe(e.length);+//#region src/react/stage/stage.tsx+var _B = null, vB = null, yB = /* @__PURE__ */ new Set(), bB = 0, xB = null, SB = !1, CB = !1, wB = () => {+ let e = document.getElementById("stage");+ return e instanceof HTMLDialogElement ? e : null;+};+function TB() {+ if (!_B) throw Error("舞台还没有接上宿主(configureStage)");+ return _B;}-//#endregion-//#region node_modules/es-toolkit/dist/compat/object/property.mjs-function YSe(e) {- return function(t) {- return jB(t, e);+function CSe(e) {+ return yB.add(e), () => {+ yB.delete(e);};}-//#endregion-//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs-function lV(e) {- return e == null || typeof e != "object" && typeof e != "function";+function wSe() {+ for (let e of [...yB]) e();}-//#endregion-//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs-function XSe(e) {- return ArrayBuffer.isView(e) && !(e instanceof DataView);+function EB() {+ (0, $f.flushSync)(wSe);}-//#endregion-//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs-function ZSe(e) {- return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));+function TSe({ view: e }) {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)(ESe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, V.jsx)(bSe, {})] });}-//#endregion-//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs-function uV(e) {- return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);+var DB = () => /* @__PURE__ */ (0, V.jsx)("div", {+ "data-skeleton": "detail",+ role: "status",+ "aria-label": "正在读取作品详情",+ dangerouslySetInnerHTML: { __html: pxe() }+});+function OB(e) {+ let t = e.currentTarget;+ if (e.target !== t) return !1;+ let n = t.getBoundingClientRect();+ return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;}-//#endregion-//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs-var QSe = "[object RegExp]", dV = "[object String]", fV = "[object Number]", pV = "[object Boolean]", mV = "[object Arguments]", $Se = "[object Symbol]", eCe = "[object Date]", tCe = "[object Map]", nCe = "[object Set]", rCe = "[object Array]", iCe = "[object ArrayBuffer]", aCe = "[object Object]", oCe = "[object DataView]", sCe = "[object Uint8Array]", cCe = "[object Uint8ClampedArray]", lCe = "[object Uint16Array]", uCe = "[object Uint32Array]", dCe = "[object Int8Array]", fCe = "[object Int16Array]", pCe = "[object Int32Array]", mCe = "[object Float32Array]", hCe = "[object Float64Array]", hV = 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 gCe(e) {- return hV.Buffer !== void 0 && hV.Buffer.isBuffer(e);+function ESe({ view: e }) {+ let t = (0, B.useRef)(null);+ (0, B.useLayoutEffect)(() => {+ let e = t.current, n = (e) => {+ e.preventDefault(), kB();+ };+ return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);+ }, []);+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, V.jsx)(Gxe, { ...r.props }) : /* @__PURE__ */ (0, V.jsx)(Nxe, { ...r.props }, r.props.id);+ return /* @__PURE__ */ (0, V.jsxs)("dialog", {+ ref: t,+ id: "stage",+ "data-stage": "",+ "aria-label": "作品详情",+ onKeyDown: (e) => {+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), kB());+ },+ onPointerDown: (e) => {+ CB = OB(e);+ },+ onClick: (e) => {+ CB && OB(e) && kB();+ },+ children: [+ n === "skeleton" ? /* @__PURE__ */ (0, V.jsx)(DB, {}, "skeleton") : null,+ n === "reveal" ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-stage-fade": "",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, V.jsx)(DB, {})+ }, "fade") : null,+ n === "skeleton" ? null : /* @__PURE__ */ (0, V.jsx)("div", {+ "data-stage-scroll": "",+ children: /* @__PURE__ */ (0, V.jsx)("div", {+ className: "peach-react",+ children: i+ })+ }, "content")+ ]+ });}-//#endregion-//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs-function _Ce(e, t) {- return gV(e, void 0, e, /* @__PURE__ */ new Map(), t);+function kB() {+ !vB || SB || (SB = !0, vB.request.actions.close());}-function gV(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {- let a = i?.(e, t, n, r);- if (a !== void 0) return a;- if (lV(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] = gV(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());- if (e instanceof RegExp) {- let t = new RegExp(e.source, e.flags);- return t.lastIndex = e.lastIndex, t;- }- if (e instanceof Map) {- let t = /* @__PURE__ */ new Map();- r.set(e, t);- for (let [a, o] of e) t.set(a, gV(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(gV(a, void 0, n, r, i));- return t;- }- if (gCe(e)) return e.subarray();- if (XSe(e)) {- let t = new (Object.getPrototypeOf(e)).constructor(e.length);- r.set(e, t);- for (let a = 0; a < e.length; a++) t[a] = gV(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), _V(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), _V(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), _V(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, _V(t, e, n, r, i), t;- }- if (e instanceof Boolean) {- let t = new Boolean(e.valueOf());- return r.set(e, t), _V(t, e, n, r, i), t;- }- if (e instanceof Number) {- let t = new Number(e.valueOf());- return r.set(e, t), _V(t, e, n, r, i), t;+function AB(e, t) {+ let n = wB();+ n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);+}+function jB(e) {+ let t = e.resume ?? null, n = (n) => {+ let r = t && (e.id == null || e.id === n) ? t : null;+ return t = null, r;+ }, r = () => TB().player.settings(), i = () => vB?.request === e;+ if (e.kind === "item") {+ let { kind: t, resume: a, actions: o, ...s } = e, c = {+ ...o,+ close: kB,+ present: (e, t) => {+ let n = e.performers;+ Yz({+ kind: "item",+ item: e,+ title: String(e.title || e.name || ""),+ sub: String(n?.[0] || e.creator || "未归属")+ }), AB(r().ambientMode, r().theaterMode), queueMicrotask(() => {+ i() && o.present(e, t);+ });+ },+ mountPlayer: (e, t, r, i) => Xz(e, {+ kind: "item",+ item: t,+ autoplay: i?.autoplay,+ resume: n(t.id),+ id: "vid"+ })+ };+ return {+ kind: "item",+ props: {+ ...s,+ actions: c+ }+ };}- if (e instanceof String) {- let t = new String(e.valueOf());- return r.set(e, t), _V(t, e, n, r, i), t;+ let { kind: a, resume: o, actions: s, ...c } = e, l = {+ ...s,+ close: kB,+ present: (e, t) => {+ Yz({+ kind: "follow",+ item: e,+ title: e.title || "",+ sub: e.author || e.source_label || ""+ }), AB(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {+ i() && s.present(e, t);+ });+ },+ mountPlayer: (e, t, r, i) => Xz(e, {+ kind: "follow",+ item: t,+ media: r,+ poster: t.thumb_url || void 0,+ onError: i.onError,+ resume: n(t.id)+ })+ };+ return {+ kind: "follow",+ props: {+ ...c,+ actions: l+ }+ };+}+function DSe(e, t) {+ let n = e.querySelector(":scope > [data-stage-fade]");+ e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");+ let r = 0, i = () => {+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), vB?.generation === t && vB.phase === "reveal" && (vB = {+ ...vB,+ phase: "content"+ }, EB());+ }, a = (e) => {+ e.target === n && i();+ };+ n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);+}+function MB(e) {+ let t = wB();+ return !vB || vB.content.kind !== e || SB || !t?.open || t.hasAttribute("data-closing") ? null : t;+}+async function OSe(e) {+ let t = MB(e.kind);+ if (t) {+ await kSe(e, t);+ return;}- if (typeof e == "object" && vCe(e)) {- let t = Object.create(Object.getPrototypeOf(e));- return r.set(e, t), _V(t, e, n, r, i), t;+ vB && NB({ miniplayer: !1 });+ let n = ++bB, r = new AbortController();+ xB = r, SB = !1, CB = !1, Qz(e.kind, e.id ?? NaN), vB = {+ generation: n,+ request: e,+ content: jB(e),+ phase: "skeleton"+ }, EB();+ let i = wB();+ if (!i) return;+ ke(i), document.body.setAttribute("data-detail-open", ""), i.open || i.showModal();+ let a = vB.content;+ try {+ a.kind === "item" ? await YC(a.props, r.signal) : await yz(a.props, r.signal);+ } catch {+ if (r.signal.aborted) return;}- return e;+ if (n !== bB || !vB) return;+ let o = !!i.querySelector(".skeleton-awaiting");+ vB = {+ ...vB,+ phase: o ? "content" : "reveal"+ }, EB(), o || DSe(i, n), Be(i, ":scope>:not([data-stage-fade]) [data-reveal-line]");+ let s = document.activeElement;+ (s === i || !i.contains(s)) && i.querySelector("#closeStage")?.focus();}-function _V(e, t, n = e, r, i) {- let a = [...Object.keys(t), ...ZSe(t)];- for (let o = 0; o < a.length; o++) {- let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);- (c == null || c.writable) && (e[s] = gV(t[s], s, n, r, i));- }-}-function vCe(e) {- switch (uV(e)) {- case mV:- case rCe:- case iCe:- case oCe:- case pV:- case eCe:- case mCe:- case hCe:- case dCe:- case fCe:- case pCe:- case tCe:- case fV:- case aCe:- case QSe:- case nCe:- case dV:- case $Se:- case sCe:- case cCe:- case lCe:- case uCe: return !0;- default: return !1;+async function kSe(e, t) {+ let n = ++bB;+ xB?.abort();+ let r = new AbortController();+ xB = r, CB = !1;+ let i = jB(e);+ try {+ i.kind === "item" ? await YC(i.props, r.signal) : await yz(i.props, r.signal);+ } catch {+ if (r.signal.aborted) return;}+ if (n !== bB || !vB || MB(e.kind) !== t) return;+ Qz(e.kind, e.id ?? NaN), ie(t), RS(), vB = {+ ...vB,+ request: e,+ content: i,+ phase: "content"+ }, EB(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Be(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");+ let a = document.activeElement;+ (a === t || !t.contains(a)) && (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });}-//#endregion-//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs-function yCe(e) {- return gV(e, void 0, e, /* @__PURE__ */ new Map(), void 0);+function ASe() {+ let e = wB();+ return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {+ let n = 0, r = () => {+ clearTimeout(n), e.removeEventListener("animationend", i), t();+ }, i = (t) => {+ t.target === e && r();+ };+ e.addEventListener("animationend", i), n = window.setTimeout(r, 380);+ }));}-//#endregion-//#region node_modules/es-toolkit/dist/compat/util/eq.mjs-function vV(e, t) {- return e === t || Number.isNaN(e) && Number.isNaN(t);+function NB({ miniplayer: e = !0 } = {}) {+ if (bB++, xB?.abort(), xB = null, fSe(e), !vB) return;+ let t = wB();+ t && ie(t), RS(), t?.open && t.close(), vB = null, SB = !1, CB = !1, EB(), Yz(null), document.body.removeAttribute("data-detail-open");}-//#endregion-//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs-function yV(e) {- return e !== null && (typeof e == "object" || typeof e == "function");+function jSe(e) {+ !vB || vB.content.kind !== "item" || (vB = {+ ...vB,+ content: {+ kind: "item",+ props: {+ ...vB.content.props,+ ...e+ }+ }+ }, EB());}-//#endregion-//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs-function bV(e, t, n) {- return typeof n == "function" ? xV(e, t, function e(t, r, i, a, o, s) {- let c = n(t, r, i, a, o, s);- return c === void 0 ? xV(t, r, e, s, !1) : !!c;- }, /* @__PURE__ */ new Map(), !0) : bV(e, t, () => void 0);+function MSe() {+ let e = uSe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, TB().player.settings().javImage) : "";+ if (!n) return;+ let r = Zz();+ r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);}-function xV(e, t, n, r, i = !1) {- if (t === e) return !0;- switch (typeof t) {- case "object": return bCe(e, t, n, r, i);- case "function": return Object.keys(t).length > 0 ? xV(e, { ...t }, n, r, i) : vV(e, t);- default: return yV(e) && i ? typeof t != "string" || t === "" : vV(e, t);+var NSe = {+ open: OSe,+ update: jSe,+ exit: ASe,+ dispose: NB,+ requestClose: kB,+ repaintPoster: MSe,+ isOpen: () => !!vB,+ showing: () => vB && MB(vB.content.kind) ? vB.content.kind : null,+ activeVideo: () => mSe(),+ toggleTheater: () => {+ vB && rC(!TB().player.settings().theaterMode);+ },+ toggleMiniplayer: () => fB(),+ closeMiniplayer: () => uB(),+ miniplayerActive: () => eB(),+ miniplayerTakesCard: (e) => mB(e),+ miniplayerPlay: (e) => {+ vSe(e);}+};+function PSe(e) {+ return _B = e, lSe(e, {+ isOpen: () => !!vB,+ requestClose: kB+ }), NSe;}-function bCe(e, t, n, r, i = !1) {- if (t == null) return !0;- if (Array.isArray(t)) return SV(e, t, n, r);- if (t instanceof Map) return xCe(e, t, n, r);- if (t instanceof Set) return SCe(e, t, n, r);- let a = Object.keys(t);- if (e == null) return i && a.length === 0;- if (i) lV(e) && (e = Object(e));- else {- let t = uV(e);- if (t !== "[object Object]" && t !== "[object Arguments]") return !1;- }- if (a.length === 0) return !0;- if (r?.has(t)) return r.get(t) === e;- r?.set(t, e);- try {- for (let i = 0; i < a.length; i++) {- let o = a[i];- if (!(o in e) || t[o] === void 0 && e[o] !== void 0 || t[o] === null && e[o] !== null || !n(e[o], t[o], o, e, t, r)) return !1;- }- return !0;- } finally {- r?.delete(t);- }-}-function xCe(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 SV(e, t, n, r) {- if (t.length === 0) return !0;- if (!Array.isArray(e)) return !1;- let i = /* @__PURE__ */ new Set();- for (let a = 0; a < t.length; a++) {- let o = t[a], s = !1;- for (let c = 0; c < e.length; c++) {- if (i.has(c)) continue;- let l = e[c], u = !1;- if (n(l, o, a, e, t, r) && (u = !0), u) {- i.add(c), s = !0;- break;- }- }- if (!s) return !1;- }- return !0;-}-function SCe(e, t, n, r) {- return t.size === 0 || e instanceof Set && SV([...e], [...t], n, r);+function FSe() {+ let e = (0, B.useSyncExternalStore)(CSe, () => vB);+ return _B ? /* @__PURE__ */ (0, V.jsx)(TSe, { view: e }) : null;}//#endregion-//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs-function CV(e, t) {- return bV(e, t, () => void 0);+//#region src/react/stats/stats.ts+var ISe = "/api/stats", PB = ["stats"], FB = (e) => G(ISe, e);+async function LSe(e) {+ await z.fetchQuery({+ queryKey: PB,+ queryFn: () => FB(e)+ });}-//#endregion-//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs-function CCe(e) {- return e = yCe(e), (t) => CV(t, e);+var IB = (e, t) => t ? Math.round(e / t * 100) : 0, RSe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, LB = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, RB = (e) => (e.max_reached || 0) * 100, zSe = (e) => e.kind === "online" ? "在线直接观看" : LB(e) < RB(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", BSe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, VSe = (e) => Math.max(1, ...e) * 1.1, HSe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), USe = {+ video: "视频",+ image: "图片",+ illustration: "插画",+ archive: "压缩包",+ audio: "音频",+ account: "账号",+ other: "其它文件"+}, WSe = (e) => e.map((e) => ({+ name: USe[e.k] ?? e.k,+ value: e.n+})).sort((e, t) => t.value - e.value), GSe = {+ 速食: "<5 分钟",+ 短: "5–15 分钟",+ 中: "15–40 分钟",+ 长: ">40 分钟"+}, zB = (e, t = {}) => e.map((e) => ({+ name: t[e.k] ?? e.k,+ value: e.n+})), KSe = (e) => zB(e, GSe), qSe = [+ [+ 1,+ 1,+ "1 次"+ ],+ [+ 2,+ 2,+ "2 次"+ ],+ [+ 3,+ 3,+ "3 次"+ ],+ [+ 4,+ 4,+ "4 次"+ ],+ [+ 5,+ 5,+ "5 次"+ ],+ [+ 6,+ 9,+ "6–9 次"+ ],+ [+ 10,+ Infinity,+ "≥10 次"+ ]+], JSe = (e) => qSe.map(([t, n, r]) => ({+ name: r,+ value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)+})), YSe = /* @__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 BB(e) {+ return typeof e == "string" && YSe.includes(e);}//#endregion-//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs-function wCe(e, t) {- return _Ce(e, (n, r, i, a) => {- let o = t?.(n, r, i, a);- if (o !== void 0) return o;- if (typeof e == "object") {- if (uV(e) === "[object Object]" && typeof e.constructor != "function") {- let t = {};- return a.set(e, t), _V(t, e, i, a), t;- }- switch (Object.prototype.toString.call(e)) {- case fV:- case dV:- case pV: {- let t = new e.constructor(e?.valueOf());- return _V(t, e), t;- }- case mV: {- let t = {};- return _V(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;- }- default: return;- }- }- });+//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js+var XSe = /* @__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 VB(e) {+ return typeof e == "string" && XSe.has(e);}-//#endregion-//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs-function TCe(e) {- return wCe(e);+function HB(e) {+ return typeof e == "string" && e.startsWith("data-");}-//#endregion-//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs-var ECe = /^(?:0|[1-9]\d*)$/;-function wV(e, t = 2 ** 53 - 1) {- switch (typeof e) {- case "number": return Number.isInteger(e) && e >= 0 && e < t;- case "symbol": return !1;- case "string": return ECe.test(e);+function UB(e) {+ if (typeof e != "object" || !e) return {};+ var t = {};+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VB(n) || HB(n)) && (t[n] = e[n]);+ return t;+}+function WB(e) {+ if (e == null) return null;+ if (/*#__PURE__*/ (0, B.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {+ var t = e.props;+ return UB(t);}+ return typeof e == "object" && !Array.isArray(e) ? UB(e) : null;}//#endregion-//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs-function DCe(e) {- return typeof e == "object" && !!e && uV(e) === "[object Arguments]";+//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js+function GB(e) {+ var t = {};+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VB(n) || HB(n) || BB(n)) && (t[n] = e[n]);+ return t;}-//#endregion-//#region node_modules/es-toolkit/dist/compat/object/has.mjs-function OCe(e, t) {- let n;- if (n = Array.isArray(t) ? t : typeof t == "string" && EB(t) && !(t in Object(e)) ? AB(t) : [t], n.length === 0) return !1;- let r = e;- for (let e = 0; e < n.length; e++) {- let t = DB(n[e]);- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || DCe(r)) && wV(t) && Number(t) < r.length)) return !1;- r = r[t];- }- return !0;+function ZSe(e) {+ return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? GB(e.props) : typeof e == "object" && !Array.isArray(e) ? GB(e) : null;}//#endregion-//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs-function kCe(e, t) {- switch (typeof e) {- case "object":- Object.is(e?.valueOf(), -0) && (e = "-0");- break;- case "number": e = DB(e);+//#region node_modules/recharts/es6/container/Surface.js+var QSe = [+ "children",+ "width",+ "height",+ "viewBox",+ "className",+ "style",+ "title",+ "desc"+];+function KB() {+ return KB = 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;+ }, KB.apply(null, arguments);+}+function $Se(e, t) {+ if (e == null) return {};+ var n, r, i = eCe(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 t = TCe(t), function(n) {- let r = jB(n, e);- return r === void 0 ? OCe(n, e) : t === void 0 ? r === void 0 : CV(r, t);- };+ return i;}-//#endregion-//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs-function TV(e) {- if (e == null) return sV;- switch (typeof e) {- case "function": return e;- case "object": return Array.isArray(e) && e.length === 2 ? kCe(e[0], e[1]) : CCe(e);- default: return YSe(e);+function eCe(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];}+ return n;}-//#endregion-//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs-function ACe(e) {- return e === 0 ? 0 : e;+var qB = /*#__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 = $Se(e, QSe), d = a || {+ width: r,+ height: i,+ x: 0,+ y: 0+ }, f = _h("recharts-surface", o);+ return /*#__PURE__*/ B.createElement("svg", KB({}, GB(u), {+ className: f,+ width: r,+ height: i,+ style: s,+ viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,+ ref: t+ }), /*#__PURE__*/ B.createElement("title", null, c), /*#__PURE__*/ B.createElement("desc", null, l), n);+}), tCe = ["children", "className"];+function JB() {+ return JB = 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;+ }, JB.apply(null, arguments);}-//#endregion-//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs-function EV(e, t = sV) {- return cV(e) ? KSe(Array.from(e), qSe(TV(t), 1)).map(ACe) : [];+function nCe(e, t) {+ if (e == null) return {};+ var n, r, i = rCe(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;}-//#endregion-//#region node_modules/recharts/es6/util/payload/getUniqPayload.js-function DV(e, t, n) {- return t === !0 ? EV(e, n) : typeof t == "function" ? EV(e, t) : e;+function rCe(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];+ }+ return n;}+var YB = /*#__PURE__*/ B.forwardRef((e, t) => {+ var { children: n, className: r } = e, i = nCe(e, tCe), a = _h("recharts-layer", r);+ return /*#__PURE__*/ B.createElement("g", JB({ className: a }, GB(i), { ref: t }), n);+}), XB = /*#__PURE__*/ (0, B.createContext)(null), ZB = () => (0, B.useContext)(XB);//#endregion-//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js-var jCe = /* @__PURE__ */ xt(((e) => {- var t = Ot(), n = Uh();- function r(e, t) {- return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;- }- var i = typeof Object.is == "function" ? Object.is : r, a = n.useSyncExternalStore, o = t.useRef, s = t.useEffect, c = t.useMemo, l = t.useDebugValue;- e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {- var d = o(null);- if (d.current === null) {- var f = {- hasValue: !1,- value: null- };- d.current = f;- } else f = d.current;- d = c(function() {- function e(e) {- if (!a) {- if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {- var t = f.value;- if (u(t, e)) return s = t;- }- return s = e;- }- if (t = s, i(o, e)) return t;- var n = r(e);- return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);- }- var a = !1, o, s, c = n === void 0 ? null : n;- return [function() {- return e(t());- }, c === null ? void 0 : function() {- return e(c());- }];- }, [- t,- n,- r,- u- ]);- var p = a(e, d[0], d[1]);- return s(function() {- f.hasValue = !0, f.value = p;- }, [p]), l(p), p;+//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js+function QB(e) {+ return function() {+ return e;};-})), MCe = /* @__PURE__ */ xt(((e, t) => {- t.exports = jCe();-})), OV = /*#__PURE__*/ (0, B.createContext)(null), NCe = MCe(), PCe = (e) => e, kV = () => {- var e = (0, B.useContext)(OV);- return e ? e.store.dispatch : PCe;-}, AV = () => {}, FCe = () => AV, ICe = (e, t) => e === t;-function Q(e) {- var t = (0, B.useContext)(OV), n = (0, B.useMemo)(() => t ? (t) => {- if (t != null) return e(t);- } : AV, [t, e]);- return (0, NCe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : FCe, t ? t.store.getState : AV, t ? t.store.getState : AV, n, ICe);}//#endregion-//#region node_modules/reselect/dist/reselect.mjs-function LCe(e, t = `expected a function, instead received ${typeof e}`) {- if (typeof e != "function") throw TypeError(t);-}-function RCe(e, t = `expected an object, instead received ${typeof e}`) {- if (typeof e != "object") throw TypeError(t);-}-function zCe(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 jV = (e) => Array.isArray(e) ? e : [e];-function BCe(e) {- let t = Array.isArray(e[0]) ? e[0] : e;- return zCe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;+//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js+var $B = Math.cos, eV = Math.sin, tV = Math.sqrt, nV = Math.PI;+nV / 2;+var rV = 2 * nV, iV = Math.PI, aV = 2 * iV, oV = 1e-6, iCe = aV - oV;+function sV(e) {+ this._ += e[0];+ for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];}-function VCe(e, t) {- let n = [], { length: r } = e;- for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));- return n;+function aCe(e) {+ let t = Math.floor(e);+ if (!(t >= 0)) throw Error(`invalid digits: ${e}`);+ if (t > 15) return sV;+ 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 HCe = class {+var cV = class {constructor(e) {- this.value = e;+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sV : aCe(e);}- deref() {- return this.value;+ moveTo(e, t) {+ this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;}-}, UCe = typeof WeakRef < "u" ? WeakRef : HCe, WCe = 0, MV = 1;-function NV() {- return {- s: WCe,- v: void 0,- o: null,- p: null- };-}-function PV(e, t = {}) {- let n = NV(), { resultEqualityCheck: r } = t, i, a = 0;- function o() {- let t = n, { length: o } = arguments;- for (let e = 0, n = o; e < n; e++) {- let n = arguments[e];- if (typeof n == "function" || typeof n == "object" && n) {- let e = t.o;- e === null && (t.o = e = /* @__PURE__ */ new WeakMap());- let r = e.get(n);- r === void 0 ? (t = NV(), 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 = NV(), e.set(n, t)) : t = r;+ closePath() {+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);+ }+ lineTo(e, t) {+ this._append`L${this._x1 = +e},${this._y1 = +t}`;+ }+ quadraticCurveTo(e, t, n, r) {+ this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;+ }+ bezierCurveTo(e, t, n, r, i, a) {+ this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;+ }+ arcTo(e, t, n, r, i) {+ 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 > oV) {+ if (!(Math.abs(u * s - c * l) > oV) || !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((iV - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > oV && 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 s = t, c;- if (t.s === MV) 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 UCe(c) : c;- }- return s.s = MV, s.v = c, c;}- return o.clearCache = () => {- n = NV(), o.resetResultsCount();- }, o.resultsCount = () => a, o.resetResultsCount = () => {- a = 0;- }, o;-}-function GCe(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()), LCe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = PV, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {- ...n,- ...a- }, f = jV(c), p = jV(u), m = BCe(e), h = s(function() {- return t++, o.apply(null, arguments);- }, ...f), g = l(function() {- r++;- let e = VCe(m, arguments);- return i = h.apply(null, e), i;- }, ...p);- return Object.assign(g, {- resultFunc: o,- memoizedResultFunc: h,- dependencies: m,- dependencyRecomputations: () => r,- resetDependencyRecomputations: () => {- r = 0;- },- lastResult: () => i,- recomputations: () => t,- resetRecomputations: () => {- t = 0;- },- memoize: s,- argsMemoize: l- });- };- return Object.assign(r, { withTypes: () => r }), r;-}-var $ = /* @__PURE__ */ GCe(PV), KCe = Object.assign((e, t = $) => {- RCe(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: () => KCe });+ 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) > oV || Math.abs(this._y1 - l) > oV) && this._append`L${c},${l}`, n && (d < 0 && (d = d % aV + aV), d > iCe ? 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 > oV && this._append`A${n},${n},0,${+(d >= iV)},${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`;+ }+ toString() {+ return this._;+ }+};+cV.prototype;//#endregion-//#region node_modules/es-toolkit/dist/array/flatten.mjs-function qCe(e, t = 1) {- let n = [], r = Math.floor(t), i = (e, t) => {- for (let a = 0; a < e.length; a++) {- let o = e[a];- Array.isArray(o) && t < r ? i(o, t + 1) : n.push(o);+//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js+function lV(e) {+ let t = 3;+ return e.digits = function(n) {+ if (!arguments.length) return t;+ if (n == null) t = null;+ else {+ let e = Math.floor(n);+ if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);+ t = e;}- };- return i(e, 0), n;+ return e;+ }, () => new cV(t);}-//#endregion-//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs-function FV(e, t, n) {- return yV(n) && (typeof t == "number" && cV(n) && wV(t) && t < n.length || typeof t == "string" && t in n) ? vV(n[t], e) : !1;+Array.prototype.slice;+function uV(e) {+ return typeof e == "object" && "length" in e ? e : Array.from(e);}//#endregion-//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs-function IV(e) {- return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;+//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js+function dV(e) {+ this._context = e;}-var JCe = (e, t, n) => {- if (e !== t) {- let r = IV(e), i = IV(t);- if (r === i && r === 0) {- if (e < t) return n === "desc" ? 1 : -1;- if (e > t) return n === "desc" ? -1 : 1;+dV.prototype = {+ areaStart: function() {+ this._line = 0;+ },+ areaEnd: function() {+ this._line = NaN;+ },+ lineStart: function() {+ this._point = 0;+ },+ lineEnd: function() {+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;+ },+ point: function(e, t) {+ switch (e = +e, t = +t, this._point) {+ case 0:+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);+ break;+ case 1: this._point = 2;+ default: this._context.lineTo(e, t);}- return n === "desc" ? i - r : r - i;}- return 0;-}, YCe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, XCe = /^\w*$/;-function ZCe(e, t) {- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || OB(e) ? !0 : typeof e == "string" && (XCe.test(e) || !YCe.test(e)) || t != null && Object.hasOwn(t, e);+};+function fV(e) {+ return new dV(e);}//#endregion-//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs-function QCe(e, t, n, r) {- if (e == null) return [];- n = r ? void 0 : n, Array.isArray(e) || (e = cV(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]];- return r > 0 && r === t.length ? n : void 0;- }, 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) || ZCe(e) ? e : {- key: e,- path: AB(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 = JCe(e.criteria[r], t.criteria[r], n[r]);- if (i !== 0) return i;- }- return 0;- }).map((e) => e.original);+//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js+function pV(e) {+ return e[0];}-//#endregion-//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs-function LV(e, ...t) {- let n = t.length;- return n > 1 && FV(e, t[0], t[1]) ? t = [] : n > 2 && FV(t[0], t[1], t[2]) && (t = [t[0]]), QCe(e, qCe(t), ["asc"]);+function mV(e) {+ return e[1];}//#endregion-//#region node_modules/recharts/es6/state/selectors/legendSelectors.js-var RV = (e) => e.legend.settings, $Ce = (e) => e.legend.size, ewe = $([(e) => e.legend.payload, RV], (e, t) => {- var { itemSorter: n } = t, r = e.flat(1);- return n ? LV(r, n) : r;-});-//#endregion-//#region node_modules/recharts/es6/context/legendPayloadContext.js-function twe() {- return Q(ewe);+//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js+function hV(e, t) {+ var n = QB(!0), r = null, i = fV, a = null, o = lV(s);+ e = typeof e == "function" ? e : e === void 0 ? pV : QB(e), t = typeof t == "function" ? t : t === void 0 ? mV : QB(t);+ function s(s) {+ var c, l = (s = uV(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 : QB(+t), s) : e;+ }, s.y = function(e) {+ return arguments.length ? (t = typeof e == "function" ? e : QB(+e), s) : t;+ }, s.defined = function(e) {+ return arguments.length ? (n = typeof e == "function" ? e : QB(!!e), s) : n;+ }, s.curve = function(e) {+ return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;+ }, s.context = function(e) {+ return arguments.length ? (e == null ? r = a = null : a = i(r = e), s) : r;+ }, s;}//#endregion-//#region node_modules/recharts/es6/util/useElementOffset.js-var zV = 1;-function BV() {- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, B.useState)({- height: 0,- left: 0,- top: 0,- width: 0- });- return [t, (0, B.useCallback)((e) => {- if (e != null) {- var r = e.getBoundingClientRect(), i = {- height: r.height,- left: r.left,- top: r.top,- width: r.width- };- (Math.abs(i.height - t.height) > zV || Math.abs(i.left - t.left) > zV || Math.abs(i.top - t.top) > zV || Math.abs(i.width - t.width) > zV) && n({- height: i.height,- left: i.left,- top: i.top,- width: i.width- });- }- }, [- t.width,- t.height,- t.top,- t.left,- ...e- ])];+//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js+function gV(e, t, n) {+ var r = null, i = QB(!0), a = null, o = fV, s = null, c = lV(l);+ e = typeof e == "function" ? e : e === void 0 ? pV : QB(+e), t = typeof t == "function" ? t : QB(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? mV : QB(+n);+ function l(l) {+ var u, d, f, p = (l = uV(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();+ else {+ for (s.lineEnd(), s.lineStart(), f = u - 1; f >= d; --f) s.point(_[f], v[f]);+ s.lineEnd(), s.areaEnd();+ }+ }+ h && (_[u] = +e(m, u, l), v[u] = +t(m, u, l), s.point(r ? +r(m, u, l) : _[u], n ? +n(m, u, l) : v[u]));+ }+ if (g) return s = null, g + "" || null;+ }+ function u() {+ return hV().defined(i).curve(o).context(a);+ }+ return l.x = function(t) {+ return arguments.length ? (e = typeof t == "function" ? t : QB(+t), r = null, l) : e;+ }, l.x0 = function(t) {+ return arguments.length ? (e = typeof t == "function" ? t : QB(+t), l) : e;+ }, l.x1 = function(e) {+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : QB(+e), l) : r;+ }, l.y = function(e) {+ return arguments.length ? (t = typeof e == "function" ? e : QB(+e), n = null, l) : t;+ }, l.y0 = function(e) {+ return arguments.length ? (t = typeof e == "function" ? e : QB(+e), l) : t;+ }, l.y1 = function(e) {+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : QB(+e), l) : n;+ }, l.lineX0 = l.lineY0 = function() {+ return u().x(e).y(t);+ }, l.lineY1 = function() {+ return u().x(e).y(n);+ }, l.lineX1 = function() {+ return u().x(r).y(t);+ }, l.defined = function(e) {+ return arguments.length ? (i = typeof e == "function" ? e : QB(!!e), l) : i;+ }, l.curve = function(e) {+ return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;+ }, l.context = function(e) {+ return arguments.length ? (e == null ? a = s = null : s = o(a = e), l) : a;+ }, l;}//#endregion-//#region node_modules/redux/dist/redux.mjs-function VV(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 HV = typeof Symbol == "function" && Symbol.observable || "@@observable", UV = () => Math.random().toString(36).substring(7).split("").join("."), WV = {- INIT: `@@redux/INIT${/* @__PURE__ */ UV()}`,- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ UV()}`,- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${UV()}`-};-function GV(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 KV(e, t, n) {- if (typeof e != "function") throw Error(VV(2));- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(VV(0));- if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {- if (typeof n != "function") throw Error(VV(1));- return n(KV)(e, t);- }- let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;- function l() {- o === a && (o = /* @__PURE__ */ new Map(), a.forEach((e, t) => {- o.set(t, e);- }));+//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js+var _V = class {+ constructor(e, t) {+ this._context = e, this._x = t;}- function u() {- if (c) throw Error(VV(3));- return i;+ areaStart() {+ this._line = 0;}- function d(e) {- if (typeof e != "function") throw Error(VV(4));- if (c) throw Error(VV(5));- let t = !0;- l();- let n = s++;- return o.set(n, e), function() {- if (t) {- if (c) throw Error(VV(6));- t = !1, l(), o.delete(n), a = null;- }- };+ areaEnd() {+ this._line = NaN;}- function f(e) {- if (!GV(e)) throw Error(VV(7));- if (e.type === void 0) throw Error(VV(8));- if (typeof e.type != "string") throw Error(VV(17));- if (c) throw Error(VV(9));- try {- c = !0, i = r(i, e);- } finally {- c = !1;- }- return (a = o).forEach((e) => {- e();- }), e;+ lineStart() {+ this._point = 0;}- function p(e) {- if (typeof e != "function") throw Error(VV(10));- r = e, f({ type: WV.REPLACE });+ lineEnd() {+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;}- function m() {- let e = d;- return {- subscribe(t) {- if (typeof t != "object" || !t) throw Error(VV(11));- function n() {- let e = t;- e.next && e.next(u());- }- return n(), { unsubscribe: e(n) };- },- [HV]() {- return this;- }- };+ point(e, t) {+ switch (e = +e, t = +t, this._point) {+ case 0:+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);+ break;+ case 1: this._point = 2;+ default: this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);+ }+ this._x0 = e, this._y0 = t;}- return f({ type: WV.INIT }), {- dispatch: f,- subscribe: d,- getState: u,- replaceReducer: p,- [HV]: m- };+};+function oCe(e) {+ return new _V(e, !0);}-function nwe(e) {- Object.keys(e).forEach((t) => {- let n = e[t];- if (n(void 0, { type: WV.INIT }) === void 0) throw Error(VV(12));- if (n(void 0, { type: WV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(VV(13));- });+function sCe(e) {+ return new _V(e, !1);}-function qV(e) {- let t = Object.keys(e), n = {};- for (let r = 0; r < t.length; r++) {- let i = t[r];- typeof e[i] == "function" && (n[i] = e[i]);+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js+var vV = { draw(e, t) {+ let n = tV(t / nV);+ e.moveTo(n, 0), e.arc(0, 0, n, 0, rV);+} }, cCe = { draw(e, t) {+ let n = tV(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();+} }, yV = tV(1 / 3), lCe = yV * 2, uCe = { draw(e, t) {+ let n = tV(t / lCe), r = n * yV;+ e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();+} }, dCe = { draw(e, t) {+ let n = tV(t), r = -n / 2;+ e.rect(r, r, n, n);+} }, fCe = .8908130915292852, bV = eV(nV / 10) / eV(7 * nV / 10), pCe = eV(rV / 10) * bV, mCe = -$B(rV / 10) * bV, hCe = { draw(e, t) {+ let n = tV(t * fCe), r = pCe * n, i = mCe * n;+ e.moveTo(0, -n), e.lineTo(r, i);+ for (let t = 1; t < 5; ++t) {+ let a = rV * t / 5, o = $B(a), s = eV(a);+ e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);}- let r = Object.keys(n), i;- try {- nwe(n);- } catch (e) {- i = e;+ e.closePath();+} }, xV = tV(3), gCe = { draw(e, t) {+ let n = -tV(t / (xV * 3));+ e.moveTo(0, n * 2), e.lineTo(-xV * n, -n), e.lineTo(xV * n, -n), e.closePath();+} }, SV = -.5, CV = tV(3) / 2, wV = 1 / tV(12), _Ce = (wV / 2 + 1) * 3, vCe = { draw(e, t) {+ let n = tV(t / _Ce), r = n / 2, i = n * wV, a = r, o = n * wV + n, s = -a, c = o;+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(SV * r - CV * i, CV * r + SV * i), e.lineTo(SV * a - CV * o, CV * a + SV * o), e.lineTo(SV * s - CV * c, CV * s + SV * c), e.lineTo(SV * r + CV * i, SV * i - CV * r), e.lineTo(SV * a + CV * o, SV * o - CV * a), e.lineTo(SV * s + CV * c, SV * c - CV * s), e.closePath();+} };+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js+function yCe(e, t) {+ let n = null, r = lV(i);+ e = typeof e == "function" ? e : QB(e || vV), t = typeof t == "function" ? t : QB(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 function(e = {}, t) {- if (i) throw i;- 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(VV(14));- o[s] = u, a ||= u !== l;- }- return a ||= r.length !== Object.keys(e).length, a ? o : e;- };-}-function JV(...e) {- return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));-}-function rwe(...e) {- return (t) => (n, r) => {- let i = t(n, r), a = () => {- throw Error(VV(15));- }, o = {- getState: i.getState,- dispatch: (e, ...t) => a(e, ...t)- };- return a = JV(...e.map((e) => e(o)))(i.dispatch), {- ...i,- dispatch: a- };- };-}-function YV(e) {- return GV(e) && "type" in e && typeof e.type == "string";+ return i.type = function(t) {+ return arguments.length ? (e = typeof t == "function" ? t : QB(t), i) : e;+ }, i.size = function(e) {+ return arguments.length ? (t = typeof e == "function" ? e : QB(+e), i) : t;+ }, i.context = function(e) {+ return arguments.length ? (n = e ?? null, i) : n;+ }, i;}//#endregion-//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs-var XV = Symbol.for("immer-nothing"), ZV = Symbol.for("immer-draftable"), QV = Symbol.for("immer-state");-function $V(e, ...t) {- throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);-}-var eH = Object, tH = eH.getPrototypeOf, nH = "constructor", rH = "prototype", iH = "configurable", aH = "enumerable", oH = "writable", sH = "value", cH = (e) => !!e && !!e[QV];-function lH(e) {- return e ? dH(e) || _H(e) || !!e[ZV] || !!e[nH]?.[ZV] || vH(e) || yH(e) : !1;-}-var iwe = eH[rH][nH].toString(), uH = /* @__PURE__ */ new WeakMap();-function dH(e) {- if (!e || !bH(e)) return !1;- let t = tH(e);- if (t === null || t === eH[rH]) return !0;- let n = eH.hasOwnProperty.call(t, nH) && t[nH];- if (n === Object) return !0;- if (!xH(n)) return !1;- let r = uH.get(n);- return r === void 0 && (r = Function.toString.call(n), uH.set(n, r)), r === iwe;-}-function fH(e, t, n = !0) {- pH(e) === 0 ? (n ? Reflect.ownKeys(e) : eH.keys(e)).forEach((n) => {- t(n, e[n], e);- }) : e.forEach((n, r) => t(r, n, e));+//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js+function TV() {}+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js+function EV(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 pH(e) {- let t = e[QV];- return t ? t.type_ : _H(e) ? 1 : vH(e) ? 2 : yH(e) ? 3 : 0;+function DV(e) {+ this._context = e;}-var mH = (e, t, n = pH(e)) => n === 2 ? e.has(t) : eH[rH].hasOwnProperty.call(e, t), hH = (e, t, n = pH(e)) => n === 2 ? e.get(t) : e[t], gH = (e, t, n, r = pH(e)) => {- r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;+DV.prototype = {+ areaStart: function() {+ this._line = 0;+ },+ areaEnd: function() {+ this._line = NaN;+ },+ lineStart: function() {+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;+ },+ lineEnd: function() {+ switch (this._point) {+ case 3: EV(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;+ },+ point: function(e, t) {+ switch (e = +e, t = +t, this._point) {+ case 0:+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);+ break;+ case 1:+ 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: EV(this, e, t);+ }+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;+ }};-function awe(e, t) {- return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;+function bCe(e) {+ return new DV(e);}-var _H = Array.isArray, vH = (e) => e instanceof Map, yH = (e) => e instanceof Set, bH = (e) => typeof e == "object", xH = (e) => typeof e == "function", SH = (e) => typeof e == "boolean";-function owe(e) {- let t = +e;- return Number.isInteger(t) && String(t) === e;+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js+function OV(e) {+ this._context = e;}-var CH = (e) => e.copy_ || e.base_, wH = (e) => e.modified_ ? e.copy_ : e.base_;-function TH(e, t) {- if (vH(e)) return new Map(e);- if (yH(e)) return new Set(e);- if (_H(e)) return Array[rH].slice.call(e);- let n = dH(e);- if (t === !0 || t === "class_only" && !n) {- let t = eH.getOwnPropertyDescriptors(e);- delete t[QV];- let n = Reflect.ownKeys(t);- for (let r = 0; r < n.length; r++) {- let i = n[r], a = t[i];- a[oH] === !1 && (a[oH] = !0, a[iH] = !0), (a.get || a.set) && (t[i] = {- [iH]: !0,- [oH]: !0,- [aH]: a[aH],- [sH]: e[i]- });+OV.prototype = {+ areaStart: TV,+ areaEnd: TV,+ 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;+ },+ lineEnd: function() {+ switch (this._point) {+ case 1:+ this._context.moveTo(this._x2, this._y2), this._context.closePath();+ break;+ case 2:+ this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();+ break;+ case 3: this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);+ }+ },+ point: function(e, t) {+ switch (e = +e, t = +t, this._point) {+ case 0:+ this._point = 1, this._x2 = e, this._y2 = t;+ break;+ case 1:+ this._point = 2, this._x3 = e, this._y3 = t;+ break;+ 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: EV(this, e, t);}- return eH.create(tH(e), t);+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;}- {- let t = tH(e);- if (t !== null && n) return { ...e };- let r = eH.create(t);- return eH.assign(r, e);- }-}-function EH(e, t = !1) {- return OH(e) || cH(e) || !lH(e) ? e : (pH(e) > 1 && eH.defineProperties(e, {- set: DH,- add: DH,- clear: DH,- delete: DH- }), eH.freeze(e), t && fH(e, (e, t) => {- EH(t, !0);- }, !1), e);-}-function swe() {- $V(2);+};+function xCe(e) {+ return new OV(e);}-var DH = { [sH]: swe };-function OH(e) {- return e === null || !bH(e) || eH.isFrozen(e);+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js+function kV(e) {+ this._context = e;}-var kH = "MapSet", AH = "Patches", jH = "ArrayMethods", MH = {};-function NH(e) {- let t = MH[e];- return t || $V(0, e), t;+kV.prototype = {+ areaStart: function() {+ this._line = 0;+ },+ areaEnd: function() {+ this._line = NaN;+ },+ lineStart: function() {+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;+ },+ lineEnd: function() {+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;+ },+ point: function(e, t) {+ switch (e = +e, t = +t, this._point) {+ case 0:+ this._point = 1;+ break;+ case 1:+ this._point = 2;+ break;+ case 2:+ this._point = 3;+ var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;+ this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);+ break;+ case 3: this._point = 4;+ default: EV(this, e, t);+ }+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;+ }+};+function SCe(e) {+ return new kV(e);}-var PH = (e) => !!MH[e], FH, IH = () => FH, cwe = (e, t) => ({- drafts_: [],- parent_: e,- immer_: t,- canAutoFreeze_: !0,- unfinalizedDrafts_: 0,- handledSet_: /* @__PURE__ */ new Set(),- processedForPatches_: /* @__PURE__ */ new Set(),- mapSetPlugin_: PH(kH) ? NH(kH) : void 0,- arrayMethodsPlugin_: PH(jH) ? NH(jH) : void 0-});-function LH(e, t) {- t && (e.patchPlugin_ = NH(AH), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js+function AV(e) {+ this._context = e;}-function RH(e) {- zH(e), e.drafts_.forEach(lwe), e.drafts_ = null;+AV.prototype = {+ areaStart: TV,+ areaEnd: TV,+ lineStart: function() {+ this._point = 0;+ },+ lineEnd: function() {+ this._point && this._context.closePath();+ },+ point: function(e, t) {+ e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));+ }+};+function CCe(e) {+ return new AV(e);}-function zH(e) {- e === FH && (FH = e.parent_);+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js+function jV(e) {+ return e < 0 ? -1 : 1;}-var BH = (e) => FH = cwe(FH, e);-function lwe(e) {- let t = e[QV];- t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;+function MV(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 (jV(a) + jV(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;}-function VH(e, t) {- t.unfinalizedDrafts_ = t.drafts_.length;- let n = t.drafts_[0];- if (e !== void 0 && e !== n) {- n[QV].modified_ && (RH(t), $V(4)), lH(e) && (e = HH(t, e));- let { patchPlugin_: r } = t;- r && r.generateReplacementPatches_(n[QV].base_, e, t);- } else e = HH(t, n);- return uwe(t, e, !0), RH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === XV ? void 0 : e;-}-function HH(e, t) {- if (OH(t)) return t;- let n = t[QV];- if (!n) return qH(t, e.handledSet_, e);- if (!WH(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);- KH(n, e);- }- return n.copy_;+function NV(e, t) {+ var n = e._x1 - e._x0;+ return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;}-function uwe(e, t, n = !1) {- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && EH(t, n);+function PV(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 UH(e) {- e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;+function FV(e) {+ this._context = e;}-var WH = (e, t) => e.scope_ === t, dwe = [];-function GH(e, t, n, r) {- let i = CH(e), a = e.type_;- if (r !== void 0 && hH(i, r, a) === t) {- gH(i, r, n, a);- return;- }- if (!e.draftLocations_) {- let t = e.draftLocations_ = /* @__PURE__ */ new Map();- fH(i, (e, n) => {- if (cH(n)) {- let r = t.get(n) || [];- r.push(e), t.set(n, r);+FV.prototype = {+ areaStart: function() {+ this._line = 0;+ },+ areaEnd: function() {+ this._line = NaN;+ },+ lineStart: function() {+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;+ },+ lineEnd: function() {+ switch (this._point) {+ case 2:+ this._context.lineTo(this._x1, this._y1);+ break;+ case 3: PV(this, this._t0, NV(this, this._t0));+ }+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;+ },+ point: function(e, t) {+ var n = NaN;+ if (e = +e, t = +t, e !== this._x1 || t !== this._y1) {+ switch (this._point) {+ case 0:+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);+ break;+ case 1:+ this._point = 2;+ break;+ case 2:+ this._point = 3, PV(this, NV(this, n = MV(this, e, t)), n);+ break;+ default: PV(this, this._t0, n = MV(this, e, t));}- });+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;+ }}- let o = e.draftLocations_.get(t) ?? dwe;- for (let e of o) gH(i, e, n, a);+};+function IV(e) {+ this._context = new LV(e);}-function fwe(e, t, n) {- e.callbacks_.push(function(r) {- let i = t;- if (!i || !WH(i, r)) return;- r.mapSetPlugin_?.fixSetContents(i);- let a = wH(i);- GH(e, i.draft_ ?? i, a, n), KH(i, r);- });+(IV.prototype = Object.create(FV.prototype)).point = function(e, t) {+ FV.prototype.point.call(this, t, e);+};+function LV(e) {+ this._context = e;}-function KH(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);- }- UH(e);+LV.prototype = {+ moveTo: function(e, t) {+ this._context.moveTo(t, e);+ },+ closePath: function() {+ this._context.closePath();+ },+ lineTo: function(e, t) {+ this._context.lineTo(t, e);+ },+ bezierCurveTo: function(e, t, n, r, i, a) {+ this._context.bezierCurveTo(t, e, r, n, a, i);}+};+function wCe(e) {+ return new FV(e);}-function pwe(e, t, n) {- let { scope_: r } = e;- if (cH(n)) {- let i = n[QV];- WH(i, r) && i.callbacks_.push(function() {- $H(e), GH(e, n, wH(i), t);- });- } else lH(n) && e.callbacks_.push(function() {- let i = CH(e);- e.type_ === 3 ? i.has(n) && qH(n, r.handledSet_, r) : hH(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && qH(hH(e.copy_, t, e.type_), r.handledSet_, r);- });-}-function qH(e, t, n) {- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || cH(e) || t.has(e) || !lH(e) || OH(e) ? e : (t.add(e), fH(e, (r, i) => {- if (cH(i)) {- let t = i[QV];- WH(t, n) && (gH(e, r, wH(t), e.type_), UH(t));- } else lH(i) && qH(i, t, n);- }), e);+function TCe(e) {+ return new IV(e);}-function mwe(e, t) {- let n = _H(e), r = {- type_: +!!n,- scope_: t ? t.scope_ : IH(),- modified_: !1,- finalized_: !1,- assigned_: void 0,- parent_: t,- base_: e,- draft_: null,- copy_: null,- revoke_: null,- isManual_: !1,- callbacks_: void 0- }, i = r, a = JH;- n && (i = [r], a = YH);- let { revoke: o, proxy: s } = Proxy.revocable(i, a);- return r.draft_ = s, r.revoke_ = o, [s, r];+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js+function RV(e) {+ this._context = e;}-var JH = {- get(e, t) {- if (t === QV) 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 = CH(e);- if (!mH(i, t, e.type_)) return gwe(e, i, t);- let a = i[t];- if (e.finalized_ || !lH(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && owe(t)) return a;- if (a === XH(e.base_, t) || hwe(e, t, a)) {- $H(e);- let n = e.type_ === 1 ? +t : t, r = eU(e.scope_, a, e, n);- return e.copy_[n] = r;- }- return a;+RV.prototype = {+ areaStart: function() {+ this._line = 0;},- has(e, t) {- return t in CH(e);+ areaEnd: function() {+ this._line = NaN;},- ownKeys(e) {- return Reflect.ownKeys(CH(e));+ lineStart: function() {+ this._x = [], this._y = [];},- set(e, t, n) {- let r = ZH(CH(e), t);- if (r?.set) return r.set.call(e.draft_, n), !0;- if (!e.modified_) {- let r = XH(CH(e), t), i = r?.[QV];- if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;- if (awe(n, r) && (n !== void 0 || mH(e.base_, t, e.type_))) return !0;- $H(e), QH(e);+ lineEnd: function() {+ 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 = zV(e), i = zV(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]);}- return e.copy_[t] === n && (n !== void 0 || mH(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), pwe(e, t, n), !0);+ (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;},- deleteProperty(e, t) {- return $H(e), XH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), QH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;+ point: function(e, t) {+ this._x.push(+e), this._y.push(+t);+ }+};+function zV(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];+ for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];+ 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 ECe(e) {+ return new RV(e);+}+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js+function BV(e, t) {+ this._context = e, this._t = t;+}+BV.prototype = {+ areaStart: function() {+ this._line = 0;},- getOwnPropertyDescriptor(e, t) {- let n = CH(e), r = Reflect.getOwnPropertyDescriptor(n, t);- return r && {- [oH]: !0,- [iH]: e.type_ !== 1 || t !== "length",- [aH]: r[aH],- [sH]: n[t]- };+ areaEnd: function() {+ this._line = NaN;},- defineProperty() {- $V(11);+ lineStart: function() {+ this._x = this._y = NaN, this._point = 0;},- getPrototypeOf(e) {- return tH(e.base_);+ lineEnd: function() {+ 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);},- setPrototypeOf() {- $V(12);+ point: function(e, t) {+ switch (e = +e, t = +t, this._point) {+ case 0:+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);+ break;+ case 1: this._point = 2;+ default: if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);+ else {+ var n = this._x * (1 - this._t) + e * this._t;+ this._context.lineTo(n, this._y), this._context.lineTo(n, t);+ }+ }+ this._x = e, this._y = t;}-}, YH = {};-for (let e in JH) {- let t = JH[e];- YH[e] = function() {- let e = arguments;- return e[0] = e[0][0], t.apply(this, e);- };-}-YH.deleteProperty = function(e, t) {- return YH.set.call(this, e, t, void 0);-}, YH.set = function(e, t, n) {- return JH.set.call(this, e[0], t, n, e[0]);};-function XH(e, t) {- let n = e[QV];- return (n ? CH(n) : e)[t];+function DCe(e) {+ return new BV(e, .5);}-function hwe(e, t, n) {- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !lH(n) || n[QV] ? !1 : e.baseRefs_.has(n);+function OCe(e) {+ return new BV(e, 0);}-function gwe(e, t, n) {- let r = ZH(t, n);- return r ? sH in r ? r[sH] : r.get?.call(e.draft_) : void 0;+function kCe(e) {+ return new BV(e, 1);}-function ZH(e, t) {- if (!(t in e)) return;- let n = tH(e);- for (; n;) {- let e = Object.getOwnPropertyDescriptor(n, t);- if (e) return e;- n = tH(n);- }+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js+function VV(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];}-function QH(e) {- e.modified_ || (e.modified_ = !0, e.parent_ && QH(e.parent_));+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/order/none.js+function HV(e) {+ for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;+ return n;}-function $H(e) {- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), TH(e.base_, e.scope_.immer_.useStrictShallowCopy_));+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js+function ACe(e, t) {+ return e[t];}-var _we = class {- constructor(e) {- this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {- if (xH(e) && !xH(t)) {- let n = t;- t = e;- let r = this;- return function(e = n, ...i) {- return r.produce(e, (e) => t.call(this, e, ...i));- };- }- xH(t) || $V(6), n !== void 0 && !xH(n) && $V(7);- let r;- if (lH(e)) {- let i = BH(this), a = eU(i, e, void 0), o = !0;- try {- r = t(a), o = !1;- } finally {- o ? RH(i) : zH(i);- }- return LH(i, n), VH(r, i);- }- if (!e || !bH(e)) {- if (r = t(e), r === void 0 && (r = e), r === XV && (r = void 0), this.autoFreeze_ && EH(r, !0), n) {- let t = [], i = [];- NH(AH).generateReplacementPatches_(e, r, {- patches_: t,- inversePatches_: i- }), n(t, i);- }- return r;- }- $V(1, e);- }, this.produceWithPatches = (e, t) => {- if (xH(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));- let n, r;- return [- this.produce(e, t, (e, t) => {- n = e, r = t;- }),- n,- r- ];- }, SH(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), SH(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), SH(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);- }- createDraft(e) {- lH(e) || $V(8), cH(e) && (e = tU(e));- let t = BH(this), n = eU(t, e, void 0);- return n[QV].isManual_ = !0, zH(t), n;- }- finishDraft(e, t) {- let n = e && e[QV];- (!n || !n.isManual_) && $V(9);- let { scope_: r } = n;- return LH(r, t), VH(void 0, r);- }- setAutoFreeze(e) {- this.autoFreeze_ = e;- }- setUseStrictShallowCopy(e) {- this.useStrictShallowCopy_ = e;+function jCe(e) {+ let t = [];+ return t.key = e, t;+}+function MCe() {+ var e = QB([]), t = HV, n = VV, r = ACe;+ function i(i) {+ var a = Array.from(e.apply(this, arguments), jCe), 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 = uV(t(a)); o < s; ++o) a[l[o]].index = o;+ return n(a, l), a;}- setUseStrictIteration(e) {- this.useStrictIteration_ = e;+ return i.keys = function(t) {+ return arguments.length ? (e = typeof t == "function" ? t : QB(Array.from(t)), i) : e;+ }, i.value = function(e) {+ return arguments.length ? (r = typeof e == "function" ? e : QB(+e), i) : r;+ }, i.order = function(e) {+ return arguments.length ? (t = e == null ? HV : typeof e == "function" ? e : QB(Array.from(e)), i) : t;+ }, i.offset = function(e) {+ return arguments.length ? (n = e ?? VV, i) : n;+ }, i;+}+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js+function NCe(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;+ }+ VV(e, t);}- shouldUseStrictIteration() {- return this.useStrictIteration_;+}+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js+function PCe(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;+ }+ VV(e, t);}- applyPatches(e, t) {- let n;- for (n = t.length - 1; n >= 0; n--) {- let r = t[n];- if (r.path.length === 0 && r.op === "replace") {- e = r.value;- break;+}+//#endregion+//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js+function FCe(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) {+ for (var u = e[t[s]], d = u[r][1] || 0, f = (d - (u[r - 1][1] || 0)) / 2, p = 0; p < s; ++p) {+ var m = e[t[p]], h = m[r][1] || 0, g = m[r - 1][1] || 0;+ f += h - g;+ }+ c += d, l += f * d;}+ i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);}- n > -1 && (t = t.slice(n + 1));- let r = NH(AH).applyPatches_;- return cH(e) ? r(e, t) : this.produce(e, (e) => r(e, t));+ i[r - 1][1] += i[r - 1][0] = n, VV(e, t);}-};-function eU(e, t, n, r) {- let [i, a] = vH(t) ? NH(kH).proxyMap_(t, n) : yH(t) ? NH(kH).proxySet_(t, n) : mwe(t, n);- return (n?.scope_ ?? IH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? fwe(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 tU(e) {- return cH(e) || $V(10, e), nU(e);+//#endregion+//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs+function UV(e) {+ return e === "__proto__";}-function nU(e) {- if (!lH(e) || OH(e)) return e;- let t = e[QV], n, r = !0;- if (t) {- if (!t.modified_) return t.base_;- t.finalized_ = !0, n = TH(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();- } else n = TH(e, !0);- return fH(n, (e, t) => {- gH(n, e, nU(t));- }, r), t && (t.finalized_ = !1), n;+//#endregion+//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs+var ICe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;+function WV(e) {+ switch (typeof e) {+ case "number":+ case "symbol": return !1;+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : ICe.test(e);+ default: return !1;+ }}-globalThis.Iterator?.from;-var rU = new _we().produce;//#endregion-//#region node_modules/redux-thunk/dist/redux-thunk.mjs-function iU(e) {- return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);+//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs+function GV(e) {+ return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);}-var vwe = iU(), ywe = iU, bwe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {- if (arguments.length !== 0) return typeof arguments[0] == "object" ? JV : JV.apply(null, arguments);-};-typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;-function aU(e, t) {- function n(...n) {- if (t) {- let r = t(...n);- if (!r) throw Error(BU(0));- return {- type: e,- payload: r.payload,- ..."meta" in r && { meta: r.meta },- ..."error" in r && { error: r.error }- };- }- return {- type: e,- payload: n[0]- };- }- return n.toString = () => `${e}`, n.type = e, n.match = (t) => YV(t) && t.type === e, n;+//#endregion+//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs+function KV(e) {+ return typeof e == "symbol" || e instanceof Symbol;}-var oU = class e extends Array {- constructor(...t) {- super(...t), Object.setPrototypeOf(this, e.prototype);- }- static get [Symbol.species]() {- return e;+//#endregion+//#region node_modules/es-toolkit/dist/compat/util/toString.mjs+function LCe(e) {+ return e == null ? "" : qV(e);+}+function qV(e) {+ if (typeof e == "string") return e;+ if (Array.isArray(e)) return e.map(qV).join(",");+ if (KV(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 JV(e) {+ if (Array.isArray(e)) return e.map(GV);+ if (typeof e == "symbol") return [e];+ e = LCe(e);+ let t = [], n = e.length;+ if (n === 0) return t;+ let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;+ for (e.charCodeAt(0) === 46 && t.push(""); r < n;) {+ let l = e[r];+ if (a) l === "\\" && r + 1 < n ? (r++, i += e[r]) : l === a ? a = "" : i += l;+ else if (o) {+ if (l === "\"" || l === "'") a = l, s = !0;+ else if (l === "]") {+ if (o = !1, !s && i.includes(".") && !c.test(i)) {+ let e = i.split(".");+ for (let n = 0; n < e.length; n++) e[n] !== "" && t.push(e[n]);+ } else t.push(i);+ i = "";+ } else i += l;+ } else if (l === "[") o = !0, s = !1, i &&= (t.push(i), "");+ else if (l === ".") {+ i &&= (t.push(i), "");+ let n = e[r + 1];+ (n === void 0 || n === ".") && t.push("");+ } else i += l;+ r++;}- concat(...e) {- return super.concat.apply(this, e);+ return i && t.push(i), t;+}+//#endregion+//#region node_modules/es-toolkit/dist/compat/object/get.mjs+function YV(e, t, n) {+ if (e == null) return n;+ switch (typeof t) {+ case "string": {+ if (UV(t)) return n;+ let r = e[t];+ return r === void 0 ? WV(t) && !Object.hasOwn(e, t) ? YV(e, JV(t), n) : n : r;+ }+ case "number":+ case "symbol": {+ typeof t == "number" && (t = GV(t));+ let r = e[t];+ return r === void 0 ? n : r;+ }+ default: {+ if (Array.isArray(t)) return RCe(e, t, n);+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), UV(t)) return n;+ let r = e[t];+ return r === void 0 ? n : r;+ }}- prepend(...t) {- return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));+}+function RCe(e, t, n) {+ if (t.length === 0) return n;+ let r = e;+ for (let e = 0; e < t.length; e++) {+ if (r == null || UV(t[e])) return n;+ r = r[t[e]];}-};-function sU(e) {- return lH(e) ? rU(e, () => {}) : e;+ return r === void 0 ? n : r;}-function cU(e, t, n) {- return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);+//#endregion+//#region node_modules/recharts/es6/util/round.js+var zCe = 4;+function XV(e) {+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : zCe), n = Math.round(e * t) / t;+ return Object.is(n, -0) ? 0 : n;}-function xwe(e) {- return typeof e == "boolean";+function ZV(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 + XV(i) + n;+ }, "");}-var Swe = () => function(e) {- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new oU();- return t && (xwe(t) ? a.push(vwe) : a.push(ywe(t.extraArgument))), a;-}, lU = "RTK_autoBatch", uU = () => (e) => ({- payload: e,- meta: { [lU]: !0 }-}), dU = (e) => (t) => {- setTimeout(t, e);-}, Cwe = (e, t) => (n) => {- let r = !1, i = () => {- r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());- }, a = e(i), o = setTimeout(i, t);-}, fU = (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 ? Cwe(window.requestAnimationFrame, 100) : dU(10) : e.type === "callback" ? e.queueNotification : dU(e.timeout), l = () => {- o = !1, a && (a = !1, s.forEach((e) => e()));- };- return Object.assign({}, r, {- subscribe(e) {- let t = r.subscribe(() => i && e());- return s.add(e), () => {- t(), s.delete(e);- };- },- dispatch(e) {- try {- return i = !e?.meta?.[lU], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);- } finally {- i = !0;- }- }- });-}, wwe = (e) => function(t) {- let { autoBatch: n = !0 } = t ?? {}, r = new oU(e);- return n && r.push(fU(typeof n == "object" ? n : void 0)), r;+//#endregion+//#region node_modules/recharts/es6/util/DataUtils.js+var QV = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $V = (e) => typeof e == "number" && e != +e, eH = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$V(e), tH = (e) => Z(e) || typeof e == "string", BCe = 0, nH = (e) => {+ var t = ++BCe;+ return `${e || ""}${t}`;+}, rH = 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 (eH(e)) {+ if (t == null) return n;+ var a = e.indexOf("%");+ i = t * parseFloat(e.slice(0, a)) / 100;+ } else i = +e;+ return $V(i) && (i = n), r && t != null && i > t && (i = t), i;+}, iH = (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 Twe(e) {- let t = Swe(), { 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 (GV(n)) c = qV(n);- else throw Error(BU(1));- let l;- l = typeof r == "function" ? r(t) : t();- let u = JV;- i && (u = bwe({- trace: !1,- ...typeof i == "object" && i- }));- let d = wwe(rwe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);- return KV(c, o, p);-}-function pU(e) {- let t = {}, n = [], r, i = {- addCase(e, n) {- let r = typeof e == "string" ? e : e.type;- if (!r) throw Error(BU(28));- if (r in t) throw Error(BU(29));- return t[r] = n, i;- },- addAsyncThunk(e, r) {- return r.pending && (t[e.pending.type] = r.pending), r.rejected && (t[e.rejected.type] = r.rejected), r.fulfilled && (t[e.fulfilled.type] = r.fulfilled), r.settled && n.push({- matcher: e.settled,- reducer: r.settled- }), i;- },- addMatcher(e, t) {- return n.push({- matcher: e,- reducer: t- }), i;- },- addDefaultCase(e) {- return r = e, i;- }- };- return e(i), [- t,- n,- r- ];-}-function Ewe(e) {- return typeof e == "function";+function aH(e, t, n) {+ return Z(e) && Z(t) ? XV(e + n * (t - e)) : t;}-function Dwe(e, t) {- let [n, r, i] = pU(t), a;- if (Ewe(e)) a = () => sU(e());- else {- let t = sU(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 (cH(e)) {- let r = n(e, t);- return r === void 0 ? e : r;- }- if (lH(e)) return rU(e, (e) => n(e, t));- {- let r = n(e, t);- if (r === void 0) {- if (e === null) return e;- throw Error("A case reducer on a non-draftable value must not return undefined");- }- return r;- }- }- return e;- }, e);- }- return o.getInitialState = a, o;+function oH(e, t, n) {+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : YV(e, t)) === n);}-var Owe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", kwe = (e = 21) => {- let t = "", n = e;- for (; n--;) t += Owe[Math.random() * 64 | 0];- return t;-}, Awe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");-function jwe(e, t) {- return `${e}/${t}`;+var sH = (e) => e == null, cH = (e) => sH(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;+function lH(e) {+ return e != null;}-function Mwe({ creators: e } = {}) {- let t = e?.asyncThunk?.[Awe];- return function(e) {- let { name: n, reducerPath: r = n } = e;- if (!n) throw Error(BU(11));- let i = (typeof e.reducers == "function" ? e.reducers(Pwe()) : e.reducers) || {}, a = Object.keys(i), o = {- sliceCaseReducersByName: {},- sliceCaseReducersByType: {},- actionCreators: {},- sliceMatchers: []- }, s = {- addCase(e, t) {- let n = typeof e == "string" ? e : e.type;- if (!n) throw Error(BU(12));- if (n in o.sliceCaseReducersByType) throw Error(BU(13));- return o.sliceCaseReducersByType[n] = t, s;- },- addMatcher(e, t) {- return o.sliceMatchers.push({- matcher: e,- reducer: t- }), s;- },- exposeAction(e, t) {- return o.actionCreators[e] = t, s;- },- exposeCaseReducer(e, t) {- return o.sliceCaseReducersByName[e] = t, s;- }- };- a.forEach((r) => {- let a = i[r], o = {- reducerName: r,- type: jwe(n, r),- createNotation: typeof e.reducers == "function"- };- Iwe(a) ? Rwe(o, a, s, t) : Fwe(o, a, s);- });- function c() {- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? pU(e.extraReducers) : [e.extraReducers], i = {- ...t,- ...o.sliceCaseReducersByType- };- return Dwe(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);- r && e.addDefaultCase(r);- });- }- let l = (e) => e, u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new WeakMap(), f;- function p(e, t) {- return f ||= c(), f(e, t);- }- function m() {- return f ||= c(), f.getInitialState();- }- function h(t, n = !1) {- function r(e) {- let i = e[t];- return i === void 0 && n && (i = cU(d, r, m)), i;- }- function i(t = l) {- return cU(cU(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {- let r = {};- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = Nwe(a, t, () => cU(d, t, m), n);- return r;- });- }- return {- reducerPath: t,- getSelectors: i,- get selectors() {- return i(r);- },- selectSlice: r- };+function uH() {}+//#endregion+//#region node_modules/recharts/es6/shape/Symbols.js+var VCe = [+ "type",+ "size",+ "sizeType"+];+function dH() {+ return dH = 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]);}- let g = {- name: n,- reducer: p,- actions: o.actionCreators,- caseReducers: o.sliceCaseReducersByName,- getInitialState: m,- ...h(r),- injectInto(e, { reducerPath: t, ...n } = {}) {- let i = t ?? r;- return e.inject({- reducerPath: i,- reducer: p- }, n), {- ...g,- ...h(i, !0)- };- }- };- return g;- };+ return e;+ }, dH.apply(null, arguments);}-function Nwe(e, t, n, r) {- function i(i, ...a) {- let o = t(i);- return o === void 0 && r && (o = n()), e(o, ...a);+function fH(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);}- return i.unwrapped = e, i;+ return n;}-var mU = /* @__PURE__ */ Mwe();-function Pwe() {- function e(e, t) {- return {- _reducerDefinitionType: "asyncThunk",- payloadCreator: e,- ...t- };+function pH(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? fH(Object(n), !0).forEach(function(t) {+ HCe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fH(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });}- return e.withTypes = () => e, {- reducer(e) {- return Object.assign({ [e.name](...t) {- return e(...t);- } }[e.name], { _reducerDefinitionType: "reducer" });- },- preparedReducer(e, t) {- return {- _reducerDefinitionType: "reducerWithPrepare",- prepare: e,- reducer: t- };- },- asyncThunk: e- };+ return e;}-function Fwe({ type: e, reducerName: t, createNotation: n }, r, i) {- let a, o;- if ("reducer" in r) {- if (n && !Lwe(r)) throw Error(BU(17));- a = r.reducer, o = r.prepare;- } else a = r;- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? aU(e, o) : aU(e));+function HCe(e, t, n) {+ return (t = UCe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;}-function Iwe(e) {- return e._reducerDefinitionType === "asyncThunk";+function UCe(e) {+ var t = WCe(e, "string");+ return typeof t == "symbol" ? t : t + "";}-function Lwe(e) {- return e._reducerDefinitionType === "reducerWithPrepare";+function WCe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);}-function Rwe({ type: e, reducerName: t }, n, r, i) {- if (!i) throw Error(BU(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 || hU,- pending: s || hU,- rejected: c || hU,- settled: l || hU- });+function GCe(e, t) {+ if (e == null) return {};+ var n, r, i = KCe(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 hU() {}-var zwe = "task", gU = "listener", _U = "completed", vU = "cancelled", Bwe = `task-${vU}`, Vwe = `task-${_U}`, yU = `${gU}-${vU}`, Hwe = `${gU}-${_U}`, bU = class {- constructor(e) {- this.code = e, this.message = `${zwe} ${vU} (reason: ${e})`;+function KCe(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];}- code;- name = "TaskAbortError";- message;-}, xU = (e, t) => {- if (typeof e != "function") throw TypeError(BU(32));-}, SU = () => {}, CU = (e, t = SU) => (e.catch(t), e), wU = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), TU = (e) => {- if (e.aborted) throw new bU(e.reason);-};-function EU(e, t) {- let n = SU;- return new Promise((r, i) => {- let a = () => i(new bU(e.reason));- if (e.aborted) {- a();- return;- }- n = wU(e, a), t.finally(() => n()).then(r, i);- }).finally(() => {- n = SU;- });+ return n;}-var Uwe = async (e, t) => {- try {- return await Promise.resolve(), {- status: "ok",- value: await e()- };- } catch (e) {- return {- status: e instanceof bU ? "cancelled" : "rejected",- error: e- };- } finally {- t?.();+var mH = {+ symbolCircle: vV,+ symbolCross: cCe,+ symbolDiamond: uCe,+ symbolSquare: dCe,+ symbolStar: hCe,+ symbolTriangle: gCe,+ symbolWye: vCe+}, qCe = Math.PI / 180, JCe = (e) => mH[`symbol${cH(e)}`] || vV, YCe = (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 * qCe;+ 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;}-}, DU = (e) => (t) => CU(EU(e, t).then((t) => (TU(e), t))), OU = (e) => {- let t = DU(e);- return (e) => t(new Promise((t) => setTimeout(t, e)));-}, { assign: kU } = Object, AU = {}, jU = "listenerMiddleware", Wwe = (e, t) => {- let n = (t) => wU(e, () => t.abort(e.reason));- return (r, i) => {- xU(r, "taskExecutor");- let a = new AbortController();- n(a);- let o = Uwe(async () => {- TU(e), TU(a.signal);- let t = await r({- pause: DU(a.signal),- delay: OU(a.signal),- signal: a.signal- });- return TU(a.signal), t;- }, () => a.abort(Vwe));- return i?.autoJoin && t.push(o.catch(SU)), {- result: DU(e)(o),- cancel() {- a.abort(Bwe);- }- };- };-}, Gwe = (e, t) => {- let n = async (n, r) => {- TU(t);- let i = () => {}, a = [new Promise((t, r) => {- let a = e({- predicate: n,- effect: (e, n) => {- n.unsubscribe(), t([- e,- n.getState(),- n.getOriginalState()- ]);- }- });- i = () => {- a(), r();- };- })];- r != null && a.push(new Promise((e) => setTimeout(e, r, null)));- try {- let e = await EU(t, Promise.race(a));- return TU(t), e;- } finally {- i();- }- };- return ((e, t) => CU(n(e, t)));-}, MU = (e) => {- let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;- if (t) i = aU(t).match;- else if (n) t = n.type, i = n.match;- else if (r) i = r;- else if (!i) throw Error(BU(21));- return xU(a, "options.listener"), {- predicate: i,- type: t,- effect: a- };-}, NU = /* @__PURE__ */ kU((e) => {- let { type: t, predicate: n, effect: r } = MU(e);- return {- id: kwe(),- effect: r,+}, XCe = (e, t) => {+ mH[`symbol${cH(e)}`] = t;+}, hH = (e) => {+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pH(pH({}, GCe(e, VCe)), {}, {type: t,- predicate: n,- pending: /* @__PURE__ */ new Set(),- unsubscribe: () => {- throw Error(BU(22));- }- };-}, { withTypes: () => NU }), PU = (e, t) => {- let { type: n, effect: r, predicate: i } = MU(t);- return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);-}, FU = (e) => {- e.pending.forEach((e) => {- e.abort(yU);- });-}, Kwe = (e, t) => () => {- for (let e of t.keys()) FU(e);- e.clear();-}, IU = (e, t, n) => {- try {- e(t, n);- } catch (e) {- setTimeout(() => {- throw e;- }, 0);- }-}, LU = /* @__PURE__ */ kU(/* @__PURE__ */ aU(`${jU}/add`), { withTypes: () => LU }), qwe = /* @__PURE__ */ aU(`${jU}/removeAll`), RU = /* @__PURE__ */ kU(/* @__PURE__ */ aU(`${jU}/remove`), { withTypes: () => RU }), Jwe = (...e) => {- console.error(`${jU}/error`, ...e);-}, zU = (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 = Jwe } = e;- xU(o, "onError");- let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {- e.unsubscribe(), t?.cancelActive && FU(e);- }), c = ((e) => {- let n = PU(t, e) ?? NU(e);- return s(n);- });- kU(c, { withTypes: () => c });- let l = (e) => {- let n = PU(t, e);- return n && (n.unsubscribe(), e.cancelActive && FU(n)), !!n;- };- kU(l, { withTypes: () => l });- let u = async (e, n, s, l) => {- let u = new AbortController(), d = Gwe(c, u.signal), f = [];- try {- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, kU({}, s, {- getOriginalState: l,- condition: (e, t) => d(e, t).then(Boolean),- take: d,- delay: OU(u.signal),- pause: DU(u.signal),- extra: a,- signal: u.signal,- fork: Wwe(u.signal, f),- unsubscribe: e.unsubscribe,- subscribe: () => {- t.set(e.id, e);- },- cancelActiveListeners: () => {- e.pending.forEach((e, t, n) => {- e !== u && (e.abort(yU), n.delete(e));- });- },- cancel: () => {- u.abort(yU), e.pending.delete(u);- },- throwIfCancelled: () => {- TU(u.signal);- }- })));- } catch (e) {- e instanceof bU || IU(o, e, { raisedBy: "effect" });- } finally {- await Promise.all(f), u.abort(Hwe), i(e), e.pending.delete(u);- }- }, d = Kwe(t, n);- return {- middleware: (e) => (n) => (r) => {- if (!YV(r)) return n(r);- if (LU.match(r)) return c(r.payload);- if (qwe.match(r)) {- d();- return;- }- if (RU.match(r)) return l(r.payload);- let i = e.getState(), a = () => {- if (i === AU) throw Error(BU(23));- return i;- }, s;- try {- if (s = n(r), t.size > 0) {- let n = e.getState(), s = Array.from(t.values());- for (let t of s) {- let s = !1;- try {- s = t.predicate(r, n, i);- } catch (e) {- s = !1, IU(o, e, { raisedBy: "predicate" });- }- s && u(t, r, e, a);- }- }- } finally {- i = AU;- }- return s;- },- startListening: c,- stopListening: l,- clearListeners: d- };+ size: n,+ sizeType: r+ }), a = "circle";+ typeof t == "string" && (a = t);+ var o = () => {+ var e = JCe(a), t = yCe().type(e).size(YCe(n, r, a))();+ if (t !== null) return t;+ }, { className: s, cx: c, cy: l } = i, u = GB(i);+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", dH({}, u, {+ className: _h("recharts-symbols", s),+ transform: `translate(${c}, ${l})`,+ d: o()+ })) : null;};-function BU(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 VU = mU({- name: "chartLayout",- initialState: {- layoutType: "horizontal",- width: 0,- height: 0,- margin: {- top: 5,- right: 5,- bottom: 5,- left: 5- },- scale: 1- },- reducers: {- setLayout(e, t) {- e.layoutType = t.payload;- },- setChartSize(e, t) {- e.width = t.payload.width, e.height = t.payload.height;- },- setMargin(e, t) {- e.margin.top = t.payload.top ?? 0, e.margin.right = t.payload.right ?? 0, e.margin.bottom = t.payload.bottom ?? 0, e.margin.left = t.payload.left ?? 0;- },- setScale(e, t) {- e.scale = t.payload;- }- }-}), { setMargin: Ywe, setLayout: Xwe, setChartSize: Zwe, setScale: Qwe } = VU.actions, $we = VU.reducer;-//#endregion-//#region node_modules/recharts/es6/util/getSliced.js-function HU(e, t, n) {- return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;-}+hH.registerSymbol = XCe;//#endregion-//#region node_modules/recharts/es6/util/isWellBehavedNumber.js-function UU(e) {- return Number.isFinite(e);-}-function WU(e) {- return typeof e == "number" && e > 0 && Number.isFinite(e);-}+//#region node_modules/recharts/es6/util/types.js+var gH = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _H = (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) => {+ BB(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));+ }), r;+}, ZCe = (e, t, n) => (r) => (e(t, n, r), null), vH = (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];+ BB(i) && typeof a == "function" && (r ||= {}, r[i] = ZCe(a, t, n));+ }), r;+};//#endregion-//#region node_modules/recharts/es6/util/ChartUtils.js-function GU(e, t) {+//#region node_modules/recharts/es6/util/resolveDefaultProps.js+function yH(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -57160,30 +57883,30 @@ function GU(e, t) {}return n;}-function KU(e) {+function QCe(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) {- eTe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GU(Object(n)).forEach(function(t) {+ t % 2 ? yH(Object(n), !0).forEach(function(t) {+ $Ce(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yH(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function eTe(e, t, n) {- return (t = tTe(t)) in e ? Object.defineProperty(e, t, {+function $Ce(e, t, n) {+ return (t = ewe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function tTe(e) {- var t = nTe(e, "string");+function ewe(e) {+ var t = twe(e, "string");return typeof t == "symbol" ? t : t + "";}-function nTe(e, t) {+function twe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -57193,178 +57916,22 @@ function nTe(e, t) {}return (t === "string" ? String : Number)(e);}-function qU(e, t, n) {- return UB(e) || UB(t) ? n : LB(t) ? jB(e, t, n) : typeof t == "function" ? t(e) : n;-}-var rTe = (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 KU(KU({}, e), {}, { [a]: e[a] + (r || 0) });- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return KU(KU({}, e), {}, { [o]: e[o] + (i || 0) });- }- return e;-}, JU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", YU = (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;-}, XU = (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 ? PB(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 UU(i) ? {- coordinate: i + h,- value: e,- offset: h,- index: t- } : null;- }).filter(GB) : c && l ? l.map((e, t) => {- var n = o.map(e);- return UU(n) ? {- coordinate: n + h,- value: e,- index: t,- offset: h- } : null;- }).filter(GB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {- var n = o.map(e);- return UU(n) ? {- coordinate: n + h,- value: e,- index: t,- offset: h- } : null;- }).filter(GB) : o.domain().map((e, t) => {- var n = o.map(e);- return UU(n) ? {- coordinate: n + h,- value: r ? r[e] : e,- index: t,- offset: h- } : null;- }).filter(GB);-}, ZU = (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;-}, iTe = {- sign: (e) => {- var t = e.length;- if (!(t <= 0)) {- var n = e[0]?.length;- 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 = FB(c) ? l : c;- u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);- }- }- }- },- expand: hSe,- none: CB,- silhouette: gSe,- wiggle: _Se,- positive: (e) => {- var t = e.length;- if (!(t <= 0)) {- var n = e[0]?.length;- 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 = FB(o[1]) ? o[0] : o[1];- s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);- }- }- }- }-}, aTe = (e, t, n) => {- var r = iTe[n] ?? CB, i = mSe().keys(t).value((e, t) => Number(qU(e, t, 0))).order(wB).offset(r)(e);- return i.forEach((n, r) => {- n.forEach((n, i) => {- var a = qU(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 QU(e) {- return e == null ? void 0 : String(e);-}-function $U(e) {- var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;- if (t.type === "category") {- if (!t.allowDuplicatedCategory && t.dataKey && !UB(i[t.dataKey])) {- var s = HB(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 = qU(i, UB(o) ? t.dataKey : o), l = t.scale.map(c);- return Z(l) ? l : null;+function bH(e, t) {+ var n = QCe({}, e), r = t;+ return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);}-var eW = (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 = qU(a, t.dataKey, t.scale.domain()[o]);- if (UB(s)) return null;- var c = t.scale.map(s);- return Z(c) ? c - i / 2 + r : null;-}, tW = (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];-}, oTe = (e) => {- var t = e.flat(2).filter(Z);- return [Math.min(...t), Math.max(...t)];-}, sTe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], cTe = (e, t, n) => {- if (e != null) return sTe(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 = oTe(HU(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]));-}, nW = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, rW = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, iW = (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 = LV(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);+//#endregion+//#region node_modules/recharts/es6/component/DefaultLegendContent.js+function xH() {+ return xH = 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 a === Infinity ? 0 : a;- }- return n ? void 0 : 0;-};-function aW(e) {- var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;- return KU(KU({}, t), {}, {- dataKey: n,- payload: r,- value: i,- name: a- });-}-function oW(e, t) {- if (e) return String(e);- if (typeof t == "string") return t;+ return e;+ }, xH.apply(null, arguments);}-var lTe = (e, t) => {- if (t === "horizontal") return e.relativeX;- if (t === "vertical") return e.relativeY;-}, uTe = (e, t) => t === "centric" ? e.angle : e.radius, sW = (e) => e.layout.width, cW = (e) => e.layout.height, dTe = (e) => e.layout.scale, lW = (e) => e.layout.margin, uW = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), dW = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), fTe = "data-recharts-item-index";-//#endregion-//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js-function fW(e, t) {+function SH(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -57374,30 +57941,30 @@ function fW(e, t) {}return n;}-function pW(e) {+function CH(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? fW(Object(n), !0).forEach(function(t) {- pTe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fW(Object(n)).forEach(function(t) {+ t % 2 ? SH(Object(n), !0).forEach(function(t) {+ nwe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SH(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function pTe(e, t, n) {- return (t = mTe(t)) in e ? Object.defineProperty(e, t, {+function nwe(e, t, n) {+ return (t = rwe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function mTe(e) {- var t = hTe(e, "string");+function rwe(e) {+ var t = iwe(e, "string");return typeof t == "symbol" ? t : t + "";}-function hTe(e, t) {+function iwe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -57407,643 +57974,1259 @@ function hTe(e, t) {}return (t === "string" ? String : Number)(e);}-var gTe = (e) => e.brush.height;-function _Te(e) {- return dW(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);-}-function vTe(e) {- return dW(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);+var wH = 32, awe = {+ align: "center",+ iconSize: 14,+ inactiveColor: "#ccc",+ layout: "horizontal",+ verticalAlign: "middle",+ labelStyle: {}+};+function owe(e) {+ if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);}-function yTe(e) {- return uW(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);+function swe(e) {+ var { data: t, iconType: n, inactiveColor: r } = e, i = wH / 2, a = wH / 6, o = wH / 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: owe(t.payload),+ x1: 0,+ y1: i,+ x2: wH,+ y2: i,+ className: "recharts-legend-icon"+ });+ if (c === "line") return /*#__PURE__*/ B.createElement("path", {+ strokeWidth: 4,+ fill: "none",+ stroke: s,+ d: `M0,${i}h${o}+ A${a},${a},0,1,1,${2 * o},${i}+ H${wH}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,${wH / 8}h${wH}v${wH * 3 / 4}h${-wH}z`,+ className: "recharts-legend-icon"+ });+ if (/*#__PURE__*/ B.isValidElement(t.legendIcon)) {+ var l = CH({}, t);+ return delete l.legendIcon, /*#__PURE__*/ B.cloneElement(t.legendIcon, l);+ }+ return /*#__PURE__*/ B.createElement(hH, {+ fill: s,+ cx: i,+ cy: i,+ size: wH,+ sizeType: "diameter",+ type: c+ });}-function bTe(e) {- return uW(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);-}-var mW = $([- sW,- cW,- lW,- gTe,- _Te,- vTe,- yTe,- bTe,- RV,- $Ce-], (e, t, n, r, i, a, o, s, c, l) => {- var u = {- left: (n.left || 0) + i,- right: (n.right || 0) + a- }, d = pW(pW({}, {- top: (n.top || 0) + o,- bottom: (n.bottom || 0) + s- }), u), f = d.bottom;- d.bottom += r, d = rTe(d, c, l);- var p = e - d.left - d.right, m = t - d.top - d.bottom;- return pW(pW({ brushBottom: f }, d), {}, {- width: Math.max(p, 0),- height: Math.max(m, 0)+function cwe(e) {+ var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {+ x: 0,+ y: 0,+ width: wH,+ height: wH+ }, l = {+ display: r === "horizontal" ? "inline-block" : "block",+ marginRight: 10+ }, u = {+ display: "inline-block",+ verticalAlign: "middle",+ marginRight: 4+ };+ return t.map((t, r) => {+ var d = t.formatter || i, f = _h({+ "recharts-legend-item": !0,+ [`legend-item-${r}`]: !0,+ inactive: t.inactive+ });+ if (t.type === "none") return null;+ var p = typeof s == "object" ? CH({}, 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", xH({+ className: f,+ style: l,+ key: `legend-item-${r}`+ }, vH(e, t, r)), /*#__PURE__*/ B.createElement(qB, {+ width: n,+ height: n,+ viewBox: c,+ style: u,+ "aria-label": `${m} legend icon`+ }, /*#__PURE__*/ B.createElement(swe, {+ data: t,+ iconType: o,+ inactiveColor: a+ })), /*#__PURE__*/ B.createElement("span", {+ className: "recharts-legend-item-text",+ style: p+ }, m));});-}), xTe = $(mW, (e) => ({- x: e.left,- y: e.top,- width: e.width,- height: e.height-})), hW = $(sW, cW, (e, t) => ({- x: 0,- y: 0,- width: e,- height: t-})), STe = /*#__PURE__*/ (0, B.createContext)(null), gW = () => (0, B.useContext)(STe) != null, _W = (e) => e.brush, vW = $([- _W,- mW,- lW-], (e, t, n) => ({- height: e.height,- x: Z(e.x) ? e.x : t.left,- y: Z(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),- width: Z(e.width) ? e.width : t.width-}));-//#endregion-//#region node_modules/es-toolkit/dist/function/debounce.mjs-function CTe(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 = () => {- s && c(), p();- }, u = null, d = () => {- u != null && clearTimeout(u), u = setTimeout(() => {- u = null, l();- }, t);- }, f = () => {- u !== null && (clearTimeout(u), u = null);- }, p = () => {- f(), i = void 0, a = null;- }, m = () => {- c();- }, h = function(...e) {- if (n?.aborted) return;- i = this, a = e;- let t = u == null;- d(), o && t && c();+}+var lwe = (e) => {+ var t = bH(e, awe), { payload: n, layout: r, align: i } = t;+ if (!n || !n.length) return null;+ var a = {+ padding: 0,+ margin: 0,+ textAlign: r === "horizontal" ? i : "left"};- return h.schedule = d, h.cancel = p, h.flush = m, n?.addEventListener("abort", p, { once: !0 }), h;+ return /*#__PURE__*/ B.createElement("ul", {+ className: "recharts-default-legend",+ style: a+ }, /*#__PURE__*/ B.createElement(cwe, xH({}, t, { payload: n })));+};+//#endregion+//#region node_modules/es-toolkit/dist/array/uniqBy.mjs+function uwe(e, t) {+ let n = /* @__PURE__ */ new Map();+ for (let r = 0; r < e.length; r++) {+ let i = e[r], a = t(i, r, e);+ n.has(a) || n.set(a, i);+ }+ return Array.from(n.values());}//#endregion-//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs-function wTe(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 = CTe(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);+//#region node_modules/es-toolkit/dist/function/ary.mjs+function dwe(e, t) {+ return function(...n) {+ return e.apply(this, n.slice(0, t));};- return u.cancel = l.cancel, u.flush = () => (l.flush(), s), u;}//#endregion-//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs-function TTe(e, t = 0, n = {}) {- let { leading: r = !0, trailing: i = !0 } = n;- return wTe(e, t, {- leading: r,- maxWait: t,- trailing: i- });+//#region node_modules/es-toolkit/dist/function/identity.mjs+function TH(e) {+ return e;}//#endregion-//#region node_modules/recharts/es6/util/LogUtils.js-var yW = 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.");- else {- var r = 0;- console.warn(t.replace(/%s/g, () => n[r++]));- }- }-}, bW = {- width: "100%",- height: "100%",- debounce: 0,- minWidth: 0,- initialDimension: {- width: -1,- height: -1- }-}, xW = (e, t, n) => {- var { width: r = bW.width, height: i = bW.height, aspect: a, maxHeight: o } = n, s = IB(r) ? e : Number(r), c = IB(i) ? t : Number(i);- return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {- calculatedWidth: s,- calculatedHeight: c- };-}, ETe = {- width: 0,- height: 0,- overflow: "visible"-}, DTe = {- width: 0,- overflowX: "visible"-}, OTe = {- height: 0,- overflowY: "visible"-}, kTe = {}, ATe = (e) => {- var { width: t, height: n } = e, r = IB(t), i = IB(n);- return r && i ? ETe : r ? DTe : i ? OTe : kTe;-};-function jTe(e) {- var { width: t, height: n, aspect: r } = e, i = t, a = n;- return i === void 0 && a === void 0 ? (i = bW.width, a = bW.height) : i === void 0 ? i = r && r > 0 ? void 0 : bW.width : a === void 0 && (a = r && r > 0 ? void 0 : bW.height), {- width: i,- height: a- };+//#region node_modules/es-toolkit/dist/predicate/isLength.mjs+function fwe(e) {+ return Number.isSafeInteger(e) && e >= 0;}//#endregion-//#region node_modules/recharts/es6/component/ResponsiveContainer.js-function SW() {- return SW = 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;- }, SW.apply(null, arguments);-}-function CW(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function wW(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? CW(Object(n), !0).forEach(function(t) {- MTe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CW(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, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function NTe(e) {- var t = PTe(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function PTe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);+//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs+function EH(e) {+ return e != null && typeof e != "function" && fwe(e.length);}-var TW = /*#__PURE__*/ (0, B.createContext)(bW.initialDimension);-function FTe(e) {- return WU(e.width) && WU(e.height);+//#endregion+//#region node_modules/es-toolkit/dist/compat/object/property.mjs+function pwe(e) {+ return function(t) {+ return YV(t, e);+ };}-function EW(e) {- var { children: t, width: n, height: r } = e, i = (0, B.useMemo)(() => ({- width: n,- height: r- }), [n, r]);- return FTe(i) ? /*#__PURE__*/ B.createElement(TW.Provider, { value: i }, t) : null;+//#endregion+//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs+function DH(e) {+ return e == null || typeof e != "object" && typeof e != "function";}-var DW = () => (0, B.useContext)(TW), ITe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { aspect: n, initialDimension: r = bW.initialDimension, width: i, height: a, minWidth: o = bW.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = bW.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,- containerHeight: r.height- }), y = (0, B.useCallback)((e, t) => {- v((n) => {- var r = Math.round(e), i = Math.round(t);- return n.containerWidth === r && n.containerHeight === i ? n : {- containerWidth: r,- containerHeight: i- };- });- }, []);- (0, B.useEffect)(() => {- if (h.current == null || typeof ResizeObserver > "u") return KB;- var e = (e) => {- var t, n = e[0];- if (n != null) {- var { width: r, height: i } = n.contentRect;- y(r, i), (t = g.current) == null || t.call(g, r, i);- }- };- u > 0 && (e = TTe(e, u, {- trailing: !0,- leading: !1- }));- var t = new ResizeObserver(e), { width: n, height: r } = h.current.getBoundingClientRect();- return y(n, r), t.observe(h.current), () => {- t.disconnect();- };- }, [y, u]);- var { containerWidth: b, containerHeight: x } = _;- yW(!n || n > 0, "The aspect(%s) must be greater than zero.", n);- var { calculatedWidth: S, calculatedHeight: C } = xW(b, x, {- width: i,- height: a,- aspect: n,- maxHeight: c- });- return yW(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: _h("recharts-responsive-container", f),- style: wW(wW({}, m), {}, {- width: i,- height: a,- minWidth: o,- minHeight: s,- maxHeight: c- }),- ref: h- }, /*#__PURE__*/ B.createElement("div", { style: ATe({- width: i,- height: a- }) }, /*#__PURE__*/ B.createElement(EW, {- width: S,- height: C- }, l)));-}), OW = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = DW();- if (WU(n.width) && WU(n.height)) return e.children;- var { width: r, height: i } = jTe({- width: e.width,- height: e.height,- aspect: e.aspect- }), { calculatedWidth: a, calculatedHeight: o } = xW(void 0, void 0, {- width: r,- height: i,- aspect: e.aspect,- maxHeight: e.maxHeight- });- return Z(a) && Z(o) ? /*#__PURE__*/ B.createElement(EW, {- width: a,- height: o- }, e.children) : /*#__PURE__*/ B.createElement(ITe, SW({}, e, {- width: r,- height: i,- ref: t- }));-});//#endregion-//#region node_modules/recharts/es6/context/chartLayoutContext.js-function kW(e) {- if (e) return {- x: e.x,- y: e.y,- upperWidth: "upperWidth" in e ? e.upperWidth : e.width,- lowerWidth: "lowerWidth" in e ? e.lowerWidth : e.width,- width: e.width,- height: e.height- };+//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs+function mwe(e) {+ return ArrayBuffer.isView(e) && !(e instanceof DataView);}-var AW = () => {- var e = gW(), t = Q(xTe), n = Q(vW), r = Q(_W)?.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- };-}, LTe = {- top: 0,- bottom: 0,- left: 0,- right: 0,- width: 0,- height: 0,- brushBottom: 0-}, jW = () => Q(mW) ?? LTe, MW = () => Q(sW), NW = () => Q(cW), RTe = () => Q((e) => e.layout.margin), PW = (e) => e.layout.layoutType, FW = () => Q(PW), IW = () => {- var e = FW();- if (e === "horizontal" || e === "vertical") return e;-}, LW = (e) => {- var t = e.layout.layoutType;- if (t === "centric" || t === "radial") return t;-}, RW = () => Q(LW), zTe = () => FW() !== void 0, zW = (e) => {- var t = kV(), n = gW(), { width: r, height: i } = e, a = DW(), o = r, s = i;- return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, B.useEffect)(() => {- !n && WU(o) && WU(s) && t(Zwe({- width: o,- height: s- }));- }, [- t,- n,- o,- s- ]), null;-}, BW = Symbol.for("immer-nothing"), VW = Symbol.for("immer-draftable"), HW = Symbol.for("immer-state");-function UW(e, ...t) {- throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);+//#endregion+//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs+function hwe(e) {+ return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));}-var WW = Object.getPrototypeOf;-function GW(e) {- return !!e && !!e[HW];+//#endregion+//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs+function OH(e) {+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);}-function KW(e) {- return e ? JW(e) || Array.isArray(e) || !!e[VW] || !!e.constructor?.[VW] || $W(e) || eG(e) : !1;+//#endregion+//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs+var gwe = "[object RegExp]", kH = "[object String]", AH = "[object Number]", jH = "[object Boolean]", MH = "[object Arguments]", _we = "[object Symbol]", vwe = "[object Date]", ywe = "[object Map]", bwe = "[object Set]", xwe = "[object Array]", Swe = "[object ArrayBuffer]", Cwe = "[object Object]", wwe = "[object DataView]", Twe = "[object Uint8Array]", Ewe = "[object Uint8ClampedArray]", Dwe = "[object Uint16Array]", Owe = "[object Uint32Array]", kwe = "[object Int8Array]", Awe = "[object Int16Array]", jwe = "[object Int32Array]", Mwe = "[object Float32Array]", Nwe = "[object Float64Array]", NH = 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 Pwe(e) {+ return NH.Buffer !== void 0 && NH.Buffer.isBuffer(e);}-var BTe = Object.prototype.constructor.toString(), qW = /* @__PURE__ */ new WeakMap();-function JW(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 = qW.get(n);- return r === void 0 && (r = Function.toString.call(n), qW.set(n, r)), r === BTe;+//#endregion+//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs+function Fwe(e, t) {+ return PH(e, void 0, e, /* @__PURE__ */ new Map(), t);}-function YW(e, t, n = !0) {- XW(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 PH(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {+ let a = i?.(e, t, n, r);+ if (a !== void 0) return a;+ if (DH(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] = PH(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());+ if (e instanceof RegExp) {+ let t = new RegExp(e.source, e.flags);+ return t.lastIndex = e.lastIndex, t;+ }+ if (e instanceof Map) {+ let t = /* @__PURE__ */ new Map();+ r.set(e, t);+ for (let [a, o] of e) t.set(a, PH(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(PH(a, void 0, n, r, i));+ return t;+ }+ if (Pwe(e)) return e.subarray();+ if (mwe(e)) {+ let t = new (Object.getPrototypeOf(e)).constructor(e.length);+ r.set(e, t);+ for (let a = 0; a < e.length; a++) t[a] = PH(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), FH(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), FH(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), FH(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, FH(t, e, n, r, i), t;+ }+ if (e instanceof Boolean) {+ let t = new Boolean(e.valueOf());+ return r.set(e, t), FH(t, e, n, r, i), t;+ }+ if (e instanceof Number) {+ let t = new Number(e.valueOf());+ return r.set(e, t), FH(t, e, n, r, i), t;+ }+ if (e instanceof String) {+ let t = new String(e.valueOf());+ return r.set(e, t), FH(t, e, n, r, i), t;+ }+ if (typeof e == "object" && Iwe(e)) {+ let t = Object.create(Object.getPrototypeOf(e));+ return r.set(e, t), FH(t, e, n, r, i), t;+ }+ return e;}-function XW(e) {- let t = e[HW];- return t ? t.type_ : Array.isArray(e) ? 1 : $W(e) ? 2 : eG(e) ? 3 : 0;+function FH(e, t, n = e, r, i) {+ let a = [...Object.keys(t), ...hwe(t)];+ for (let o = 0; o < a.length; o++) {+ let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);+ (c == null || c.writable) && (e[s] = PH(t[s], s, n, r, i));+ }}-function ZW(e, t) {- return XW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);+function Iwe(e) {+ switch (OH(e)) {+ case MH:+ case xwe:+ case Swe:+ case wwe:+ case jH:+ case vwe:+ case Mwe:+ case Nwe:+ case kwe:+ case Awe:+ case jwe:+ case ywe:+ case AH:+ case Cwe:+ case gwe:+ case bwe:+ case kH:+ case _we:+ case Twe:+ case Ewe:+ case Dwe:+ case Owe: return !0;+ default: return !1;+ }}-function QW(e, t, n) {- let r = XW(e);- r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;+//#endregion+//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs+function Lwe(e) {+ return PH(e, void 0, e, /* @__PURE__ */ new Map(), void 0);}-function VTe(e, t) {- return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;+//#endregion+//#region node_modules/es-toolkit/dist/compat/util/eq.mjs+function IH(e, t) {+ return e === t || Number.isNaN(e) && Number.isNaN(t);}-function $W(e) {- return e instanceof Map;+//#endregion+//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs+function LH(e) {+ return e !== null && (typeof e == "object" || typeof e == "function");}-function eG(e) {- return e instanceof Set;+//#endregion+//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs+function RH(e, t, n) {+ return typeof n == "function" ? zH(e, t, function e(t, r, i, a, o, s) {+ let c = n(t, r, i, a, o, s);+ return c === void 0 ? zH(t, r, e, s, !1) : !!c;+ }, /* @__PURE__ */ new Map(), !0) : RH(e, t, () => void 0);}-function tG(e) {- return e.copy_ || e.base_;+function zH(e, t, n, r, i = !1) {+ if (t === e) return !0;+ switch (typeof t) {+ case "object": return Rwe(e, t, n, r, i);+ case "function": return Object.keys(t).length > 0 ? zH(e, { ...t }, n, r, i) : IH(e, t);+ default: return LH(e) && i ? typeof t != "string" || t === "" : IH(e, t);+ }}-function nG(e, t) {- if ($W(e)) return new Map(e);- if (eG(e)) return new Set(e);- if (Array.isArray(e)) return Array.prototype.slice.call(e);- let n = JW(e);- if (t === !0 || t === "class_only" && !n) {- let t = Object.getOwnPropertyDescriptors(e);- delete t[HW];- let n = Reflect.ownKeys(t);- for (let r = 0; r < n.length; r++) {- let i = n[r], a = t[i];- a.writable === !1 && (a.writable = !0, a.configurable = !0), (a.get || a.set) && (t[i] = {- configurable: !0,- writable: !0,- enumerable: a.enumerable,- value: e[i]- });- }- return Object.create(WW(e), t);+function Rwe(e, t, n, r, i = !1) {+ if (t == null) return !0;+ if (Array.isArray(t)) return BH(e, t, n, r);+ if (t instanceof Map) return zwe(e, t, n, r);+ if (t instanceof Set) return Bwe(e, t, n, r);+ let a = Object.keys(t);+ if (e == null) return i && a.length === 0;+ if (i) DH(e) && (e = Object(e));+ else {+ let t = OH(e);+ if (t !== "[object Object]" && t !== "[object Arguments]") return !1;}- {- let t = WW(e);- if (t !== null && n) return { ...e };- let r = Object.create(t);- return Object.assign(r, e);+ if (a.length === 0) return !0;+ if (r?.has(t)) return r.get(t) === e;+ r?.set(t, e);+ try {+ for (let i = 0; i < a.length; i++) {+ let o = a[i];+ if (!(o in e) || t[o] === void 0 && e[o] !== void 0 || t[o] === null && e[o] !== null || !n(e[o], t[o], o, e, t, r)) return !1;+ }+ return !0;+ } finally {+ r?.delete(t);}}-function rG(e, t = !1) {- return aG(e) || GW(e) || !KW(e) ? e : (XW(e) > 1 && Object.defineProperties(e, {- set: iG,- add: iG,- clear: iG,- delete: iG- }), Object.freeze(e), t && Object.values(e).forEach((e) => rG(e, !0)), e);-}-function HTe() {- UW(2);-}-var iG = { value: HTe };-function aG(e) {- return typeof e != "object" || !e || Object.isFrozen(e);+function zwe(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;}-var UTe = {};-function oG(e) {- let t = UTe[e];- return t || UW(0, e), t;+function BH(e, t, n, r) {+ if (t.length === 0) return !0;+ if (!Array.isArray(e)) return !1;+ let i = /* @__PURE__ */ new Set();+ for (let a = 0; a < t.length; a++) {+ let o = t[a], s = !1;+ for (let c = 0; c < e.length; c++) {+ if (i.has(c)) continue;+ let l = e[c], u = !1;+ if (n(l, o, a, e, t, r) && (u = !0), u) {+ i.add(c), s = !0;+ break;+ }+ }+ if (!s) return !1;+ }+ return !0;}-var sG;-function cG() {- return sG;+function Bwe(e, t, n, r) {+ return t.size === 0 || e instanceof Set && BH([...e], [...t], n, r);}-function WTe(e, t) {- return {- drafts_: [],- parent_: e,- immer_: t,- canAutoFreeze_: !0,- unfinalizedDrafts_: 0- };+//#endregion+//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs+function VH(e, t) {+ return RH(e, t, () => void 0);}-function lG(e, t) {- t && (oG("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);+//#endregion+//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs+function Vwe(e) {+ return e = Lwe(e), (t) => VH(t, e);}-function uG(e) {- dG(e), e.drafts_.forEach(GTe), e.drafts_ = null;+//#endregion+//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs+function Hwe(e, t) {+ return Fwe(e, (n, r, i, a) => {+ let o = t?.(n, r, i, a);+ if (o !== void 0) return o;+ if (typeof e == "object") {+ if (OH(e) === "[object Object]" && typeof e.constructor != "function") {+ let t = {};+ return a.set(e, t), FH(t, e, i, a), t;+ }+ switch (Object.prototype.toString.call(e)) {+ case AH:+ case kH:+ case jH: {+ let t = new e.constructor(e?.valueOf());+ return FH(t, e), t;+ }+ case MH: {+ let t = {};+ return FH(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;+ }+ default: return;+ }+ }+ });}-function dG(e) {- e === sG && (sG = e.parent_);+//#endregion+//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs+function Uwe(e) {+ return Hwe(e);}-function fG(e) {- return sG = WTe(sG, e);+//#endregion+//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs+var Wwe = /^(?:0|[1-9]\d*)$/;+function HH(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 Wwe.test(e);+ }}-function GTe(e) {- let t = e[HW];- t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;+//#endregion+//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs+function Gwe(e) {+ return typeof e == "object" && !!e && OH(e) === "[object Arguments]";}-function pG(e, t) {- t.unfinalizedDrafts_ = t.drafts_.length;- let n = t.drafts_[0];- return e !== void 0 && e !== n ? (n[HW].modified_ && (uG(t), UW(4)), KW(e) && (e = mG(t, e), t.parent_ || gG(t, e)), t.patches_ && oG("Patches").generateReplacementPatches_(n[HW].base_, e, t.patches_, t.inversePatches_)) : e = mG(t, n, []), uG(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === BW ? void 0 : e;+//#endregion+//#region node_modules/es-toolkit/dist/compat/object/has.mjs+function Kwe(e, t) {+ let n;+ if (n = Array.isArray(t) ? t : typeof t == "string" && WV(t) && !(t in Object(e)) ? JV(t) : [t], n.length === 0) return !1;+ let r = e;+ for (let e = 0; e < n.length; e++) {+ let t = GV(n[e]);+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || Gwe(r)) && HH(t) && Number(t) < r.length)) return !1;+ r = r[t];+ }+ return !0;}-function mG(e, t, n) {- if (aG(t)) return t;- let r = e.immer_.shouldUseStrictIteration(), i = t[HW];- if (!i) return YW(t, (r, a) => hG(e, i, t, r, a, n), r), t;- if (i.scope_ !== e) return t;- if (!i.modified_) return gG(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), YW(a, (r, a) => hG(e, i, t, r, a, n, o), r), gG(e, t, !1), n && e.patches_ && oG("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);+//#endregion+//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs+function qwe(e, t) {+ switch (typeof e) {+ case "object":+ Object.is(e?.valueOf(), -0) && (e = "-0");+ break;+ case "number": e = GV(e);}- return i.copy_;+ return t = Uwe(t), function(n) {+ let r = YV(n, e);+ return r === void 0 ? Kwe(n, e) : t === void 0 ? r === void 0 : VH(r, t);+ };}-function hG(e, t, n, r, i, a, o) {- if (i == null || typeof i != "object" && !o) return;- let s = aG(i);- if (!(s && !o)) {- if (GW(i)) {- let o = mG(e, i, a && t && t.type_ !== 3 && !ZW(t.assigned_, r) ? a.concat(r) : void 0);- if (QW(n, r, o), GW(o)) e.canAutoFreeze_ = !1;- else return;- } else o && n.add(i);- if (KW(i) && !s) {- if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;- mG(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && ($W(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && gG(e, i);- }+//#endregion+//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs+function UH(e) {+ if (e == null) return TH;+ switch (typeof e) {+ case "function": return e;+ case "object": return Array.isArray(e) && e.length === 2 ? qwe(e[0], e[1]) : Vwe(e);+ default: return pwe(e);}}-function gG(e, t, n = !1) {- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && rG(t, n);+//#endregion+//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs+function Jwe(e) {+ return e === 0 ? 0 : e;+}+//#endregion+//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs+function WH(e, t = TH) {+ return EH(e) ? uwe(Array.from(e), dwe(UH(t), 1)).map(Jwe) : [];}-function KTe(e, t) {- let n = Array.isArray(e), r = {- type_: +!!n,- scope_: t ? t.scope_ : cG(),- modified_: !1,- finalized_: !1,- assigned_: {},- parent_: t,- base_: e,- draft_: null,- copy_: null,- revoke_: null,- isManual_: !1- }, i = r, a = _G;- n && (i = [r], a = vG);- let { revoke: o, proxy: s } = Proxy.revocable(i, a);- return r.draft_ = s, r.revoke_ = o, s;+//#endregion+//#region node_modules/recharts/es6/util/payload/getUniqPayload.js+function GH(e, t, n) {+ return t === !0 ? WH(e, n) : typeof t == "function" ? WH(e, t) : e;}-var _G = {- get(e, t) {- if (t === HW) return e;- let n = tG(e);- if (!ZW(n, t)) return qTe(e, n, t);- let r = n[t];- return e.finalized_ || !KW(r) ? r : r === yG(e.base_, t) ? (SG(e), e.copy_[t] = CG(r, e)) : r;- },- has(e, t) {- return t in tG(e);- },- ownKeys(e) {- return Reflect.ownKeys(tG(e));- },- set(e, t, n) {- let r = bG(tG(e), t);- if (r?.set) return r.set.call(e.draft_, n), !0;- if (!e.modified_) {- let r = yG(tG(e), t), i = r?.[HW];- if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;- if (VTe(n, r) && (n !== void 0 || ZW(e.base_, t))) return !0;- SG(e), xG(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 yG(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, SG(e), xG(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;- },- getOwnPropertyDescriptor(e, t) {- let n = tG(e), r = Reflect.getOwnPropertyDescriptor(n, t);- return r && {- writable: !0,- configurable: e.type_ !== 1 || t !== "length",- enumerable: r.enumerable,- value: n[t]- };- },- defineProperty() {- UW(11);- },- getPrototypeOf(e) {- return WW(e.base_);- },- setPrototypeOf() {- UW(12);+//#endregion+//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js+var Ywe = /* @__PURE__ */ xt(((e) => {+ var t = Ot(), n = Uh();+ function r(e, t) {+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;}-}, vG = {};-YW(_G, (e, t) => {- vG[e] = function() {- return arguments[0] = arguments[0][0], t.apply(this, arguments);+ var i = typeof Object.is == "function" ? Object.is : r, a = n.useSyncExternalStore, o = t.useRef, s = t.useEffect, c = t.useMemo, l = t.useDebugValue;+ e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {+ var d = o(null);+ if (d.current === null) {+ var f = {+ hasValue: !1,+ value: null+ };+ d.current = f;+ } else f = d.current;+ d = c(function() {+ function e(e) {+ if (!a) {+ if (a = !0, o = e, e = r(e), u !== void 0 && f.hasValue) {+ var t = f.value;+ if (u(t, e)) return s = t;+ }+ return s = e;+ }+ if (t = s, i(o, e)) return t;+ var n = r(e);+ return u !== void 0 && u(t, n) ? (o = e, t) : (o = e, s = n);+ }+ var a = !1, o, s, c = n === void 0 ? null : n;+ return [function() {+ return e(t());+ }, c === null ? void 0 : function() {+ return e(c());+ }];+ }, [+ t,+ n,+ r,+ u+ ]);+ var p = a(e, d[0], d[1]);+ return s(function() {+ f.hasValue = !0, f.value = p;+ }, [p]), l(p), p;};-}), vG.deleteProperty = function(e, t) {- return vG.set.call(this, e, t, void 0);-}, vG.set = function(e, t, n) {- return _G.set.call(this, e[0], t, n, e[0]);-};-function yG(e, t) {- let n = e[HW];- return (n ? tG(n) : e)[t];+})), Xwe = /* @__PURE__ */ xt(((e, t) => {+ t.exports = Ywe();+})), KH = /*#__PURE__*/ (0, B.createContext)(null), Zwe = Xwe(), Qwe = (e) => e, qH = () => {+ var e = (0, B.useContext)(KH);+ return e ? e.store.dispatch : Qwe;+}, JH = () => {}, $we = () => JH, eTe = (e, t) => e === t;+function Q(e) {+ var t = (0, B.useContext)(KH), n = (0, B.useMemo)(() => t ? (t) => {+ if (t != null) return e(t);+ } : JH, [t, e]);+ return (0, Zwe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : $we, t ? t.store.getState : JH, t ? t.store.getState : JH, n, eTe);}-function qTe(e, t, n) {- let r = bG(t, n);- return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;+//#endregion+//#region node_modules/reselect/dist/reselect.mjs+function tTe(e, t = `expected a function, instead received ${typeof e}`) {+ if (typeof e != "function") throw TypeError(t);}-function bG(e, t) {- if (!(t in e)) return;- let n = WW(e);- for (; n;) {- let e = Object.getOwnPropertyDescriptor(n, t);- if (e) return e;- n = WW(n);+function nTe(e, t = `expected an object, instead received ${typeof e}`) {+ if (typeof e != "object") throw TypeError(t);+}+function rTe(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}]`);}}-function xG(e) {- e.modified_ || (e.modified_ = !0, e.parent_ && xG(e.parent_));+var YH = (e) => Array.isArray(e) ? e : [e];+function iTe(e) {+ let t = Array.isArray(e[0]) ? e[0] : e;+ return rTe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;}-function SG(e) {- e.copy_ ||= nG(e.base_, e.scope_.immer_.useStrictShallowCopy_);+function aTe(e, t) {+ let n = [], { length: r } = e;+ for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));+ return n;}-var JTe = class {+var oTe = class {constructor(e) {- this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {- if (typeof e == "function" && typeof t != "function") {- let n = t;- t = e;- let r = this;- return function(e = n, ...i) {- return r.produce(e, (e) => t.call(this, e, ...i));- };- }- typeof t != "function" && UW(6), n !== void 0 && typeof n != "function" && UW(7);- let r;- if (KW(e)) {- let i = fG(this), a = CG(e, void 0), o = !0;- try {- r = t(a), o = !1;- } finally {- o ? uG(i) : dG(i);- }- return lG(i, n), pG(r, i);+ this.value = e;+ }+ deref() {+ return this.value;+ }+}, sTe = typeof WeakRef < "u" ? WeakRef : oTe, cTe = 0, XH = 1;+function ZH() {+ return {+ s: cTe,+ v: void 0,+ o: null,+ p: null+ };+}+function QH(e, t = {}) {+ let n = ZH(), { resultEqualityCheck: r } = t, i, a = 0;+ function o() {+ let t = n, { length: o } = arguments;+ for (let e = 0, n = o; e < n; e++) {+ let n = arguments[e];+ if (typeof n == "function" || typeof n == "object" && n) {+ let e = t.o;+ e === null && (t.o = e = /* @__PURE__ */ new WeakMap());+ let r = e.get(n);+ r === void 0 ? (t = ZH(), 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 = ZH(), e.set(n, t)) : t = r;}- if (!e || typeof e != "object") {- if (r = t(e), r === void 0 && (r = e), r === BW && (r = void 0), this.autoFreeze_ && rG(r, !0), n) {+ }+ let s = t, c;+ if (t.s === XH) 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 sTe(c) : c;+ }+ return s.s = XH, s.v = c, c;+ }+ return o.clearCache = () => {+ n = ZH(), o.resetResultsCount();+ }, o.resultsCount = () => a, o.resetResultsCount = () => {+ a = 0;+ }, o;+}+function lTe(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()), tTe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = QH, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {+ ...n,+ ...a+ }, f = YH(c), p = YH(u), m = iTe(e), h = s(function() {+ return t++, o.apply(null, arguments);+ }, ...f), g = l(function() {+ r++;+ let e = aTe(m, arguments);+ return i = h.apply(null, e), i;+ }, ...p);+ return Object.assign(g, {+ resultFunc: o,+ memoizedResultFunc: h,+ dependencies: m,+ dependencyRecomputations: () => r,+ resetDependencyRecomputations: () => {+ r = 0;+ },+ lastResult: () => i,+ recomputations: () => t,+ resetRecomputations: () => {+ t = 0;+ },+ memoize: s,+ argsMemoize: l+ });+ };+ return Object.assign(r, { withTypes: () => r }), r;+}+var $ = /* @__PURE__ */ lTe(QH), uTe = Object.assign((e, t = $) => {+ nTe(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: () => uTe });+//#endregion+//#region node_modules/es-toolkit/dist/array/flatten.mjs+function dTe(e, t = 1) {+ let n = [], r = Math.floor(t), i = (e, t) => {+ for (let a = 0; a < e.length; a++) {+ let o = e[a];+ Array.isArray(o) && t < r ? i(o, t + 1) : n.push(o);+ }+ };+ return i(e, 0), n;+}+//#endregion+//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs+function $H(e, t, n) {+ return LH(n) && (typeof t == "number" && EH(n) && HH(t) && t < n.length || typeof t == "string" && t in n) ? IH(n[t], e) : !1;+}+//#endregion+//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs+function eU(e) {+ return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;+}+var fTe = (e, t, n) => {+ if (e !== t) {+ let r = eU(e), i = eU(t);+ if (r === i && r === 0) {+ if (e < t) return n === "desc" ? 1 : -1;+ if (e > t) return n === "desc" ? -1 : 1;+ }+ return n === "desc" ? i - r : r - i;+ }+ return 0;+}, pTe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, mTe = /^\w*$/;+function hTe(e, t) {+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || KV(e) ? !0 : typeof e == "string" && (mTe.test(e) || !pTe.test(e)) || t != null && Object.hasOwn(t, e);+}+//#endregion+//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs+function gTe(e, t, n, r) {+ if (e == null) return [];+ n = r ? void 0 : n, Array.isArray(e) || (e = EH(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]];+ return r > 0 && r === t.length ? n : void 0;+ }, 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) || hTe(e) ? e : {+ key: e,+ path: JV(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 = fTe(e.criteria[r], t.criteria[r], n[r]);+ if (i !== 0) return i;+ }+ return 0;+ }).map((e) => e.original);+}+//#endregion+//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs+function tU(e, ...t) {+ let n = t.length;+ return n > 1 && $H(e, t[0], t[1]) ? t = [] : n > 2 && $H(t[0], t[1], t[2]) && (t = [t[0]]), gTe(e, dTe(t), ["asc"]);+}+//#endregion+//#region node_modules/recharts/es6/state/selectors/legendSelectors.js+var nU = (e) => e.legend.settings, _Te = (e) => e.legend.size, vTe = $([(e) => e.legend.payload, nU], (e, t) => {+ var { itemSorter: n } = t, r = e.flat(1);+ return n ? tU(r, n) : r;+});+//#endregion+//#region node_modules/recharts/es6/context/legendPayloadContext.js+function yTe() {+ return Q(vTe);+}+//#endregion+//#region node_modules/recharts/es6/util/useElementOffset.js+var rU = 1;+function iU() {+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, B.useState)({+ height: 0,+ left: 0,+ top: 0,+ width: 0+ });+ return [t, (0, B.useCallback)((e) => {+ if (e != null) {+ var r = e.getBoundingClientRect(), i = {+ height: r.height,+ left: r.left,+ top: r.top,+ width: r.width+ };+ (Math.abs(i.height - t.height) > rU || Math.abs(i.left - t.left) > rU || Math.abs(i.top - t.top) > rU || Math.abs(i.width - t.width) > rU) && n({+ height: i.height,+ left: i.left,+ top: i.top,+ width: i.width+ });+ }+ }, [+ t.width,+ t.height,+ t.top,+ t.left,+ ...e+ ])];+}+//#endregion+//#region node_modules/redux/dist/redux.mjs+function aU(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 oU = typeof Symbol == "function" && Symbol.observable || "@@observable", sU = () => Math.random().toString(36).substring(7).split("").join("."), cU = {+ INIT: `@@redux/INIT${/* @__PURE__ */ sU()}`,+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ sU()}`,+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${sU()}`+};+function lU(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 uU(e, t, n) {+ if (typeof e != "function") throw Error(aU(2));+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(aU(0));+ if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {+ if (typeof n != "function") throw Error(aU(1));+ return n(uU)(e, t);+ }+ let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;+ function l() {+ o === a && (o = /* @__PURE__ */ new Map(), a.forEach((e, t) => {+ o.set(t, e);+ }));+ }+ function u() {+ if (c) throw Error(aU(3));+ return i;+ }+ function d(e) {+ if (typeof e != "function") throw Error(aU(4));+ if (c) throw Error(aU(5));+ let t = !0;+ l();+ let n = s++;+ return o.set(n, e), function() {+ if (t) {+ if (c) throw Error(aU(6));+ t = !1, l(), o.delete(n), a = null;+ }+ };+ }+ function f(e) {+ if (!lU(e)) throw Error(aU(7));+ if (e.type === void 0) throw Error(aU(8));+ if (typeof e.type != "string") throw Error(aU(17));+ if (c) throw Error(aU(9));+ try {+ c = !0, i = r(i, e);+ } finally {+ c = !1;+ }+ return (a = o).forEach((e) => {+ e();+ }), e;+ }+ function p(e) {+ if (typeof e != "function") throw Error(aU(10));+ r = e, f({ type: cU.REPLACE });+ }+ function m() {+ let e = d;+ return {+ subscribe(t) {+ if (typeof t != "object" || !t) throw Error(aU(11));+ function n() {+ let e = t;+ e.next && e.next(u());+ }+ return n(), { unsubscribe: e(n) };+ },+ [oU]() {+ return this;+ }+ };+ }+ return f({ type: cU.INIT }), {+ dispatch: f,+ subscribe: d,+ getState: u,+ replaceReducer: p,+ [oU]: m+ };+}+function bTe(e) {+ Object.keys(e).forEach((t) => {+ let n = e[t];+ if (n(void 0, { type: cU.INIT }) === void 0) throw Error(aU(12));+ if (n(void 0, { type: cU.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(aU(13));+ });+}+function dU(e) {+ let t = Object.keys(e), n = {};+ for (let r = 0; r < t.length; r++) {+ let i = t[r];+ typeof e[i] == "function" && (n[i] = e[i]);+ }+ let r = Object.keys(n), i;+ try {+ bTe(n);+ } catch (e) {+ i = e;+ }+ return function(e = {}, t) {+ if (i) throw i;+ 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(aU(14));+ o[s] = u, a ||= u !== l;+ }+ return a ||= r.length !== Object.keys(e).length, a ? o : e;+ };+}+function fU(...e) {+ return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));+}+function xTe(...e) {+ return (t) => (n, r) => {+ let i = t(n, r), a = () => {+ throw Error(aU(15));+ }, o = {+ getState: i.getState,+ dispatch: (e, ...t) => a(e, ...t)+ };+ return a = fU(...e.map((e) => e(o)))(i.dispatch), {+ ...i,+ dispatch: a+ };+ };+}+function pU(e) {+ return lU(e) && "type" in e && typeof e.type == "string";+}+//#endregion+//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs+var mU = Symbol.for("immer-nothing"), hU = Symbol.for("immer-draftable"), gU = Symbol.for("immer-state");+function _U(e, ...t) {+ throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);+}+var vU = Object, yU = vU.getPrototypeOf, bU = "constructor", xU = "prototype", SU = "configurable", CU = "enumerable", wU = "writable", TU = "value", EU = (e) => !!e && !!e[gU];+function DU(e) {+ return e ? kU(e) || FU(e) || !!e[hU] || !!e[bU]?.[hU] || IU(e) || LU(e) : !1;+}+var STe = vU[xU][bU].toString(), OU = /* @__PURE__ */ new WeakMap();+function kU(e) {+ if (!e || !RU(e)) return !1;+ let t = yU(e);+ if (t === null || t === vU[xU]) return !0;+ let n = vU.hasOwnProperty.call(t, bU) && t[bU];+ if (n === Object) return !0;+ if (!zU(n)) return !1;+ let r = OU.get(n);+ return r === void 0 && (r = Function.toString.call(n), OU.set(n, r)), r === STe;+}+function AU(e, t, n = !0) {+ jU(e) === 0 ? (n ? Reflect.ownKeys(e) : vU.keys(e)).forEach((n) => {+ t(n, e[n], e);+ }) : e.forEach((n, r) => t(r, n, e));+}+function jU(e) {+ let t = e[gU];+ return t ? t.type_ : FU(e) ? 1 : IU(e) ? 2 : LU(e) ? 3 : 0;+}+var MU = (e, t, n = jU(e)) => n === 2 ? e.has(t) : vU[xU].hasOwnProperty.call(e, t), NU = (e, t, n = jU(e)) => n === 2 ? e.get(t) : e[t], PU = (e, t, n, r = jU(e)) => {+ r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;+};+function CTe(e, t) {+ return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;+}+var FU = Array.isArray, IU = (e) => e instanceof Map, LU = (e) => e instanceof Set, RU = (e) => typeof e == "object", zU = (e) => typeof e == "function", BU = (e) => typeof e == "boolean";+function wTe(e) {+ let t = +e;+ return Number.isInteger(t) && String(t) === e;+}+var VU = (e) => e.copy_ || e.base_, HU = (e) => e.modified_ ? e.copy_ : e.base_;+function UU(e, t) {+ if (IU(e)) return new Map(e);+ if (LU(e)) return new Set(e);+ if (FU(e)) return Array[xU].slice.call(e);+ let n = kU(e);+ if (t === !0 || t === "class_only" && !n) {+ let t = vU.getOwnPropertyDescriptors(e);+ delete t[gU];+ let n = Reflect.ownKeys(t);+ for (let r = 0; r < n.length; r++) {+ let i = n[r], a = t[i];+ a[wU] === !1 && (a[wU] = !0, a[SU] = !0), (a.get || a.set) && (t[i] = {+ [SU]: !0,+ [wU]: !0,+ [CU]: a[CU],+ [TU]: e[i]+ });+ }+ return vU.create(yU(e), t);+ }+ {+ let t = yU(e);+ if (t !== null && n) return { ...e };+ let r = vU.create(t);+ return vU.assign(r, e);+ }+}+function WU(e, t = !1) {+ return KU(e) || EU(e) || !DU(e) ? e : (jU(e) > 1 && vU.defineProperties(e, {+ set: GU,+ add: GU,+ clear: GU,+ delete: GU+ }), vU.freeze(e), t && AU(e, (e, t) => {+ WU(t, !0);+ }, !1), e);+}+function TTe() {+ _U(2);+}+var GU = { [TU]: TTe };+function KU(e) {+ return e === null || !RU(e) || vU.isFrozen(e);+}+var qU = "MapSet", JU = "Patches", YU = "ArrayMethods", XU = {};+function ZU(e) {+ let t = XU[e];+ return t || _U(0, e), t;+}+var QU = (e) => !!XU[e], $U, eW = () => $U, ETe = (e, t) => ({+ drafts_: [],+ parent_: e,+ immer_: t,+ canAutoFreeze_: !0,+ unfinalizedDrafts_: 0,+ handledSet_: /* @__PURE__ */ new Set(),+ processedForPatches_: /* @__PURE__ */ new Set(),+ mapSetPlugin_: QU(qU) ? ZU(qU) : void 0,+ arrayMethodsPlugin_: QU(YU) ? ZU(YU) : void 0+});+function tW(e, t) {+ t && (e.patchPlugin_ = ZU(JU), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);+}+function nW(e) {+ rW(e), e.drafts_.forEach(DTe), e.drafts_ = null;+}+function rW(e) {+ e === $U && ($U = e.parent_);+}+var iW = (e) => $U = ETe($U, e);+function DTe(e) {+ let t = e[gU];+ t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;+}+function aW(e, t) {+ t.unfinalizedDrafts_ = t.drafts_.length;+ let n = t.drafts_[0];+ if (e !== void 0 && e !== n) {+ n[gU].modified_ && (nW(t), _U(4)), DU(e) && (e = oW(t, e));+ let { patchPlugin_: r } = t;+ r && r.generateReplacementPatches_(n[gU].base_, e, t);+ } else e = oW(t, n);+ return OTe(t, e, !0), nW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === mU ? void 0 : e;+}+function oW(e, t) {+ if (KU(t)) return t;+ let n = t[gU];+ if (!n) return dW(t, e.handledSet_, e);+ if (!cW(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);+ uW(n, e);+ }+ return n.copy_;+}+function OTe(e, t, n = !1) {+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && WU(t, n);+}+function sW(e) {+ e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;+}+var cW = (e, t) => e.scope_ === t, kTe = [];+function lW(e, t, n, r) {+ let i = VU(e), a = e.type_;+ if (r !== void 0 && NU(i, r, a) === t) {+ PU(i, r, n, a);+ return;+ }+ if (!e.draftLocations_) {+ let t = e.draftLocations_ = /* @__PURE__ */ new Map();+ AU(i, (e, n) => {+ if (EU(n)) {+ let r = t.get(n) || [];+ r.push(e), t.set(n, r);+ }+ });+ }+ let o = e.draftLocations_.get(t) ?? kTe;+ for (let e of o) PU(i, e, n, a);+}+function ATe(e, t, n) {+ e.callbacks_.push(function(r) {+ let i = t;+ if (!i || !cW(i, r)) return;+ r.mapSetPlugin_?.fixSetContents(i);+ let a = HU(i);+ lW(e, i.draft_ ?? i, a, n), uW(i, r);+ });+}+function uW(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);+ }+ sW(e);+ }+}+function jTe(e, t, n) {+ let { scope_: r } = e;+ if (EU(n)) {+ let i = n[gU];+ cW(i, r) && i.callbacks_.push(function() {+ _W(e), lW(e, n, HU(i), t);+ });+ } else DU(n) && e.callbacks_.push(function() {+ let i = VU(e);+ e.type_ === 3 ? i.has(n) && dW(n, r.handledSet_, r) : NU(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && dW(NU(e.copy_, t, e.type_), r.handledSet_, r);+ });+}+function dW(e, t, n) {+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || EU(e) || t.has(e) || !DU(e) || KU(e) ? e : (t.add(e), AU(e, (r, i) => {+ if (EU(i)) {+ let t = i[gU];+ cW(t, n) && (PU(e, r, HU(t), e.type_), sW(t));+ } else DU(i) && dW(i, t, n);+ }), e);+}+function MTe(e, t) {+ let n = FU(e), r = {+ type_: +!!n,+ scope_: t ? t.scope_ : eW(),+ modified_: !1,+ finalized_: !1,+ assigned_: void 0,+ parent_: t,+ base_: e,+ draft_: null,+ copy_: null,+ revoke_: null,+ isManual_: !1,+ callbacks_: void 0+ }, i = r, a = fW;+ n && (i = [r], a = pW);+ let { revoke: o, proxy: s } = Proxy.revocable(i, a);+ return r.draft_ = s, r.revoke_ = o, [s, r];+}+var fW = {+ get(e, t) {+ if (t === gU) 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 = VU(e);+ if (!MU(i, t, e.type_)) return PTe(e, i, t);+ let a = i[t];+ if (e.finalized_ || !DU(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && wTe(t)) return a;+ if (a === mW(e.base_, t) || NTe(e, t, a)) {+ _W(e);+ let n = e.type_ === 1 ? +t : t, r = vW(e.scope_, a, e, n);+ return e.copy_[n] = r;+ }+ return a;+ },+ has(e, t) {+ return t in VU(e);+ },+ ownKeys(e) {+ return Reflect.ownKeys(VU(e));+ },+ set(e, t, n) {+ let r = hW(VU(e), t);+ if (r?.set) return r.set.call(e.draft_, n), !0;+ if (!e.modified_) {+ let r = mW(VU(e), t), i = r?.[gU];+ if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;+ if (CTe(n, r) && (n !== void 0 || MU(e.base_, t, e.type_))) return !0;+ _W(e), gW(e);+ }+ return e.copy_[t] === n && (n !== void 0 || MU(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), jTe(e, t, n), !0);+ },+ deleteProperty(e, t) {+ return _W(e), mW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), gW(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;+ },+ getOwnPropertyDescriptor(e, t) {+ let n = VU(e), r = Reflect.getOwnPropertyDescriptor(n, t);+ return r && {+ [wU]: !0,+ [SU]: e.type_ !== 1 || t !== "length",+ [CU]: r[CU],+ [TU]: n[t]+ };+ },+ defineProperty() {+ _U(11);+ },+ getPrototypeOf(e) {+ return yU(e.base_);+ },+ setPrototypeOf() {+ _U(12);+ }+}, pW = {};+for (let e in fW) {+ let t = fW[e];+ pW[e] = function() {+ let e = arguments;+ return e[0] = e[0][0], t.apply(this, e);+ };+}+pW.deleteProperty = function(e, t) {+ return pW.set.call(this, e, t, void 0);+}, pW.set = function(e, t, n) {+ return fW.set.call(this, e[0], t, n, e[0]);+};+function mW(e, t) {+ let n = e[gU];+ return (n ? VU(n) : e)[t];+}+function NTe(e, t, n) {+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !DU(n) || n[gU] ? !1 : e.baseRefs_.has(n);+}+function PTe(e, t, n) {+ let r = hW(t, n);+ return r ? TU in r ? r[TU] : r.get?.call(e.draft_) : void 0;+}+function hW(e, t) {+ if (!(t in e)) return;+ let n = yU(e);+ for (; n;) {+ let e = Object.getOwnPropertyDescriptor(n, t);+ if (e) return e;+ n = yU(n);+ }+}+function gW(e) {+ e.modified_ || (e.modified_ = !0, e.parent_ && gW(e.parent_));+}+function _W(e) {+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), UU(e.base_, e.scope_.immer_.useStrictShallowCopy_));+}+var FTe = class {+ constructor(e) {+ this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {+ if (zU(e) && !zU(t)) {+ let n = t;+ t = e;+ let r = this;+ return function(e = n, ...i) {+ return r.produce(e, (e) => t.call(this, e, ...i));+ };+ }+ zU(t) || _U(6), n !== void 0 && !zU(n) && _U(7);+ let r;+ if (DU(e)) {+ let i = iW(this), a = vW(i, e, void 0), o = !0;+ try {+ r = t(a), o = !1;+ } finally {+ o ? nW(i) : rW(i);+ }+ return tW(i, n), aW(r, i);+ }+ if (!e || !RU(e)) {+ if (r = t(e), r === void 0 && (r = e), r === mU && (r = void 0), this.autoFreeze_ && WU(r, !0), n) {let t = [], i = [];- oG("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);+ ZU(JU).generateReplacementPatches_(e, r, {+ patches_: t,+ inversePatches_: i+ }), n(t, i);}return r;}- UW(1, e);+ _U(1, e);}, this.produceWithPatches = (e, t) => {- if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));+ if (zU(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));let n, r;return [this.produce(e, t, (e, t) => {@@ -58052,18 +59235,18 @@ var JTe = class {n,r];- }, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);+ }, BU(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), BU(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), BU(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);}createDraft(e) {- KW(e) || UW(8), GW(e) && (e = YTe(e));- let t = fG(this), n = CG(e, void 0);- return n[HW].isManual_ = !0, dG(t), n;+ DU(e) || _U(8), EU(e) && (e = yW(e));+ let t = iW(this), n = vW(t, e, void 0);+ return n[gU].isManual_ = !0, rW(t), n;}finishDraft(e, t) {- let n = e && e[HW];- (!n || !n.isManual_) && UW(9);+ let n = e && e[gU];+ (!n || !n.isManual_) && _U(9);let { scope_: r } = n;- return lG(r, t), pG(void 0, r);+ return tW(r, t), aW(void 0, r);}setAutoFreeze(e) {this.autoFreeze_ = e;@@ -58087,244 +59270,637 @@ var JTe = class {}}n > -1 && (t = t.slice(n + 1));- let r = oG("Patches").applyPatches_;- return GW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));+ let r = ZU(JU).applyPatches_;+ return EU(e) ? r(e, t) : this.produce(e, (e) => r(e, t));}};-function CG(e, t) {- let n = $W(e) ? oG("MapSet").proxyMap_(e, t) : eG(e) ? oG("MapSet").proxySet_(e, t) : KTe(e, t);- return (t ? t.scope_ : cG()).drafts_.push(n), n;+function vW(e, t, n, r) {+ let [i, a] = IU(t) ? ZU(qU).proxyMap_(t, n) : LU(t) ? ZU(qU).proxySet_(t, n) : MTe(t, n);+ return (n?.scope_ ?? eW()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? ATe(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 YTe(e) {- return GW(e) || UW(10, e), wG(e);+function yW(e) {+ return EU(e) || _U(10, e), bW(e);}-function wG(e) {- if (!KW(e) || aG(e)) return e;- let t = e[HW], n, r = !0;+function bW(e) {+ if (!DU(e) || KU(e)) return e;+ let t = e[gU], n, r = !0;if (t) {if (!t.modified_) return t.base_;- t.finalized_ = !0, n = nG(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();- } else n = nG(e, !0);- return YW(n, (e, t) => {- QW(n, e, wG(t));+ t.finalized_ = !0, n = UU(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();+ } else n = UU(e, !0);+ return AU(n, (e, t) => {+ PU(n, e, bW(t));}, r), t && (t.finalized_ = !1), n;}-new JTe().produce;-function TG(e) {- return e;-}+globalThis.Iterator?.from;+var xW = new FTe().produce;//#endregion-//#region node_modules/recharts/es6/state/legendSlice.js-var EG = mU({- name: "legend",- initialState: {- settings: {- layout: "horizontal",- align: "center",- verticalAlign: "middle",- itemSorter: "value"- },- size: {- width: 0,- height: 0- },- payload: []- },- reducers: {- setLegendSize(e, t) {- e.size.width = t.payload.width, e.size.height = t.payload.height;- },- setLegendSettings(e, t) {- e.settings.align = t.payload.align, e.settings.layout = t.payload.layout, e.settings.verticalAlign = t.payload.verticalAlign, e.settings.itemSorter = t.payload.itemSorter;- },- addLegendPayload: {- reducer(e, t) {- e.payload.push(TG(t.payload));- },- prepare: uU()- },- replaceLegendPayload: {- reducer(e, t) {- var { prev: n, next: r } = t.payload, i = tU(e).payload.indexOf(TG(n));- i > -1 && (e.payload[i] = TG(r));- },- prepare: uU()- },- removeLegendPayload: {- reducer(e, t) {- var n = tU(e).payload.indexOf(TG(t.payload));- n > -1 && e.payload.splice(n, 1);- },- prepare: uU()+//#region node_modules/redux-thunk/dist/redux-thunk.mjs+function SW(e) {+ return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);+}+var ITe = SW(), LTe = SW, RTe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? fU : fU.apply(null, arguments);+};+typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;+function CW(e, t) {+ function n(...n) {+ if (t) {+ let r = t(...n);+ if (!r) throw Error(iG(0));+ return {+ type: e,+ payload: r.payload,+ ..."meta" in r && { meta: r.meta },+ ..."error" in r && { error: r.error }+ };}+ return {+ type: e,+ payload: n[0]+ };}-}), { setLegendSize: DG, setLegendSettings: XTe, addLegendPayload: OG, replaceLegendPayload: kG, removeLegendPayload: AG } = EG.actions, ZTe = EG.reducer, QTe = /* @__PURE__ */ xt(((e) => {- var t = Ot();- t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;-}));-(/* @__PURE__ */ xt(((e, t) => {- t.exports = QTe();-})))();-function $Te(e) {- e();+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => pU(t) && t.type === e, n;}-function eEe() {- let e = null, t = null;- return {- clear() {- e = null, t = null;- },- notify() {- $Te(() => {- let t = e;- for (; t;) t.callback(), t = t.next;- });- },- get() {- let t = [], n = e;- for (; n;) t.push(n), n = n.next;- return t;- },- subscribe(n) {- let r = !0, i = t = {- callback: n,- next: null,- prev: t- };- return i.prev ? i.prev.next = i : e = i, function() {- !r || e === null || (r = !1, i.next ? i.next.prev = i.prev : t = i.prev, i.prev ? i.prev.next = i.next : e = i.next);- };- }- };-}-var jG = {- notify() {},- get: () => []-};-function tEe(e, t) {- let n, r = jG, i = 0, a = !1;- function o(e) {- u();- let t = r.subscribe(e), n = !1;- return () => {- n || (n = !0, t(), d());- };+var wW = class e extends Array {+ constructor(...t) {+ super(...t), Object.setPrototypeOf(this, e.prototype);}- function s() {- r.notify();+ static get [Symbol.species]() {+ return e;}- function c() {- m.onStateChange && m.onStateChange();+ concat(...e) {+ return super.concat.apply(this, e);}- function l() {- return a;+ prepend(...t) {+ return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));}- function u() {- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = eEe());+};+function TW(e) {+ return DU(e) ? xW(e, () => {}) : e;+}+function EW(e, t, n) {+ return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);+}+function zTe(e) {+ return typeof e == "boolean";+}+var BTe = () => function(e) {+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new wW();+ return t && (zTe(t) ? a.push(ITe) : a.push(LTe(t.extraArgument))), a;+}, DW = "RTK_autoBatch", OW = () => (e) => ({+ payload: e,+ meta: { [DW]: !0 }+}), kW = (e) => (t) => {+ setTimeout(t, e);+}, VTe = (e, t) => (n) => {+ let r = !1, i = () => {+ r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());+ }, a = e(i), o = setTimeout(i, t);+}, AW = (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 ? VTe(window.requestAnimationFrame, 100) : kW(10) : e.type === "callback" ? e.queueNotification : kW(e.timeout), l = () => {+ o = !1, a && (a = !1, s.forEach((e) => e()));+ };+ return Object.assign({}, r, {+ subscribe(e) {+ let t = r.subscribe(() => i && e());+ return s.add(e), () => {+ t(), s.delete(e);+ };+ },+ dispatch(e) {+ try {+ return i = !e?.meta?.[DW], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);+ } finally {+ i = !0;+ }+ }+ });+}, HTe = (e) => function(t) {+ let { autoBatch: n = !0 } = t ?? {}, r = new wW(e);+ return n && r.push(AW(typeof n == "object" ? n : void 0)), r;+};+function UTe(e) {+ let t = BTe(), { 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 (lU(n)) c = dU(n);+ else throw Error(iG(1));+ let l;+ l = typeof r == "function" ? r(t) : t();+ let u = fU;+ i && (u = RTe({+ trace: !1,+ ...typeof i == "object" && i+ }));+ let d = HTe(xTe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);+ return uU(c, o, p);+}+function jW(e) {+ let t = {}, n = [], r, i = {+ addCase(e, n) {+ let r = typeof e == "string" ? e : e.type;+ if (!r) throw Error(iG(28));+ if (r in t) throw Error(iG(29));+ return t[r] = n, i;+ },+ addAsyncThunk(e, r) {+ return r.pending && (t[e.pending.type] = r.pending), r.rejected && (t[e.rejected.type] = r.rejected), r.fulfilled && (t[e.fulfilled.type] = r.fulfilled), r.settled && n.push({+ matcher: e.settled,+ reducer: r.settled+ }), i;+ },+ addMatcher(e, t) {+ return n.push({+ matcher: e,+ reducer: t+ }), i;+ },+ addDefaultCase(e) {+ return r = e, i;+ }+ };+ return e(i), [+ t,+ n,+ r+ ];+}+function WTe(e) {+ return typeof e == "function";+}+function GTe(e, t) {+ let [n, r, i] = jW(t), a;+ if (WTe(e)) a = () => TW(e());+ else {+ let t = TW(e);+ a = () => t;}- function d() {- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = jG);+ 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 (EU(e)) {+ let r = n(e, t);+ return r === void 0 ? e : r;+ }+ if (DU(e)) return xW(e, (e) => n(e, t));+ {+ let r = n(e, t);+ if (r === void 0) {+ if (e === null) return e;+ throw Error("A case reducer on a non-draftable value must not return undefined");+ }+ return r;+ }+ }+ return e;+ }, e);}- function f() {- a || (a = !0, u());+ return o.getInitialState = a, o;+}+var KTe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", qTe = (e = 21) => {+ let t = "", n = e;+ for (; n--;) t += KTe[Math.random() * 64 | 0];+ return t;+}, JTe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");+function YTe(e, t) {+ return `${e}/${t}`;+}+function XTe({ creators: e } = {}) {+ let t = e?.asyncThunk?.[JTe];+ return function(e) {+ let { name: n, reducerPath: r = n } = e;+ if (!n) throw Error(iG(11));+ let i = (typeof e.reducers == "function" ? e.reducers(QTe()) : e.reducers) || {}, a = Object.keys(i), o = {+ sliceCaseReducersByName: {},+ sliceCaseReducersByType: {},+ actionCreators: {},+ sliceMatchers: []+ }, s = {+ addCase(e, t) {+ let n = typeof e == "string" ? e : e.type;+ if (!n) throw Error(iG(12));+ if (n in o.sliceCaseReducersByType) throw Error(iG(13));+ return o.sliceCaseReducersByType[n] = t, s;+ },+ addMatcher(e, t) {+ return o.sliceMatchers.push({+ matcher: e,+ reducer: t+ }), s;+ },+ exposeAction(e, t) {+ return o.actionCreators[e] = t, s;+ },+ exposeCaseReducer(e, t) {+ return o.sliceCaseReducersByName[e] = t, s;+ }+ };+ a.forEach((r) => {+ let a = i[r], o = {+ reducerName: r,+ type: YTe(n, r),+ createNotation: typeof e.reducers == "function"+ };+ eEe(a) ? nEe(o, a, s, t) : $Te(o, a, s);+ });+ function c() {+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? jW(e.extraReducers) : [e.extraReducers], i = {+ ...t,+ ...o.sliceCaseReducersByType+ };+ return GTe(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);+ r && e.addDefaultCase(r);+ });+ }+ let l = (e) => e, u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new WeakMap(), f;+ function p(e, t) {+ return f ||= c(), f(e, t);+ }+ function m() {+ return f ||= c(), f.getInitialState();+ }+ function h(t, n = !1) {+ function r(e) {+ let i = e[t];+ return i === void 0 && n && (i = EW(d, r, m)), i;+ }+ function i(t = l) {+ return EW(EW(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {+ let r = {};+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = ZTe(a, t, () => EW(d, t, m), n);+ return r;+ });+ }+ return {+ reducerPath: t,+ getSelectors: i,+ get selectors() {+ return i(r);+ },+ selectSlice: r+ };+ }+ let g = {+ name: n,+ reducer: p,+ actions: o.actionCreators,+ caseReducers: o.sliceCaseReducersByName,+ getInitialState: m,+ ...h(r),+ injectInto(e, { reducerPath: t, ...n } = {}) {+ let i = t ?? r;+ return e.inject({+ reducerPath: i,+ reducer: p+ }, n), {+ ...g,+ ...h(i, !0)+ };+ }+ };+ return g;+ };+}+function ZTe(e, t, n, r) {+ function i(i, ...a) {+ let o = t(i);+ return o === void 0 && r && (o = n()), e(o, ...a);}- function p() {- a && (a = !1, d());+ return i.unwrapped = e, i;+}+var MW = /* @__PURE__ */ XTe();+function QTe() {+ function e(e, t) {+ return {+ _reducerDefinitionType: "asyncThunk",+ payloadCreator: e,+ ...t+ };}- let m = {- addNestedSub: o,- notifyNestedSubs: s,- handleChangeWrapper: c,- isSubscribed: l,- trySubscribe: f,- tryUnsubscribe: p,- getListeners: () => r+ return e.withTypes = () => e, {+ reducer(e) {+ return Object.assign({ [e.name](...t) {+ return e(...t);+ } }[e.name], { _reducerDefinitionType: "reducer" });+ },+ preparedReducer(e, t) {+ return {+ _reducerDefinitionType: "reducerWithPrepare",+ prepare: e,+ reducer: t+ };+ },+ asyncThunk: e};- return m;}-var nEe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, rEe = typeof navigator < "u" && navigator.product === "ReactNative", iEe = nEe || rEe ? B.useLayoutEffect : B.useEffect;-function MG(e, t) {- return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;+function $Te({ type: e, reducerName: t, createNotation: n }, r, i) {+ let a, o;+ if ("reducer" in r) {+ if (n && !tEe(r)) throw Error(iG(17));+ a = r.reducer, o = r.prepare;+ } else a = r;+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? CW(e, o) : CW(e));}-function aEe(e, t) {- if (MG(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]) || !MG(e[n[r]], t[n[r]])) return !1;- return !0;+function eEe(e) {+ return e._reducerDefinitionType === "asyncThunk";}-var oEe = /* @__PURE__ */ Symbol.for("react-redux-context"), sEe = typeof globalThis < "u" ? globalThis : {};-function cEe() {- if (!B.createContext) return {};- let e = sEe[oEe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);- return t || (t = B.createContext(null), e.set(B.createContext, t)), t;+function tEe(e) {+ return e._reducerDefinitionType === "reducerWithPrepare";}-var lEe = /* @__PURE__ */ cEe();-function uEe(e) {- let { children: t, context: n, serverState: r, store: i } = e, a = B.useMemo(() => {- let e = tEe(i);+function nEe({ type: e, reducerName: t }, n, r, i) {+ if (!i) throw Error(iG(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 || NW,+ pending: s || NW,+ rejected: c || NW,+ settled: l || NW+ });+}+function NW() {}+var rEe = "task", PW = "listener", FW = "completed", IW = "cancelled", iEe = `task-${IW}`, aEe = `task-${FW}`, LW = `${PW}-${IW}`, oEe = `${PW}-${FW}`, RW = class {+ constructor(e) {+ this.code = e, this.message = `${rEe} ${IW} (reason: ${e})`;+ }+ code;+ name = "TaskAbortError";+ message;+}, zW = (e, t) => {+ if (typeof e != "function") throw TypeError(iG(32));+}, BW = () => {}, VW = (e, t = BW) => (e.catch(t), e), HW = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), UW = (e) => {+ if (e.aborted) throw new RW(e.reason);+};+function WW(e, t) {+ let n = BW;+ return new Promise((r, i) => {+ let a = () => i(new RW(e.reason));+ if (e.aborted) {+ a();+ return;+ }+ n = HW(e, a), t.finally(() => n()).then(r, i);+ }).finally(() => {+ n = BW;+ });+}+var sEe = async (e, t) => {+ try {+ return await Promise.resolve(), {+ status: "ok",+ value: await e()+ };+ } catch (e) {return {- store: i,- subscription: e,- getServerState: r ? () => r : void 0+ status: e instanceof RW ? "cancelled" : "rejected",+ error: e};- }, [i, r]), o = B.useMemo(() => i.getState(), [i]);- iEe(() => {- let { subscription: e } = a;- return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {- e.tryUnsubscribe(), e.onStateChange = void 0;+ } finally {+ t?.();+ }+}, GW = (e) => (t) => VW(WW(e, t).then((t) => (UW(e), t))), KW = (e) => {+ let t = GW(e);+ return (e) => t(new Promise((t) => setTimeout(t, e)));+}, { assign: qW } = Object, JW = {}, YW = "listenerMiddleware", cEe = (e, t) => {+ let n = (t) => HW(e, () => t.abort(e.reason));+ return (r, i) => {+ zW(r, "taskExecutor");+ let a = new AbortController();+ n(a);+ let o = sEe(async () => {+ UW(e), UW(a.signal);+ let t = await r({+ pause: GW(a.signal),+ delay: KW(a.signal),+ signal: a.signal+ });+ return UW(a.signal), t;+ }, () => a.abort(aEe));+ return i?.autoJoin && t.push(o.catch(BW)), {+ result: GW(e)(o),+ cancel() {+ a.abort(iEe);+ }};- }, [a, o]);- let s = n || lEe;- return /* @__PURE__ */ B.createElement(s.Provider, { value: a }, t);-}-var dEe = uEe, fEe = /* @__PURE__ */ new Set([- "axisLine",- "tickLine",- "activeBar",- "activeDot",- "activeLabel",- "activeShape",- "allowEscapeViewBox",- "background",- "cursor",- "dot",- "label",- "line",- "margin",- "padding",- "position",- "shape",- "style",- "tick",- "wrapperStyle",- "radius",- "throttledEvents"-]);-function pEe(e, t) {- return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;-}-function NG(e, t) {- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (fEe.has(n)) {- if (e[n] == null && t[n] == null) continue;- if (!aEe(e[n], t[n])) return !1;- } else if (!pEe(e[n], t[n])) return !1;- return !0;+ };+}, lEe = (e, t) => {+ let n = async (n, r) => {+ UW(t);+ let i = () => {}, a = [new Promise((t, r) => {+ let a = e({+ predicate: n,+ effect: (e, n) => {+ n.unsubscribe(), t([+ e,+ n.getState(),+ n.getOriginalState()+ ]);+ }+ });+ i = () => {+ a(), r();+ };+ })];+ r != null && a.push(new Promise((e) => setTimeout(e, r, null)));+ try {+ let e = await WW(t, Promise.race(a));+ return UW(t), e;+ } finally {+ i();+ }+ };+ return ((e, t) => VW(n(e, t)));+}, XW = (e) => {+ let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;+ if (t) i = CW(t).match;+ else if (n) t = n.type, i = n.match;+ else if (r) i = r;+ else if (!i) throw Error(iG(21));+ return zW(a, "options.listener"), {+ predicate: i,+ type: t,+ effect: a+ };+}, ZW = /* @__PURE__ */ qW((e) => {+ let { type: t, predicate: n, effect: r } = XW(e);+ return {+ id: qTe(),+ effect: r,+ type: t,+ predicate: n,+ pending: /* @__PURE__ */ new Set(),+ unsubscribe: () => {+ throw Error(iG(22));+ }+ };+}, { withTypes: () => ZW }), QW = (e, t) => {+ let { type: n, effect: r, predicate: i } = XW(t);+ return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);+}, $W = (e) => {+ e.pending.forEach((e) => {+ e.abort(LW);+ });+}, uEe = (e, t) => () => {+ for (let e of t.keys()) $W(e);+ e.clear();+}, eG = (e, t, n) => {+ try {+ e(t, n);+ } catch (e) {+ setTimeout(() => {+ throw e;+ }, 0);+ }+}, tG = /* @__PURE__ */ qW(/* @__PURE__ */ CW(`${YW}/add`), { withTypes: () => tG }), dEe = /* @__PURE__ */ CW(`${YW}/removeAll`), nG = /* @__PURE__ */ qW(/* @__PURE__ */ CW(`${YW}/remove`), { withTypes: () => nG }), fEe = (...e) => {+ console.error(`${YW}/error`, ...e);+}, rG = (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 = fEe } = e;+ zW(o, "onError");+ let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {+ e.unsubscribe(), t?.cancelActive && $W(e);+ }), c = ((e) => {+ let n = QW(t, e) ?? ZW(e);+ return s(n);+ });+ qW(c, { withTypes: () => c });+ let l = (e) => {+ let n = QW(t, e);+ return n && (n.unsubscribe(), e.cancelActive && $W(n)), !!n;+ };+ qW(l, { withTypes: () => l });+ let u = async (e, n, s, l) => {+ let u = new AbortController(), d = lEe(c, u.signal), f = [];+ try {+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, qW({}, s, {+ getOriginalState: l,+ condition: (e, t) => d(e, t).then(Boolean),+ take: d,+ delay: KW(u.signal),+ pause: GW(u.signal),+ extra: a,+ signal: u.signal,+ fork: cEe(u.signal, f),+ unsubscribe: e.unsubscribe,+ subscribe: () => {+ t.set(e.id, e);+ },+ cancelActiveListeners: () => {+ e.pending.forEach((e, t, n) => {+ e !== u && (e.abort(LW), n.delete(e));+ });+ },+ cancel: () => {+ u.abort(LW), e.pending.delete(u);+ },+ throwIfCancelled: () => {+ UW(u.signal);+ }+ })));+ } catch (e) {+ e instanceof RW || eG(o, e, { raisedBy: "effect" });+ } finally {+ await Promise.all(f), u.abort(oEe), i(e), e.pending.delete(u);+ }+ }, d = uEe(t, n);+ return {+ middleware: (e) => (n) => (r) => {+ if (!pU(r)) return n(r);+ if (tG.match(r)) return c(r.payload);+ if (dEe.match(r)) {+ d();+ return;+ }+ if (nG.match(r)) return l(r.payload);+ let i = e.getState(), a = () => {+ if (i === JW) throw Error(iG(23));+ return i;+ }, s;+ try {+ if (s = n(r), t.size > 0) {+ let n = e.getState(), s = Array.from(t.values());+ for (let t of s) {+ let s = !1;+ try {+ s = t.predicate(r, n, i);+ } catch (e) {+ s = !1, eG(o, e, { raisedBy: "predicate" });+ }+ s && u(t, r, e, a);+ }+ }+ } finally {+ i = JW;+ }+ return s;+ },+ startListening: c,+ stopListening: l,+ clearListeners: d+ };+};+function iG(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/component/Legend.js-var mEe = ["contextPayload"];-function PG() {- return PG = 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]);+//#region node_modules/recharts/es6/state/layoutSlice.js+var aG = MW({+ name: "chartLayout",+ initialState: {+ layoutType: "horizontal",+ width: 0,+ height: 0,+ margin: {+ top: 5,+ right: 5,+ bottom: 5,+ left: 5+ },+ scale: 1+ },+ reducers: {+ setLayout(e, t) {+ e.layoutType = t.payload;+ },+ setChartSize(e, t) {+ e.width = t.payload.width, e.height = t.payload.height;+ },+ setMargin(e, t) {+ e.margin.top = t.payload.top ?? 0, e.margin.right = t.payload.right ?? 0, e.margin.bottom = t.payload.bottom ?? 0, e.margin.left = t.payload.left ?? 0;+ },+ setScale(e, t) {+ e.scale = t.payload;}- return e;- }, PG.apply(null, arguments);+ }+}), { setMargin: pEe, setLayout: mEe, setChartSize: hEe, setScale: gEe } = aG.actions, _Ee = aG.reducer;+//#endregion+//#region node_modules/recharts/es6/util/getSliced.js+function oG(e, t, n) {+ return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;}-function FG(e, t) {+//#endregion+//#region node_modules/recharts/es6/util/isWellBehavedNumber.js+function sG(e) {+ return Number.isFinite(e);+}+function cG(e) {+ return typeof e == "number" && e > 0 && Number.isFinite(e);+}+//#endregion+//#region node_modules/recharts/es6/util/ChartUtils.js+function lG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -58334,30 +59910,30 @@ function FG(e, t) {}return n;}-function IG(e) {+function uG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? FG(Object(n), !0).forEach(function(t) {- hEe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FG(Object(n)).forEach(function(t) {+ t % 2 ? lG(Object(n), !0).forEach(function(t) {+ vEe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function hEe(e, t, n) {- return (t = gEe(t)) in e ? Object.defineProperty(e, t, {+function vEe(e, t, n) {+ return (t = yEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function gEe(e) {- var t = _Ee(e, "string");+function yEe(e) {+ var t = bEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function _Ee(e, t) {+function bEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58367,104 +59943,178 @@ function _Ee(e, t) {}return (t === "string" ? String : Number)(e);}-function vEe(e, t) {- if (e == null) return {};- var n, r, i = yEe(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 dG(e, t, n) {+ return sH(e) || sH(t) ? n : tH(t) ? YV(e, t, n) : typeof t == "function" ? t(e) : n;}-function yEe(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];+var xEe = (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 uG(uG({}, e), {}, { [a]: e[a] + (r || 0) });+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return uG(uG({}, e), {}, { [o]: e[o] + (i || 0) });}- return n;-}-function bEe(e) {- return e.value;-}-function xEe(e) {- var { contextPayload: t } = e, n = vEe(e, mEe), r = DV(t, e.payloadUniqBy, bEe), 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(GSe, i);-}-function SEe(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);-}-function CEe(e) {- var t = kV();- return (0, B.useEffect)(() => {- t(XTe(e));- }, [t, e]), null;-}-function wEe(e) {- var t = kV();- return (0, B.useEffect)(() => (t(DG(e)), () => {- t(DG({- width: 0,- height: 0- }));- }), [t, e]), null;+ return e;+}, fG = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", pG = (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;+}, mG = (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 ? QV(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 sG(i) ? {+ coordinate: i + h,+ value: e,+ offset: h,+ index: t+ } : null;+ }).filter(lH) : c && l ? l.map((e, t) => {+ var n = o.map(e);+ return sG(n) ? {+ coordinate: n + h,+ value: e,+ index: t,+ offset: h+ } : null;+ }).filter(lH) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {+ var n = o.map(e);+ return sG(n) ? {+ coordinate: n + h,+ value: e,+ index: t,+ offset: h+ } : null;+ }).filter(lH) : o.domain().map((e, t) => {+ var n = o.map(e);+ return sG(n) ? {+ coordinate: n + h,+ value: r ? r[e] : e,+ index: t,+ offset: h+ } : null;+ }).filter(lH);+}, hG = (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;+}, SEe = {+ sign: (e) => {+ var t = e.length;+ if (!(t <= 0)) {+ var n = e[0]?.length;+ 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 = $V(c) ? l : c;+ u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);+ }+ }+ }+ },+ expand: NCe,+ none: VV,+ silhouette: PCe,+ wiggle: FCe,+ positive: (e) => {+ var t = e.length;+ if (!(t <= 0)) {+ var n = e[0]?.length;+ 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 = $V(o[1]) ? o[0] : o[1];+ s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);+ }+ }+ }+ }+}, CEe = (e, t, n) => {+ var r = SEe[n] ?? VV, i = MCe().keys(t).value((e, t) => Number(dG(e, t, 0))).order(HV).offset(r)(e);+ return i.forEach((n, r) => {+ n.forEach((n, i) => {+ var a = dG(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 gG(e) {+ return e == null ? void 0 : String(e);}-function TEe(e, t, n, r) {- return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;+function _G(e) {+ var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;+ if (t.type === "category") {+ if (!t.allowDuplicatedCategory && t.dataKey && !sH(i[t.dataKey])) {+ var s = oH(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 = dG(i, sH(o) ? t.dataKey : o), l = t.scale.map(c);+ return Z(l) ? l : null;}-var EEe = {- align: "center",- iconSize: 14,- inactiveColor: "#ccc",- itemSorter: "value",- layout: "horizontal",- verticalAlign: "bottom"+var vG = (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 = dG(a, t.dataKey, t.scale.domain()[o]);+ if (sH(s)) return null;+ var c = t.scale.map(s);+ return Z(c) ? c - i / 2 + r : null;+}, yG = (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];+}, wEe = (e) => {+ var t = e.flat(2).filter(Z);+ return [Math.min(...t), Math.max(...t)];+}, TEe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], EEe = (e, t, n) => {+ if (e != null) return TEe(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 = wEe(oG(r, t, n));+ return !sG(i[0]) || !sG(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]));+}, bG = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, xG = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, SG = (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 = tU(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);+ }+ return a === Infinity ? 0 : a;+ }+ return n ? void 0 : 0;};-function DEe(e) {- var t = nV(e, EEe), n = twe(), r = zxe(), i = RTe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = BV([n]), d = MW(), f = NW();- if (d == null || f == null) return null;- var p = d - (i?.left || 0) - (i?.right || 0), m = TEe(t.layout, o, a, p), h = c ? s : IG(IG({- position: "absolute",- width: m?.width || a || "auto",- height: m?.height || o || "auto"- }, SEe(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(CEe, {- layout: t.layout,- align: t.align,- verticalAlign: t.verticalAlign,- itemSorter: t.itemSorter- }), !c && /*#__PURE__*/ B.createElement(wEe, {- width: l.width,- height: l.height- }), /*#__PURE__*/ B.createElement(xEe, PG({}, t, m, {- margin: i,- chartWidth: d,- chartHeight: f,- contextPayload: n- })));- return /*#__PURE__*/ (0, $f.createPortal)(_, g);+function CG(e) {+ var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;+ return uG(uG({}, t), {}, {+ dataKey: n,+ payload: r,+ value: i,+ name: a+ });}-var LG = /*#__PURE__*/ B.memo(DEe, NG);-LG.displayName = "Legend";-//#endregion-//#region node_modules/recharts/es6/component/DefaultTooltipContent.js-function RG() {- return RG = 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;- }, RG.apply(null, arguments);+function wG(e, t) {+ if (e) return String(e);+ if (typeof t == "string") return t;}-function zG(e, t) {+var DEe = (e, t) => {+ if (t === "horizontal") return e.relativeX;+ if (t === "vertical") return e.relativeY;+}, OEe = (e, t) => t === "centric" ? e.angle : e.radius, TG = (e) => e.layout.width, EG = (e) => e.layout.height, kEe = (e) => e.layout.scale, DG = (e) => e.layout.margin, OG = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), kG = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), AEe = "data-recharts-item-index";+//#endregion+//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js+function AG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -58474,30 +60124,30 @@ function zG(e, t) {}return n;}-function BG(e) {+function jG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? zG(Object(n), !0).forEach(function(t) {- OEe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zG(Object(n)).forEach(function(t) {+ t % 2 ? AG(Object(n), !0).forEach(function(t) {+ jEe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function OEe(e, t, n) {- return (t = kEe(t)) in e ? Object.defineProperty(e, t, {+function jEe(e, t, n) {+ return (t = MEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function kEe(e) {- var t = AEe(e, "string");+function MEe(e) {+ var t = NEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function AEe(e, t) {+function NEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58507,263 +60157,171 @@ function AEe(e, t) {}return (t === "string" ? String : Number)(e);}-function jEe(e) {- return Array.isArray(e) && LB(e[0]) && LB(e[1]) ? e.join(" ~ ") : e;-}-var VG = {- separator: " : ",- contentStyle: {- margin: 0,- padding: 10,- backgroundColor: "#fff",- border: "1px solid #ccc",- whiteSpace: "nowrap"- },- itemStyle: {- display: "block",- paddingTop: 4,- paddingBottom: 4,- color: "#000"- },- labelStyle: {},- accessibilityLayer: !1-};-function MEe(e, t) {- return t == null ? e : LV(e, t);-}-var NEe = (e) => {- var { separator: t = VG.separator, contentStyle: n, itemStyle: r, labelStyle: i = VG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = VG.accessibilityLayer } = e, p = () => {- if (a && a.length) {- var e = {- padding: 0,- margin: 0- }, n = MEe(a, s).map((e, n) => {- if (e.type === "none") return null;- var i = e.formatter || o || jEe, { 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 = BG(BG({}, VG.itemStyle), {}, { color: e.color || VG.itemStyle.color }, r);- return /*#__PURE__*/ B.createElement("li", {- className: "recharts-tooltip-item",- key: `tooltip-item-${n}`,- style: f- }, LB(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, LB(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",- style: e- }, n);- }- return null;- }, m = BG(BG({}, VG.contentStyle), n), h = BG({ margin: 0 }, i), g = !UB(u), _ = g ? u : "", v = _h("recharts-default-tooltip", c), y = _h("recharts-tooltip-label", l);- g && d && a != null && (_ = d(u, a));- var b = f ? {- role: "status",- "aria-live": "assertive"- } : {};- return /*#__PURE__*/ B.createElement("div", RG({- className: v,- style: m- }, b), /*#__PURE__*/ B.createElement("p", {- className: y,- style: h- }, /*#__PURE__*/ B.isValidElement(_) ? _ : `${_}`), p());-}, HG = "recharts-tooltip-wrapper", PEe = { visibility: "hidden" };+var PEe = (e) => e.brush.height;function FEe(e) {- var { coordinate: t, translateX: n, translateY: r } = e;- return _h(HG, {- [`${HG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,- [`${HG}-left`]: Z(n) && t && Z(t.x) && n < t.x,- [`${HG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,- [`${HG}-top`]: Z(r) && t && Z(t.y) && r < t.y- });-}-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;- if (t[r]) return o[r] ? u : d;- 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);+ return kG(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);}function IEe(e) {- var { translateX: t, translateY: n, useTranslate3d: r } = e;- return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };+ return kG(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);}function LEe(e) {- var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;- return s.height > 0 && s.width > 0 && n ? (d = UG({- allowEscapeViewBox: t,- coordinate: n,- key: "x",- offset: i,- position: a,- reverseDirection: o,- tooltipDimension: s.width,- viewBox: l,- viewBoxDimension: l.width- }), f = UG({- allowEscapeViewBox: t,- coordinate: n,- key: "y",- offset: r,- position: a,- reverseDirection: o,- tooltipDimension: s.height,- viewBox: l,- viewBoxDimension: l.height- }), u = IEe({- translateX: d,- translateY: f,- useTranslate3d: c- })) : u = PEe, {- cssProperties: u,- cssClasses: FEe({- translateX: d,- translateY: f,- coordinate: n- })+ return OG(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);+}+function REe(e) {+ return OG(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);+}+var MG = $([+ TG,+ EG,+ DG,+ PEe,+ FEe,+ IEe,+ LEe,+ REe,+ nU,+ _Te+], (e, t, n, r, i, a, o, s, c, l) => {+ var u = {+ left: (n.left || 0) + i,+ right: (n.right || 0) + a+ }, d = jG(jG({}, {+ top: (n.top || 0) + o,+ bottom: (n.bottom || 0) + s+ }), u), f = d.bottom;+ d.bottom += r, d = xEe(d, c, l);+ var p = e - d.left - d.right, m = t - d.top - d.bottom;+ return jG(jG({ brushBottom: f }, d), {}, {+ width: Math.max(p, 0),+ height: Math.max(m, 0)+ });+}), zEe = $(MG, (e) => ({+ x: e.left,+ y: e.top,+ width: e.width,+ height: e.height+})), NG = $(TG, EG, (e, t) => ({+ x: 0,+ y: 0,+ width: e,+ height: t+})), BEe = /*#__PURE__*/ (0, B.createContext)(null), PG = () => (0, B.useContext)(BEe) != null, FG = (e) => e.brush, IG = $([+ FG,+ MG,+ DG+], (e, t, n) => ({+ height: e.height,+ x: Z(e.x) ? e.x : t.left,+ y: Z(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),+ width: Z(e.width) ? e.width : t.width+}));+//#endregion+//#region node_modules/es-toolkit/dist/function/debounce.mjs+function VEe(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 = () => {+ s && c(), p();+ }, u = null, d = () => {+ u != null && clearTimeout(u), u = setTimeout(() => {+ u = null, l();+ }, t);+ }, f = () => {+ u !== null && (clearTimeout(u), u = null);+ }, p = () => {+ f(), i = void 0, a = null;+ }, m = () => {+ c();+ }, h = function(...e) {+ if (n?.aborted) return;+ i = this, a = e;+ let t = u == null;+ d(), o && t && c();};+ return h.schedule = d, h.cancel = p, h.flush = m, n?.addEventListener("abort", p, { once: !0 }), h;}-var WG = {- devToolsEnabled: !0,- isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)-};//#endregion-//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js-function GG() {- var [e, t] = (0, B.useState)(() => WG.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 = () => {- t(e.matches);- };- return e.addEventListener("change", n), () => {- e.removeEventListener("change", n);- };- }- }, []), e;+//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs+function HEe(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 = VEe(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);+ };+ return u.cancel = l.cancel, u.flush = () => (l.flush(), s), u;}//#endregion-//#region node_modules/recharts/es6/component/TooltipBoundingBox.js-function KG(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;+//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs+function UEe(e, t = 0, n = {}) {+ let { leading: r = !0, trailing: i = !0 } = n;+ return HEe(e, t, {+ leading: r,+ maxWait: t,+ trailing: i+ });}-function qG(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) {- REe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KG(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });+//#endregion+//#region node_modules/recharts/es6/util/LogUtils.js+var LG = 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.");+ else {+ var r = 0;+ console.warn(t.replace(/%s/g, () => n[r++]));+ }}- return e;-}-function REe(e, t, n) {- return (t = zEe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function zEe(e) {- var t = BEe(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function BEe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");+}, RG = {+ width: "100%",+ height: "100%",+ debounce: 0,+ minWidth: 0,+ initialDimension: {+ width: -1,+ height: -1}- return (t === "string" ? String : Number)(e);-}-function VEe(e) {- if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;-}-function HEe(e) {- var t = GG(), [n, r] = B.useState(() => ({- dismissed: !1,- dismissedAtCoordinate: {- x: 0,- y: 0- }- }));- B.useEffect(() => {- var t = (t) => {- t.key === "Escape" && r({- dismissed: !0,- dismissedAtCoordinate: {- x: e.coordinate?.x ?? 0,- y: e.coordinate?.y ?? 0- }- });- };- 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(qG(qG({}, n), {}, { dismissed: !1 }));- var { cssClasses: i, cssProperties: a } = LEe({- allowEscapeViewBox: e.allowEscapeViewBox,- coordinate: e.coordinate,- offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,- offsetTop: typeof e.offset == "number" ? e.offset : e.offset.y,- position: e.position,- reverseDirection: e.reverseDirection,- tooltipBox: {- height: e.lastBoundingBox.height,- width: e.lastBoundingBox.width- },- useTranslate3d: e.useTranslate3d,- viewBox: e.viewBox- }), o = qG(qG({}, e.hasPortalFromProps ? {} : qG(qG({ transition: VEe({- prefersReducedMotion: t,- isAnimationActive: e.isAnimationActive,- active: e.active,- animationDuration: e.animationDuration,- animationEasing: e.animationEasing- }) }, a), {}, {- pointerEvents: "none",- position: "absolute",- top: 0,- left: 0- })), {}, { visibility: !n.dismissed && e.active && e.hasPayload ? "visible" : "hidden" }, e.wrapperStyle);- return /*#__PURE__*/ B.createElement("div", {- xmlns: "http://www.w3.org/1999/xhtml",- tabIndex: -1,- className: i,- style: o,- ref: e.innerRef- }, e.children);+}, zG = (e, t, n) => {+ var { width: r = RG.width, height: i = RG.height, aspect: a, maxHeight: o } = n, s = eH(r) ? e : Number(r), c = eH(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+ };+}, WEe = {+ width: 0,+ height: 0,+ overflow: "visible"+}, GEe = {+ width: 0,+ overflowX: "visible"+}, KEe = {+ height: 0,+ overflowY: "visible"+}, qEe = {}, JEe = (e) => {+ var { width: t, height: n } = e, r = eH(t), i = eH(n);+ return r && i ? WEe : r ? GEe : i ? KEe : qEe;+};+function YEe(e) {+ var { width: t, height: n, aspect: r } = e, i = t, a = n;+ return i === void 0 && a === void 0 ? (i = RG.width, a = RG.height) : i === void 0 ? i = r && r > 0 ? void 0 : RG.width : a === void 0 && (a = r && r > 0 ? void 0 : RG.height), {+ width: i,+ height: a+ };}-var UEe = /*#__PURE__*/ B.memo(HEe), JG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;//#endregion-//#region node_modules/recharts/es6/shape/Curve.js-function YG() {- return YG = Object.assign ? Object.assign.bind() : function(e) {+//#region node_modules/recharts/es6/component/ResponsiveContainer.js+function BG() {+ return BG = 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;- }, YG.apply(null, arguments);+ }, BG.apply(null, arguments);}-function XG(e, t) {+function VG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -58773,30 +60331,30 @@ function XG(e, t) {}return n;}-function ZG(e) {+function HG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? XG(Object(n), !0).forEach(function(t) {- WEe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : XG(Object(n)).forEach(function(t) {+ t % 2 ? VG(Object(n), !0).forEach(function(t) {+ XEe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function WEe(e, t, n) {- return (t = GEe(t)) in e ? Object.defineProperty(e, t, {+function XEe(e, t, n) {+ return (t = ZEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function GEe(e) {- var t = KEe(e, "string");+function ZEe(e) {+ var t = QEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function KEe(e, t) {+function QEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58806,162 +60364,717 @@ function KEe(e, t) {}return (t === "string" ? String : Number)(e);}-var QG = {- curveBasisClosed: rSe,- curveBasisOpen: iSe,- curveBasis: nSe,- curveBumpX: Hxe,- curveBumpY: Uxe,- curveLinearClosed: aSe,- curveLinear: Jz,- curveMonotoneX: oSe,- curveMonotoneY: sSe,- curveNatural: cSe,- curveStep: lSe,- curveStepAfter: dSe,- curveStepBefore: uSe-}, $G = (e) => UU(e.x) && UU(e.y), eK = (e) => e.base != null && $G(e.base) && $G(e), tK = (e) => e.x, nK = (e) => e.y, qEe = (e, t) => {- if (typeof e == "function") return e;- var n = `curve${WB(e)}`;- if ((n === "curveMonotone" || n === "curveBump") && t) {- var r = QG[`${n}${t === "vertical" ? "Y" : "X"}`];- if (r) return r;- }- return QG[n] || Jz;-}, rK = {- connectNulls: !1,- type: "linear"-}, JEe = (e) => {- var { type: t = rK.type, points: n = [], baseLine: r, layout: i, connectNulls: a = rK.connectNulls } = e, o = qEe(t, i), s = a ? n.filter($G) : n;- if (Array.isArray(r)) {- var c, l = n.map((e, t) => ZG(ZG({}, e), {}, { base: r[t] }));- return c = i === "vertical" ? Qz().y(nK).x1(tK).x0((e) => e.base.x) : Qz().x(tK).y1(nK).y0((e) => e.base.y), c.defined(eK).curve(o)(a ? l.filter(eK) : l);- }- return (i === "vertical" && Z(r) ? Qz().y(nK).x1(tK).x0(r) : Z(r) ? Qz().x(tK).y1(nK).y0(r) : Zz().x(tK).y(nK)).defined($G).curve(o)(s);-}, iK = (e) => {- var { className: t, points: n, path: r, pathRef: i } = e, a = FW();- if ((!n || !n.length) && !r) return null;- var o = {- type: e.type,- points: e.points,- baseLine: e.baseLine,- layout: e.layout || a,- connectNulls: e.connectNulls- }, s = n && n.length ? JEe(o) : r;- return /*#__PURE__*/ B.createElement("path", YG({}, Ez(e), $B(e), {- className: _h("recharts-curve", t),- d: s === null ? void 0 : s,- ref: i- }));-}, YEe = [- "x",- "y",- "top",- "left",- "width",- "height",- "className"-];-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;- }, aK.apply(null, arguments);+var UG = /*#__PURE__*/ (0, B.createContext)(RG.initialDimension);+function $Ee(e) {+ return cG(e.width) && cG(e.height);}-function oK(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;+function WG(e) {+ var { children: t, width: n, height: r } = e, i = (0, B.useMemo)(() => ({+ width: n,+ height: r+ }), [n, r]);+ return $Ee(i) ? /*#__PURE__*/ B.createElement(UG.Provider, { value: i }, t) : null;}-function XEe(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? oK(Object(n), !0).forEach(function(t) {- ZEe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oK(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+var GG = () => (0, B.useContext)(UG), eDe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var { aspect: n, initialDimension: r = RG.initialDimension, width: i, height: a, minWidth: o = RG.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = RG.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,+ containerHeight: r.height+ }), y = (0, B.useCallback)((e, t) => {+ v((n) => {+ var r = Math.round(e), i = Math.round(t);+ return n.containerWidth === r && n.containerHeight === i ? n : {+ containerWidth: r,+ containerHeight: i+ };});- }- return e;-}-function ZEe(e, t, n) {- return (t = QEe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function QEe(e) {- var t = $Ee(e, "string");- return typeof t == "symbol" ? t : t + "";+ }, []);+ (0, B.useEffect)(() => {+ if (h.current == null || typeof ResizeObserver > "u") return uH;+ var e = (e) => {+ var t, n = e[0];+ if (n != null) {+ var { width: r, height: i } = n.contentRect;+ y(r, i), (t = g.current) == null || t.call(g, r, i);+ }+ };+ u > 0 && (e = UEe(e, u, {+ trailing: !0,+ leading: !1+ }));+ var t = new ResizeObserver(e), { width: n, height: r } = h.current.getBoundingClientRect();+ return y(n, r), t.observe(h.current), () => {+ t.disconnect();+ };+ }, [y, u]);+ var { containerWidth: b, containerHeight: x } = _;+ LG(!n || n > 0, "The aspect(%s) must be greater than zero.", n);+ var { calculatedWidth: S, calculatedHeight: C } = zG(b, x, {+ width: i,+ height: a,+ aspect: n,+ maxHeight: c+ });+ return LG(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: _h("recharts-responsive-container", f),+ style: HG(HG({}, m), {}, {+ width: i,+ height: a,+ minWidth: o,+ minHeight: s,+ maxHeight: c+ }),+ ref: h+ }, /*#__PURE__*/ B.createElement("div", { style: JEe({+ width: i,+ height: a+ }) }, /*#__PURE__*/ B.createElement(WG, {+ width: S,+ height: C+ }, l)));+}), KG = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var n = GG();+ if (cG(n.width) && cG(n.height)) return e.children;+ var { width: r, height: i } = YEe({+ width: e.width,+ height: e.height,+ aspect: e.aspect+ }), { calculatedWidth: a, calculatedHeight: o } = zG(void 0, void 0, {+ width: r,+ height: i,+ aspect: e.aspect,+ maxHeight: e.maxHeight+ });+ return Z(a) && Z(o) ? /*#__PURE__*/ B.createElement(WG, {+ width: a,+ height: o+ }, e.children) : /*#__PURE__*/ B.createElement(eDe, BG({}, e, {+ width: r,+ height: i,+ ref: t+ }));+});+//#endregion+//#region node_modules/recharts/es6/context/chartLayoutContext.js+function qG(e) {+ if (e) return {+ x: e.x,+ y: e.y,+ upperWidth: "upperWidth" in e ? e.upperWidth : e.width,+ lowerWidth: "lowerWidth" in e ? e.lowerWidth : e.width,+ width: e.width,+ height: e.height+ };}-function $Ee(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");+var JG = () => {+ var e = PG(), t = Q(zEe), n = Q(IG), r = Q(FG)?.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+ };+}, tDe = {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ width: 0,+ height: 0,+ brushBottom: 0+}, YG = () => Q(MG) ?? tDe, XG = () => Q(TG), ZG = () => Q(EG), nDe = () => Q((e) => e.layout.margin), QG = (e) => e.layout.layoutType, $G = () => Q(QG), eK = () => {+ var e = $G();+ if (e === "horizontal" || e === "vertical") return e;+}, tK = (e) => {+ var t = e.layout.layoutType;+ if (t === "centric" || t === "radial") return t;+}, nK = () => Q(tK), rDe = () => $G() !== void 0, rK = (e) => {+ var t = qH(), n = PG(), { width: r, height: i } = e, a = GG(), o = r, s = i;+ return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, B.useEffect)(() => {+ !n && cG(o) && cG(s) && t(hEe({+ width: o,+ height: s+ }));+ }, [+ t,+ n,+ o,+ s+ ]), null;+}, iK = Symbol.for("immer-nothing"), aK = Symbol.for("immer-draftable"), oK = Symbol.for("immer-state");+function sK(e, ...t) {+ throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);+}+var cK = Object.getPrototypeOf;+function lK(e) {+ return !!e && !!e[oK];+}+function uK(e) {+ return e ? fK(e) || Array.isArray(e) || !!e[aK] || !!e.constructor?.[aK] || _K(e) || vK(e) : !1;+}+var iDe = Object.prototype.constructor.toString(), dK = /* @__PURE__ */ new WeakMap();+function fK(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 = dK.get(n);+ return r === void 0 && (r = Function.toString.call(n), dK.set(n, r)), r === iDe;+}+function pK(e, t, n = !0) {+ mK(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 mK(e) {+ let t = e[oK];+ return t ? t.type_ : Array.isArray(e) ? 1 : _K(e) ? 2 : vK(e) ? 3 : 0;+}+function hK(e, t) {+ return mK(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);+}+function gK(e, t, n) {+ let r = mK(e);+ r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;+}+function aDe(e, t) {+ return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;+}+function _K(e) {+ return e instanceof Map;+}+function vK(e) {+ return e instanceof Set;+}+function yK(e) {+ return e.copy_ || e.base_;+}+function bK(e, t) {+ if (_K(e)) return new Map(e);+ if (vK(e)) return new Set(e);+ if (Array.isArray(e)) return Array.prototype.slice.call(e);+ let n = fK(e);+ if (t === !0 || t === "class_only" && !n) {+ let t = Object.getOwnPropertyDescriptors(e);+ delete t[oK];+ let n = Reflect.ownKeys(t);+ for (let r = 0; r < n.length; r++) {+ let i = n[r], a = t[i];+ a.writable === !1 && (a.writable = !0, a.configurable = !0), (a.get || a.set) && (t[i] = {+ configurable: !0,+ writable: !0,+ enumerable: a.enumerable,+ value: e[i]+ });+ }+ return Object.create(cK(e), t);+ }+ {+ let t = cK(e);+ if (t !== null && n) return { ...e };+ let r = Object.create(t);+ return Object.assign(r, e);}- return (t === "string" ? String : Number)(e);}-function eDe(e, t) {- if (e == null) return {};- var n, r, i = tDe(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]);+function xK(e, t = !1) {+ return CK(e) || lK(e) || !uK(e) ? e : (mK(e) > 1 && Object.defineProperties(e, {+ set: SK,+ add: SK,+ clear: SK,+ delete: SK+ }), Object.freeze(e), t && Object.values(e).forEach((e) => xK(e, !0)), e);+}+function oDe() {+ sK(2);+}+var SK = { value: oDe };+function CK(e) {+ return typeof e != "object" || !e || Object.isFrozen(e);+}+var sDe = {};+function wK(e) {+ let t = sDe[e];+ return t || sK(0, e), t;+}+var TK;+function EK() {+ return TK;+}+function cDe(e, t) {+ return {+ drafts_: [],+ parent_: e,+ immer_: t,+ canAutoFreeze_: !0,+ unfinalizedDrafts_: 0+ };+}+function DK(e, t) {+ t && (wK("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);+}+function OK(e) {+ kK(e), e.drafts_.forEach(lDe), e.drafts_ = null;+}+function kK(e) {+ e === TK && (TK = e.parent_);+}+function AK(e) {+ return TK = cDe(TK, e);+}+function lDe(e) {+ let t = e[oK];+ t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;+}+function jK(e, t) {+ t.unfinalizedDrafts_ = t.drafts_.length;+ let n = t.drafts_[0];+ return e !== void 0 && e !== n ? (n[oK].modified_ && (OK(t), sK(4)), uK(e) && (e = MK(t, e), t.parent_ || PK(t, e)), t.patches_ && wK("Patches").generateReplacementPatches_(n[oK].base_, e, t.patches_, t.inversePatches_)) : e = MK(t, n, []), OK(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === iK ? void 0 : e;+}+function MK(e, t, n) {+ if (CK(t)) return t;+ let r = e.immer_.shouldUseStrictIteration(), i = t[oK];+ if (!i) return pK(t, (r, a) => NK(e, i, t, r, a, n), r), t;+ if (i.scope_ !== e) return t;+ if (!i.modified_) return PK(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), pK(a, (r, a) => NK(e, i, t, r, a, n, o), r), PK(e, t, !1), n && e.patches_ && wK("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);}- return i;+ return i.copy_;}-function tDe(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];+function NK(e, t, n, r, i, a, o) {+ if (i == null || typeof i != "object" && !o) return;+ let s = CK(i);+ if (!(s && !o)) {+ if (lK(i)) {+ let o = MK(e, i, a && t && t.type_ !== 3 && !hK(t.assigned_, r) ? a.concat(r) : void 0);+ if (gK(n, r, o), lK(o)) e.canAutoFreeze_ = !1;+ else return;+ } else o && n.add(i);+ if (uK(i) && !s) {+ if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;+ MK(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (_K(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && PK(e, i);+ }}- return n;}-var nDe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, rDe = (e) => {- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = eDe(e, YEe), l = XEe({- x: t,- y: n,- top: r,- left: i,- width: a,- height: o- }, c);- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", aK({}, Oz(l), {- className: _h("recharts-cross", s),- d: nDe(t, n, a, o, r, i)- }));+function PK(e, t, n = !1) {+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && xK(t, n);+}+function uDe(e, t) {+ let n = Array.isArray(e), r = {+ type_: +!!n,+ scope_: t ? t.scope_ : EK(),+ modified_: !1,+ finalized_: !1,+ assigned_: {},+ parent_: t,+ base_: e,+ draft_: null,+ copy_: null,+ revoke_: null,+ isManual_: !1+ }, i = r, a = FK;+ n && (i = [r], a = IK);+ let { revoke: o, proxy: s } = Proxy.revocable(i, a);+ return r.draft_ = s, r.revoke_ = o, s;+}+var FK = {+ get(e, t) {+ if (t === oK) return e;+ let n = yK(e);+ if (!hK(n, t)) return dDe(e, n, t);+ let r = n[t];+ return e.finalized_ || !uK(r) ? r : r === LK(e.base_, t) ? (BK(e), e.copy_[t] = VK(r, e)) : r;+ },+ has(e, t) {+ return t in yK(e);+ },+ ownKeys(e) {+ return Reflect.ownKeys(yK(e));+ },+ set(e, t, n) {+ let r = RK(yK(e), t);+ if (r?.set) return r.set.call(e.draft_, n), !0;+ if (!e.modified_) {+ let r = LK(yK(e), t), i = r?.[oK];+ if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;+ if (aDe(n, r) && (n !== void 0 || hK(e.base_, t))) return !0;+ BK(e), zK(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 LK(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, BK(e), zK(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;+ },+ getOwnPropertyDescriptor(e, t) {+ let n = yK(e), r = Reflect.getOwnPropertyDescriptor(n, t);+ return r && {+ writable: !0,+ configurable: e.type_ !== 1 || t !== "length",+ enumerable: r.enumerable,+ value: n[t]+ };+ },+ defineProperty() {+ sK(11);+ },+ getPrototypeOf(e) {+ return cK(e.base_);+ },+ setPrototypeOf() {+ sK(12);+ }+}, IK = {};+pK(FK, (e, t) => {+ IK[e] = function() {+ return arguments[0] = arguments[0][0], t.apply(this, arguments);+ };+}), IK.deleteProperty = function(e, t) {+ return IK.set.call(this, e, t, void 0);+}, IK.set = function(e, t, n) {+ return FK.set.call(this, e[0], t, n, e[0]);+};+function LK(e, t) {+ let n = e[oK];+ return (n ? yK(n) : e)[t];+}+function dDe(e, t, n) {+ let r = RK(t, n);+ return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;+}+function RK(e, t) {+ if (!(t in e)) return;+ let n = cK(e);+ for (; n;) {+ let e = Object.getOwnPropertyDescriptor(n, t);+ if (e) return e;+ n = cK(n);+ }+}+function zK(e) {+ e.modified_ || (e.modified_ = !0, e.parent_ && zK(e.parent_));+}+function BK(e) {+ e.copy_ ||= bK(e.base_, e.scope_.immer_.useStrictShallowCopy_);+}+var fDe = class {+ constructor(e) {+ this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {+ if (typeof e == "function" && typeof t != "function") {+ let n = t;+ t = e;+ let r = this;+ return function(e = n, ...i) {+ return r.produce(e, (e) => t.call(this, e, ...i));+ };+ }+ typeof t != "function" && sK(6), n !== void 0 && typeof n != "function" && sK(7);+ let r;+ if (uK(e)) {+ let i = AK(this), a = VK(e, void 0), o = !0;+ try {+ r = t(a), o = !1;+ } finally {+ o ? OK(i) : kK(i);+ }+ return DK(i, n), jK(r, i);+ }+ if (!e || typeof e != "object") {+ if (r = t(e), r === void 0 && (r = e), r === iK && (r = void 0), this.autoFreeze_ && xK(r, !0), n) {+ let t = [], i = [];+ wK("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);+ }+ return r;+ }+ sK(1, e);+ }, this.produceWithPatches = (e, t) => {+ if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));+ let n, r;+ return [+ this.produce(e, t, (e, t) => {+ n = e, r = t;+ }),+ n,+ r+ ];+ }, 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) {+ uK(e) || sK(8), lK(e) && (e = pDe(e));+ let t = AK(this), n = VK(e, void 0);+ return n[oK].isManual_ = !0, kK(t), n;+ }+ finishDraft(e, t) {+ let n = e && e[oK];+ (!n || !n.isManual_) && sK(9);+ let { scope_: r } = n;+ return DK(r, t), jK(void 0, r);+ }+ setAutoFreeze(e) {+ this.autoFreeze_ = e;+ }+ setUseStrictShallowCopy(e) {+ this.useStrictShallowCopy_ = e;+ }+ setUseStrictIteration(e) {+ this.useStrictIteration_ = e;+ }+ shouldUseStrictIteration() {+ return this.useStrictIteration_;+ }+ applyPatches(e, t) {+ let n;+ for (n = t.length - 1; n >= 0; n--) {+ let r = t[n];+ if (r.path.length === 0 && r.op === "replace") {+ e = r.value;+ break;+ }+ }+ n > -1 && (t = t.slice(n + 1));+ let r = wK("Patches").applyPatches_;+ return lK(e) ? r(e, t) : this.produce(e, (e) => r(e, t));+ }};+function VK(e, t) {+ let n = _K(e) ? wK("MapSet").proxyMap_(e, t) : vK(e) ? wK("MapSet").proxySet_(e, t) : uDe(e, t);+ return (t ? t.scope_ : EK()).drafts_.push(n), n;+}+function pDe(e) {+ return lK(e) || sK(10, e), HK(e);+}+function HK(e) {+ if (!uK(e) || CK(e)) return e;+ let t = e[oK], n, r = !0;+ if (t) {+ if (!t.modified_) return t.base_;+ t.finalized_ = !0, n = bK(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();+ } else n = bK(e, !0);+ return pK(n, (e, t) => {+ gK(n, e, HK(t));+ }, r), t && (t.finalized_ = !1), n;+}+new fDe().produce;+function UK(e) {+ return e;+}//#endregion-//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js-function iDe(e, t, n, r) {- var i = r / 2;+//#region node_modules/recharts/es6/state/legendSlice.js+var WK = MW({+ name: "legend",+ initialState: {+ settings: {+ layout: "horizontal",+ align: "center",+ verticalAlign: "middle",+ itemSorter: "value"+ },+ size: {+ width: 0,+ height: 0+ },+ payload: []+ },+ reducers: {+ setLegendSize(e, t) {+ e.size.width = t.payload.width, e.size.height = t.payload.height;+ },+ setLegendSettings(e, t) {+ e.settings.align = t.payload.align, e.settings.layout = t.payload.layout, e.settings.verticalAlign = t.payload.verticalAlign, e.settings.itemSorter = t.payload.itemSorter;+ },+ addLegendPayload: {+ reducer(e, t) {+ e.payload.push(UK(t.payload));+ },+ prepare: OW()+ },+ replaceLegendPayload: {+ reducer(e, t) {+ var { prev: n, next: r } = t.payload, i = yW(e).payload.indexOf(UK(n));+ i > -1 && (e.payload[i] = UK(r));+ },+ prepare: OW()+ },+ removeLegendPayload: {+ reducer(e, t) {+ var n = yW(e).payload.indexOf(UK(t.payload));+ n > -1 && e.payload.splice(n, 1);+ },+ prepare: OW()+ }+ }+}), { setLegendSize: GK, setLegendSettings: mDe, addLegendPayload: KK, replaceLegendPayload: qK, removeLegendPayload: JK } = WK.actions, hDe = WK.reducer, gDe = /* @__PURE__ */ xt(((e) => {+ var t = Ot();+ t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;+}));+(/* @__PURE__ */ xt(((e, t) => {+ t.exports = gDe();+})))();+function _De(e) {+ e();+}+function vDe() {+ let e = null, t = null;return {- stroke: "none",- fill: "#ccc",- x: e === "horizontal" ? t.x - i : n.left + .5,- y: e === "horizontal" ? n.top + .5 : t.y - i,- width: e === "horizontal" ? r : n.width - 1,- height: e === "horizontal" ? n.height - 1 : r+ clear() {+ e = null, t = null;+ },+ notify() {+ _De(() => {+ let t = e;+ for (; t;) t.callback(), t = t.next;+ });+ },+ get() {+ let t = [], n = e;+ for (; n;) t.push(n), n = n.next;+ return t;+ },+ subscribe(n) {+ let r = !0, i = t = {+ callback: n,+ next: null,+ prev: t+ };+ return i.prev ? i.prev.next = i : e = i, function() {+ !r || e === null || (r = !1, i.next ? i.next.prev = i.prev : t = i.prev, i.prev ? i.prev.next = i.next : e = i.next);+ };+ }+ };+}+var YK = {+ notify() {},+ get: () => []+};+function yDe(e, t) {+ let n, r = YK, i = 0, a = !1;+ function o(e) {+ u();+ let t = r.subscribe(e), n = !1;+ return () => {+ n || (n = !0, t(), d());+ };+ }+ function s() {+ r.notify();+ }+ function c() {+ m.onStateChange && m.onStateChange();+ }+ function l() {+ return a;+ }+ function u() {+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = vDe());+ }+ function d() {+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = YK);+ }+ function f() {+ a || (a = !0, u());+ }+ function p() {+ a && (a = !1, d());+ }+ let m = {+ addNestedSub: o,+ notifyNestedSubs: s,+ handleChangeWrapper: c,+ isSubscribed: l,+ trySubscribe: f,+ tryUnsubscribe: p,+ getListeners: () => r};+ return m;+}+var bDe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, xDe = typeof navigator < "u" && navigator.product === "ReactNative", SDe = bDe || xDe ? B.useLayoutEffect : B.useEffect;+function XK(e, t) {+ return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;+}+function CDe(e, t) {+ if (XK(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]) || !XK(e[n[r]], t[n[r]])) return !1;+ return !0;+}+var wDe = /* @__PURE__ */ Symbol.for("react-redux-context"), TDe = typeof globalThis < "u" ? globalThis : {};+function EDe() {+ if (!B.createContext) return {};+ let e = TDe[wDe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);+ return t || (t = B.createContext(null), e.set(B.createContext, t)), t;+}+var DDe = /* @__PURE__ */ EDe();+function ODe(e) {+ let { children: t, context: n, serverState: r, store: i } = e, a = B.useMemo(() => {+ let e = yDe(i);+ return {+ store: i,+ subscription: e,+ getServerState: r ? () => r : void 0+ };+ }, [i, r]), o = B.useMemo(() => i.getState(), [i]);+ SDe(() => {+ 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 || DDe;+ return /* @__PURE__ */ B.createElement(s.Provider, { value: a }, t);+}+var kDe = ODe, ADe = /* @__PURE__ */ new Set([+ "axisLine",+ "tickLine",+ "activeBar",+ "activeDot",+ "activeLabel",+ "activeShape",+ "allowEscapeViewBox",+ "background",+ "cursor",+ "dot",+ "label",+ "line",+ "margin",+ "padding",+ "position",+ "shape",+ "style",+ "tick",+ "wrapperStyle",+ "radius",+ "throttledEvents"+]);+function jDe(e, t) {+ return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;+}+function ZK(e, t) {+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (ADe.has(n)) {+ if (e[n] == null && t[n] == null) continue;+ if (!CDe(e[n], t[n])) return !1;+ } else if (!jDe(e[n], t[n])) return !1;+ return !0;}//#endregion-//#region node_modules/recharts/es6/animation/util.js-function sK(e, t) {+//#region node_modules/recharts/es6/component/Legend.js+var MDe = ["contextPayload"];+function QK() {+ return QK = 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;+ }, QK.apply(null, arguments);+}+function $K(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -58971,30 +61084,30 @@ function sK(e, t) {}return n;}-function cK(e) {+function eq(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? sK(Object(n), !0).forEach(function(t) {- aDe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sK(Object(n)).forEach(function(t) {+ t % 2 ? $K(Object(n), !0).forEach(function(t) {+ NDe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $K(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function aDe(e, t, n) {- return (t = oDe(t)) in e ? Object.defineProperty(e, t, {+function NDe(e, t, n) {+ return (t = PDe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function oDe(e) {- var t = sDe(e, "string");+function PDe(e) {+ var t = FDe(e, "string");return typeof t == "symbol" ? t : t + "";}-function sDe(e, t) {+function FDe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -59004,43 +61117,436 @@ function sDe(e, t) {}return (t === "string" ? String : Number)(e);}-var cDe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), lK = (e, t, n) => e.map((e) => `${cDe(e)} ${t}ms ${n}`).join(","), lDe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), uK = (e, t) => Object.keys(t).reduce((n, r) => cK(cK({}, n), {}, { [r]: e(r, t[r]) }), {});-//#endregion-//#region node_modules/recharts/es6/animation/configUpdate.js-function dK(e, t) {- var n = Object.keys(e);+function IDe(e, t) {+ if (e == null) return {};+ var n, r, i = LDe(e, t);if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }+ 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 LDe(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];+ }return n;}-function fK(e) {+function RDe(e) {+ return e.value;+}+function zDe(e) {+ var { contextPayload: t } = e, n = IDe(e, MDe), r = GH(t, e.payloadUniqBy, RDe), i = eq(eq({}, 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(lwe, i);+}+function BDe(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 }), eq(eq({}, l), u);+}+function VDe(e) {+ var t = qH();+ return (0, B.useEffect)(() => {+ t(mDe(e));+ }, [t, e]), null;+}+function HDe(e) {+ var t = qH();+ return (0, B.useEffect)(() => (t(GK(e)), () => {+ t(GK({+ width: 0,+ height: 0+ }));+ }), [t, e]), null;+}+function UDe(e, t, n, r) {+ return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;+}+var WDe = {+ align: "center",+ iconSize: 14,+ inactiveColor: "#ccc",+ itemSorter: "value",+ layout: "horizontal",+ verticalAlign: "bottom"+};+function GDe(e) {+ var t = bH(e, WDe), n = yTe(), r = ZB(), i = nDe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iU([n]), d = XG(), f = ZG();+ if (d == null || f == null) return null;+ var p = d - (i?.left || 0) - (i?.right || 0), m = UDe(t.layout, o, a, p), h = c ? s : eq(eq({+ position: "absolute",+ width: m?.width || a || "auto",+ height: m?.height || o || "auto"+ }, BDe(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(VDe, {+ layout: t.layout,+ align: t.align,+ verticalAlign: t.verticalAlign,+ itemSorter: t.itemSorter+ }), !c && /*#__PURE__*/ B.createElement(HDe, {+ width: l.width,+ height: l.height+ }), /*#__PURE__*/ B.createElement(zDe, QK({}, t, m, {+ margin: i,+ chartWidth: d,+ chartHeight: f,+ contextPayload: n+ })));+ return /*#__PURE__*/ (0, $f.createPortal)(_, g);+}+var tq = /*#__PURE__*/ B.memo(GDe, ZK);+tq.displayName = "Legend";+//#endregion+//#region node_modules/recharts/es6/component/DefaultTooltipContent.js+function nq() {+ return nq = 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;+ }, nq.apply(null, arguments);+}+function rq(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function iq(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? rq(Object(n), !0).forEach(function(t) {+ KDe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rq(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function KDe(e, t, n) {+ return (t = qDe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function qDe(e) {+ var t = JDe(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function JDe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+function YDe(e) {+ return Array.isArray(e) && tH(e[0]) && tH(e[1]) ? e.join(" ~ ") : e;+}+var aq = {+ separator: " : ",+ contentStyle: {+ margin: 0,+ padding: 10,+ backgroundColor: "#fff",+ border: "1px solid #ccc",+ whiteSpace: "nowrap"+ },+ itemStyle: {+ display: "block",+ paddingTop: 4,+ paddingBottom: 4,+ color: "#000"+ },+ labelStyle: {},+ accessibilityLayer: !1+};+function XDe(e, t) {+ return t == null ? e : tU(e, t);+}+var ZDe = (e) => {+ var { separator: t = aq.separator, contentStyle: n, itemStyle: r, labelStyle: i = aq.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = aq.accessibilityLayer } = e, p = () => {+ if (a && a.length) {+ var e = {+ padding: 0,+ margin: 0+ }, n = XDe(a, s).map((e, n) => {+ if (e.type === "none") return null;+ var i = e.formatter || o || YDe, { 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 = iq(iq({}, aq.itemStyle), {}, { color: e.color || aq.itemStyle.color }, r);+ return /*#__PURE__*/ B.createElement("li", {+ className: "recharts-tooltip-item",+ key: `tooltip-item-${n}`,+ style: f+ }, tH(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, tH(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",+ style: e+ }, n);+ }+ return null;+ }, m = iq(iq({}, aq.contentStyle), n), h = iq({ margin: 0 }, i), g = !sH(u), _ = g ? u : "", v = _h("recharts-default-tooltip", c), y = _h("recharts-tooltip-label", l);+ g && d && a != null && (_ = d(u, a));+ var b = f ? {+ role: "status",+ "aria-live": "assertive"+ } : {};+ return /*#__PURE__*/ B.createElement("div", nq({+ className: v,+ style: m+ }, b), /*#__PURE__*/ B.createElement("p", {+ className: y,+ style: h+ }, /*#__PURE__*/ B.isValidElement(_) ? _ : `${_}`), p());+}, oq = "recharts-tooltip-wrapper", QDe = { visibility: "hidden" };+function $De(e) {+ var { coordinate: t, translateX: n, translateY: r } = e;+ return _h(oq, {+ [`${oq}-right`]: Z(n) && t && Z(t.x) && n >= t.x,+ [`${oq}-left`]: Z(n) && t && Z(t.x) && n < t.x,+ [`${oq}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,+ [`${oq}-top`]: Z(r) && t && Z(t.y) && r < t.y+ });+}+function sq(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;+ if (t[r]) return o[r] ? u : d;+ 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 eOe(e) {+ var { translateX: t, translateY: n, useTranslate3d: r } = e;+ return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };+}+function tOe(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 = sq({+ allowEscapeViewBox: t,+ coordinate: n,+ key: "x",+ offset: i,+ position: a,+ reverseDirection: o,+ tooltipDimension: s.width,+ viewBox: l,+ viewBoxDimension: l.width+ }), f = sq({+ allowEscapeViewBox: t,+ coordinate: n,+ key: "y",+ offset: r,+ position: a,+ reverseDirection: o,+ tooltipDimension: s.height,+ viewBox: l,+ viewBoxDimension: l.height+ }), u = eOe({+ translateX: d,+ translateY: f,+ useTranslate3d: c+ })) : u = QDe, {+ cssProperties: u,+ cssClasses: $De({+ translateX: d,+ translateY: f,+ coordinate: n+ })+ };+}+var cq = {+ devToolsEnabled: !0,+ isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)+};+//#endregion+//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js+function lq() {+ var [e, t] = (0, B.useState)(() => cq.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 = () => {+ t(e.matches);+ };+ return e.addEventListener("change", n), () => {+ e.removeEventListener("change", n);+ };+ }+ }, []), e;+}+//#endregion+//#region node_modules/recharts/es6/component/TooltipBoundingBox.js+function uq(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function dq(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? uq(Object(n), !0).forEach(function(t) {+ nOe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uq(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function nOe(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 rOe(e) {+ var t = iOe(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function iOe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+function aOe(e) {+ if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;+}+function oOe(e) {+ var t = lq(), [n, r] = B.useState(() => ({+ dismissed: !1,+ dismissedAtCoordinate: {+ x: 0,+ y: 0+ }+ }));+ B.useEffect(() => {+ var t = (t) => {+ t.key === "Escape" && r({+ dismissed: !0,+ dismissedAtCoordinate: {+ x: e.coordinate?.x ?? 0,+ y: e.coordinate?.y ?? 0+ }+ });+ };+ 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(dq(dq({}, n), {}, { dismissed: !1 }));+ var { cssClasses: i, cssProperties: a } = tOe({+ allowEscapeViewBox: e.allowEscapeViewBox,+ coordinate: e.coordinate,+ offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,+ offsetTop: typeof e.offset == "number" ? e.offset : e.offset.y,+ position: e.position,+ reverseDirection: e.reverseDirection,+ tooltipBox: {+ height: e.lastBoundingBox.height,+ width: e.lastBoundingBox.width+ },+ useTranslate3d: e.useTranslate3d,+ viewBox: e.viewBox+ }), o = dq(dq({}, e.hasPortalFromProps ? {} : dq(dq({ transition: aOe({+ prefersReducedMotion: t,+ isAnimationActive: e.isAnimationActive,+ active: e.active,+ animationDuration: e.animationDuration,+ animationEasing: e.animationEasing+ }) }, a), {}, {+ pointerEvents: "none",+ position: "absolute",+ top: 0,+ left: 0+ })), {}, { visibility: !n.dismissed && e.active && e.hasPayload ? "visible" : "hidden" }, e.wrapperStyle);+ return /*#__PURE__*/ B.createElement("div", {+ xmlns: "http://www.w3.org/1999/xhtml",+ tabIndex: -1,+ className: i,+ style: o,+ ref: e.innerRef+ }, e.children);+}+var sOe = /*#__PURE__*/ B.memo(oOe), fq = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;+//#endregion+//#region node_modules/recharts/es6/shape/Curve.js+function pq() {+ return pq = 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;+ }, pq.apply(null, arguments);+}+function mq(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function hq(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? dK(Object(n), !0).forEach(function(t) {- uDe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dK(Object(n)).forEach(function(t) {+ t % 2 ? mq(Object(n), !0).forEach(function(t) {+ cOe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mq(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function uDe(e, t, n) {- return (t = dDe(t)) in e ? Object.defineProperty(e, t, {+function cOe(e, t, n) {+ return (t = lOe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function dDe(e) {- var t = fDe(e, "string");+function lOe(e) {+ var t = uOe(e, "string");return typeof t == "symbol" ? t : t + "";}-function fDe(e, t) {+function uOe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -59050,51 +61556,295 @@ function fDe(e, t) {}return (t === "string" ? String : Number)(e);}-var pK = (e, t, n) => e + (t - e) * n, mK = (e) => {+var gq = {+ curveBasisClosed: xCe,+ curveBasisOpen: SCe,+ curveBasis: bCe,+ curveBumpX: oCe,+ curveBumpY: sCe,+ curveLinearClosed: CCe,+ curveLinear: fV,+ curveMonotoneX: wCe,+ curveMonotoneY: TCe,+ curveNatural: ECe,+ curveStep: DCe,+ curveStepAfter: kCe,+ curveStepBefore: OCe+}, _q = (e) => sG(e.x) && sG(e.y), vq = (e) => e.base != null && _q(e.base) && _q(e), yq = (e) => e.x, bq = (e) => e.y, dOe = (e, t) => {+ if (typeof e == "function") return e;+ var n = `curve${cH(e)}`;+ if ((n === "curveMonotone" || n === "curveBump") && t) {+ var r = gq[`${n}${t === "vertical" ? "Y" : "X"}`];+ if (r) return r;+ }+ return gq[n] || fV;+}, xq = {+ connectNulls: !1,+ type: "linear"+}, fOe = (e) => {+ var { type: t = xq.type, points: n = [], baseLine: r, layout: i, connectNulls: a = xq.connectNulls } = e, o = dOe(t, i), s = a ? n.filter(_q) : n;+ if (Array.isArray(r)) {+ var c, l = n.map((e, t) => hq(hq({}, e), {}, { base: r[t] }));+ return c = i === "vertical" ? gV().y(bq).x1(yq).x0((e) => e.base.x) : gV().x(yq).y1(bq).y0((e) => e.base.y), c.defined(vq).curve(o)(a ? l.filter(vq) : l);+ }+ return (i === "vertical" && Z(r) ? gV().y(bq).x1(yq).x0(r) : Z(r) ? gV().x(yq).y1(bq).y0(r) : hV().x(yq).y(bq)).defined(_q).curve(o)(s);+}, Sq = (e) => {+ var { className: t, points: n, path: r, pathRef: i } = e, a = $G();+ if ((!n || !n.length) && !r) return null;+ var o = {+ type: e.type,+ points: e.points,+ baseLine: e.baseLine,+ layout: e.layout || a,+ connectNulls: e.connectNulls+ }, s = n && n.length ? fOe(o) : r;+ return /*#__PURE__*/ B.createElement("path", pq({}, UB(e), _H(e), {+ className: _h("recharts-curve", t),+ d: s === null ? void 0 : s,+ ref: i+ }));+}, pOe = [+ "x",+ "y",+ "top",+ "left",+ "width",+ "height",+ "className"+];+function Cq() {+ return Cq = 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;+ }, Cq.apply(null, arguments);+}+function wq(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function mOe(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? wq(Object(n), !0).forEach(function(t) {+ hOe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wq(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function hOe(e, t, n) {+ return (t = gOe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function gOe(e) {+ var t = _Oe(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function _Oe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+function vOe(e, t) {+ if (e == null) return {};+ var n, r, i = yOe(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 yOe(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];+ }+ return n;+}+var bOe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, xOe = (e) => {+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = vOe(e, pOe), l = mOe({+ x: t,+ y: n,+ top: r,+ left: i,+ width: a,+ height: o+ }, c);+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", Cq({}, GB(l), {+ className: _h("recharts-cross", s),+ d: bOe(t, n, a, o, r, i)+ }));+};+//#endregion+//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js+function SOe(e, t, n, r) {+ var i = r / 2;+ return {+ stroke: "none",+ fill: "#ccc",+ x: e === "horizontal" ? t.x - i : n.left + .5,+ y: e === "horizontal" ? n.top + .5 : t.y - i,+ width: e === "horizontal" ? r : n.width - 1,+ height: e === "horizontal" ? n.height - 1 : r+ };+}+//#endregion+//#region node_modules/recharts/es6/animation/util.js+function Tq(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function Eq(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? Tq(Object(n), !0).forEach(function(t) {+ COe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tq(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function COe(e, t, n) {+ return (t = wOe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function wOe(e) {+ var t = TOe(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function TOe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+var EOe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), Dq = (e, t, n) => e.map((e) => `${EOe(e)} ${t}ms ${n}`).join(","), DOe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), Oq = (e, t) => Object.keys(t).reduce((n, r) => Eq(Eq({}, n), {}, { [r]: e(r, t[r]) }), {});+//#endregion+//#region node_modules/recharts/es6/animation/configUpdate.js+function kq(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function Aq(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? kq(Object(n), !0).forEach(function(t) {+ OOe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kq(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function OOe(e, t, n) {+ return (t = kOe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function kOe(e) {+ var t = AOe(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function AOe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+var jq = (e, t, n) => e + (t - e) * n, Mq = (e) => {var { from: t, to: n } = e;return t !== n;-}, hK = (e, t, n) => {- var r = uK((t, n) => {- if (mK(n)) {+}, Nq = (e, t, n) => {+ var r = Oq((t, n) => {+ if (Mq(n)) {var [r, i] = e(n.from, n.to, n.velocity);- return fK(fK({}, n), {}, {+ return Aq(Aq({}, n), {}, {from: r,velocity: i});}return n;}, t);- return n < 1 ? uK((e, t) => mK(t) && r[e] != null ? fK(fK({}, t), {}, {- velocity: pK(t.velocity, r[e].velocity, n),- from: pK(t.from, r[e].from, n)- }) : t, t) : hK(e, r, n - 1);+ return n < 1 ? Oq((e, t) => Mq(t) && r[e] != null ? Aq(Aq({}, t), {}, {+ velocity: jq(t.velocity, r[e].velocity, n),+ from: jq(t.from, r[e].from, n)+ }) : t, t) : Nq(e, r, n - 1);};-function pDe(e, t, n, r, i, a) {- var o, s = r.reduce((n, r) => fK(fK({}, n), {}, { [r]: {+function jOe(e, t, n, r, i, a) {+ var o, s = r.reduce((n, r) => Aq(Aq({}, n), {}, { [r]: {from: e[r],velocity: 0,to: t[r]- } }), {}), c = () => uK((e, t) => t.from, s), l = () => !Object.values(s).filter(mK).length, u = null, d = (r) => {+ } }), {}), c = () => Oq((e, t) => t.from, s), l = () => !Object.values(s).filter(Mq).length, u = null, d = (r) => {o ||= r;var f = (r - o) / n.dt;- s = hK(n, s, f), i(fK(fK(fK({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));+ s = Nq(n, s, f), i(Aq(Aq(Aq({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));};return () => (u = a.setTimeout(d), () => {var e;(e = u) == null || e();});}-function mDe(e, t, n, r, i, a, o) {+function MOe(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 : fK(fK({}, n), {}, { [r]: [i, a] });+ return i == null || a == null ? n : Aq(Aq({}, n), {}, { [r]: [i, a] });}, {}), l, u = (i) => {l ||= i;- var d = (i - l) / r, f = uK((e, t) => pK(...t, n(d)), c);- if (a(fK(fK(fK({}, e), t), f)), d < 1) s = o.setTimeout(u);+ var d = (i - l) / r, f = Oq((e, t) => jq(...t, n(d)), c);+ if (a(Aq(Aq(Aq({}, e), t), f)), d < 1) s = o.setTimeout(u);else {- var p = uK((e, t) => pK(...t, n(1)), c);- a(fK(fK(fK({}, e), t), p));+ var p = Oq((e, t) => jq(...t, n(1)), c);+ a(Aq(Aq(Aq({}, e), t), p));}};return () => (s = o.setTimeout(u), () => {@@ -59102,15 +61852,15 @@ function mDe(e, t, n, r, i, a, o) {(e = s) == null || e();});}-var hDe = (e, t, n, r, i, a) => {- var o = lDe(e, t);- return n == null ? () => (i(fK(fK({}, e), t)), () => {}) : n.isStepper === !0 ? pDe(e, t, n, o, i, a) : mDe(e, t, n, r, o, i, a);-}, gK = (e, t) => [+var NOe = (e, t, n, r, i, a) => {+ var o = DOe(e, t);+ return n == null ? () => (i(Aq(Aq({}, e), t)), () => {}) : n.isStepper === !0 ? jOe(e, t, n, o, i, a) : MOe(e, t, n, r, o, i, a);+}, Pq = (e, t) => [0,3 * e,3 * t - 6 * e,3 * e - 3 * t + 1-], _K = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), vK = (e, t) => (n) => _K(gK(e, t), n), gDe = (e, t) => (n) => _K([...gK(e, t).map((e, t) => e * t).slice(1), 0], n), _De = (e) => {+], Fq = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), Iq = (e, t) => (n) => Fq(Pq(e, t), n), POe = (e, t) => (n) => Fq([...Pq(e, t).map((e, t) => e * t).slice(1), 0], n), FOe = (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(",");@@ -59122,7 +61872,7 @@ var hDe = (e, t, n, r, i, a) => {i[2],i[3]];-}, vDe = function() {+}, IOe = function() {var e = [...arguments];if (e.length === 1) switch (e[0]) {case "linear": return [@@ -59156,7 +61906,7 @@ var hDe = (e, t, n, r, i, a) => {1];default:- var t = _De(e[0]);+ var t = FOe(e[0]);if (t) return t;}return e.length === 4 ? e : [@@ -59165,8 +61915,8 @@ var hDe = (e, t, n, r, i, a) => {1,1];-}, yDe = (e, t, n, r) => {- var i = vK(e, n), a = vK(t, r), o = gDe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {+}, LOe = (e, t, n, r) => {+ var i = Iq(e, n), a = Iq(t, r), o = POe(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);@@ -59175,29 +61925,29 @@ var hDe = (e, t, n, r, i, a) => {return a(n);};return c.isStepper = !1, c;-}, yK = function() {- return yDe(...vDe(...arguments));-}, bDe = function() {+}, Lq = function() {+ return LOe(...IOe(...arguments));+}, ROe = 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;-}, xDe = (e) => {+}, zOe = (e) => {if (typeof e == "string") switch (e) {case "ease":case "ease-in-out":case "ease-out":case "ease-in":- case "linear": return yK(e);- case "spring": return bDe();- default: if (e.split("(")[0] === "cubic-bezier") return yK(e);+ case "linear": return Lq(e);+ case "spring": return ROe();+ default: if (e.split("(")[0] === "cubic-bezier") return Lq(e);}return typeof e == "function" ? e : null;};//#endregion//#region node_modules/recharts/es6/animation/AnimationManager.js-function SDe(e) {+function BOe(e) {var t, n = () => null, r = !1, i = null, a = (o) => {if (!r) {if (Array.isArray(o)) {@@ -59228,7 +61978,7 @@ function SDe(e) {}//#endregion//#region node_modules/recharts/es6/animation/timeoutController.js-var CDe = class {+var VOe = 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));@@ -59240,14 +61990,14 @@ var CDe = class {};//#endregion//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js-function wDe() {- return SDe(new CDe());+function HOe() {+ return BOe(new VOe());}//#endregion//#region node_modules/recharts/es6/animation/useAnimationManager.js-var TDe = /*#__PURE__*/ (0, B.createContext)(wDe);-function EDe(e, t) {- var n = (0, B.useContext)(TDe);+var UOe = /*#__PURE__*/ (0, B.createContext)(HOe);+function WOe(e, t) {+ var n = (0, B.useContext)(UOe);return (0, B.useMemo)(() => t ?? n(e), [e,t,@@ -59256,7 +62006,7 @@ function EDe(e, t) {}//#endregion//#region node_modules/recharts/es6/animation/JavascriptAnimate.js-var DDe = {+var GOe = {begin: 0,duration: 1e3,easing: "ease",@@ -59264,14 +62014,14 @@ var DDe = {canBegin: !0,onAnimationEnd: () => {},onAnimationStart: () => {}-}, bK = { t: 0 }, xK = { t: 1 };-function SK(e) {- var t = nV(e, DDe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = GG(), d = n === "auto" ? !WG.isSsr && !u : n, f = EDe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? bK : xK), h = (0, B.useRef)(null);+}, Rq = { t: 0 }, zq = { t: 1 };+function Bq(e) {+ var t = bH(e, GOe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = lq(), d = n === "auto" ? !cq.isSsr && !u : n, f = WOe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? Rq : zq), h = (0, B.useRef)(null);return (0, B.useEffect)(() => {- d || m(xK);+ d || m(zq);}, [d]), (0, B.useEffect)(() => {- if (!d || !r) return KB;- var e = hDe(bK, xK, xDe(a), i, m, f.getTimeoutController());+ if (!d || !r) return uH;+ var e = NOe(Rq, zq, zOe(a), i, m, f.getTimeoutController());return f.start([c,o,@@ -59296,14 +62046,14 @@ function SK(e) {}//#endregion//#region node_modules/recharts/es6/util/useAnimationId.js-function CK(e) {- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, B.useRef)(RB(t)), r = (0, B.useRef)(e);- return r.current !== e && (n.current = RB(t), r.current = e), n.current;+function Vq(e) {+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, B.useRef)(nH(t)), r = (0, B.useRef)(e);+ return r.current !== e && (n.current = nH(t), r.current = e), n.current;}//#endregion//#region node_modules/recharts/es6/shape/Rectangle.js-var ODe = ["radius"], kDe = ["radius"], ADe, jDe, MDe, NDe, PDe, FDe, IDe, LDe, RDe, zDe;-function wK(e, t) {+var KOe = ["radius"], qOe = ["radius"], JOe, YOe, XOe, ZOe, QOe, $Oe, eke, tke, nke, rke;+function Hq(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -59313,30 +62063,30 @@ function wK(e, t) {}return n;}-function TK(e) {+function Uq(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) {- BDe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wK(Object(n)).forEach(function(t) {+ t % 2 ? Hq(Object(n), !0).forEach(function(t) {+ ike(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Hq(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function BDe(e, t, n) {- return (t = VDe(t)) in e ? Object.defineProperty(e, t, {+function ike(e, t, n) {+ return (t = ake(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function VDe(e) {- var t = HDe(e, "string");+function ake(e) {+ var t = oke(e, "string");return typeof t == "symbol" ? t : t + "";}-function HDe(e, t) {+function oke(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -59346,25 +62096,25 @@ function HDe(e, t) {}return (t === "string" ? String : Number)(e);}-function EK() {- return EK = Object.assign ? Object.assign.bind() : function(e) {+function Wq() {+ return Wq = 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;- }, EK.apply(null, arguments);+ }, Wq.apply(null, arguments);}-function DK(e, t) {+function Gq(e, t) {if (e == null) return {};- var n, r, i = UDe(e, t);+ var n, r, i = ske(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 UDe(e, t) {+function ske(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -59373,11 +62123,11 @@ function UDe(e, t) {}return n;}-function OK(e, t) {+function Kq(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var kK = (e, t, n, r, i) => {- var a = MB(n), o = MB(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 qq = (e, t, n, r, i) => {+ var a = XV(n), o = XV(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,@@ -59388,44 +62138,44 @@ var kK = (e, t, n, r, i) => {var h = i[p] ?? 0;f[p] = h > s ? s : h;}- d = NB(ADe ||= OK([+ d = ZV(JOe ||= Kq(["M",",",""- ]), e, t + c * f[0]), f[0] > 0 && (d += NB(jDe ||= OK([+ ]), e, t + c * f[0]), f[0] > 0 && (d += ZV(YOe ||= Kq(["A ",",",",0,0,",",",",",""- ]), f[0], f[0], u, e + l * f[0], t)), d += NB(MDe ||= OK([+ ]), f[0], f[0], u, e + l * f[0], t)), d += ZV(XOe ||= Kq(["L ",",",""- ]), e + n - l * f[1], t), f[1] > 0 && (d += NB(NDe ||= OK([+ ]), e + n - l * f[1], t), f[1] > 0 && (d += ZV(ZOe ||= Kq(["A ",",",",0,0,",",\n ",",",""- ]), f[1], f[1], u, e + n, t + c * f[1])), d += NB(PDe ||= OK([+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += ZV(QOe ||= Kq(["L ",",",""- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += NB(FDe ||= OK([+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += ZV($Oe ||= Kq(["A ",",",",0,0,",",\n ",",",""- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += NB(IDe ||= OK([+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += ZV(eke ||= Kq(["L ",",",""- ]), e + l * f[3], t + r), f[3] > 0 && (d += NB(LDe ||= OK([+ ]), e + l * f[3], t + r), f[3] > 0 && (d += ZV(tke ||= Kq(["A ",",",",0,0,",@@ -59435,8 +62185,8 @@ var kK = (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 = NB(RDe ||= OK(/* @__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 = NB(zDe ||= OK([+ d = ZV(nke ||= Kq(/* @__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 = ZV(rke ||= Kq(["M ",","," h ",@@ -59445,7 +62195,7 @@ var kK = (e, t, n, r, i) => {" Z"]), e, t, n, r, -n);return d;-}, AK = {+}, Jq = {x: 0,y: 0,width: 0,@@ -59456,15 +62206,15 @@ var kK = (e, t, n, r, i) => {animationBegin: 0,animationDuration: 1500,animationEasing: "ease"-}, jK = (e) => {- var t = nV(e, AK), n = (0, B.useRef)(null), [r, i] = (0, B.useState)(-1);+}, Yq = (e) => {+ var t = bH(e, Jq), 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 = CK((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 = Vq((0, B.useMemo)(() => ({x: a,y: o,width: s,@@ -59480,19 +62230,19 @@ var kK = (e, t, n, r, i) => {if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;var x = _h("recharts-rectangle", u);if (!h) {- var S = Oz(t), { radius: C } = S, w = DK(S, ODe);- return /*#__PURE__*/ B.createElement("path", EK({}, w, {- x: MB(a),- y: MB(o),- width: MB(s),- height: MB(c),+ var S = GB(t), { radius: C } = S, w = Gq(S, KOe);+ return /*#__PURE__*/ B.createElement("path", Wq({}, w, {+ x: XV(a),+ y: XV(o),+ width: XV(s),+ height: XV(c),radius: typeof l == "number" ? l : void 0,className: x,- d: kK(a, o, s, c, l)+ d: qq(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 = lK(["strokeDasharray"], f, typeof d == "string" ? d : AK.animationEasing);- return /*#__PURE__*/ B.createElement(SK, {+ 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 = Dq(["strokeDasharray"], f, typeof d == "string" ? d : Jq.animationEasing);+ return /*#__PURE__*/ B.createElement(Bq, {animationId: b,key: b,canBegin: r > 0,@@ -59501,24 +62251,24 @@ var kK = (e, t, n, r, i) => {isActive: h,begin: p}, (e) => {- var r = VB(T, s, e), i = VB(E, c, e), u = VB(D, a, e), d = VB(O, o, e);+ var r = aH(T, s, e), i = aH(E, c, e), u = aH(D, a, e), d = aH(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 = Oz(t), { radius: h } = p, b = DK(p, kDe);- return /*#__PURE__*/ B.createElement("path", EK({}, b, {+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = GB(t), { radius: h } = p, b = Gq(p, qOe);+ return /*#__PURE__*/ B.createElement("path", Wq({}, b, {radius: typeof l == "number" ? l : void 0,className: x,- d: kK(u, d, r, i, l),+ d: qq(u, d, r, i, l),ref: n,- style: TK(TK({}, f), t.style)+ style: Uq(Uq({}, f), t.style)}));});};//#endregion//#region node_modules/recharts/es6/util/PolarUtils.js-function MK(e, t) {+function Xq(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -59528,30 +62278,30 @@ function MK(e, t) {}return n;}-function NK(e) {+function Zq(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? MK(Object(n), !0).forEach(function(t) {- WDe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MK(Object(n)).forEach(function(t) {+ t % 2 ? Xq(Object(n), !0).forEach(function(t) {+ cke(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Xq(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function WDe(e, t, n) {- return (t = GDe(t)) in e ? Object.defineProperty(e, t, {+function cke(e, t, n) {+ return (t = lke(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function GDe(e) {- var t = KDe(e, "string");+function lke(e) {+ var t = uke(e, "string");return typeof t == "symbol" ? t : t + "";}-function KDe(e, t) {+function uke(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -59561,10 +62311,10 @@ function KDe(e, t) {}return (t === "string" ? String : Number)(e);}-var PK = Math.PI / 180, FK = (e) => e * Math.PI / 180, qDe = (e) => e * 180 / Math.PI, IK = (e, t, n, r) => ({- x: e + Math.cos(-PK * r) * n,- y: t + Math.sin(-PK * r) * n-}), JDe = function(e, t) {+var Qq = Math.PI / 180, $q = (e) => e * Math.PI / 180, dke = (e) => e * 180 / Math.PI, eJ = (e, t, n, r) => ({+ x: e + Math.cos(-Qq * r) * n,+ y: t + Math.sin(-Qq * r) * n+}), fke = function(e, t) {var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {top: 0,right: 0,@@ -59575,11 +62325,11 @@ var PK = Math.PI / 180, FK = (e) => e * Math.PI / 180, qDe = (e) => e * 180 / MabrushBottom: 0};return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;-}, YDe = (e, t) => {+}, pke = (e, t) => {var { x: n, y: r } = e, { x: i, y: a } = t;return Math.sqrt((n - i) ** 2 + (r - a) ** 2);-}, XDe = (e, t) => {- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = YDe({+}, mke = (e, t) => {+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = pke({x: n,y: r}, {@@ -59593,25 +62343,25 @@ var PK = Math.PI / 180, FK = (e) => e * Math.PI / 180, qDe = (e) => e * 180 / Mavar s = (n - i) / o, c = Math.acos(s);return r > a && (c = 2 * Math.PI - c), {radius: o,- angle: qDe(c),+ angle: dke(c),angleInRadian: c};-}, ZDe = (e) => {+}, hke = (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};-}, QDe = (e, t) => {+}, gke = (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;-}, $De = (e, t) => {- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = XDe({+}, _ke = (e, t) => {+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = mke({x: n,y: r}, t), { innerRadius: o, outerRadius: s } = t;if (i < o || i > s || i === 0) return null;- var { startAngle: c, endAngle: l } = ZDe(t), u = a, d;+ var { startAngle: c, endAngle: l } = hke(t), u = a, d;if (c <= l) {for (; u > l;) u -= 360;for (; u < c;) u += 360;@@ -59621,17 +62371,17 @@ var PK = Math.PI / 180, FK = (e) => e * Math.PI / 180, qDe = (e) => e * 180 / Mafor (; u < l;) u += 360;d = u >= l && u <= c;}- return d ? NK(NK({}, t), {}, {+ return d ? Zq(Zq({}, t), {}, {radius: i,- angle: QDe(u, t)+ angle: gke(u, t)}) : null;};//#endregion//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js-function LK(e) {+function tJ(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: [eJ(t, n, r, i), eJ(t, n, r, a)],cx: t,cy: n,radius: r,@@ -59641,29 +62391,29 @@ function LK(e) {}//#endregion//#region node_modules/recharts/es6/shape/Sector.js-var eOe, tOe, nOe, rOe, iOe, aOe, oOe;-function RK() {- return RK = Object.assign ? Object.assign.bind() : function(e) {+var vke, yke, bke, xke, Ske, Cke, wke;+function nJ() {+ return nJ = 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;- }, RK.apply(null, arguments);+ }, nJ.apply(null, arguments);}-function zK(e, t) {+function rJ(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (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) / PK, 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 Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (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) / Qq, d = c ? i : i + a * u, f = eJ(t, n, l, d), p = eJ(t, n, r, d), m = c ? i - a * u : i;return {center: f,circleTangency: p,- lineTangency: IK(t, n, l * Math.cos(u * PK), m),+ lineTangency: eJ(t, n, l * Math.cos(u * Qq), m),theta: u};-}, VK = (e) => {- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = sOe(a, o), c = a + s, l = IK(t, n, i, a), u = IK(t, n, i, c), d = NB(eOe ||= zK([+}, aJ = (e) => {+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = Tke(a, o), c = a + s, l = eJ(t, n, i, a), u = eJ(t, n, i, c), d = ZV(vke ||= rJ(["M ",",","\n A ",@@ -59675,8 +62425,8 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (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 += NB(tOe ||= zK([+ var f = eJ(t, n, r, a), p = eJ(t, n, r, c);+ d += ZV(yke ||= rJ(["L ",",","\n A ",@@ -59687,14 +62437,14 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>","," Z"]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);- } else d += NB(nOe ||= zK([+ } else d += ZV(bke ||= rJ(["L ",","," Z"]), t, n);return d;-}, cOe = (e) => {- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = PB(l - c), { circleTangency: d, lineTangency: f, theta: p } = BK({+}, Eke = (e) => {+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = QV(l - c), { circleTangency: d, lineTangency: f, theta: p } = iJ({cx: t,cy: n,radius: i,@@ -59702,7 +62452,7 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>sign: u,cornerRadius: a,cornerIsExternal: s- }), { circleTangency: m, lineTangency: h, theta: g } = BK({+ }), { circleTangency: m, lineTangency: h, theta: g } = iJ({cx: t,cy: n,radius: i,@@ -59711,7 +62461,7 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>cornerRadius: a,cornerIsExternal: s}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;- if (_ < 0) return o ? NB(rOe ||= zK([+ if (_ < 0) return o ? ZV(xke ||= rJ(["M ",",","\n a",@@ -59721,7 +62471,7 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>",",",0,0,1,",",0\n "- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : VK({+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : aJ({cx: t,cy: n,innerRadius: r,@@ -59729,7 +62479,7 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>startAngle: c,endAngle: l});- var v = NB(iOe ||= zK([+ var v = ZV(Ske ||= rJ(["M ",",","\n A",@@ -59751,7 +62501,7 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (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 } = BK({+ var { circleTangency: y, lineTangency: b, theta: x } = iJ({cx: t,cy: n,radius: r,@@ -59760,7 +62510,7 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>isExternal: !0,cornerRadius: a,cornerIsExternal: s- }), { circleTangency: S, lineTangency: C, theta: w } = BK({+ }), { circleTangency: S, lineTangency: C, theta: w } = iJ({cx: t,cy: n,radius: r,@@ -59771,7 +62521,7 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (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 += NB(aOe ||= zK([+ v += ZV(Cke ||= rJ(["L",",","\n A",@@ -59792,13 +62542,13 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (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 += NB(oOe ||= zK([+ } else v += ZV(wke ||= rJ(["L",",","Z"]), t, n);return v;-}, lOe = {+}, Dke = {cx: 0,cy: 0,innerRadius: 0,@@ -59808,10 +62558,10 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>cornerRadius: 0,forceCornerRadius: !1,cornerIsExternal: !1-}, HK = (e) => {- var t = nV(e, lOe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;+}, oJ = (e) => {+ var t = bH(e, Dke), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;if (a < i || l === u) return null;- var f = _h("recharts-sector", d), p = a - i, m = zB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? cOe({+ var f = _h("recharts-sector", d), p = a - i, m = rH(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Eke({cx: n,cy: r,innerRadius: i,@@ -59821,7 +62571,7 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>cornerIsExternal: c,startAngle: l,endAngle: u- }) : VK({+ }) : aJ({cx: n,cy: r,innerRadius: i,@@ -59829,14 +62579,14 @@ var sOe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>startAngle: l,endAngle: u});- return /*#__PURE__*/ B.createElement("path", RK({}, Oz(t), {+ return /*#__PURE__*/ B.createElement("path", nJ({}, GB(t), {className: f,d: h}));};//#endregion//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js-function uOe(e, t, n) {+function Oke(e, t, n) {if (e === "horizontal") return [{x: t.x,y: n.top@@ -59851,9 +62601,9 @@ function uOe(e, t, n) {x: n.left + n.width,y: t.y}];- if (QB(t)) {+ if (gH(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 = eJ(r, i, a, s), l = eJ(r, i, o, s);return [{x: c.x,y: c.y@@ -59862,30 +62612,30 @@ function uOe(e, t, n) {y: l.y}];}- return LK(t);+ return tJ(t);}}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs-function dOe(e) {- return OB(e) ? NaN : Number(e);+function kke(e) {+ return KV(e) ? NaN : Number(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs-function UK(e) {- return e ? (e = dOe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;+function sJ(e) {+ return e ? (e = kke(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 WK(e, t, n) {- n && typeof n != "number" && FV(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);+function cJ(e, t, n) {+ n && typeof n != "number" && $H(e, t, n) && (t = n = void 0), e = sJ(e), t === void 0 ? (t = e, e = 0) : t = sJ(t), n = n === void 0 ? e < t ? 1 : -1 : sJ(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 GK = (e) => e.chartData, KK = $([GK], (e) => {+var lJ = (e) => e.chartData, uJ = $([lJ], (e) => {var t = e.chartData == null ? 0 : e.chartData.length - 1;return {chartData: e.chartData,@@ -59893,35 +62643,35 @@ var GK = (e) => e.chartData, KK = $([GK], (e) => {dataEndIndex: t,dataStartIndex: 0};-}), qK = (e, t, n, r) => r ? KK(e) : GK(e), JK = (e, t, n) => n ? KK(e) : GK(e);+}), dJ = (e, t, n, r) => r ? uJ(e) : lJ(e), fJ = (e, t, n) => n ? uJ(e) : lJ(e);//#endregion//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js-function YK(e) {+function pJ(e) {if (Array.isArray(e) && e.length === 2) {var [t, n] = e;- if (UU(t) && UU(n)) return !0;+ if (sG(t) && sG(n)) return !0;}return !1;}-function XK(e, t, n) {+function mJ(e, t, n) {return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];}-function ZK(e, t) {+function hJ(e, t) {if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {var [n, r] = e, i, a;- if (UU(n)) i = n;+ if (sG(n)) i = n;else if (typeof n == "function") return;- if (UU(r)) a = r;+ if (sG(r)) a = r;else if (typeof r == "function") return;var o = [i, a];- if (YK(o)) return o;+ if (pJ(o)) return o;}}-function fOe(e, t, n) {+function Ake(e, t, n) {if (!(!n && t == null)) {if (typeof e == "function" && t != null) try {var r = e(t, n);- if (YK(r)) return XK(r, t, n);+ if (pJ(r)) return mJ(r, t, n);} catch {}if (Array.isArray(e) && e.length === 2) {var [i, a] = e, o, s;@@ -59930,8 +62680,8 @@ function fOe(e, t, n) {else if (typeof i == "function") try {t != null && (o = i(t?.[0]));} catch {}- else if (typeof i == "string" && nW.test(i)) {- var c = nW.exec(i);+ else if (typeof i == "string" && bG.test(i)) {+ var c = bG.exec(i);if (c == null || c[1] == null || t == null) o = void 0;else {var l = +c[1];@@ -59943,8 +62693,8 @@ function fOe(e, t, n) {else if (typeof a == "function") try {t != null && (s = a(t?.[1]));} catch {}- else if (typeof a == "string" && rW.test(a)) {- var u = rW.exec(a);+ else if (typeof a == "string" && xG.test(a)) {+ var u = xG.exec(a);if (u == null || u[1] == null || t == null) s = void 0;else {var d = +u[1];@@ -59952,13 +62702,13 @@ function fOe(e, t, n) {}} else s = t?.[1];var f = [o, s];- if (YK(f)) return t == null ? f : XK(f, t, n);+ if (pJ(f)) return t == null ? f : mJ(f, t, n);}}}//#endregion//#region node_modules/recharts/es6/util/scale/util/arithmetic.js-var QK = /* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {+var gJ = /* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {(function(e) {var n = 1e9, r = {precision: 20,@@ -60334,75 +63084,75 @@ var QK = /* @__PURE__ */ Tt((/* @__PURE__ */ xt(((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 $K(e) {- return e === 0 ? 1 : Math.floor(new QK.default(e).abs().log(10).toNumber()) + 1;+function _J(e) {+ return e === 0 ? 1 : Math.floor(new gJ.default(e).abs().log(10).toNumber()) + 1;}-function eq(e, t, n) {- for (var r = new QK.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;+function vJ(e, t, n) {+ for (var r = new gJ.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 tq = (e) => {+var yJ = (e) => {var [t, n] = e, [r, i] = [t, n];return t > n && ([r, i] = [n, t]), [r, i];-}, nq = (e, t, n) => {- if (e.lte(0)) return new QK.default(0);- var r = $K(e.toNumber()), i = new QK.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new QK.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);- return t ? new QK.default(s.toNumber()) : new QK.default(Math.ceil(s.toNumber()));-}, rq = (e, t, n) => {- if (e.lte(0)) return new QK.default(0);+}, bJ = (e, t, n) => {+ if (e.lte(0)) return new gJ.default(0);+ var r = _J(e.toNumber()), i = new gJ.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new gJ.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);+ return t ? new gJ.default(s.toNumber()) : new gJ.default(Math.ceil(s.toNumber()));+}, xJ = (e, t, n) => {+ if (e.lte(0)) return new gJ.default(0);var r = [1,2,2.5,5- ], i = e.toNumber(), a = Math.floor(new QK.default(i).abs().log(10).toNumber()), o = new QK.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);+ ], i = e.toNumber(), a = Math.floor(new gJ.default(i).abs().log(10).toNumber()), o = new gJ.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 QK.default(10).pow(l));+ c %= r.length, o = o.mul(new gJ.default(10).pow(l));}- var u = r[c] ?? 1, d = new QK.default(u).mul(o);- return t ? d : new QK.default(Math.ceil(d.toNumber()));-}, pOe = (e, t, n) => {- var r = new QK.default(1), i = new QK.default(e);+ var u = r[c] ?? 1, d = new gJ.default(u).mul(o);+ return t ? d : new gJ.default(Math.ceil(d.toNumber()));+}, jke = (e, t, n) => {+ var r = new gJ.default(1), i = new gJ.default(e);if (!i.isint() && n) {var a = Math.abs(e);- a < 1 ? (r = new QK.default(10).pow($K(e) - 1), i = new QK.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new QK.default(Math.floor(e)));- } else e === 0 ? i = new QK.default(Math.floor((t - 1) / 2)) : n || (i = new QK.default(Math.floor(e)));- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new QK.default(c - o).mul(r)).toNumber());+ a < 1 ? (r = new gJ.default(10).pow(_J(e) - 1), i = new gJ.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new gJ.default(Math.floor(e)));+ } else e === 0 ? i = new gJ.default(Math.floor((t - 1) / 2)) : n || (i = new gJ.default(Math.floor(e)));+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new gJ.default(c - o).mul(r)).toNumber());return s;-}, iq = 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] : nq;+}, SJ = 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] : bJ;if (!Number.isFinite((t - e) / (n - 1))) return {- step: new QK.default(0),- tickMin: new QK.default(0),- tickMax: new QK.default(0)- };- var o = a(new QK.default(t).sub(e).div(n - 1), r, i), s;- e <= 0 && t >= 0 ? s = new QK.default(0) : (s = new QK.default(e).add(t).div(2), s = s.sub(new QK.default(s).mod(o)));- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new QK.default(t).sub(s).div(o).toNumber()), u = c + l + 1;- return u > n ? iq(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 gJ.default(0),+ tickMin: new gJ.default(0),+ tickMax: new gJ.default(0)+ };+ var o = a(new gJ.default(t).sub(e).div(n - 1), r, i), s;+ e <= 0 && t >= 0 ? s = new gJ.default(0) : (s = new gJ.default(e).add(t).div(2), s = s.sub(new gJ.default(s).mod(o)));+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new gJ.default(t).sub(s).div(o).toNumber()), u = c + l + 1;+ return u > n ? SJ(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 QK.default(c).mul(o)),- tickMax: s.add(new QK.default(l).mul(o))+ tickMin: s.sub(new gJ.default(c).mul(o)),+ tickMax: s.add(new gJ.default(l).mul(o))});-}, aq = 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] = tq([t, n]);+}, CJ = 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] = yJ([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 pOe(s, r, i);- var { step: u, tickMin: d, tickMax: f } = iq(s, c, o, i, 0, a === "snap125" ? rq : nq), p = eq(d, f.add(new QK.default(.1).mul(u)), u);+ if (s === c) return jke(s, r, i);+ var { step: u, tickMin: d, tickMax: f } = SJ(s, c, o, i, 0, a === "snap125" ? xJ : bJ), p = vJ(d, f.add(new gJ.default(.1).mul(u)), u);return t > n ? p.reverse() : p;-}, oq = 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] = tq([n, r]);+}, wJ = 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] = yJ([n, r]);if (o === -Infinity || s === Infinity) return [n, r];if (o === s) return [o];- var c = a === "snap125" ? rq : nq, l = Math.max(t, 2), u = c(new QK.default(s).sub(o).div(l - 1), i, 0), d = [...eq(new QK.default(o), new QK.default(s), u), s];+ var c = a === "snap125" ? xJ : bJ, l = Math.max(t, 2), u = c(new gJ.default(s).sub(o).div(l - 1), i, 0), d = [...vJ(new gJ.default(o), new gJ.default(s), u), s];return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;-}, sq = (e) => e.rootProps.maxBarSize, cq = (e) => e.rootProps.barGap, lq = (e) => e.rootProps.barCategoryGap, uq = (e) => e.rootProps.barSize, dq = (e) => e.rootProps.stackOffset, fq = (e) => e.rootProps.reverseStackOrder, pq = (e) => e.options.chartName, mq = (e) => e.rootProps.syncId, hq = (e) => e.rootProps.syncMethod, gq = (e) => e.options.eventEmitter, mOe = (e) => e.rootProps.baseValue, _q = {+}, TJ = (e) => e.rootProps.maxBarSize, EJ = (e) => e.rootProps.barGap, DJ = (e) => e.rootProps.barCategoryGap, OJ = (e) => e.rootProps.barSize, kJ = (e) => e.rootProps.stackOffset, AJ = (e) => e.rootProps.reverseStackOrder, jJ = (e) => e.options.chartName, MJ = (e) => e.rootProps.syncId, NJ = (e) => e.rootProps.syncMethod, PJ = (e) => e.options.eventEmitter, Mke = (e) => e.rootProps.baseValue, FJ = {grid: -100,barBackground: -50,area: 100,@@ -60415,7 +63165,7 @@ var tq = (e) => {cursorLine: 1100,activeDot: 1200,label: 2e3-}, vq = {+}, IJ = {allowDecimals: !1,allowDuplicatedCategory: !0,allowDataOverflow: !1,@@ -60436,8 +63186,8 @@ var tq = (e) => {tickLine: !0,tickSize: 8,type: "auto",- zIndex: _q.axis-}, yq = {+ zIndex: FJ.axis+}, LJ = {allowDataOverflow: !1,allowDecimals: !1,allowDuplicatedCategory: !0,@@ -60456,19 +63206,19 @@ var tq = (e) => {tickCount: 5,tickLine: !0,type: "auto",- zIndex: _q.axis-}, bq = (e, t) => {+ zIndex: FJ.axis+}, RJ = (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 xq(e, t, n) {+function zJ(e, t, n) {if (n !== "auto") return n;- if (e != null) return JU(e, t) ? "category" : "number";+ if (e != null) return fG(e, t) ? "category" : "number";}//#endregion//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js-function Sq(e, t) {+function BJ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -60478,30 +63228,30 @@ function Sq(e, t) {}return n;}-function Cq(e) {+function VJ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Sq(Object(n), !0).forEach(function(t) {- hOe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sq(Object(n)).forEach(function(t) {+ t % 2 ? BJ(Object(n), !0).forEach(function(t) {+ Nke(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : BJ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function hOe(e, t, n) {- return (t = gOe(t)) in e ? Object.defineProperty(e, t, {+function Nke(e, t, n) {+ return (t = Pke(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function gOe(e) {- var t = _Oe(e, "string");+function Pke(e) {+ var t = Fke(e, "string");return typeof t == "symbol" ? t : t + "";}-function _Oe(e, t) {+function Fke(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -60511,81 +63261,81 @@ function _Oe(e, t) {}return (t === "string" ? String : Number)(e);}-var wq = {- allowDataOverflow: vq.allowDataOverflow,- allowDecimals: vq.allowDecimals,+var HJ = {+ allowDataOverflow: IJ.allowDataOverflow,+ allowDecimals: IJ.allowDecimals,allowDuplicatedCategory: !1,dataKey: void 0,domain: void 0,- id: vq.angleAxisId,+ id: IJ.angleAxisId,includeHidden: !1,name: void 0,- reversed: vq.reversed,- scale: vq.scale,- tick: vq.tick,+ reversed: IJ.reversed,+ scale: IJ.scale,+ tick: IJ.tick,tickCount: void 0,ticks: void 0,- type: vq.type,+ type: IJ.type,unit: void 0,niceTicks: "auto"-}, Tq = {- allowDataOverflow: yq.allowDataOverflow,- allowDecimals: yq.allowDecimals,- allowDuplicatedCategory: yq.allowDuplicatedCategory,+}, UJ = {+ allowDataOverflow: LJ.allowDataOverflow,+ allowDecimals: LJ.allowDecimals,+ allowDuplicatedCategory: LJ.allowDuplicatedCategory,dataKey: void 0,domain: void 0,- id: yq.radiusAxisId,- includeHidden: yq.includeHidden,+ id: LJ.radiusAxisId,+ includeHidden: LJ.includeHidden,name: void 0,- reversed: yq.reversed,- scale: yq.scale,- tick: yq.tick,- tickCount: yq.tickCount,+ reversed: LJ.reversed,+ scale: LJ.scale,+ tick: LJ.tick,+ tickCount: LJ.tickCount,ticks: void 0,- type: yq.type,+ type: LJ.type,unit: void 0,niceTicks: "auto"-}, Eq = $([(e, t) => {+}, WJ = $([(e, t) => {if (t != null) return e.polarAxis.angleAxis[t];-}, LW], (e, t) => {+}, tK], (e, t) => {if (e != null) return e;- var n = xq(t, "angleAxis", wq.type) ?? "category";- return Cq(Cq({}, wq), {}, { type: n });-}), Dq = $([(e, t) => e.polarAxis.radiusAxis[t], LW], (e, t) => {+ var n = zJ(t, "angleAxis", HJ.type) ?? "category";+ return VJ(VJ({}, HJ), {}, { type: n });+}), GJ = $([(e, t) => e.polarAxis.radiusAxis[t], tK], (e, t) => {if (e != null) return e;- var n = xq(t, "radiusAxis", Tq.type) ?? "category";- return Cq(Cq({}, Tq), {}, { type: n });-}), Oq = (e) => e.polarOptions, kq = $([- sW,- cW,- mW-], JDe), Aq = $([Oq, kq], (e, t) => {- if (e != null) return zB(e.innerRadius, t, 0);-}), jq = $([Oq, kq], (e, t) => {- if (e != null) return zB(e.outerRadius, t, t * .8);-}), Mq = $([Oq], (e) => {+ var n = zJ(t, "radiusAxis", UJ.type) ?? "category";+ return VJ(VJ({}, UJ), {}, { type: n });+}), KJ = (e) => e.polarOptions, qJ = $([+ TG,+ EG,+ MG+], fke), JJ = $([KJ, qJ], (e, t) => {+ if (e != null) return rH(e.innerRadius, t, 0);+}), YJ = $([KJ, qJ], (e, t) => {+ if (e != null) return rH(e.outerRadius, t, t * .8);+}), XJ = $([KJ], (e) => {if (e == null) return [0, 0];var { startAngle: t, endAngle: n } = e;return [t, n];-}), vOe = $([Eq, Mq], bq), Nq = $([- kq,- Aq,- jq+}), Ike = $([WJ, XJ], RJ), ZJ = $([+ qJ,+ JJ,+ YJ], (e, t, n) => {if (e != null && t != null && n != null) return [t, n];-}), yOe = $([Dq, Nq], bq), Pq = $([- PW,- Oq,- Aq,- jq,- sW,- cW+}), Lke = $([GJ, ZJ], RJ), QJ = $([+ QG,+ KJ,+ JJ,+ YJ,+ TG,+ EG], (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: zB(o, i, i / 2),- cy: zB(s, a, a / 2),+ cx: rH(o, i, i / 2),+ cy: rH(s, a, a / 2),innerRadius: n,outerRadius: r,startAngle: c,@@ -60593,22 +63343,22 @@ var wq = {clockWise: !1};}-}), Fq = (e, t) => t, Iq = (e, t, n) => n;+}), $J = (e, t) => t, eY = (e, t, n) => n;//#endregion//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js-function Lq(e) {+function tY(e) {return e?.id;}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js-function Rq(e, t, n) {+function nY(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 = Lq(e);+ var n = tY(e);t.forEach((t, r) => {- var s = a == null || i ? r : String(qU(t, a, null)), c = qU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};+ var s = a == null || i ? r : String(dG(t, a, null)), c = dG(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};Object.assign(l, { [n]: c }), o.set(s, l);});}@@ -60616,18 +63366,18 @@ function Rq(e, t, n) {}//#endregion//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js-function zq(e) {+function rY(e) {return "stackId" in e && e.stackId != null && e.dataKey != null;}//#endregion//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js-var Bq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];+var iY = (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 Vq(e, t) {+function aY(e, t) {return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;}-function bOe(e, t) {+function Rke(e, t) {if (e.length === t.length) {for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;return !0;@@ -60636,13 +63386,13 @@ function bOe(e, t) {}//#endregion//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js-var Hq = (e) => {- var t = PW(e);+var oY = (e) => {+ var t = QG(e);return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";-}, Uq = (e) => e.tooltip.settings.axisId;+}, sY = (e) => e.tooltip.settings.axisId;//#endregion//#region node_modules/recharts/es6/util/scale/RechartsScale.js-function Wq(e) {+function cY(e) {if (e != null) {var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];return {@@ -60683,13 +63433,13 @@ function Wq(e) {}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js-var Gq = (e, t) => {+var lY = (e, t) => {if (t != null) switch (e) {case "linear":- if (!YK(t)) {+ if (!pJ(t)) {for (var n, r, i = 0; i < t.length; i++) {var a = t[i];- UU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));+ sG(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;}@@ -60699,14 +63449,14 @@ var Gq = (e, t) => {};//#endregion//#region node_modules/d3-array/src/ascending.js-function Kq(e, t) {+function uY(e, t) {return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;}//#endregion//#region node_modules/d3-array/src/bisector.js-function qq(e) {+function dY(e) {let t = e, n = e;- e.length === 1 && (t = (t, n) => e(t) - n, n = xOe(e));+ e.length === 1 && (t = (t, n) => e(t) - n, n = zke(e));function r(e, t, r, i) {for (r ??= 0, i ??= e.length; r < i;) {let a = r + i >>> 1;@@ -60732,15 +63482,15 @@ function qq(e) {right: i};}-function xOe(e) {- return (t, n) => Kq(e(t), n);+function zke(e) {+ return (t, n) => uY(e(t), n);}//#endregion//#region node_modules/d3-array/src/number.js-function Jq(e) {+function fY(e) {return e === null ? NaN : +e;}-function* SOe(e, t) {+function* Bke(e, t) {if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);else {let n = -1;@@ -60749,52 +63499,52 @@ function* SOe(e, t) {}//#endregion//#region node_modules/d3-array/src/bisect.js-var Yq = qq(Kq), Xq = Yq.right;-Yq.left, qq(Jq).center;+var pY = dY(uY), mY = pY.right;+pY.left, dY(fY).center;//#endregion//#region node_modules/internmap/src/index.js-var Zq = class extends Map {- constructor(e, t = TOe) {+var hY = class extends Map {+ constructor(e, t = Uke) {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(Qq(this, e));+ return super.get(gY(this, e));}has(e) {- return super.has(Qq(this, e));+ return super.has(gY(this, e));}set(e, t) {- return super.set(COe(this, e), t);+ return super.set(Vke(this, e), t);}delete(e) {- return super.delete(wOe(this, e));+ return super.delete(Hke(this, e));}};-function Qq({ _intern: e, _key: t }, n) {+function gY({ _intern: e, _key: t }, n) {let r = t(n);return e.has(r) ? e.get(r) : n;}-function COe({ _intern: e, _key: t }, n) {+function Vke({ _intern: e, _key: t }, n) {let r = t(n);return e.has(r) ? e.get(r) : (e.set(r, n), n);}-function wOe({ _intern: e, _key: t }, n) {+function Hke({ _intern: e, _key: t }, n) {let r = t(n);return e.has(r) && (n = e.get(n), e.delete(r)), n;}-function TOe(e) {+function Uke(e) {return typeof e == "object" && e ? e.valueOf() : e;}//#endregion//#region node_modules/d3-array/src/ticks.js-var $q = Math.sqrt(50), eJ = Math.sqrt(10), tJ = Math.sqrt(2);-function nJ(e, t, n) {+var _Y = Math.sqrt(50), vY = Math.sqrt(10), yY = Math.sqrt(2);+function bY(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 = rJ(e, t, n)) === 0 || !isFinite(s)) return [];+ if ((r = t < e) && (a = e, e = t, t = a), (s = xY(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;@@ -60805,17 +63555,17 @@ function nJ(e, t, n) {}return r && o.reverse(), o;}-function rJ(e, t, n) {+function xY(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 >= $q ? 10 : a >= eJ ? 5 : a >= tJ ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= $q ? 10 : a >= eJ ? 5 : a >= tJ ? 2 : 1);+ return i >= 0 ? (a >= _Y ? 10 : a >= vY ? 5 : a >= yY ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= _Y ? 10 : a >= vY ? 5 : a >= yY ? 2 : 1);}-function iJ(e, t, n) {+function SY(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 >= $q ? i *= 10 : a >= eJ ? i *= 5 : a >= tJ && (i *= 2), t < e ? -i : i;+ return a >= _Y ? i *= 10 : a >= vY ? i *= 5 : a >= yY && (i *= 2), t < e ? -i : i;}//#endregion//#region node_modules/d3-array/src/max.js-function aJ(e, t) {+function CY(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 {@@ -60826,7 +63576,7 @@ function aJ(e, t) {}//#endregion//#region node_modules/d3-array/src/min.js-function oJ(e, t) {+function wY(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 {@@ -60837,36 +63587,36 @@ function oJ(e, t) {}//#endregion//#region node_modules/d3-array/src/quickselect.js-function sJ(e, t, n = 0, r = e.length - 1, i = Kq) {+function TY(e, t, n = 0, r = e.length - 1, i = uY) {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);- sJ(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);+ TY(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 (cJ(e, n, t), i(e[r], a) > 0 && cJ(e, n, r); o < s;) {- for (cJ(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;+ for (EY(e, n, t), i(e[r], a) > 0 && EY(e, n, r); o < s;) {+ for (EY(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;for (; i(e[s], a) > 0;) --s;}- i(e[n], a) === 0 ? cJ(e, n, s) : (++s, cJ(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);+ i(e[n], a) === 0 ? EY(e, n, s) : (++s, EY(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);}return e;}-function cJ(e, t, n) {+function EY(e, t, n) {let r = e[t];e[t] = e[n], e[n] = r;}//#endregion//#region node_modules/d3-array/src/quantile.js-function EOe(e, t, n) {- if (e = Float64Array.from(SOe(e, n)), r = e.length) {- if ((t = +t) <= 0 || r < 2) return oJ(e);- if (t >= 1) return aJ(e);- var r, i = (r - 1) * t, a = Math.floor(i), o = aJ(sJ(e, a).subarray(0, a + 1));- return o + (oJ(e.subarray(a + 1)) - o) * (i - a);+function Wke(e, t, n) {+ if (e = Float64Array.from(Bke(e, n)), r = e.length) {+ if ((t = +t) <= 0 || r < 2) return wY(e);+ if (t >= 1) return CY(e);+ var r, i = (r - 1) * t, a = Math.floor(i), o = CY(TY(e, a).subarray(0, a + 1));+ return o + (wY(e.subarray(a + 1)) - o) * (i - a);}}-function DOe(e, t, n = Jq) {+function Gke(e, t, n = fY) {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);@@ -60876,14 +63626,14 @@ function DOe(e, t, n = Jq) {}//#endregion//#region node_modules/d3-array/src/range.js-function OOe(e, t, n) {+function Kke(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 lJ(e, t) {+function DY(e, t) {let n = 0;if (t === void 0) for (let t of e) (t = +t) && (n += t);else {@@ -60894,7 +63644,7 @@ function lJ(e, t) {}//#endregion//#region node_modules/d3-scale/src/init.js-function uJ(e, t) {+function OY(e, t) {switch (arguments.length) {case 0: break;case 1:@@ -60904,7 +63654,7 @@ function uJ(e, t) {}return this;}-function dJ(e, t) {+function kY(e, t) {switch (arguments.length) {case 0: break;case 1:@@ -60916,20 +63666,20 @@ function dJ(e, t) {}//#endregion//#region node_modules/d3-scale/src/ordinal.js-var fJ = Symbol("implicit");-function pJ() {- var e = new Zq(), t = [], n = [], r = fJ;+var AY = Symbol("implicit");+function jY() {+ var e = new hY(), t = [], n = [], r = AY;function i(i) {let a = e.get(i);if (a === void 0) {- if (r !== fJ) return r;+ if (r !== AY) 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 Zq();+ t = [], e = new hY();for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);return i;}, i.range = function(e) {@@ -60937,18 +63687,18 @@ function pJ() {}, i.unknown = function(e) {return arguments.length ? (r = e, i) : r;}, i.copy = function() {- return pJ(t, n).unknown(r);- }, uJ.apply(i, arguments), i;+ return jY(t, n).unknown(r);+ }, OY.apply(i, arguments), i;}//#endregion//#region node_modules/d3-scale/src/band.js-function mJ() {- var e = pJ().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;+function MY() {+ var e = jY().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 = OOe(e).map(function(e) {+ var m = Kke(e).map(function(e) {return f + a * e;});return n(d ? m.reverse() : m);@@ -60974,32 +63724,32 @@ function mJ() {}, e.align = function(e) {return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;}, e.copy = function() {- return mJ(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);- }, uJ.apply(d(), arguments);+ return MY(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);+ }, OY.apply(d(), arguments);}-function hJ(e) {+function NY(e) {var t = e.copy;return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {- return hJ(t());+ return NY(t());}, e;}-function kOe() {- return hJ(mJ.apply(null, arguments).paddingInner(1));+function qke() {+ return NY(MY.apply(null, arguments).paddingInner(1));}//#endregion//#region node_modules/d3-color/src/define.js-function gJ(e, t, n) {+function PY(e, t, n) {e.prototype = t.prototype = n, n.constructor = e;}-function _J(e, t) {+function FY(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 vJ() {}-var yJ = .7, bJ = 1 / yJ, xJ = "\\s*([+-]?\\d+)\\s*", SJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", CJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", AOe = /^#([0-9a-f]{3,8})$/, jOe = RegExp(`^rgb\\(${xJ},${xJ},${xJ}\\)$`), MOe = RegExp(`^rgb\\(${CJ},${CJ},${CJ}\\)$`), NOe = RegExp(`^rgba\\(${xJ},${xJ},${xJ},${SJ}\\)$`), POe = RegExp(`^rgba\\(${CJ},${CJ},${CJ},${SJ}\\)$`), FOe = RegExp(`^hsl\\(${SJ},${CJ},${CJ}\\)$`), IOe = RegExp(`^hsla\\(${SJ},${CJ},${CJ},${SJ}\\)$`), wJ = {+function IY() {}+var LY = .7, RY = 1 / LY, zY = "\\s*([+-]?\\d+)\\s*", BY = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", VY = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Jke = /^#([0-9a-f]{3,8})$/, Yke = RegExp(`^rgb\\(${zY},${zY},${zY}\\)$`), Xke = RegExp(`^rgb\\(${VY},${VY},${VY}\\)$`), Zke = RegExp(`^rgba\\(${zY},${zY},${zY},${BY}\\)$`), Qke = RegExp(`^rgba\\(${VY},${VY},${VY},${BY}\\)$`), $ke = RegExp(`^hsl\\(${BY},${VY},${VY}\\)$`), eAe = RegExp(`^hsla\\(${BY},${VY},${VY},${BY}\\)$`), HY = {aliceblue: 15792383,antiquewhite: 16444375,aqua: 65535,@@ -61149,170 +63899,170 @@ var yJ = .7, bJ = 1 / yJ, xJ = "\\s*([+-]?\\d+)\\s*", SJ = "\\s*([+-]?(?:\\d*\\.yellow: 16776960,yellowgreen: 10145074};-gJ(vJ, DJ, {+PY(IY, GY, {copy(e) {return Object.assign(new this.constructor(), this, e);},displayable() {return this.rgb().displayable();},- hex: TJ,- formatHex: TJ,- formatHex8: LOe,- formatHsl: ROe,- formatRgb: EJ,- toString: EJ+ hex: UY,+ formatHex: UY,+ formatHex8: tAe,+ formatHsl: nAe,+ formatRgb: WY,+ toString: WY});-function TJ() {+function UY() {return this.rgb().formatHex();}-function LOe() {+function tAe() {return this.rgb().formatHex8();}-function ROe() {- return RJ(this).formatHsl();+function nAe() {+ return nX(this).formatHsl();}-function EJ() {+function WY() {return this.rgb().formatRgb();}-function DJ(e) {+function GY(e) {var t, n;- return e = (e + "").trim().toLowerCase(), (t = AOe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? OJ(t) : n === 3 ? new jJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? kJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? kJ(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 = jOe.exec(e)) ? new jJ(t[1], t[2], t[3], 1) : (t = MOe.exec(e)) ? new jJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = NOe.exec(e)) ? kJ(t[1], t[2], t[3], t[4]) : (t = POe.exec(e)) ? kJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = FOe.exec(e)) ? LJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = IOe.exec(e)) ? LJ(t[1], t[2] / 100, t[3] / 100, t[4]) : wJ.hasOwnProperty(e) ? OJ(wJ[e]) : e === "transparent" ? new jJ(NaN, NaN, NaN, 0) : null;+ return e = (e + "").trim().toLowerCase(), (t = Jke.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? KY(t) : n === 3 ? new YY(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? qY(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? qY(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 = Yke.exec(e)) ? new YY(t[1], t[2], t[3], 1) : (t = Xke.exec(e)) ? new YY(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Zke.exec(e)) ? qY(t[1], t[2], t[3], t[4]) : (t = Qke.exec(e)) ? qY(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = $ke.exec(e)) ? tX(t[1], t[2] / 100, t[3] / 100, 1) : (t = eAe.exec(e)) ? tX(t[1], t[2] / 100, t[3] / 100, t[4]) : HY.hasOwnProperty(e) ? KY(HY[e]) : e === "transparent" ? new YY(NaN, NaN, NaN, 0) : null;}-function OJ(e) {- return new jJ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);+function KY(e) {+ return new YY(e >> 16 & 255, e >> 8 & 255, e & 255, 1);}-function kJ(e, t, n, r) {- return r <= 0 && (e = t = n = NaN), new jJ(e, t, n, r);+function qY(e, t, n, r) {+ return r <= 0 && (e = t = n = NaN), new YY(e, t, n, r);}-function zOe(e) {- return e instanceof vJ || (e = DJ(e)), e ? (e = e.rgb(), new jJ(e.r, e.g, e.b, e.opacity)) : new jJ();+function rAe(e) {+ return e instanceof IY || (e = GY(e)), e ? (e = e.rgb(), new YY(e.r, e.g, e.b, e.opacity)) : new YY();}-function AJ(e, t, n, r) {- return arguments.length === 1 ? zOe(e) : new jJ(e, t, n, r ?? 1);+function JY(e, t, n, r) {+ return arguments.length === 1 ? rAe(e) : new YY(e, t, n, r ?? 1);}-function jJ(e, t, n, r) {+function YY(e, t, n, r) {this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;}-gJ(jJ, AJ, _J(vJ, {+PY(YY, JY, FY(IY, {brighter(e) {- return e = e == null ? bJ : bJ ** +e, new jJ(this.r * e, this.g * e, this.b * e, this.opacity);+ return e = e == null ? RY : RY ** +e, new YY(this.r * e, this.g * e, this.b * e, this.opacity);},darker(e) {- return e = e == null ? yJ : yJ ** +e, new jJ(this.r * e, this.g * e, this.b * e, this.opacity);+ return e = e == null ? LY : LY ** +e, new YY(this.r * e, this.g * e, this.b * e, this.opacity);},rgb() {return this;},clamp() {- return new jJ(FJ(this.r), FJ(this.g), FJ(this.b), PJ(this.opacity));+ return new YY($Y(this.r), $Y(this.g), $Y(this.b), QY(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: MJ,- formatHex: MJ,- formatHex8: BOe,- formatRgb: NJ,- toString: NJ+ hex: XY,+ formatHex: XY,+ formatHex8: iAe,+ formatRgb: ZY,+ toString: ZY}));-function MJ() {- return `#${IJ(this.r)}${IJ(this.g)}${IJ(this.b)}`;+function XY() {+ return `#${eX(this.r)}${eX(this.g)}${eX(this.b)}`;}-function BOe() {- return `#${IJ(this.r)}${IJ(this.g)}${IJ(this.b)}${IJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;+function iAe() {+ return `#${eX(this.r)}${eX(this.g)}${eX(this.b)}${eX((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;}-function NJ() {- let e = PJ(this.opacity);- return `${e === 1 ? "rgb(" : "rgba("}${FJ(this.r)}, ${FJ(this.g)}, ${FJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;+function ZY() {+ let e = QY(this.opacity);+ return `${e === 1 ? "rgb(" : "rgba("}${$Y(this.r)}, ${$Y(this.g)}, ${$Y(this.b)}${e === 1 ? ")" : `, ${e})`}`;}-function PJ(e) {+function QY(e) {return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));}-function FJ(e) {+function $Y(e) {return Math.max(0, Math.min(255, Math.round(e) || 0));}-function IJ(e) {- return e = FJ(e), (e < 16 ? "0" : "") + e.toString(16);+function eX(e) {+ return e = $Y(e), (e < 16 ? "0" : "") + e.toString(16);}-function LJ(e, t, n, r) {- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new zJ(e, t, n, r);+function tX(e, t, n, r) {+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new rX(e, t, n, r);}-function RJ(e) {- if (e instanceof zJ) return new zJ(e.h, e.s, e.l, e.opacity);- if (e instanceof vJ || (e = DJ(e)), !e) return new zJ();- if (e instanceof zJ) return e;+function nX(e) {+ if (e instanceof rX) return new rX(e.h, e.s, e.l, e.opacity);+ if (e instanceof IY || (e = GY(e)), !e) return new rX();+ if (e instanceof rX) 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 zJ(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 rX(o, s, c, e.opacity);}-function VOe(e, t, n, r) {- return arguments.length === 1 ? RJ(e) : new zJ(e, t, n, r ?? 1);+function aAe(e, t, n, r) {+ return arguments.length === 1 ? nX(e) : new rX(e, t, n, r ?? 1);}-function zJ(e, t, n, r) {+function rX(e, t, n, r) {this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;}-gJ(zJ, VOe, _J(vJ, {+PY(rX, aAe, FY(IY, {brighter(e) {- return e = e == null ? bJ : bJ ** +e, new zJ(this.h, this.s, this.l * e, this.opacity);+ return e = e == null ? RY : RY ** +e, new rX(this.h, this.s, this.l * e, this.opacity);},darker(e) {- return e = e == null ? yJ : yJ ** +e, new zJ(this.h, this.s, this.l * e, this.opacity);+ return e = e == null ? LY : LY ** +e, new rX(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 jJ(HJ(e >= 240 ? e - 240 : e + 120, i, r), HJ(e, i, r), HJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);+ return new YY(oX(e >= 240 ? e - 240 : e + 120, i, r), oX(e, i, r), oX(e < 120 ? e + 240 : e - 120, i, r), this.opacity);},clamp() {- return new zJ(BJ(this.h), VJ(this.s), VJ(this.l), PJ(this.opacity));+ return new rX(iX(this.h), aX(this.s), aX(this.l), QY(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 = PJ(this.opacity);- return `${e === 1 ? "hsl(" : "hsla("}${BJ(this.h)}, ${VJ(this.s) * 100}%, ${VJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;+ let e = QY(this.opacity);+ return `${e === 1 ? "hsl(" : "hsla("}${iX(this.h)}, ${aX(this.s) * 100}%, ${aX(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;}}));-function BJ(e) {+function iX(e) {return e = (e || 0) % 360, e < 0 ? e + 360 : e;}-function VJ(e) {+function aX(e) {return Math.max(0, Math.min(1, e || 0));}-function HJ(e, t, n) {+function oX(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 UJ = (e) => () => e;+var sX = (e) => () => e;//#endregion//#region node_modules/d3-interpolate/src/color.js-function HOe(e, t) {+function oAe(e, t) {return function(n) {return e + n * t;};}-function UOe(e, t, n) {+function sAe(e, t, n) {return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {return (e + r * t) ** +n;};}-function WOe(e) {- return (e = +e) == 1 ? WJ : function(t, n) {- return n - t ? UOe(t, n, e) : UJ(isNaN(t) ? n : t);+function cAe(e) {+ return (e = +e) == 1 ? cX : function(t, n) {+ return n - t ? sAe(t, n, e) : sX(isNaN(t) ? n : t);};}-function WJ(e, t) {+function cX(e, t) {var n = t - e;- return n ? HOe(e, n) : UJ(isNaN(e) ? t : e);+ return n ? oAe(e, n) : sX(isNaN(e) ? t : e);}//#endregion//#region node_modules/d3-interpolate/src/rgb.js-var GJ = (function e(t) {- var n = WOe(t);+var lX = (function e(t) {+ var n = cAe(t);function r(e, t) {- var r = n((e = AJ(e)).r, (t = AJ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = WJ(e.opacity, t.opacity);+ var r = n((e = JY(e)).r, (t = JY(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = cX(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 + "";};@@ -61321,7 +64071,7 @@ var GJ = (function e(t) {})(1);//#endregion//#region node_modules/d3-interpolate/src/numberArray.js-function GOe(e, t) {+function lAe(e, t) {t ||= [];var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;return function(a) {@@ -61329,14 +64079,14 @@ function GOe(e, t) {return r;};}-function KOe(e) {+function uAe(e) {return ArrayBuffer.isView(e) && !(e instanceof DataView);}//#endregion//#region node_modules/d3-interpolate/src/array.js-function qOe(e, t) {+function dAe(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] = YJ(e[o], t[o]);+ for (o = 0; o < r; ++o) i[o] = pX(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);@@ -61345,7 +64095,7 @@ function qOe(e, t) {}//#endregion//#region node_modules/d3-interpolate/src/date.js-function JOe(e, t) {+function fAe(e, t) {var n = /* @__PURE__ */ new Date();return e = +e, t = +t, function(r) {return n.setTime(e * (1 - r) + t * r), n;@@ -61353,16 +64103,16 @@ function JOe(e, t) {}//#endregion//#region node_modules/d3-interpolate/src/number.js-function KJ(e, t) {+function uX(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 YOe(e, t) {+function pAe(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] = YJ(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] = pX(e[i], t[i]) : r[i] = t[i];return function(e) {for (i in n) r[i] = n[i](e);return r;@@ -61370,45 +64120,45 @@ function YOe(e, t) {}//#endregion//#region node_modules/d3-interpolate/src/string.js-var qJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, JJ = new RegExp(qJ.source, "g");-function XOe(e) {+var dX = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, fX = new RegExp(dX.source, "g");+function mAe(e) {return function() {return e;};}-function ZOe(e) {+function hAe(e) {return function(t) {return e(t) + "";};}-function QOe(e, t) {- var n = qJ.lastIndex = JJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];- for (e += "", t += ""; (r = qJ.exec(e)) && (i = JJ.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 gAe(e, t) {+ var n = dX.lastIndex = fX.lastIndex = 0, r, i, a, o = -1, s = [], c = [];+ for (e += "", t += ""; (r = dX.exec(e)) && (i = fX.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: KJ(r, i)- })), n = JJ.lastIndex;- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? ZOe(c[0].x) : XOe(t) : (t = c.length, function(e) {+ x: uX(r, i)+ })), n = fX.lastIndex;+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? hAe(c[0].x) : mAe(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 YJ(e, t) {+function pX(e, t) {var n = typeof t, r;- return t == null || n === "boolean" ? UJ(t) : (n === "number" ? KJ : n === "string" ? (r = DJ(t)) ? (t = r, GJ) : QOe : t instanceof DJ ? GJ : t instanceof Date ? JOe : KOe(t) ? GOe : Array.isArray(t) ? qOe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? YOe : KJ)(e, t);+ return t == null || n === "boolean" ? sX(t) : (n === "number" ? uX : n === "string" ? (r = GY(t)) ? (t = r, lX) : gAe : t instanceof GY ? lX : t instanceof Date ? fAe : uAe(t) ? lAe : Array.isArray(t) ? dAe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? pAe : uX)(e, t);}//#endregion//#region node_modules/d3-interpolate/src/round.js-function XJ(e, t) {+function mX(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 $Oe(e, t) {- t === void 0 && (t = e, e = YJ);+function _Ae(e, t) {+ t === void 0 && (t = e, e = pX);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)));@@ -61417,69 +64167,69 @@ function $Oe(e, t) {}//#endregion//#region node_modules/d3-scale/src/constant.js-function eke(e) {+function vAe(e) {return function() {return e;};}//#endregion//#region node_modules/d3-scale/src/number.js-function ZJ(e) {+function hX(e) {return +e;}//#endregion//#region node_modules/d3-scale/src/continuous.js-var QJ = [0, 1];-function $J(e) {+var gX = [0, 1];+function _X(e) {return e;}-function eY(e, t) {+function vX(e, t) {return (t -= e = +e) ? function(n) {return (n - e) / t;- } : eke(isNaN(t) ? NaN : .5);+ } : vAe(isNaN(t) ? NaN : .5);}-function tke(e, t) {+function yAe(e, t) {var n;return e > t && (n = e, e = t, t = n), function(n) {return Math.max(e, Math.min(t, n));};}-function nke(e, t, n) {+function bAe(e, t, n) {var r = e[0], i = e[1], a = t[0], o = t[1];- return i < r ? (r = eY(i, r), a = n(o, a)) : (r = eY(r, i), a = n(a, o)), function(e) {+ return i < r ? (r = vX(i, r), a = n(o, a)) : (r = vX(r, i), a = n(a, o)), function(e) {return a(r(e));};}-function rke(e, t, n) {+function xAe(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] = eY(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] = vX(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);return function(t) {- var n = Xq(e, t, 1, r) - 1;+ var n = mY(e, t, 1, r) - 1;return a[n](i[n](t));};}-function tY(e, t) {+function yX(e, t) {return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());}-function nY() {- var e = QJ, t = QJ, n = YJ, r, i, a, o = $J, s, c, l;+function bX() {+ var e = gX, t = gX, n = pX, r, i, a, o = _X, s, c, l;function u() {var n = Math.min(e.length, t.length);- return o !== $J && (o = tke(e[0], e[n - 1])), s = n > 2 ? rke : nke, c = l = null, d;+ return o !== _X && (o = yAe(e[0], e[n - 1])), s = n > 2 ? xAe : bAe, 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), KJ))(n)));+ return o(i((l ||= s(t, e.map(r), uX))(n)));}, d.domain = function(t) {- return arguments.length ? (e = Array.from(t, ZJ), u()) : e.slice();+ return arguments.length ? (e = Array.from(t, hX), 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 = XJ, u();+ return t = Array.from(e), n = mX, u();}, d.clamp = function(e) {- return arguments.length ? (o = e ? !0 : $J, u()) : o !== $J;+ return arguments.length ? (o = e ? !0 : _X, u()) : o !== _X;}, d.interpolate = function(e) {return arguments.length ? (n = e, u()) : n;}, d.unknown = function(e) {@@ -61488,27 +64238,27 @@ function nY() {return r = e, i = t, u();};}-function rY() {- return nY()($J, $J);+function xX() {+ return bX()(_X, _X);}//#endregion//#region node_modules/d3-format/src/formatDecimal.js-function ike(e) {+function SAe(e) {return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);}-function iY(e, t) {+function SX(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 aY(e) {- return e = iY(Math.abs(e)), e ? e[1] : NaN;+function CX(e) {+ return e = SX(Math.abs(e)), e ? e[1] : NaN;}//#endregion//#region node_modules/d3-format/src/formatGroup.js-function ake(e, t) {+function CAe(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);@@ -61516,7 +64266,7 @@ function ake(e, t) {}//#endregion//#region node_modules/d3-format/src/formatNumerals.js-function oke(e) {+function wAe(e) {return function(t) {return t.replace(/[0-9]/g, function(t) {return e[+t];@@ -61525,11 +64275,11 @@ function oke(e) {}//#endregion//#region node_modules/d3-format/src/formatSpecifier.js-var ske = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;-function oY(e) {- if (!(t = ske.exec(e))) throw Error("invalid format: " + e);+var TAe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;+function wX(e) {+ if (!(t = TAe.exec(e))) throw Error("invalid format: " + e);var t;- return new sY({+ return new TX({fill: t[1],align: t[2],sign: t[3],@@ -61542,16 +64292,16 @@ function oY(e) {type: t[10]});}-oY.prototype = sY.prototype;-function sY(e) {+wX.prototype = TX.prototype;+function TX(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 + "";}-sY.prototype.toString = function() {+TX.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 cke(e) {+function EAe(e) {out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {case ".":r = i = n;@@ -61567,46 +64317,46 @@ function cke(e) {}//#endregion//#region node_modules/d3-format/src/formatPrefixAuto.js-var cY;-function lke(e, t) {- var n = iY(e, t);- if (!n) return cY = void 0, e.toPrecision(t);- var r = n[0], i = n[1], a = i - (cY = 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") + iY(e, Math.max(0, t + a - 1))[0];+var EX;+function DAe(e, t) {+ var n = SX(e, t);+ if (!n) return EX = void 0, e.toPrecision(t);+ var r = n[0], i = n[1], a = i - (EX = 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") + SX(e, Math.max(0, t + a - 1))[0];}//#endregion//#region node_modules/d3-format/src/formatRounded.js-function lY(e, t) {- var n = iY(e, t);+function DX(e, t) {+ var n = SX(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 uY = {+var OX = {"%": (e, t) => (e * 100).toFixed(t),b: (e) => Math.round(e).toString(2),c: (e) => e + "",- d: ike,+ d: SAe,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) => lY(e * 100, t),- r: lY,- s: lke,+ p: (e, t) => DX(e * 100, t),+ r: DX,+ s: DAe,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 dY(e) {+function kX(e) {return e;}//#endregion//#region node_modules/d3-format/src/locale.js-var fY = Array.prototype.map, pY = [+var AX = Array.prototype.map, jX = ["y","z","a",@@ -61625,13 +64375,13 @@ var fY = Array.prototype.map, pY = ["Z","Y"];-function uke(e) {- var t = e.grouping === void 0 || e.thousands === void 0 ? dY : ake(fY.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 ? dY : oke(fY.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 OAe(e) {+ var t = e.grouping === void 0 || e.thousands === void 0 ? kX : CAe(AX.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 ? kX : wAe(AX.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 = oY(e);+ e = wX(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") : uY[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 = uY[y], C = /[defgprs%]/.test(y);+ y === "n" ? (g = !0, y = "g") : OX[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 = OX[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;@@ -61639,7 +64389,7 @@ function uke(e) {else {e = +e;var w = e < 0 || 1 / e < 0;- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = cke(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && cY !== void 0 ? pY[8 + cY / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = EAe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && EX !== void 0 ? jX[8 + EX / 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;@@ -61667,7 +64417,7 @@ function uke(e) {}, w;}function u(e, t) {- var n = Math.max(-8, Math.min(8, Math.floor(aY(t) / 3))) * 3, r = 10 ** -n, i = l((e = oY(e), e.type = "f", e), { suffix: pY[8 + n / 3] });+ var n = Math.max(-8, Math.min(8, Math.floor(CX(t) / 3))) * 3, r = 10 ** -n, i = l((e = wX(e), e.type = "f", e), { suffix: jX[8 + n / 3] });return function(e) {return i(r * e);};@@ -61679,65 +64429,65 @@ function uke(e) {}//#endregion//#region node_modules/d3-format/src/defaultLocale.js-var mY, hY, gY;-dke({+var MX, NX, PX;+kAe({thousands: ",",grouping: [3],currency: ["$", ""]});-function dke(e) {- return mY = uke(e), hY = mY.format, gY = mY.formatPrefix, mY;+function kAe(e) {+ return MX = OAe(e), NX = MX.format, PX = MX.formatPrefix, MX;}//#endregion//#region node_modules/d3-format/src/precisionFixed.js-function fke(e) {- return Math.max(0, -aY(Math.abs(e)));+function AAe(e) {+ return Math.max(0, -CX(Math.abs(e)));}//#endregion//#region node_modules/d3-format/src/precisionPrefix.js-function pke(e, t) {- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(aY(t) / 3))) * 3 - aY(Math.abs(e)));+function jAe(e, t) {+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(CX(t) / 3))) * 3 - CX(Math.abs(e)));}//#endregion//#region node_modules/d3-format/src/precisionRound.js-function mke(e, t) {- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, aY(t) - aY(e)) + 1;+function MAe(e, t) {+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, CX(t) - CX(e)) + 1;}//#endregion//#region node_modules/d3-scale/src/tickFormat.js-function _Y(e, t, n, r) {- var i = iJ(e, t, n), a;- switch (r = oY(r ?? ",f"), r.type) {+function FX(e, t, n, r) {+ var i = SY(e, t, n), a;+ switch (r = wX(r ?? ",f"), r.type) {case "s":var o = Math.max(Math.abs(e), Math.abs(t));- return r.precision == null && !isNaN(a = pke(i, o)) && (r.precision = a), gY(r, o);+ return r.precision == null && !isNaN(a = jAe(i, o)) && (r.precision = a), PX(r, o);case "":case "e":case "g":case "p":case "r":- r.precision == null && !isNaN(a = mke(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));+ r.precision == null && !isNaN(a = MAe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));break;case "f":- case "%": r.precision == null && !isNaN(a = fke(i)) && (r.precision = a - (r.type === "%") * 2);+ case "%": r.precision == null && !isNaN(a = AAe(i)) && (r.precision = a - (r.type === "%") * 2);}- return hY(r);+ return NX(r);}//#endregion//#region node_modules/d3-scale/src/linear.js-function vY(e) {+function IX(e) {var t = e.domain;return e.ticks = function(e) {var n = t();- return nJ(n[0], n[n.length - 1], e ?? 10);+ return bY(n[0], n[n.length - 1], e ?? 10);}, e.tickFormat = function(e, n) {var r = t();- return _Y(r[0], r[r.length - 1], e ?? 10, n);+ return FX(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 = rJ(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);+ if (l = xY(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;@@ -61746,64 +64496,64 @@ function vY(e) {return e;}, e;}-function yY() {- var e = rY();+function LX() {+ var e = xX();return e.copy = function() {- return tY(e, yY());- }, uJ.apply(e, arguments), vY(e);+ return yX(e, LX());+ }, OY.apply(e, arguments), IX(e);}//#endregion//#region node_modules/d3-scale/src/identity.js-function bY(e) {+function RX(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, ZJ), n) : e.slice();+ return arguments.length ? (e = Array.from(t, hX), n) : e.slice();}, n.unknown = function(e) {return arguments.length ? (t = e, n) : t;}, n.copy = function() {- return bY(e).unknown(t);- }, e = arguments.length ? Array.from(e, ZJ) : [0, 1], vY(n);+ return RX(e).unknown(t);+ }, e = arguments.length ? Array.from(e, hX) : [0, 1], IX(n);}//#endregion//#region node_modules/d3-scale/src/nice.js-function xY(e, t) {+function zX(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 SY(e) {+function BX(e) {return Math.log(e);}-function CY(e) {+function VX(e) {return Math.exp(e);}-function hke(e) {+function NAe(e) {return -Math.log(-e);}-function gke(e) {+function PAe(e) {return -Math.exp(-e);}-function _ke(e) {+function FAe(e) {return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;}-function vke(e) {- return e === 10 ? _ke : e === Math.E ? Math.exp : (t) => e ** +t;+function IAe(e) {+ return e === 10 ? FAe : e === Math.E ? Math.exp : (t) => e ** +t;}-function yke(e) {+function LAe(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 wY(e) {+function HX(e) {return (t, n) => -e(-t, n);}-function TY(e) {- let t = e(SY, CY), n = t.domain, r = 10, i, a;+function UX(e) {+ let t = e(BX, VX), n = t.domain, r = 10, i, a;function o() {- return i = yke(r), a = vke(r), n()[0] < 0 ? (i = wY(i), a = wY(a), e(hke, gke)) : e(SY, CY), t;+ return i = LAe(r), a = IAe(r), n()[0] < 0 ? (i = HX(i), a = HX(a), e(NAe, PAe)) : e(BX, VX), t;}return t.base = function(e) {return arguments.length ? (r = +e, o()) : r;@@ -61823,100 +64573,100 @@ function TY(e) {if (f > s) break;m.push(f);}- m.length * 2 < p && (m = nJ(o, s, p));- } else m = nJ(l, u, Math.min(u - l, p)).map(a);+ m.length * 2 < p && (m = bY(o, s, p));+ } else m = bY(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 = oY(n)).precision == null && (n.trim = !0), n = hY(n)), e === Infinity) return n;+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = wX(n)).precision == null && (n.trim = !0), n = NX(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(xY(n(), {+ }, t.nice = () => n(zX(n(), {floor: (e) => a(Math.floor(i(e))),ceil: (e) => a(Math.ceil(i(e)))})), t;}-function EY() {- let e = TY(nY()).domain([1, 10]);- return e.copy = () => tY(e, EY()).base(e.base()), uJ.apply(e, arguments), e;+function WX() {+ let e = UX(bX()).domain([1, 10]);+ return e.copy = () => yX(e, WX()).base(e.base()), OY.apply(e, arguments), e;}//#endregion//#region node_modules/d3-scale/src/symlog.js-function DY(e) {+function GX(e) {return function(t) {return Math.sign(t) * Math.log1p(Math.abs(t / e));};}-function OY(e) {+function KX(e) {return function(t) {return Math.sign(t) * Math.expm1(Math.abs(t)) * e;};}-function kY(e) {- var t = 1, n = e(DY(t), OY(t));+function qX(e) {+ var t = 1, n = e(GX(t), KX(t));return n.constant = function(n) {- return arguments.length ? e(DY(t = +n), OY(t)) : t;- }, vY(n);+ return arguments.length ? e(GX(t = +n), KX(t)) : t;+ }, IX(n);}-function AY() {- var e = kY(nY());+function JX() {+ var e = qX(bX());return e.copy = function() {- return tY(e, AY()).constant(e.constant());- }, uJ.apply(e, arguments);+ return yX(e, JX()).constant(e.constant());+ }, OY.apply(e, arguments);}//#endregion//#region node_modules/d3-scale/src/pow.js-function bke(e) {+function YX(e) {return function(t) {return t < 0 ? -((-t) ** +e) : t ** +e;};}-function xke(e) {+function RAe(e) {return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);}-function Ske(e) {+function zAe(e) {return e < 0 ? -e * e : e * e;}-function jY(e) {- var t = e($J, $J), n = 1;+function XX(e) {+ var t = e(_X, _X), n = 1;function r() {- return n === 1 ? e($J, $J) : n === .5 ? e(xke, Ske) : e(bke(n), bke(1 / n));+ return n === 1 ? e(_X, _X) : n === .5 ? e(RAe, zAe) : e(YX(n), YX(1 / n));}return t.exponent = function(e) {return arguments.length ? (n = +e, r()) : n;- }, vY(t);+ }, IX(t);}-function MY() {- var e = jY(nY());+function ZX() {+ var e = XX(bX());return e.copy = function() {- return tY(e, MY()).exponent(e.exponent());- }, uJ.apply(e, arguments), e;+ return yX(e, ZX()).exponent(e.exponent());+ }, OY.apply(e, arguments), e;}-function Cke() {- return MY.apply(null, arguments).exponent(.5);+function BAe() {+ return ZX.apply(null, arguments).exponent(.5);}//#endregion//#region node_modules/d3-scale/src/radial.js-function NY(e) {+function QX(e) {return Math.sign(e) * e * e;}-function wke(e) {+function VAe(e) {return Math.sign(e) * Math.sqrt(Math.abs(e));}-function PY() {- var e = rY(), t = [0, 1], n = !1, r;+function $X() {+ var e = xX(), t = [0, 1], n = !1, r;function i(t) {- var i = wke(e(t));+ var i = VAe(e(t));return isNaN(i) ? r : n ? Math.round(i) : i;}return i.invert = function(t) {- return e.invert(NY(t));+ return e.invert(QX(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, ZJ)).map(NY)), i) : t.slice();+ return arguments.length ? (e.range((t = Array.from(n, hX)).map(QX)), i) : t.slice();}, i.rangeRound = function(e) {return i.range(e).round(!0);}, i.round = function(e) {@@ -61926,20 +64676,20 @@ function PY() {}, i.unknown = function(e) {return arguments.length ? (r = e, i) : r;}, i.copy = function() {- return PY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);- }, uJ.apply(i, arguments), vY(i);+ return $X(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);+ }, OY.apply(i, arguments), IX(i);}//#endregion//#region node_modules/d3-scale/src/quantile.js-function FY() {+function eZ() {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] = DOe(e, r / i);+ for (n = Array(i - 1); ++r < i;) n[r - 1] = Gke(e, r / i);return a;}function a(e) {- return e == null || isNaN(e = +e) ? r : t[Xq(n, e)];+ return e == null || isNaN(e = +e) ? r : t[mY(n, e)];}return a.invertExtent = function(r) {var i = t.indexOf(r);@@ -61948,7 +64698,7 @@ function FY() {if (!arguments.length) return e.slice();e = [];for (let n of t) n != null && !isNaN(n = +n) && e.push(n);- return e.sort(Kq), i();+ return e.sort(uY), i();}, a.range = function(e) {return arguments.length ? (t = Array.from(e), i()) : t.slice();}, a.unknown = function(e) {@@ -61956,15 +64706,15 @@ function FY() {}, a.quantiles = function() {return n.slice();}, a.copy = function() {- return FY().domain(e).range(t).unknown(r);- }, uJ.apply(a, arguments);+ return eZ().domain(e).range(t).unknown(r);+ }, OY.apply(a, arguments);}//#endregion//#region node_modules/d3-scale/src/quantize.js-function IY() {+function tZ() {var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;function o(e) {- return e != null && e <= e ? i[Xq(r, e, 0, n)] : a;+ return e != null && e <= e ? i[mY(r, e, 0, n)] : a;}function s() {var i = -1;@@ -61983,15 +64733,15 @@ function IY() {}, o.thresholds = function() {return r.slice();}, o.copy = function() {- return IY().domain([e, t]).range(i).unknown(a);- }, uJ.apply(vY(o), arguments);+ return tZ().domain([e, t]).range(i).unknown(a);+ }, OY.apply(IX(o), arguments);}//#endregion//#region node_modules/d3-scale/src/threshold.js-function LY() {+function nZ() {var e = [.5], t = [0, 1], n, r = 1;function i(i) {- return i != null && i <= i ? t[Xq(e, i, 0, r)] : n;+ return i != null && i <= i ? t[mY(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();@@ -62003,13 +64753,13 @@ function LY() {}, i.unknown = function(e) {return arguments.length ? (n = e, i) : n;}, i.copy = function() {- return LY().domain(e).range(t).unknown(n);- }, uJ.apply(i, arguments);+ return nZ().domain(e).range(t).unknown(n);+ }, OY.apply(i, arguments);}//#endregion//#region node_modules/d3-time/src/interval.js-var RY = /* @__PURE__ */ new Date(), zY = /* @__PURE__ */ new Date();-function BY(e, t, n, r) {+var rZ = /* @__PURE__ */ new Date(), iZ = /* @__PURE__ */ new Date();+function aZ(e, t, n, r) {function i(t) {return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;}@@ -62024,226 +64774,226 @@ function BY(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) => BY((t) => {+ }, i.filter = (n) => aZ((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) => (RY.setTime(+t), zY.setTime(+r), e(RY), e(zY), Math.floor(n(RY, zY))), 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) => (rZ.setTime(+t), iZ.setTime(+r), e(rZ), e(iZ), Math.floor(n(rZ, iZ))), 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 VY = BY(() => {}, (e, t) => {+var oZ = aZ(() => {}, (e, t) => {e.setTime(+e + t);}, (e, t) => t - e);-VY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? BY((t) => {+oZ.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? aZ((t) => {t.setTime(Math.floor(t / e) * e);}, (t, n) => {t.setTime(+t + n * e);-}, (t, n) => (n - t) / e) : VY), VY.range;+}, (t, n) => (n - t) / e) : oZ), oZ.range;//#endregion//#region node_modules/d3-time/src/duration.js-var HY = 1e3, UY = HY * 60, WY = UY * 60, GY = WY * 24, KY = GY * 7, qY = GY * 30, JY = GY * 365, YY = BY((e) => {+var sZ = 1e3, cZ = sZ * 60, lZ = cZ * 60, uZ = lZ * 24, dZ = uZ * 7, fZ = uZ * 30, pZ = uZ * 365, mZ = aZ((e) => {e.setTime(e - e.getMilliseconds());}, (e, t) => {- e.setTime(+e + t * HY);-}, (e, t) => (t - e) / HY, (e) => e.getUTCSeconds());-YY.range;+ e.setTime(+e + t * sZ);+}, (e, t) => (t - e) / sZ, (e) => e.getUTCSeconds());+mZ.range;//#endregion//#region node_modules/d3-time/src/minute.js-var XY = BY((e) => {- e.setTime(e - e.getMilliseconds() - e.getSeconds() * HY);+var hZ = aZ((e) => {+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * sZ);}, (e, t) => {- e.setTime(+e + t * UY);-}, (e, t) => (t - e) / UY, (e) => e.getMinutes());-XY.range;-var ZY = BY((e) => {+ e.setTime(+e + t * cZ);+}, (e, t) => (t - e) / cZ, (e) => e.getMinutes());+hZ.range;+var gZ = aZ((e) => {e.setUTCSeconds(0, 0);}, (e, t) => {- e.setTime(+e + t * UY);-}, (e, t) => (t - e) / UY, (e) => e.getUTCMinutes());-ZY.range;+ e.setTime(+e + t * cZ);+}, (e, t) => (t - e) / cZ, (e) => e.getUTCMinutes());+gZ.range;//#endregion//#region node_modules/d3-time/src/hour.js-var QY = BY((e) => {- e.setTime(e - e.getMilliseconds() - e.getSeconds() * HY - e.getMinutes() * UY);+var _Z = aZ((e) => {+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * sZ - e.getMinutes() * cZ);}, (e, t) => {- e.setTime(+e + t * WY);-}, (e, t) => (t - e) / WY, (e) => e.getHours());-QY.range;-var $Y = BY((e) => {+ e.setTime(+e + t * lZ);+}, (e, t) => (t - e) / lZ, (e) => e.getHours());+_Z.range;+var vZ = aZ((e) => {e.setUTCMinutes(0, 0, 0);}, (e, t) => {- e.setTime(+e + t * WY);-}, (e, t) => (t - e) / WY, (e) => e.getUTCHours());-$Y.range;+ e.setTime(+e + t * lZ);+}, (e, t) => (t - e) / lZ, (e) => e.getUTCHours());+vZ.range;//#endregion//#region node_modules/d3-time/src/day.js-var eX = BY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * UY) / GY, (e) => e.getDate() - 1);-eX.range;-var tX = BY((e) => {+var yZ = aZ((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * cZ) / uZ, (e) => e.getDate() - 1);+yZ.range;+var bZ = aZ((e) => {e.setUTCHours(0, 0, 0, 0);}, (e, t) => {e.setUTCDate(e.getUTCDate() + t);-}, (e, t) => (t - e) / GY, (e) => e.getUTCDate() - 1);-tX.range;-var nX = BY((e) => {+}, (e, t) => (t - e) / uZ, (e) => e.getUTCDate() - 1);+bZ.range;+var xZ = aZ((e) => {e.setUTCHours(0, 0, 0, 0);}, (e, t) => {e.setUTCDate(e.getUTCDate() + t);-}, (e, t) => (t - e) / GY, (e) => Math.floor(e / GY));-nX.range;+}, (e, t) => (t - e) / uZ, (e) => Math.floor(e / uZ));+xZ.range;//#endregion//#region node_modules/d3-time/src/week.js-function rX(e) {- return BY((t) => {+function SZ(e) {+ return aZ((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()) * UY) / KY);+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * cZ) / dZ);}-var iX = rX(0), aX = rX(1), Tke = rX(2), Eke = rX(3), oX = rX(4), Dke = rX(5), Oke = rX(6);-iX.range, aX.range, Tke.range, Eke.range, oX.range, Dke.range, Oke.range;-function sX(e) {- return BY((t) => {+var CZ = SZ(0), wZ = SZ(1), HAe = SZ(2), UAe = SZ(3), TZ = SZ(4), WAe = SZ(5), GAe = SZ(6);+CZ.range, wZ.range, HAe.range, UAe.range, TZ.range, WAe.range, GAe.range;+function EZ(e) {+ return aZ((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) / KY);+ }, (e, t) => (t - e) / dZ);}-var cX = sX(0), lX = sX(1), kke = sX(2), Ake = sX(3), uX = sX(4), jke = sX(5), Mke = sX(6);-cX.range, lX.range, kke.range, Ake.range, uX.range, jke.range, Mke.range;+var DZ = EZ(0), OZ = EZ(1), KAe = EZ(2), qAe = EZ(3), kZ = EZ(4), JAe = EZ(5), YAe = EZ(6);+DZ.range, OZ.range, KAe.range, qAe.range, kZ.range, JAe.range, YAe.range;//#endregion//#region node_modules/d3-time/src/month.js-var dX = BY((e) => {+var AZ = aZ((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());-dX.range;-var fX = BY((e) => {+AZ.range;+var jZ = aZ((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());-fX.range;+jZ.range;//#endregion//#region node_modules/d3-time/src/year.js-var pX = BY((e) => {+var MZ = aZ((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());-pX.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : BY((t) => {+MZ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : aZ((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);-}), pX.range;-var mX = BY((e) => {+}), MZ.range;+var NZ = aZ((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());-mX.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : BY((t) => {+NZ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : aZ((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);-}), mX.range;+}), NZ.range;//#endregion//#region node_modules/d3-time/src/ticks.js-function hX(e, t, n, r, i, a) {+function PZ(e, t, n, r, i, a) {let o = [[- YY,+ mZ,1,- HY+ sZ],[- YY,+ mZ,5,- 5 * HY+ 5 * sZ],[- YY,+ mZ,15,- 15 * HY+ 15 * sZ],[- YY,+ mZ,30,- 30 * HY+ 30 * sZ],[a,1,- UY+ cZ],[a,5,- 5 * UY+ 5 * cZ],[a,15,- 15 * UY+ 15 * cZ],[a,30,- 30 * UY+ 30 * cZ],[i,1,- WY+ lZ],[i,3,- 3 * WY+ 3 * lZ],[i,6,- 6 * WY+ 6 * lZ],[i,12,- 12 * WY+ 12 * lZ],[r,1,- GY+ uZ],[r,2,- 2 * GY+ 2 * uZ],[n,1,- KY+ dZ],[t,1,- qY+ fZ],[t,3,- 3 * qY+ 3 * fZ],[e,1,- JY+ pZ]];function s(e, t, n) {@@ -62253,32 +65003,32 @@ function hX(e, t, n, r, i, a) {return r ? a.reverse() : a;}function c(t, n, r) {- let i = Math.abs(n - t) / r, a = qq(([, , e]) => e).right(o, i);- if (a === o.length) return e.every(iJ(t / JY, n / JY, r));- if (a === 0) return VY.every(Math.max(iJ(t, n, r), 1));+ let i = Math.abs(n - t) / r, a = dY(([, , e]) => e).right(o, i);+ if (a === o.length) return e.every(SY(t / pZ, n / pZ, r));+ if (a === 0) return oZ.every(Math.max(SY(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 [Nke, Pke] = hX(mX, fX, cX, nX, $Y, ZY), [Fke, Ike] = hX(pX, dX, iX, eX, QY, XY);+var [XAe, ZAe] = PZ(NZ, jZ, DZ, xZ, vZ, gZ), [QAe, $Ae] = PZ(MZ, AZ, CZ, yZ, _Z, hZ);//#endregion//#region node_modules/d3-time-format/src/locale.js-function gX(e) {+function FZ(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 _X(e) {+function IZ(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 vX(e, t, n) {+function LZ(e, t, n) {return {y: e,m: t,@@ -62289,133 +65039,133 @@ function vX(e, t, n) {L: 0};}-function Lke(e) {- var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = SX(i), u = CX(i), d = SX(a), f = CX(a), p = SX(o), m = CX(o), h = SX(s), g = CX(s), _ = SX(c), v = CX(c), y = {+function eje(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 = VZ(i), u = HZ(i), d = VZ(a), f = HZ(a), p = VZ(o), m = HZ(o), h = VZ(s), g = HZ(s), _ = VZ(c), v = HZ(c), y = {a: N,A: P,b: ee,B: F,c: null,- d: OX,- e: OX,- f: oAe,- g: gAe,- G: vAe,- H: rAe,- I: iAe,- j: aAe,- L: kX,- m: sAe,- M: cAe,+ d: qZ,+ e: qZ,+ f: Cje,+ g: Nje,+ G: Fje,+ H: bje,+ I: xje,+ j: Sje,+ L: JZ,+ m: wje,+ M: Tje,p: I,q: te,- Q: FX,- s: IX,- S: lAe,- u: uAe,- U: dAe,- V: fAe,- w: pAe,- W: mAe,+ Q: eQ,+ s: tQ,+ S: Eje,+ u: Dje,+ U: Oje,+ V: kje,+ w: Aje,+ W: jje,x: null,X: null,- y: hAe,- Y: _Ae,- Z: yAe,- "%": PX+ y: Mje,+ Y: Pje,+ Z: Ije,+ "%": $Z}, b = {a: ne,A: re,b: ie,B: ae,c: null,- d: jX,- e: jX,- f: CAe,- g: NAe,- G: FAe,- H: bAe,- I: xAe,- j: SAe,- L: MX,- m: wAe,- M: TAe,+ d: XZ,+ e: XZ,+ f: Bje,+ g: Xje,+ G: Qje,+ H: Lje,+ I: Rje,+ j: zje,+ L: ZZ,+ m: Vje,+ M: Hje,p: oe,q: se,- Q: FX,- s: IX,- S: EAe,- u: DAe,- U: OAe,- V: kAe,- w: AAe,- W: jAe,+ Q: eQ,+ s: tQ,+ S: Uje,+ u: Wje,+ U: Gje,+ V: Kje,+ w: qje,+ W: Jje,x: null,X: null,- y: MAe,- Y: PAe,- Z: IAe,- "%": PX+ y: Yje,+ Y: Zje,+ Z: $je,+ "%": $Z}, x = {a: E,A: D,b: O,B: k,c: A,- d: EX,- e: EX,- f: $ke,- g: TX,- G: wX,- H: DX,- I: DX,- j: Yke,- L: Qke,- m: Jke,- M: Xke,+ d: GZ,+ e: GZ,+ f: gje,+ g: WZ,+ G: UZ,+ H: KZ,+ I: KZ,+ j: fje,+ L: hje,+ m: dje,+ M: pje,p: T,- q: qke,- Q: tAe,- s: nAe,- S: Zke,- u: Hke,- U: Uke,- V: Wke,- w: Vke,- W: Gke,+ q: uje,+ Q: vje,+ s: yje,+ S: mje,+ u: aje,+ U: oje,+ V: sje,+ w: ije,+ W: cje,x: j,X: M,- y: TX,- Y: wX,- Z: Kke,- "%": eAe+ y: WZ,+ Y: UZ,+ Z: lje,+ "%": _je};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 = yX[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 = RZ[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 = vX(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;+ var r = LZ(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 = _X(vX(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? lX.ceil(a) : lX(a), a = tX.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = gX(vX(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? aX.ceil(a) : aX(a), a = eX.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 ? _X(vX(r.y, 0, 1)).getUTCDay() : gX(vX(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, _X(r)) : gX(r);+ "w" in r || (r.w = 1), "Z" in r ? (a = IZ(LZ(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? OZ.ceil(a) : OZ(a), a = bZ.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = FZ(LZ(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? wZ.ceil(a) : wZ(a), a = yZ.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 ? IZ(LZ(r.y, 0, 1)).getUTCDay() : FZ(LZ(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, IZ(r)) : FZ(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 yX ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;+ if (s = t.charAt(i++), c = x[s in RZ ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;} else if (s != n.charCodeAt(r++)) return -1;}return r;@@ -62512,244 +65262,244 @@ function Lke(e) {}};}-var yX = {+var RZ = {"-": "",_: " ",0: "0"-}, bX = /^\s*\d+/, Rke = /^%/, zke = /[\\^$*+?|[\]().{}]/g;-function xX(e, t, n) {+}, zZ = /^\s*\d+/, tje = /^%/, nje = /[\\^$*+?|[\]().{}]/g;+function BZ(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 Bke(e) {- return e.replace(zke, "\\$&");+function rje(e) {+ return e.replace(nje, "\\$&");}-function SX(e) {- return RegExp("^(?:" + e.map(Bke).join("|") + ")", "i");+function VZ(e) {+ return RegExp("^(?:" + e.map(rje).join("|") + ")", "i");}-function CX(e) {+function HZ(e) {return new Map(e.map((e, t) => [e.toLowerCase(), t]));}-function Vke(e, t, n) {- var r = bX.exec(t.slice(n, n + 1));+function ije(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 1));return r ? (e.w = +r[0], n + r[0].length) : -1;}-function Hke(e, t, n) {- var r = bX.exec(t.slice(n, n + 1));+function aje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 1));return r ? (e.u = +r[0], n + r[0].length) : -1;}-function Uke(e, t, n) {- var r = bX.exec(t.slice(n, n + 2));+function oje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 2));return r ? (e.U = +r[0], n + r[0].length) : -1;}-function Wke(e, t, n) {- var r = bX.exec(t.slice(n, n + 2));+function sje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 2));return r ? (e.V = +r[0], n + r[0].length) : -1;}-function Gke(e, t, n) {- var r = bX.exec(t.slice(n, n + 2));+function cje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 2));return r ? (e.W = +r[0], n + r[0].length) : -1;}-function wX(e, t, n) {- var r = bX.exec(t.slice(n, n + 4));+function UZ(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 4));return r ? (e.y = +r[0], n + r[0].length) : -1;}-function TX(e, t, n) {- var r = bX.exec(t.slice(n, n + 2));+function WZ(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 2));return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;}-function Kke(e, t, n) {+function lje(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 qke(e, t, n) {- var r = bX.exec(t.slice(n, n + 1));+function uje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 1));return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;}-function Jke(e, t, n) {- var r = bX.exec(t.slice(n, n + 2));+function dje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 2));return r ? (e.m = r[0] - 1, n + r[0].length) : -1;}-function EX(e, t, n) {- var r = bX.exec(t.slice(n, n + 2));+function GZ(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 2));return r ? (e.d = +r[0], n + r[0].length) : -1;}-function Yke(e, t, n) {- var r = bX.exec(t.slice(n, n + 3));+function fje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 3));return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;}-function DX(e, t, n) {- var r = bX.exec(t.slice(n, n + 2));+function KZ(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 2));return r ? (e.H = +r[0], n + r[0].length) : -1;}-function Xke(e, t, n) {- var r = bX.exec(t.slice(n, n + 2));+function pje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 2));return r ? (e.M = +r[0], n + r[0].length) : -1;}-function Zke(e, t, n) {- var r = bX.exec(t.slice(n, n + 2));+function mje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 2));return r ? (e.S = +r[0], n + r[0].length) : -1;}-function Qke(e, t, n) {- var r = bX.exec(t.slice(n, n + 3));+function hje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 3));return r ? (e.L = +r[0], n + r[0].length) : -1;}-function $ke(e, t, n) {- var r = bX.exec(t.slice(n, n + 6));+function gje(e, t, n) {+ var r = zZ.exec(t.slice(n, n + 6));return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;}-function eAe(e, t, n) {- var r = Rke.exec(t.slice(n, n + 1));+function _je(e, t, n) {+ var r = tje.exec(t.slice(n, n + 1));return r ? n + r[0].length : -1;}-function tAe(e, t, n) {- var r = bX.exec(t.slice(n));+function vje(e, t, n) {+ var r = zZ.exec(t.slice(n));return r ? (e.Q = +r[0], n + r[0].length) : -1;}-function nAe(e, t, n) {- var r = bX.exec(t.slice(n));+function yje(e, t, n) {+ var r = zZ.exec(t.slice(n));return r ? (e.s = +r[0], n + r[0].length) : -1;}-function OX(e, t) {- return xX(e.getDate(), t, 2);+function qZ(e, t) {+ return BZ(e.getDate(), t, 2);}-function rAe(e, t) {- return xX(e.getHours(), t, 2);+function bje(e, t) {+ return BZ(e.getHours(), t, 2);}-function iAe(e, t) {- return xX(e.getHours() % 12 || 12, t, 2);+function xje(e, t) {+ return BZ(e.getHours() % 12 || 12, t, 2);}-function aAe(e, t) {- return xX(1 + eX.count(pX(e), e), t, 3);+function Sje(e, t) {+ return BZ(1 + yZ.count(MZ(e), e), t, 3);}-function kX(e, t) {- return xX(e.getMilliseconds(), t, 3);+function JZ(e, t) {+ return BZ(e.getMilliseconds(), t, 3);}-function oAe(e, t) {- return kX(e, t) + "000";+function Cje(e, t) {+ return JZ(e, t) + "000";}-function sAe(e, t) {- return xX(e.getMonth() + 1, t, 2);+function wje(e, t) {+ return BZ(e.getMonth() + 1, t, 2);}-function cAe(e, t) {- return xX(e.getMinutes(), t, 2);+function Tje(e, t) {+ return BZ(e.getMinutes(), t, 2);}-function lAe(e, t) {- return xX(e.getSeconds(), t, 2);+function Eje(e, t) {+ return BZ(e.getSeconds(), t, 2);}-function uAe(e) {+function Dje(e) {var t = e.getDay();return t === 0 ? 7 : t;}-function dAe(e, t) {- return xX(iX.count(pX(e) - 1, e), t, 2);+function Oje(e, t) {+ return BZ(CZ.count(MZ(e) - 1, e), t, 2);}-function AX(e) {+function YZ(e) {var t = e.getDay();- return t >= 4 || t === 0 ? oX(e) : oX.ceil(e);+ return t >= 4 || t === 0 ? TZ(e) : TZ.ceil(e);}-function fAe(e, t) {- return e = AX(e), xX(oX.count(pX(e), e) + (pX(e).getDay() === 4), t, 2);+function kje(e, t) {+ return e = YZ(e), BZ(TZ.count(MZ(e), e) + (MZ(e).getDay() === 4), t, 2);}-function pAe(e) {+function Aje(e) {return e.getDay();}-function mAe(e, t) {- return xX(aX.count(pX(e) - 1, e), t, 2);+function jje(e, t) {+ return BZ(wZ.count(MZ(e) - 1, e), t, 2);}-function hAe(e, t) {- return xX(e.getFullYear() % 100, t, 2);+function Mje(e, t) {+ return BZ(e.getFullYear() % 100, t, 2);}-function gAe(e, t) {- return e = AX(e), xX(e.getFullYear() % 100, t, 2);+function Nje(e, t) {+ return e = YZ(e), BZ(e.getFullYear() % 100, t, 2);}-function _Ae(e, t) {- return xX(e.getFullYear() % 1e4, t, 4);+function Pje(e, t) {+ return BZ(e.getFullYear() % 1e4, t, 4);}-function vAe(e, t) {+function Fje(e, t) {var n = e.getDay();- return e = n >= 4 || n === 0 ? oX(e) : oX.ceil(e), xX(e.getFullYear() % 1e4, t, 4);+ return e = n >= 4 || n === 0 ? TZ(e) : TZ.ceil(e), BZ(e.getFullYear() % 1e4, t, 4);}-function yAe(e) {+function Ije(e) {var t = e.getTimezoneOffset();- return (t > 0 ? "-" : (t *= -1, "+")) + xX(t / 60 | 0, "0", 2) + xX(t % 60, "0", 2);+ return (t > 0 ? "-" : (t *= -1, "+")) + BZ(t / 60 | 0, "0", 2) + BZ(t % 60, "0", 2);}-function jX(e, t) {- return xX(e.getUTCDate(), t, 2);+function XZ(e, t) {+ return BZ(e.getUTCDate(), t, 2);}-function bAe(e, t) {- return xX(e.getUTCHours(), t, 2);+function Lje(e, t) {+ return BZ(e.getUTCHours(), t, 2);}-function xAe(e, t) {- return xX(e.getUTCHours() % 12 || 12, t, 2);+function Rje(e, t) {+ return BZ(e.getUTCHours() % 12 || 12, t, 2);}-function SAe(e, t) {- return xX(1 + tX.count(mX(e), e), t, 3);+function zje(e, t) {+ return BZ(1 + bZ.count(NZ(e), e), t, 3);}-function MX(e, t) {- return xX(e.getUTCMilliseconds(), t, 3);+function ZZ(e, t) {+ return BZ(e.getUTCMilliseconds(), t, 3);}-function CAe(e, t) {- return MX(e, t) + "000";+function Bje(e, t) {+ return ZZ(e, t) + "000";}-function wAe(e, t) {- return xX(e.getUTCMonth() + 1, t, 2);+function Vje(e, t) {+ return BZ(e.getUTCMonth() + 1, t, 2);}-function TAe(e, t) {- return xX(e.getUTCMinutes(), t, 2);+function Hje(e, t) {+ return BZ(e.getUTCMinutes(), t, 2);}-function EAe(e, t) {- return xX(e.getUTCSeconds(), t, 2);+function Uje(e, t) {+ return BZ(e.getUTCSeconds(), t, 2);}-function DAe(e) {+function Wje(e) {var t = e.getUTCDay();return t === 0 ? 7 : t;}-function OAe(e, t) {- return xX(cX.count(mX(e) - 1, e), t, 2);+function Gje(e, t) {+ return BZ(DZ.count(NZ(e) - 1, e), t, 2);}-function NX(e) {+function QZ(e) {var t = e.getUTCDay();- return t >= 4 || t === 0 ? uX(e) : uX.ceil(e);+ return t >= 4 || t === 0 ? kZ(e) : kZ.ceil(e);}-function kAe(e, t) {- return e = NX(e), xX(uX.count(mX(e), e) + (mX(e).getUTCDay() === 4), t, 2);+function Kje(e, t) {+ return e = QZ(e), BZ(kZ.count(NZ(e), e) + (NZ(e).getUTCDay() === 4), t, 2);}-function AAe(e) {+function qje(e) {return e.getUTCDay();}-function jAe(e, t) {- return xX(lX.count(mX(e) - 1, e), t, 2);+function Jje(e, t) {+ return BZ(OZ.count(NZ(e) - 1, e), t, 2);}-function MAe(e, t) {- return xX(e.getUTCFullYear() % 100, t, 2);+function Yje(e, t) {+ return BZ(e.getUTCFullYear() % 100, t, 2);}-function NAe(e, t) {- return e = NX(e), xX(e.getUTCFullYear() % 100, t, 2);+function Xje(e, t) {+ return e = QZ(e), BZ(e.getUTCFullYear() % 100, t, 2);}-function PAe(e, t) {- return xX(e.getUTCFullYear() % 1e4, t, 4);+function Zje(e, t) {+ return BZ(e.getUTCFullYear() % 1e4, t, 4);}-function FAe(e, t) {+function Qje(e, t) {var n = e.getUTCDay();- return e = n >= 4 || n === 0 ? uX(e) : uX.ceil(e), xX(e.getUTCFullYear() % 1e4, t, 4);+ return e = n >= 4 || n === 0 ? kZ(e) : kZ.ceil(e), BZ(e.getUTCFullYear() % 1e4, t, 4);}-function IAe() {+function $je() {return "+0000";}-function PX() {+function $Z() {return "%";}-function FX(e) {+function eQ(e) {return +e;}-function IX(e) {+function tQ(e) {return Math.floor(e / 1e3);}//#endregion//#region node_modules/d3-time-format/src/defaultLocale.js-var LX, RX, zX;-LAe({+var nQ, rQ, iQ;+eMe({dateTime: "%x, %X",date: "%-m/%-d/%Y",time: "%-I:%M:%S %p",@@ -62801,26 +65551,26 @@ LAe({"Dec"]});-function LAe(e) {- return LX = Lke(e), RX = LX.format, LX.parse, zX = LX.utcFormat, LX.utcParse, LX;+function eMe(e) {+ return nQ = eje(e), rQ = nQ.format, nQ.parse, iQ = nQ.utcFormat, nQ.utcParse, nQ;}//#endregion//#region node_modules/d3-scale/src/time.js-function RAe(e) {+function tMe(e) {return new Date(e);}-function zAe(e) {+function nMe(e) {return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);}-function BX(e, t, n, r, i, a, o, s, c, l) {- var u = rY(), 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 aQ(e, t, n, r, i, a, o, s, c, l) {+ var u = xX(), 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, zAe)) : f().map(RAe);+ return arguments.length ? f(Array.from(e, nMe)) : f().map(tMe);}, u.ticks = function(t) {var n = f();return e(n[0], n[n.length - 1], t ?? 10);@@ -62828,23 +65578,23 @@ function BX(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(xY(n, e)) : u;+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(zX(n, e)) : u;}, u.copy = function() {- return tY(u, BX(e, t, n, r, i, a, o, s, c, l));+ return yX(u, aQ(e, t, n, r, i, a, o, s, c, l));}, u;}-function BAe() {- return uJ.apply(BX(Fke, Ike, pX, dX, iX, eX, QY, XY, YY, RX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);+function rMe() {+ return OY.apply(aQ(QAe, $Ae, MZ, AZ, CZ, yZ, _Z, hZ, mZ, rQ).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);}//#endregion//#region node_modules/d3-scale/src/utcTime.js-function VAe() {- return uJ.apply(BX(Nke, Pke, mX, fX, cX, tX, $Y, ZY, YY, zX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);+function iMe() {+ return OY.apply(aQ(XAe, ZAe, NZ, jZ, DZ, bZ, vZ, gZ, mZ, iQ).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);}//#endregion//#region node_modules/d3-scale/src/sequential.js-function VX() {- var e = 0, t = 1, n, r, i, a, o = $J, s = !1, c;+function oQ() {+ var e = 0, t = 1, n, r, i, a, o = _X, 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));}@@ -62861,68 +65611,68 @@ function VX() {return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];};}- return l.range = u(YJ), l.rangeRound = u(XJ), l.unknown = function(e) {+ return l.range = u(pX), l.rangeRound = u(mX), 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 HX(e, t) {+function sQ(e, t) {return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());}-function UX() {- var e = vY(VX()($J));+function cQ() {+ var e = IX(oQ()(_X));return e.copy = function() {- return HX(e, UX());- }, dJ.apply(e, arguments);+ return sQ(e, cQ());+ }, kY.apply(e, arguments);}-function WX() {- var e = TY(VX()).domain([1, 10]);+function lQ() {+ var e = UX(oQ()).domain([1, 10]);return e.copy = function() {- return HX(e, WX()).base(e.base());- }, dJ.apply(e, arguments);+ return sQ(e, lQ()).base(e.base());+ }, kY.apply(e, arguments);}-function GX() {- var e = kY(VX());+function uQ() {+ var e = qX(oQ());return e.copy = function() {- return HX(e, GX()).constant(e.constant());- }, dJ.apply(e, arguments);+ return sQ(e, uQ()).constant(e.constant());+ }, kY.apply(e, arguments);}-function KX() {- var e = jY(VX());+function dQ() {+ var e = XX(oQ());return e.copy = function() {- return HX(e, KX()).exponent(e.exponent());- }, dJ.apply(e, arguments);+ return sQ(e, dQ()).exponent(e.exponent());+ }, kY.apply(e, arguments);}-function HAe() {- return KX.apply(null, arguments).exponent(.5);+function aMe() {+ return dQ.apply(null, arguments).exponent(.5);}//#endregion//#region node_modules/d3-scale/src/sequentialQuantile.js-function qX() {- var e = [], t = $J;+function fQ() {+ var e = [], t = _X;function n(n) {- if (n != null && !isNaN(n = +n)) return t((Xq(e, n, 1) - 1) / (e.length - 1));+ if (n != null && !isNaN(n = +n)) return t((mY(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(Kq), n;+ return e.sort(uY), 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) => EOe(e, r / t));+ return Array.from({ length: t + 1 }, (n, r) => Wke(e, r / t));}, n.copy = function() {- return qX(t).domain(e);- }, dJ.apply(n, arguments);+ return fQ(t).domain(e);+ }, kY.apply(n, arguments);}//#endregion//#region node_modules/d3-scale/src/diverging.js-function JX() {- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = $J, u, d = !1, f;+function pQ() {+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = _X, 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));}@@ -62940,7 +65690,7 @@ function JX() {function m(e) {return function(t) {var n, r, i;- return arguments.length ? ([n, r, i] = t, l = $Oe(e, [+ return arguments.length ? ([n, r, i] = t, l = _Ae(e, [n,r,i@@ -62951,121 +65701,121 @@ function JX() {];};}- return p.range = m(YJ), p.rangeRound = m(XJ), p.unknown = function(e) {+ return p.range = m(pX), p.rangeRound = m(mX), 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 YX() {- var e = vY(JX()($J));+function mQ() {+ var e = IX(pQ()(_X));return e.copy = function() {- return HX(e, YX());- }, dJ.apply(e, arguments);+ return sQ(e, mQ());+ }, kY.apply(e, arguments);}-function XX() {- var e = TY(JX()).domain([+function hQ() {+ var e = UX(pQ()).domain([.1,1,10]);return e.copy = function() {- return HX(e, XX()).base(e.base());- }, dJ.apply(e, arguments);+ return sQ(e, hQ()).base(e.base());+ }, kY.apply(e, arguments);}-function ZX() {- var e = kY(JX());+function gQ() {+ var e = qX(pQ());return e.copy = function() {- return HX(e, ZX()).constant(e.constant());- }, dJ.apply(e, arguments);+ return sQ(e, gQ()).constant(e.constant());+ }, kY.apply(e, arguments);}-function QX() {- var e = jY(JX());+function _Q() {+ var e = XX(pQ());return e.copy = function() {- return HX(e, QX()).exponent(e.exponent());- }, dJ.apply(e, arguments);+ return sQ(e, _Q()).exponent(e.exponent());+ }, kY.apply(e, arguments);}-function UAe() {- return QX.apply(null, arguments).exponent(.5);+function oMe() {+ return _Q.apply(null, arguments).exponent(.5);}//#endregion//#region node_modules/victory-vendor/es/d3-scale.js-var $X = /* @__PURE__ */ St({- scaleBand: () => mJ,- scaleDiverging: () => YX,- scaleDivergingLog: () => XX,- scaleDivergingPow: () => QX,- scaleDivergingSqrt: () => UAe,- scaleDivergingSymlog: () => ZX,- scaleIdentity: () => bY,- scaleImplicit: () => fJ,- scaleLinear: () => yY,- scaleLog: () => EY,- scaleOrdinal: () => pJ,- scalePoint: () => kOe,- scalePow: () => MY,- scaleQuantile: () => FY,- scaleQuantize: () => IY,- scaleRadial: () => PY,- scaleSequential: () => UX,- scaleSequentialLog: () => WX,- scaleSequentialPow: () => KX,- scaleSequentialQuantile: () => qX,- scaleSequentialSqrt: () => HAe,- scaleSequentialSymlog: () => GX,- scaleSqrt: () => Cke,- scaleSymlog: () => AY,- scaleThreshold: () => LY,- scaleTime: () => BAe,- scaleUtc: () => VAe,- tickFormat: () => _Y+var vQ = /* @__PURE__ */ St({+ scaleBand: () => MY,+ scaleDiverging: () => mQ,+ scaleDivergingLog: () => hQ,+ scaleDivergingPow: () => _Q,+ scaleDivergingSqrt: () => oMe,+ scaleDivergingSymlog: () => gQ,+ scaleIdentity: () => RX,+ scaleImplicit: () => AY,+ scaleLinear: () => LX,+ scaleLog: () => WX,+ scaleOrdinal: () => jY,+ scalePoint: () => qke,+ scalePow: () => ZX,+ scaleQuantile: () => eZ,+ scaleQuantize: () => tZ,+ scaleRadial: () => $X,+ scaleSequential: () => cQ,+ scaleSequentialLog: () => lQ,+ scaleSequentialPow: () => dQ,+ scaleSequentialQuantile: () => fQ,+ scaleSequentialSqrt: () => aMe,+ scaleSequentialSymlog: () => uQ,+ scaleSqrt: () => BAe,+ scaleSymlog: () => JX,+ scaleThreshold: () => nZ,+ scaleTime: () => rMe,+ scaleUtc: () => iMe,+ tickFormat: () => FX});//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js-function WAe(e) {- if (e in $X) return $X[e]();- var t = `scale${WB(e)}`;- if (t in $X) return $X[t]();+function sMe(e) {+ if (e in vQ) return vQ[e]();+ var t = `scale${cH(e)}`;+ if (t in vQ) return vQ[t]();}-function eZ(e, t, n) {+function yQ(e, t, n) {if (typeof e == "function") return e.copy().domain(t).range(n);if (e != null) {- var r = WAe(e);+ var r = sMe(e);if (r != null) return r.domain(t).range(n), r;}}-function tZ(e, t, n, r) {- if (n != null && r != null) return typeof e.scale == "function" ? eZ(e.scale, n, r) : eZ(t, n, r);+function bQ(e, t, n, r) {+ if (n != null && r != null) return typeof e.scale == "function" ? yQ(e.scale, n, r) : yQ(t, n, r);}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js-function GAe(e) {- return `scale${WB(e)}`;+function xQ(e) {+ return `scale${cH(e)}`;}-function KAe(e) {- return GAe(e) in $X;+function cMe(e) {+ return xQ(e) in vQ;}-var nZ = (e, t, n) => {+var SQ = (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 KAe(r) ? r : "point";+ if (typeof r == "string") return cMe(r) ? r : "point";}};//#endregion//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js-function qAe(e, t) {+function lMe(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 rZ(e, t) {+function CQ(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 = qAe(r, e);+ var t = lMe(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;@@ -63075,12 +65825,12 @@ function rZ(e, t) {}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js-function JAe(e) {- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : rZ(e, void 0);+function uMe(e) {+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : CQ(e, void 0);}//#endregion//#region node_modules/recharts/es6/state/selectors/axisSelectors.js-function iZ(e, t) {+function wQ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -63090,30 +65840,30 @@ function iZ(e, t) {}return n;}-function aZ(e) {+function TQ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? iZ(Object(n), !0).forEach(function(t) {- YAe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iZ(Object(n)).forEach(function(t) {+ t % 2 ? wQ(Object(n), !0).forEach(function(t) {+ dMe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wQ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function YAe(e, t, n) {- return (t = XAe(t)) in e ? Object.defineProperty(e, t, {+function dMe(e, t, n) {+ return (t = fMe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function XAe(e) {- var t = ZAe(e, "string");+function fMe(e) {+ var t = pMe(e, "string");return typeof t == "symbol" ? t : t + "";}-function ZAe(e, t) {+function pMe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -63123,7 +65873,7 @@ function ZAe(e, t) {}return (t === "string" ? String : Number)(e);}-var oZ = [0, "auto"], sZ = {+var EQ = [0, "auto"], DQ = {allowDataOverflow: !1,allowDecimals: !0,allowDuplicatedCategory: !0,@@ -63152,13 +65902,13 @@ var oZ = [0, "auto"], sZ = {type: "category",unit: void 0,niceTicks: "auto"-}, cZ = (e, t) => e.cartesianAxis.xAxis[t], lZ = (e, t) => cZ(e, t) ?? sZ, uZ = {+}, OQ = (e, t) => e.cartesianAxis.xAxis[t], kQ = (e, t) => OQ(e, t) ?? DQ, AQ = {allowDataOverflow: !1,allowDecimals: !0,allowDuplicatedCategory: !0,angle: 0,dataKey: void 0,- domain: oZ,+ domain: EQ,hide: !0,id: 0,includeHidden: !1,@@ -63181,7 +65931,7 @@ var oZ = [0, "auto"], sZ = {unit: void 0,niceTicks: "auto",width: 60-}, dZ = (e, t) => e.cartesianAxis.yAxis[t], fZ = (e, t) => dZ(e, t) ?? uZ, QAe = {+}, jQ = (e, t) => e.cartesianAxis.yAxis[t], MQ = (e, t) => jQ(e, t) ?? AQ, mMe = {domain: [0, "auto"],includeHidden: !1,reversed: !1,@@ -63194,31 +65944,31 @@ var oZ = [0, "auto"], sZ = {scale: "auto",type: "number",unit: ""-}, pZ = (e, t) => e.cartesianAxis.zAxis[t] ?? QAe, mZ = (e, t, n) => {+}, NQ = (e, t) => e.cartesianAxis.zAxis[t] ?? mMe, PQ = (e, t, n) => {switch (t) {- case "xAxis": return lZ(e, n);- case "yAxis": return fZ(e, n);- case "zAxis": return pZ(e, n);- case "angleAxis": return Eq(e, n);- case "radiusAxis": return Dq(e, n);+ case "xAxis": return kQ(e, n);+ case "yAxis": return MQ(e, n);+ case "zAxis": return NQ(e, n);+ case "angleAxis": return WJ(e, n);+ case "radiusAxis": return GJ(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, $Ae = (e, t, n) => {+}, hMe = (e, t, n) => {switch (t) {- case "xAxis": return lZ(e, n);- case "yAxis": return fZ(e, n);+ case "xAxis": return kQ(e, n);+ case "yAxis": return MQ(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, hZ = (e, t, n) => {+}, FQ = (e, t, n) => {switch (t) {- case "xAxis": return lZ(e, n);- case "yAxis": return fZ(e, n);- case "angleAxis": return Eq(e, n);- case "radiusAxis": return Dq(e, n);+ case "xAxis": return kQ(e, n);+ case "yAxis": return MQ(e, n);+ case "angleAxis": return WJ(e, n);+ case "radiusAxis": return GJ(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, gZ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");-function _Z(e, t) {+}, IQ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");+function LQ(e, t) {return (n) => {switch (e) {case "xAxis": return "xAxisId" in n && n.xAxisId === t;@@ -63230,58 +65980,58 @@ function _Z(e, t) {}};}-var vZ = (e) => e.graphicalItems.cartesianItems, eje = $([Fq, Iq], _Z), yZ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), bZ = $([- vZ,- mZ,- eje-], yZ, { memoizeOptions: { resultEqualityCheck: Vq } }), xZ = $([bZ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(zq)), SZ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), tje = $([bZ], SZ), CZ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), nje = $([bZ], CZ, { memoizeOptions: { resultEqualityCheck: Vq } }), wZ = (e, t) => {+var RQ = (e) => e.graphicalItems.cartesianItems, gMe = $([$J, eY], LQ), zQ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), BQ = $([+ RQ,+ PQ,+ gMe+], zQ, { memoizeOptions: { resultEqualityCheck: aY } }), VQ = $([BQ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(rY)), HQ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), _Me = $([BQ], HQ), UQ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), vMe = $([BQ], UQ, { memoizeOptions: { resultEqualityCheck: aY } }), WQ = (e, t) => {var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;return e.length > 0 ? e : n.slice(r, i + 1);-}, TZ = $([nje, qK], wZ), EZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: qU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: qU(e, t.dataKey) })), DZ = $([- TZ,- mZ,- bZ-], EZ);-function OZ(e) {- if (LB(e) || e instanceof Date) {+}, GQ = $([vMe, dJ], WQ), KQ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: dG(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: dG(e, t.dataKey) })), qQ = $([+ GQ,+ PQ,+ BQ+], KQ);+function JQ(e) {+ if (tH(e) || e instanceof Date) {var t = Number(e);- if (UU(t)) return t;+ if (sG(t)) return t;}}-function kZ(e) {+function YQ(e) {if (Array.isArray(e)) {- var t = [OZ(e[0]), OZ(e[1])];- return YK(t) ? t : void 0;+ var t = [JQ(e[0]), JQ(e[1])];+ return pJ(t) ? t : void 0;}- var n = OZ(e);+ var n = JQ(e);if (n != null) return [n, n];}-function AZ(e) {- return e.map(OZ).filter(GB);+function XQ(e) {+ return e.map(JQ).filter(lH);}-function rje(e, t) {- var n = OZ(e), r = OZ(t);+function yMe(e, t) {+ var n = JQ(e), r = JQ(t);return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;}-var ije = $([DZ], (e) => e?.map((e) => e.value).sort(rje));-function jZ(e, t) {+var bMe = $([qQ], (e) => e?.map((e) => e.value).sort(yMe));+function ZQ(e, t) {switch (e) {case "xAxis": return t.direction === "x";case "yAxis": return t.direction === "y";default: return !1;}}-function aje(e, t, n) {- return !n || typeof t != "number" || FB(t) || !n.length ? [] : AZ(n.flatMap((n) => {- var r = qU(e, n.dataKey), i, a;- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!UU(i) || !UU(a))) return [t - i, t + a];+function xMe(e, t, n) {+ return !n || typeof t != "number" || $V(t) || !n.length ? [] : XQ(n.flatMap((n) => {+ var r = dG(e, n.dataKey), i, a;+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!sG(i) || !sG(a))) return [t - i, t + a];}));}-var MZ = (e) => hZ(e, Hq(e), Uq(e)), NZ = $([MZ], (e) => e?.dataKey), oje = $([- xZ,- qK,- MZ-], Rq), PZ = (e, t, n, r) => {+var QQ = (e) => FQ(e, oY(e), sY(e)), $Q = $([QQ], (e) => e?.dataKey), SMe = $([+ VQ,+ dJ,+], nY), e$ = (e, t, n, r) => {var i = t.reduce((e, t) => {if (t.stackId == null) return e;var n = e[t.stackId];@@ -63290,168 +66040,168 @@ var MZ = (e) => hZ(e, Hq(e), Uq(e)), NZ = $([MZ], (e) => e?.dataKey), oje = $([return Object.fromEntries(Object.entries(i).map((t) => {var [i, a] = t, o = r ? [...a].reverse() : a;return [i, {- stackedData: aTe(e, o.map(Lq), n),+ stackedData: CEe(e, o.map(tY), n),graphicalItems: o}];}));-}, FZ = $([- oje,- xZ,- dq,- fq-], PZ), IZ = (e, t, n, r) => {+}, t$ = $([+ SMe,+ VQ,+ kJ,+ AJ+], e$), n$ = (e, t, n, r) => {var { dataStartIndex: i, dataEndIndex: a } = t;if (r == null && n !== "zAxis") {- var o = cTe(e, i, a);+ var o = EEe(e, i, a);if (o == null || o[0] !== 0 || o[1] !== 0) return o;}-}, sje = $([mZ], (e) => e.allowDataOverflow), LZ = (e) => {- if (e == null || !("domain" in e)) return oZ;+}, CMe = $([PQ], (e) => e.allowDataOverflow), r$ = (e) => {+ if (e == null || !("domain" in e)) return EQ;if (e.domain != null) return e.domain;if ("ticks" in e && e.ticks != null) {if (e.type === "number") {- var t = AZ(e.ticks);+ var t = XQ(e.ticks);return [Math.min(...t), Math.max(...t)];}if (e.type === "category") return e.ticks.map(String);}- return e?.domain ?? oZ;-}, RZ = $([mZ], LZ), zZ = $([RZ, sje], ZK), cje = $([- FZ,- GK,- Fq,- zZ-], IZ, { memoizeOptions: { resultEqualityCheck: Bq } }), BZ = (e) => e.errorBars, lje = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => jZ(n, e)), VZ = function() {+ return e?.domain ?? EQ;+}, i$ = $([PQ], r$), a$ = $([i$, CMe], hJ), wMe = $([+ t$,+ lJ,+ $J,+ a$+], n$, { memoizeOptions: { resultEqualityCheck: iY } }), o$ = (e) => e.errorBars, TMe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => ZQ(n, e)), s$ = function() {var e = [...arguments].filter(Boolean);if (e.length !== 0) {var t = e.flat();return [Math.min(...t), Math.max(...t)];}-}, HZ = (e, t, n, r, i) => {+}, c$ = (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) => jZ(i, e)), c = qU(e, t.dataKey ?? n.dataKey), l = aje(e, c, s);+ var s = r[n.id]?.filter((e) => ZQ(i, e)), c = dG(e, t.dataKey ?? n.dataKey), l = xMe(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 = kZ(c);+ var f = YQ(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 = kZ(qU(e, t.dataKey));+ var n = YQ(dG(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]));- }), UU(a) && UU(o)) return [a, o];-}, uje = $([- TZ,- mZ,- tje,- BZ,- Fq-], HZ, { memoizeOptions: { resultEqualityCheck: Bq } });-function dje(e) {+ }), sG(a) && sG(o)) return [a, o];+}, EMe = $([+ GQ,+ PQ,+ _Me,+ o$,+ $J+], c$, { memoizeOptions: { resultEqualityCheck: iY } });+function DMe(e) {var { value: t } = e;- if (LB(t) || t instanceof Date) return t;-}-var fje = (e, t, n) => {- var r = e.map(dje).filter((e) => e != null);- return n && (t.dataKey == null || t.allowDuplicatedCategory && BB(r)) ? WK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));-}, UZ = (e) => e.referenceElements.dots, WZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), pje = $([- UZ,- Fq,- Iq-], WZ), GZ = (e) => e.referenceElements.areas, mje = $([- GZ,- Fq,- Iq-], WZ), KZ = (e) => e.referenceElements.lines, hje = $([- KZ,- Fq,- Iq-], WZ), qZ = (e, t) => {+ if (tH(t) || t instanceof Date) return t;+}+var OMe = (e, t, n) => {+ var r = e.map(DMe).filter((e) => e != null);+ return n && (t.dataKey == null || t.allowDuplicatedCategory && iH(r)) ? cJ(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));+}, l$ = (e) => e.referenceElements.dots, u$ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), kMe = $([+ l$,+ $J,+ eY+], u$), d$ = (e) => e.referenceElements.areas, AMe = $([+ d$,+ $J,+ eY+], u$), f$ = (e) => e.referenceElements.lines, jMe = $([+ f$,+ $J,+ eY+], u$), p$ = (e, t) => {if (e != null) {- var n = AZ(e.map((e) => t === "xAxis" ? e.x : e.y));+ var n = XQ(e.map((e) => t === "xAxis" ? e.x : e.y));if (n.length !== 0) return [Math.min(...n), Math.max(...n)];}-}, gje = $(pje, Fq, qZ), JZ = (e, t) => {+}, MMe = $(kMe, $J, p$), m$ = (e, t) => {if (e != null) {- var n = AZ(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));+ var n = XQ(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)];}-}, _je = $([mje, Fq], JZ);-function vje(e) {- if (e.x != null) return AZ([e.x]);+}, NMe = $([AMe, $J], m$);+function PMe(e) {+ if (e.x != null) return XQ([e.x]);var t = e.segment?.map((e) => e.x);- return t == null || t.length === 0 ? [] : AZ(t);+ return t == null || t.length === 0 ? [] : XQ(t);}-function yje(e) {- if (e.y != null) return AZ([e.y]);+function FMe(e) {+ if (e.y != null) return XQ([e.y]);var t = e.segment?.map((e) => e.y);- return t == null || t.length === 0 ? [] : AZ(t);+ return t == null || t.length === 0 ? [] : XQ(t);}-var YZ = (e, t) => {+var h$ = (e, t) => {if (e != null) {- var n = e.flatMap((e) => t === "xAxis" ? vje(e) : yje(e));+ var n = e.flatMap((e) => t === "xAxis" ? PMe(e) : FMe(e));if (n.length !== 0) return [Math.min(...n), Math.max(...n)];}-}, bje = $(gje, $([hje, Fq], YZ), _je, (e, t, n) => VZ(e, n, t)), XZ = (e, t, n, r, i, a, o, s) => n ?? fOe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? VZ(r, a, i) : VZ(a, i), e.allowDataOverflow), xje = $([- mZ,- RZ,- zZ,- cje,- uje,- bje,- PW,- Fq-], XZ, { memoizeOptions: { resultEqualityCheck: Bq } }), Sje = [0, 1], ZZ = (e, t, n, r, i, a, o) => {+}, IMe = $(MMe, $([jMe, $J], h$), NMe, (e, t, n) => s$(e, n, t)), g$ = (e, t, n, r, i, a, o, s) => n ?? Ake(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? s$(r, a, i) : s$(a, i), e.allowDataOverflow), LMe = $([+ PQ,+ i$,+ a$,+ wMe,+ EMe,+ IMe,+ QG,+ $J+], g$, { memoizeOptions: { resultEqualityCheck: iY } }), RMe = [0, 1], _$ = (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 = JU(t, a);- return l && s == null ? WK(0, n?.length ?? 0) : c === "category" ? fje(r, e, l) : i === "expand" ? Sje : o;- }-}, QZ = $([- mZ,- PW,- TZ,- DZ,- dq,- Fq,- xje-], ZZ), $Z = $([- mZ,- gZ,- pq-], nZ), eQ = (e, t, n) => {+ var { dataKey: s, type: c } = e, l = fG(t, a);+ return l && s == null ? cJ(0, n?.length ?? 0) : c === "category" ? OMe(r, e, l) : i === "expand" ? RMe : o;+ }+}, v$ = $([+ PQ,+ QG,+ GQ,+ qQ,+ kJ,+ $J,+ LMe+], _$), y$ = $([+ PQ,+ IQ,+ jJ+], SQ), b$ = (e, t, n) => {var { niceTicks: r } = t;if (r !== "none") {- var i = LZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && YK(e)) {- if (a) return aq(e, t.tickCount, t.allowDecimals, r);- if (t.type === "number") return oq(e, t.tickCount, t.allowDecimals, r);+ var i = r$(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && pJ(e)) {+ if (a) return CJ(e, t.tickCount, t.allowDecimals, r);+ if (t.type === "number") return wJ(e, t.tickCount, t.allowDecimals, r);}if (r === "auto" && n === "linear" && t != null && t.tickCount) {- if (a && YK(e)) return aq(e, t.tickCount, t.allowDecimals, "adaptive");- if (t.type === "number" && YK(e)) return oq(e, t.tickCount, t.allowDecimals, "adaptive");+ if (a && pJ(e)) return CJ(e, t.tickCount, t.allowDecimals, "adaptive");+ if (t.type === "number" && pJ(e)) return wJ(e, t.tickCount, t.allowDecimals, "adaptive");}}-}, tQ = $([- QZ,- hZ,- $Z-], eQ), nQ = (e, t, n, r) => {- if (r !== "angleAxis" && e?.type === "number" && YK(t) && Array.isArray(n) && n.length > 0) {+}, x$ = $([+ v$,+ FQ,+ y$+], b$), S$ = (e, t, n, r) => {+ if (r !== "angleAxis" && e?.type === "number" && pJ(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;-}, Cje = $([- mZ,- QZ,- tQ,- Fq-], nQ), rQ = $($(DZ, mZ, (e, t) => {+}, zMe = $([+ PQ,+ v$,+ x$,+ $J+], S$), C$ = $($(qQ, PQ, (e, t) => {if (!(!t || t.type !== "number")) {- var n = Infinity, r = Array.from(AZ(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];+ var n = Infinity, r = Array.from(XQ(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;@@ -63464,22 +66214,22 @@ var YZ = (e, t) => {}return n / o;}-}), PW, lq, mW, (e, t, n, r, i) => i, (e, t, n, r, i) => {- if (!UU(e)) return 0;+}), QG, DJ, MG, (e, t, n, r, i) => i, (e, t, n, r, i) => {+ if (!sG(e)) return 0;var a = t === "vertical" ? r.height : r.width;if (i === "gap") return e * a / 2;if (i === "no-gap") {- var o = zB(n, e * a), s = e * a / 2;+ var o = rH(n, e * a), s = e * a / 2;return s - o - (s - o) / a * o;}return 0;-}), wje = (e, t, n) => {- var r = lZ(e, t);- return r == null || typeof r.padding != "string" ? 0 : rQ(e, "xAxis", t, n, r.padding);-}, Tje = (e, t, n) => {- var r = fZ(e, t);- return r == null || typeof r.padding != "string" ? 0 : rQ(e, "yAxis", t, n, r.padding);-}, Eje = $(lZ, wje, (e, t) => {+}), BMe = (e, t, n) => {+ var r = kQ(e, t);+ return r == null || typeof r.padding != "string" ? 0 : C$(e, "xAxis", t, n, r.padding);+}, VMe = (e, t, n) => {+ var r = MQ(e, t);+ return r == null || typeof r.padding != "string" ? 0 : C$(e, "yAxis", t, n, r.padding);+}, HMe = $(kQ, BMe, (e, t) => {if (e == null) return {left: 0,right: 0@@ -63492,7 +66242,7 @@ var YZ = (e, t) => {left: (n.left ?? 0) + t,right: (n.right ?? 0) + t};-}), Dje = $(fZ, Tje, (e, t) => {+}), UMe = $(MQ, VMe, (e, t) => {if (e == null) return {top: 0,bottom: 0@@ -63505,98 +66255,98 @@ var YZ = (e, t) => {top: (n.top ?? 0) + t,bottom: (n.bottom ?? 0) + t};-}), Oje = $([- mW,- Eje,- vW,- _W,+}), WMe = $([+ MG,+ HMe,+ IG,+ FG,(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];-}), kje = $([- mW,- PW,- Dje,- vW,- _W,+}), GMe = $([+ MG,+ QG,+ UMe,+ IG,+ FG,(e, t, n) => n], (e, t, n, r, i, a) => {var { padding: o } = i;return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];-}), iQ = (e, t, n, r) => {+}), w$ = (e, t, n, r) => {switch (t) {- case "xAxis": return Oje(e, n, r);- case "yAxis": return kje(e, n, r);- case "zAxis": return pZ(e, n)?.range;- case "angleAxis": return Mq(e);- case "radiusAxis": return Nq(e, n);+ case "xAxis": return WMe(e, n, r);+ case "yAxis": return GMe(e, n, r);+ case "zAxis": return NQ(e, n)?.range;+ case "angleAxis": return XJ(e);+ case "radiusAxis": return ZJ(e, n);default: return;}-}, aQ = $([mZ, iQ], bq), oQ = $([- mZ,- $Z,- $([$Z, Cje], Gq),- aQ-], tZ), sQ = (e, t, n, r) => {+}, T$ = $([PQ, w$], RJ), E$ = $([+ PQ,+ y$,+ $([y$, zMe], lY),+ T$+], bQ), D$ = (e, t, n, r) => {if (n != null && n.dataKey != null) {var { type: i, scale: a } = n;- if (JU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);- }-}, cQ = $([- PW,- DZ,- hZ,- Fq-], sQ), lQ = $([oQ], Wq);-$([oQ], JAe), $([oQ, ije], rZ), $([- bZ,- BZ,- Fq-], lje);-function uQ(e, t) {+ if (fG(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);+ }+}, O$ = $([+ QG,+ qQ,+ FQ,+ $J+], D$), k$ = $([E$], cY);+$([E$], uMe), $([E$, bMe], CQ), $([+ BQ,+ o$,+ $J+], TMe);+function A$(e, t) {return e.id < t.id ? -1 : +(e.id > t.id);}-var dQ = (e, t) => t, fQ = (e, t, n) => n, Aje = $(uW, dQ, fQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(uQ)), jje = $(dW, dQ, fQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(uQ)), pQ = (e, t) => ({+var j$ = (e, t) => t, M$ = (e, t, n) => n, KMe = $(OG, j$, M$, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(A$)), qMe = $(kG, j$, M$, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(A$)), N$ = (e, t) => ({width: e.width,height: t.height-}), Mje = (e, t) => ({+}), JMe = (e, t) => ({width: typeof t.width == "number" ? t.width : 60,height: e.height-}), mQ = $(mW, lZ, pQ), Nje = (e, t, n) => {+}), P$ = $(MG, kQ, N$), YMe = (e, t, n) => {switch (t) {case "top": return e.top;case "bottom": return n - e.bottom;default: return 0;}-}, Pje = (e, t, n) => {+}, XMe = (e, t, n) => {switch (t) {case "left": return e.left;case "right": return n - e.right;default: return 0;}-}, Fje = $(cW, mW, Aje, dQ, fQ, (e, t, n, r, i) => {+}, ZMe = $(EG, MG, KMe, j$, M$, (e, t, n, r, i) => {var a = {}, o;return n.forEach((n) => {- var s = pQ(t, n);- o ??= Nje(t, r, e);+ var s = N$(t, n);+ o ??= YMe(t, r, e);var c = r === "top" && !i || r === "bottom" && i;a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;}), a;-}), Ije = $(sW, mW, jje, dQ, fQ, (e, t, n, r, i) => {+}), QMe = $(TG, MG, qMe, j$, M$, (e, t, n, r, i) => {var a = {}, o;return n.forEach((n) => {- var s = Mje(t, n);- o ??= Pje(t, r, e);+ var s = JMe(t, n);+ o ??= XMe(t, r, e);var c = r === "left" && !i || r === "right" && i;a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;}), a;-}), Lje = $([- mW,- lZ,+}), $Me = $([+ MG,+ kQ,(e, t) => {- var n = lZ(e, t);- if (n != null) return Fje(e, n.orientation, n.mirror);+ var n = kQ(e, t);+ if (n != null) return ZMe(e, n.orientation, n.mirror);},(e, t) => t], (e, t, n, r) => {@@ -63610,12 +66360,12 @@ var dQ = (e, t) => t, fQ = (e, t, n) => n, Aje = $(uW, dQ, fQ, (e, t, n) => e.fiy: i};}-}), Rje = $([- mW,- fZ,+}), eNe = $([+ MG,+ MQ,(e, t) => {- var n = fZ(e, t);- if (n != null) return Ije(e, n.orientation, n.mirror);+ var n = MQ(e, t);+ if (n != null) return QMe(e, n.orientation, n.mirror);},(e, t) => t], (e, t, n, r) => {@@ -63629,38 +66379,38 @@ var dQ = (e, t) => t, fQ = (e, t, n) => n, Aje = $(uW, dQ, fQ, (e, t, n) => e.fiy: e.top};}-}), hQ = $(mW, fZ, (e, t) => ({+}), F$ = $(MG, MQ, (e, t) => ({width: typeof t.width == "number" ? t.width : 60,height: e.height-})), gQ = (e, t, n) => {+})), I$ = (e, t, n) => {switch (t) {- case "xAxis": return mQ(e, n).width;- case "yAxis": return hQ(e, n).height;+ case "xAxis": return P$(e, n).width;+ case "yAxis": return F$(e, n).height;default: return;}-}, _Q = (e, t, n, r) => {+}, L$ = (e, t, n, r) => {if (n != null) {- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = JU(e, r), c = t.map((e) => e.value);- if (o && s && a === "category" && i && BB(c)) return c;- }-}, vQ = $([- PW,- DZ,- mZ,- Fq-], _Q), yQ = $([- PW,- $Ae,- $Z,- lQ,- vQ,- cQ,- iQ,- tQ,- Fq+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = fG(e, r), c = t.map((e) => e.value);+ if (o && s && a === "category" && i && iH(c)) return c;+ }+}, R$ = $([+ QG,+ qQ,+ PQ,+ $J+], L$), z$ = $([+ QG,+ hMe,+ y$,+ k$,+ R$,+ O$,+ w$,+ x$,+ $J], (e, t, n, r, i, a, o, s, c) => {if (t != null) {- var l = JU(e, c);+ var l = fG(e, c);return {angle: t.angle,interval: t.interval,@@ -63682,107 +66432,107 @@ var dQ = (e, t) => t, fQ = (e, t, n) => n, Aje = $(uW, dQ, fQ, (e, t, n) => e.fiscale: r};}-}), bQ = (e, t, n, r, i, a, o, s, c) => {+}), B$ = (e, t, n, r, i, a, o, s, c) => {if (t != null && r != null) {- var l = JU(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 ? PB(a[0] - a[1]) * 2 * m : m;+ var l = fG(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 ? QV(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 UU(i) ? {+ return sG(i) ? {index: t,coordinate: i + m,value: e,offset: m} : null;- }).filter(GB) : l && s ? s.map((e, t) => {+ }).filter(lH) : l && s ? s.map((e, t) => {var n = r.map(e);- return UU(n) ? {+ return sG(n) ? {coordinate: n + m,value: e,index: t,offset: m} : null;- }).filter(GB) : r.ticks ? r.ticks(f).map((e, t) => {+ }).filter(lH) : r.ticks ? r.ticks(f).map((e, t) => {var n = r.map(e);- return UU(n) ? {+ return sG(n) ? {coordinate: n + m,value: e,index: t,offset: m} : null;- }).filter(GB) : r.domain().map((e, t) => {+ }).filter(lH) : r.domain().map((e, t) => {var n = r.map(e);- return UU(n) ? {+ return sG(n) ? {coordinate: n + m,value: o ? o[e] : e,index: t,offset: m} : null;- }).filter(GB);- }-}, xQ = $([- PW,- hZ,- $Z,- lQ,- tQ,- iQ,- vQ,- cQ,- Fq-], bQ), SQ = (e, t, n, r, i, a, o) => {+ }).filter(lH);+ }+}, V$ = $([+ QG,+ FQ,+ y$,+ k$,+ x$,+ w$,+ R$,+ O$,+ $J+], B$), H$ = (e, t, n, r, i, a, o) => {if (t != null && n != null && r != null && r[0] !== r[1]) {- var s = JU(e, o), { tickCount: c } = t, l = 0;- return l = o === "angleAxis" && r?.length >= 2 ? PB(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {+ var s = fG(e, o), { tickCount: c } = t, l = 0;+ return l = o === "angleAxis" && r?.length >= 2 ? QV(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {var r = n.map(e);- return UU(r) ? {+ return sG(r) ? {coordinate: r + l,value: e,index: t,offset: l} : null;- }).filter(GB) : n.ticks ? n.ticks(c).map((e, t) => {+ }).filter(lH) : n.ticks ? n.ticks(c).map((e, t) => {var r = n.map(e);- return UU(r) ? {+ return sG(r) ? {coordinate: r + l,value: e,index: t,offset: l} : null;- }).filter(GB) : n.domain().map((e, t) => {+ }).filter(lH) : n.domain().map((e, t) => {var r = n.map(e);- return UU(r) ? {+ return sG(r) ? {coordinate: r + l,value: i ? i[e] : e,index: t,offset: l} : null;- }).filter(GB);- }-}, CQ = $([- PW,- hZ,- lQ,- iQ,- vQ,- cQ,- Fq-], SQ), wQ = $(mZ, lQ, (e, t) => {- if (e != null && t != null) return aZ(aZ({}, e), {}, { scale: t });+ }).filter(lH);+ }+}, U$ = $([+ QG,+ FQ,+ k$,+ w$,+ R$,+ O$,+ $J+], H$), W$ = $(PQ, k$, (e, t) => {+ if (e != null && t != null) return TQ(TQ({}, e), {}, { scale: t });});-$((e, t, n) => pZ(e, n), $([$([- mZ,- $Z,- QZ,- aQ-], tZ)], Wq), (e, t) => {- if (e != null && t != null) return aZ(aZ({}, e), {}, { scale: t });+$((e, t, n) => NQ(e, n), $([$([+ PQ,+ y$,+ v$,+ T$+], bQ)], cY), (e, t) => {+ if (e != null && t != null) return TQ(TQ({}, e), {}, { scale: t });});-var zje = $([- PW,- uW,- dW+var tNe = $([+ QG,+ OG,+ kG], (e, t, n) => {switch (e) {case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";@@ -63804,41 +66554,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {});//#endregion//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js-var TQ = (e) => e.options.defaultTooltipEventType, EQ = (e) => e.options.validateTooltipEventTypes;-function DQ(e, t, n) {+var G$ = (e) => e.options.defaultTooltipEventType, K$ = (e) => e.options.validateTooltipEventTypes;+function q$(e, t, n) {if (e == null) return t;var r = e ? "axis" : "item";return n == null ? t : n.includes(r) ? r : t;}-function OQ(e, t) {- return DQ(t, TQ(e), EQ(e));+function J$(e, t) {+ return q$(t, G$(e), K$(e));}-function Bje(e) {- return Q((t) => OQ(t, e));+function nNe(e) {+ return Q((t) => J$(t, e));}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js-var kQ = (e, t) => {+var Y$ = (e, t) => {var n, r = Number(t);- if (!(FB(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;-}, Vje = (e) => e.tooltip.settings, AQ = {+ if (!($V(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;+}, rNe = (e) => e.tooltip.settings, X$ = {active: !1,index: null,dataKey: void 0,graphicalItemId: void 0,coordinate: void 0-}, jQ = mU({+}, Z$ = MW({name: "tooltip",initialState: {itemInteraction: {- click: AQ,- hover: AQ+ click: X$,+ hover: X$},axisInteraction: {- click: AQ,- hover: AQ+ click: X$,+ hover: X$},- keyboardInteraction: AQ,+ keyboardInteraction: X$,syncInteraction: {active: !1,index: null,@@ -63860,23 +66610,23 @@ var kQ = (e, t) => {reducers: {addTooltipEntrySettings: {reducer(e, t) {- e.tooltipItemPayloads.push(TG(t.payload));+ e.tooltipItemPayloads.push(UK(t.payload));},- prepare: uU()+ prepare: OW()},replaceTooltipEntrySettings: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = tU(e).tooltipItemPayloads.indexOf(TG(n));- i > -1 && (e.tooltipItemPayloads[i] = TG(r));+ var { prev: n, next: r } = t.payload, i = yW(e).tooltipItemPayloads.indexOf(UK(n));+ i > -1 && (e.tooltipItemPayloads[i] = UK(r));},- prepare: uU()+ prepare: OW()},removeTooltipEntrySettings: {reducer(e, t) {- var n = tU(e).tooltipItemPayloads.indexOf(TG(t.payload));+ var n = yW(e).tooltipItemPayloads.indexOf(UK(t.payload));n > -1 && e.tooltipItemPayloads.splice(n, 1);},- prepare: uU()+ prepare: OW()},setTooltipSettingsState(e, t) {e.settings = t.payload;@@ -63906,10 +66656,10 @@ var kQ = (e, t) => {e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;}}-}), { addTooltipEntrySettings: Hje, replaceTooltipEntrySettings: Uje, removeTooltipEntrySettings: Wje, setTooltipSettingsState: Gje, setActiveMouseOverItemIndex: MQ, mouseLeaveItem: Kje, mouseLeaveChart: NQ, setActiveClickItemIndex: qje, setMouseOverAxisIndex: PQ, setMouseClickAxisIndex: Jje, setSyncInteraction: FQ, setKeyboardInteraction: IQ } = jQ.actions, Yje = jQ.reducer;+}), { addTooltipEntrySettings: iNe, replaceTooltipEntrySettings: aNe, removeTooltipEntrySettings: oNe, setTooltipSettingsState: sNe, setActiveMouseOverItemIndex: Q$, mouseLeaveItem: cNe, mouseLeaveChart: $$, setActiveClickItemIndex: lNe, setMouseOverAxisIndex: e1, setMouseClickAxisIndex: uNe, setSyncInteraction: t1, setKeyboardInteraction: n1 } = Z$.actions, dNe = Z$.reducer;//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js-function LQ(e, t) {+function r1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -63919,30 +66669,30 @@ function LQ(e, t) {}return n;}-function RQ(e) {+function i1(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? LQ(Object(n), !0).forEach(function(t) {- Xje(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LQ(Object(n)).forEach(function(t) {+ t % 2 ? r1(Object(n), !0).forEach(function(t) {+ fNe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Xje(e, t, n) {- return (t = Zje(t)) in e ? Object.defineProperty(e, t, {+function fNe(e, t, n) {+ return (t = pNe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Zje(e) {- var t = Qje(e, "string");+function pNe(e) {+ var t = mNe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Qje(e, t) {+function mNe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -63952,22 +66702,22 @@ function Qje(e, t) {}return (t === "string" ? String : Number)(e);}-function $je(e, t, n) {+function hNe(e, t, n) {return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;}-function eMe(e) {+function gNe(e) {return e.index != null;}-var zQ = (e, t, n, r) => {- if (t == null) return AQ;- var i = $je(e, t, n);- if (i == null) return AQ;+var a1 = (e, t, n, r) => {+ if (t == null) return X$;+ var i = hNe(e, t, n);+ if (i == null) return X$;if (i.active) return i;if (e.keyboardInteraction.active) return e.keyboardInteraction;if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;var a = e.settings.active === !0;- if (eMe(i)) {- if (a) return RQ(RQ({}, i), {}, { active: !0 });+ if (gNe(i)) {+ if (a) return i1(i1({}, i), {}, { active: !0 });} else if (r != null) return {active: !0,coordinate: void 0,@@ -63975,11 +66725,11 @@ var zQ = (e, t, n, r) => {index: r,graphicalItemId: void 0};- return RQ(RQ({}, AQ), {}, { coordinate: i.coordinate });+ return i1(i1({}, X$), {}, { coordinate: i.coordinate });};//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js-function tMe(e) {+function _Ne(e) {if (typeof e == "number") return Number.isFinite(e) ? e : void 0;if (e instanceof Date) {var t = e.valueOf();@@ -63988,25 +66738,25 @@ function tMe(e) {var n = Number(e);return Number.isFinite(n) ? n : void 0;}-function nMe(e, t) {- var n = tMe(e), r = t[0], i = t[1];+function vNe(e, t) {+ var n = _Ne(e), r = t[0], i = t[1];return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);}-function rMe(e, t, n) {+function yNe(e, t, n) {if (n == null || t == null) return !0;- var r = qU(e, t);- return r == null || !YK(n) || nMe(r, n);+ var r = dG(e, t);+ return r == null || !pJ(n) || vNe(r, n);}-var BQ = (e, t, n, r) => {+var o1 = (e, t, n, r) => {var i = e?.index;if (i == null) return null;var a = Number(i);- if (!UU(a)) return i;+ if (!sG(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];- return l == null || rMe(l, n, r) ? String(c) : null;-}, VQ = (e, t, n, r, i, a, o) => {+ return l == null || yNe(l, n, r) ? String(c) : null;+}, s1 = (e, t, n, r, i, a, o) => {if (a != null) {var s = o[0]?.getPosition(a);if (s != null) return s;@@ -64022,7 +66772,7 @@ var BQ = (e, t, n, r) => {};}}-}, HQ = (e, t, n, r) => {+}, c1 = (e, t, n, r) => {if (t === "axis") return e.tooltipItemPayloads;if (e.tooltipItemPayloads.length === 0) return [];var i = n === "hover" ? e.itemInteraction.hover.graphicalItemId : e.itemInteraction.click.graphicalItemId;@@ -64032,10 +66782,10 @@ var BQ = (e, t, n, r) => {return a == null ? [] : [a];}return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);-}, UQ = (e) => e.options.tooltipPayloadSearcher, WQ = (e) => e.tooltip;+}, l1 = (e) => e.options.tooltipPayloadSearcher, u1 = (e) => e.tooltip;//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js-function GQ(e, t) {+function d1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64045,30 +66795,30 @@ function GQ(e, t) {}return n;}-function KQ(e) {+function f1(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? GQ(Object(n), !0).forEach(function(t) {- iMe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GQ(Object(n)).forEach(function(t) {+ t % 2 ? d1(Object(n), !0).forEach(function(t) {+ bNe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function iMe(e, t, n) {- return (t = aMe(t)) in e ? Object.defineProperty(e, t, {+function bNe(e, t, n) {+ return (t = xNe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function aMe(e) {- var t = oMe(e, "string");+function xNe(e) {+ var t = SNe(e, "string");return typeof t == "symbol" ? t : t + "";}-function oMe(e, t) {+function SNe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -64078,222 +66828,222 @@ function oMe(e, t) {}return (t === "string" ? String : Number)(e);}-function sMe(e) {+function CNe(e) {if (typeof e == "string" || typeof e == "number") return e;}-function cMe(e) {+function wNe(e) {if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;}-function lMe(e) {+function TNe(e) {if (typeof e == "string" || typeof e == "number") return e;if (typeof e == "function") return (t) => e(t);}-function qQ(e) {+function p1(e) {if (typeof e == "string") return e;}-function uMe(e) {+function ENe(e) {if (!(typeof e != "object" || !e)) return {- name: "name" in e ? sMe(e.name) : void 0,- unit: "unit" in e ? cMe(e.unit) : void 0,- dataKey: "dataKey" in e ? lMe(e.dataKey) : void 0,+ name: "name" in e ? CNe(e.name) : void 0,+ unit: "unit" in e ? wNe(e.unit) : void 0,+ dataKey: "dataKey" in e ? TNe(e.dataKey) : void 0,payload: "payload" in e ? e.payload : void 0,- color: "color" in e ? qQ(e.color) : void 0,- fill: "fill" in e ? qQ(e.fill) : void 0+ color: "color" in e ? p1(e.color) : void 0,+ fill: "fill" in e ? p1(e.fill) : void 0};}-function dMe(e, t) {+function DNe(e, t) {return e ?? t;}-var JQ = (e, t, n, r, i, a, o) => {+var m1 = (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 = dMe(d, s), m = Array.isArray(p) ? HU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? HB(m, r, i) : a(m, t, c, g);+ var { dataDefinedOnItem: d, settings: f } = n, p = DNe(d, s), m = Array.isArray(p) ? oG(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oH(m, r, i) : a(m, t, c, g);return Array.isArray(_) ? _.forEach((t) => {- var n = uMe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = KQ(KQ({}, f), {}, {+ var n = ENe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = f1(f1({}, f), {}, {name: r,unit: n?.unit,color: n?.color ?? f?.color,fill: n?.fill ?? f?.fill});- e.push(aW({+ e.push(CG({tooltipEntrySettings: o,dataKey: i,payload: a,- value: qU(a, i),+ value: dG(a, i),name: r == null ? void 0 : String(r)}));- }) : e.push(aW({+ }) : e.push(CG({tooltipEntrySettings: f,dataKey: h,payload: _,- value: qU(_, h),- name: qU(_, g) ?? f?.name+ value: dG(_, h),+ name: dG(_, g) ?? f?.name})), e;}, []);}-}, YQ = $([- MZ,- gZ,- pq-], nZ), XQ = $([+}, h1 = $([+ QQ,+ IQ,+ jJ+], SQ), g1 = $([$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),- MZ,- $([Hq, Uq], _Z)-], yZ, { memoizeOptions: { resultEqualityCheck: Vq } }), fMe = $([XQ], (e) => e.filter(zq)), ZQ = $([$([XQ], CZ, { memoizeOptions: { resultEqualityCheck: Vq } }), GK], wZ), pMe = $([- fMe,- GK,- MZ-], Rq), QQ = $([- ZQ,- MZ,- XQ-], EZ), $Q = $([MZ], LZ), e$ = $([$Q, $([MZ], (e) => e.allowDataOverflow)], ZK), mMe = $([+ QQ,+ $([oY, sY], LQ)+], zQ, { memoizeOptions: { resultEqualityCheck: aY } }), ONe = $([g1], (e) => e.filter(rY)), _1 = $([$([g1], UQ, { memoizeOptions: { resultEqualityCheck: aY } }), lJ], WQ), kNe = $([+ ONe,+ lJ,+], nY), v1 = $([+ _1,+ QQ,+ g1+], KQ), y1 = $([QQ], r$), b1 = $([y1, $([QQ], (e) => e.allowDataOverflow)], hJ), ANe = $([$([- pMe,- $([XQ], (e) => e.filter(zq)),- dq,- fq- ], PZ),- GK,- Hq,- e$-], IZ), hMe = $([- ZQ,- MZ,- $([XQ], SZ),- BZ,- Hq-], HZ, { memoizeOptions: { resultEqualityCheck: Bq } }), gMe = $([$([- UZ,- Hq,- Uq-], WZ), Hq], qZ), _Me = $([$([- GZ,- Hq,- Uq-], WZ), Hq], JZ), t$ = $([- MZ,- PW,- ZQ,+ kNe,+ $([g1], (e) => e.filter(rY)),+ kJ,+ AJ+ ], e$),+ lJ,+ oY,+ b1+], n$), jNe = $([+ _1,+ QQ,+ $([g1], HQ),+ o$,+ oY+], c$, { memoizeOptions: { resultEqualityCheck: iY } }), MNe = $([$([+ l$,+ oY,+ sY+], u$), oY], p$), NNe = $([$([+ d$,+ oY,+ sY+], u$), oY], m$), x1 = $([QQ,- dq,- Hq,+ QG,+ _1,+ v1,+ kJ,+ oY,$([- MZ,- $Q,- e$,- mMe,- hMe,+ QQ,+ y1,+ b1,+ ANe,+ jNe,$([- gMe,+ MNe,$([$([- KZ,- Hq,- Uq- ], WZ), Hq], YZ),- _Me- ], VZ),- PW,- Hq- ], XZ)-], ZZ), vMe = $([- MZ,- t$,+ f$,+ oY,+ sY+ ], u$), oY], h$),+ NNe+ ], s$),+ QG,+ oY+ ], g$)+], _$), PNe = $([+ QQ,+ x1,$([- t$,- MZ,- YQ- ], eQ),- Hq-], nQ), n$ = (e) => iQ(e, Hq(e), Uq(e), !1), r$ = $([MZ, n$], bq), i$ = $([$([- MZ,- YQ,- vMe,- r$-], tZ)], Wq), a$ = $([- PW,- MZ,- YQ,- i$,- n$,+ x1,+ QQ,+ h1+ ], b$),+ oY+], S$), S1 = (e) => w$(e, oY(e), sY(e), !1), C1 = $([QQ, S1], RJ), w1 = $([$([+ QQ,+ h1,+ PNe,+ C1+], bQ)], cY), T1 = $([+ QG,+ QQ,+ h1,+ w1,+ S1,$([- PW,+ QG,+ v1,QQ,- MZ,- Hq- ], _Q),+ oY+ ], L$),$([- PW,+ QG,+ v1,QQ,- MZ,- Hq- ], sQ),- Hq+ oY+ ], D$),+ oY], (e, t, n, r, i, a, o, s) => {if (t) {- var { type: c } = t, l = JU(e, s);+ var { type: c } = t, l = fG(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 ? PB(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? QV(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {var n = r.map(e);- return UU(n) ? {+ return sG(n) ? {coordinate: n + d,value: e,index: t,offset: d} : null;- }).filter(GB) : r.domain().map((e, t) => {+ }).filter(lH) : r.domain().map((e, t) => {var n = r.map(e);- return UU(n) ? {+ return sG(n) ? {coordinate: n + d,value: a ? a[e] : e,index: t,offset: d} : null;- }).filter(GB);- }- }-}), o$ = $([- TQ,- EQ,- Vje-], (e, t, n) => DQ(n.shared, e, t)), s$ = (e) => e.tooltip.settings.trigger, c$ = (e) => e.tooltip.settings.defaultIndex, l$ = $([- WQ,- o$,- s$,- c$-], zQ), u$ = $([- l$,- ZQ,- NZ,- t$-], BQ), d$ = $([a$, u$], kQ), f$ = $([l$], (e) => {+ }).filter(lH);+ }+ }+}), E1 = $([+ G$,+ K$,+ rNe+], (e, t, n) => q$(n.shared, e, t)), D1 = (e) => e.tooltip.settings.trigger, O1 = (e) => e.tooltip.settings.defaultIndex, k1 = $([+ u1,+ E1,+ D1,+ O1+], a1), A1 = $([+ k1,+ _1,+ $Q,+ x1+], o1), j1 = $([T1, A1], Y$), M1 = $([k1], (e) => {if (e) return e.dataKey;-}), yMe = $([l$], (e) => {+}), FNe = $([k1], (e) => {if (e) return e.graphicalItemId;-}), p$ = $([- WQ,- o$,- s$,- c$-], HQ), bMe = $([l$, $([- sW,- cW,- PW,- mW,- a$,- c$,- p$-], VQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), xMe = $([l$], (e) => e?.active ?? !1), SMe = $([$([- p$,- u$,- GK,- NZ,- d$,- UQ,- o$-], JQ)], (e) => {+}), N1 = $([+ u1,+ E1,+ D1,+ O1+], c1), INe = $([k1, $([+ TG,+ EG,+ QG,+ MG,+ T1,+ O1,+ N1+], s1)], (e, t) => e != null && e.coordinate ? e.coordinate : t), LNe = $([k1], (e) => e?.active ?? !1), RNe = $([$([+ N1,+ A1,+ lJ,+ $Q,+ j1,+ l1,+ E1+], m1)], (e) => {if (e != null) {var t = e.map((e) => e.payload).filter((e) => e != null);return Array.from(new Set(t));@@ -64301,7 +67051,7 @@ var JQ = (e, t, n, r, i, a, o) => {});//#endregion//#region node_modules/recharts/es6/context/useTooltipAxis.js-function m$(e, t) {+function P1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64311,30 +67061,30 @@ function m$(e, t) {}return n;}-function h$(e) {+function F1(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? m$(Object(n), !0).forEach(function(t) {- CMe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m$(Object(n)).forEach(function(t) {+ t % 2 ? P1(Object(n), !0).forEach(function(t) {+ zNe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function CMe(e, t, n) {- return (t = wMe(t)) in e ? Object.defineProperty(e, t, {+function zNe(e, t, n) {+ return (t = BNe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function wMe(e) {- var t = TMe(e, "string");+function BNe(e) {+ var t = VNe(e, "string");return typeof t == "symbol" ? t : t + "";}-function TMe(e, t) {+function VNe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -64344,13 +67094,13 @@ function TMe(e, t) {}return (t === "string" ? String : Number)(e);}-var EMe = () => Q(MZ), DMe = () => {- var e = EMe(), t = Q(a$), n = Q(i$);- return iW(!e || !n ? void 0 : h$(h$({}, e), {}, { scale: n }), t);+var HNe = () => Q(QQ), UNe = () => {+ var e = HNe(), t = Q(T1), n = Q(w1);+ return SG(!e || !n ? void 0 : F1(F1({}, e), {}, { scale: n }), t);};//#endregion//#region node_modules/recharts/es6/util/getActiveCoordinate.js-function g$(e, t) {+function I1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64360,30 +67110,30 @@ function g$(e, t) {}return n;}-function _$(e) {+function L1(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? g$(Object(n), !0).forEach(function(t) {- OMe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g$(Object(n)).forEach(function(t) {+ t % 2 ? I1(Object(n), !0).forEach(function(t) {+ WNe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function OMe(e, t, n) {- return (t = kMe(t)) in e ? Object.defineProperty(e, t, {+function WNe(e, t, n) {+ return (t = GNe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function kMe(e) {- var t = AMe(e, "string");+function GNe(e) {+ var t = KNe(e, "string");return typeof t == "symbol" ? t : t + "";}-function AMe(e, t) {+function KNe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -64393,7 +67143,7 @@ function AMe(e, t) {}return (t === "string" ? String : Number)(e);}-var jMe = (e, t, n, r) => {+var qNe = (e, t, n, r) => {var i = t.find((e) => e && e.index === n);if (i) {if (e === "horizontal") return {@@ -64409,18 +67159,18 @@ var jMe = (e, t, n, r) => {x: 0,y: 0};-}, MMe = (e, t, n, r) => {+}, JNe = (e, t, n, r) => {var i = t.find((e) => e && e.index === n);if (i) {if (e === "centric") {var a = i.coordinate, { radius: o } = r;- return _$(_$(_$({}, r), IK(r.cx, r.cy, o, a)), {}, {+ return L1(L1(L1({}, r), eJ(r.cx, r.cy, o, a)), {}, {angle: a,radius: o});}var s = i.coordinate, { angle: c } = r;- return _$(_$(_$({}, r), IK(r.cx, r.cy, s, c)), {}, {+ return L1(L1(L1({}, r), eJ(r.cx, r.cy, s, c)), {}, {angle: c,radius: s});@@ -64439,19 +67189,19 @@ var jMe = (e, t, n, r) => {y: 0};};-function NMe(e, t) {+function YNe(e, t) {var { relativeX: n, relativeY: r } = e;return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;}-var v$ = (e, t, n, r, i) => {+var R1 = (e, t, n, r, i) => {var a = t?.length ?? 0;if (a <= 1 || e == null) return 0;if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;if (s != null && c != null && l != null) {- if (PB(c - s) !== PB(l - c)) {+ if (QV(c - s) !== QV(l - c)) {var d = [];- if (PB(l - c) === PB(i[1] - i[0])) {+ if (QV(l - c) === QV(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);@@ -64476,78 +67226,78 @@ var v$ = (e, t, n, r, i) => {}}return -1;-}, y$ = () => Q(pq), b$ = (e, t) => t, x$ = (e, t, n) => n, S$ = (e, t, n, r) => r, PMe = $(a$, (e) => LV(e, (e) => e.coordinate)), C$ = $([- WQ,- b$,- x$,- S$-], zQ), w$ = $([- C$,- ZQ,- NZ,- t$-], BQ), FMe = (e, t, n) => {+}, z1 = () => Q(jJ), B1 = (e, t) => t, V1 = (e, t, n) => n, H1 = (e, t, n, r) => r, XNe = $(T1, (e) => tU(e, (e) => e.coordinate)), U1 = $([+ u1,+ B1,+ V1,+ H1+], a1), W1 = $([+ U1,+ _1,+ $Q,+ x1+], o1), ZNe = (e, t, n) => {if (t != null) {- var r = WQ(e);+ var r = u1(e);return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;}-}, T$ = $([- WQ,- b$,- x$,- S$-], HQ), E$ = $([- sW,- cW,- PW,- mW,- a$,- S$,- T$-], VQ), IMe = $([C$, E$], (e, t) => e.coordinate ?? t), D$ = $([a$, w$], kQ), LMe = $([- T$,- w$,- GK,- NZ,- D$,- UQ,- b$-], JQ), RMe = $([C$, w$], (e, t) => ({+}, G1 = $([+ u1,+ B1,+ V1,+ H1+], c1), K1 = $([+ TG,+ EG,+ QG,+ MG,+ T1,+ H1,+ G1+], s1), QNe = $([U1, K1], (e, t) => e.coordinate ?? t), q1 = $([T1, W1], Y$), $Ne = $([+ G1,+ W1,+ lJ,+ $Q,+ q1,+ l1,+ B1+], m1), ePe = $([U1, W1], (e, t) => ({isActive: e.active && t != null,activeIndex: t-})), zMe = (e, t, n, r, i, a, o) => {- if (!(!e || !n || !r || !i) && NMe(e, o)) {- var s = v$(lTe(e, t), a, i, n, r), c = jMe(t, i, s, e);+})), tPe = (e, t, n, r, i, a, o) => {+ if (!(!e || !n || !r || !i) && YNe(e, o)) {+ var s = R1(DEe(e, t), a, i, n, r), c = qNe(t, i, s, e);return {activeIndex: String(s),activeCoordinate: c};}-}, BMe = (e, t, n, r, i, a, o) => {+}, nPe = (e, t, n, r, i, a, o) => {if (!(!e || !r || !i || !a || !n)) {- var s = $De(e, n);+ var s = _ke(e, n);if (s) {- var c = v$(uTe(s, t), o, a, r, i), l = MMe(t, a, c, s);+ var c = R1(OEe(s, t), o, a, r, i), l = JNe(t, a, c, s);return {activeIndex: String(c),activeCoordinate: l};}}-}, VMe = (e, t, n, r, i, a, o, s) => {- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? zMe(e, t, r, i, a, o, s) : BMe(e, t, n, r, i, a, o);-}, HMe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {+}, rPe = (e, t, n, r, i, a, o, s) => {+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? tPe(e, t, r, i, a, o, s) : nPe(e, t, n, r, i, a, o);+}, iPe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {if (t != null) {var r = e[t];if (r != null) return n ? r.panoramaElement : r.element;}-}), UMe = $((e) => e.zIndex.zIndexMap, (e) => {- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(_q));+}), aPe = $((e) => e.zIndex.zIndexMap, (e) => {+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(FJ));return Array.from(new Set(t)).sort((e, t) => e - t);-}, { memoizeOptions: { resultEqualityCheck: bOe } });+}, { memoizeOptions: { resultEqualityCheck: Rke } });//#endregion//#region node_modules/recharts/es6/state/zIndexSlice.js-function O$(e, t) {+function J1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64557,30 +67307,30 @@ function O$(e, t) {}return n;}-function k$(e) {+function Y1(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? O$(Object(n), !0).forEach(function(t) {- WMe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O$(Object(n)).forEach(function(t) {+ t % 2 ? J1(Object(n), !0).forEach(function(t) {+ oPe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function WMe(e, t, n) {- return (t = GMe(t)) in e ? Object.defineProperty(e, t, {+function oPe(e, t, n) {+ return (t = sPe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function GMe(e) {- var t = KMe(e, "string");+function sPe(e) {+ var t = cPe(e, "string");return typeof t == "symbol" ? t : t + "";}-function KMe(e, t) {+function cPe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -64590,17 +67340,17 @@ function KMe(e, t) {}return (t === "string" ? String : Number)(e);}-var qMe = { zIndexMap: Object.values(_q).reduce((e, t) => k$(k$({}, e), {}, { [t]: {+var lPe = { zIndexMap: Object.values(FJ).reduce((e, t) => Y1(Y1({}, e), {}, { [t]: {element: void 0,panoramaElement: void 0,consumers: 0-} }), {}) }, JMe = new Set(Object.values(_q));-function YMe(e) {- return JMe.has(e);+} }), {}) }, uPe = new Set(Object.values(FJ));+function dPe(e) {+ return uPe.has(e);}-var A$ = mU({+var X1 = MW({name: "zIndex",- initialState: qMe,+ initialState: lPe,reducers: {registerZIndexPortal: {reducer: (e, t) => {@@ -64611,61 +67361,61 @@ var A$ = mU({panoramaElement: void 0};},- prepare: uU()+ prepare: OW()},unregisterZIndexPortal: {reducer: (e, t) => {var { zIndex: n } = t.payload;- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !YMe(n) && delete e.zIndexMap[n]);+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !dPe(n) && delete e.zIndexMap[n]);},- prepare: uU()+ prepare: OW()},registerZIndexPortalElement: {reducer: (e, t) => {var { zIndex: n, element: r, isPanorama: i } = t.payload;- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = TG(r) : e.zIndexMap[n].element = TG(r) : e.zIndexMap[n] = {+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = UK(r) : e.zIndexMap[n].element = UK(r) : e.zIndexMap[n] = {consumers: 0,- element: i ? void 0 : TG(r),- panoramaElement: i ? TG(r) : void 0+ element: i ? void 0 : UK(r),+ panoramaElement: i ? UK(r) : void 0};},- prepare: uU()+ prepare: OW()},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: uU()+ prepare: OW()}}-}), { registerZIndexPortal: XMe, unregisterZIndexPortal: ZMe, registerZIndexPortalElement: QMe, unregisterZIndexPortalElement: $Me } = A$.actions, eNe = A$.reducer;+}), { registerZIndexPortal: fPe, unregisterZIndexPortal: pPe, registerZIndexPortalElement: mPe, unregisterZIndexPortalElement: hPe } = X1.actions, gPe = X1.reducer;//#endregion//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js-function j$(e) {- var { zIndex: t, children: n } = e, r = zTe() && t !== void 0 && t !== 0, i = gW(), a = kV();- (0, B.useLayoutEffect)(() => r ? (a(XMe({ zIndex: t })), () => {- a(ZMe({ zIndex: t }));- }) : KB, [+function Z1(e) {+ var { zIndex: t, children: n } = e, r = rDe() && t !== void 0 && t !== 0, i = PG(), a = qH();+ (0, B.useLayoutEffect)(() => r ? (a(fPe({ zIndex: t })), () => {+ a(pPe({ zIndex: t }));+ }) : uH, [a,t,r]);- var o = Q((e) => HMe(e, t, i));+ var o = Q((e) => iPe(e, t, i));return r ? o ? /*#__PURE__*/ (0, $f.createPortal)(n, o) : null : n;}//#endregion//#region node_modules/recharts/es6/component/Cursor.js-function M$() {- return M$ = Object.assign ? Object.assign.bind() : function(e) {+function Q1() {+ return Q1 = 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;- }, M$.apply(null, arguments);+ }, Q1.apply(null, arguments);}-function N$(e, t) {+function $1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64675,30 +67425,30 @@ function N$(e, t) {}return n;}-function P$(e) {+function e0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? N$(Object(n), !0).forEach(function(t) {- tNe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N$(Object(n)).forEach(function(t) {+ t % 2 ? $1(Object(n), !0).forEach(function(t) {+ _Pe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function tNe(e, t, n) {- return (t = nNe(t)) in e ? Object.defineProperty(e, t, {+function _Pe(e, t, n) {+ return (t = vPe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function nNe(e) {- var t = rNe(e, "string");+function vPe(e) {+ var t = yPe(e, "string");return typeof t == "symbol" ? t : t + "";}-function rNe(e, t) {+function yPe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -64708,18 +67458,18 @@ function rNe(e, t) {}return (t === "string" ? String : Number)(e);}-function iNe(e) {+function bPe(e) {var { cursor: t, cursorComp: n, cursorProps: r } = e;return /*#__PURE__*/ (0, B.isValidElement)(t) ? /*#__PURE__*/ (0, B.cloneElement)(t, r) : /*#__PURE__*/ (0, B.createElement)(n, r);}-function aNe(e) {+function xPe(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 = rDe, h = _q.cursorLine;- else if (l === "BarChart") p = iDe(o, u, i, a), m = jK, h = _q.cursorRectangle;- else if (o === "radial" && QB(u)) {- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = LK(u);+ if (l === "ScatterChart") p = u, m = xOe, h = FJ.cursorLine;+ else if (l === "BarChart") p = SOe(o, u, i, a), m = Yq, h = FJ.cursorRectangle;+ else if (o === "radial" && gH(u)) {+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = tJ(u);p = {cx: g,cy: _,@@ -64727,25 +67477,25 @@ function aNe(e) {endAngle: b,innerRadius: v,outerRadius: v- }, m = HK, h = _q.cursorLine;- } else p = { points: uOe(o, u, i) }, m = iK, h = _q.cursorLine;- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = P$(P$(P$(P$({+ }, m = oJ, h = FJ.cursorLine;+ } else p = { points: Oke(o, u, i) }, m = Sq, h = FJ.cursorLine;+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = e0(e0(e0(e0({stroke: "#ccc",pointerEvents: "none"- }, i), p), Dz(s)), {}, {+ }, i), p), WB(s)), {}, {payload: d,payloadIndex: f,className: _h("recharts-tooltip-cursor", x)});- return /*#__PURE__*/ B.createElement(j$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(iNe, {+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(bPe, {cursor: s,cursorComp: m,cursorProps: S}));}-function oNe(e) {- var t = DMe(), n = jW(), r = FW(), i = y$();- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(aNe, M$({}, e, {+function SPe(e) {+ var t = UNe(), n = YG(), r = $G(), i = z1();+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(xPe, Q1({}, e, {offset: n,layout: r,tooltipAxisBandSize: t,@@ -64754,7 +67504,7 @@ function oNe(e) {}//#endregion//#region node_modules/recharts/es6/context/tooltipPortalContext.js-var F$ = /*#__PURE__*/ (0, B.createContext)(null), sNe = () => (0, B.useContext)(F$), cNe = (/* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {+var t0 = /*#__PURE__*/ (0, B.createContext)(null), CPe = () => (0, B.useContext)(t0), wPe = (/* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {var n = Object.prototype.hasOwnProperty, r = "~";function i() {}Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));@@ -64841,12 +67591,12 @@ var F$ = /*#__PURE__*/ (0, B.createContext)(null), sNe = () => (0, B.useContext)var t;return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);-})))(), 1)).default, I$ = new cNe(), L$ = "recharts.syncEvent.tooltip", R$ = "recharts.syncEvent.brush", z$ = (e, t) => {+})))(), 1)).default, n0 = new wPe(), r0 = "recharts.syncEvent.tooltip", i0 = "recharts.syncEvent.brush", a0 = (e, t) => {if (t && Array.isArray(e)) {var n = Number.parseInt(t, 10);- if (!FB(n)) return e[n];+ if (!$V(n)) return e[n];}-}, B$ = mU({+}, o0 = MW({name: "options",initialState: {chartName: "",@@ -64857,13 +67607,13 @@ var F$ = /*#__PURE__*/ (0, B.createContext)(null), sNe = () => (0, B.useContext)reducers: { createEventEmitter: (e) => {e.eventEmitter ??= Symbol("rechartsEventEmitter");} }-}), lNe = B$.reducer, { createEventEmitter: uNe } = B$.actions;+}), TPe = o0.reducer, { createEventEmitter: EPe } = o0.actions;//#endregion//#region node_modules/recharts/es6/synchronisation/syncSelectors.js-function dNe(e) {+function DPe(e) {return e.tooltip.syncInteraction;}-var V$ = mU({+var s0 = MW({name: "chartData",initialState: {chartData: void 0,@@ -64873,7 +67623,7 @@ var V$ = mU({},reducers: {setChartData(e, t) {- if (e.chartData = TG(t.payload), t.payload == null) {+ if (e.chartData = UK(t.payload), t.payload == null) {e.dataStartIndex = 0, e.dataEndIndex = 0;return;}@@ -64887,8 +67637,8 @@ var V$ = mU({n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);}}-}), { setChartData: H$, setDataStartEndIndexes: fNe, setComputedData: pNe } = V$.actions, mNe = V$.reducer, hNe = ["x", "y"];-function U$(e, t) {+}), { setChartData: c0, setDataStartEndIndexes: OPe, setComputedData: kPe } = s0.actions, APe = s0.reducer, jPe = ["x", "y"];+function l0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64898,30 +67648,30 @@ function U$(e, t) {}return n;}-function W$(e) {+function u0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? U$(Object(n), !0).forEach(function(t) {- gNe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U$(Object(n)).forEach(function(t) {+ t % 2 ? l0(Object(n), !0).forEach(function(t) {+ MPe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function gNe(e, t, n) {- return (t = _Ne(t)) in e ? Object.defineProperty(e, t, {+function MPe(e, t, n) {+ return (t = NPe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function _Ne(e) {- var t = vNe(e, "string");+function NPe(e) {+ var t = PPe(e, "string");return typeof t == "symbol" ? t : t + "";}-function vNe(e, t) {+function PPe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -64931,16 +67681,16 @@ function vNe(e, t) {}return (t === "string" ? String : Number)(e);}-function yNe(e, t) {+function FPe(e, t) {if (e == null) return {};- var n, r, i = bNe(e, t);+ var n, r, i = IPe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function bNe(e, t) {+function IPe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -64949,20 +67699,20 @@ function bNe(e, t) {}return n;}-function xNe() {- var e = Q(mq), t = Q(gq), n = kV(), r = Q(hq), i = Q(a$), a = FW(), o = AW(), s = Q((e) => e.rootProps.className);+function LPe() {+ var e = Q(MJ), t = Q(PJ), n = qH(), r = Q(NJ), i = Q(T1), a = $G(), o = JG(), s = Q((e) => e.rootProps.className);(0, B.useEffect)(() => {- if (e == null) return KB;+ if (e == null) return uH;var s = (s, c, l) => {if (t !== l && e === s) {if (r === "index") {var u;if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {- var d = c.payload.coordinate, { x: f, y: p } = d, m = yNe(d, hNe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = W$(W$({}, m), {}, {+ var d = c.payload.coordinate, { x: f, y: p } = d, m = FPe(d, jPe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = u0(u0({}, m), {}, {x: o.x + (_ ? (f - h) / _ : 0) * o.width,y: o.y + (v ? (p - g) / v : 0) * o.height});- n(W$(W$({}, c), {}, { payload: W$(W$({}, c.payload), {}, { coordinate: y }) }));+ n(u0(u0({}, c), {}, { payload: u0(u0({}, c.payload), {}, { coordinate: y }) }));} else n(c);return;}@@ -64978,7 +67728,7 @@ function xNe() {})] : r === "value" && (b = i.find((e) => String(e.value) === c.payload.label));var { coordinate: x } = c.payload;if (b == null || c.payload.active === !1 || x == null || o == null) {- n(FQ({+ n(t1({active: !1,coordinate: void 0,dataKey: void 0,@@ -64993,7 +67743,7 @@ function xNe() {x: a === "horizontal" ? b.coordinate : w,y: a === "horizontal" ? T : b.coordinate};- n(FQ({+ n(t1({active: c.payload.active,coordinate: E,dataKey: c.payload.dataKey,@@ -65005,8 +67755,8 @@ function xNe() {}}};- return I$.on(L$, s), () => {- I$.off(L$, s);+ return n0.on(r0, s), () => {+ n0.off(r0, s);};}, [s,@@ -65019,15 +67769,15 @@ function xNe() {o]);}-function SNe() {- var e = Q(mq), t = Q(gq), n = kV();+function RPe() {+ var e = Q(MJ), t = Q(PJ), n = qH();(0, B.useEffect)(() => {- if (e == null) return KB;+ if (e == null) return uH;var r = (r, i, a) => {- t !== a && e === r && n(fNe(i));+ t !== a && e === r && n(OPe(i));};- return I$.on(R$, r), () => {- I$.off(R$, r);+ return n0.on(i0, r), () => {+ n0.off(i0, r);};}, [n,@@ -65035,17 +67785,17 @@ function SNe() {e]);}-function CNe() {- var e = kV();+function zPe() {+ var e = qH();(0, B.useEffect)(() => {- e(uNe());- }, [e]), xNe(), SNe();+ e(EPe());+ }, [e]), LPe(), RPe();}-function wNe(e, t, n, r, i, a) {- var o = Q((n) => FMe(n, e, t)), s = Q(yMe), c = Q(gq), l = Q(mq), u = Q(hq), d = Q(dNe)?.active, f = AW();+function BPe(e, t, n, r, i, a) {+ var o = Q((n) => ZNe(n, e, t)), s = Q(FNe), c = Q(PJ), l = Q(MJ), u = Q(NJ), d = Q(DPe)?.active, f = JG();(0, B.useEffect)(() => {if (!d && l != null && c != null) {- var e = FQ({+ var e = t1({active: a,coordinate: n,dataKey: o,@@ -65054,7 +67804,7 @@ function wNe(e, t, n, r, i, a) {sourceViewBox: f,graphicalItemId: s});- I$.emit(L$, l, e, c);+ n0.emit(r0, l, e, c);}}, [d,@@ -65072,7 +67822,7 @@ function wNe(e, t, n, r, i, a) {}//#endregion//#region node_modules/recharts/es6/component/Tooltip.js-function G$(e, t) {+function d0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65082,30 +67832,30 @@ function G$(e, t) {}return n;}-function K$(e) {+function f0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? G$(Object(n), !0).forEach(function(t) {- TNe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G$(Object(n)).forEach(function(t) {+ t % 2 ? d0(Object(n), !0).forEach(function(t) {+ VPe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function TNe(e, t, n) {- return (t = ENe(t)) in e ? Object.defineProperty(e, t, {+function VPe(e, t, n) {+ return (t = HPe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function ENe(e) {- var t = DNe(e, "string");+function HPe(e) {+ var t = UPe(e, "string");return typeof t == "symbol" ? t : t + "";}-function DNe(e, t) {+function UPe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -65115,13 +67865,13 @@ function DNe(e, t) {}return (t === "string" ? String : Number)(e);}-function ONe(e) {+function WPe(e) {return e.dataKey;}-function kNe(e, t) {- return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(NEe, t);+function GPe(e, t) {+ return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(ZDe, t);}-var q$ = [], ANe = {+var p0 = [], KPe = {allowEscapeViewBox: {x: !1,y: !1@@ -65147,10 +67897,10 @@ var q$ = [], ANe = {useTranslate3d: !1,wrapperStyle: {}};-function jNe(e) {- var t = nV(e, ANe), { 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 = kV(), S = typeof v == "number" ? String(v) : v;+function qPe(e) {+ var t = bH(e, KPe), { 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 = qH(), S = typeof v == "number" ? String(v) : v;(0, B.useEffect)(() => {- x(Gje({+ x(sNe({shared: g,trigger: _,axisId: b,@@ -65165,20 +67915,20 @@ function jNe(e) {n,S]);- var C = AW(), w = JG(), T = Bje(g), { activeIndex: E, isActive: D } = Q((e) => RMe(e, T, _, S)) ?? {}, O = Q((e) => LMe(e, T, _, S)), k = Q((e) => D$(e, T, _, S)), A = Q((e) => IMe(e, T, _, S)), j = O, M = sNe(), N = n ?? D ?? !1, [P, ee] = BV([j, N]), F = T === "axis" ? k : void 0;- wNe(T, _, A, F, E, N);+ var C = JG(), w = fq(), T = nNe(g), { activeIndex: E, isActive: D } = Q((e) => ePe(e, T, _, S)) ?? {}, O = Q((e) => $Ne(e, T, _, S)), k = Q((e) => q1(e, T, _, S)), A = Q((e) => QNe(e, T, _, S)), j = O, M = CPe(), N = n ?? D ?? !1, [P, ee] = iU([j, N]), F = T === "axis" ? k : void 0;+ BPe(T, _, A, F, E, N);var I = y ?? M;if (I == null || C == null || T == null) return null;- var te = j ?? q$;- N || (te = q$), s && te.length && (te = DV(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, ONe));- var ne = te.length > 0, re = K$(K$({}, t), {}, {+ var te = j ?? p0;+ N || (te = p0), s && te.length && (te = GH(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, WPe));+ var ne = te.length > 0, re = f0(f0({}, t), {}, {payload: te,label: F,active: N,activeIndex: E,coordinate: A,accessibilityLayer: w- }), ie = /*#__PURE__*/ B.createElement(UEe, {+ }), ie = /*#__PURE__*/ B.createElement(sOe, {allowEscapeViewBox: r,animationDuration: i,animationEasing: a,@@ -65195,8 +67945,8 @@ function jNe(e) {lastBoundingBox: P,innerRef: ee,hasPortalFromProps: !!y- }, kNe(o, re));- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ (0, $f.createPortal)(ie, I), N && /*#__PURE__*/ B.createElement(oNe, {+ }, GPe(o, re));+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ (0, $f.createPortal)(ie, I), N && /*#__PURE__*/ B.createElement(SPe, {cursor: h,tooltipEventType: T,coordinate: A,@@ -65206,23 +67956,23 @@ function jNe(e) {}//#endregion//#region node_modules/recharts/es6/component/Cell.js-var J$ = (e) => null;-J$.displayName = "Cell";+var m0 = (e) => null;+m0.displayName = "Cell";//#endregion//#region node_modules/recharts/es6/util/LRUCache.js-function MNe(e, t, n) {- return (t = NNe(t)) in e ? Object.defineProperty(e, t, {+function JPe(e, t, n) {+ return (t = YPe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function NNe(e) {- var t = PNe(e, "string");+function YPe(e) {+ var t = XPe(e, "string");return typeof t == "symbol" ? t : t + "";}-function PNe(e, t) {+function XPe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -65232,9 +67982,9 @@ function PNe(e, t) {}return (t === "string" ? String : Number)(e);}-var FNe = class {+var ZPe = class {constructor(e) {- MNe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;+ JPe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;}get(e) {var t = this.cache.get(e);@@ -65257,7 +68007,7 @@ var FNe = class {};//#endregion//#region node_modules/recharts/es6/util/DOMUtils.js-function Y$(e, t) {+function h0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65267,30 +68017,30 @@ function Y$(e, t) {}return n;}-function INe(e) {+function QPe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Y$(Object(n), !0).forEach(function(t) {- LNe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y$(Object(n)).forEach(function(t) {+ t % 2 ? h0(Object(n), !0).forEach(function(t) {+ $Pe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function LNe(e, t, n) {- return (t = RNe(t)) in e ? Object.defineProperty(e, t, {+function $Pe(e, t, n) {+ return (t = eFe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function RNe(e) {- var t = zNe(e, "string");+function eFe(e) {+ var t = tFe(e, "string");return typeof t == "symbol" ? t : t + "";}-function zNe(e, t) {+function tFe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -65300,10 +68050,10 @@ function zNe(e, t) {}return (t === "string" ? String : Number)(e);}-var X$ = INe({}, {+var g0 = QPe({}, {cacheSize: 2e3,enableCache: !0-}), Z$ = new FNe(X$.cacheSize), BNe = {+}), _0 = new ZPe(g0.cacheSize), nFe = {position: "absolute",top: "-20000px",left: 0,@@ -65311,14 +68061,14 @@ var X$ = INe({}, {margin: 0,border: "none",whiteSpace: "pre"-}, Q$ = "recharts_measurement_span";-function VNe(e, t) {+}, v0 = "recharts_measurement_span";+function rFe(e, t) {return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;}-var $$ = (e, t) => {+var y0 = (e, t) => {try {- var n = document.getElementById(Q$);- n || (n = document.createElement("span"), n.setAttribute("id", Q$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, BNe, t), n.textContent = `${e}`;+ var n = document.getElementById(v0);+ n || (n = document.createElement("span"), n.setAttribute("id", v0), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, nFe, t), n.textContent = `${e}`;var r = n.getBoundingClientRect();return {width: r.width,@@ -65330,31 +68080,31 @@ var $$ = (e, t) => {height: 0};}-}, e1 = function(e) {+}, b0 = function(e) {var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};- if (e == null || WG.isSsr) return {+ if (e == null || cq.isSsr) return {width: 0,height: 0};- if (!X$.enableCache) return $$(e, t);- var n = VNe(e, t), r = Z$.get(n);+ if (!g0.enableCache) return y0(e, t);+ var n = rFe(e, t), r = _0.get(n);if (r) return r;- var i = $$(e, t);- return Z$.set(n, i), i;-}, t1;-function HNe(e, t, n) {- return (t = UNe(t)) in e ? Object.defineProperty(e, t, {+ var i = y0(e, t);+ return _0.set(n, i), i;+}, x0;+function iFe(e, t, n) {+ return (t = aFe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function UNe(e) {- var t = WNe(e, "string");+function aFe(e) {+ var t = oFe(e, "string");return typeof t == "symbol" ? t : t + "";}-function WNe(e, t) {+function oFe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -65364,7 +68114,7 @@ function WNe(e, t) {}return (t === "string" ? String : Number)(e);}-var n1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, r1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, GNe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, KNe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, qNe = {+var S0 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C0 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, sFe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, cFe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, lFe = {cm: 96 / 2.54,mm: 96 / 25.4,pt: 96 / 72,@@ -65372,7 +68122,7 @@ var n1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, r1 = /(in: 96,Q: 96 / 101.6,px: 1-}, JNe = [+}, uFe = ["cm","mm","pt",@@ -65381,20 +68131,20 @@ var n1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, r1 = /("Q","px"];-function YNe(e) {- return JNe.includes(e);+function dFe(e) {+ return uFe.includes(e);}-var i1 = "NaN";-function XNe(e, t) {- return e * qNe[t];+var w0 = "NaN";+function fFe(e, t) {+ return e * lFe[t];}-var a1 = class e {+var T0 = class e {static parse(t) {- var [, n, r] = KNe.exec(t) ?? [];+ var [, n, r] = cFe.exec(t) ?? [];return n == null ? e.NaN : new e(parseFloat(n), r ?? "");}constructor(e, t) {- this.num = e, this.unit = t, this.num = e, this.unit = t, FB(e) && (this.unit = ""), t !== "" && !GNe.test(t) && (this.num = NaN, this.unit = ""), YNe(t) && (this.num = XNe(e, t), this.unit = "px");+ this.num = e, this.unit = t, this.num = e, this.unit = t, $V(e) && (this.unit = ""), t !== "" && !sFe.test(t) && (this.num = NaN, this.unit = ""), dFe(t) && (this.num = fFe(e, t), this.unit = "px");}add(t) {return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");@@ -65412,50 +68162,50 @@ var a1 = class e {return `${this.num}${this.unit}`;}isNaN() {- return FB(this.num);+ return $V(this.num);}};-t1 = a1, HNe(a1, "NaN", new t1(NaN, ""));-function o1(e) {- if (e == null || e.includes(i1)) return i1;+x0 = T0, iFe(T0, "NaN", new x0(NaN, ""));+function E0(e) {+ if (e == null || e.includes(w0)) return w0;for (var t = e; t.includes("*") || t.includes("/");) {- var [, n, r, i] = n1.exec(t) ?? [], a = a1.parse(n ?? ""), o = a1.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);- if (s.isNaN()) return i1;- t = t.replace(n1, s.toString());+ var [, n, r, i] = S0.exec(t) ?? [], a = T0.parse(n ?? ""), o = T0.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);+ if (s.isNaN()) return w0;+ t = t.replace(S0, s.toString());}for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {- var [, c, l, u] = r1.exec(t) ?? [], d = a1.parse(c ?? ""), f = a1.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);- if (p.isNaN()) return i1;- t = t.replace(r1, p.toString());+ var [, c, l, u] = C0.exec(t) ?? [], d = T0.parse(c ?? ""), f = T0.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);+ if (p.isNaN()) return w0;+ t = t.replace(C0, p.toString());}return t;}-var s1 = /\(([^()]*)\)/;-function ZNe(e) {- for (var t = e, n; (n = s1.exec(t)) != null;) {+var D0 = /\(([^()]*)\)/;+function pFe(e) {+ for (var t = e, n; (n = D0.exec(t)) != null;) {var [, r] = n;- t = t.replace(s1, o1(r));+ t = t.replace(D0, E0(r));}return t;}-function QNe(e) {+function mFe(e) {var t = e.replace(/\s+/g, "");- return t = ZNe(t), t = o1(t), t;+ return t = pFe(t), t = E0(t), t;}-function $Ne(e) {+function hFe(e) {try {- return QNe(e);+ return mFe(e);} catch {- return i1;+ return w0;}}-function c1(e) {- var t = $Ne(e.slice(5, -1));- return t === i1 ? "" : t;+function O0(e) {+ var t = hFe(e.slice(5, -1));+ return t === w0 ? "" : t;}//#endregion//#region node_modules/recharts/es6/component/Text.js-var ePe = [+var gFe = ["x","y","lineHeight",@@ -65464,32 +68214,32 @@ var ePe = ["scaleToFit","textAnchor","verticalAnchor"-], tPe = [+], _Fe = ["dx","dy","angle","className","breakAll"];-function l1() {- return l1 = Object.assign ? Object.assign.bind() : function(e) {+function k0() {+ return k0 = 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;- }, l1.apply(null, arguments);+ }, k0.apply(null, arguments);}-function u1(e, t) {+function A0(e, t) {if (e == null) return {};- var n, r, i = nPe(e, t);+ var n, r, i = vFe(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 nPe(e, t) {+function vFe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -65498,28 +68248,28 @@ function nPe(e, t) {}return n;}-var d1 = /[ \f\n\r\t\v\u2028\u2029]+/, f1 = (e) => {+var j0 = /[ \f\n\r\t\v\u2028\u2029]+/, M0 = (e) => {var { children: t, breakAll: n, style: r } = e;try {var i = [];- return UB(t) || (i = n ? t.toString().split("") : t.toString().split(d1)), {+ return sH(t) || (i = n ? t.toString().split("") : t.toString().split(j0)), {wordsWithComputedWidth: i.map((e) => ({word: e,- width: e1(e, r).width+ width: b0(e, r).width})),- spaceWidth: n ? 0 : e1("\xA0", r).width+ spaceWidth: n ? 0 : b0("\xA0", r).width};} catch {return null;}};-function p1(e) {+function N0(e) {return e === "start" || e === "middle" || e === "end" || e === "inherit";}-function rPe(e) {- return UB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";+function yFe(e) {+ return sH(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";}-var m1 = (e, t, n, r) => e.reduce((e, i) => {+var P0 = (e, t, n, r) => e.reduce((e, i) => {var { word: a, width: o } = i, s = e[e.length - 1];if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;else {@@ -65530,20 +68280,20 @@ var m1 = (e, t, n, r) => e.reduce((e, i) => {e.push(c);}return e;-}, []), h1 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), iPe = "…", g1 = (e, t, n, r, i, a, o, s) => {- var c = f1({+}, []), F0 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), bFe = "…", I0 = (e, t, n, r, i, a, o, s) => {+ var c = M0({breakAll: n,style: r,- children: e.slice(0, t) + iPe+ children: e.slice(0, t) + bFe});if (!c) return [!1, []];- var l = m1(c.wordsWithComputedWidth, a, o, s);- return [l.length > i || h1(l).width > Number(a), l];-}, aPe = (e, t, n, r, i) => {- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = m1(t, r, n, i);- if (!l || i || !(d.length > a || h1(d).width > Number(r))) return d;+ var l = P0(c.wordsWithComputedWidth, a, o, s);+ return [l.length > i || F0(l).width > Number(a), l];+}, xFe = (e, t, n, r, i) => {+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = P0(t, r, n, i);+ if (!l || i || !(d.length > a || F0(d).width > Number(r))) return d;for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {- var g = Math.floor((f + p) / 2), [_, v] = g1(u, g - 1, c, s, a, r, n, i), [y] = g1(u, g, c, s, a, r, n, i);+ var g = Math.floor((f + p) / 2), [_, v] = I0(u, g - 1, c, s, a, r, n, i), [y] = I0(u, g, c, s, a, r, n, i);if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {h = v;break;@@ -65551,13 +68301,13 @@ var m1 = (e, t, n, r) => e.reduce((e, i) => {m++;}return h || d;-}, _1 = (e) => [{- words: UB(e) ? [] : e.toString().split(d1),+}, L0 = (e) => [{+ words: sH(e) ? [] : e.toString().split(j0),width: void 0-}], oPe = (e) => {+}], SFe = (e) => {var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;- if ((t || n) && !WG.isSsr) {- var s, c, l = f1({+ if ((t || n) && !cq.isSsr) {+ var s, c, l = M0({breakAll: a,children: r,style: i@@ -65565,28 +68315,28 @@ var m1 = (e, t, n, r) => e.reduce((e, i) => {if (l) {var { wordsWithComputedWidth: u, spaceWidth: d } = l;s = u, c = d;- } else return _1(r);- return aPe({+ } else return L0(r);+ return xFe({breakAll: a,children: r,maxLines: o,style: i}, s, c, t, !!n);}- return _1(r);-}, v1 = "#808080", sPe = {+ return L0(r);+}, R0 = "#808080", CFe = {angle: 0,breakAll: !1,capHeight: "0.71em",- fill: v1,+ fill: R0,lineHeight: "1em",scaleToFit: !1,textAnchor: "start",verticalAnchor: "end",x: 0,y: 0-}, y1 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = nV(e, sPe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = u1(n, ePe), f = (0, B.useMemo)(() => oPe({+}, z0 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var n = bH(e, CFe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = A0(n, gFe), f = (0, B.useMemo)(() => SFe({breakAll: d.breakAll,children: d.children,maxLines: d.maxLines,@@ -65600,32 +68350,32 @@ var m1 = (e, t, n, r) => e.reduce((e, i) => {c,d.style,d.width- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = u1(d, tPe);- if (!LB(r) || !LB(i) || f.length === 0) return null;+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = A0(d, _Fe);+ if (!tH(r) || !tH(i) || f.length === 0) return null;var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);- if (!UU(y) || !UU(b)) return null;+ if (!sG(y) || !sG(b)) return null;var x;switch (u) {case "start":- x = c1(`calc(${o})`);+ x = O0(`calc(${o})`);break;case "middle":- x = c1(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);+ x = O0(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);break;- default: x = c1(`calc(${f.length - 1} * -${a})`);+ default: x = O0(`calc(${f.length - 1} * -${a})`);}var S = [], C = f[0];if (c && C != null) {var w = C.width, { width: T } = d;S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);}- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ B.createElement("text", l1({}, Oz(v), {+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ B.createElement("text", k0({}, GB(v), {ref: t,x: y,y: b,className: _h("recharts-text", g),textAnchor: l,- fill: s.includes("url") ? v1 : s+ fill: s.includes("url") ? R0 : s}), f.map((e, t) => {var n = e.words.join(_ ? "" : " ");return /*#__PURE__*/ B.createElement("tspan", {@@ -65635,10 +68385,10 @@ var m1 = (e, t, n, r) => e.reduce((e, i) => {}, n);}));});-y1.displayName = "Text";+z0.displayName = "Text";//#endregion//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js-function b1(e, t) {+function B0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65648,30 +68398,30 @@ function b1(e, t) {}return n;}-function x1(e) {+function V0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? b1(Object(n), !0).forEach(function(t) {- cPe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b1(Object(n)).forEach(function(t) {+ t % 2 ? B0(Object(n), !0).forEach(function(t) {+ wFe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function cPe(e, t, n) {- return (t = lPe(t)) in e ? Object.defineProperty(e, t, {+function wFe(e, t, n) {+ return (t = TFe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function lPe(e) {- var t = uPe(e, "string");+function TFe(e) {+ var t = EFe(e, "string");return typeof t == "symbol" ? t : t + "";}-function uPe(e, t) {+function EFe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -65681,8 +68431,8 @@ function uPe(e, t) {}return (t === "string" ? String : Number)(e);}-var dPe = (e) => {- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = kW(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 DFe = (e) => {+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = qG(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,@@ -65723,68 +68473,68 @@ var dPe = (e) => {width: m,height: c} : {};- return n === "insideLeft" ? x1({+ return n === "insideLeft" ? V0({x: p + x,y: s + c / 2,horizontalAnchor: C,verticalAnchor: "middle"- }, k) : n === "insideRight" ? x1({+ }, k) : n === "insideRight" ? V0({x: p + m - x,y: s + c / 2,horizontalAnchor: S,verticalAnchor: "middle"- }, k) : n === "insideTop" ? x1({+ }, k) : n === "insideTop" ? V0({x: d + l / 2,y: s + _,horizontalAnchor: "middle",verticalAnchor: y- }, k) : n === "insideBottom" ? x1({+ }, k) : n === "insideBottom" ? V0({x: f + u / 2,y: s + c - _,horizontalAnchor: "middle",verticalAnchor: v- }, k) : n === "insideTopLeft" ? x1({+ }, k) : n === "insideTopLeft" ? V0({x: d + x,y: s + _,horizontalAnchor: C,verticalAnchor: y- }, k) : n === "insideTopRight" ? x1({+ }, k) : n === "insideTopRight" ? V0({x: d + l - x,y: s + _,horizontalAnchor: S,verticalAnchor: y- }, k) : n === "insideBottomLeft" ? x1({+ }, k) : n === "insideBottomLeft" ? V0({x: f + x,y: s + c - _,horizontalAnchor: C,verticalAnchor: v- }, k) : n === "insideBottomRight" ? x1({+ }, k) : n === "insideBottomRight" ? V0({x: f + u - x,y: s + c - _,horizontalAnchor: S,verticalAnchor: v- }, k) : n && typeof n == "object" && (Z(n.x) || IB(n.x)) && (Z(n.y) || IB(n.y)) ? x1({- x: o + zB(n.x, m),- y: s + zB(n.y, c),+ }, k) : n && typeof n == "object" && (Z(n.x) || eH(n.x)) && (Z(n.y) || eH(n.y)) ? V0({+ x: o + rH(n.x, m),+ y: s + rH(n.y, c),horizontalAnchor: "end",verticalAnchor: "end"- }, k) : x1({+ }, k) : V0({x: h,y: s + c / 2,horizontalAnchor: "middle",verticalAnchor: "middle"}, k);-}, fPe = ["labelRef"], pPe = ["content"];-function S1(e, t) {+}, OFe = ["labelRef"], kFe = ["content"];+function H0(e, t) {if (e == null) return {};- var n, r, i = mPe(e, t);+ var n, r, i = AFe(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 mPe(e, t) {+function AFe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -65793,7 +68543,7 @@ function mPe(e, t) {}return n;}-function C1(e, t) {+function U0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65803,30 +68553,30 @@ function C1(e, t) {}return n;}-function w1(e) {+function W0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? C1(Object(n), !0).forEach(function(t) {- hPe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C1(Object(n)).forEach(function(t) {+ t % 2 ? U0(Object(n), !0).forEach(function(t) {+ jFe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function hPe(e, t, n) {- return (t = gPe(t)) in e ? Object.defineProperty(e, t, {+function jFe(e, t, n) {+ return (t = MFe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function gPe(e) {- var t = _Pe(e, "string");+function MFe(e) {+ var t = NFe(e, "string");return typeof t == "symbol" ? t : t + "";}-function _Pe(e, t) {+function NFe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -65836,16 +68586,16 @@ function _Pe(e, t) {}return (t === "string" ? String : Number)(e);}-function T1() {- return T1 = Object.assign ? Object.assign.bind() : function(e) {+function G0() {+ return G0 = 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;- }, T1.apply(null, arguments);+ }, G0.apply(null, arguments);}-var E1 = /*#__PURE__*/ (0, B.createContext)(null), D1 = (e) => {+var K0 = /*#__PURE__*/ (0, B.createContext)(null), q0 = (e) => {var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, B.useMemo)(() => ({x: t,y: n,@@ -65861,11 +68611,11 @@ var E1 = /*#__PURE__*/ (0, B.createContext)(null), D1 = (e) => {a,o]);- return /*#__PURE__*/ B.createElement(E1.Provider, { value: c }, s);-}, O1 = () => {- var e = (0, B.useContext)(E1), t = AW();- return e || (t ? kW(t) : void 0);-}, k1 = /*#__PURE__*/ (0, B.createContext)(null), vPe = (e) => {+ return /*#__PURE__*/ B.createElement(K0.Provider, { value: c }, s);+}, J0 = () => {+ var e = (0, B.useContext)(K0), t = JG();+ return e || (t ? qG(t) : void 0);+}, Y0 = /*#__PURE__*/ (0, B.createContext)(null), PFe = (e) => {var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, B.useMemo)(() => ({cx: t,cy: n,@@ -65883,15 +68633,15 @@ var E1 = /*#__PURE__*/ (0, B.createContext)(null), D1 = (e) => {o,s]);- return /*#__PURE__*/ B.createElement(k1.Provider, { value: l }, c);-}, A1 = () => {- var e = (0, B.useContext)(k1), t = Q(Pq);+ return /*#__PURE__*/ B.createElement(Y0.Provider, { value: l }, c);+}, X0 = () => {+ var e = (0, B.useContext)(Y0), t = Q(QJ);return e || t;-}, yPe = (e) => {- var { value: t, formatter: n } = e, r = UB(e.children) ? t : e.children;+}, FFe = (e) => {+ var { value: t, formatter: n } = e, r = sH(e.children) ? t : e.children;return typeof n == "function" ? n(r) : r;-}, j1 = (e) => e != null && typeof e == "function", bPe = (e, t) => PB(t - e) * Math.min(Math.abs(t - e), 360), xPe = (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 = bPe(d, f), g = h >= 0 ? 1 : -1, _, v;+}, Z0 = (e) => e != null && typeof e == "function", IFe = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 360), LFe = (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 = IFe(d, f), g = h >= 0 ? 1 : -1, _, v;switch (t) {case "insideStart":_ = d + g * a, v = p;@@ -65905,20 +68655,20 @@ var E1 = /*#__PURE__*/ (0, B.createContext)(null), D1 = (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 = eJ(s, c, m, _), b = eJ(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}A${m},${m},0,1,${+!v},- ${b.x},${b.y}`, S = UB(e.id) ? RB("recharts-radial-line-") : e.id;- return /*#__PURE__*/ B.createElement("text", T1({}, r, {+ ${b.x},${b.y}`, S = sH(e.id) ? nH("recharts-radial-line-") : e.id;+ return /*#__PURE__*/ B.createElement("text", G0({}, r, {dominantBaseline: "central",className: _h("recharts-radial-bar-label", o)}), /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("path", {id: S,d: x})), /*#__PURE__*/ B.createElement("textPath", { xlinkHref: `#${S}` }, n));-}, SPe = (e, t, n) => {+}, RFe = (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 } = eJ(r, i, o + t, l);return {x: u,y: d,@@ -65944,22 +68694,22 @@ var E1 = /*#__PURE__*/ (0, B.createContext)(null), D1 = (e) => {textAnchor: "middle",verticalAnchor: "end"};- var { x: f, y: p } = IK(r, i, (a + o) / 2, l);+ var { x: f, y: p } = eJ(r, i, (a + o) / 2, l);return {x: f,y: p,textAnchor: "middle",verticalAnchor: "middle"};-}, M1 = (e) => e != null && "cx" in e && Z(e.cx), CPe = {+}, Q0 = (e) => e != null && "cx" in e && Z(e.cx), zFe = {angle: 0,offset: 5,- zIndex: _q.label,+ zIndex: FJ.label,position: "middle",textBreakAll: !1};-function wPe(e) {- if (!M1(e)) return e;+function BFe(e) {+ if (!Q0(e)) return e;var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;return {x: t - r,@@ -65970,100 +68720,100 @@ function wPe(e) {height: i};}-function N1(e) {- var t = nV(e, CPe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = A1(), f = O1(), p = n == null ? i === "center" ? f : d ?? f : M1(n) ? n : kW(n), m, h, g = wPe(p);- if (!p || UB(a) && UB(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;- var _ = w1(w1({}, t), {}, { viewBox: p });+function $0(e) {+ var t = bH(e, zFe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = X0(), f = J0(), p = n == null ? i === "center" ? f : d ?? f : Q0(n) ? n : qG(n), m, h, g = BFe(p);+ if (!p || sH(a) && sH(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;+ var _ = W0(W0({}, t), {}, { viewBox: p });if (/*#__PURE__*/ (0, B.isValidElement)(s)) {- var { labelRef: v } = _, y = S1(_, fPe);+ var { labelRef: v } = _, y = H0(_, OFe);return /*#__PURE__*/ (0, B.cloneElement)(s, y);}if (typeof s == "function") {- var { content: b } = _, x = S1(_, pPe);+ var { content: b } = _, x = H0(_, kFe);if (m = /*#__PURE__*/ (0, B.createElement)(s, x), /*#__PURE__*/ (0, B.isValidElement)(m)) return m;- } else m = yPe(t);- var S = Oz(t);- if (M1(p)) {- if (i === "insideStart" || i === "insideEnd" || i === "end") return xPe(t, i, m, S, p);- h = SPe(p, t.offset, t.position);+ } else m = FFe(t);+ var S = GB(t);+ if (Q0(p)) {+ if (i === "insideStart" || i === "insideEnd" || i === "end") return LFe(t, i, m, S, p);+ h = RFe(p, t.offset, t.position);} else {if (!g) return null;- var C = dPe({+ var C = DFe({viewBox: g,position: i,offset: t.offset,- parentViewBox: M1(r) ? void 0 : r,+ parentViewBox: Q0(r) ? void 0 : r,clamp: !0});- h = w1(w1({+ h = W0(W0({x: C.x,y: C.y,textAnchor: C.horizontalAnchor,verticalAnchor: C.verticalAnchor}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });}- return /*#__PURE__*/ B.createElement(j$, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(y1, T1({+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(z0, G0({ref: u,className: _h("recharts-label", c)}, S, h, {- textAnchor: p1(S.textAnchor) ? S.textAnchor : h.textAnchor,+ textAnchor: N0(S.textAnchor) ? S.textAnchor : h.textAnchor,breakAll: l}), m));}-N1.displayName = "Label";-var P1 = (e, t, n) => {+$0.displayName = "Label";+var e2 = (e, t, n) => {if (!e) return null;var r = {viewBox: t,labelRef: n};- return e === !0 ? /*#__PURE__*/ B.createElement(N1, T1({ key: "label-implicit" }, r)) : LB(e) ? /*#__PURE__*/ B.createElement(N1, T1({+ return e === !0 ? /*#__PURE__*/ B.createElement($0, G0({ key: "label-implicit" }, r)) : tH(e) ? /*#__PURE__*/ B.createElement($0, G0({key: "label-implicit",value: e- }, r)) : /*#__PURE__*/ (0, B.isValidElement)(e) ? e.type === N1 ? /*#__PURE__*/ (0, B.cloneElement)(e, w1({ key: "label-implicit" }, r)) : /*#__PURE__*/ B.createElement(N1, T1({+ }, r)) : /*#__PURE__*/ (0, B.isValidElement)(e) ? e.type === $0 ? /*#__PURE__*/ (0, B.cloneElement)(e, W0({ key: "label-implicit" }, r)) : /*#__PURE__*/ B.createElement($0, G0({key: "label-implicit",content: e- }, r)) : j1(e) ? /*#__PURE__*/ B.createElement(N1, T1({+ }, r)) : Z0(e) ? /*#__PURE__*/ B.createElement($0, G0({key: "label-implicit",content: e- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ B.createElement(N1, T1({}, e, { key: "label-implicit" }, r)) : null;+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ B.createElement($0, G0({}, e, { key: "label-implicit" }, r)) : null;};-function F1(e) {+function t2(e) {var { label: t, labelRef: n } = e;- return P1(t, O1(), n) || null;+ return e2(t, J0(), n) || null;}-function TPe(e) {+function VFe(e) {var { label: t } = e;- return P1(t, A1()) || null;+ return e2(t, X0()) || null;}//#endregion//#region node_modules/recharts/es6/component/LabelList.js-var EPe = ["valueAccessor"], DPe = [+var HFe = ["valueAccessor"], UFe = ["dataKey","clockWise","id","textBreakAll","zIndex"];-function I1() {- return I1 = Object.assign ? Object.assign.bind() : function(e) {+function n2() {+ return n2 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, I1.apply(null, arguments);+ }, n2.apply(null, arguments);}-function L1(e, t) {+function r2(e, t) {if (e == null) return {};- var n, r, i = OPe(e, t);+ var n, r, i = WFe(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 OPe(e, t) {+function WFe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -66072,21 +68822,21 @@ function OPe(e, t) {}return n;}-var kPe = (e) => {+var GFe = (e) => {var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;- if (rPe(t)) return t;-}, R1 = /*#__PURE__*/ (0, B.createContext)(void 0), z1 = R1.Provider, B1 = /*#__PURE__*/ (0, B.createContext)(void 0), APe = B1.Provider;-function jPe() {- return (0, B.useContext)(R1);-}-function MPe() {- return (0, B.useContext)(B1);-}-function V1(e) {- var { valueAccessor: t = kPe } = e, n = L1(e, EPe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = L1(n, DPe), l = jPe(), u = MPe(), d = l || u;- return !d || !d.length ? null : /*#__PURE__*/ B.createElement(j$, { zIndex: s ?? _q.label }, /*#__PURE__*/ B.createElement(Mz, { className: "recharts-label-list" }, d.map((e, i) => {- var s = UB(r) ? t(e, i) : qU(e.payload, r), l = UB(a) ? {} : { id: `${a}-${i}` };- return /*#__PURE__*/ B.createElement(N1, I1({ key: `label-${i}` }, Oz(e), c, l, {+ if (yFe(t)) return t;+}, i2 = /*#__PURE__*/ (0, B.createContext)(void 0), a2 = i2.Provider, o2 = /*#__PURE__*/ (0, B.createContext)(void 0), KFe = o2.Provider;+function qFe() {+ return (0, B.useContext)(i2);+}+function JFe() {+ return (0, B.useContext)(o2);+}+function s2(e) {+ var { valueAccessor: t = GFe } = e, n = r2(e, HFe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = r2(n, UFe), l = qFe(), u = JFe(), d = l || u;+ return !d || !d.length ? null : /*#__PURE__*/ B.createElement(Z1, { zIndex: s ?? FJ.label }, /*#__PURE__*/ B.createElement(YB, { className: "recharts-label-list" }, d.map((e, i) => {+ var s = sH(r) ? t(e, i) : dG(e.payload, r), l = sH(a) ? {} : { id: `${a}-${i}` };+ return /*#__PURE__*/ B.createElement($0, n2({ key: `label-${i}` }, GB(e), c, l, {fill: n.fill ?? e.fill,parentViewBox: e.parentViewBox,value: s,@@ -66097,41 +68847,41 @@ function V1(e) {}));})));}-V1.displayName = "LabelList";-function H1(e) {+s2.displayName = "LabelList";+function c2(e) {var { label: t } = e;- return t ? t === !0 ? /*#__PURE__*/ B.createElement(V1, { key: "labelList-implicit" }) : /*#__PURE__*/ B.isValidElement(t) || j1(t) ? /*#__PURE__*/ B.createElement(V1, {+ return t ? t === !0 ? /*#__PURE__*/ B.createElement(s2, { key: "labelList-implicit" }) : /*#__PURE__*/ B.isValidElement(t) || Z0(t) ? /*#__PURE__*/ B.createElement(s2, {key: "labelList-implicit",content: t- }) : typeof t == "object" ? /*#__PURE__*/ B.createElement(V1, I1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;+ }) : typeof t == "object" ? /*#__PURE__*/ B.createElement(s2, n2({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;}//#endregion//#region node_modules/recharts/es6/shape/Polygon.js-var NPe = [+var YFe = ["points","className","baseLinePoints","connectNulls"-], PPe;-function U1() {- return U1 = Object.assign ? Object.assign.bind() : function(e) {+], XFe;+function l2() {+ return l2 = 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;- }, U1.apply(null, arguments);+ }, l2.apply(null, arguments);}-function FPe(e, t) {+function ZFe(e, t) {if (e == null) return {};- var n, r, i = IPe(e, t);+ var n, r, i = QFe(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 IPe(e, t) {+function QFe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -66140,23 +68890,23 @@ function IPe(e, t) {}return n;}-function LPe(e, t) {+function $Fe(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var W1 = (e) => e != null && e.x === +e.x && e.y === +e.y, RPe = function() {+var u2 = (e) => e != null && e.x === +e.x && e.y === +e.y, eIe = function() {var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];e.forEach((e) => {var n = t[t.length - 1];- W1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);+ u2(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);});var n = e[0], r = t[t.length - 1];- W1(n) && r && r.push(n);+ u2(n) && r && r.push(n);var i = t[t.length - 1];return i && i.length <= 0 && (t = t.slice(0, -1)), t;-}, G1 = (e, t) => {- var n = RPe(e);+}, d2 = (e, t) => {+ var n = eIe(e);t && (n = [n.reduce((e, t) => [...e, ...t], [])]);- var r = n.map((e) => e.reduce((e, t, n) => NB(PPe ||= LPe([+ var r = n.map((e) => e.reduce((e, t, n) => ZV(XFe ||= $Fe(["","","",@@ -66164,29 +68914,29 @@ var W1 = (e) => e != null && e.x === +e.x && e.y === +e.y, RPe = function() {""]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");return n.length === 1 ? `${r}Z` : r;-}, zPe = (e, t, n) => {- var r = G1(e, n);- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${G1(Array.from(t).reverse(), n).slice(1)}`;-}, K1 = (e) => {- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = FPe(e, NPe);+}, tIe = (e, t, n) => {+ var r = d2(e, n);+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${d2(Array.from(t).reverse(), n).slice(1)}`;+}, f2 = (e) => {+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = ZFe(e, YFe);if (!t || !t.length) return null;var o = _h("recharts-polygon", n);if (r && r.length) {- var s = a.stroke && a.stroke !== "none", c = zPe(t, r, i);- return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", U1({}, Oz(a), {+ var s = a.stroke && a.stroke !== "none", c = tIe(t, r, i);+ return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", l2({}, GB(a), {fill: c.slice(-1) === "Z" ? a.fill : "none",stroke: "none",d: c- })), s ? /*#__PURE__*/ B.createElement("path", U1({}, Oz(a), {+ })), s ? /*#__PURE__*/ B.createElement("path", l2({}, GB(a), {fill: "none",- d: G1(t, i)- })) : null, s ? /*#__PURE__*/ B.createElement("path", U1({}, Oz(a), {+ d: d2(t, i)+ })) : null, s ? /*#__PURE__*/ B.createElement("path", l2({}, GB(a), {fill: "none",- d: G1(r, i)+ d: d2(r, i)})) : null);}- var l = G1(t, i);- return /*#__PURE__*/ B.createElement("path", U1({}, Oz(a), {+ var l = d2(t, i);+ return /*#__PURE__*/ B.createElement("path", l2({}, GB(a), {fill: l.slice(-1) === "Z" ? a.fill : "none",className: o,d: l@@ -66194,111 +68944,111 @@ var W1 = (e) => e != null && e.x === +e.x && e.y === +e.y, RPe = function() {};//#endregion//#region node_modules/recharts/es6/shape/Dot.js-function q1() {- return q1 = Object.assign ? Object.assign.bind() : function(e) {+function p2() {+ return p2 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, q1.apply(null, arguments);+ }, p2.apply(null, arguments);}-var J1 = (e) => {+var m2 = (e) => {var { cx: t, cy: n, r, className: i } = e, a = _h("recharts-dot", i);- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", q1({}, Ez(e), $B(e), {+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", p2({}, UB(e), _H(e), {className: a,cx: t,cy: n,r})) : null;-}, Y1 = (e) => e.graphicalItems.polarItems, X1 = $([- Y1,- mZ,- $([Fq, Iq], _Z)-], yZ), Z1 = $([$([X1], CZ), KK], wZ), Q1 = $([- Z1,- mZ,- X1-], EZ);+}, h2 = (e) => e.graphicalItems.polarItems, g2 = $([+ h2,+ PQ,+ $([$J, eY], LQ)+], zQ), _2 = $([$([g2], UQ), uJ], WQ), v2 = $([+ _2,+ PQ,+ g2+], KQ);$([- Z1,- mZ,- X1+ _2,+ PQ,+ g2], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({- value: qU(e, t.dataKey ?? n.dataKey),+ value: dG(e, t.dataKey ?? n.dataKey),errorDomain: []}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({value: e,errorDomain: []})) : e.map((e) => ({- value: qU(e, t.dataKey),+ value: dG(e, t.dataKey),errorDomain: []})));-var $1 = () => void 0, e0 = $([- mZ,- PW,- Z1,- Q1,- dq,- Fq,+var y2 = () => void 0, b2 = $([+ PQ,+ QG,+ _2,+ v2,+ kJ,+ $J,$([- mZ,- RZ,- zZ,- $1,+ PQ,+ i$,+ a$,+ y2,$([- Z1,- mZ,- X1,- BZ,- Fq- ], HZ),- $1,- PW,- Fq- ], XZ)-], ZZ), t0 = $([- e0,- hZ,- $Z-], eQ), BPe = $([$Z, $([- mZ,- e0,- t0,- Fq-], nQ)], Gq), n0 = (e, t, n) => {+ _2,+ PQ,+ g2,+ o$,+ $J+ ], c$),+ y2,+ QG,+ $J+ ], g$)+], _$), x2 = $([+ b2,+ FQ,+ y$+], b$), nIe = $([y$, $([+ PQ,+ b2,+ x2,+ $J+], S$)], lY), S2 = (e, t, n) => {switch (t) {- case "angleAxis": return Eq(e, n);- case "radiusAxis": return Dq(e, n);+ case "angleAxis": return WJ(e, n);+ case "radiusAxis": return GJ(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, r0 = (e, t, n) => {+}, C2 = (e, t, n) => {switch (t) {- case "angleAxis": return vOe(e, n);- case "radiusAxis": return yOe(e, n);+ case "angleAxis": return Ike(e, n);+ case "radiusAxis": return Lke(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, i0 = $([$([- n0,- $Z,- BPe,- r0-], tZ)], Wq), a0 = $([- PW,- Q1,- hZ,- Fq-], sQ), o0 = $([- PW,- n0,- $Z,- i0,- t0,- r0,- vQ,- a0,- Fq-], bQ), VPe = $([o0], (e) => {+}, w2 = $([$([+ S2,+ y$,+ nIe,+ C2+], bQ)], cY), T2 = $([+ QG,+ v2,+ FQ,+ $J+], D$), E2 = $([+ QG,+ S2,+ y$,+ w2,+ x2,+ C2,+ R$,+ T2,+ $J+], B$), rIe = $([E2], (e) => {if (e) {var t = /* @__PURE__ */ new Map();return e.forEach((e) => {@@ -66306,19 +69056,19 @@ var $1 = () => void 0, e0 = $([t.has(n) || t.set(n, e);}), Array.from(t.values());}-}), HPe = $([- PW,- n0,- i0,- r0,- vQ,- a0,- Fq-], SQ), UPe = $([(e, t) => o0(e, "angleAxis", t, !1)], (e) => {+}), iIe = $([+ QG,+ S2,+ w2,+ C2,+ R$,+ T2,+ $J+], H$), aIe = $([(e, t) => E2(e, "angleAxis", t, !1)], (e) => {if (e) return e.map((e) => e.coordinate);-}), WPe = $([(e, t) => o0(e, "radiusAxis", t, !1)], (e) => {+}), oIe = $([(e, t) => E2(e, "radiusAxis", t, !1)], (e) => {if (e) return e.map((e) => e.coordinate);-}), GPe = [+}), sIe = ["gridType","radialLines","angleAxisId",@@ -66331,16 +69081,16 @@ var $1 = () => void 0, e0 = $(["polarRadius","zIndex"];-function KPe(e, t) {+function cIe(e, t) {if (e == null) return {};- var n, r, i = qPe(e, t);+ var n, r, i = lIe(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 qPe(e, t) {+function lIe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -66349,16 +69099,16 @@ function qPe(e, t) {}return n;}-function s0() {- return s0 = Object.assign ? Object.assign.bind() : function(e) {+function D2() {+ return D2 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, s0.apply(null, arguments);+ }, D2.apply(null, arguments);}-function c0(e, t) {+function O2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -66368,30 +69118,30 @@ function c0(e, t) {}return n;}-function l0(e) {+function k2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? c0(Object(n), !0).forEach(function(t) {- JPe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c0(Object(n)).forEach(function(t) {+ t % 2 ? O2(Object(n), !0).forEach(function(t) {+ uIe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function JPe(e, t, n) {- return (t = YPe(t)) in e ? Object.defineProperty(e, t, {+function uIe(e, t, n) {+ return (t = dIe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function YPe(e) {- var t = XPe(e, "string");+function dIe(e) {+ var t = fIe(e, "string");return typeof t == "symbol" ? t : t + "";}-function XPe(e, t) {+function fIe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -66401,69 +69151,69 @@ function XPe(e, t) {}return (t === "string" ? String : Number)(e);}-var ZPe = (e, t, n, r) => {+var pIe = (e, t, n, r) => {var i = "";return r.forEach((r, a) => {- var o = IK(t, n, e, r);+ var o = eJ(t, n, e, r);i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;}), i += "Z", i;-}, QPe = (e) => {+}, mIe = (e) => {var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;if (!a || !a.length || !o) return null;- var s = l0({ stroke: "#ccc" }, Ez(e));+ var s = k2({ stroke: "#ccc" }, UB(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);- return /*#__PURE__*/ B.createElement("line", s0({ key: `line-${e}` }, s, {+ var a = eJ(t, n, r, e), o = eJ(t, n, i, e);+ return /*#__PURE__*/ B.createElement("line", D2({ key: `line-${e}` }, s, {x1: a.x,y1: a.y,x2: o.x,y2: o.y}));}));-}, u0 = (e) => {- var { cx: t, cy: n, radius: r } = e, i = l0({+}, A2 = (e) => {+ var { cx: t, cy: n, radius: r } = e, i = k2({stroke: "#ccc",fill: "none"- }, Ez(e));- return /*#__PURE__*/ B.createElement("circle", s0({}, i, {+ }, UB(e));+ return /*#__PURE__*/ B.createElement("circle", D2({}, i, {className: _h("recharts-polar-grid-concentric-circle", e.className),cx: t,cy: n,r}));-}, d0 = (e) => {- var { radius: t } = e, n = l0({+}, j2 = (e) => {+ var { radius: t } = e, n = k2({stroke: "#ccc",fill: "none"- }, Ez(e));- return /*#__PURE__*/ B.createElement("path", s0({}, n, {+ }, UB(e));+ return /*#__PURE__*/ B.createElement("path", D2({}, n, {className: _h("recharts-polar-grid-concentric-polygon", e.className),- d: ZPe(t, e.cx, e.cy, e.polarAngles)+ d: pIe(t, e.cx, e.cy, e.polarAngles)}));-}, $Pe = (e) => {+}, hIe = (e) => {var { polarRadius: t, gridType: n } = e;if (!t || !t.length) return null;var r = Math.max(...t), i = e.fill && e.fill !== "none";- return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ B.createElement(u0, s0({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ B.createElement(d0, s0({}, e, { radius: r })), t.map((t, r) => {+ return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ B.createElement(A2, D2({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ B.createElement(j2, D2({}, e, { radius: r })), t.map((t, r) => {var i = r;- return n === "circle" ? /*#__PURE__*/ B.createElement(u0, s0({ key: i }, e, {+ return n === "circle" ? /*#__PURE__*/ B.createElement(A2, D2({ key: i }, e, {fill: "none",radius: t- })) : /*#__PURE__*/ B.createElement(d0, s0({ key: i }, e, {+ })) : /*#__PURE__*/ B.createElement(j2, D2({ key: i }, e, {fill: "none",radius: t}));}));-}, eFe = {+}, gIe = {angleAxisId: 0,radiusAxisId: 0,gridType: "polygon",radialLines: !0,- zIndex: _q.grid-}, f0 = (e) => {- var t = nV(e, eFe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = KPe(t, GPe), m = Q(Pq), h = Q((e) => UPe(e, i)), g = Q((e) => WPe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;+ zIndex: FJ.grid+}, M2 = (e) => {+ var t = bH(e, gIe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = cIe(t, sIe), m = Q(QJ), h = Q((e) => aIe(e, i)), g = Q((e) => oIe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;if (_ == null || v == null) return null;- var y = l0({+ var y = k2({cx: m?.cx ?? o ?? 0,cy: m?.cy ?? s ?? 0,innerRadius: m?.innerRadius ?? c ?? 0,@@ -66472,13 +69222,13 @@ var ZPe = (e, t, n, r) => {polarRadius: v,zIndex: f}, p), { outerRadius: b } = y;- return b <= 0 ? null : /*#__PURE__*/ B.createElement(j$, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement($Pe, s0({+ return b <= 0 ? null : /*#__PURE__*/ B.createElement(Z1, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement(hIe, D2({gridType: n,radialLines: r}, y, {polarAngles: _,polarRadius: v- })), /*#__PURE__*/ B.createElement(QPe, s0({+ })), /*#__PURE__*/ B.createElement(mIe, D2({gridType: n,radialLines: r}, y, {@@ -66486,19 +69236,19 @@ var ZPe = (e, t, n, r) => {polarRadius: v}))));};-f0.displayName = "PolarGrid";+M2.displayName = "PolarGrid";//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs-function p0(e) {+function N2(e) {return Array.isArray(e) ? e : Array.from(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs-function tFe(e, t = sV) {+function _Ie(e, t = TH) {if (e == null) return;- let n = p0(e);+ let n = N2(e);if (n.length === 0) return;- let r = TV(t), i, a;+ let r = UH(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);@@ -66507,11 +69257,11 @@ function tFe(e, t = sV) {}//#endregion//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs-function nFe(e, t = sV) {+function vIe(e, t = TH) {if (e == null) return;- let n = p0(e);+ let n = N2(e);if (n.length === 0) return;- let r = TV(t), i, a;+ let r = UH(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);@@ -66520,7 +69270,7 @@ function nFe(e, t = sV) {}//#endregion//#region node_modules/recharts/es6/state/polarAxisSlice.js-var m0 = mU({+var P2 = MW({name: "polarAxis",initialState: {radiusAxis: {},@@ -66528,47 +69278,47 @@ var m0 = mU({},reducers: {addRadiusAxis(e, t) {- e.radiusAxis[t.payload.id] = TG(t.payload);+ e.radiusAxis[t.payload.id] = UK(t.payload);},removeRadiusAxis(e, t) {delete e.radiusAxis[t.payload.id];},addAngleAxis(e, t) {- e.angleAxis[t.payload.id] = TG(t.payload);+ e.angleAxis[t.payload.id] = UK(t.payload);},removeAngleAxis(e, t) {delete e.angleAxis[t.payload.id];}}-}), { addRadiusAxis: rFe, removeRadiusAxis: iFe, addAngleAxis: aFe, removeAngleAxis: oFe } = m0.actions, sFe = m0.reducer;+}), { addRadiusAxis: yIe, removeRadiusAxis: bIe, addAngleAxis: xIe, removeAngleAxis: SIe } = P2.actions, CIe = P2.reducer;//#endregion//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js-function h0(e) {+function F2(e) {return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";}//#endregion//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js-var cFe = ["type"], lFe = [+var wIe = ["type"], TIe = ["cx","cy","angle","axisLine"-], uFe = [+], EIe = ["angle","tickFormatter","stroke","tick"];-function g0() {- return g0 = Object.assign ? Object.assign.bind() : function(e) {+function I2() {+ return I2 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, g0.apply(null, arguments);+ }, I2.apply(null, arguments);}-function _0(e, t) {+function L2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -66578,30 +69328,30 @@ function _0(e, t) {}return n;}-function v0(e) {+function R2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? _0(Object(n), !0).forEach(function(t) {- dFe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _0(Object(n)).forEach(function(t) {+ t % 2 ? L2(Object(n), !0).forEach(function(t) {+ DIe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function dFe(e, t, n) {- return (t = fFe(t)) in e ? Object.defineProperty(e, t, {+function DIe(e, t, n) {+ return (t = OIe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function fFe(e) {- var t = pFe(e, "string");+function OIe(e) {+ var t = kIe(e, "string");return typeof t == "symbol" ? t : t + "";}-function pFe(e, t) {+function kIe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -66611,16 +69361,16 @@ function pFe(e, t) {}return (t === "string" ? String : Number)(e);}-function y0(e, t) {+function z2(e, t) {if (e == null) return {};- var n, r, i = mFe(e, t);+ var n, r, i = AIe(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 mFe(e, t) {+function AIe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -66629,20 +69379,20 @@ function mFe(e, t) {}return n;}-var hFe = "radiusAxis";-function gFe(e) {- var t = kV(), n = RW(), r = (0, B.useMemo)(() => {- var { type: t } = e, r = y0(e, cFe), i = xq(n, "radiusAxis", t);- if (i != null) return v0(v0({}, r), {}, { type: i });+var jIe = "radiusAxis";+function MIe(e) {+ var t = qH(), n = nK(), r = (0, B.useMemo)(() => {+ var { type: t } = e, r = z2(e, wIe), i = zJ(n, "radiusAxis", t);+ if (i != null) return R2(R2({}, r), {}, { type: i });}, [e, n]);- return (0, B.useEffect)(() => r == null ? KB : (t(rFe(r)), () => {- t(iFe(r));+ return (0, B.useEffect)(() => r == null ? uH : (t(yIe(r)), () => {+ t(bIe(r));}), [t, r]), null;}-var _Fe = (e, t, n, r) => {+var NIe = (e, t, n, r) => {var { coordinate: i } = e;- return IK(n, r, i, t);-}, vFe = (e) => {+ return eJ(n, r, i, t);+}, PIe = (e) => {var t;switch (e) {case "left":@@ -66654,49 +69404,49 @@ var _Fe = (e, t, n, r) => {default: t = "middle";}return t;-}, yFe = (e, t, n, r) => {- var i = tFe(r, (e) => e.coordinate || 0);+}, FIe = (e, t, n, r) => {+ var i = _Ie(r, (e) => e.coordinate || 0);return {cx: t,cy: n,startAngle: e,endAngle: e,- innerRadius: nFe(r, (e) => e.coordinate || 0)?.coordinate || 0,+ innerRadius: vIe(r, (e) => e.coordinate || 0)?.coordinate || 0,outerRadius: i?.coordinate || 0,clockWise: !1};-}, bFe = (e, t) => {- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = y0(e, lFe), 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 = v0(v0(v0({}, Ez(o)), {}, { fill: "none" }, Ez(a)), {}, {+}, IIe = (e, t) => {+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = z2(e, TIe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = eJ(n, r, s[0], i), l = eJ(n, r, s[1], i), u = R2(R2(R2({}, UB(o)), {}, { fill: "none" }, UB(a)), {}, {x1: c.x,y1: c.y,x2: l.x,y2: l.y});- return /*#__PURE__*/ B.createElement("line", g0({ className: "recharts-polar-radius-axis-line" }, u));-}, xFe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(y1, g0({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), SFe = (e, t) => {- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = y0(e, uFe), s = vFe(e.orientation), c = Ez(o), l = Dz(a), u = t.map((t, o) => {- var u = _Fe(t, e.angle, e.cx, e.cy), d = v0(v0(v0(v0({+ return /*#__PURE__*/ B.createElement("line", I2({ className: "recharts-polar-radius-axis-line" }, u));+}, LIe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(z0, I2({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), RIe = (e, t) => {+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = z2(e, EIe), s = PIe(e.orientation), c = UB(o), l = WB(a), u = t.map((t, o) => {+ var u = NIe(t, e.angle, e.cx, e.cy), d = R2(R2(R2(R2({textAnchor: s,transform: `rotate(${90 - n}, ${u.x}, ${u.y})`}, c), {}, {stroke: "none",fill: i}, l), {}, { index: o }, u), {}, { payload: t });- return /*#__PURE__*/ B.createElement(Mz, g0({- className: _h("recharts-polar-radius-axis-tick", h0(a)),+ return /*#__PURE__*/ B.createElement(YB, I2({+ className: _h("recharts-polar-radius-axis-tick", F2(a)),key: `tick-${t.coordinate}`- }, eV(e, t, o)), xFe(a, d, r ? r(t.value, o) : t.value));+ }, vH(e, t, o)), LIe(a, d, r ? r(t.value, o) : t.value));});- return /*#__PURE__*/ B.createElement(Mz, { className: "recharts-polar-radius-axis-ticks" }, u);-}, CFe = (e) => {- var { radiusAxisId: t } = e, n = Q(Pq), r = Q((e) => i0(e, "radiusAxis", t)), i = Q((e) => o0(e, "radiusAxis", t, !1));+ return /*#__PURE__*/ B.createElement(YB, { className: "recharts-polar-radius-axis-ticks" }, u);+}, zIe = (e) => {+ var { radiusAxisId: t } = e, n = Q(QJ), r = Q((e) => w2(e, "radiusAxis", t)), i = Q((e) => E2(e, "radiusAxis", t, !1));if (n == null || !i || !i.length || r == null) return null;- var a = v0(v0({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;- return /*#__PURE__*/ B.createElement(j$, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(Mz, { className: _h("recharts-polar-radius-axis", hFe, a.className) }, s && bFe(a, i), o && SFe(a, i), /*#__PURE__*/ B.createElement(vPe, yFe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(TPe, { label: a.label }), a.children)));+ var a = R2(R2({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: _h("recharts-polar-radius-axis", jIe, a.className) }, s && IIe(a, i), o && RIe(a, i), /*#__PURE__*/ B.createElement(PFe, FIe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(VFe, { label: a.label }), a.children)));};-function b0(e) {- var t = nV(e, yq);- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(gFe, {+function B2(e) {+ var t = bH(e, LJ);+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(MIe, {domain: t.domain,id: t.radiusAxisId,scale: t.scale,@@ -66713,22 +69463,22 @@ function b0(e) {ticks: t.ticks,tickCount: t.tickCount,tick: t.tick- }), /*#__PURE__*/ B.createElement(CFe, t));+ }), /*#__PURE__*/ B.createElement(zIe, t));}-b0.displayName = "PolarRadiusAxis";+B2.displayName = "PolarRadiusAxis";//#endregion//#region node_modules/recharts/es6/polar/PolarAngleAxis.js-var wFe = ["children", "type"], TFe = ["ref"];-function x0() {- return x0 = Object.assign ? Object.assign.bind() : function(e) {+var BIe = ["children", "type"], VIe = ["ref"];+function V2() {+ return V2 = 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;- }, x0.apply(null, arguments);+ }, V2.apply(null, arguments);}-function S0(e, t) {+function H2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -66738,30 +69488,30 @@ function S0(e, t) {}return n;}-function C0(e) {+function U2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? S0(Object(n), !0).forEach(function(t) {- EFe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S0(Object(n)).forEach(function(t) {+ t % 2 ? H2(Object(n), !0).forEach(function(t) {+ HIe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function EFe(e, t, n) {- return (t = DFe(t)) in e ? Object.defineProperty(e, t, {+function HIe(e, t, n) {+ return (t = UIe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function DFe(e) {- var t = OFe(e, "string");+function UIe(e) {+ var t = WIe(e, "string");return typeof t == "symbol" ? t : t + "";}-function OFe(e, t) {+function WIe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -66771,16 +69521,16 @@ function OFe(e, t) {}return (t === "string" ? String : Number)(e);}-function w0(e, t) {+function W2(e, t) {if (e == null) return {};- var n, r, i = kFe(e, t);+ var n, r, i = GIe(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 kFe(e, t) {+function GIe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -66789,47 +69539,47 @@ function kFe(e, t) {}return n;}-var T0 = 1e-5, AFe = Math.cos(FK(45)), jFe = "angleAxis";-function MFe(e) {- var t = kV(), n = RW(), r = (0, B.useMemo)(() => {- var { children: t, type: r } = e, i = w0(e, wFe), a = xq(n, "angleAxis", r);- if (a != null) return C0(C0({}, i), {}, { type: a });- }, [e, n]), i = r === Q((e) => Eq(e, r?.id));- return (0, B.useEffect)(() => r == null ? KB : (t(aFe(r)), () => {- t(oFe(r));+var G2 = 1e-5, KIe = Math.cos($q(45)), qIe = "angleAxis";+function JIe(e) {+ var t = qH(), n = nK(), r = (0, B.useMemo)(() => {+ var { children: t, type: r } = e, i = W2(e, BIe), a = zJ(n, "angleAxis", r);+ if (a != null) return U2(U2({}, i), {}, { type: a });+ }, [e, n]), i = r === Q((e) => WJ(e, r?.id));+ return (0, B.useEffect)(() => r == null ? uH : (t(xIe(r)), () => {+ t(SIe(r));}), [t, r]), i ? e.children : null;}-var NFe = (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 YIe = (e, t) => {+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = eJ(n, r, i, e.coordinate), l = eJ(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);return {x1: c.x,y1: c.y,x2: l.x,y2: l.y};-}, PFe = (e, t) => {- var n = Math.cos(FK(-e.coordinate));- return n > T0 ? t === "outer" ? "start" : "end" : n < -T0 ? t === "outer" ? "end" : "start" : "middle";-}, FFe = (e) => {- var t = Math.cos(FK(-e.coordinate)), n = Math.sin(FK(-e.coordinate));- return Math.abs(t) <= AFe ? n > 0 ? "start" : "end" : "middle";-}, IFe = (e) => {+}, XIe = (e, t) => {+ var n = Math.cos($q(-e.coordinate));+ return n > G2 ? t === "outer" ? "start" : "end" : n < -G2 ? t === "outer" ? "end" : "start" : "middle";+}, ZIe = (e) => {+ var t = Math.cos($q(-e.coordinate)), n = Math.sin($q(-e.coordinate));+ return Math.abs(t) <= KIe ? n > 0 ? "start" : "end" : "middle";+}, QIe = (e) => {var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;if (!a) return null;- var s = C0(C0({}, Ez(e)), {}, { fill: "none" }, Ez(a));- if (i === "circle") return /*#__PURE__*/ B.createElement(J1, x0({ className: "recharts-polar-angle-axis-line" }, s, {+ var s = U2(U2({}, UB(e)), {}, { fill: "none" }, UB(a));+ if (i === "circle") return /*#__PURE__*/ B.createElement(m2, V2({ className: "recharts-polar-angle-axis-line" }, s, {cx: t,cy: n,r}));- var c = o.map((e) => IK(t, n, r, e.coordinate));- return /*#__PURE__*/ B.createElement(K1, x0({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));-}, LFe = (e) => {+ var c = o.map((e) => eJ(t, n, r, e.coordinate));+ return /*#__PURE__*/ B.createElement(f2, V2({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));+}, $Ie = (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(y1, x0({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;-}, RFe = (e) => {- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = Ez(e), { ref: s } = o, c = w0(o, TFe), l = Dz(t), u = C0(C0({}, c), {}, { fill: "none" }, Ez(n)), d = a.map((a, o) => {- var s = NFe(a, e), d = PFe(a, e.orientation), f = FFe(a), p = C0(C0(C0({}, c), {}, {+ return t ? /*#__PURE__*/ B.isValidElement(t) ? /*#__PURE__*/ B.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ B.createElement(z0, V2({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;+}, eLe = (e) => {+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = UB(e), { ref: s } = o, c = W2(o, VIe), l = WB(t), u = U2(U2({}, c), {}, { fill: "none" }, UB(n)), d = a.map((a, o) => {+ var s = YIe(a, e), d = XIe(a, e.orientation), f = ZIe(a), p = U2(U2(U2({}, c), {}, {textAnchor: d,verticalAnchor: f,stroke: "none",@@ -66840,28 +69590,28 @@ var NFe = (e, t) => {x: s.x2,y: s.y2});- return /*#__PURE__*/ B.createElement(Mz, x0({- className: _h("recharts-polar-angle-axis-tick", h0(t)),+ return /*#__PURE__*/ B.createElement(YB, V2({+ className: _h("recharts-polar-angle-axis-tick", F2(t)),key: `tick-${a.coordinate}`- }, eV(e, a, o)), n && /*#__PURE__*/ B.createElement("line", x0({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(LFe, {+ }, vH(e, a, o)), n && /*#__PURE__*/ B.createElement("line", V2({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement($Ie, {tick: t,tickProps: p,value: r ? r(a.value, o) : a.value}));});- return /*#__PURE__*/ B.createElement(Mz, { className: "recharts-polar-angle-axis-ticks" }, d);-}, zFe = (e) => {- var { angleAxisId: t } = e, n = Q(Pq), r = Q((e) => i0(e, "angleAxis", t)), i = gW(), a = Q((e) => VPe(e, "angleAxis", t, i));+ return /*#__PURE__*/ B.createElement(YB, { className: "recharts-polar-angle-axis-ticks" }, d);+}, tLe = (e) => {+ var { angleAxisId: t } = e, n = Q(QJ), r = Q((e) => w2(e, "angleAxis", t)), i = PG(), a = Q((e) => rIe(e, "angleAxis", t, i));if (n == null || !a || !a.length || r == null) return null;- var o = C0(C0(C0({}, e), {}, { scale: r }, n), {}, {+ var o = U2(U2(U2({}, e), {}, { scale: r }, n), {}, {radius: n.outerRadius,ticks: a});- return /*#__PURE__*/ B.createElement(j$, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(Mz, { className: _h("recharts-polar-angle-axis", jFe, o.className) }, /*#__PURE__*/ B.createElement(IFe, o), /*#__PURE__*/ B.createElement(RFe, o)));+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: _h("recharts-polar-angle-axis", qIe, o.className) }, /*#__PURE__*/ B.createElement(QIe, o), /*#__PURE__*/ B.createElement(eLe, o)));};-function E0(e) {- var t = nV(e, vq);- return /*#__PURE__*/ B.createElement(MFe, {+function K2(e) {+ var t = bH(e, IJ);+ return /*#__PURE__*/ B.createElement(JIe, {id: t.angleAxisId,scale: t.scale,type: t.type,@@ -66878,12 +69628,12 @@ function E0(e) {ticks: t.ticks,tick: t.tick,domain: t.domain- }, /*#__PURE__*/ B.createElement(zFe, t));+ }, /*#__PURE__*/ B.createElement(tLe, t));}-E0.displayName = "PolarAngleAxis";+K2.displayName = "PolarAngleAxis";//#endregion//#region node_modules/react-is/cjs/react-is.production.js-var BFe = /* @__PURE__ */ xt(((e) => {+var nLe = /* @__PURE__ */ xt(((e) => {var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");function m(e) {if (typeof e == "object" && e) {@@ -66912,26 +69662,26 @@ var BFe = /* @__PURE__ */ xt(((e) => {e.isFragment = function(e) {return m(e) === r;};-})), VFe = (/* @__PURE__ */ xt(((e, t) => {- t.exports = BFe();-})))(), D0 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", O0 = null, k0 = null, A0 = (e) => {- if (e === O0 && Array.isArray(k0)) return k0;+})), rLe = (/* @__PURE__ */ xt(((e, t) => {+ t.exports = nLe();+})))(), q2 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", J2 = null, Y2 = null, X2 = (e) => {+ if (e === J2 && Array.isArray(Y2)) return Y2;var t = [];return B.Children.forEach(e, (e) => {- UB(e) || ((0, VFe.isFragment)(e) ? t = t.concat(A0(e.props.children)) : t.push(e));- }), k0 = t, O0 = e, t;+ sH(e) || ((0, rLe.isFragment)(e) ? t = t.concat(X2(e.props.children)) : t.push(e));+ }), Y2 = t, J2 = e, t;};-function j0(e, t) {+function Z2(e, t) {var n = [], r = [];- return r = Array.isArray(t) ? t.map((e) => D0(e)) : [D0(t)], A0(e).forEach((e) => {- var t = jB(e, "type.displayName") || jB(e, "type.name");+ return r = Array.isArray(t) ? t.map((e) => q2(e)) : [q2(t)], X2(e).forEach((e) => {+ var t = YV(e, "type.displayName") || YV(e, "type.name");t && r.indexOf(t) !== -1 && n.push(e);}), n;}-var M0 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;+var Q2 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs-function HFe(e) {+function iLe(e) {if (typeof e != "object" || !e) return !1;if (Object.getPrototypeOf(e) === null) return !0;if (Object.prototype.toString.call(e) !== "[object Object]") {@@ -66944,8 +69694,8 @@ function HFe(e) {}//#endregion//#region node_modules/recharts/es6/shape/Trapezoid.js-var UFe, WFe, GFe, KFe, qFe;-function N0(e, t) {+var aLe, oLe, sLe, cLe, lLe;+function $2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -66955,30 +69705,30 @@ function N0(e, t) {}return n;}-function P0(e) {+function e4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? N0(Object(n), !0).forEach(function(t) {- JFe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N0(Object(n)).forEach(function(t) {+ t % 2 ? $2(Object(n), !0).forEach(function(t) {+ uLe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function JFe(e, t, n) {- return (t = YFe(t)) in e ? Object.defineProperty(e, t, {+function uLe(e, t, n) {+ return (t = dLe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function YFe(e) {- var t = XFe(e, "string");+function dLe(e) {+ var t = fLe(e, "string");return typeof t == "symbol" ? t : t + "";}-function XFe(e, t) {+function fLe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -66988,42 +69738,42 @@ function XFe(e, t) {}return (t === "string" ? String : Number)(e);}-function F0() {- return F0 = Object.assign ? Object.assign.bind() : function(e) {+function t4() {+ return t4 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, F0.apply(null, arguments);+ }, t4.apply(null, arguments);}-function I0(e, t) {+function n4(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var L0 = (e, t, n, r, i) => {- var a = n - r, o = NB(UFe ||= I0([+var r4 = (e, t, n, r, i) => {+ var a = n - r, o = ZV(aLe ||= n4(["M ",",",""]), e, t);- return o += NB(WFe ||= I0([+ return o += ZV(oLe ||= n4(["L ",",",""- ]), e + n, t), o += NB(GFe ||= I0([+ ]), e + n, t), o += ZV(sLe ||= n4(["L ",",",""- ]), e + n - a / 2, t + i), o += NB(KFe ||= I0([+ ]), e + n - a / 2, t + i), o += ZV(cLe ||= n4(["L ",",",""- ]), e + n - a / 2 - r, t + i), o += NB(qFe ||= I0([+ ]), e + n - a / 2 - r, t + i), o += ZV(lLe ||= n4(["L ",","," Z"]), e, t), o;-}, ZFe = {+}, pLe = {x: 0,y: 0,upperWidth: 0,@@ -67033,8 +69783,8 @@ var L0 = (e, t, n, r, i) => {animationBegin: 0,animationDuration: 1500,animationEasing: "ease"-}, QFe = (e) => {- var t = nV(e, ZFe), { 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 = CK(e, "trapezoid-");+}, mLe = (e) => {+ var t = bH(e, pLe), { 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 = Vq(e, "trapezoid-");if ((0, B.useEffect)(() => {if (f.current && f.current.getTotalLength) try {var e = f.current.getTotalLength();@@ -67042,12 +69792,12 @@ var L0 = (e, t, n, r, i) => {} catch {}}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;var x = _h("recharts-trapezoid", s);- if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", F0({}, Oz(t), {+ if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", t4({}, GB(t), {className: x,- d: L0(n, r, i, a, o)+ d: r4(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 = lK(["strokeDasharray"], l, c);- return /*#__PURE__*/ B.createElement(SK, {+ 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 = Dq(["strokeDasharray"], l, c);+ return /*#__PURE__*/ B.createElement(Bq, {animationId: b,key: b,canBegin: p > 0,@@ -67056,35 +69806,35 @@ var L0 = (e, t, n, r, i) => {isActive: d,begin: u}, (e) => {- var s = VB(S, i, e), c = VB(C, a, e), l = VB(w, o, e), u = VB(T, n, e), d = VB(E, r, e);+ var s = aH(S, i, e), c = aH(C, a, e), l = aH(w, o, e), u = aH(T, n, e), d = aH(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", F0({}, Oz(t), {+ return /*#__PURE__*/ B.createElement("path", t4({}, GB(t), {className: x,- d: L0(u, d, s, c, l),+ d: r4(u, d, s, c, l),ref: f,- style: P0(P0({}, p), t.style)+ style: e4(e4({}, p), t.style)}));});-}, $Fe = [+}, hLe = ["option","shapeType","activeClassName","inActiveClassName"];-function eIe(e, t) {+function gLe(e, t) {if (e == null) return {};- var n, r, i = tIe(e, t);+ var n, r, i = _Le(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 tIe(e, t) {+function _Le(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -67093,7 +69843,7 @@ function tIe(e, t) {}return n;}-function R0(e, t) {+function i4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -67103,30 +69853,30 @@ function R0(e, t) {}return n;}-function z0(e) {+function a4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? R0(Object(n), !0).forEach(function(t) {- nIe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R0(Object(n)).forEach(function(t) {+ t % 2 ? i4(Object(n), !0).forEach(function(t) {+ vLe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function nIe(e, t, n) {- return (t = rIe(t)) in e ? Object.defineProperty(e, t, {+function vLe(e, t, n) {+ return (t = yLe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function rIe(e) {- var t = iIe(e, "string");+function yLe(e) {+ var t = bLe(e, "string");return typeof t == "symbol" ? t : t + "";}-function iIe(e, t) {+function bLe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -67136,68 +69886,68 @@ function iIe(e, t) {}return (t === "string" ? String : Number)(e);}-function aIe(e, t) {- return z0(z0({}, t), e);+function xLe(e, t) {+ return a4(a4({}, t), e);}-function oIe(e, t) {+function SLe(e, t) {return e === "symbols";}-function B0(e) {+function o4(e) {var { shapeType: t, elementProps: n } = e;switch (t) {- case "rectangle": return /*#__PURE__*/ B.createElement(jK, n);- case "trapezoid": return /*#__PURE__*/ B.createElement(QFe, n);- case "sector": return /*#__PURE__*/ B.createElement(HK, n);+ case "rectangle": return /*#__PURE__*/ B.createElement(Yq, n);+ case "trapezoid": return /*#__PURE__*/ B.createElement(mLe, n);+ case "sector": return /*#__PURE__*/ B.createElement(oJ, n);case "symbols":- if (oIe(t, n)) return /*#__PURE__*/ B.createElement(ZB, n);+ if (SLe(t, n)) return /*#__PURE__*/ B.createElement(hH, n);break;- case "curve": return /*#__PURE__*/ B.createElement(iK, n);+ case "curve": return /*#__PURE__*/ B.createElement(Sq, n);default: return null;}}-function sIe(e) {+function CLe(e) {return /*#__PURE__*/ (0, B.isValidElement)(e) ? e.props : e;}-function V0(e) {- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = eIe(e, $Fe), o;- if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, z0(z0({}, a), sIe(t)));+function s4(e) {+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = gLe(e, hLe), o;+ if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, a4(a4({}, a), CLe(t)));else if (typeof t == "function") o = t(a, a.index);- else if (HFe(t) && typeof t != "boolean") {- var s = aIe(t, a);- o = /*#__PURE__*/ B.createElement(B0, {+ else if (iLe(t) && typeof t != "boolean") {+ var s = xLe(t, a);+ o = /*#__PURE__*/ B.createElement(o4, {shapeType: n,elementProps: s});} else {var c = a;- o = /*#__PURE__*/ B.createElement(B0, {+ o = /*#__PURE__*/ B.createElement(o4, {shapeType: n,elementProps: c});}- return a.isActive ? /*#__PURE__*/ B.createElement(Mz, { className: r }, o) : /*#__PURE__*/ B.createElement(Mz, { className: i }, o);+ return a.isActive ? /*#__PURE__*/ B.createElement(YB, { className: r }, o) : /*#__PURE__*/ B.createElement(YB, { className: i }, o);}//#endregion//#region node_modules/recharts/es6/context/tooltipContext.js-var H0 = (e, t, n) => {- var r = kV();+var c4 = (e, t, n) => {+ var r = qH();return (i, a) => (o) => {- e?.(i, a, o), r(MQ({+ e?.(i, a, o), r(Q$({activeIndex: String(a),activeDataKey: t,activeCoordinate: i.tooltipPosition,activeGraphicalItemId: n}));};-}, U0 = (e) => {- var t = kV();+}, l4 = (e) => {+ var t = qH();return (n, r) => (i) => {- e?.(n, r, i), t(Kje());+ e?.(n, r, i), t(cNe());};-}, W0 = (e, t, n) => {- var r = kV();+}, u4 = (e, t, n) => {+ var r = qH();return (i, a) => (o) => {- e?.(i, a, o), r(qje({+ e?.(i, a, o), r(lNe({activeIndex: String(a),activeDataKey: t,activeCoordinate: i.tooltipPosition,@@ -67207,10 +69957,10 @@ var H0 = (e, t, n) => {};//#endregion//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js-function G0(e) {- var { tooltipEntrySettings: t } = e, n = kV(), r = gW(), i = (0, B.useRef)(null);+function d4(e) {+ var { tooltipEntrySettings: t } = e, n = qH(), r = PG(), i = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {- r || (i.current === null ? n(Hje(t)) : i.current !== t && n(Uje({+ r || (i.current === null ? n(iNe(t)) : i.current !== t && n(aNe({prev: i.current,next: t})), i.current = t);@@ -67219,15 +69969,15 @@ function G0(e) {n,r]), (0, B.useLayoutEffect)(() => () => {- i.current &&= (n(Wje(i.current)), null);+ i.current &&= (n(oNe(i.current)), null);}, [n]), null;}//#endregion//#region node_modules/recharts/es6/state/SetLegendPayload.js-function K0(e) {- var { legendPayload: t } = e, n = kV(), r = gW(), i = (0, B.useRef)(null);+function f4(e) {+ var { legendPayload: t } = e, n = qH(), r = PG(), i = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {- r || (i.current === null ? n(OG(t)) : i.current !== t && n(kG({+ r || (i.current === null ? n(KK(t)) : i.current !== t && n(qK({prev: i.current,next: t})), i.current = t);@@ -67236,13 +69986,13 @@ function K0(e) {r,t]), (0, B.useLayoutEffect)(() => () => {- i.current &&= (n(AG(i.current)), null);+ i.current &&= (n(JK(i.current)), null);}, [n]), null;}-function q0(e) {- var { legendPayload: t } = e, n = kV(), r = Q(PW), i = (0, B.useRef)(null);+function p4(e) {+ var { legendPayload: t } = e, n = qH(), r = Q(QG), i = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {- (r === "centric" || r === "radial") && (i.current === null ? n(OG(t)) : i.current !== t && n(kG({+ (r === "centric" || r === "radial") && (i.current === null ? n(KK(t)) : i.current !== t && n(qK({prev: i.current,next: t})), i.current = t);@@ -67251,27 +70001,27 @@ function q0(e) {r,t]), (0, B.useLayoutEffect)(() => () => {- i.current &&= (n(AG(i.current)), null);+ i.current &&= (n(JK(i.current)), null);}, [n]), null;}//#endregion//#region node_modules/recharts/es6/util/useId.js-var cIe = B.useId ?? (() => {- var [e] = B.useState(() => RB("uid-"));+var wLe = B.useId ?? (() => {+ var [e] = B.useState(() => nH("uid-"));return e;});//#endregion//#region node_modules/recharts/es6/util/useUniqueId.js-function lIe(e, t) {- var n = cIe();+function TLe(e, t) {+ var n = wLe();return t || (e ? `${e}-${n}` : n);}//#endregion//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js-var uIe = /*#__PURE__*/ (0, B.createContext)(void 0), J0 = (e) => {- var { id: t, type: n, children: r } = e, i = lIe(`recharts-${n}`, t);- return /*#__PURE__*/ B.createElement(uIe.Provider, { value: i }, r(i));-}, Y0 = mU({+var ELe = /*#__PURE__*/ (0, B.createContext)(void 0), m4 = (e) => {+ var { id: t, type: n, children: r } = e, i = TLe(`recharts-${n}`, t);+ return /*#__PURE__*/ B.createElement(ELe.Provider, { value: i }, r(i));+}, h4 = MW({name: "graphicalItems",initialState: {cartesianItems: [],@@ -67280,80 +70030,80 @@ var uIe = /*#__PURE__*/ (0, B.createContext)(void 0), J0 = (e) => {reducers: {addCartesianGraphicalItem: {reducer(e, t) {- e.cartesianItems.push(TG(t.payload));+ e.cartesianItems.push(UK(t.payload));},- prepare: uU()+ prepare: OW()},replaceCartesianGraphicalItem: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = tU(e).cartesianItems.indexOf(TG(n));- i > -1 && (e.cartesianItems[i] = TG(r));+ var { prev: n, next: r } = t.payload, i = yW(e).cartesianItems.indexOf(UK(n));+ i > -1 && (e.cartesianItems[i] = UK(r));},- prepare: uU()+ prepare: OW()},removeCartesianGraphicalItem: {reducer(e, t) {- var n = tU(e).cartesianItems.indexOf(TG(t.payload));+ var n = yW(e).cartesianItems.indexOf(UK(t.payload));n > -1 && e.cartesianItems.splice(n, 1);},- prepare: uU()+ prepare: OW()},addPolarGraphicalItem: {reducer(e, t) {- e.polarItems.push(TG(t.payload));+ e.polarItems.push(UK(t.payload));},- prepare: uU()+ prepare: OW()},removePolarGraphicalItem: {reducer(e, t) {- var n = tU(e).polarItems.indexOf(TG(t.payload));+ var n = yW(e).polarItems.indexOf(UK(t.payload));n > -1 && e.polarItems.splice(n, 1);},- prepare: uU()+ prepare: OW()},replacePolarGraphicalItem: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = tU(e).polarItems.indexOf(TG(n));- i > -1 && (e.polarItems[i] = TG(r));+ var { prev: n, next: r } = t.payload, i = yW(e).polarItems.indexOf(UK(n));+ i > -1 && (e.polarItems[i] = UK(r));},- prepare: uU()+ prepare: OW()}}-}), { addCartesianGraphicalItem: dIe, replaceCartesianGraphicalItem: fIe, removeCartesianGraphicalItem: pIe, addPolarGraphicalItem: mIe, removePolarGraphicalItem: hIe, replacePolarGraphicalItem: gIe } = Y0.actions, _Ie = Y0.reducer, X0 = /*#__PURE__*/ (0, B.memo)((e) => {- var t = kV(), n = (0, B.useRef)(null);+}), { addCartesianGraphicalItem: DLe, replaceCartesianGraphicalItem: OLe, removeCartesianGraphicalItem: kLe, addPolarGraphicalItem: ALe, removePolarGraphicalItem: jLe, replacePolarGraphicalItem: MLe } = h4.actions, NLe = h4.reducer, g4 = /*#__PURE__*/ (0, B.memo)((e) => {+ var t = qH(), n = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {- n.current === null ? t(dIe(e)) : n.current !== e && t(fIe({+ n.current === null ? t(DLe(e)) : n.current !== e && t(OLe({prev: n.current,next: e})), n.current = e;}, [t, e]), (0, B.useLayoutEffect)(() => () => {- n.current &&= (t(pIe(n.current)), null);+ n.current &&= (t(kLe(n.current)), null);}, [t]), null;-}), Z0 = /*#__PURE__*/ (0, B.memo)((e) => {- var t = kV(), n = (0, B.useRef)(null);+}), _4 = /*#__PURE__*/ (0, B.memo)((e) => {+ var t = qH(), n = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {- n.current === null ? t(mIe(e)) : n.current !== e && t(gIe({+ n.current === null ? t(ALe(e)) : n.current !== e && t(MLe({prev: n.current,next: e})), n.current = e;}, [t, e]), (0, B.useLayoutEffect)(() => () => {- n.current &&= (t(hIe(n.current)), null);+ n.current &&= (t(jLe(n.current)), null);}, [t]), null;});//#endregion//#region node_modules/es-toolkit/dist/array/last.mjs-function vIe(e) {+function PLe(e) {return e[e.length - 1];}//#endregion//#region node_modules/es-toolkit/dist/compat/array/last.mjs-function yIe(e) {- if (!(!cV(e) || e.length === 0)) return vIe(p0(e));+function FLe(e) {+ if (!(!EH(e) || e.length === 0)) return PLe(N2(e));}//#endregion//#region node_modules/recharts/es6/component/Dots.js-var bIe = ["points"];-function Q0(e, t) {+var ILe = ["points"];+function v4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -67363,30 +70113,30 @@ function Q0(e, t) {}return n;}-function $0(e) {+function y4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Q0(Object(n), !0).forEach(function(t) {- xIe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q0(Object(n)).forEach(function(t) {+ t % 2 ? v4(Object(n), !0).forEach(function(t) {+ LLe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function xIe(e, t, n) {- return (t = SIe(t)) in e ? Object.defineProperty(e, t, {+function LLe(e, t, n) {+ return (t = RLe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function SIe(e) {- var t = CIe(e, "string");+function RLe(e) {+ var t = zLe(e, "string");return typeof t == "symbol" ? t : t + "";}-function CIe(e, t) {+function zLe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -67396,25 +70146,25 @@ function CIe(e, t) {}return (t === "string" ? String : Number)(e);}-function e2() {- return e2 = Object.assign ? Object.assign.bind() : function(e) {+function b4() {+ return b4 = 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;- }, e2.apply(null, arguments);+ }, b4.apply(null, arguments);}-function wIe(e, t) {+function BLe(e, t) {if (e == null) return {};- var n, r, i = TIe(e, t);+ var n, r, i = VLe(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 TIe(e, t) {+function VLe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -67423,21 +70173,21 @@ function TIe(e, t) {}return n;}-function EIe(e) {+function HLe(e) {var { option: t, dotProps: n, className: r } = e;if (/*#__PURE__*/ (0, B.isValidElement)(t)) return /*#__PURE__*/ (0, B.cloneElement)(t, n);if (typeof t == "function") return t(n);- var i = _h(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = wIe(a, bIe);- return /*#__PURE__*/ B.createElement(J1, e2({}, s, { className: i }));+ var i = _h(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = BLe(a, ILe);+ return /*#__PURE__*/ B.createElement(m2, b4({}, s, { className: i }));}-function DIe(e, t) {+function ULe(e, t) {return e == null ? !1 : t ? !0 : e.length === 1;}-function t2(e) {- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = _q.scatter } = e;- if (!DIe(t, n)) return null;- var u = M0(n), d = Mxe(n), f = t.map((e, r) => {- var s = $0($0($0({ r: 3 }, o), d), {}, {+function x4(e) {+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = FJ.scatter } = e;+ if (!ULe(t, n)) return null;+ var u = Q2(n), d = ZSe(n), f = t.map((e, r) => {+ var s = y4(y4(y4({ r: 3 }, o), d), {}, {index: r,cx: e.x ?? void 0,cy: e.y ?? void 0,@@ -67446,18 +70196,18 @@ function t2(e) {payload: e.payload,points: t});- return /*#__PURE__*/ B.createElement(EIe, {+ return /*#__PURE__*/ B.createElement(HLe, {key: `dot-${r}`,option: n,dotProps: s,className: i});}), p = {};- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(j$, { zIndex: l }, /*#__PURE__*/ B.createElement(Mz, e2({ className: r }, p), f));+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(Z1, { zIndex: l }, /*#__PURE__*/ B.createElement(YB, b4({ className: r }, p), f));}//#endregion//#region node_modules/recharts/es6/state/cartesianAxisSlice.js-function n2(e, t) {+function S4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -67467,30 +70217,30 @@ function n2(e, t) {}return n;}-function r2(e) {+function C4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? n2(Object(n), !0).forEach(function(t) {- OIe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n2(Object(n)).forEach(function(t) {+ t % 2 ? S4(Object(n), !0).forEach(function(t) {+ WLe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function OIe(e, t, n) {- return (t = kIe(t)) in e ? Object.defineProperty(e, t, {+function WLe(e, t, n) {+ return (t = GLe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function kIe(e) {- var t = AIe(e, "string");+function GLe(e) {+ var t = KLe(e, "string");return typeof t == "symbol" ? t : t + "";}-function AIe(e, t) {+function KLe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -67500,7 +70250,7 @@ function AIe(e, t) {}return (t === "string" ? String : Number)(e);}-var i2 = mU({+var w4 = MW({name: "cartesianAxis",initialState: {xAxis: {},@@ -67510,60 +70260,60 @@ var i2 = mU({reducers: {addXAxis: {reducer(e, t) {- e.xAxis[t.payload.id] = TG(t.payload);+ e.xAxis[t.payload.id] = UK(t.payload);},- prepare: uU()+ prepare: OW()},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] = TG(r));+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = UK(r));},- prepare: uU()+ prepare: OW()},removeXAxis: {reducer(e, t) {delete e.xAxis[t.payload.id];},- prepare: uU()+ prepare: OW()},addYAxis: {reducer(e, t) {- e.yAxis[t.payload.id] = TG(t.payload);+ e.yAxis[t.payload.id] = UK(t.payload);},- prepare: uU()+ prepare: OW()},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] = TG(r));+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = UK(r));},- prepare: uU()+ prepare: OW()},removeYAxis: {reducer(e, t) {delete e.yAxis[t.payload.id];},- prepare: uU()+ prepare: OW()},addZAxis: {reducer(e, t) {- e.zAxis[t.payload.id] = TG(t.payload);+ e.zAxis[t.payload.id] = UK(t.payload);},- prepare: uU()+ prepare: OW()},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] = TG(r));+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = UK(r));},- prepare: uU()+ prepare: OW()},removeZAxis: {reducer(e, t) {delete e.zAxis[t.payload.id];},- prepare: uU()+ prepare: OW()},updateYAxisWidth(e, t) {var { id: n, width: r } = t.payload, i = e.yAxis[n];@@ -67571,22 +70321,22 @@ var i2 = mU({var a = i.widthHistory || [];if (a.length === 3 && a[0] === a[2] && r === a[1] && r !== i.width && Math.abs(r - (a[0] ?? 0)) <= 1) return;var o = [...a, r].slice(-3);- e.yAxis[n] = r2(r2({}, i), {}, {+ e.yAxis[n] = C4(C4({}, i), {}, {width: r,widthHistory: o});}}}-}), { addXAxis: jIe, replaceXAxis: MIe, removeXAxis: NIe, addYAxis: PIe, replaceYAxis: FIe, removeYAxis: IIe, addZAxis: LIe, replaceZAxis: RIe, removeZAxis: zIe, updateYAxisWidth: BIe } = i2.actions, VIe = i2.reducer, HIe = $([- $([mW], (e) => ({+}), { addXAxis: qLe, replaceXAxis: JLe, removeXAxis: YLe, addYAxis: XLe, replaceYAxis: ZLe, removeYAxis: QLe, addZAxis: $Le, replaceZAxis: eRe, removeZAxis: tRe, updateYAxisWidth: nRe } = w4.actions, rRe = w4.reducer, iRe = $([+ $([MG], (e) => ({top: e.top,bottom: e.bottom,left: e.left,right: e.right})),- sW,- cW+ TG,+ EG], (e, t, n) => {if (!(!e || t == null || n == null)) return {x: e.left,@@ -67594,10 +70344,10 @@ var i2 = mU({width: Math.max(0, t - e.left - e.right),height: Math.max(0, n - e.top - e.bottom)};-}), a2 = () => Q(HIe), UIe = () => Q(SMe);+}), T4 = () => Q(iRe), aRe = () => Q(RNe);//#endregion//#region node_modules/recharts/es6/component/ActivePoints.js-function o2(e, t) {+function E4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -67607,30 +70357,30 @@ function o2(e, t) {}return n;}-function s2(e) {+function D4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? o2(Object(n), !0).forEach(function(t) {- WIe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o2(Object(n)).forEach(function(t) {+ t % 2 ? E4(Object(n), !0).forEach(function(t) {+ oRe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function WIe(e, t, n) {- return (t = GIe(t)) in e ? Object.defineProperty(e, t, {+function oRe(e, t, n) {+ return (t = sRe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function GIe(e) {- var t = KIe(e, "string");+function sRe(e) {+ var t = cRe(e, "string");return typeof t == "symbol" ? t : t + "";}-function KIe(e, t) {+function cRe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -67640,10 +70390,10 @@ function KIe(e, t) {}return (t === "string" ? String : Number)(e);}-var qIe = (e) => {+var lRe = (e) => {var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;if (i === !1 || t.x == null || t.y == null) return null;- var s = s2(s2(s2({}, {+ var s = D4(D4(D4({}, {index: n,dataKey: a,cx: t.x,@@ -67654,17 +70404,17 @@ var qIe = (e) => {stroke: "#fff",payload: t.payload,value: t.value- }), Dz(i)), $B(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(J1, s);- return /*#__PURE__*/ B.createElement(Mz, {+ }), WB(i)), _H(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(m2, s);+ return /*#__PURE__*/ B.createElement(YB, {className: "recharts-active-dot",clipPath: o}, c);};-function c2(e) {- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = _q.activeDot } = e, s = Q(u$), c = UIe();+function O4(e) {+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = FJ.activeDot } = e, s = Q(A1), c = aRe();if (t == null || c == null) return null;var l = t.find((e) => c.includes(e.payload));- return UB(l) ? null : /*#__PURE__*/ B.createElement(j$, { zIndex: o }, /*#__PURE__*/ B.createElement(qIe, {+ return sH(l) ? null : /*#__PURE__*/ B.createElement(Z1, { zIndex: o }, /*#__PURE__*/ B.createElement(lRe, {point: l,childIndex: Number(s),mainColor: n,@@ -67675,7 +70425,7 @@ function c2(e) {}//#endregion//#region node_modules/recharts/es6/state/selectors/radarSelectors.js-function l2(e, t) {+function k4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -67685,30 +70435,30 @@ function l2(e, t) {}return n;}-function u2(e) {+function A4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? l2(Object(n), !0).forEach(function(t) {- JIe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l2(Object(n)).forEach(function(t) {+ t % 2 ? k4(Object(n), !0).forEach(function(t) {+ uRe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function JIe(e, t, n) {- return (t = YIe(t)) in e ? Object.defineProperty(e, t, {+function uRe(e, t, n) {+ return (t = dRe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function YIe(e) {- var t = XIe(e, "string");+function dRe(e) {+ var t = fRe(e, "string");return typeof t == "symbol" ? t : t + "";}-function XIe(e, t) {+function fRe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -67718,16 +70468,16 @@ function XIe(e, t) {}return (t === "string" ? String : Number)(e);}-var d2 = (e, t) => i0(e, "radiusAxis", t), ZIe = $([d2], (e) => {+var j4 = (e, t) => w2(e, "radiusAxis", t), pRe = $([j4], (e) => {if (e != null) return { scale: e };-}), QIe = $([Dq, d2], (e, t) => {- if (e != null && t != null) return u2(u2({}, e), {}, { scale: t });-}), $Ie = (e, t, n, r) => o0(e, "radiusAxis", t, r), f2 = (e, t, n) => Eq(e, n), p2 = (e, t, n) => i0(e, "angleAxis", n), eLe = $([f2, p2], (e, t) => {- if (e != null && t != null) return u2(u2({}, e), {}, { scale: t });-}), tLe = (e, t, n, r) => o0(e, "angleAxis", n, r), nLe = $([- f2,- p2,- Pq+}), mRe = $([GJ, j4], (e, t) => {+ if (e != null && t != null) return A4(A4({}, e), {}, { scale: t });+}), hRe = (e, t, n, r) => E2(e, "radiusAxis", t, r), M4 = (e, t, n) => WJ(e, n), N4 = (e, t, n) => w2(e, "angleAxis", n), gRe = $([M4, N4], (e, t) => {+ if (e != null && t != null) return A4(A4({}, e), {}, { scale: t });+}), _Re = (e, t, n, r) => E2(e, "angleAxis", n, r), vRe = $([+ M4,+ N4,+ QJ], (e, t, n) => {if (n != null && t != null) return {scale: t,@@ -67736,40 +70486,40 @@ var d2 = (e, t) => i0(e, "radiusAxis", t), ZIe = $([d2], (e) => {cx: n.cx,cy: n.cy};-}), rLe = (e, t, n, r, i) => i, iLe = $([- PW,- QIe,- $Ie,- eLe,- tLe-], (e, t, n, r, i) => JU(e, "radiusAxis") ? iW(t, n, !1) : iW(r, i, !1)), aLe = $([- ZIe,- nLe,- KK,- $([Y1, rLe], (e, t) => {+}), yRe = (e, t, n, r, i) => i, bRe = $([+ QG,+ mRe,+ hRe,+ gRe,+ _Re+], (e, t, n, r, i) => fG(e, "radiusAxis") ? SG(t, n, !1) : SG(r, i, !1)), xRe = $([+ pRe,+ vRe,+ uJ,+ $([h2, yRe], (e, t) => {if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;}),- iLe+ bRe], (e, t, n, r, i) => {var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;- if (e != null && t != null && a != null && i != null && r != null) return hLe({+ if (e != null && t != null && a != null && i != null && r != null) return jRe({radiusAxis: e,angleAxis: t,displayedData: a.slice(o, s + 1),dataKey: r,bandSize: i});-}), oLe = ["id"];-function m2() {- return m2 = Object.assign ? Object.assign.bind() : function(e) {+}), SRe = ["id"];+function P4() {+ return P4 = 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;- }, m2.apply(null, arguments);+ }, P4.apply(null, arguments);}-function h2(e, t) {+function F4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -67779,30 +70529,30 @@ function h2(e, t) {}return n;}-function g2(e) {+function I4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? h2(Object(n), !0).forEach(function(t) {- sLe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h2(Object(n)).forEach(function(t) {+ t % 2 ? F4(Object(n), !0).forEach(function(t) {+ CRe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function sLe(e, t, n) {- return (t = cLe(t)) in e ? Object.defineProperty(e, t, {+function CRe(e, t, n) {+ return (t = wRe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function cLe(e) {- var t = lLe(e, "string");+function wRe(e) {+ var t = TRe(e, "string");return typeof t == "symbol" ? t : t + "";}-function lLe(e, t) {+function TRe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -67812,16 +70562,16 @@ function lLe(e, t) {}return (t === "string" ? String : Number)(e);}-function uLe(e, t) {+function ERe(e, t) {if (e == null) return {};- var n, r, i = dLe(e, t);+ var n, r, i = DRe(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 dLe(e, t) {+function DRe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -67830,42 +70580,42 @@ function dLe(e, t) {}return n;}-function _2(e, t) {+function L4(e, t) {return e && e !== "none" ? e : t;}-var fLe = (e) => {+var ORe = (e) => {var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;return [{inactive: o,dataKey: t,type: a,- color: _2(r, i),- value: oW(n, t),+ color: L4(r, i),+ value: wG(n, t),payload: e}];-}, pLe = /*#__PURE__*/ B.memo((e) => {+}, kRe = /*#__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: KB,+ getPosition: uH,settings: {stroke: n,strokeWidth: r,fill: i,nameKey: void 0,dataKey: t,- name: oW(a, t),+ name: wG(a, t),hide: o,type: s,- color: _2(n, i),+ color: L4(n, i),unit: "",graphicalItemId: c}};- return /*#__PURE__*/ B.createElement(G0, { tooltipEntrySettings: l });+ return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: l });});-function mLe(e) {- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = Ez(uLe(n, oLe));- return /*#__PURE__*/ B.createElement(t2, {+function ARe(e) {+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = UB(ERe(n, SRe));+ return /*#__PURE__*/ B.createElement(x4, {points: t,dot: r,className: "recharts-radar-dots",@@ -67874,11 +70624,11 @@ function mLe(e) {baseProps: o});}-function hLe(e) {+function jRe(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 = qU(e, n.dataKey, r), d = qU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? yIe(d) : d, m = UB(p) ? 0 : t.scale.map(p) ?? 0;- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(g2(g2({}, IK(o, s, m, f)), {}, {+ var a = dG(e, n.dataKey, r), d = dG(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? FLe(d) : d, m = sH(p) ? 0 : t.scale.map(p) ?? 0;+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(I4(I4({}, eJ(o, s, m, f)), {}, {name: a,value: d,cx: o,@@ -67891,8 +70641,8 @@ function hLe(e) {var d = [];return c && l.forEach((e) => {if (Array.isArray(e.value)) {- var n = e.value[0], r = UB(n) ? 0 : t.scale.map(n) ?? 0;- d.push(g2(g2({}, e), {}, { radius: r }, IK(o, s, r, e.angle)));+ var n = e.value[0], r = sH(n) ? 0 : t.scale.map(n) ?? 0;+ d.push(I4(I4({}, e), {}, { radius: r }, eJ(o, s, r, e.angle)));} else d.push(e);}), {points: l,@@ -67900,7 +70650,7 @@ function hLe(e) {baseLinePoints: d};}-function gLe(e) {+function MRe(e) {var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {var t = {x: e.x,@@ -67910,7 +70660,7 @@ function gLe(e) {upperWidth: 0,height: 0};- return g2(g2({}, t), {}, {+ return I4(I4({}, t), {}, {value: e.value ?? "",payload: e.payload,parentViewBox: void 0,@@ -67918,12 +70668,12 @@ function gLe(e) {fill: void 0});});- return /*#__PURE__*/ B.createElement(z1, { value: t ? i : void 0 }, r);+ return /*#__PURE__*/ B.createElement(a2, { value: t ? i : void 0 }, r);}-function _Le(e) {+function NRe(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, g2(g2({}, r), {}, { points: t })) : typeof i == "function" ? i(g2(g2({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(K1, m2({}, Oz(r), {+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ B.isValidElement(i) ? /*#__PURE__*/ B.cloneElement(i, I4(I4({}, r), {}, { points: t })) : typeof i == "function" ? i(I4(I4({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(f2, P4({}, GB(r), {onMouseEnter: (e) => {var { onMouseEnter: t } = r;t && t(r, e);@@ -67936,31 +70686,31 @@ function _Le(e) {baseLinePoints: a ? n : void 0,connectNulls: o}));- return /*#__PURE__*/ B.createElement(Mz, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(mLe, {+ return /*#__PURE__*/ B.createElement(YB, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(ARe, {props: r,points: t}));}-var v2 = (e, t, n) => (r, i) => {+var R4 = (e, t, n) => (r, i) => {var a = e && e[Math.floor(i * t)];- return a ? g2(g2({}, r), {}, {- x: VB(a.x, r.x, n),- y: VB(a.y, r.y, n)- }) : g2(g2({}, r), {}, {- x: VB(r.cx, r.x, n),- y: VB(r.cy, r.y, n)+ return a ? I4(I4({}, r), {}, {+ x: aH(a.x, r.x, n),+ y: aH(a.y, r.y, n)+ }) : I4(I4({}, r), {}, {+ x: aH(r.cx, r.x, n),+ y: aH(r.cy, r.y, n)});};-function vLe(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 = CK(t, "recharts-radar-"), [_, v] = (0, B.useState)(!1), y = !_, b = (0, B.useCallback)(() => {+function PRe(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 = Vq(t, "recharts-radar-"), [_, v] = (0, B.useState)(!1), y = !_, b = (0, B.useCallback)(() => {typeof u == "function" && u(), v(!1);}, [u]), x = (0, B.useCallback)(() => {typeof d == "function" && d(), v(!0);}, [d]);- return /*#__PURE__*/ B.createElement(gLe, {+ return /*#__PURE__*/ B.createElement(MRe, {showLabels: y,points: i- }, /*#__PURE__*/ B.createElement(SK, {+ }, /*#__PURE__*/ B.createElement(Bq, {animationId: g,begin: s,duration: c,@@ -67970,23 +70720,23 @@ function vLe(e) {onAnimationEnd: b,onAnimationStart: x}, (e) => {- var o = e === 1 ? i : i.map(v2(f, m, e)), s = e === 1 ? a : a?.map(v2(p, h, e));- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ B.createElement(_Le, {+ var o = e === 1 ? i : i.map(R4(f, m, e)), s = e === 1 ? a : a?.map(R4(p, h, e));+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ B.createElement(NRe, {points: o,baseLinePoints: s,props: t});- }), /*#__PURE__*/ B.createElement(H1, { label: t.label }), t.children);+ }), /*#__PURE__*/ B.createElement(c2, { label: t.label }), t.children);}-function yLe(e) {+function FRe(e) {var t = (0, B.useRef)(void 0), n = (0, B.useRef)(void 0);- return /*#__PURE__*/ B.createElement(vLe, {+ return /*#__PURE__*/ B.createElement(PRe, {props: e,previousPointsRef: t,previousBaseLinePointsRef: n});}-var bLe = {+var IRe = {activeDot: !0,angleAxisId: 0,animationBegin: 0,@@ -67998,33 +70748,33 @@ var bLe = {label: !1,legendType: "rect",radiusAxisId: 0,- zIndex: _q.area+ zIndex: FJ.area};-function xLe(e) {+function LRe(e) {var { hide: t, className: n, points: r } = e;if (t) return null;var i = _h("recharts-radar", n);- return /*#__PURE__*/ B.createElement(j$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(Mz, { className: i }, /*#__PURE__*/ B.createElement(yLe, e)), /*#__PURE__*/ B.createElement(c2, {+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: i }, /*#__PURE__*/ B.createElement(FRe, e)), /*#__PURE__*/ B.createElement(O4, {points: r,- mainColor: _2(e.stroke, e.fill),+ mainColor: L4(e.stroke, e.fill),itemDataKey: e.dataKey,activeDot: e.activeDot}));}-function SLe(e) {- var t = gW(), n = Q((n) => aLe(n, e.radiusAxisId, e.angleAxisId, t, e.id));- return n?.points == null ? null : /*#__PURE__*/ B.createElement(xLe, m2({}, e, {+function RRe(e) {+ var t = PG(), n = Q((n) => xRe(n, e.radiusAxisId, e.angleAxisId, t, e.id));+ return n?.points == null ? null : /*#__PURE__*/ B.createElement(LRe, P4({}, e, {points: n?.points,baseLinePoints: n?.baseLinePoints,isRange: n?.isRange}));}-function y2(e) {- var t = nV(e, bLe);- return /*#__PURE__*/ B.createElement(J0, {+function z4(e) {+ var t = bH(e, IRe);+ return /*#__PURE__*/ B.createElement(m4, {id: t.id,type: "radar"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(Z0, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(_4, {type: "radar",id: e,data: void 0,@@ -68032,7 +70782,7 @@ function y2(e) {hide: t.hide,angleAxisId: t.angleAxisId,radiusAxisId: t.radiusAxisId- }), /*#__PURE__*/ B.createElement(q0, { legendPayload: fLe(t) }), /*#__PURE__*/ B.createElement(pLe, {+ }), /*#__PURE__*/ B.createElement(p4, { legendPayload: ORe(t) }), /*#__PURE__*/ B.createElement(kRe, {dataKey: t.dataKey,stroke: t.stroke,strokeWidth: t.strokeWidth,@@ -68041,33 +70791,33 @@ function y2(e) {hide: t.hide,tooltipType: t.tooltipType,id: e- }), /*#__PURE__*/ B.createElement(SLe, m2({}, t, { id: e }))));+ }), /*#__PURE__*/ B.createElement(RRe, P4({}, t, { id: e }))));}-y2.displayName = "Radar";+z4.displayName = "Radar";//#endregion//#region node_modules/recharts/es6/util/RadialBarUtils.js-function b2() {- return b2 = Object.assign ? Object.assign.bind() : function(e) {+function B4() {+ return B4 = 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;- }, b2.apply(null, arguments);+ }, B4.apply(null, arguments);}-function x2(e) {+function V4(e) {return typeof e == "string" ? parseInt(e, 10) : e;}-function S2(e) {- return /*#__PURE__*/ B.createElement(V0, b2({ shapeType: "sector" }, e));+function H4(e) {+ return /*#__PURE__*/ B.createElement(s4, B4({ shapeType: "sector" }, e));}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js-var C2 = (e, t, n) => {+var U4 = (e, t, n) => {var r = n ?? e;- if (!UB(r)) return zB(r, t, 0);-}, w2 = (e, t, n) => {- var r = {}, i = e.filter(zq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {+ if (!sH(r)) return rH(r, t, 0);+}, W4 = (e, t, n) => {+ var r = {}, i = e.filter(rY), 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) => {@@ -68075,18 +70825,18 @@ var C2 = (e, t, n) => {return {stackId: r,dataKeys: i.map((e) => e.dataKey),- barSize: C2(t, n, i[0]?.barSize)+ barSize: U4(t, n, i[0]?.barSize)};}), c = a.map((e) => ({stackId: void 0,dataKeys: [e.dataKey].filter((e) => e != null),- barSize: C2(t, n, e.barSize)+ barSize: U4(t, n, e.barSize)}));return [...s, ...c];};//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js-function T2(e, t) {+function G4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -68096,30 +70846,30 @@ function T2(e, t) {}return n;}-function E2(e) {+function K4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? T2(Object(n), !0).forEach(function(t) {- CLe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T2(Object(n)).forEach(function(t) {+ t % 2 ? G4(Object(n), !0).forEach(function(t) {+ zRe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function CLe(e, t, n) {- return (t = wLe(t)) in e ? Object.defineProperty(e, t, {+function zRe(e, t, n) {+ return (t = BRe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function wLe(e) {- var t = TLe(e, "string");+function BRe(e) {+ var t = VRe(e, "string");return typeof t == "symbol" ? t : t + "";}-function TLe(e, t) {+function VRe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -68129,11 +70879,11 @@ function TLe(e, t) {}return (t === "string" ? String : Number)(e);}-function ELe(e, t, n, r, i) {+function HRe(e, t, n, r, i) {var a = r.length;if (!(a < 1)) {- var o = zB(e, n, 0, !0), s, c = [];- if (UU(r[0]?.barSize)) {+ var o = rH(e, n, 0, !0), s, c = [];+ if (sG(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 = {@@ -68152,11 +70902,11 @@ function ELe(e, t, n, r, i) {return f = n.position, r;}, c);} else {- var p = zB(t, n, 0, !0);+ var p = rH(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 = UU(i) ? Math.min(m, i) : m;+ var h = sG(i) ? Math.min(m, i) : m;s = r.reduce((e, t, n) => [...e, {stackId: t.stackId,dataKeys: t.dataKeys,@@ -68169,11 +70919,11 @@ function ELe(e, t, n, r, i) {return s;}}-var D2 = (e, t, n, r, i, a, o) => {- var s = UB(o) ? t : o, c = ELe(n, r, i === a ? a : i, e, s);- return i !== a && c != null && (c = c.map((e) => E2(E2({}, e), {}, { position: E2(E2({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;-}, O2 = (e, t) => {- var n = Lq(t);+var q4 = (e, t, n, r, i, a, o) => {+ var s = sH(o) ? t : o, c = HRe(n, r, i === a ? a : i, e, s);+ return i !== a && c != null && (c = c.map((e) => K4(K4({}, e), {}, { position: K4(K4({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;+}, J4 = (e, t) => {+ var n = tY(t);if (!(!e || n == null || t == null)) {var { stackId: r } = t;if (r != null) {@@ -68184,7 +70934,7 @@ var D2 = (e, t, n, r, i, a, o) => {}}}-}, k2 = (e, t) => {+}, Y4 = (e, t) => {if (e != null && t != null) {var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));if (n != null) return n.position;@@ -68192,7 +70942,7 @@ var D2 = (e, t, n, r, i, a, o) => {};//#endregion//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js-function A2(e, t) {+function X4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -68202,30 +70952,30 @@ function A2(e, t) {}return n;}-function j2(e) {+function Z4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? A2(Object(n), !0).forEach(function(t) {- DLe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A2(Object(n)).forEach(function(t) {+ t % 2 ? X4(Object(n), !0).forEach(function(t) {+ URe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function DLe(e, t, n) {- return (t = OLe(t)) in e ? Object.defineProperty(e, t, {+function URe(e, t, n) {+ return (t = WRe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function OLe(e) {- var t = kLe(e, "string");+function WRe(e) {+ var t = GRe(e, "string");return typeof t == "symbol" ? t : t + "";}-function kLe(e, t) {+function GRe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -68235,81 +70985,81 @@ function kLe(e, t) {}return (t === "string" ? String : Number)(e);}-var M2 = $([(e, t) => Dq(e, t), (e, t) => i0(e, "radiusAxis", t)], (e, t) => {- if (e != null && t != null) return j2(j2({}, e), {}, { scale: t });-}), N2 = (e, t) => HPe(e, "radiusAxis", t, !1), P2 = $([(e, t, n) => Eq(e, n), (e, t, n) => i0(e, "angleAxis", n)], (e, t) => {- if (e != null && t != null) return j2(j2({}, e), {}, { scale: t });-}), F2 = (e, t, n) => o0(e, "angleAxis", n, !1), I2 = $([Y1, (e, t, n, r) => r], (e, t) => {+var Q4 = $([(e, t) => GJ(e, t), (e, t) => w2(e, "radiusAxis", t)], (e, t) => {+ if (e != null && t != null) return Z4(Z4({}, e), {}, { scale: t });+}), $4 = (e, t) => iIe(e, "radiusAxis", t, !1), e3 = $([(e, t, n) => WJ(e, n), (e, t, n) => w2(e, "angleAxis", n)], (e, t) => {+ if (e != null && t != null) return Z4(Z4({}, e), {}, { scale: t });+}), t3 = (e, t, n) => E2(e, "angleAxis", n, !1), n3 = $([h2, (e, t, n, r) => r], (e, t) => {if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;-}), L2 = $([- PW,- M2,- N2,- P2,- F2-], (e, t, n, r, i) => JU(e, "radiusAxis") ? iW(t, n, !1) : iW(r, i, !1)), ALe = $([- P2,- M2,- PW+}), r3 = $([+ QG,+ Q4,+ $4,+ e3,+ t3+], (e, t, n, r, i) => fG(e, "radiusAxis") ? SG(t, n, !1) : SG(r, i, !1)), KRe = $([+ e3,+ Q4,+ QG], (e, t, n) => {var r = n === "radial" ? e : t;- if (r != null && r.scale != null) return tW({ numericAxis: r });-}), jLe = (e, t, n, r, i) => i, MLe = (e, t, n, r, i) => n, NLe = (e, t, n, r, i) => t, R2 = (e, t, n, r, i) => r.maxBarSize, z2 = (e) => e.type === "radialBar", PLe = $([$([+ if (r != null && r.scale != null) return yG({ numericAxis: r });+}), qRe = (e, t, n, r, i) => i, JRe = (e, t, n, r, i) => n, YRe = (e, t, n, r, i) => t, i3 = (e, t, n, r, i) => r.maxBarSize, a3 = (e) => e.type === "radialBar", XRe = $([$([$([$([- PW,- Y1,- MLe,- NLe- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(z2)),- uq,+ QG,+ h2,+ JRe,+ YRe+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(a3)),+ OJ,() => void 0- ], w2),- sq,- cq,- lq,+ ], W4),+ TJ,+ EJ,+ DJ,$([- PW,- sq,- P2,- F2,- M2,- N2,- R2+ QG,+ TJ,+ e3,+ t3,+ Q4,+ $4,+ i3], (e, t, n, r, i, a, o) => {- var s = UB(o) ? t : o;- return e === "centric" ? iW(n, r, !0) ?? s ?? 0 : iW(i, a, !0) ?? s ?? 0;+ var s = sH(o) ? t : o;+ return e === "centric" ? SG(n, r, !0) ?? s ?? 0 : SG(i, a, !0) ?? s ?? 0;}),- L2,- R2-], D2), I2], k2), B2 = $([X1], (e) => e.filter(z2).filter(zq)), V2 = $([+ r3,+ i3+], q4), n3], Y4), o3 = $([g2], (e) => e.filter(a3).filter(rY)), s3 = $([$([- B2,- KK,- MZ- ], Rq),- B2,- dq,- fq-], PZ), FLe = $([- P2,- F2,- M2,- N2,- GK,- I2,- L2,- PW,- ALe,- Pq,- jLe,- PLe,- $([(e, t, n) => PW(e) === "centric" ? V2(e, "radiusAxis", t) : V2(e, "angleAxis", n), I2], O2)+ o3,+ uJ,+ ], nY),+ o3,+ kJ,+ AJ+], e$), ZRe = $([+ e3,+ t3,+ Q4,+ $4,+ lJ,+ n3,+ r3,+ QG,+ KRe,+ QJ,+ qRe,+ XRe,+ $([(e, t, n) => QG(e) === "centric" ? s3(e, "radiusAxis", t) : s3(e, "angleAxis", n), n3], J4)], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;- return QLe({+ return mze({angleAxis: e,angleAxisTicks: t,bandSize: o,@@ -68330,7 +71080,7 @@ var M2 = $([(e, t) => Dq(e, t), (e, t) => i0(e, "radiusAxis", t)], (e, t) => {stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,startAngle: b});-}), ILe = $([KK, (e, t) => t], (e, t) => {+}), QRe = $([uJ, (e, t) => t], (e, t) => {var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;if (n == null) return [];var a = n.slice(r, i + 1);@@ -68343,31 +71093,31 @@ var M2 = $([(e, t) => Dq(e, t), (e, t) => i0(e, "radiusAxis", t)], (e, t) => {});//#endregion//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js-function H2(e, t) {- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && UU(e.zIndex) ? e.zIndex : t;+function c3(e, t) {+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && sG(e.zIndex) ? e.zIndex : t;}//#endregion//#region node_modules/recharts/es6/polar/RadialBar.js-var LLe = [+var $Re = ["shape","activeShape","cornerRadius","id"-], RLe = [+], eze = ["onMouseEnter","onClick","onMouseLeave"-], zLe = ["value", "background"];-function U2() {- return U2 = Object.assign ? Object.assign.bind() : function(e) {+], tze = ["value", "background"];+function l3() {+ return l3 = 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;- }, U2.apply(null, arguments);+ }, l3.apply(null, arguments);}-function W2(e, t) {+function u3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -68377,30 +71127,30 @@ function W2(e, t) {}return n;}-function G2(e) {+function d3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? W2(Object(n), !0).forEach(function(t) {- BLe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W2(Object(n)).forEach(function(t) {+ t % 2 ? u3(Object(n), !0).forEach(function(t) {+ nze(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function BLe(e, t, n) {- return (t = VLe(t)) in e ? Object.defineProperty(e, t, {+function nze(e, t, n) {+ return (t = rze(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function VLe(e) {- var t = HLe(e, "string");+function rze(e) {+ var t = ize(e, "string");return typeof t == "symbol" ? t : t + "";}-function HLe(e, t) {+function ize(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -68410,16 +71160,16 @@ function HLe(e, t) {}return (t === "string" ? String : Number)(e);}-function K2(e, t) {+function f3(e, t) {if (e == null) return {};- var n, r, i = ULe(e, t);+ var n, r, i = aze(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function ULe(e, t) {+function aze(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -68428,8 +71178,8 @@ function ULe(e, t) {}return n;}-var q2 = [];-function WLe(e) {+var p3 = [];+function oze(e) {var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({value: e.value,payload: e.payload,@@ -68446,15 +71196,15 @@ function WLe(e) {},fill: e.fill}));- return /*#__PURE__*/ B.createElement(APe, { value: t ? i : void 0 }, r);+ return /*#__PURE__*/ B.createElement(KFe, { value: t ? i : void 0 }, r);}-function GLe(e) {- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = K2(n, LLe), l = Ez(c), u = Q(u$), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = K2(n, RLe), h = H0(d, n.dataKey, s), g = U0(p), _ = W0(f, n.dataKey, s);- return t == null ? null : /*#__PURE__*/ B.createElement(WLe, {+function sze(e) {+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = f3(n, $Re), l = UB(c), u = Q(A1), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = f3(n, eze), h = c4(d, n.dataKey, s), g = l4(p), _ = u4(f, n.dataKey, s);+ return t == null ? null : /*#__PURE__*/ B.createElement(oze, {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 = G2(G2(G2(G2({}, l), {}, { cornerRadius: x2(o) }, e), eV(m, e, t)), {}, {+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = d3(d3(d3(d3({}, l), {}, { cornerRadius: V4(o) }, e), vH(m, e, t)), {}, {onMouseEnter: r,onMouseLeave: s,onClick: d,@@ -68465,19 +71215,19 @@ function GLe(e) {option: n ? a : i,index: t});- return n ? /*#__PURE__*/ B.createElement(j$, {- zIndex: _q.activeBar,+ return n ? /*#__PURE__*/ B.createElement(Z1, {+ zIndex: FJ.activeBar,key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`- }, /*#__PURE__*/ B.createElement(S2, f)) : /*#__PURE__*/ B.createElement(S2, U2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));- }), /*#__PURE__*/ B.createElement(H1, { label: n.label }), n.children);+ }, /*#__PURE__*/ B.createElement(H4, f)) : /*#__PURE__*/ B.createElement(H4, l3({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));+ }), /*#__PURE__*/ B.createElement(c2, { label: n.label }), n.children);}-function KLe(e) {- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = CK(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, B.useState)(!1), m = (0, B.useCallback)(() => {+function cze(e) {+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = Vq(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(SK, {+ return /*#__PURE__*/ B.createElement(Bq, {animationId: u,begin: a,duration: o,@@ -68487,37 +71237,37 @@ function KLe(e) {onAnimationEnd: m,key: u}, (e) => {- var i = e === 1 ? r : (r ?? q2).map((t, n) => {+ var i = e === 1 ? r : (r ?? p3).map((t, n) => {var r = d && d[n];- if (r) return G2(G2({}, t), {}, {- startAngle: VB(r.startAngle, t.startAngle, e),- endAngle: VB(r.endAngle, t.endAngle, e)+ if (r) return d3(d3({}, t), {}, {+ startAngle: aH(r.startAngle, t.startAngle, e),+ endAngle: aH(r.endAngle, t.endAngle, e)});var { endAngle: i, startAngle: a } = t;- return G2(G2({}, t), {}, { endAngle: VB(a, i, e) });+ return d3(d3({}, t), {}, { endAngle: aH(a, i, e) });});- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(GLe, {- sectors: i ?? q2,+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(sze, {+ sectors: i ?? p3,allOtherRadialBarProps: t,showLabels: !f});});}-function qLe(e) {+function lze(e) {var t = (0, B.useRef)(null);- return /*#__PURE__*/ B.createElement(KLe, {+ return /*#__PURE__*/ B.createElement(cze, {props: e,previousSectorsRef: t});}-function JLe(e) {- var t = Q((t) => ILe(t, e.legendType));- return /*#__PURE__*/ B.createElement(q0, { legendPayload: t ?? [] });+function uze(e) {+ var t = Q((t) => QRe(t, e.legendType));+ return /*#__PURE__*/ B.createElement(p4, { legendPayload: t ?? [] });}-var YLe = /*#__PURE__*/ B.memo((e) => {+var dze = /*#__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: KB,+ getPosition: uH,settings: {graphicalItemId: l,stroke: r,@@ -68525,45 +71275,45 @@ var YLe = /*#__PURE__*/ B.memo((e) => {fill: s,nameKey: void 0,dataKey: t,- name: oW(a, t),+ name: wG(a, t),hide: o,type: c,color: s,unit: ""}};- return /*#__PURE__*/ B.createElement(G0, { tooltipEntrySettings: u });-}), XLe = class extends B.PureComponent {+ return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: u });+}), fze = class extends B.PureComponent {renderBackground(e) {if (e == null) return null;- var { cornerRadius: t } = this.props, n = Dz(this.props.background);- return /*#__PURE__*/ B.createElement(j$, { zIndex: H2(this.props.background, _q.barBackground) }, e.map((e, r) => {- var { value: i, background: a } = e, o = K2(e, zLe);+ var { cornerRadius: t } = this.props, n = WB(this.props.background);+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: c3(this.props.background, FJ.barBackground) }, e.map((e, r) => {+ var { value: i, background: a } = e, o = f3(e, tze);if (!a) return null;- var s = G2(G2(G2(G2(G2({ cornerRadius: x2(t) }, o), {}, { fill: "#eee" }, a), n), eV(this.props, e, r)), {}, {+ var s = d3(d3(d3(d3(d3({ cornerRadius: V4(t) }, o), {}, { fill: "#eee" }, a), n), vH(this.props, e, r)), {}, {index: r,className: _h("recharts-radial-bar-background-sector", String(n?.className)),option: a,isActive: !1});- return /*#__PURE__*/ B.createElement(S2, U2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));+ return /*#__PURE__*/ B.createElement(H4, l3({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));}));}render() {var { hide: e, sectors: t, className: n, background: r } = this.props;if (e) return null;var i = _h("recharts-area", n);- return /*#__PURE__*/ B.createElement(j$, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(Mz, { className: i }, r && /*#__PURE__*/ B.createElement(Mz, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(Mz, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(qLe, this.props))));+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: i }, r && /*#__PURE__*/ B.createElement(YB, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(YB, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(lze, this.props))));}};-function ZLe(e) {- var t = B.useMemo(() => j0(e.children, J$), [e.children]), n = B.useMemo(() => ({+function pze(e) {+ var t = B.useMemo(() => Z2(e.children, m0), [e.children]), n = B.useMemo(() => ({data: void 0,hide: !1,id: e.id,dataKey: e.dataKey,minPointSize: e.minPointSize,- stackId: QU(e.stackId),+ stackId: gG(e.stackId),maxBarSize: e.maxBarSize,barSize: e.barSize,type: "radialBar",@@ -68578,8 +71328,8 @@ function ZLe(e) {e.barSize,e.angleAxisId,e.radiusAxisId- ]), r = Q((r) => FLe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? q2;- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(YLe, {+ ]), r = Q((r) => ZRe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? p3;+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(dze, {dataKey: e.dataKey,sectors: r,stroke: e.stroke,@@ -68589,9 +71339,9 @@ function ZLe(e) {fill: e.fill,tooltipType: e.tooltipType,id: e.id- }), /*#__PURE__*/ B.createElement(XLe, U2({}, e, { sectors: r })));+ }), /*#__PURE__*/ B.createElement(fze, l3({}, e, { sectors: r })));}-var J2 = {+var m3 = {angleAxisId: 0,animationBegin: 0,animationDuration: 1500,@@ -68606,14 +71356,14 @@ var J2 = {legendType: "rect",minPointSize: 0,radiusAxisId: 0,- zIndex: _q.bar+ zIndex: FJ.bar};-function QLe(e) {+function mze(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 ? q2 : (t ?? []).map((e, t) => {+ return g == null || l == null ? p3 : (t ?? []).map((e, t) => {var b, x, S, C, w, T;- if (n ? b = ZU(n[r + t], i) : (b = qU(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 = eW({+ if (n ? b = hG(n[r + t], i) : (b = dG(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 = vG({axis: c,ticks: l,bandSize: u,@@ -68624,7 +71374,7 @@ function QLe(e) {S = x + d.size;var E = w - C;if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {- var D = PB(E || p) * (Math.abs(p) - Math.abs(E));+ var D = QV(E || p) * (Math.abs(p) - Math.abs(E));w += D;}T = { background: {@@ -68636,7 +71386,7 @@ function QLe(e) {endAngle: y} };}- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = eW({+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = vG({axis: f,ticks: g,bandSize: u,@@ -68647,11 +71397,11 @@ function QLe(e) {w = C + d.size;var O = S - x;if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {- var k = PB(O || p) * (Math.abs(p) - Math.abs(O));+ var k = QV(O || p) * (Math.abs(p) - Math.abs(O));S += k;}}- return G2(G2(G2({}, e), T), {}, {+ return d3(d3(d3({}, e), T), {}, {payload: e,value: n ? b : b[1],cx: m,@@ -68663,38 +71413,38 @@ function QLe(e) {}, _ && _[t] && _[t].props);});}-function Y2(e) {- var t = nV(e, J2);- return /*#__PURE__*/ B.createElement(J0, {+function h3(e) {+ var t = bH(e, m3);+ return /*#__PURE__*/ B.createElement(m4, {id: t.id,type: "radialBar"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(Z0, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(_4, {type: "radialBar",id: e,data: void 0,dataKey: t.dataKey,- hide: t.hide ?? J2.hide,- angleAxisId: t.angleAxisId ?? J2.angleAxisId,- radiusAxisId: t.radiusAxisId ?? J2.radiusAxisId,- stackId: QU(t.stackId),+ hide: t.hide ?? m3.hide,+ angleAxisId: t.angleAxisId ?? m3.angleAxisId,+ radiusAxisId: t.radiusAxisId ?? m3.radiusAxisId,+ stackId: gG(t.stackId),barSize: t.barSize,minPointSize: t.minPointSize,maxBarSize: t.maxBarSize- }), /*#__PURE__*/ B.createElement(JLe, t), /*#__PURE__*/ B.createElement(ZLe, U2({}, t, { id: e }))));+ }), /*#__PURE__*/ B.createElement(uze, t), /*#__PURE__*/ B.createElement(pze, l3({}, t, { id: e }))));}-Y2.displayName = "RadialBar";+h3.displayName = "RadialBar";//#endregion//#region node_modules/recharts/es6/context/chartDataContext.js-var X2 = (e) => {- var { chartData: t } = e, n = kV(), r = gW();- return (0, B.useEffect)(() => r ? () => {} : (n(H$(t)), () => {- n(H$(void 0));+var g3 = (e) => {+ var { chartData: t } = e, n = qH(), r = PG();+ return (0, B.useEffect)(() => r ? () => {} : (n(c0(t)), () => {+ n(c0(void 0));}), [t,n,r]), null;-}, Z2 = {+}, _3 = {x: 0,y: 0,width: 0,@@ -68705,13 +71455,13 @@ var X2 = (e) => {bottom: 0,left: 0}-}, Q2 = mU({+}, v3 = MW({name: "brush",- initialState: Z2,+ initialState: _3,reducers: { setBrushSettings(e, t) {- return t.payload == null ? Z2 : t.payload;+ return t.payload == null ? _3 : t.payload;} }-}), { setBrushSettings: $Le } = Q2.actions, eRe = Q2.reducer, tRe = (e, t) => {+}), { setBrushSettings: hze } = v3.actions, gze = v3.reducer, _ze = (e, t) => {var { x: n, y: r } = e, { x: i, y: a } = t;return {x: Math.min(n, i),@@ -68719,9 +71469,9 @@ var X2 = (e) => {width: Math.abs(i - n),height: Math.abs(a - r)};-}, nRe = (e) => {+}, vze = (e) => {var { x1: t, y1: n, x2: r, y2: i } = e;- return tRe({+ return _ze({x: t,y: n}, {@@ -68729,13 +71479,13 @@ var X2 = (e) => {y: i});};-function rRe(e) {+function yze(e) {return (e % 180 + 180) % 180;}-var iRe = function(e) {- var { width: t, height: n } = e, r = rRe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);+var bze = function(e) {+ var { width: t, height: n } = e, r = yze(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);-}, $2 = mU({+}, y3 = MW({name: "referenceElements",initialState: {dots: [],@@ -68747,35 +71497,35 @@ var iRe = function(e) {e.dots.push(t.payload);},removeDot: (e, t) => {- var n = tU(e).dots.findIndex((e) => e === t.payload);+ var n = yW(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 = tU(e).areas.findIndex((e) => e === t.payload);+ var n = yW(e).areas.findIndex((e) => e === t.payload);n !== -1 && e.areas.splice(n, 1);},addLine: (e, t) => {- e.lines.push(TG(t.payload));+ e.lines.push(UK(t.payload));},removeLine: (e, t) => {- var n = tU(e).lines.findIndex((e) => e === t.payload);+ var n = yW(e).lines.findIndex((e) => e === t.payload);n !== -1 && e.lines.splice(n, 1);}}-}), { addDot: aRe, removeDot: oRe, addArea: sRe, removeArea: cRe, addLine: lRe, removeLine: uRe } = $2.actions, dRe = $2.reducer, e4 = /*#__PURE__*/ (0, B.createContext)(void 0), fRe = (e) => {- var { children: t } = e, [n] = (0, B.useState)(`${RB("recharts")}-clip`), r = a2();+}), { addDot: xze, removeDot: Sze, addArea: Cze, removeArea: wze, addLine: Tze, removeLine: Eze } = y3.actions, Dze = y3.reducer, b3 = /*#__PURE__*/ (0, B.createContext)(void 0), Oze = (e) => {+ var { children: t } = e, [n] = (0, B.useState)(`${nH("recharts")}-clip`), r = T4();if (r == null) return null;var { x: i, y: a, width: o, height: s } = r;- return /*#__PURE__*/ B.createElement(e4.Provider, { value: n }, /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: n }, /*#__PURE__*/ B.createElement("rect", {+ return /*#__PURE__*/ B.createElement(b3.Provider, { value: n }, /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: n }, /*#__PURE__*/ B.createElement("rect", {x: i,y: a,height: s,width: o}))), t);-}, pRe = () => (0, B.useContext)(e4), mRe = class {+}, kze = () => (0, B.useContext)(b3), Aze = class {constructor(e) {var { x: t, y: n } = e;this.xAxisScale = t, this.yAxisScale = n;@@ -68801,7 +71551,7 @@ var iRe = function(e) {};//#endregion//#region node_modules/recharts/es6/cartesian/ReferenceLine.js-function t4(e, t) {+function x3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -68811,30 +71561,30 @@ function t4(e, t) {}return n;}-function n4(e) {+function S3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? t4(Object(n), !0).forEach(function(t) {- hRe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t4(Object(n)).forEach(function(t) {+ t % 2 ? x3(Object(n), !0).forEach(function(t) {+ jze(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function hRe(e, t, n) {- return (t = gRe(t)) in e ? Object.defineProperty(e, t, {+function jze(e, t, n) {+ return (t = Mze(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function gRe(e) {- var t = _Re(e, "string");+function Mze(e) {+ var t = Nze(e, "string");return typeof t == "symbol" ? t : t + "";}-function _Re(e, t) {+function Nze(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -68844,27 +71594,27 @@ function _Re(e, t) {}return (t === "string" ? String : Number)(e);}-function r4() {- return r4 = Object.assign ? Object.assign.bind() : function(e) {+function C3() {+ return C3 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, r4.apply(null, arguments);+ }, C3.apply(null, arguments);}-var vRe = (e, t) => {+var Pze = (e, t) => {var n;if (/*#__PURE__*/ B.isValidElement(e)) n = /*#__PURE__*/ B.cloneElement(e, t);else if (typeof e == "function") n = e(t);else {- if (!UU(t.x1) || !UU(t.y1) || !UU(t.x2) || !UU(t.y2)) return null;- n = /*#__PURE__*/ B.createElement("line", r4({}, t, { className: "recharts-reference-line-line" }));+ if (!sG(t.x1) || !sG(t.y1) || !sG(t.x2) || !sG(t.y2)) return null;+ n = /*#__PURE__*/ B.createElement("line", C3({}, t, { className: "recharts-reference-line-line" }));}return n;-}, yRe = (e, t, n, r, i, a) => {+}, Fze = (e, t, n, r, i, a) => {var { x: o, width: s } = a, c = i.map(e, { position: n });- if (!UU(c) || t === "discard" && !i.isInRange(c)) return null;+ if (!sG(c) || t === "discard" && !i.isInRange(c)) return null;var l = [{x: o + s,y: c@@ -68873,9 +71623,9 @@ var vRe = (e, t) => {y: c}];return r === "left" ? l.reverse() : l;-}, bRe = (e, t, n, r, i, a) => {+}, Ize = (e, t, n, r, i, a) => {var { y: o, height: s } = a, c = i.map(e, { position: n });- if (!UU(c) || t === "discard" && !i.isInRange(c)) return null;+ if (!sG(c) || t === "discard" && !i.isInRange(c)) return null;var l = [{x: c,y: o + s@@ -68884,7 +71634,7 @@ var vRe = (e, t) => {y: o}];return r === "top" ? l.reverse() : l;-}, xRe = (e, t, n, r) => {+}, Lze = (e, t, n, r) => {var i = [r.mapWithFallback(e[0], {position: n,fallback: "rangeMin"@@ -68893,43 +71643,43 @@ var vRe = (e, t) => {fallback: "rangeMax"})];return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;-}, SRe = (e, t, n, r, i, a, o) => {- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = LB(s);- return LB(c) ? yRe(c, u, r, a, t, n) : d ? bRe(s, u, r, i, e, n) : l != null && l.length === 2 ? xRe(l, u, r, new mRe({+}, Rze = (e, t, n, r, i, a, o) => {+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = tH(s);+ return tH(c) ? Fze(c, u, r, a, t, n) : d ? Ize(s, u, r, i, e, n) : l != null && l.length === 2 ? Lze(l, u, r, new Aze({x: e,y: t})) : null;};-function CRe(e) {- var t = kV();- return (0, B.useEffect)(() => (t(lRe(e)), () => {- t(uRe(e));+function zze(e) {+ var t = qH();+ return (0, B.useEffect)(() => (t(Tze(e)), () => {+ t(Eze(e));})), null;}-function wRe(e) {- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = gW(), s = pRe(), c = Q((e) => lZ(e, t)), l = Q((e) => fZ(e, n)), u = Q((e) => lQ(e, "xAxis", t, o)), d = Q((e) => lQ(e, "yAxis", n, o)), f = AW();+function Bze(e) {+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = PG(), s = kze(), c = Q((e) => kQ(e, t)), l = Q((e) => MQ(e, n)), u = Q((e) => k$(e, "xAxis", t, o)), d = Q((e) => k$(e, "yAxis", n, o)), f = JG();if (!s || !f || c == null || l == null || u == null || d == null) return null;- var p = SRe(u, d, f, e.position, c.orientation, l.orientation, e);+ var p = Rze(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 = n4(n4({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, Oz(e)), {}, {+ var { x: g, y: _ } = m, { x: v, y } = h, b = S3(S3({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, GB(e)), {}, {x1: g,y1: _,x2: v,y2: y- }), x = nRe({+ }), x = vze({x1: g,y1: _,x2: v,y2: y});- return /*#__PURE__*/ B.createElement(j$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(Mz, { className: _h("recharts-reference-line", i) }, vRe(r, b), /*#__PURE__*/ B.createElement(D1, r4({}, x, {+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: _h("recharts-reference-line", i) }, Pze(r, b), /*#__PURE__*/ B.createElement(q0, C3({}, x, {lowerWidth: x.width,upperWidth: x.width- }), /*#__PURE__*/ B.createElement(F1, { label: e.label }), e.children)));+ }), /*#__PURE__*/ B.createElement(t2, { label: e.label }), e.children)));}-var TRe = {+var Vze = {ifOverflow: "discard",xAxisId: 0,yAxisId: 0,@@ -68939,23 +71689,23 @@ var TRe = {fillOpacity: 1,strokeWidth: 1,position: "middle",- zIndex: _q.line+ zIndex: FJ.line};-function i4(e) {- var t = nV(e, TRe);- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(CRe, {+function w3(e) {+ var t = bH(e, Vze);+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zze, {yAxisId: t.yAxisId,xAxisId: t.xAxisId,ifOverflow: t.ifOverflow,x: t.x,y: t.y,segment: t.segment- }), /*#__PURE__*/ B.createElement(wRe, t));+ }), /*#__PURE__*/ B.createElement(Bze, t));}-i4.displayName = "ReferenceLine";+w3.displayName = "ReferenceLine";//#endregion//#region node_modules/recharts/es6/util/getEveryNth.js-function a4(e, t) {+function T3(e, t) {if (t < 1) return [];if (t === 1) return e;for (var n = [], r = 0; r < e.length; r += t) {@@ -68966,13 +71716,13 @@ function a4(e, t) {}//#endregion//#region node_modules/recharts/es6/util/TickUtils.js-function ERe(e, t, n) {- return iRe({+function Hze(e, t, n) {+ return bze({width: e.width + t.width,height: e.height + t.height}, n);}-function DRe(e, t, n) {+function Uze(e, t, n) {var r = n === "width", { x: i, y: a, width: o, height: s } = e;return t === 1 ? {start: r ? i : a,@@ -68982,33 +71732,33 @@ function DRe(e, t, n) {end: r ? i : a};}-function o4(e, t, n, r, i) {+function E3(e, t, n, r, i) {if (e * t < e * r || e * t > e * i) return !1;var a = n();return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;}-function ORe(e, t) {- return a4(e, t + 1);+function Wze(e, t) {+ return T3(e, t + 1);}//#endregion//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js-function kRe(e, t, n, r, i) {+function Gze(e, t, n, r, i) {for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {var t = r?.[c];- if (t === void 0) return { v: a4(r, l) };- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || o4(e, p, f, u, s);+ if (t === void 0) return { v: T3(r, l) };+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || E3(e, p, f, u, s);m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);}, f; l <= a.length;) if (f = d(), f) return f.v;return [];}-function ARe(e, t, n, r, i) {+function Kze(e, t, n, r, i) {var a = (r || []).slice().length;if (a === 0) return [];for (var { start: o, end: s } = t, c = 1; c <= a; c++) {for (var l = (a - 1) % c, u = o, d = !0, f = function() {var t = r[m];if (t == null) return 0;- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || o4(e, f, c, u, s);+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || E3(e, f, c, u, s);if (!p) return d = !1, 1;p && (u = f + e * (c() / 2 + i));}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);@@ -69024,7 +71774,7 @@ function ARe(e, t, n, r, i) {}//#endregion//#region node_modules/recharts/es6/cartesian/getTicks.js-function s4(e, t) {+function D3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -69034,30 +71784,30 @@ function s4(e, t) {}return n;}-function c4(e) {+function O3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? s4(Object(n), !0).forEach(function(t) {- jRe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s4(Object(n)).forEach(function(t) {+ t % 2 ? D3(Object(n), !0).forEach(function(t) {+ qze(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function jRe(e, t, n) {- return (t = MRe(t)) in e ? Object.defineProperty(e, t, {+function qze(e, t, n) {+ return (t = Jze(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function MRe(e) {- var t = NRe(e, "string");+function Jze(e) {+ var t = Yze(e, "string");return typeof t == "symbol" ? t : t + "";}-function NRe(e, t) {+function Yze(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -69067,26 +71817,26 @@ function NRe(e, t) {}return (t === "string" ? String : Number)(e);}-function PRe(e, t, n, r, i) {+function Xze(e, t, n, r, i) {for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {var r = a[t];if (r == null) return 1;var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);if (t === o - 1) {var f = e * (l.coordinate + e * d() / 2 - c);- a[t] = l = c4(c4({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });- } else a[t] = l = c4(c4({}, l), {}, { tickCoord: l.coordinate });- l.tickCoord != null && o4(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = c4(c4({}, l), {}, { isShow: !0 }));+ a[t] = l = O3(O3({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });+ } else a[t] = l = O3(O3({}, l), {}, { tickCoord: l.coordinate });+ l.tickCoord != null && E3(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = O3(O3({}, l), {}, { isShow: !0 }));}, u = o - 1; u >= 0; u--) if (l(u)) continue;return a;}-function FRe(e, t, n, r, i, a) {+function Zze(e, t, n, r, i, a) {var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;if (a) {var u = r[s - 1];if (u != null) {var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);- o[s - 1] = u = c4(c4({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && o4(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = c4(c4({}, u), {}, { isShow: !0 }));+ o[s - 1] = u = O3(O3({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && E3(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = O3(O3({}, u), {}, { isShow: !0 }));}}for (var p = a ? s - 1 : s, m = function(t) {@@ -69095,17 +71845,17 @@ function FRe(e, t, n, r, i, a) {var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);if (t === 0) {var d = e * (a.coordinate - e * u() / 2 - c);- o[t] = a = c4(c4({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });- } else o[t] = a = c4(c4({}, a), {}, { tickCoord: a.coordinate });- a.tickCoord != null && o4(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = c4(c4({}, a), {}, { isShow: !0 }));+ o[t] = a = O3(O3({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });+ } else o[t] = a = O3(O3({}, a), {}, { tickCoord: a.coordinate });+ a.tickCoord != null && E3(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = O3(O3({}, a), {}, { isShow: !0 }));}, h = 0; h < p; h++) if (m(h)) continue;return o;}-function l4(e, t, n) {+function k3(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) || WG.isSsr) return ORe(i, Z(c) ? c : 0) ?? [];- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? e1(u, {+ if (Z(c) || cq.isSsr) return Wze(i, Z(c) ? c : 0) ?? [];+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? b0(u, {fontSize: t,letterSpacing: n}) : {@@ -69113,19 +71863,19 @@ function l4(e, t, n) {height: 0}, h = (e, r) => {var i = typeof l == "function" ? l(e.value, r) : e.value;- return p === "width" ? ERe(e1(i, {+ return p === "width" ? Hze(b0(i, {fontSize: t,letterSpacing: n- }), m, d) : e1(i, {+ }), m, d) : b0(i, {fontSize: t,letterSpacing: n})[p];- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? PB(_.coordinate - g.coordinate) : 1, y = DRe(a, v, p);- return c === "equidistantPreserveStart" ? kRe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? ARe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? FRe(v, y, h, i, o, c === "preserveStartEnd") : PRe(v, y, h, i, o), f.filter((e) => e.isShow));+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? QV(_.coordinate - g.coordinate) : 1, y = Uze(a, v, p);+ return c === "equidistantPreserveStart" ? Gze(v, y, h, i, o) : c === "equidistantPreserveEnd" ? Kze(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? Zze(v, y, h, i, o, c === "preserveStartEnd") : Xze(v, y, h, i, o), f.filter((e) => e.isShow));}//#endregion//#region node_modules/recharts/es6/util/YAxisUtils.js-var IRe = (e) => {+var Qze = (e) => {var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;if (t) {Array.from(t).forEach((e) => {@@ -69138,7 +71888,7 @@ var IRe = (e) => {return Math.round(l);}return 0;-}, u4 = mU({+}, A3 = MW({name: "renderedTicks",initialState: {xAxis: {},@@ -69147,14 +71897,14 @@ var IRe = (e) => {reducers: {setRenderedTicks: (e, t) => {var { axisType: n, axisId: r, ticks: i } = t.payload;- e[n][r] = TG(i);+ e[n][r] = UK(i);},removeRenderedTicks: (e, t) => {var { axisType: n, axisId: r } = t.payload;delete e[n][r];}}-}), { setRenderedTicks: LRe, removeRenderedTicks: RRe } = u4.actions, zRe = u4.reducer, BRe = [+}), { setRenderedTicks: $ze, removeRenderedTicks: eBe } = A3.actions, tBe = A3.reducer, nBe = ["axisLine","width","height",@@ -69164,16 +71914,16 @@ var IRe = (e) => {"axisType","axisId"];-function VRe(e, t) {+function rBe(e, t) {if (e == null) return {};- var n, r, i = HRe(e, t);+ var n, r, i = iBe(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 HRe(e, t) {+function iBe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -69182,16 +71932,16 @@ function HRe(e, t) {}return n;}-function d4() {- return d4 = Object.assign ? Object.assign.bind() : function(e) {+function j3() {+ return j3 = 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;- }, d4.apply(null, arguments);+ }, j3.apply(null, arguments);}-function f4(e, t) {+function M3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -69201,30 +71951,30 @@ function f4(e, t) {}return n;}-function p4(e) {+function N3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? f4(Object(n), !0).forEach(function(t) {- URe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f4(Object(n)).forEach(function(t) {+ t % 2 ? M3(Object(n), !0).forEach(function(t) {+ aBe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function URe(e, t, n) {- return (t = WRe(t)) in e ? Object.defineProperty(e, t, {+function aBe(e, t, n) {+ return (t = oBe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function WRe(e) {- var t = GRe(e, "string");+function oBe(e) {+ var t = sBe(e, "string");return typeof t == "symbol" ? t : t + "";}-function GRe(e, t) {+function sBe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -69234,7 +71984,7 @@ function GRe(e, t) {}return (t === "string" ? String : Number)(e);}-var m4 = {+var P3 = {x: 0,y: 0,width: 0,@@ -69256,15 +72006,15 @@ var m4 = {tickSize: 6,tickMargin: 2,interval: "preserveEnd",- zIndex: _q.axis+ zIndex: FJ.axis};-function KRe(e) {+function cBe(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 = p4(p4(p4({}, c), Ez(s)), {}, { fill: "none" });+ var l = N3(N3(N3({}, c), UB(s)), {}, { fill: "none" });if (a === "top" || a === "bottom") {var u = +(a === "top" && !o || a === "bottom" && o);- l = p4(p4({}, l), {}, {+ l = N3(N3({}, l), {}, {x1: t,y1: n + u * i,x2: t + r,@@ -69272,16 +72022,16 @@ function KRe(e) {});} else {var d = +(a === "left" && !o || a === "right" && o);- l = p4(p4({}, l), {}, {+ l = N3(N3({}, l), {}, {x1: t + d * r,y1: n,x2: t + d * r,y2: n + i});}- return /*#__PURE__*/ B.createElement("line", d4({}, l, { className: _h("recharts-cartesian-axis-line", jB(s, "className")) }));+ return /*#__PURE__*/ B.createElement("line", j3({}, l, { className: _h("recharts-cartesian-axis-line", YV(s, "className")) }));}-function qRe(e, t, n, r, i, a, o, s, c) {+function lBe(e, t, n, r, i, a, o, s, c) {var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;switch (a) {case "top":@@ -69308,14 +72058,14 @@ function qRe(e, t, n, r, i, a, o, s, c) {}};}-function JRe(e, t) {+function uBe(e, t) {switch (e) {case "left": return t ? "start" : "end";case "right": return t ? "end" : "start";default: return "middle";}}-function YRe(e, t) {+function dBe(e, t) {switch (e) {case "left":case "right": return "middle";@@ -69323,19 +72073,19 @@ function YRe(e, t) {default: return t ? "end" : "start";}}-function XRe(e) {+function fBe(e) {var { option: t, tickProps: n, value: r } = e, i, a = _h(n.className, "recharts-cartesian-axis-tick-value");- if (/*#__PURE__*/ B.isValidElement(t)) i = /*#__PURE__*/ B.cloneElement(t, p4(p4({}, n), {}, { className: a }));- else if (typeof t == "function") i = t(p4(p4({}, n), {}, { className: a }));+ if (/*#__PURE__*/ B.isValidElement(t)) i = /*#__PURE__*/ B.cloneElement(t, N3(N3({}, n), {}, { className: a }));+ else if (typeof t == "function") i = t(N3(N3({}, n), {}, { className: a }));else {var o = "recharts-cartesian-axis-tick-value";- typeof t != "boolean" && (o = _h(o, h0(t))), i = /*#__PURE__*/ B.createElement(y1, d4({}, n, { className: o }), r);+ typeof t != "boolean" && (o = _h(o, F2(t))), i = /*#__PURE__*/ B.createElement(z0, j3({}, n, { className: o }), r);}return i;}-function ZRe(e) {- var { ticks: t, axisType: n, axisId: r } = e, i = kV();- return (0, B.useEffect)(() => r == null || n == null ? KB : (i(LRe({+function pBe(e) {+ var { ticks: t, axisType: n, axisId: r } = e, i = qH();+ return (0, B.useEffect)(() => r == null || n == null ? uH : (i($ze({ticks: t.map((e) => ({value: e.value,coordinate: e.coordinate,@@ -69345,7 +72095,7 @@ function ZRe(e) {axisId: r,axisType: n})), () => {- i(RRe({+ i(eBe({axisId: r,axisType: n}));@@ -69356,17 +72106,17 @@ function ZRe(e) {n]), null;}-var QRe = /*#__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 = l4(p4(p4({}, b), {}, { ticks: n }), v, y), T = Ez(b), E = Dz(r), D = p1(T.textAnchor) ? T.textAnchor : JRe(u, d), O = YRe(u, d), k = {};+var mBe = /*#__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 = k3(N3(N3({}, b), {}, { ticks: n }), v, y), T = UB(b), E = WB(r), D = N0(T.textAnchor) ? T.textAnchor : uBe(u, d), O = dBe(u, d), k = {};typeof i == "object" && (k = i);- var A = p4(p4({}, T), {}, { fill: "none" }, k), j = w.map((e) => p4({ entry: e }, qRe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {+ var A = N3(N3({}, T), {}, { fill: "none" }, k), j = w.map((e) => N3({ entry: e }, lBe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {var { entry: t, line: n } = e;- return /*#__PURE__*/ B.createElement(Mz, {+ return /*#__PURE__*/ B.createElement(YB, {className: "recharts-cartesian-axis-tick",key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`- }, i && /*#__PURE__*/ B.createElement("line", d4({}, A, n, { className: _h("recharts-cartesian-axis-tick-line", jB(i, "className")) })));+ }, i && /*#__PURE__*/ B.createElement("line", j3({}, A, n, { className: _h("recharts-cartesian-axis-tick-line", YV(i, "className")) })));}), N = j.map((e, t) => {- var { entry: n, tick: i } = e, u = p4(p4({}, p4(p4(p4(p4({ verticalAnchor: O }, T), {}, {+ var { entry: n, tick: i } = e, u = N3(N3({}, N3(N3(N3(N3({ verticalAnchor: O }, T), {}, {textAnchor: D,stroke: "none",fill: a@@ -69377,26 +72127,26 @@ var QRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {tickFormatter: o,padding: c}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);- return /*#__PURE__*/ B.createElement(Mz, d4({+ return /*#__PURE__*/ B.createElement(YB, j3({className: "recharts-cartesian-axis-tick-label",key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`- }, eV(x, n, t)), r && /*#__PURE__*/ B.createElement(XRe, {+ }, vH(x, n, t)), r && /*#__PURE__*/ B.createElement(fBe, {option: r,tickProps: u,value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`}));});- return /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ B.createElement(ZRe, {+ return /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ B.createElement(pBe, {ticks: w,axisId: C,axisType: S- }), N.length > 0 && /*#__PURE__*/ B.createElement(j$, { zIndex: _q.label }, /*#__PURE__*/ B.createElement("g", {+ }), N.length > 0 && /*#__PURE__*/ B.createElement(Z1, { zIndex: FJ.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));-}), $Re = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = VRe(e, BRe), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = (0, B.useRef)(null);- (0, B.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => IRe({+}), hBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = rBe(e, nBe), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = (0, B.useRef)(null);+ (0, B.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => Qze({ticks: h.current,label: e.labelRef?.current,labelGapWithTick: 5,@@ -69414,7 +72164,7 @@ var QRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {}}}, [d, p]);- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(j$, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(Mz, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(KRe, {+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(Z1, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(cBe, {x: e.x,y: e.y,width: r,@@ -69422,8 +72172,8 @@ var QRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {orientation: e.orientation,mirror: e.mirror,axisLine: n,- otherSvgProps: Ez(e)- }), /*#__PURE__*/ B.createElement(QRe, {+ otherSvgProps: UB(e)+ }), /*#__PURE__*/ B.createElement(mBe, {ref: g,axisType: c,events: u,@@ -69447,32 +72197,32 @@ var QRe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {x: e.x,y: e.y,axisId: l- }), /*#__PURE__*/ B.createElement(D1, {+ }), /*#__PURE__*/ B.createElement(q0, {x: e.x,y: e.y,width: e.width,height: e.height,lowerWidth: e.width,upperWidth: e.width- }, /*#__PURE__*/ B.createElement(F1, {+ }, /*#__PURE__*/ B.createElement(t2, {label: e.label,labelRef: e.labelRef}), e.children)));-}), h4 = /*#__PURE__*/ B.forwardRef((e, t) => {- var n = nV(e, m4);- return /*#__PURE__*/ B.createElement($Re, d4({}, n, { ref: t }));+}), F3 = /*#__PURE__*/ B.forwardRef((e, t) => {+ var n = bH(e, P3);+ return /*#__PURE__*/ B.createElement(hBe, j3({}, n, { ref: t }));});-h4.displayName = "CartesianAxis";+F3.displayName = "CartesianAxis";//#endregion//#region node_modules/recharts/es6/cartesian/CartesianGrid.js-var eze = [+var gBe = ["x1","y1","x2","y2","key"-], tze = ["offset"], nze = ["xAxisId", "yAxisId"], rze = ["xAxisId", "yAxisId"];-function g4(e, t) {+], _Be = ["offset"], vBe = ["xAxisId", "yAxisId"], yBe = ["xAxisId", "yAxisId"];+function I3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -69482,30 +72232,30 @@ function g4(e, t) {}return n;}-function _4(e) {+function L3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? g4(Object(n), !0).forEach(function(t) {- ize(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g4(Object(n)).forEach(function(t) {+ t % 2 ? I3(Object(n), !0).forEach(function(t) {+ bBe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function ize(e, t, n) {- return (t = aze(t)) in e ? Object.defineProperty(e, t, {+function bBe(e, t, n) {+ return (t = xBe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function aze(e) {- var t = oze(e, "string");+function xBe(e) {+ var t = SBe(e, "string");return typeof t == "symbol" ? t : t + "";}-function oze(e, t) {+function SBe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -69515,25 +72265,25 @@ function oze(e, t) {}return (t === "string" ? String : Number)(e);}-function v4() {- return v4 = Object.assign ? Object.assign.bind() : function(e) {+function R3() {+ return R3 = 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;- }, v4.apply(null, arguments);+ }, R3.apply(null, arguments);}-function y4(e, t) {+function z3(e, t) {if (e == null) return {};- var n, r, i = sze(e, t);+ var n, r, i = CBe(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 sze(e, t) {+function CBe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -69542,7 +72292,7 @@ function sze(e, t) {}return n;}-var cze = (e) => {+var wBe = (e) => {var { fill: t } = e;if (!t || t === "none") return null;var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;@@ -69558,13 +72308,13 @@ var cze = (e) => {className: "recharts-cartesian-grid-bg"});};-function b4(e) {+function B3(e) {var { option: t, lineItemProps: n } = e, r;if (/*#__PURE__*/ B.isValidElement(t)) r = /*#__PURE__*/ B.cloneElement(t, n);else if (typeof t == "function") r = t(n);else {- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = Ez(y4(n, eze)) ?? {}, { offset: u } = l, d = y4(l, tze);- r = /*#__PURE__*/ B.createElement("line", v4({}, d, {+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = UB(z3(n, gBe)) ?? {}, { offset: u } = l, d = z3(l, _Be);+ r = /*#__PURE__*/ B.createElement("line", R3({}, d, {x1: i,y1: a,x2: o,@@ -69575,11 +72325,11 @@ function b4(e) {}return r;}-function lze(e) {+function TBe(e) {var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;if (!r || !i || !i.length) return null;- var { xAxisId: a, yAxisId: o } = e, s = y4(e, nze), c = i.map((e, i) => {- var a = _4(_4({}, s), {}, {+ var { xAxisId: a, yAxisId: o } = e, s = z3(e, vBe), c = i.map((e, i) => {+ var a = L3(L3({}, s), {}, {x1: t,y1: e,x2: t + n,@@ -69587,7 +72337,7 @@ function lze(e) {key: `line-${i}`,index: i});- return /*#__PURE__*/ B.createElement(b4, {+ return /*#__PURE__*/ B.createElement(B3, {key: `line-${i}`,option: r,lineItemProps: a@@ -69595,11 +72345,11 @@ function lze(e) {});return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);}-function uze(e) {+function EBe(e) {var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;if (!r || !i || !i.length) return null;- var { xAxisId: a, yAxisId: o } = e, s = y4(e, rze), c = i.map((e, i) => {- var a = _4(_4({}, s), {}, {+ var { xAxisId: a, yAxisId: o } = e, s = z3(e, yBe), c = i.map((e, i) => {+ var a = L3(L3({}, s), {}, {x1: e,y1: t,x2: e,@@ -69607,7 +72357,7 @@ function uze(e) {key: `line-${i}`,index: i});- return /*#__PURE__*/ B.createElement(b4, {+ return /*#__PURE__*/ B.createElement(B3, {option: r,lineItemProps: a,key: `line-${i}`@@ -69615,7 +72365,7 @@ function uze(e) {});return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);}-function dze(e) {+function DBe(e) {var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;if (!c || !t || !t.length || s == null) return null;var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);@@ -69638,7 +72388,7 @@ function dze(e) {});return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);}-function fze(e) {+function OBe(e) {var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;if (!t || !n || !n.length) return null;var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);@@ -69661,10 +72411,10 @@ function fze(e) {});return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);}-var pze = (e, t) => {+var kBe = (e, t) => {var { xAxis: n, width: r, height: i, offset: a } = e;- return YU(l4(_4(_4(_4({}, m4), n), {}, {- ticks: XU(n, !0),+ return pG(k3(L3(L3(L3({}, P3), n), {}, {+ ticks: mG(n, !0),viewBox: {x: 0,y: 0,@@ -69672,10 +72422,10 @@ var pze = (e, t) => {height: i}})), a.left, a.left + a.width, t);-}, mze = (e, t) => {+}, ABe = (e, t) => {var { yAxis: n, width: r, height: i, offset: a } = e;- return YU(l4(_4(_4(_4({}, m4), n), {}, {- ticks: XU(n, !0),+ return pG(k3(L3(L3(L3({}, P3), n), {}, {+ ticks: mG(n, !0),viewBox: {x: 0,y: 0,@@ -69683,7 +72433,7 @@ var pze = (e, t) => {height: i}})), a.top, a.top + a.height, t);-}, hze = {+}, jBe = {horizontal: !0,vertical: !0,horizontalPoints: [],@@ -69695,36 +72445,36 @@ var pze = (e, t) => {xAxisId: 0,yAxisId: 0,syncWithTicks: !1,- zIndex: _q.grid+ zIndex: FJ.grid};-function x4(e) {- var t = MW(), n = NW(), r = jW(), i = _4(_4({}, nV(e, hze)), {}, {+function V3(e) {+ var t = XG(), n = ZG(), r = YG(), i = L3(L3({}, bH(e, jBe)), {}, {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 = gW(), h = Q((e) => yQ(e, "xAxis", a, m)), g = Q((e) => yQ(e, "yAxis", o, m));- if (!WU(l) || !WU(u) || !Z(s) || !Z(c)) return null;- var _ = i.verticalCoordinatesGenerator || pze, v = i.horizontalCoordinatesGenerator || mze, { horizontalPoints: y, verticalPoints: b } = i;+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = PG(), h = Q((e) => z$(e, "xAxis", a, m)), g = Q((e) => z$(e, "yAxis", o, m));+ if (!cG(l) || !cG(u) || !Z(s) || !Z(c)) return null;+ var _ = i.verticalCoordinatesGenerator || kBe, v = i.horizontalCoordinatesGenerator || ABe, { horizontalPoints: y, verticalPoints: b } = i;if ((!y || !y.length) && typeof v == "function") {var x = f && f.length, S = v({- yAxis: g ? _4(_4({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,+ yAxis: g ? L3(L3({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,width: t ?? l,height: n ?? u,offset: r}, x ? !0 : d);- yW(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);+ LG(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 = _({- xAxis: h ? _4(_4({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,+ xAxis: h ? L3(L3({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,width: t ?? l,height: n ?? u,offset: r}, C ? !0 : d);- yW(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);+ LG(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);}- return /*#__PURE__*/ B.createElement(j$, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(cze, {+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(wBe, {fill: i.fill,fillOpacity: i.fillOpacity,x: i.x,@@ -69732,22 +72482,22 @@ function x4(e) {width: i.width,height: i.height,ry: i.ry- }), /*#__PURE__*/ B.createElement(dze, v4({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(fze, v4({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement(lze, v4({}, i, {+ }), /*#__PURE__*/ B.createElement(DBe, R3({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(OBe, R3({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement(TBe, R3({}, i, {offset: r,horizontalPoints: y,xAxis: h,yAxis: g- })), /*#__PURE__*/ B.createElement(uze, v4({}, i, {+ })), /*#__PURE__*/ B.createElement(EBe, R3({}, i, {offset: r,verticalPoints: b,xAxis: h,yAxis: g}))));}-x4.displayName = "CartesianGrid";+V3.displayName = "CartesianGrid";//#endregion//#region node_modules/recharts/es6/state/errorBarSlice.js-var S4 = mU({+var H3 = MW({name: "errorBars",initialState: {},reducers: {@@ -69764,17 +72514,17 @@ var S4 = mU({e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));}}-}), { addErrorBar: gze, replaceErrorBar: _ze, removeErrorBar: vze } = S4.actions, yze = S4.reducer, bze = ["children"];-function xze(e, t) {+}), { addErrorBar: MBe, replaceErrorBar: NBe, removeErrorBar: PBe } = H3.actions, FBe = H3.reducer, IBe = ["children"];+function LBe(e, t) {if (e == null) return {};- var n, r, i = Sze(e, t);+ var n, r, i = RBe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Sze(e, t) {+function RBe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -69783,7 +72533,7 @@ function Sze(e, t) {}return n;}-var Cze = /*#__PURE__*/ (0, B.createContext)({+var zBe = /*#__PURE__*/ (0, B.createContext)({data: [],xAxisId: "xAxis-0",yAxisId: "yAxis-0",@@ -69794,22 +72544,22 @@ var Cze = /*#__PURE__*/ (0, B.createContext)({}),errorBarOffset: 0});-function C4(e) {- var { children: t } = e, n = xze(e, bze);- return /*#__PURE__*/ B.createElement(Cze.Provider, { value: n }, t);+function U3(e) {+ var { children: t } = e, n = LBe(e, IBe);+ return /*#__PURE__*/ B.createElement(zBe.Provider, { value: n }, t);}//#endregion//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js-function w4(e, t) {- var n = Q((t) => lZ(t, e)), r = Q((e) => fZ(e, t)), i = n?.allowDataOverflow ?? sZ.allowDataOverflow, a = r?.allowDataOverflow ?? uZ.allowDataOverflow;+function W3(e, t) {+ var n = Q((t) => kQ(t, e)), r = Q((e) => MQ(e, t)), i = n?.allowDataOverflow ?? DQ.allowDataOverflow, a = r?.allowDataOverflow ?? AQ.allowDataOverflow;return {needClip: i || a,needClipX: i,needClipY: a};}-function T4(e) {- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = a2(), { needClipX: a, needClipY: o, needClip: s } = w4(t, n);+function G3(e) {+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = T4(), { needClipX: a, needClipY: o, needClip: s } = W3(t, n);if (!s || !i) return null;var { x: c, y: l, width: u, height: d } = i;return /*#__PURE__*/ B.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ B.createElement("rect", {@@ -69821,30 +72571,30 @@ function T4(e) {}//#endregion//#region node_modules/recharts/es6/state/selectors/lineSelectors.js-var E4 = (e, t, n, r) => wQ(e, "xAxis", t, r), D4 = (e, t, n, r) => CQ(e, "xAxis", t, r), O4 = (e, t, n, r) => wQ(e, "yAxis", n, r), k4 = (e, t, n, r) => CQ(e, "yAxis", n, r), wze = $([- PW,- E4,- O4,- D4,- k4-], (e, t, n, r, i) => JU(e, "xAxis") ? iW(t, r, !1) : iW(n, i, !1)), Tze = (e, t, n, r, i) => i;-function Eze(e) {+var K3 = (e, t, n, r) => W$(e, "xAxis", t, r), q3 = (e, t, n, r) => U$(e, "xAxis", t, r), J3 = (e, t, n, r) => W$(e, "yAxis", n, r), Y3 = (e, t, n, r) => U$(e, "yAxis", n, r), BBe = $([+ QG,+ K3,+ J3,+ q3,+ Y3+], (e, t, n, r, i) => fG(e, "xAxis") ? SG(t, r, !1) : SG(n, i, !1)), VBe = (e, t, n, r, i) => i;+function HBe(e) {return e.type === "line";}-var Dze = $([- PW,- E4,- O4,- D4,- k4,- $([vZ, Tze], (e, t) => e.filter(Eze).find((e) => e.id === t)),- wze,- qK+var UBe = $([+ QG,+ K3,+ J3,+ q3,+ Y3,+ $([RQ, VBe], (e, t) => e.filter(HBe).find((e) => e.id === t)),+ BBe,+ dJ], (e, t, n, r, i, a, o, s) => {var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);- if (p != null) return qze({+ if (p != null) return lVe({layout: e,xAxis: t,yAxis: n,@@ -69858,8 +72608,8 @@ var Dze = $([});//#endregion//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js-function A4(e) {- var t = Dz(e), n = 3, r = 2;+function X3(e) {+ var t = WB(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), {@@ -69874,13 +72624,13 @@ function A4(e) {}//#endregion//#region node_modules/recharts/es6/cartesian/Line.js-var Oze = ["id"], kze = [+var WBe = ["id"], GBe = ["type","layout","connectNulls","needClip","shape"-], Aze = [+], KBe = ["activeDot","animateNewValues","animationBegin",@@ -69896,16 +72646,16 @@ var Oze = ["id"], kze = ["yAxisId","id"];-function j4() {- return j4 = Object.assign ? Object.assign.bind() : function(e) {+function Z3() {+ return Z3 = 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;- }, j4.apply(null, arguments);+ }, Z3.apply(null, arguments);}-function M4(e, t) {+function Q3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -69915,30 +72665,30 @@ function M4(e, t) {}return n;}-function N4(e) {+function $3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? M4(Object(n), !0).forEach(function(t) {- jze(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M4(Object(n)).forEach(function(t) {+ t % 2 ? Q3(Object(n), !0).forEach(function(t) {+ qBe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function jze(e, t, n) {- return (t = Mze(t)) in e ? Object.defineProperty(e, t, {+function qBe(e, t, n) {+ return (t = JBe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Mze(e) {- var t = Nze(e, "string");+function JBe(e) {+ var t = YBe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Nze(e, t) {+function YBe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -69948,16 +72698,16 @@ function Nze(e, t) {}return (t === "string" ? String : Number)(e);}-function P4(e, t) {+function e6(e, t) {if (e == null) return {};- var n, r, i = Pze(e, t);+ var n, r, i = XBe(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 Pze(e, t) {+function XBe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -69966,27 +72716,27 @@ function Pze(e, t) {}return n;}-var Fze = (e) => {+var ZBe = (e) => {var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;return [{inactive: a,dataKey: t,type: i,color: r,- value: oW(n, t),+ value: wG(n, t),payload: e}];-}, Ize = /*#__PURE__*/ B.memo((e) => {+}, QBe = /*#__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: KB,+ getPosition: uH,settings: {stroke: r,strokeWidth: i,fill: a,dataKey: t,nameKey: void 0,- name: oW(o, t),+ name: wG(o, t),hide: s,type: l,color: r,@@ -69994,15 +72744,15 @@ var Fze = (e) => {graphicalItemId: u}};- return /*#__PURE__*/ B.createElement(G0, { tooltipEntrySettings: d });-}), F4 = (e, t) => `${t}px ${e}px`;-function Lze(e, t) {+ return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: d });+}), t6 = (e, t) => `${t}px ${e}px`;+function $Be(e, t) {for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);return r;}-var Rze = (e, t, n) => {+var eVe = (e, t, n) => {var r = n.reduce((e, t) => e + t, 0);- if (!r) return F4(t, e);+ if (!r) return t6(t, e);for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {var l, u = n[s];if (u != null && c + u > a) {@@ -70012,14 +72762,14 @@ var Rze = (e, t, n) => {}var d = o.length % 2 == 0 ? [0, t] : [t];return [- ...Lze(n, i),+ ...$Be(n, i),...o,...d].map((e) => `${e}px`).join(", ");};-function zze(e) {- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = Ez(P4(r, Oze));- return /*#__PURE__*/ B.createElement(t2, {+function tVe(e) {+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = UB(e6(r, WBe));+ return /*#__PURE__*/ B.createElement(x4, {points: n,dot: i,className: "recharts-line-dots",@@ -70030,7 +72780,7 @@ function zze(e) {clipPathId: t});}-function Bze(e) {+function nVe(e) {var { showLabels: t, children: n, points: r } = e, i = (0, B.useMemo)(() => r?.map((e) => {var t = {x: e.x ?? 0,@@ -70040,7 +72790,7 @@ function Bze(e) {upperWidth: 0,height: 0};- return N4(N4({}, t), {}, {+ return $3($3({}, t), {}, {value: e.value,payload: e.payload,viewBox: t,@@ -70048,10 +72798,10 @@ function Bze(e) {fill: void 0});}), [r]);- return /*#__PURE__*/ B.createElement(z1, { value: t ? i : void 0 }, n);+ return /*#__PURE__*/ B.createElement(a2, { value: t ? i : void 0 }, n);}-function I4(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({}, Oz(P4(a, kze))), {}, {+function n6(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 = $3($3({}, GB(e6(a, GBe))), {}, {fill: "none",className: "recharts-line-curve",clipPath: l ? `url(#clipPath-${t})` : void 0,@@ -70061,34 +72811,34 @@ function I4(e) {connectNulls: c,strokeDasharray: i ?? a.strokeDasharray});- return /*#__PURE__*/ B.createElement(B.Fragment, null, r?.length > 1 && /*#__PURE__*/ B.createElement(V0, j4({+ return /*#__PURE__*/ B.createElement(B.Fragment, null, r?.length > 1 && /*#__PURE__*/ B.createElement(s4, Z3({shapeType: "curve",option: u- }, d, { pathRef: n })), /*#__PURE__*/ B.createElement(zze, {+ }, d, { pathRef: n })), /*#__PURE__*/ B.createElement(tVe, {points: r,clipPathId: t,props: a}));}-function Vze(e) {+function rVe(e) {try {return e && e.getTotalLength && e.getTotalLength() || 0;} catch {return 0;}}-function Hze(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 = CK(o, "recharts-line-"), y = (0, B.useRef)(v), [b, x] = (0, B.useState)(!1), S = !b, C = (0, B.useCallback)(() => {+function iVe(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 = Vq(o, "recharts-line-"), y = (0, B.useRef)(v), [b, x] = (0, B.useState)(!1), S = !b, C = (0, B.useCallback)(() => {typeof h == "function" && h(), x(!1);}, [h]), w = (0, B.useCallback)(() => {typeof g == "function" && g(), x(!0);- }, [g]), T = Vze(r.current), E = (0, B.useRef)(0);+ }, [g]), T = rVe(r.current), E = (0, B.useRef)(0);y.current !== v && (E.current = a.current, y.current = v);var D = E.current;- return /*#__PURE__*/ B.createElement(Bze, {+ return /*#__PURE__*/ B.createElement(nVe, {points: o,showLabels: S- }, n.children, /*#__PURE__*/ B.createElement(SK, {+ }, n.children, /*#__PURE__*/ B.createElement(Bq, {animationId: v,begin: l,duration: u,@@ -70098,26 +72848,26 @@ function Hze(e) {onAnimationStart: w,key: v}, (e) => {- var l = VB(D, T + D, e), u = Math.min(l, T), d = c ? s ? Rze(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : F4(T, u) : s == null ? void 0 : String(s);+ var l = aH(D, T + D, e), u = Math.min(l, T), d = c ? s ? eVe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : t6(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: VB(i.x, t.x, e),- y: VB(i.y, t.y, e)+ return $3($3({}, t), {}, {+ x: aH(i.x, t.x, e),+ y: aH(i.y, t.y, e)});}- return f ? N4(N4({}, t), {}, {- x: VB(p * 2, t.x, e),- y: VB(m / 2, t.y, e)- }) : N4(N4({}, t), {}, {+ return f ? $3($3({}, t), {}, {+ x: aH(p * 2, t.x, e),+ y: aH(m / 2, t.y, e)+ }) : $3($3({}, t), {}, {x: t.x,y: t.y});});- return i.current = g, /*#__PURE__*/ B.createElement(I4, {+ return i.current = g, /*#__PURE__*/ B.createElement(n6, {props: n,points: g,clipPathId: t,@@ -70125,18 +72875,18 @@ function Hze(e) {strokeDasharray: d});}- return /*#__PURE__*/ B.createElement(I4, {+ return /*#__PURE__*/ B.createElement(n6, {props: n,points: o,clipPathId: t,pathRef: r,strokeDasharray: d});- }), /*#__PURE__*/ B.createElement(H1, { label: n.label }));+ }), /*#__PURE__*/ B.createElement(c2, { label: n.label }));}-function Uze(e) {+function aVe(e) {var { clipPathId: t, props: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(0), a = (0, B.useRef)(null);- return /*#__PURE__*/ B.createElement(Hze, {+ return /*#__PURE__*/ B.createElement(iVe, {props: n,clipPathId: t,previousPointsRef: r,@@ -70144,17 +72894,17 @@ function Uze(e) {pathRef: a});}-var Wze = (e, t) => ({+var oVe = (e, t) => ({x: e.x ?? void 0,y: e.y ?? void 0,value: e.value,- errorVal: qU(e.payload, t)-}), Gze = class extends B.Component {+ errorVal: dG(e.payload, t)+}), sVe = class extends B.Component {render() {var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;if (e) return null;- var p = _h("recharts-line", r), m = u, { r: h, strokeWidth: g } = A4(t), _ = M0(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;- return /*#__PURE__*/ B.createElement(j$, { zIndex: f }, /*#__PURE__*/ B.createElement(Mz, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(T4, {+ var p = _h("recharts-line", r), m = u, { r: h, strokeWidth: g } = X3(t), _ = Q2(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: f }, /*#__PURE__*/ B.createElement(YB, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(G3, {clipPathId: m,xAxisId: i,yAxisId: a@@ -70163,16 +72913,16 @@ var Wze = (e, t) => ({y: o - v / 2,width: c + v,height: l + v- }))), /*#__PURE__*/ B.createElement(C4, {+ }))), /*#__PURE__*/ B.createElement(U3, {xAxisId: i,yAxisId: a,data: n,- dataPointFormatter: Wze,+ dataPointFormatter: oVe,errorBarOffset: 0- }, /*#__PURE__*/ B.createElement(Uze, {+ }, /*#__PURE__*/ B.createElement(aVe, {props: this.props,clipPathId: m- }))), /*#__PURE__*/ B.createElement(c2, {+ }))), /*#__PURE__*/ B.createElement(O4, {activeDot: this.props.activeDot,points: n,mainColor: this.props.stroke,@@ -70180,7 +72930,7 @@ var Wze = (e, t) => ({clipPath: y}));}-}, L4 = {+}, r6 = {activeDot: !0,animateNewValues: !0,animationBegin: 0,@@ -70197,14 +72947,14 @@ var Wze = (e, t) => ({strokeWidth: 1,xAxisId: 0,yAxisId: 0,- zIndex: _q.line,+ zIndex: FJ.line,type: "linear"};-function Kze(e) {- var t = nV(e, L4), { 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 = P4(t, Aze), { needClip: _ } = w4(p, m), v = a2(), y = FW(), b = gW(), x = Q((e) => Dze(e, p, m, b, h));+function cVe(e) {+ var t = bH(e, r6), { 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 = e6(t, KBe), { needClip: _ } = W3(p, m), v = T4(), y = $G(), b = PG(), x = Q((e) => UBe(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(Gze, j4({}, g, {+ return /*#__PURE__*/ B.createElement(sVe, Z3({}, g, {id: h,connectNulls: s,dot: c,@@ -70228,23 +72978,23 @@ function Kze(e) {needClip: _}));}-function qze(e) {+function lVe(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 = qU(e, o);+ var l = dG(e, o);if (t === "horizontal") return {- x: $U({+ x: _G({axis: n,ticks: i,bandSize: s,entry: e,index: c}),- y: (UB(l) ? null : r.scale.map(l)) ?? null,+ y: (sH(l) ? null : r.scale.map(l)) ?? null,value: l,payload: e};- var u = UB(l) ? null : n.scale.map(l), d = $U({+ var u = sH(l) ? null : n.scale.map(l), d = _G({axis: r,ticks: a,bandSize: s,@@ -70259,12 +73009,12 @@ function qze(e) {};}).filter(Boolean);}-function Jze(e) {- var t = nV(e, L4), n = gW();- return /*#__PURE__*/ B.createElement(J0, {+function uVe(e) {+ var t = bH(e, r6), n = PG();+ return /*#__PURE__*/ B.createElement(m4, {id: t.id,type: "line"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(K0, { legendPayload: Fze(t) }), /*#__PURE__*/ B.createElement(Ize, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(f4, { legendPayload: ZBe(t) }), /*#__PURE__*/ B.createElement(QBe, {dataKey: t.dataKey,data: t.data,stroke: t.stroke,@@ -70275,7 +73025,7 @@ function Jze(e) {unit: t.unit,tooltipType: t.tooltipType,id: e- }), /*#__PURE__*/ B.createElement(X0, {+ }), /*#__PURE__*/ B.createElement(g4, {type: "line",id: e,data: t.data,@@ -70285,50 +73035,50 @@ function Jze(e) {dataKey: t.dataKey,hide: t.hide,isPanorama: n- }), /*#__PURE__*/ B.createElement(Kze, j4({}, t, { id: e }))));+ }), /*#__PURE__*/ B.createElement(cVe, Z3({}, t, { id: e }))));}-var R4 = /*#__PURE__*/ B.memo(Jze, NG);-R4.displayName = "Line";+var i6 = /*#__PURE__*/ B.memo(uVe, ZK);+i6.displayName = "Line";//#endregion//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js-function z4(e, t) {+function a6(e, t) {return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;}-function B4(e, t) {+function o6(e, t) {return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;}//#endregion//#region node_modules/recharts/es6/state/selectors/areaSelectors.js-var V4 = (e, t, n) => wQ(e, "xAxis", z4(e, t), n), H4 = (e, t, n) => CQ(e, "xAxis", z4(e, t), n), U4 = (e, t, n) => wQ(e, "yAxis", B4(e, t), n), W4 = (e, t, n) => CQ(e, "yAxis", B4(e, t), n), Yze = $([- PW,- V4,- U4,- H4,- W4-], (e, t, n, r, i) => JU(e, "xAxis") ? iW(t, r, !1) : iW(n, i, !1)), G4 = $([vZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), K4 = (e) => JU(PW(e), "xAxis") ? "yAxis" : "xAxis", Xze = (e, t) => K4(e) === "yAxis" ? B4(e, t) : z4(e, t), Zze = $([- PW,- V4,- U4,- H4,- W4,- $([G4, (e, t, n) => FZ(e, K4(e), Xze(e, t), n)], (e, t) => {+var s6 = (e, t, n) => W$(e, "xAxis", a6(e, t), n), c6 = (e, t, n) => U$(e, "xAxis", a6(e, t), n), l6 = (e, t, n) => W$(e, "yAxis", o6(e, t), n), u6 = (e, t, n) => U$(e, "yAxis", o6(e, t), n), dVe = $([+ QG,+ s6,+ l6,+ c6,+ u6+], (e, t, n, r, i) => fG(e, "xAxis") ? SG(t, r, !1) : SG(n, i, !1)), d6 = $([RQ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), f6 = (e) => fG(QG(e), "xAxis") ? "yAxis" : "xAxis", fVe = (e, t) => f6(e) === "yAxis" ? o6(e, t) : a6(e, t), pVe = $([+ QG,+ s6,+ l6,+ c6,+ u6,+ $([d6, (e, t, n) => t$(e, f6(e), fVe(e, t), n)], (e, t) => {if (e != null && t != null) {- var { stackId: n } = e, r = Lq(e);+ var { stackId: n } = e, r = tY(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]]);}}}),- JK,- Yze,- G4,- mOe+ fJ,+ dVe,+ d6,+ Mke], (e, t, n, r, i, a, o, s, c, l) => {var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);- if (m != null) return _Be({+ if (m != null) return NVe({layout: e,xAxis: t,yAxis: n,@@ -70342,7 +73092,7 @@ var V4 = (e, t, n) => wQ(e, "xAxis", z4(e, t), n), H4 = (e, t, n) => CQ(e, "xAxibandSize: s});}-}), Qze = ["id"], $ze = [+}), mVe = ["id"], hVe = ["activeDot","animationBegin","animationDuration",@@ -70358,25 +73108,25 @@ var V4 = (e, t, n) => wQ(e, "xAxis", z4(e, t), n), H4 = (e, t, n) => CQ(e, "xAxi"xAxisId","yAxisId"];-function q4() {- return q4 = Object.assign ? Object.assign.bind() : function(e) {+function p6() {+ return p6 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, q4.apply(null, arguments);+ }, p6.apply(null, arguments);}-function J4(e, t) {+function m6(e, t) {if (e == null) return {};- var n, r, i = eBe(e, t);+ var n, r, i = gVe(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 eBe(e, t) {+function gVe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -70385,7 +73135,7 @@ function eBe(e, t) {}return n;}-function Y4(e, t) {+function h6(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -70395,30 +73145,30 @@ function Y4(e, t) {}return n;}-function X4(e) {+function g6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Y4(Object(n), !0).forEach(function(t) {- tBe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y4(Object(n)).forEach(function(t) {+ t % 2 ? h6(Object(n), !0).forEach(function(t) {+ _Ve(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function tBe(e, t, n) {- return (t = nBe(t)) in e ? Object.defineProperty(e, t, {+function _Ve(e, t, n) {+ return (t = vVe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function nBe(e) {- var t = rBe(e, "string");+function vVe(e) {+ var t = yVe(e, "string");return typeof t == "symbol" ? t : t + "";}-function rBe(e, t) {+function yVe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -70428,42 +73178,42 @@ function rBe(e, t) {}return (t === "string" ? String : Number)(e);}-function Z4(e, t) {+function _6(e, t) {return e && e !== "none" ? e : t;}-var iBe = (e) => {+var bVe = (e) => {var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;return [{inactive: o,dataKey: t,type: a,- color: Z4(r, i),- value: oW(n, t),+ color: _6(r, i),+ value: wG(n, t),payload: e}];-}, aBe = /*#__PURE__*/ B.memo((e) => {+}, xVe = /*#__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: KB,+ getPosition: uH,settings: {stroke: r,strokeWidth: i,fill: a,dataKey: t,nameKey: void 0,- name: oW(o, t),+ name: wG(o, t),hide: s,type: l,- color: Z4(r, a),+ color: _6(r, a),unit: c,graphicalItemId: u}};- return /*#__PURE__*/ B.createElement(G0, { tooltipEntrySettings: d });+ return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: d });});-function oBe(e) {- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = Ez(r);- return /*#__PURE__*/ B.createElement(t2, {+function SVe(e) {+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = UB(r);+ return /*#__PURE__*/ B.createElement(x4, {points: n,dot: a,className: "recharts-area-dots",@@ -70474,7 +73224,7 @@ function oBe(e) {clipPathId: t});}-function sBe(e) {+function CVe(e) {var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {var t = {x: e.x ?? 0,@@ -70484,7 +73234,7 @@ function sBe(e) {upperWidth: 0,height: 0};- return X4(X4({}, t), {}, {+ return g6(g6({}, t), {}, {value: e.value,payload: e.payload,parentViewBox: void 0,@@ -70492,11 +73242,11 @@ function sBe(e) {fill: void 0});});- return /*#__PURE__*/ B.createElement(z1, { value: t ? i : void 0 }, n);+ return /*#__PURE__*/ B.createElement(a2, { value: t ? i : void 0 }, n);}-function Q4(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 = J4(a, Qze), p = Ez(f), m = Oz(f);- return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(Mz, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(iK, q4({}, m, {+function v6(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 = m6(a, mVe), p = UB(f), m = GB(f);+ return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(YB, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(Sq, p6({}, m, {id: d,points: t,connectNulls: l,@@ -70505,29 +73255,29 @@ function Q4(e) {layout: o,stroke: "none",className: "recharts-area-area"- })), c !== "none" && /*#__PURE__*/ B.createElement(iK, q4({}, p, {+ })), c !== "none" && /*#__PURE__*/ B.createElement(Sq, p6({}, p, {className: "recharts-area-curve",layout: o,type: s,connectNulls: l,fill: "none",points: t- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(iK, q4({}, p, {+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(Sq, p6({}, p, {className: "recharts-area-curve",layout: o,type: s,connectNulls: l,fill: "none",points: n- }))), /*#__PURE__*/ B.createElement(oBe, {+ }))), /*#__PURE__*/ B.createElement(SVe, {points: t,props: f,clipPathId: i}));}-function cBe(e) {+function wVe(e) {var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;- if (!UU(a) || !UU(o)) return null;+ if (!sG(a) || !sG(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,@@ -70536,9 +73286,9 @@ function cBe(e) {height: Math.floor(s)}) : null;}-function lBe(e) {+function TVe(e) {var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;- if (!UU(a) || !UU(o)) return null;+ if (!sG(a) || !sG(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,@@ -70547,35 +73297,35 @@ function lBe(e) {height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))}) : null;}-function uBe(e) {+function EVe(e) {var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;- return n === "vertical" ? /*#__PURE__*/ B.createElement(cBe, {+ return n === "vertical" ? /*#__PURE__*/ B.createElement(wVe, {alpha: t,points: r,baseLine: i,strokeWidth: a- }) : /*#__PURE__*/ B.createElement(lBe, {+ }) : /*#__PURE__*/ B.createElement(TVe, {alpha: t,points: r,baseLine: i,strokeWidth: a});}-function dBe(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 = CK((0, B.useMemo)(() => ({+function DVe(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 = Vq((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 = eK(), [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);}, [f]);if (h == null) return null;var x = i.current, S = a.current;- return /*#__PURE__*/ B.createElement(sBe, {+ return /*#__PURE__*/ B.createElement(CVe, {showLabels: v,points: o- }, r.children, /*#__PURE__*/ B.createElement(SK, {+ }, r.children, /*#__PURE__*/ B.createElement(Bq, {animationId: m,begin: l,duration: u,@@ -70590,24 +73340,24 @@ function dBe(e) {var r = Math.floor(n * l);if (x[r]) {var i = x[r];- return X4(X4({}, t), {}, {- x: VB(i.x, t.x, e),- y: VB(i.y, t.y, e)+ return g6(g6({}, t), {}, {+ x: aH(i.x, t.x, e),+ y: aH(i.y, t.y, e)});}return t;- }), d = Z(s) ? VB(S, s, e) : UB(s) || FB(s) ? VB(S, 0, e) : s.map((t, n) => {+ }), d = Z(s) ? aH(S, s, e) : sH(s) || $V(s) ? aH(S, 0, e) : s.map((t, n) => {var r = Math.floor(n * l);if (Array.isArray(S) && S[r]) {var i = S[r];- return X4(X4({}, t), {}, {- x: VB(i.x, t.x, e),- y: VB(i.y, t.y, e)+ return g6(g6({}, t), {}, {+ x: aH(i.x, t.x, e),+ y: aH(i.y, t.y, e)});}return t;});- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ B.createElement(Q4, {+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ B.createElement(v6, {points: u,baseLine: d,needClip: t,@@ -70615,24 +73365,24 @@ function dBe(e) {props: r});}- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(Mz, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(uBe, {+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(YB, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(EVe, {alpha: e,points: o,baseLine: s,layout: h,strokeWidth: r.strokeWidth- }))), /*#__PURE__*/ B.createElement(Mz, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(Q4, {+ }))), /*#__PURE__*/ B.createElement(YB, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(v6, {points: o,baseLine: s,needClip: t,clipPathId: n,props: r})));- }), /*#__PURE__*/ B.createElement(H1, { label: r.label }));+ }), /*#__PURE__*/ B.createElement(c2, { label: r.label }));}-function fBe(e) {+function OVe(e) {var { needClip: t, clipPathId: n, props: r } = e, i = (0, B.useRef)(null), a = (0, B.useRef)();- return /*#__PURE__*/ B.createElement(dBe, {+ return /*#__PURE__*/ B.createElement(DVe, {needClip: t,clipPathId: n,props: r,@@ -70640,12 +73390,12 @@ function fBe(e) {previousBaselineRef: a});}-var pBe = class extends B.PureComponent {+var kVe = class extends B.PureComponent {render() {var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;if (e) return null;- var m = _h("recharts-area", r), h = d, { r: g, strokeWidth: _ } = A4(t), v = M0(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;- return /*#__PURE__*/ B.createElement(j$, { zIndex: p }, /*#__PURE__*/ B.createElement(Mz, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(T4, {+ var m = _h("recharts-area", r), h = d, { r: g, strokeWidth: _ } = X3(t), v = Q2(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: p }, /*#__PURE__*/ B.createElement(YB, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(G3, {clipPathId: h,xAxisId: s,yAxisId: c@@ -70654,25 +73404,25 @@ var pBe = class extends B.PureComponent {y: i - y / 2,width: l + y,height: u + y- }))), /*#__PURE__*/ B.createElement(fBe, {+ }))), /*#__PURE__*/ B.createElement(OVe, {needClip: o,clipPathId: h,props: this.props- })), /*#__PURE__*/ B.createElement(c2, {+ })), /*#__PURE__*/ B.createElement(O4, {points: n,- mainColor: Z4(this.props.stroke, this.props.fill),+ mainColor: _6(this.props.stroke, this.props.fill),itemDataKey: this.props.dataKey,activeDot: this.props.activeDot,clipPath: b- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ B.createElement(c2, {+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ B.createElement(O4, {points: f,- mainColor: Z4(this.props.stroke, this.props.fill),+ mainColor: _6(this.props.stroke, this.props.fill),itemDataKey: this.props.dataKey,activeDot: this.props.activeDot,clipPath: b}));}-}, mBe = {+}, AVe = {activeDot: !0,animationBegin: 0,animationDuration: 1500,@@ -70690,13 +73440,13 @@ var pBe = class extends B.PureComponent {label: !1,xAxisId: 0,yAxisId: 0,- zIndex: _q.area+ zIndex: FJ.area};-function hBe(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 = J4(e, $ze), g = FW(), _ = y$(), { needClip: v } = w4(p, m), y = gW(), { points: b, isRange: x, baseLine: S } = Q((t) => Zze(t, e.id, y)) ?? {}, C = a2();+function jVe(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 = m6(e, hVe), g = $G(), _ = z1(), { needClip: v } = W3(p, m), y = PG(), { points: b, isRange: x, baseLine: S } = Q((t) => pVe(t, e.id, y)) ?? {}, C = T4();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(pBe, q4({}, h, {+ return !b || !b.length ? null : /*#__PURE__*/ B.createElement(kVe, p6({}, h, {activeDot: t,animationBegin: n,animationDuration: r,@@ -70722,7 +73472,7 @@ function hBe(e) {yAxisId: m}));}-var gBe = (e, t, n, r, i) => {+var MVe = (e, t, n, r, i) => {var a = n ?? t;if (Z(a)) return a;var o = e === "horizontal" ? i : r, s = o.scale.domain();@@ -70732,17 +73482,17 @@ var gBe = (e, t, n, r, i) => {}return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];};-function _Be(e) {- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = gBe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {+function NVe(e) {+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = MVe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {var a;if (m) a = i[u + n];else {- var o = qU(e, r);+ var o = dG(e, r);Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];}- var l = a?.[1] ?? null, v = l == null || m && !t && qU(e, r) == null;+ var l = a?.[1] ?? null, v = l == null || m && !t && dG(e, r) == null;return g ? {- x: $U({+ x: _G({axis: s,ticks: d,bandSize: p,@@ -70754,7 +73504,7 @@ function _Be(e) {payload: e} : {x: v ? null : s.scale.map(l) ?? null,- y: $U({+ y: _G({axis: c,ticks: f,bandSize: p,@@ -70782,12 +73532,12 @@ function _Be(e) {isRange: _};}-function vBe(e) {- var t = nV(e, mBe), n = gW();- return /*#__PURE__*/ B.createElement(J0, {+function PVe(e) {+ var t = bH(e, AVe), n = PG();+ return /*#__PURE__*/ B.createElement(m4, {id: t.id,type: "area"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(K0, { legendPayload: iBe(t) }), /*#__PURE__*/ B.createElement(aBe, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(f4, { legendPayload: bVe(t) }), /*#__PURE__*/ B.createElement(xVe, {dataKey: t.dataKey,data: t.data,stroke: t.stroke,@@ -70798,7 +73548,7 @@ function vBe(e) {unit: t.unit,tooltipType: t.tooltipType,id: e- }), /*#__PURE__*/ B.createElement(X0, {+ }), /*#__PURE__*/ B.createElement(g4, {type: "area",id: e,data: t.data,@@ -70806,115 +73556,115 @@ function vBe(e) {xAxisId: t.xAxisId,yAxisId: t.yAxisId,zAxisId: 0,- stackId: QU(t.stackId),+ stackId: gG(t.stackId),hide: t.hide,barSize: void 0,baseValue: t.baseValue,isPanorama: n,connectNulls: t.connectNulls- }), /*#__PURE__*/ B.createElement(hBe, q4({}, t, { id: e }))));+ }), /*#__PURE__*/ B.createElement(jVe, p6({}, t, { id: e }))));}-var $4 = /*#__PURE__*/ B.memo(vBe, NG);-$4.displayName = "Area";+var y6 = /*#__PURE__*/ B.memo(PVe, ZK);+y6.displayName = "Area";//#endregion//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js-var yBe = "Invariant failed";-function bBe(e, t) {- if (!e) throw Error(yBe);+var FVe = "Invariant failed";+function IVe(e, t) {+ if (!e) throw Error(FVe);}//#endregion//#region node_modules/recharts/es6/util/BarUtils.js-function e3() {- return e3 = Object.assign ? Object.assign.bind() : function(e) {+function b6() {+ return b6 = 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;- }, e3.apply(null, arguments);+ }, b6.apply(null, arguments);}-function t3(e) {- return /*#__PURE__*/ B.createElement(V0, e3({+function x6(e) {+ return /*#__PURE__*/ B.createElement(s4, b6({shapeType: "rectangle",activeClassName: "recharts-active-bar",inActiveClassName: "recharts-inactive-bar"}, e));}-var xBe = function(e) {+var LVe = 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) || UB(n);- return i ? e(n, r) : (!i && bBe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);- };-}, SBe = (e, t, n) => n, n3 = $([vZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), CBe = $([n3], (e) => e?.maxBarSize), wBe = (e, t, n, r) => r, TBe = $([- PW,- vZ,- z4,- B4,- SBe-], (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")), EBe = (e, t, n) => {- var r = PW(e), i = z4(e, t), a = B4(e, t);- if (i != null && a != null) return r === "horizontal" ? FZ(e, "yAxis", a, n) : FZ(e, "xAxis", i, n);-}, DBe = $([- TBe,- uq,+ var i = Z(n) || sH(n);+ return i ? e(n, r) : (!i && IVe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);+ };+}, RVe = (e, t, n) => n, S6 = $([RQ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), zVe = $([S6], (e) => e?.maxBarSize), BVe = (e, t, n, r) => r, VVe = $([+ QG,+ RQ,+ a6,+ o6,+ RVe+], (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")), HVe = (e, t, n) => {+ var r = QG(e), i = a6(e, t), a = o6(e, t);+ if (i != null && a != null) return r === "horizontal" ? t$(e, "yAxis", a, n) : t$(e, "xAxis", i, n);+}, UVe = $([+ VVe,+ OJ,(e, t) => {- var n = PW(e), r = z4(e, t), i = B4(e, t);- if (r != null && i != null) return n === "horizontal" ? gQ(e, "xAxis", r) : gQ(e, "yAxis", i);+ var n = QG(e), r = a6(e, t), i = o6(e, t);+ if (r != null && i != null) return n === "horizontal" ? I$(e, "xAxis", r) : I$(e, "yAxis", i);}-], w2), OBe = (e, t, n) => {- var r = n3(e, t);+], W4), WVe = (e, t, n) => {+ var r = S6(e, t);if (r == null) return 0;- var i = z4(e, t), a = B4(e, t);+ var i = a6(e, t), a = o6(e, t);if (i == null || a == null) return 0;- var o = PW(e), s = sq(e), { maxBarSize: c } = r, l = UB(c) ? s : c, u, d;- return o === "horizontal" ? (u = wQ(e, "xAxis", i, n), d = CQ(e, "xAxis", i, n)) : (u = wQ(e, "yAxis", a, n), d = CQ(e, "yAxis", a, n)), iW(u, d, !0) ?? l ?? 0;-}, r3 = (e, t, n) => {- var r = PW(e), i = z4(e, t), a = B4(e, t);+ var o = QG(e), s = TJ(e), { maxBarSize: c } = r, l = sH(c) ? s : c, u, d;+ return o === "horizontal" ? (u = W$(e, "xAxis", i, n), d = U$(e, "xAxis", i, n)) : (u = W$(e, "yAxis", a, n), d = U$(e, "yAxis", a, n)), SG(u, d, !0) ?? l ?? 0;+}, C6 = (e, t, n) => {+ var r = QG(e), i = a6(e, t), a = o6(e, t);if (i != null && a != null) {var o, s;- return r === "horizontal" ? (o = wQ(e, "xAxis", i, n), s = CQ(e, "xAxis", i, n)) : (o = wQ(e, "yAxis", a, n), s = CQ(e, "yAxis", a, n)), iW(o, s);+ return r === "horizontal" ? (o = W$(e, "xAxis", i, n), s = U$(e, "xAxis", i, n)) : (o = W$(e, "yAxis", a, n), s = U$(e, "yAxis", a, n)), SG(o, s);}-}, kBe = $([- mW,- hW,+}, GVe = $([+ MG,+ NG,(e, t, n) => {- var r = z4(e, t);- if (r != null) return wQ(e, "xAxis", r, n);+ var r = a6(e, t);+ if (r != null) return W$(e, "xAxis", r, n);},(e, t, n) => {- var r = B4(e, t);- if (r != null) return wQ(e, "yAxis", r, n);+ var r = o6(e, t);+ if (r != null) return W$(e, "yAxis", r, n);},(e, t, n) => {- var r = z4(e, t);- if (r != null) return CQ(e, "xAxis", r, n);+ var r = a6(e, t);+ if (r != null) return U$(e, "xAxis", r, n);},(e, t, n) => {- var r = B4(e, t);- if (r != null) return CQ(e, "yAxis", r, n);+ var r = o6(e, t);+ if (r != null) return U$(e, "yAxis", r, n);},$([$([- DBe,- sq,- cq,- lq,- OBe,- r3,- CBe- ], D2), n3], k2),- PW,- JK,- r3,- $([EBe, n3], O2),- n3,- wBe+ UVe,+ TJ,+ EJ,+ DJ,+ WVe,+ C6,+ zVe+ ], q4), S6], Y4),+ QG,+ fJ,+ C6,+ $([HVe, S6], J4),+ S6,+ BVe], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);- if (_ != null) return rVe({+ if (_ != null) return yHe({layout: s,barSettings: d,pos: o,@@ -70931,26 +73681,26 @@ var xBe = function(e) {dataStartIndex: m});}-}), ABe = ["index"];-function i3() {- return i3 = Object.assign ? Object.assign.bind() : function(e) {+}), KVe = ["index"];+function w6() {+ return w6 = 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;- }, i3.apply(null, arguments);+ }, w6.apply(null, arguments);}-function jBe(e, t) {+function qVe(e, t) {if (e == null) return {};- var n, r, i = MBe(e, t);+ var n, r, i = JVe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function MBe(e, t) {+function JVe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -70959,45 +73709,45 @@ function MBe(e, t) {}return n;}-var a3 = /*#__PURE__*/ (0, B.createContext)(void 0), NBe = (e) => {- var t = (0, B.useContext)(a3);+var T6 = /*#__PURE__*/ (0, B.createContext)(void 0), YVe = (e) => {+ var t = (0, B.useContext)(T6);if (t != null) return t.stackId;- if (e != null) return QU(e);-}, PBe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, FBe = (e) => {- var t = (0, B.useContext)(a3);+ if (e != null) return gG(e);+}, XVe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, ZVe = (e) => {+ var t = (0, B.useContext)(T6);if (t != null) {var { stackId: n } = t;- return `url(#${PBe(n, e)})`;+ return `url(#${XVe(n, e)})`;}-}, o3 = (e) => {- var { index: t } = e, n = jBe(e, ABe), r = FBe(t);- return /*#__PURE__*/ B.createElement(Mz, i3({+}, E6 = (e) => {+ var { index: t } = e, n = qVe(e, KVe), r = ZVe(t);+ return /*#__PURE__*/ B.createElement(YB, w6({className: "recharts-bar-stack-layer",clipPath: r}, n));-}, IBe = [+}, QVe = ["onMouseEnter","onMouseLeave","onClick"-], LBe = [+], $Ve = ["value","background","tooltipPosition"-], RBe = ["id"], zBe = [+], eHe = ["id"], tHe = ["onMouseEnter","onClick","onMouseLeave"];-function s3() {- return s3 = Object.assign ? Object.assign.bind() : function(e) {+function D6() {+ return D6 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, s3.apply(null, arguments);+ }, D6.apply(null, arguments);}-function c3(e, t) {+function O6(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -71007,30 +73757,30 @@ function c3(e, t) {}return n;}-function l3(e) {+function k6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? c3(Object(n), !0).forEach(function(t) {- BBe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c3(Object(n)).forEach(function(t) {+ t % 2 ? O6(Object(n), !0).forEach(function(t) {+ nHe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function BBe(e, t, n) {- return (t = VBe(t)) in e ? Object.defineProperty(e, t, {+function nHe(e, t, n) {+ return (t = rHe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function VBe(e) {- var t = HBe(e, "string");+function rHe(e) {+ var t = iHe(e, "string");return typeof t == "symbol" ? t : t + "";}-function HBe(e, t) {+function iHe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -71040,16 +73790,16 @@ function HBe(e, t) {}return (t === "string" ? String : Number)(e);}-function u3(e, t) {+function A6(e, t) {if (e == null) return {};- var n, r, i = UBe(e, t);+ var n, r, i = aHe(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 UBe(e, t) {+function aHe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -71058,27 +73808,27 @@ function UBe(e, t) {}return n;}-var WBe = (e) => {+var oHe = (e) => {var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;return [{inactive: a,dataKey: t,type: i,color: r,- value: oW(n, t),+ value: wG(n, t),payload: e}];-}, GBe = /*#__PURE__*/ B.memo((e) => {+}, sHe = /*#__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: KB,+ getPosition: uH,settings: {stroke: n,strokeWidth: r,fill: i,dataKey: t,nameKey: void 0,- name: oW(a, t),+ name: wG(a, t),hide: o,type: c,color: i,@@ -71086,19 +73836,19 @@ var WBe = (e) => {graphicalItemId: l}};- return /*#__PURE__*/ B.createElement(G0, { tooltipEntrySettings: u });+ return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: u });});-function KBe(e) {- var t = Q(u$), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = u3(a, IBe), u = H0(o, r, a.id), d = U0(s), f = W0(c, r, a.id);+function cHe(e) {+ var t = Q(A1), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = A6(a, QVe), u = c4(o, r, a.id), d = l4(s), f = u4(c, r, a.id);if (!i || n == null) return null;- var p = Dz(i);- return /*#__PURE__*/ B.createElement(j$, { zIndex: H2(i, _q.barBackground) }, n.map((e, n) => {- var { value: a, background: o, tooltipPosition: s } = e, c = u3(e, LBe);+ var p = WB(i);+ return /*#__PURE__*/ B.createElement(Z1, { zIndex: c3(i, FJ.barBackground) }, n.map((e, n) => {+ var { value: a, background: o, tooltipPosition: s } = e, c = A6(e, $Ve);if (!o) return null;- var m = u(e, n), h = d(e, n), g = f(e, n), _ = l3(l3(l3(l3(l3({+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = k6(k6(k6(k6(k6({option: i,isActive: String(n) === t- }, c), {}, { fill: "#eee" }, o), p), eV(l, e, n)), {}, {+ }, c), {}, { fill: "#eee" }, o), p), vH(l, e, n)), {}, {onMouseEnter: m,onMouseLeave: h,onClick: g,@@ -71106,10 +73856,10 @@ function KBe(e) {index: n,className: "recharts-bar-background-rectangle"});- return /*#__PURE__*/ B.createElement(t3, s3({ key: `background-bar-${n}` }, _));+ return /*#__PURE__*/ B.createElement(x6, D6({ key: `background-bar-${n}` }, _));}));}-function qBe(e) {+function lHe(e) {var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {var t = {x: e.x,@@ -71119,7 +73869,7 @@ function qBe(e) {upperWidth: e.width,height: e.height};- return l3(l3({}, t), {}, {+ return k6(k6({}, t), {}, {value: e.value,payload: e.payload,parentViewBox: e.parentViewBox,@@ -71127,10 +73877,10 @@ function qBe(e) {fill: e.fill});});- return /*#__PURE__*/ B.createElement(z1, { value: t ? i : void 0 }, n);+ return /*#__PURE__*/ B.createElement(a2, { value: t ? i : void 0 }, n);}-function JBe(e) {- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(u$), c = Q(f$), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)(!1);+function uHe(e) {+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(A1), c = Q(M1), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)(!1);(0, B.useEffect)(() => {var e;return l ? (d(!0), e = requestAnimationFrame(() => {@@ -71141,42 +73891,42 @@ function JBe(e) {}, [l]);var m = (0, B.useCallback)(() => {l || d(!1);- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ B.createElement(t3, s3({}, r, { name: String(r.name) }, i, {+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ B.createElement(x6, D6({}, r, { name: String(r.name) }, i, {isActive: h,option: _,index: a,dataKey: o,onTransitionEnd: m}));- return g ? /*#__PURE__*/ B.createElement(j$, { zIndex: _q.activeBar }, /*#__PURE__*/ B.createElement(o3, { index: i.originalDataIndex }, v)) : v;+ return g ? /*#__PURE__*/ B.createElement(Z1, { zIndex: FJ.activeBar }, /*#__PURE__*/ B.createElement(E6, { index: i.originalDataIndex }, v)) : v;}-function YBe(e) {+function dHe(e) {var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;- return /*#__PURE__*/ B.createElement(t3, s3({}, n, { name: String(n.name) }, r, {+ return /*#__PURE__*/ B.createElement(x6, D6({}, n, { name: String(n.name) }, r, {isActive: !1,option: t,index: i,dataKey: a}));}-function XBe(e) {- var { data: t, props: n } = e, r = Ez(n) ?? {}, { id: i } = r, a = u3(r, RBe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = u3(n, zBe), p = H0(l, s, i), m = U0(d), h = W0(u, s, i);- return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(o3, s3({+function fHe(e) {+ var { data: t, props: n } = e, r = UB(n) ?? {}, { id: i } = r, a = A6(r, eHe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = A6(n, tHe), p = c4(l, s, i), m = l4(d), h = u4(u, s, i);+ return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(E6, D6({index: e.originalDataIndex,key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className: "recharts-bar-rectangle"- }, eV(f, e, t), {+ }, vH(f, e, t), {onMouseEnter: p(e, t),onMouseLeave: m(e, t),onClick: h(e, t)- }), c ? /*#__PURE__*/ B.createElement(JBe, {+ }), c ? /*#__PURE__*/ B.createElement(uHe, {shape: o,activeBar: c,baseProps: a,entry: e,index: t,dataKey: s- }) : /*#__PURE__*/ B.createElement(YBe, {+ }) : /*#__PURE__*/ B.createElement(dHe, {shape: o,baseProps: a,entry: e,@@ -71184,16 +73934,16 @@ function XBe(e) {dataKey: s})))) : null;}-function ZBe(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 = CK(t, "recharts-bar-"), [p, m] = (0, B.useState)(!1), h = !p, g = (0, B.useCallback)(() => {+function pHe(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 = Vq(t, "recharts-bar-"), [p, m] = (0, B.useState)(!1), h = !p, g = (0, B.useCallback)(() => {typeof l == "function" && l(), m(!1);}, [l]), _ = (0, B.useCallback)(() => {typeof u == "function" && u(), m(!0);}, [u]);- return /*#__PURE__*/ B.createElement(qBe, {+ return /*#__PURE__*/ B.createElement(lHe, {showLabels: h,rects: r- }, /*#__PURE__*/ B.createElement(SK, {+ }, /*#__PURE__*/ B.createElement(Bq, {animationId: f,begin: o,duration: s,@@ -71205,69 +73955,69 @@ function ZBe(e) {}, (e) => {var a = e === 1 ? r : r?.map((t, n) => {var r = d && d[n];- if (r) return l3(l3({}, t), {}, {- x: VB(r.x, t.x, e),- y: VB(r.y, t.y, e),- width: VB(r.width, t.width, e),- height: VB(r.height, t.height, e)+ if (r) return k6(k6({}, t), {}, {+ x: aH(r.x, t.x, e),+ y: aH(r.y, t.y, e),+ width: aH(r.width, t.width, e),+ height: aH(r.height, t.height, e)});if (i === "horizontal") {- var a = VB(0, t.height, e), o = VB(t.stackedBarStart, t.y, e);- return l3(l3({}, t), {}, {+ var a = aH(0, t.height, e), o = aH(t.stackedBarStart, t.y, e);+ return k6(k6({}, t), {}, {y: o,height: a});}- var s = VB(0, t.width, e), c = VB(t.stackedBarStart, t.x, e);- return l3(l3({}, t), {}, {+ var s = aH(0, t.width, e), c = aH(t.stackedBarStart, t.x, e);+ return k6(k6({}, t), {}, {width: s,x: c});});- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(Mz, null, /*#__PURE__*/ B.createElement(XBe, {+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(YB, null, /*#__PURE__*/ B.createElement(fHe, {props: t,data: a}));- }), /*#__PURE__*/ B.createElement(H1, { label: t.label }), t.children);+ }), /*#__PURE__*/ B.createElement(c2, { label: t.label }), t.children);}-function QBe(e) {+function mHe(e) {var t = (0, B.useRef)(null);- return /*#__PURE__*/ B.createElement(ZBe, {+ return /*#__PURE__*/ B.createElement(pHe, {previousRectanglesRef: t,props: e});}-var d3 = 0, $Be = (e, t) => {+var j6 = 0, hHe = (e, t) => {var n = Array.isArray(e.value) ? e.value[1] : e.value;return {x: e.x,y: e.y,value: n,- errorVal: qU(e, t)+ errorVal: dG(e, t)};-}, eVe = class extends B.PureComponent {+}, gHe = class extends B.PureComponent {render() {var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;if (e || t == null) return null;var l = _h("recharts-bar", r), u = c;- return /*#__PURE__*/ B.createElement(Mz, {+ return /*#__PURE__*/ B.createElement(YB, {className: l,id: c- }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(T4, {+ }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(G3, {clipPathId: u,xAxisId: i,yAxisId: a- })), /*#__PURE__*/ B.createElement(Mz, {+ })), /*#__PURE__*/ B.createElement(YB, {className: "recharts-bar-rectangles",clipPath: o ? `url(#clipPath-${u})` : void 0- }, /*#__PURE__*/ B.createElement(KBe, {+ }, /*#__PURE__*/ B.createElement(cHe, {data: t,dataKey: n,background: s,allOtherBarProps: this.props- }), /*#__PURE__*/ B.createElement(QBe, this.props)));+ }), /*#__PURE__*/ B.createElement(mHe, this.props)));}-}, tVe = {+}, _He = {activeBar: !1,animationBegin: 0,animationDuration: 400,@@ -71277,22 +74027,22 @@ var d3 = 0, $Be = (e, t) => {isAnimationActive: "auto",label: !1,legendType: "rect",- minPointSize: d3,+ minPointSize: j6,xAxisId: 0,yAxisId: 0,- zIndex: _q.bar+ zIndex: FJ.bar};-function nVe(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 } = w4(t, n), f = FW(), p = gW(), m = j0(e.children, J$), h = Q((t) => kBe(t, e.id, p, m));+function vHe(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 } = W3(t, n), f = $G(), p = PG(), m = Z2(e.children, m0), h = Q((t) => GVe(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(C4, {+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ B.createElement(U3, {xAxisId: t,yAxisId: n,data: h,- dataPointFormatter: $Be,+ dataPointFormatter: hHe,errorBarOffset: g- }, /*#__PURE__*/ B.createElement(eVe, s3({}, e, {+ }, /*#__PURE__*/ B.createElement(gHe, D6({}, e, {layout: f,needClip: d,data: h,@@ -71308,20 +74058,20 @@ function nVe(e) {isAnimationActive: u})));}-function rVe(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 = tW({ numericAxis: _ }), b = _.scale.map(y);+function yHe(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 = yG({ 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;- _ = ZU(E, v);- } else _ = qU(e, n), Array.isArray(_) || (_ = [y, _]);- var D = xBe(r, d3)(_[1], f);+ _ = hG(E, v);+ } else _ = dG(e, n), Array.isArray(_) || (_ = [y, _]);+ var D = LVe(r, j6)(_[1], f);if (t === "horizontal") {var O = c.scale.map(_[0]), k = c.scale.map(_[1]);if (O == null || k == null) return null;- x = eW({+ x = vG({axis: s,ticks: l,bandSize: o,@@ -71330,19 +74080,19 @@ function rVe(e) {index: f}), S = k ?? O ?? void 0, C = a.size;var A = O - k;- if (w = FB(A) ? 0 : A, T = {+ if (w = $V(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 = PB(w || D) * (Math.abs(D) - Math.abs(w));+ var j = QV(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 = eW({+ if (x = M, S = vG({axis: c,ticks: u,bandSize: o,@@ -71355,11 +74105,11 @@ function rVe(e) {width: p.width,height: w}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {- var P = PB(C || D) * (Math.abs(D) - Math.abs(C));+ var P = QV(C || D) * (Math.abs(D) - Math.abs(C));C += P;}}- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : l3(l3({}, e), {}, {+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : k6(k6({}, e), {}, {stackedBarStart: b,x,y: S,@@ -71377,12 +74127,12 @@ function rVe(e) {}, m && m[f] && m[f].props);}).filter(Boolean);}-function iVe(e) {- var t = nV(e, tVe), n = NBe(t.stackId), r = gW();- return /*#__PURE__*/ B.createElement(J0, {+function bHe(e) {+ var t = bH(e, _He), n = YVe(t.stackId), r = PG();+ return /*#__PURE__*/ B.createElement(m4, {id: t.id,type: "bar"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(K0, { legendPayload: WBe(t) }), /*#__PURE__*/ B.createElement(GBe, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(f4, { legendPayload: oHe(t) }), /*#__PURE__*/ B.createElement(sHe, {dataKey: t.dataKey,stroke: t.stroke,strokeWidth: t.strokeWidth,@@ -71392,7 +74142,7 @@ function iVe(e) {unit: t.unit,tooltipType: t.tooltipType,id: e- }), /*#__PURE__*/ B.createElement(X0, {+ }), /*#__PURE__*/ B.createElement(g4, {type: "bar",id: e,data: void 0,@@ -71407,23 +74157,23 @@ function iVe(e) {maxBarSize: t.maxBarSize,isPanorama: r,hasCustomShape: t.shape != null- }), /*#__PURE__*/ B.createElement(j$, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(nVe, s3({}, t, { id: e })))));+ }), /*#__PURE__*/ B.createElement(Z1, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(vHe, D6({}, t, { id: e })))));}-var f3 = /*#__PURE__*/ B.memo(iVe, NG);-f3.displayName = "Bar";+var M6 = /*#__PURE__*/ B.memo(bHe, ZK);+M6.displayName = "Bar";//#endregion//#region node_modules/recharts/es6/util/axisPropsAreEqual.js-var aVe = ["domain", "range"], oVe = ["domain", "range"];-function p3(e, t) {+var xHe = ["domain", "range"], SHe = ["domain", "range"];+function N6(e, t) {if (e == null) return {};- var n, r, i = sVe(e, t);+ var n, r, i = CHe(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 sVe(e, t) {+function CHe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -71432,31 +74182,31 @@ function sVe(e, t) {}return n;}-function m3(e, t) {+function P6(e, t) {return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;}-function h3(e, t) {+function F6(e, t) {if (e === t) return !0;- var { domain: n, range: r } = e, i = p3(e, aVe), { domain: a, range: o } = t, s = p3(t, oVe);- return !m3(n, a) || !m3(r, o) ? !1 : NG(i, s);+ var { domain: n, range: r } = e, i = N6(e, xHe), { domain: a, range: o } = t, s = N6(t, SHe);+ return !P6(n, a) || !P6(r, o) ? !1 : ZK(i, s);}//#endregion//#region node_modules/recharts/es6/cartesian/XAxis.js-var cVe = ["type"], lVe = [+var wHe = ["type"], THe = ["dangerouslySetInnerHTML","ticks","scale"-], uVe = ["id", "scale"];-function g3() {- return g3 = Object.assign ? Object.assign.bind() : function(e) {+], EHe = ["id", "scale"];+function I6() {+ return I6 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, g3.apply(null, arguments);+ }, I6.apply(null, arguments);}-function _3(e, t) {+function L6(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -71466,30 +74216,30 @@ function _3(e, t) {}return n;}-function v3(e) {+function R6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? _3(Object(n), !0).forEach(function(t) {- dVe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _3(Object(n)).forEach(function(t) {+ t % 2 ? L6(Object(n), !0).forEach(function(t) {+ DHe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function dVe(e, t, n) {- return (t = fVe(t)) in e ? Object.defineProperty(e, t, {+function DHe(e, t, n) {+ return (t = OHe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function fVe(e) {- var t = pVe(e, "string");+function OHe(e) {+ var t = kHe(e, "string");return typeof t == "symbol" ? t : t + "";}-function pVe(e, t) {+function kHe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -71499,16 +74249,16 @@ function pVe(e, t) {}return (t === "string" ? String : Number)(e);}-function y3(e, t) {+function z6(e, t) {if (e == null) return {};- var n, r, i = mVe(e, t);+ var n, r, i = AHe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function mVe(e, t) {+function AHe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -71517,24 +74267,24 @@ function mVe(e, t) {}return n;}-function hVe(e) {- var t = kV(), n = (0, B.useRef)(null), r = IW(), { type: i } = e, a = y3(e, cVe), o = xq(r, "xAxis", i), s = (0, B.useMemo)(() => {- if (o != null) return v3(v3({}, a), {}, { type: o });+function jHe(e) {+ var t = qH(), n = (0, B.useRef)(null), r = eK(), { type: i } = e, a = z6(e, wHe), o = zJ(r, "xAxis", i), s = (0, B.useMemo)(() => {+ if (o != null) return R6(R6({}, a), {}, { type: o });}, [a, o]);return (0, B.useLayoutEffect)(() => {- s != null && (n.current === null ? t(jIe(s)) : n.current !== s && t(MIe({+ s != null && (n.current === null ? t(qLe(s)) : n.current !== s && t(JLe({prev: n.current,next: s})), n.current = s);}, [s, t]), (0, B.useLayoutEffect)(() => () => {- n.current &&= (t(NIe(n.current)), null);+ n.current &&= (t(YLe(n.current)), null);}, [t]), null;}-var gVe = (e) => {- var { xAxisId: t, className: n } = e, r = Q(hW), i = gW(), a = "xAxis", o = Q((e) => xQ(e, a, t, i)), s = Q((e) => mQ(e, t)), c = Q((e) => Lje(e, t)), l = Q((e) => cZ(e, t));+var MHe = (e) => {+ var { xAxisId: t, className: n } = e, r = Q(NG), i = PG(), a = "xAxis", o = Q((e) => V$(e, a, t, i)), s = Q((e) => P$(e, t)), c = Q((e) => $Me(e, t)), l = Q((e) => OQ(e, t));if (s == null || c == null || l == null) return null;- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = y3(e, lVe), { id: m, scale: h } = l, g = y3(l, uVe);- return /*#__PURE__*/ B.createElement(h4, g3({}, p, g, {+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = z6(e, THe), { id: m, scale: h } = l, g = z6(l, EHe);+ return /*#__PURE__*/ B.createElement(F3, I6({}, p, g, {x: c.x,y: c.y,width: s.width,@@ -71545,33 +74295,33 @@ var gVe = (e) => {axisType: a,axisId: t}));-}, _Ve = {- allowDataOverflow: sZ.allowDataOverflow,- allowDecimals: sZ.allowDecimals,- allowDuplicatedCategory: sZ.allowDuplicatedCategory,- angle: sZ.angle,- axisLine: m4.axisLine,- height: sZ.height,+}, NHe = {+ allowDataOverflow: DQ.allowDataOverflow,+ allowDecimals: DQ.allowDecimals,+ allowDuplicatedCategory: DQ.allowDuplicatedCategory,+ angle: DQ.angle,+ axisLine: P3.axisLine,+ height: DQ.height,hide: !1,- includeHidden: sZ.includeHidden,- interval: sZ.interval,+ includeHidden: DQ.includeHidden,+ interval: DQ.interval,label: !1,- minTickGap: sZ.minTickGap,- mirror: sZ.mirror,- orientation: sZ.orientation,- padding: sZ.padding,- reversed: sZ.reversed,- scale: sZ.scale,- tick: sZ.tick,- tickCount: sZ.tickCount,- tickLine: m4.tickLine,- tickSize: m4.tickSize,- type: sZ.type,- niceTicks: sZ.niceTicks,+ minTickGap: DQ.minTickGap,+ mirror: DQ.mirror,+ orientation: DQ.orientation,+ padding: DQ.padding,+ reversed: DQ.reversed,+ scale: DQ.scale,+ tick: DQ.tick,+ tickCount: DQ.tickCount,+ tickLine: P3.tickLine,+ tickSize: P3.tickSize,+ type: DQ.type,+ niceTicks: DQ.niceTicks,xAxisId: 0-}, b3 = /*#__PURE__*/ B.memo((e) => {- var t = nV(e, _Ve);- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(hVe, {+}, B6 = /*#__PURE__*/ B.memo((e) => {+ var t = bH(e, NHe);+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(jHe, {allowDataOverflow: t.allowDataOverflow,allowDecimals: t.allowDecimals,allowDuplicatedCategory: t.allowDuplicatedCategory,@@ -71597,26 +74347,26 @@ var gVe = (e) => {type: t.type,unit: t.unit,niceTicks: t.niceTicks- }), /*#__PURE__*/ B.createElement(gVe, t));-}, h3);-b3.displayName = "XAxis";+ }), /*#__PURE__*/ B.createElement(MHe, t));+}, F6);+B6.displayName = "XAxis";//#endregion//#region node_modules/recharts/es6/cartesian/YAxis.js-var vVe = ["type"], yVe = [+var PHe = ["type"], FHe = ["dangerouslySetInnerHTML","ticks","scale"-], bVe = ["id", "scale"];-function x3() {- return x3 = Object.assign ? Object.assign.bind() : function(e) {+], IHe = ["id", "scale"];+function V6() {+ return V6 = 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;- }, x3.apply(null, arguments);+ }, V6.apply(null, arguments);}-function S3(e, t) {+function H6(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -71626,30 +74376,30 @@ function S3(e, t) {}return n;}-function C3(e) {+function U6(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? S3(Object(n), !0).forEach(function(t) {- xVe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S3(Object(n)).forEach(function(t) {+ t % 2 ? H6(Object(n), !0).forEach(function(t) {+ LHe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H6(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function xVe(e, t, n) {- return (t = SVe(t)) in e ? Object.defineProperty(e, t, {+function LHe(e, t, n) {+ return (t = RHe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function SVe(e) {- var t = CVe(e, "string");+function RHe(e) {+ var t = zHe(e, "string");return typeof t == "symbol" ? t : t + "";}-function CVe(e, t) {+function zHe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -71659,16 +74409,16 @@ function CVe(e, t) {}return (t === "string" ? String : Number)(e);}-function w3(e, t) {+function W6(e, t) {if (e == null) return {};- var n, r, i = wVe(e, t);+ var n, r, i = BHe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function wVe(e, t) {+function BHe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -71677,27 +74427,27 @@ function wVe(e, t) {}return n;}-function TVe(e) {- var t = kV(), n = (0, B.useRef)(null), r = IW(), { type: i } = e, a = w3(e, vVe), o = xq(r, "yAxis", i), s = (0, B.useMemo)(() => {- if (o != null) return C3(C3({}, a), {}, { type: o });+function VHe(e) {+ var t = qH(), n = (0, B.useRef)(null), r = eK(), { type: i } = e, a = W6(e, PHe), o = zJ(r, "yAxis", i), s = (0, B.useMemo)(() => {+ if (o != null) return U6(U6({}, a), {}, { type: o });}, [o, a]);return (0, B.useLayoutEffect)(() => {- s != null && (n.current === null ? t(PIe(s)) : n.current !== s && t(FIe({+ s != null && (n.current === null ? t(XLe(s)) : n.current !== s && t(ZLe({prev: n.current,next: s})), n.current = s);}, [s, t]), (0, B.useLayoutEffect)(() => () => {- n.current &&= (t(IIe(n.current)), null);+ n.current &&= (t(QLe(n.current)), null);}, [t]), null;}-function EVe(e) {- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(hW), c = gW(), l = kV(), u = "yAxis", d = Q((e) => hQ(e, t)), f = Q((e) => Rje(e, t)), p = Q((e) => xQ(e, u, t, c)), m = Q((e) => dZ(e, t));+function HHe(e) {+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(NG), c = PG(), l = qH(), u = "yAxis", d = Q((e) => F$(e, t)), f = Q((e) => eNe(e, t)), p = Q((e) => V$(e, u, t, c)), m = Q((e) => jQ(e, t));if ((0, B.useLayoutEffect)(() => {- if (!(r !== "auto" || !d || j1(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {+ if (!(r !== "auto" || !d || Z0(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {var e = a.current;if (e) {var n = e.getCalculatedWidth();- Math.round(d.width) !== Math.round(n) && l(BIe({+ Math.round(d.width) !== Math.round(n) && l(nRe({id: t,width: n}));@@ -71712,8 +74462,8 @@ function EVe(e) {r,m]), d == null || f == null || m == null) return null;- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = w3(e, yVe), { id: y, scale: b } = m, x = w3(m, bVe);- return /*#__PURE__*/ B.createElement(h4, x3({}, v, x, {+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = W6(e, FHe), { id: y, scale: b } = m, x = W6(m, IHe);+ return /*#__PURE__*/ B.createElement(F3, V6({}, v, x, {ref: a,labelRef: o,x: f.x,@@ -71728,33 +74478,33 @@ function EVe(e) {axisId: t}));}-var DVe = {- allowDataOverflow: uZ.allowDataOverflow,- allowDecimals: uZ.allowDecimals,- allowDuplicatedCategory: uZ.allowDuplicatedCategory,- angle: uZ.angle,- axisLine: m4.axisLine,+var UHe = {+ allowDataOverflow: AQ.allowDataOverflow,+ allowDecimals: AQ.allowDecimals,+ allowDuplicatedCategory: AQ.allowDuplicatedCategory,+ angle: AQ.angle,+ axisLine: P3.axisLine,hide: !1,- includeHidden: uZ.includeHidden,- interval: uZ.interval,+ includeHidden: AQ.includeHidden,+ interval: AQ.interval,label: !1,- minTickGap: uZ.minTickGap,- mirror: uZ.mirror,- orientation: uZ.orientation,- padding: uZ.padding,- reversed: uZ.reversed,- scale: uZ.scale,- tick: uZ.tick,- tickCount: uZ.tickCount,- tickLine: m4.tickLine,- tickSize: m4.tickSize,- type: uZ.type,- niceTicks: uZ.niceTicks,- width: uZ.width,+ minTickGap: AQ.minTickGap,+ mirror: AQ.mirror,+ orientation: AQ.orientation,+ padding: AQ.padding,+ reversed: AQ.reversed,+ scale: AQ.scale,+ tick: AQ.tick,+ tickCount: AQ.tickCount,+ tickLine: P3.tickLine,+ tickSize: P3.tickSize,+ type: AQ.type,+ niceTicks: AQ.niceTicks,+ width: AQ.width,yAxisId: 0-}, T3 = /*#__PURE__*/ B.memo((e) => {- var t = nV(e, DVe);- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(TVe, {+}, G6 = /*#__PURE__*/ B.memo((e) => {+ var t = bH(e, UHe);+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(VHe, {interval: t.interval,id: t.yAxisId,scale: t.scale,@@ -71780,27 +74530,27 @@ var DVe = {tick: t.tick,tickFormatter: t.tickFormatter,niceTicks: t.niceTicks- }), /*#__PURE__*/ B.createElement(EVe, t));-}, h3);-T3.displayName = "YAxis";-var E3 = $([+ }), /*#__PURE__*/ B.createElement(HHe, t));+}, F6);+G6.displayName = "YAxis";+var K6 = $([(e, t) => t,- PW,- Pq,- Hq,- r$,- a$,- PMe,- mW-], VMe);+ QG,+ QJ,+ oY,+ C1,+ T1,+ XNe,+ MG+], rPe);//#endregion//#region node_modules/recharts/es6/util/getRelativeCoordinate.js-function OVe(e) {+function WHe(e) {return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";}-function D3(e) {+function q6(e) {var t = e.currentTarget.getBoundingClientRect(), n, r;- if (OVe(e)) {+ if (WHe(e)) {var i = e.currentTarget.getBBox();n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;} else {@@ -71815,55 +74565,55 @@ function D3(e) {}//#endregion//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js-var O3 = aU("mouseClick"), k3 = zU();-k3.startListening({- actionCreator: O3,+var J6 = CW("mouseClick"), Y6 = rG();+Y6.startListening({+ actionCreator: J6,effect: (e, t) => {- var n = e.payload, r = E3(t.getState(), D3(n));- r?.activeIndex != null && t.dispatch(Jje({+ var n = e.payload, r = K6(t.getState(), q6(n));+ r?.activeIndex != null && t.dispatch(uNe({activeIndex: r.activeIndex,activeDataKey: void 0,activeCoordinate: r.activeCoordinate}));}});-var A3 = aU("mouseMove"), j3 = zU(), M3 = null, N3 = null, P3 = null;-j3.startListening({- actionCreator: A3,+var X6 = CW("mouseMove"), Z6 = rG(), Q6 = null, $6 = null, e8 = null;+Z6.startListening({+ actionCreator: X6,effect: (e, t) => {var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");- M3 !== null && (cancelAnimationFrame(M3), M3 = null), N3 !== null && (typeof r != "number" || !a) && (clearTimeout(N3), N3 = null), P3 = D3(n);+ Q6 !== null && (cancelAnimationFrame(Q6), Q6 = null), $6 !== null && (typeof r != "number" || !a) && (clearTimeout($6), $6 = null), e8 = q6(n);var o = () => {- var e = t.getState(), n = OQ(e, e.tooltip.settings.shared);- if (!P3) {- M3 = null, N3 = null;+ var e = t.getState(), n = J$(e, e.tooltip.settings.shared);+ if (!e8) {+ Q6 = null, $6 = null;return;}if (n === "axis") {- var r = E3(e, P3);- r?.activeIndex == null ? t.dispatch(NQ()) : t.dispatch(PQ({+ var r = K6(e, e8);+ r?.activeIndex == null ? t.dispatch($$()) : t.dispatch(e1({activeIndex: r.activeIndex,activeDataKey: void 0,activeCoordinate: r.activeCoordinate}));}- M3 = null, N3 = null;+ Q6 = null, $6 = null;};if (!a) {o();return;}- r === "raf" ? M3 = requestAnimationFrame(o) : typeof r == "number" && N3 === null && (N3 = setTimeout(o, r));+ r === "raf" ? Q6 = requestAnimationFrame(o) : typeof r == "number" && $6 === null && ($6 = setTimeout(o, r));}});//#endregion//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js-function kVe(e, t) {+function GHe(e, t) {return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;}//#endregion//#region node_modules/recharts/es6/state/rootPropsSlice.js-var F3 = {+var t8 = {accessibilityLayer: !0,barCategoryGap: "10%",barGap: 4,@@ -71875,9672 +74625,6825 @@ var F3 = {syncMethod: "index",baseValue: void 0,reverseStackOrder: !1-}, I3 = mU({+}, n8 = MW({name: "rootProps",- initialState: F3,+ initialState: t8,reducers: { updateOptions: (e, t) => {- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? F3.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? t8.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;} }-}), AVe = I3.reducer, { updateOptions: jVe } = I3.actions, L3 = mU({+}), KHe = n8.reducer, { updateOptions: qHe } = n8.actions, r8 = MW({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: MVe } = L3.actions, NVe = L3.reducer, R3 = aU("keyDown"), z3 = aU("focus"), B3 = aU("blur"), V3 = zU(), H3 = null, U3 = null, W3 = null;-V3.startListening({- actionCreator: R3,+}), { updatePolarOptions: JHe } = r8.actions, YHe = r8.reducer, i8 = CW("keyDown"), a8 = CW("focus"), o8 = CW("blur"), s8 = rG(), c8 = null, l8 = null, u8 = null;+s8.startListening({+ actionCreator: i8,effect: (e, t) => {- W3 = e.payload, H3 !== null && (cancelAnimationFrame(H3), H3 = null);+ u8 = e.payload, c8 !== null && (cancelAnimationFrame(c8), c8 = null);var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");- U3 !== null && (typeof n != "number" || !i) && (clearTimeout(U3), U3 = null);+ l8 !== null && (typeof n != "number" || !i) && (clearTimeout(l8), l8 = null);var a = () => {try {var e = t.getState();if (e.rootProps.accessibilityLayer === !1) return;- var { keyboardInteraction: n } = e.tooltip, r = W3;+ var { keyboardInteraction: n } = e.tooltip, r = u8;if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;- var i = BQ(n, ZQ(e), NZ(e), t$(e)), a = i == null ? -1 : Number(i);+ var i = o1(n, _1(e), $Q(e), x1(e)), a = i == null ? -1 : Number(i);if (!Number.isFinite(a) || a < 0) return;- var o = a$(e);+ var o = T1(e);if (r === "Enter") {- var s = E$(e, "axis", "hover", String(n.index));- t.dispatch(IQ({+ var s = K1(e, "axis", "hover", String(n.index));+ t.dispatch(n1({active: !n.active,activeIndex: n.index,activeCoordinate: s}));return;}- var c = zje(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;+ var c = tNe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;if (o == null || l >= o.length || l < 0) return;- var u = E$(e, "axis", "hover", String(l));- t.dispatch(IQ({+ var u = K1(e, "axis", "hover", String(l));+ t.dispatch(n1({active: !0,activeIndex: l.toString(),activeCoordinate: u}));} finally {- H3 = null, U3 = null;+ c8 = null, l8 = null;}};if (!i) {a();return;}- n === "raf" ? H3 = requestAnimationFrame(a) : typeof n == "number" && U3 === null && (a(), W3 = null, U3 = setTimeout(() => {- W3 ? a() : (U3 = null, H3 = null);+ n === "raf" ? c8 = requestAnimationFrame(a) : typeof n == "number" && l8 === null && (a(), u8 = null, l8 = setTimeout(() => {+ u8 ? a() : (l8 = null, c8 = null);}, n));}-}), V3.startListening({- actionCreator: z3,- effect: (e, t) => {- var n = t.getState();- if (n.rootProps.accessibilityLayer !== !1) {- var { keyboardInteraction: r } = n.tooltip;- if (!r.active && r.index == null) {- var i = "0", a = E$(n, "axis", "hover", String(i));- t.dispatch(IQ({- active: !0,- activeIndex: i,- activeCoordinate: a- }));- }- }- }-}), V3.startListening({- actionCreator: B3,- effect: (e, t) => {- var n = t.getState();- if (n.rootProps.accessibilityLayer !== !1) {- var { keyboardInteraction: r } = n.tooltip;- r.active && t.dispatch(IQ({- active: !1,- activeIndex: r.index,- activeCoordinate: r.coordinate- }));- }- }-});-//#endregion-//#region node_modules/recharts/es6/util/createEventProxy.js-function G3(e) {- e.persist();- var { currentTarget: t } = e;- return new Proxy(e, { get: (e, n) => {- if (n === "currentTarget") return t;- var r = Reflect.get(e, n);- return typeof r == "function" ? r.bind(e) : r;- } });-}-//#endregion-//#region node_modules/recharts/es6/state/externalEventsMiddleware.js-var K3 = aU("externalEvent"), q3 = zU(), J3 = /* @__PURE__ */ new Map(), Y3 = /* @__PURE__ */ new Map(), X3 = /* @__PURE__ */ new Map();-q3.startListening({- actionCreator: K3,- effect: (e, t) => {- var { handler: n, reactEvent: r } = e.payload;- if (n != null) {- var i = r.type, a = G3(r);- X3.set(i, {- handler: n,- reactEvent: a- });- var o = J3.get(i);- o !== void 0 && (cancelAnimationFrame(o), J3.delete(i));- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = Y3.get(i);- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), Y3.delete(i));- var f = () => {- var e = X3.get(i);- try {- if (!e) return;- var { handler: n, reactEvent: r } = e, a = t.getState(), o = {- activeCoordinate: bMe(a),- activeDataKey: f$(a),- activeIndex: u$(a),- activeLabel: d$(a),- activeTooltipIndex: u$(a),- isTooltipActive: xMe(a)- };- n && n(o, r);- } finally {- J3.delete(i), Y3.delete(i), X3.delete(i);- }- };- if (!u) {- f();- return;- }- if (s === "raf") {- var p = requestAnimationFrame(f);- J3.set(i, p);- } else if (typeof s == "number") {- if (!Y3.has(i)) {- f();- var m = setTimeout(f, s);- Y3.set(i, m);- }- } else f();- }- }-});-var PVe = $([- $([WQ], (e) => e.tooltipItemPayloads),- (e, t) => t,- (e, t, n) => n-], (e, t, n) => {- if (t != null) {- var r = e.find((e) => e.settings.graphicalItemId === n);- if (r != null) {- var { getPosition: i } = r;- if (i != null) return i(t);- }- }-}), Z3 = aU("touchMove"), Q3 = zU(), $3 = null, e6 = null, t6 = null, n6 = null;-Q3.startListening({- actionCreator: Z3,- effect: (e, t) => {- var n = e.payload;- if (n.touches != null && n.touches.length !== 0) {- n6 = G3(n);- var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");- $3 !== null && (cancelAnimationFrame($3), $3 = null), e6 !== null && (typeof r != "number" || !a) && (clearTimeout(e6), e6 = null), t6 = Array.from(n.touches).map((e) => D3({- clientX: e.clientX,- clientY: e.clientY,- currentTarget: n.currentTarget- }));- var o = () => {- if (n6 != null) {- var e = t.getState(), n = OQ(e, e.tooltip.settings.shared);- if (n === "axis") {- var r = t6?.[0];- if (r == null) {- $3 = null, e6 = null;- return;- }- var i = E3(e, r);- i?.activeIndex != null && t.dispatch(PQ({- activeIndex: i.activeIndex,- activeDataKey: void 0,- activeCoordinate: i.activeCoordinate- }));- } else if (n === "item") {- var a = n6.touches[0];- if (document.elementFromPoint == null || a == null) return;- var o = document.elementFromPoint(a.clientX, a.clientY);- if (!o || !o.getAttribute) return;- var s = o.getAttribute(fTe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = XQ(e).find((e) => e.id === c);- if (s == null || l == null || c == null) return;- var { dataKey: u } = l, d = PVe(e, s, c);- t.dispatch(MQ({- activeDataKey: u,- activeIndex: s,- activeCoordinate: d,- activeGraphicalItemId: c- }));- }- $3 = null, e6 = null;- }- };- if (!a) {- o();- return;- }- r === "raf" ? $3 = requestAnimationFrame(o) : typeof r == "number" && e6 === null && (o(), n6 = null, e6 = setTimeout(() => {- n6 ? o() : (e6 = null, $3 = null);- }, r));- }- }-});-//#endregion-//#region node_modules/recharts/es6/state/eventSettingsSlice.js-var r6 = {- throttleDelay: "raf",- throttledEvents: [- "mousemove",- "touchmove",- "pointermove",- "scroll",- "wheel"- ]-}, i6 = mU({- name: "eventSettings",- initialState: r6,- reducers: { setEventSettings: (e, t) => {- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = TG(t.payload.throttledEvents));- } }-}), { setEventSettings: FVe } = i6.actions, IVe = i6.reducer, LVe = qV({- brush: eRe,- cartesianAxis: VIe,- chartData: mNe,- errorBars: yze,- eventSettings: IVe,- graphicalItems: _Ie,- layout: $we,- legend: ZTe,- options: lNe,- polarAxis: sFe,- polarOptions: NVe,- referenceElements: dRe,- renderedTicks: zRe,- rootProps: AVe,- tooltip: Yje,- zIndex: eNe-}), RVe = function(e) {- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";- return Twe({- reducer: LVe,- preloadedState: e,- middleware: (e) => e({- serializableCheck: !1,- immutableCheck: ![- "commonjs",- "es6",- "production"- ].includes("es6")- }).concat([- k3.middleware,- j3.middleware,- V3.middleware,- q3.middleware,- Q3.middleware- ]),- enhancers: (e) => {- var t = e;- return typeof e == "function" && (t = e()), t.concat(fU({ type: "raf" }));- },- devTools: WG.devToolsEnabled && {- serialize: { replacer: kVe },- name: `recharts-${t}`- }- });-};-//#endregion-//#region node_modules/recharts/es6/state/RechartsStoreProvider.js-function a6(e) {- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = gW(), a = (0, B.useRef)(null);- if (i) return n;- a.current ??= RVe(t, r);- var o = OV;- return /*#__PURE__*/ B.createElement(dEe, {- context: o,- store: a.current- }, n);-}-//#endregion-//#region node_modules/recharts/es6/state/ReportMainChartProps.js-function zVe(e) {- var { layout: t, margin: n } = e, r = kV(), i = gW();- return (0, B.useEffect)(() => {- i || (r(Xwe(t)), r(Ywe(n)));- }, [- r,- i,- t,- n- ]), null;-}-var o6 = /*#__PURE__*/ (0, B.memo)(zVe, NG);-//#endregion-//#region node_modules/recharts/es6/state/ReportChartProps.js-function s6(e) {- var t = kV();- return (0, B.useEffect)(() => {- t(jVe(e));- }, [t, e]), null;-}-var c6 = /*#__PURE__*/ (0, B.memo)((e) => {- var t = kV();- return (0, B.useEffect)(() => {- t(FVe(e));- }, [t, e]), null;-}, NG);-//#endregion-//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js-function l6(e) {- var { zIndex: t, isPanorama: n } = e, r = (0, B.useRef)(null), i = kV();- return (0, B.useLayoutEffect)(() => (r.current && i(QMe({- zIndex: t,- element: r.current,- isPanorama: n- })), () => {- i($Me({- zIndex: t,- isPanorama: n- }));- }), [- i,- t,- n- ]), /*#__PURE__*/ B.createElement("g", {- tabIndex: -1,- ref: r,- className: `recharts-zIndex-layer_${t}`- });-}-function u6(e) {- var { children: t, isPanorama: n } = e, r = Q(UMe);- if (!r || r.length === 0) return t;- var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);- return /*#__PURE__*/ B.createElement(B.Fragment, null, i.map((e) => /*#__PURE__*/ B.createElement(l6, {- key: e,- zIndex: e,- isPanorama: n- })), t, a.map((e) => /*#__PURE__*/ B.createElement(l6, {- key: e,- zIndex: e,- isPanorama: n- })));-}-//#endregion-//#region node_modules/recharts/es6/container/RootSurface.js-var BVe = ["children"];-function VVe(e, t) {- if (e == null) return {};- var n, r, i = HVe(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 HVe(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];- }- return n;-}-function d6() {- return d6 = Object.assign ? Object.assign.bind() : function(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t];- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);- }- return e;- }, d6.apply(null, arguments);-}-var UVe = {- width: "100%",- height: "100%",- display: "block"-}, WVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = MW(), r = NW(), i = JG();- if (!WU(n) || !WU(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(Az, d6({}, o, {- title: s,- desc: c,- role: u,- tabIndex: l,- width: n,- height: r,- style: UVe,- ref: t- }), a);-}), GVe = (e) => {- var { children: t } = e, n = Q(vW);- if (!n) return null;- var { width: r, height: i, y: a, x: o } = n;- return /*#__PURE__*/ B.createElement(Az, {- width: r,- height: i,- x: o,- y: a- }, t);-}, f6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { children: n } = e, r = VVe(e, BVe);- return gW() ? /*#__PURE__*/ B.createElement(GVe, null, /*#__PURE__*/ B.createElement(u6, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(WVe, d6({ ref: t }, r), /*#__PURE__*/ B.createElement(u6, { isPanorama: !1 }, n));-});-//#endregion-//#region node_modules/recharts/es6/util/useReportScale.js-function KVe() {- var e = kV(), [t, n] = (0, B.useState)(null), r = Q(dTe);- return (0, B.useEffect)(() => {- if (t != null) {- var n = t.getBoundingClientRect().width / t.offsetWidth;- UU(n) && n !== r && e(Qwe(n));- }- }, [- t,- e,- r- ]), n;-}-//#endregion-//#region node_modules/recharts/es6/chart/RechartsWrapper.js-function p6(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function qVe(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? p6(Object(n), !0).forEach(function(t) {- JVe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p6(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function JVe(e, t, n) {- return (t = YVe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function YVe(e) {- var t = XVe(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function XVe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-function m6() {- return m6 = 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;- }, m6.apply(null, arguments);-}-var ZVe = () => (CNe(), null);-function h6(e) {- if (typeof e == "number") return e;- if (typeof e == "string") {- var t = parseFloat(e);- if (!Number.isNaN(t)) return t;- }- return 0;-}-var QVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = (0, B.useRef)(null), [r, i] = (0, B.useState)({- containerWidth: h6(e.style?.width),- containerHeight: h6(e.style?.height)- }), a = (0, B.useCallback)((e, t) => {- i((n) => {- var r = Math.round(e), i = Math.round(t);- return n.containerWidth === r && n.containerHeight === i ? n : {- containerWidth: r,- containerHeight: i- };- });- }, []), o = (0, B.useCallback)((e) => {- if (typeof t == "function" && t(e), e != null && typeof ResizeObserver < "u") {- var { width: r, height: i } = e.getBoundingClientRect();- a(r, i);- var o = new ResizeObserver((e) => {- var t = e[0];- if (t != null) {- var { width: n, height: r } = t.contentRect;- a(n, r);- }- });- o.observe(e), n.current = o;- }- }, [t, a]);- return (0, B.useEffect)(() => () => {- n.current?.disconnect();- }, [a]), /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zW, {- width: r.containerWidth,- height: r.containerHeight- }), /*#__PURE__*/ B.createElement("div", m6({ ref: o }, e)));-}), $Ve = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { width: n, height: r } = e, [i, a] = (0, B.useState)({- containerWidth: h6(n),- containerHeight: h6(r)- }), o = (0, B.useCallback)((e, t) => {- a((n) => {- var r = Math.round(e), i = Math.round(t);- return n.containerWidth === r && n.containerHeight === i ? n : {- containerWidth: r,- containerHeight: i- };- });- }, []), s = (0, B.useCallback)((e) => {- if (typeof t == "function" && t(e), e != null) {- var { width: n, height: r } = e.getBoundingClientRect();- o(n, r);- }- }, [t, o]);- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zW, {- width: i.containerWidth,- height: i.containerHeight- }), /*#__PURE__*/ B.createElement("div", m6({ ref: s }, e)));-}), eHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { width: n, height: r } = e;- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zW, {- width: n,- height: r- }), /*#__PURE__*/ B.createElement("div", m6({ ref: t }, e)));-}), tHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { width: n, height: r } = e;- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement($Ve, m6({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(eHe, m6({}, e, {- width: n,- height: r,- ref: t- })) : /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zW, {- width: n,- height: r- }), /*#__PURE__*/ B.createElement("div", m6({ ref: t }, e)));-});-function nHe(e) {- return e ? QVe : tHe;-}-var rHe = /*#__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 = kV(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = KVe(), D = DW(), 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,- t,- C,- T- ]), j = (0, B.useCallback)((e) => {- x(O3(e)), x(K3({- handler: a,- reactEvent: e- }));- }, [x, a]), M = (0, B.useCallback)((e) => {- x(A3(e)), x(K3({- handler: l,- reactEvent: e- }));- }, [x, l]), N = (0, B.useCallback)((e) => {- x(NQ()), x(K3({- handler: u,- reactEvent: e- }));- }, [x, u]), P = (0, B.useCallback)((e) => {- x(A3(e)), x(K3({- handler: d,- reactEvent: e- }));- }, [x, d]), ee = (0, B.useCallback)(() => {- x(z3());- }, [x]), F = (0, B.useCallback)(() => {- x(B3());- }, [x]), I = (0, B.useCallback)((e) => {- x(R3(e.key));- }, [x]), te = (0, B.useCallback)((e) => {- x(K3({- handler: o,- reactEvent: e- }));- }, [x, o]), ne = (0, B.useCallback)((e) => {- x(K3({- handler: s,- reactEvent: e- }));- }, [x, s]), re = (0, B.useCallback)((e) => {- x(K3({- handler: c,- reactEvent: e- }));- }, [x, c]), ie = (0, B.useCallback)((e) => {- x(K3({- handler: f,- reactEvent: e- }));- }, [x, f]), ae = (0, B.useCallback)((e) => {- x(K3({- handler: h,- reactEvent: e- }));- }, [x, h]), oe = (0, B.useCallback)((e) => {- y && x(Z3(e)), x(K3({- handler: m,- reactEvent: e- }));- }, [- x,- y,- m- ]), se = (0, B.useCallback)((e) => {- x(K3({- handler: p,- reactEvent: e- }));- }, [x, p]), ce = nHe(v);- return /*#__PURE__*/ B.createElement(F$.Provider, { value: S }, /*#__PURE__*/ B.createElement(Nz.Provider, { value: w }, /*#__PURE__*/ B.createElement(ce, {- width: O ?? g?.width,- height: k ?? g?.height,- className: _h("recharts-wrapper", r),- style: qVe({- position: "relative",- cursor: "default",- width: O,- height: k- }, g),- onClick: j,- onContextMenu: te,- onDoubleClick: ne,- onFocus: ee,- onBlur: F,- onKeyDown: I,- onMouseDown: re,- onMouseEnter: M,- onMouseLeave: N,- onMouseMove: P,- onMouseUp: ie,- onTouchEnd: se,- onTouchMove: oe,- onTouchStart: ae,- ref: A- }, /*#__PURE__*/ B.createElement(ZVe, null), n)));-}), iHe = [- "width",- "height",- "responsive",- "children",- "className",- "style",- "compact",- "title",- "desc"-];-function aHe(e, t) {- if (e == null) return {};- var n, r, i = oHe(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 oHe(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];- }- return n;-}-var g6 = /*#__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 = Ez(aHe(e, iHe));- return c ? /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zW, {- width: n,- height: r- }), /*#__PURE__*/ B.createElement(f6, {- otherAttributes: d,- title: l,- desc: u- }, a)) : /*#__PURE__*/ B.createElement(rHe, {- className: o,- style: s,- width: n,- height: r,- responsive: i ?? !1,- onClick: e.onClick,- onMouseLeave: e.onMouseLeave,- onMouseEnter: e.onMouseEnter,- onMouseMove: e.onMouseMove,- onMouseDown: e.onMouseDown,- onMouseUp: e.onMouseUp,- onContextMenu: e.onContextMenu,- onDoubleClick: e.onDoubleClick,- onTouchStart: e.onTouchStart,- onTouchMove: e.onTouchMove,- onTouchEnd: e.onTouchEnd- }, /*#__PURE__*/ B.createElement(f6, {- otherAttributes: d,- title: l,- desc: u,- ref: t- }, /*#__PURE__*/ B.createElement(fRe, null, a)));-});-//#endregion-//#region node_modules/recharts/es6/chart/CartesianChart.js-function _6() {- return _6 = 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;- }, _6.apply(null, arguments);-}-function v6(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function sHe(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? v6(Object(n), !0).forEach(function(t) {- cHe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v6(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function cHe(e, t, n) {- return (t = lHe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function lHe(e) {- var t = uHe(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function uHe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-var dHe = sHe({- accessibilityLayer: !0,- barCategoryGap: "10%",- barGap: 4,- layout: "horizontal",- margin: {- top: 5,- right: 5,- bottom: 5,- left: 5- },- responsive: !1,- reverseStackOrder: !1,- stackOffset: "none",- syncMethod: "index"-}, r6), y6 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- var n = nV(e.categoricalChartProps, dHe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {- chartName: r,- defaultTooltipEventType: i,- validateTooltipEventTypes: a,- tooltipPayloadSearcher: o,- eventEmitter: void 0- };- return /*#__PURE__*/ B.createElement(a6, {- preloadedState: { options: c },- reduxStoreName: s.id ?? r- }, /*#__PURE__*/ B.createElement(X2, { chartData: s.data }), /*#__PURE__*/ B.createElement(o6, {- layout: n.layout,- margin: n.margin- }), /*#__PURE__*/ B.createElement(c6, {- throttleDelay: n.throttleDelay,- throttledEvents: n.throttledEvents- }), /*#__PURE__*/ B.createElement(s6, {- baseValue: n.baseValue,- accessibilityLayer: n.accessibilityLayer,- barCategoryGap: n.barCategoryGap,- maxBarSize: n.maxBarSize,- stackOffset: n.stackOffset,- barGap: n.barGap,- barSize: n.barSize,- syncId: n.syncId,- syncMethod: n.syncMethod,- className: n.className,- reverseStackOrder: n.reverseStackOrder- }), /*#__PURE__*/ B.createElement(g6, _6({}, n, { ref: t })));-}), fHe = ["axis"], pHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(y6, {- chartName: "LineChart",- defaultTooltipEventType: "axis",- validateTooltipEventTypes: fHe,- tooltipPayloadSearcher: z$,- categoricalChartProps: e,- ref: t-})), mHe = ["axis", "item"], b6 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(y6, {- chartName: "BarChart",- defaultTooltipEventType: "axis",- validateTooltipEventTypes: mHe,- tooltipPayloadSearcher: z$,- categoricalChartProps: e,- ref: t-}));-//#endregion-//#region node_modules/recharts/es6/state/ReportPolarOptions.js-function hHe(e) {- var t = kV();- return (0, B.useEffect)(() => {- t(MVe(e));- }, [t, e]), null;-}-//#endregion-//#region node_modules/recharts/es6/chart/PolarChart.js-var gHe = ["layout"];-function x6() {- return x6 = 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;- }, x6.apply(null, arguments);-}-function _He(e, t) {- if (e == null) return {};- var n, r, i = vHe(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 vHe(e, t) {- if (e == null) return {};- var n = {};- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {- if (t.indexOf(r) !== -1) continue;- n[r] = e[r];- }- return n;-}-function S6(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function yHe(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? S6(Object(n), !0).forEach(function(t) {- bHe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S6(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function bHe(e, t, n) {- return (t = xHe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function xHe(e) {- var t = SHe(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function SHe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-var C6 = yHe({- accessibilityLayer: !0,- stackOffset: "none",- barCategoryGap: "10%",- barGap: 4,- margin: {- top: 5,- right: 5,- bottom: 5,- left: 5- },- reverseStackOrder: !1,- syncMethod: "index",- layout: "radial",- responsive: !1,- cx: "50%",- cy: "50%",- innerRadius: 0,- outerRadius: "80%"-}, r6), w6 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- var n = nV(e.categoricalChartProps, C6), { layout: r } = n, i = _He(n, gHe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {- chartName: a,- defaultTooltipEventType: o,- validateTooltipEventTypes: s,- tooltipPayloadSearcher: c,- eventEmitter: void 0- };- return /*#__PURE__*/ B.createElement(a6, {- preloadedState: { options: l },- reduxStoreName: n.id ?? a- }, /*#__PURE__*/ B.createElement(X2, { chartData: n.data }), /*#__PURE__*/ B.createElement(o6, {- layout: r,- margin: n.margin- }), /*#__PURE__*/ B.createElement(c6, {- throttleDelay: n.throttleDelay,- throttledEvents: n.throttledEvents- }), /*#__PURE__*/ B.createElement(s6, {- baseValue: void 0,- accessibilityLayer: n.accessibilityLayer,- barCategoryGap: n.barCategoryGap,- maxBarSize: n.maxBarSize,- stackOffset: n.stackOffset,- barGap: n.barGap,- barSize: n.barSize,- syncId: n.syncId,- syncMethod: n.syncMethod,- className: n.className,- reverseStackOrder: n.reverseStackOrder- }), /*#__PURE__*/ B.createElement(hHe, {- cx: n.cx,- cy: n.cy,- startAngle: n.startAngle,- endAngle: n.endAngle,- innerRadius: n.innerRadius,- outerRadius: n.outerRadius- }), /*#__PURE__*/ B.createElement(g6, x6({}, i, { ref: t })));-});-//#endregion-//#region node_modules/recharts/es6/chart/RadarChart.js-function T6(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function E6(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? T6(Object(n), !0).forEach(function(t) {- CHe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T6(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function CHe(e, t, n) {- return (t = wHe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function wHe(e) {- var t = THe(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function THe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-var EHe = ["axis"], DHe = E6(E6({}, C6), {}, {- layout: "centric",- startAngle: 90,- endAngle: -270-}), OHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = nV(e, DHe);- return /*#__PURE__*/ B.createElement(w6, {- chartName: "RadarChart",- defaultTooltipEventType: "axis",- validateTooltipEventTypes: EHe,- tooltipPayloadSearcher: z$,- categoricalChartProps: n,- ref: t- });-}), kHe = ["axis"], AHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(y6, {- chartName: "AreaChart",- defaultTooltipEventType: "axis",- validateTooltipEventTypes: kHe,- tooltipPayloadSearcher: z$,- categoricalChartProps: e,- ref: t-}));-//#endregion-//#region node_modules/recharts/es6/chart/RadialBarChart.js-function D6(e, t) {- var n = Object.keys(e);- if (Object.getOwnPropertySymbols) {- var r = Object.getOwnPropertySymbols(e);- t && (r = r.filter(function(t) {- return Object.getOwnPropertyDescriptor(e, t).enumerable;- })), n.push.apply(n, r);- }- return n;-}-function O6(e) {- for (var t = 1; t < arguments.length; t++) {- var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? D6(Object(n), !0).forEach(function(t) {- jHe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D6(Object(n)).forEach(function(t) {- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));- });- }- return e;-}-function jHe(e, t, n) {- return (t = MHe(t)) in e ? Object.defineProperty(e, t, {- value: n,- enumerable: !0,- configurable: !0,- writable: !0- }) : e[t] = n, e;-}-function MHe(e) {- var t = NHe(e, "string");- return typeof t == "symbol" ? t : t + "";-}-function NHe(e, t) {- if (typeof e != "object" || !e) return e;- var n = e[Symbol.toPrimitive];- if (n !== void 0) {- var r = n.call(e, t || "default");- if (typeof r != "object") return r;- throw TypeError("@@toPrimitive must return a primitive value.");- }- return (t === "string" ? String : Number)(e);-}-var PHe = ["axis", "item"], FHe = O6(O6({}, C6), {}, {- layout: "radial",- startAngle: 0,- endAngle: 360-}), IHe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = nV(e, FHe);- return /*#__PURE__*/ B.createElement(w6, {- chartName: "RadialBarChart",- defaultTooltipEventType: "axis",- validateTooltipEventTypes: PHe,- tooltipPayloadSearcher: z$,- categoricalChartProps: n,- ref: t- });-});-//#endregion-//#region src/react/charts/cn.ts-function k6(...e) {- return hE(_h(e));-}-//#endregion-//#region src/react/evilcharts/registry/ui/recharts-chart.tsx-var A6 = {- light: "",- dark: ".dark"-}, j6 = Object.keys(A6);-function LHe(e) {- for (let [t, n] of Object.entries(e)) if (n.colors && !j6.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${j6.join(", ")}). Received empty object or invalid keys.`);-}-var M6 = B.createContext(null);-function N6() {- let e = B.useContext(M6);- if (!e) throw Error("useChart must be used within a <ChartContainer />");- return e;-}-function P6({ id: e, config: t, initialDimension: n = {- width: 320,- height: 200-}, className: r, children: i, footer: a, ...o }) {- let s = B.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;- return LHe(t), /* @__PURE__ */ (0, V.jsx)(M6.Provider, {- value: { config: t },- children: /* @__PURE__ */ (0, V.jsxs)("div", {- "data-slot": "chart",- "data-chart": c,- className: k6("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),- ...o,- children: [- /* @__PURE__ */ (0, V.jsx)(I6, {- id: c,- config: t- }),- /* @__PURE__ */ (0, V.jsx)(OW, {- className: "min-h-0 w-full flex-1",- initialDimension: n,- children: i- }),- a- ]- })- });-}-function F6({ isLoading: e }) {- return e ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",- children: /* @__PURE__ */ (0, V.jsxs)("div", {- className: "text-primary bg-background flex items-center justify-center gap-2 rounded-md border px-2 py-0.5 text-sm",- children: [/* @__PURE__ */ (0, V.jsx)("div", { className: "border-border border-t-primary h-3 w-3 animate-spin rounded-full border" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "Loading" })]- })- }) : null;-}-function RHe(e, t) {- let n = e.length;- if (n >= t) return e.slice(0, t);- let r = [], i = Math.floor(t / n), a = t % n;- for (let t = 0; t < n; t++) {- let o = i + +(t >= n - a);- for (let n = 0; n < o; n++) r.push(e[t]);- }- return r;-}-var I6 = ({ id: e, config: t }) => {- let n = Object.entries(t).filter(([, e]) => e.colors);- if (!n.length) return null;- let r = (e) => n.flatMap(([t, n]) => {- let r = n.colors?.[e];- return !r || !Array.isArray(r) || r.length === 0 ? [] : RHe(r, R6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);- }).filter(Boolean).join("\n"), i = Object.entries(A6).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");- return /* @__PURE__ */ (0, V.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });-};-function L6(e, t, n) {- if (typeof t != "object" || !t) return;- let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;- return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];-}-function R6(e) {- if (!e.colors) return 1;- let t = j6.map((t) => e.colors?.[t]?.length ?? 0);- return Math.max(...t, 1);-}-var zHe = (e = 10, t = 0, n = 70) => {- let r = n - t;- return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));-}, BHe = {- sm: "rounded-sm",- md: "rounded-md",- lg: "rounded-lg",- xl: "rounded-xl"-}, VHe = {- default: "bg-background",- "frosted-glass": "bg-background/70 backdrop-blur-sm"-};-function z6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {- let { config: h } = N6(), g = B.useMemo(() => {- if (i || !t?.length) return null;- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = L6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;- return s ? /* @__PURE__ */ (0, V.jsx)("div", {- className: k6("font-medium", c),- children: s(a, t)- }) : a ? /* @__PURE__ */ (0, V.jsx)("div", {- className: k6("font-medium", c),- children: a- }) : null;- }, [- o,- s,- t,- i,- c,- h,- d- ]);- if (!e || !t?.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });- let _ = t.length === 1 && r !== "dot";- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: k6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", BHe[p], VHe[m], n),- children: [_ ? null : g, /* @__PURE__ */ (0, V.jsx)("div", {- className: "grid gap-1.5",- children: t.filter((e) => e.type !== "none").map((e, t) => {- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = L6(h, e, n), o = i ? R6(i) : 1;- return /* @__PURE__ */ (0, V.jsx)("div", {- className: k6("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),- children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, V.jsx)("div", {- className: k6("shrink-0 rounded-[2px]", {- "h-2.5 w-2.5": r === "dot",- "w-1": r === "line",- "w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",- "my-0.5": _ && r === "dashed"- }),- style: HHe(n, o)- }), /* @__PURE__ */ (0, V.jsxs)("div", {- className: k6("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "grid gap-1.5",- children: [_ ? g : null, /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-muted-foreground",- children: i?.label ?? e.name- })]- }), e.value != null && /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-foreground font-mono font-medium tabular-nums",- children: typeof e.value == "number" ? e.value.toLocaleString() : String(e.value)- })]- })] })- }, t);- })- })]- });-}-function HHe(e, t) {- return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };-}-var B6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, V.jsx)(jNe, {- animationDuration: e,- ...t-});-//#endregion-//#region src/react/evilcharts/registry/ui/recharts-legend.tsx-function V6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {- let { config: u } = N6();- return r?.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: k6("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),- children: r.filter((e) => e.type !== "none").map((e) => {- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = L6(u, e, r), a = o === null || o === r, d = i ? R6(i) : 1;- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: k6("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),- onClick: () => {- c && s?.(o === r ? null : r);- },- children: [i?.icon && !t ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : /* @__PURE__ */ (0, V.jsx)(UHe, {- variant: l,- dataKey: r,- colorsCount: d- }), i?.label]- }, r);- })- }) : null;-}-function UHe({ variant: e, dataKey: t, colorsCount: n }) {- let r = WHe(t, n), i = GHe(t, n);- switch (e) {- case "square": return /* @__PURE__ */ (0, V.jsx)("div", {- className: "h-2 w-2 shrink-0",- style: r- });- case "circle": return /* @__PURE__ */ (0, V.jsx)("div", {- className: "h-2 w-2 shrink-0 rounded-full",- style: r- });- case "circle-outline": return /* @__PURE__ */ (0, V.jsx)("div", {- className: "h-2.5 w-2.5 shrink-0 rounded-full p-[1.5px]",- style: i- });- case "vertical-bar": return /* @__PURE__ */ (0, V.jsx)("div", {- className: "h-3 w-1 shrink-0 rounded-[2px]",- style: r- });- case "horizontal-bar": return /* @__PURE__ */ (0, V.jsx)("div", {- className: "h-1 w-3 shrink-0 rounded-[2px]",- style: r- });- case "rounded-square-outline": return /* @__PURE__ */ (0, V.jsx)("div", {- className: "h-2.5 w-2.5 shrink-0 rounded-[3px] p-[1.5px]",- style: i- });- default: return /* @__PURE__ */ (0, V.jsx)("div", {- className: "h-2 w-2 shrink-0 rounded-[2px]",- style: r- });- }-}-function WHe(e, t) {- return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };-}-function GHe(e, t) {- let n = {- WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",- WebkitMaskComposite: "xor",- mask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",- maskComposite: "exclude"- };- return t <= 1 ? {- backgroundColor: `var(--color-${e}-0)`,- ...n- } : {- background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})`,- ...n- };-}-var H6 = LG, U6 = () => null, W6 = {- stiffness: 300,- damping: 35,- mass: .8-};-function KHe({ range: e, totalPoints: t, containerRef: n, commit: r }) {- let i = B.useRef(null), [a, o] = B.useState(!1), s = (0, B.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, B.useCallback)((t, n) => {- t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {- type: n,- originX: t.clientX,- originRange: { ...e }- }, o(!0);- }, [e]), l = (0, B.useCallback)((e) => {- let n = i.current;- if (!n) return;- let a = s(e.clientX - n.originX), { type: o, originRange: c } = n;- if (o === "left") r({- startIndex: c.startIndex + a,- endIndex: c.endIndex- }, "left");- else if (o === "right") r({- startIndex: c.startIndex,- endIndex: c.endIndex + a- }, "right");- else {- let e = c.endIndex - c.startIndex, n = c.startIndex + a, i = n + e;- n < 0 && (n = 0, i = e), i > t - 1 && (i = t - 1, n = Math.max(0, i - e)), r({- startIndex: n,- endIndex: i- }, "middle");- }- }, [- s,- t,- r- ]), u = (0, B.useCallback)((e) => {- e.target.releasePointerCapture(e.pointerId), i.current = null, o(!1);- }, []);- return {- isDragging: a,- bind: (0, B.useCallback)((e) => ({- onPointerDown: (t) => c(t, e),- onPointerMove: l,- onPointerUp: u- }), [- c,- l,- u- ])- };-}-function qHe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {- let x = B.useRef(null), S = B.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = B.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = B.useState(() => ({- startIndex: Math.max(0, Math.min(p, C - 1)),- endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))- })), O = B.useRef(E);- (0, B.useEffect)(() => {- T || D((e) => {- let t = {- startIndex: Math.min(e.startIndex, Math.max(0, C - 1)),- endIndex: Math.min(e.endIndex, Math.max(0, C - 1))- };- return O.current = t, t;- });- }, [C, T]);- let k = (0, B.useCallback)((e, t) => {- let { startIndex: n, endIndex: r } = e, i = Math.max(0, C - 1);- if (n = Math.max(0, Math.min(n, i)), r = Math.max(0, Math.min(r, i)), t === "left") {- let e = Math.max(0, r - v);- return n = Math.min(n, e), {- startIndex: n,- endIndex: r- };- }- if (t === "right") {- let e = Math.min(i, n + v);- return r = Math.max(r, e), {- startIndex: n,- endIndex: r- };- }- return r - n < v && (r = Math.min(n + v, i), r - n < v && (n = Math.max(0, r - v))), {- startIndex: n,- endIndex: r- };- }, [C, v]), { isDragging: A, bind: j } = KHe({- range: E,- totalPoints: C,- containerRef: x,- commit: (0, B.useCallback)((e, t) => {- let n = k(e, t), r = O.current;- (r.startIndex !== n.startIndex || r.endIndex !== n.endIndex) && (O.current = n, D(n), B.startTransition(() => {- h?.(n);- }));- }, [k, h])- }), M = E;- (0, B.useEffect)(() => {- if (T && !A) {- let e = {- startIndex: d,- endIndex: f- };- D(e), O.current = e;- }- }, [- T,- d,- f,- A- ]);- let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = Hf(N), F = Hf(P);- ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);- let I = Yf(ee, W6), te = Yf(F, W6), ne = Gf(I, (e) => `${e}%`), re = Gf(te, (e) => `${e}%`), ie = Gf(I, (e) => `${e}%`), ae = Gf(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Hf(`${Math.max(0, P - N)}%`), se = (0, B.useCallback)(() => {- oe.set(`${Math.max(0, te.get() - I.get())}%`);- }, [- I,- te,- oe- ]);- Vf(I, "change", se), Vf(te, "change", se);- let ce = (0, B.useCallback)((t) => {- if (!r) return String(t);- let n = e[t]?.[r];- return g ? g(n, t) : String(n ?? t);- }, [- e,- r,- g- ]);- return C === 0 ? null : /* @__PURE__ */ (0, V.jsxs)("div", {- ref: x,- "data-chart": b ? void 0 : w,- className: k6("group relative select-none", o),- style: { height: a },- children: [- !b && /* @__PURE__ */ (0, V.jsx)(I6, {- id: w,- config: t- }),- /* @__PURE__ */ (0, V.jsx)("div", {- className: "absolute inset-0 overflow-hidden rounded-md",- children: /* @__PURE__ */ (0, V.jsx)(JHe, {- data: e,- keys: S,- chartConfig: t,- variant: i,- curveType: _,- chartId: w,- stacked: s,- strokeVariant: c === "animated-dashed" ? "dashed" : c,- connectNulls: l,- barRadius: u- })- }),- /* @__PURE__ */ (0, V.jsx)(ep.div, {- className: "bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]",- style: { width: ie }- }),- /* @__PURE__ */ (0, V.jsx)(ep.div, {- className: "bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]",- style: { width: ae }- }),- /* @__PURE__ */ (0, V.jsx)(ep.div, {- className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",- style: {- left: ne,- width: oe- },- ...j("middle")- }),- /* @__PURE__ */ (0, V.jsx)(G6, {- side: "left",- position: ne,- label: y ? ce(M.startIndex) : void 0,- bind: j("left")- }),- /* @__PURE__ */ (0, V.jsx)(G6, {- side: "right",- position: re,- label: y ? ce(M.endIndex) : void 0,- bind: j("right")- })- ]- });-}-function G6({ side: e, position: t, label: n, bind: r }) {- let i = e === "left";- return /* @__PURE__ */ (0, V.jsxs)(ep.div, {- className: "absolute inset-y-0 z-10",- style: { left: t },- children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: k6("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),- ...r,- children: /* @__PURE__ */ (0, V.jsx)("div", {- className: k6("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),- children: /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-[2px]",- children: [- /* @__PURE__ */ (0, V.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" }),- /* @__PURE__ */ (0, V.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" }),- /* @__PURE__ */ (0, V.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" })- ]- })- })- }), n && /* @__PURE__ */ (0, V.jsx)("div", {- className: k6("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),- children: n- })]- });-}-function JHe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {- let u = B.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({- dataKey: e,- colorsCount: R6(t)- })), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, V.jsxs)("linearGradient", {- id: `${a}-zm-vertical-fade`,- x1: "0",- y1: "0",- x2: "0",- y2: "1",- children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "0%",- stopColor: "white",- stopOpacity: .15- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "100%",- stopColor: "white",- stopOpacity: 0- })]- }), u.map(({ dataKey: e, colorsCount: t }) => {- let n = t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "0%",- stopColor: `var(--color-${e}-0)`- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "100%",- stopColor: `var(--color-${e}-0)`- })] }) : Array.from({ length: t }, (n, r) => /* @__PURE__ */ (0, V.jsx)("stop", {- offset: `${r / (t - 1) * 100}%`,- stopColor: `var(--color-${e}-${r}, var(--color-${e}-0))`- }, r));- return /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("linearGradient", {- id: `${a}-zm-${e}`,- x1: "0",- y1: "0",- x2: "0",- y2: "1",- children: n- }), r === "area" && /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("mask", {- id: `${a}-zm-fill-mask-${e}`,- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${a}-zm-vertical-fade)`- })- }), /* @__PURE__ */ (0, V.jsx)("pattern", {- id: `${a}-zm-fill-${e}`,- patternUnits: "userSpaceOnUse",- width: "100%",- height: "100%",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${a}-zm-${e})`,- mask: `url(#${a}-zm-fill-mask-${e})`- })- })] })] }, e);- })] });- if (r === "line") return /* @__PURE__ */ (0, V.jsx)(OW, {- width: "100%",- height: "100%",- children: /* @__PURE__ */ (0, V.jsxs)(pHe, {- data: e,- margin: {- top: 4,- right: 0,- bottom: 0,- left: 0- },- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(R4, {- type: i,- dataKey: e,- stroke: `url(#${a}-zm-${e})`,- strokeWidth: 1,- strokeOpacity: .5,- strokeDasharray: d,- connectNulls: c,- dot: !1,- activeDot: !1,- isAnimationActive: !1- }, e))]- })- });- if (r === "bar") {- let n = l ?? 3;- return /* @__PURE__ */ (0, V.jsx)(OW, {- width: "100%",- height: "100%",- children: /* @__PURE__ */ (0, V.jsxs)(b6, {- data: e,- margin: {- top: 2,- right: 0,- bottom: 0,- left: 0- },- barGap: 2,- barSize: 14,- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(f3, {- dataKey: e,- fill: `url(#${a}-zm-${e})`,- fillOpacity: .35,- stackId: o ? "zm-stack" : void 0,- isAnimationActive: !1,- radius: [- n,- n,- n,- n- ]- }, e))]- })- });- }- return /* @__PURE__ */ (0, V.jsx)(OW, {- width: "100%",- height: "100%",- children: /* @__PURE__ */ (0, V.jsxs)(AHe, {- data: e,- margin: {- top: 4,- right: 0,- bottom: 0,- left: 0- },- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)($4, {- type: i,- dataKey: e,- stroke: `url(#${a}-zm-${e})`,- fill: `url(#${a}-zm-fill-${e})`,- strokeWidth: 1,- strokeOpacity: .5,- strokeDasharray: d,- connectNulls: c,- fillOpacity: 1,- stackId: o ? "zm-stack" : void 0,- dot: !1,- activeDot: !1,- isAnimationActive: !1- }, e))]- })- });-}-function YHe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {- let [r, i] = B.useState({- startIndex: t,- endIndex: n ?? Math.max(0, e.length - 1)- }), a = B.useDeferredValue(r);- return (0, B.useEffect)(() => {- i({- startIndex: 0,- endIndex: Math.max(0, e.length - 1)- });- }, [e.length]), {- range: r,- visibleData: B.useMemo(() => e.slice(a.startIndex, a.endIndex + 1), [- e,- a.startIndex,- a.endIndex- ]),- brushProps: {- startIndex: r.startIndex,- endIndex: r.endIndex,- onChange: i- }- };-}-var XHe = {- dots: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "20",- height: "20",- patternUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("circle", {- className: "text-border dark:text-border",- cx: "2",- cy: "2",- r: "1",- fill: "currentColor"- })- }),- grid: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "20",- height: "20",- patternUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("path", {- className: "text-border dark:text-border",- d: "M 20 0 L 0 0 0 20",- fill: "none",- stroke: "currentColor",- strokeWidth: "0.5"- })- }),- plus: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "16",- height: "16",- patternUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("path", {- className: "text-border dark:text-border",- d: "M 8 4 L 8 12 M 4 8 L 12 8",- fill: "none",- stroke: "currentColor",- strokeWidth: "0.5",- strokeLinecap: "round"- })- }),- bubbles: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "100",- height: "100",- patternUnits: "userSpaceOnUse",- patternTransform: "scale(0.6667)",- children: /* @__PURE__ */ (0, V.jsx)("path", {- className: "text-border dark:text-border",- d: "M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z",- fill: "currentColor",- fillOpacity: "0.4",- fillRule: "evenodd"- })- }),- "cross-hatch": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "20",- height: "20",- patternUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("path", {- className: "text-border/60 dark:text-border/50",- d: "M 0 0 L 20 20 M 20 0 L 0 20",- fill: "none",- stroke: "currentColor",- strokeWidth: "0.5"- })- }),- "diagonal-lines": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "6",- height: "6",- patternUnits: "userSpaceOnUse",- patternTransform: "rotate(45)",- children: /* @__PURE__ */ (0, V.jsx)("line", {- className: "text-border dark:text-border",- x1: "0",- y1: "0",- x2: "0",- y2: "6",- stroke: "currentColor",- strokeWidth: "0.5"- })- }),- "falling-triangles": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "18",- height: "36",- patternUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("path", {- className: "text-border dark:text-border",- d: "M2 6h12L8 18 2 6zm18 36h12l-6 12-6-12z",- transform: "scale(0.5)",- fill: "currentColor",- fillOpacity: "0.4"- })- }),- "4-pointed-star": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "16",- height: "16",- patternUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("polygon", {- className: "text-border dark:text-border",- fillRule: "evenodd",- points: "5 3 8 4 5 5 4 8 3 5 0 4 3 3 4 0 5 3",- fill: "currentColor",- fillOpacity: "0.4"- })- }),- "tiny-checkers": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "8",- height: "8",- patternUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("path", {- className: "text-border dark:text-border",- fillRule: "evenodd",- d: "M0 0h4v4H0V0zm4 4h4v4H4V4z",- fill: "currentColor",- fillOpacity: "0.2"- })- }),- "overlapping-circles": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "40",- height: "40",- patternUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("path", {- className: "text-border dark:text-border",- fillRule: "evenodd",- d: "M25 25c0-2.762 2.238-5 5-5s5 2.238 5 5-2.238 5-5 5c0 2.762-2.238 5-5 5s-5-2.238-5-5 2.238-5 5-5zM5 5c0-2.762 2.238-5 5-5s5 2.238 5 5-2.238 5-5 5c0 2.762-2.238 5-5 5S0 12.762 0 10s2.238-5 5-5zm5 4c2.209 0 4-1.791 4-4s-1.791-4-4-4-4 1.791-4 4 1.791 4 4 4zm20 20c2.209 0 4-1.791 4-4s-1.791-4-4-4-4 1.791-4 4 1.791 4 4 4z",- fill: "currentColor",- fillOpacity: "0.4"- })- }),- "wiggle-lines": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {- id: e,- x: "0",- y: "0",- width: "52",- height: "26",- patternUnits: "userSpaceOnUse",- patternTransform: "scale(0.6)",- children: /* @__PURE__ */ (0, V.jsx)("path", {- className: "text-border dark:text-border",- d: "M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z",- fill: "currentColor",- fillOpacity: "0.4"- })- })-};-function K6({ variant: e }) {- let t = (0, B.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = XHe[e];- return /* @__PURE__ */ (0, V.jsxs)(j$, {- zIndex: -1,- children: [/* @__PURE__ */ (0, V.jsxs)("defs", { children: [- /* @__PURE__ */ (0, V.jsx)(a, { id: n }),- /* @__PURE__ */ (0, V.jsx)("filter", {- id: i,- children: /* @__PURE__ */ (0, V.jsx)("feGaussianBlur", { stdDeviation: "25" })- }),- /* @__PURE__ */ (0, V.jsx)("mask", {- id: r,- maskUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- x: "8%",- y: "20%",- width: "85%",- height: "60%",- fill: "white",- filter: `url(#${i})`- })- })- ] }), /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${n})`,- mask: `url(#${r})`- })]- });-}-//#endregion-//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx-var q6 = 2, ZHe = "loading", QHe = 2e3, $He = "evil-stacked", eUe = .5, tUe = .05, nUe = [- 0,- .7,- .5,- 1-], J6 = (0, B.createContext)(null);-function Y6() {- let e = (0, B.use)(J6);- if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");- return e;-}-function X6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = q6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {- let _ = (0, B.useId)().replace(/:/g, ""), [v] = (0, B.useState)(() => Date.now()), [y, b] = (0, B.useState)(f), [x, S] = (0, B.useState)(!1), { loadingData: C, onShimmerExit: w } = xUe(m, h), { visibleData: T, brushProps: E } = YHe({ data: t }), D = (0, B.useMemo)(() => {- let e = B.Children.toArray(n), t = e.find((e) => (0, B.isValidElement)(e) && e.type === U6), r = (0, B.isValidElement)(t) ? t.props : {};- return {- slot: {- present: (0, B.isValidElement)(t),- height: r.height,- formatLabel: r.formatLabel,- onChange: r.onChange- },- chartChildren: e.filter((e) => !((0, B.isValidElement)(e) && e.type === U6))- };- }, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, B.useCallback)((e) => {- b(e), p?.(e);- }, [p]), N = (0, B.useMemo)(() => ({- config: e,- isStacked: k,- isHorizontal: A,- isLoading: m,- barRadius: s,- animationType: c,- introStartedAt: v,- dataLength: j.length,- selectedDataKey: y,- selectDataKey: M,- isMouseInChart: x- }), [- e,- k,- A,- m,- s,- c,- v,- j.length,- y,- M,- x- ]);- return /* @__PURE__ */ (0, V.jsx)(J6, {- value: N,- children: /* @__PURE__ */ (0, V.jsxs)(P6, {- className: r,- config: e,- footer: O && !m && /* @__PURE__ */ (0, V.jsx)(qHe, {- data: t,- chartConfig: e,- xDataKey: g,- variant: "bar",- barRadius: s,- height: D.slot.height,- formatLabel: D.slot.formatLabel,- stacked: k,- skipStyle: !0,- className: "mt-1",- ...E,- onChange: (e) => {- E.onChange(e), D.slot.onChange?.(e);- }- }),- children: [/* @__PURE__ */ (0, V.jsx)(F6, { isLoading: m }), /* @__PURE__ */ (0, V.jsxs)(b6, {- id: _,- accessibilityLayer: !0,- layout: A ? "vertical" : "horizontal",- data: m ? C : j,- barGap: l,- barCategoryGap: u,- stackOffset: a === "percent" ? "expand" : void 0,- onMouseEnter: () => S(!0),- onMouseLeave: () => S(!1),- ...i,- children: [- d && /* @__PURE__ */ (0, V.jsx)(K6, { variant: d }),- /* @__PURE__ */ (0, V.jsx)(i4, { color: "white" }),- D.chartChildren,- m && /* @__PURE__ */ (0, V.jsx)(SUe, {- chartId: _,- onShimmerExit: w- })- ]- })]- })- });-}-function rUe({ 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 } = Y6(), b = (0, B.useId)().replace(/:/g, ""), x = Xf();- if (f) return null;- let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {- id: b,- dataKey: e,- variant: t,- barRadius: S,- glowing: o,- bufferBar: s,- isClickable: i,- enableHoverHighlight: a,- isMouseInChart: y,- isHorizontal: d,- introStartedAt: h,- selectedDataKey: _,- dataLength: g,- onClick: () => {- i && v(C ? null : e);- }- };- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(f3, {- dataKey: e,- stackId: u ? $He : void 0,- fill: `url(#${b}-colors-${e})`,- radius: S,- isAnimationActive: !1,- style: i || a ? { cursor: "pointer" } : void 0,- shape: (e) => /* @__PURE__ */ (0, V.jsx)(Z6, {- ...e,- ...T,- animationType: w- }),- activeBar: (e) => /* @__PURE__ */ (0, V.jsx)(Z6, {- ...e,- ...T,- animationType: "none"- }),- ...c- }), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [- /* @__PURE__ */ (0, V.jsx)(fUe, {- id: b,- dataKey: e,- config: l- }),- t === "hatched" && /* @__PURE__ */ (0, V.jsx)(pUe, {- id: b,- dataKey: e- }),- t === "duotone" && /* @__PURE__ */ (0, V.jsx)(hUe, {- id: b,- dataKey: e,- config: l- }),- t === "duotone-reverse" && /* @__PURE__ */ (0, V.jsx)(gUe, {- id: b,- dataKey: e,- config: l- }),- t === "gradient" && /* @__PURE__ */ (0, V.jsx)(_Ue, {- id: b,- dataKey: e- }),- t === "stripped" && /* @__PURE__ */ (0, V.jsx)(vUe, {- id: b,- dataKey: e- }),- s && /* @__PURE__ */ (0, V.jsx)(mUe, {- id: b,- dataKey: e- }),- o && /* @__PURE__ */ (0, V.jsx)(yUe, {- id: b,- dataKey: e- })- ] })] });-}-function iUe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {- let { isLoading: o, isHorizontal: s } = Y6();- return o ? null : /* @__PURE__ */ (0, V.jsx)(b3, {- tickLine: e,- axisLine: t,- tickMargin: n,- minTickGap: r,- type: i ?? (s ? "number" : "category"),- ...a- });-}-function aUe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {- let { isLoading: s, isHorizontal: c } = Y6();- return s ? null : /* @__PURE__ */ (0, V.jsx)(T3, {- tickLine: e,- axisLine: t,- tickMargin: n,- minTickGap: r,- width: i,- type: a ?? (c ? "category" : "number"),- ...o- });-}-function oUe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {- let { isHorizontal: i } = Y6();- return /* @__PURE__ */ (0, V.jsx)(x4, {- strokeDasharray: e,- vertical: t ?? i,- horizontal: n ?? !i,- ...r- });-}-function sUe({ variant: e, roundness: t, defaultIndex: n }) {- let { isLoading: r, selectedDataKey: i } = Y6();- return r ? null : /* @__PURE__ */ (0, V.jsx)(B6, {- cursor: !1,- defaultIndex: n,- content: /* @__PURE__ */ (0, V.jsx)(z6, {- selected: i,- roundness: t,- variant: e- })- });-}-function cUe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {- let { selectedDataKey: i, selectDataKey: a } = Y6();- return /* @__PURE__ */ (0, V.jsx)(H6, {- verticalAlign: n,- align: t,- content: /* @__PURE__ */ (0, V.jsx)(V6, {- selected: i,- onSelectChange: a,- isClickable: r,- variant: e- })- });-}-var Z6 = (e) => {- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = lUe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : uUe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = dUe({- isClickable: d,- selectedDataKey: _,- dataKey: o,- enableHoverHighlight: f,- isMouseInChart: p,- isActive: v- }), O = d || f ? { cursor: "pointer" } : void 0, k = C ? [- c,- c,- 0,- 0- ] : c, A = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(jK, {- x: t,- y: n,- width: r,- opacity: D,- height: Math.max(0, i - 3),- radius: k,- fill: T,- filter: E,- stroke: S ? `url(#${a}-colors-${o})` : void 0,- strokeWidth: S ? 1 : void 0- }), C && /* @__PURE__ */ (0, V.jsx)(jK, {- x: t,- y: n - 4,- width: r,- height: 2,- radius: 1,- fill: `url(#${a}-colors-${o})`- })] });- return /* @__PURE__ */ (0, V.jsxs)("g", {- style: O,- onClick: b,- children: [/* @__PURE__ */ (0, V.jsx)(jK, {- ...e,- fill: "transparent"- }), w ? /* @__PURE__ */ (0, V.jsx)(ep.g, {- initial: w.initial,- animate: w.animate,- transition: w.transition,- style: w.style,- children: A- }) : A]- });-}, lUe = (e, t, n, r, i) => {- if (e === "none" || t < 0 || n <= 0) return null;- let a = n - 1, o = a / 2, s;- switch (e) {- case "right-to-left":- s = a - t;- break;- case "center-out":- s = Math.abs(t - o);- break;- case "edges-in":- s = o - Math.abs(t - o);- break;- default: s = t;- }- let c = s * tUe * 1e3, l = eUe * 1e3, u = c + l, d = Date.now() - i;- if (d >= u) return null;- let f = d <= c ? 0 : (d - c) / l, p = {- duration: (u - Math.max(d, c)) / 1e3,- ease: nUe,- delay: Math.max(0, c - d) / 1e3- };- return r ? {- initial: { scaleX: f },- animate: { scaleX: 1 },- transition: p,- style: { originX: 0 }- } : {- initial: { scaleY: f },- animate: { scaleY: 1 },- transition: p,- style: { originY: 1 }- };-}, uUe = (e, t, n) => {- switch (e) {- case "hatched": return `url(#${t}-hatched-${n})`;- case "duotone": return `url(#${t}-duotone-${n})`;- case "duotone-reverse": return `url(#${t}-duotone-reverse-${n})`;- case "gradient": return `url(#${t}-gradient-${n})`;- case "stripped": return `url(#${t}-stripped-${n})`;- default: return `url(#${t}-colors-${n})`;- }-}, dUe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {- let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;- return r && i ? a ? o : o * .3 : o;-}, fUe = ({ id: e, dataKey: t, config: n }) => {- let r = R6(n[t] ?? {});- return /* @__PURE__ */ (0, V.jsx)("linearGradient", {- id: `${e}-colors-${t}`,- x1: "0",- y1: "0",- x2: "0",- y2: "1",- children: r === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "0%",- stopColor: `var(--color-${t}-0)`- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "100%",- stopColor: `var(--color-${t}-0)`- })] }) : Array.from({ length: r }, (e, n) => {- let i = `${n / (r - 1) * 100}%`;- return /* @__PURE__ */ (0, V.jsx)("stop", {- offset: i,- stopColor: `var(--color-${t}-${n}, var(--color-${t}-0))`- }, i);- })- });-}, pUe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsxs)("pattern", {- id: `${e}-hatched-mask-pattern`,- x: "0",- y: "0",- width: "5",- height: "5",- patternUnits: "userSpaceOnUse",- patternTransform: "rotate(-45)",- children: [/* @__PURE__ */ (0, V.jsx)("rect", {- width: "5",- height: "5",- fill: "white",- fillOpacity: .3- }), /* @__PURE__ */ (0, V.jsx)("rect", {- width: "1.5",- height: "5",- fill: "white",- fillOpacity: 1- })]- }),- /* @__PURE__ */ (0, V.jsx)("mask", {- id: `${e}-hatched-mask-${t}`,- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${e}-hatched-mask-pattern)`- })- }),- /* @__PURE__ */ (0, V.jsx)("pattern", {- id: `${e}-hatched-${t}`,- patternUnits: "userSpaceOnUse",- width: "100%",- height: "100%",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${e}-colors-${t})`,- mask: `url(#${e}-hatched-mask-${t})`- })- })-] }), mUe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsxs)("pattern", {- id: `${e}-buffer-hatched-mask-pattern`,- x: "0",- y: "0",- width: "5",- height: "5",- patternUnits: "userSpaceOnUse",- patternTransform: "rotate(-45)",- children: [/* @__PURE__ */ (0, V.jsx)("rect", {- width: "5",- height: "5",- fill: "black",- fillOpacity: 0- }), /* @__PURE__ */ (0, V.jsx)("rect", {- width: "1",- height: "5",- fill: "white",- fillOpacity: 1- })]- }),- /* @__PURE__ */ (0, V.jsx)("mask", {- id: `${e}-buffer-hatched-mask-${t}`,- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${e}-buffer-hatched-mask-pattern)`- })- }),- /* @__PURE__ */ (0, V.jsx)("pattern", {- id: `${e}-buffer-hatched-${t}`,- patternUnits: "userSpaceOnUse",- width: "100%",- height: "100%",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${e}-colors-${t})`,- mask: `url(#${e}-buffer-hatched-mask-${t})`- })- })-] }), hUe = ({ id: e, dataKey: t, config: n }) => {- let r = R6(n[t] ?? {});- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsxs)("linearGradient", {- id: `${e}-duotone-mask-gradient-${t}`,- gradientUnits: "objectBoundingBox",- x1: "0",- y1: "0",- x2: "1",- y2: "0",- children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "50%",- stopColor: "white",- stopOpacity: .4- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "50%",- stopColor: "white",- stopOpacity: 1- })]- }),- /* @__PURE__ */ (0, V.jsx)("linearGradient", {- id: `${e}-duotone-colors-${t}`,- gradientUnits: "objectBoundingBox",- x1: "0",- y1: "0",- x2: "0",- y2: "1",- children: r === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "0%",- stopColor: `var(--color-${t}-0)`- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "100%",- stopColor: `var(--color-${t}-0)`- })] }) : Array.from({ length: r }, (e, n) => {- let i = `${n / (r - 1) * 100}%`;- return /* @__PURE__ */ (0, V.jsx)("stop", {- offset: i,- stopColor: `var(--color-${t}-${n}, var(--color-${t}-0))`- }, i);- })- }),- /* @__PURE__ */ (0, V.jsx)("mask", {- id: `${e}-duotone-mask-${t}`,- maskContentUnits: "objectBoundingBox",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- x: "0",- y: "0",- width: "1",- height: "1",- fill: `url(#${e}-duotone-mask-gradient-${t})`- })- }),- /* @__PURE__ */ (0, V.jsx)("pattern", {- id: `${e}-duotone-${t}`,- patternUnits: "objectBoundingBox",- patternContentUnits: "objectBoundingBox",- width: "1",- height: "1",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- x: "0",- y: "0",- width: "1",- height: "1",- fill: `url(#${e}-duotone-colors-${t})`,- mask: `url(#${e}-duotone-mask-${t})`- })- })- ] });-}, gUe = ({ id: e, dataKey: t, config: n }) => {- let r = R6(n[t] ?? {});- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsxs)("linearGradient", {- id: `${e}-duotone-reverse-mask-gradient-${t}`,- gradientUnits: "objectBoundingBox",- x1: "0",- y1: "0",- x2: "1",- y2: "0",- children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "50%",- stopColor: "white",- stopOpacity: 1- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "50%",- stopColor: "white",- stopOpacity: .4- })]- }),- /* @__PURE__ */ (0, V.jsx)("linearGradient", {- id: `${e}-duotone-reverse-colors-${t}`,- gradientUnits: "objectBoundingBox",- x1: "0",- y1: "0",- x2: "0",- y2: "1",- children: r === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "0%",- stopColor: `var(--color-${t}-0)`- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "100%",- stopColor: `var(--color-${t}-0)`- })] }) : Array.from({ length: r }, (e, n) => {- let i = `${n / (r - 1) * 100}%`;- return /* @__PURE__ */ (0, V.jsx)("stop", {- offset: i,- stopColor: `var(--color-${t}-${n}, var(--color-${t}-0))`- }, i);- })- }),- /* @__PURE__ */ (0, V.jsx)("mask", {- id: `${e}-duotone-reverse-mask-${t}`,- maskContentUnits: "objectBoundingBox",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- x: "0",- y: "0",- width: "1",- height: "1",- fill: `url(#${e}-duotone-reverse-mask-gradient-${t})`- })- }),- /* @__PURE__ */ (0, V.jsx)("pattern", {- id: `${e}-duotone-reverse-${t}`,- patternUnits: "objectBoundingBox",- patternContentUnits: "objectBoundingBox",- width: "1",- height: "1",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- x: "0",- y: "0",- width: "1",- height: "1",- fill: `url(#${e}-duotone-reverse-colors-${t})`,- mask: `url(#${e}-duotone-reverse-mask-${t})`- })- })- ] });-}, _Ue = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsxs)("linearGradient", {- id: `${e}-gradient-mask-gradient`,- x1: "0",- y1: "0",- x2: "0",- y2: "1",- children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "20%",- stopColor: "white",- stopOpacity: 1- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "90%",- stopColor: "white",- stopOpacity: 0- })]- }),- /* @__PURE__ */ (0, V.jsx)("mask", {- id: `${e}-gradient-mask-${t}`,- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${e}-gradient-mask-gradient)`- })- }),- /* @__PURE__ */ (0, V.jsx)("pattern", {- id: `${e}-gradient-${t}`,- patternUnits: "userSpaceOnUse",- width: "100%",- height: "100%",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${e}-colors-${t})`,- mask: `url(#${e}-gradient-mask-${t})`- })- })-] }), vUe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsxs)("linearGradient", {- id: `${e}-stripped-mask-gradient`,- x1: "0",- y1: "0",- x2: "0",- y2: "1",- children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "0%",- stopColor: "white",- stopOpacity: .2- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "100%",- stopColor: "white",- stopOpacity: .2- })]- }),- /* @__PURE__ */ (0, V.jsx)("mask", {- id: `${e}-stripped-mask-${t}`,- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${e}-stripped-mask-gradient)`- })- }),- /* @__PURE__ */ (0, V.jsx)("pattern", {- id: `${e}-stripped-${t}`,- patternUnits: "userSpaceOnUse",- width: "100%",- height: "100%",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${e}-colors-${t})`,- mask: `url(#${e}-stripped-mask-${t})`- })- })-] }), yUe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {- id: `${e}-bar-glow-${t}`,- x: "-100%",- y: "-100%",- width: "300%",- height: "300%",- children: [- /* @__PURE__ */ (0, V.jsx)("feGaussianBlur", {- in: "SourceGraphic",- stdDeviation: "8",- result: "blur"- }),- /* @__PURE__ */ (0, V.jsx)("feColorMatrix", {- in: "blur",- type: "matrix",- values: "1 0 0 0 0\n 0 1 0 0 0\n 0 0 1 0 0\n 0 0 0 0.5 0",- result: "glow"- }),- /* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })- ]-}), bUe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {- let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);- return {- offset: `${(a * 100).toFixed(0)}%`,- opacity: Number(o.toFixed(3))- };+}), s8.startListening({+ actionCreator: a8,+ effect: (e, t) => {+ var n = t.getState();+ if (n.rootProps.accessibilityLayer !== !1) {+ var { keyboardInteraction: r } = n.tooltip;+ if (!r.active && r.index == null) {+ var i = "0", a = K1(n, "axis", "hover", String(i));+ t.dispatch(n1({+ active: !0,+ activeIndex: i,+ activeCoordinate: a+ }));+ }+ }+ }+}), s8.startListening({+ actionCreator: o8,+ effect: (e, t) => {+ var n = t.getState();+ if (n.rootProps.accessibilityLayer !== !1) {+ var { keyboardInteraction: r } = n.tooltip;+ r.active && t.dispatch(n1({+ active: !1,+ activeIndex: r.index,+ activeCoordinate: r.coordinate+ }));+ }+ }});-function xUe(e, t = 12) {- let [n, r] = (0, B.useState)(!1), i = (0, B.useCallback)(() => {- e && r((e) => !e);- }, [e]);- return {- loadingData: (0, B.useMemo)(() => zHe(t, 20, 80), [t, n]),- onShimmerExit: i- };+//#endregion+//#region node_modules/recharts/es6/util/createEventProxy.js+function d8(e) {+ e.persist();+ var { currentTarget: t } = e;+ return new Proxy(e, { get: (e, n) => {+ if (n === "currentTarget") return t;+ var r = Reflect.get(e, n);+ return typeof r == "function" ? r.bind(e) : r;+ } });}-var SUe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(f3, {- dataKey: ZHe,- fill: "currentColor",- fillOpacity: .15,- radius: q6,- isAnimationActive: !1,- legendType: "none",- style: { mask: `url(#${e}-loading-mask)` }-}), /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(CUe, {- chartId: e,- onShimmerExit: t-}) })] }), CUe = ({ chartId: e, onShimmerExit: t }) => {- let n = bUe(), r = (0, B.useRef)(-1);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)("linearGradient", {- id: `${e}-loading-mask-gradient`,- x1: "0",- y1: "0",- x2: "1",- y2: "0",- children: n.map(({ offset: e, opacity: t }) => /* @__PURE__ */ (0, V.jsx)("stop", {- offset: e,- stopColor: "white",- stopOpacity: t- }, e))- }),- /* @__PURE__ */ (0, V.jsx)("pattern", {- id: `${e}-loading-mask-pattern`,- patternUnits: "objectBoundingBox",- patternContentUnits: "objectBoundingBox",- patternTransform: "rotate(25)",- width: 3,- height: "1",- x: "0",- y: "0",- children: /* @__PURE__ */ (0, V.jsx)(ep.rect, {- y: "0",- width: "1",- height: "1",- fill: `url(#${e}-loading-mask-gradient)`,- initial: { x: -1 },- animate: { x: 2 },- transition: {- duration: QHe / 1e3,- ease: "linear",- repeat: Infinity,- repeatType: "loop"- },- onUpdate: (e) => {- let n = typeof e.x == "number" ? e.x : -1, i = r.current;- n >= 1 && i < 1 && t(), r.current = n;+//#endregion+//#region node_modules/recharts/es6/state/externalEventsMiddleware.js+var f8 = CW("externalEvent"), p8 = rG(), m8 = /* @__PURE__ */ new Map(), h8 = /* @__PURE__ */ new Map(), g8 = /* @__PURE__ */ new Map();+p8.startListening({+ actionCreator: f8,+ effect: (e, t) => {+ var { handler: n, reactEvent: r } = e.payload;+ if (n != null) {+ var i = r.type, a = d8(r);+ g8.set(i, {+ handler: n,+ reactEvent: a+ });+ var o = m8.get(i);+ o !== void 0 && (cancelAnimationFrame(o), m8.delete(i));+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = h8.get(i);+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), h8.delete(i));+ var f = () => {+ var e = g8.get(i);+ try {+ if (!e) return;+ var { handler: n, reactEvent: r } = e, a = t.getState(), o = {+ activeCoordinate: INe(a),+ activeDataKey: M1(a),+ activeIndex: A1(a),+ activeLabel: j1(a),+ activeTooltipIndex: A1(a),+ isTooltipActive: LNe(a)+ };+ n && n(o, r);+ } finally {+ m8.delete(i), h8.delete(i), g8.delete(i);}- })- }),- /* @__PURE__ */ (0, V.jsx)("mask", {- id: `${e}-loading-mask`,- maskUnits: "userSpaceOnUse",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: "100%",- height: "100%",- fill: `url(#${e}-loading-mask-pattern)`- })- })- ] });+ };+ if (!u) {+ f();+ return;+ }+ if (s === "raf") {+ var p = requestAnimationFrame(f);+ m8.set(i, p);+ } else if (typeof s == "number") {+ if (!h8.has(i)) {+ f();+ var m = setTimeout(f, s);+ h8.set(i, m);+ }+ } else f();+ }+ }+});+var XHe = $([+ $([u1], (e) => e.tooltipItemPayloads),+ (e, t) => t,+ (e, t, n) => n+], (e, t, n) => {+ if (t != null) {+ var r = e.find((e) => e.settings.graphicalItemId === n);+ if (r != null) {+ var { getPosition: i } = r;+ if (i != null) return i(t);+ }+ }+}), _8 = CW("touchMove"), v8 = rG(), y8 = null, b8 = null, x8 = null, S8 = null;+v8.startListening({+ actionCreator: _8,+ effect: (e, t) => {+ var n = e.payload;+ if (n.touches != null && n.touches.length !== 0) {+ S8 = d8(n);+ var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");+ y8 !== null && (cancelAnimationFrame(y8), y8 = null), b8 !== null && (typeof r != "number" || !a) && (clearTimeout(b8), b8 = null), x8 = Array.from(n.touches).map((e) => q6({+ clientX: e.clientX,+ clientY: e.clientY,+ currentTarget: n.currentTarget+ }));+ var o = () => {+ if (S8 != null) {+ var e = t.getState(), n = J$(e, e.tooltip.settings.shared);+ if (n === "axis") {+ var r = x8?.[0];+ if (r == null) {+ y8 = null, b8 = null;+ return;+ }+ var i = K6(e, r);+ i?.activeIndex != null && t.dispatch(e1({+ activeIndex: i.activeIndex,+ activeDataKey: void 0,+ activeCoordinate: i.activeCoordinate+ }));+ } else if (n === "item") {+ var a = S8.touches[0];+ if (document.elementFromPoint == null || a == null) return;+ var o = document.elementFromPoint(a.clientX, a.clientY);+ if (!o || !o.getAttribute) return;+ var s = o.getAttribute(AEe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = g1(e).find((e) => e.id === c);+ if (s == null || l == null || c == null) return;+ var { dataKey: u } = l, d = XHe(e, s, c);+ t.dispatch(Q$({+ activeDataKey: u,+ activeIndex: s,+ activeCoordinate: d,+ activeGraphicalItemId: c+ }));+ }+ y8 = null, b8 = null;+ }+ };+ if (!a) {+ o();+ return;+ }+ r === "raf" ? y8 = requestAnimationFrame(o) : typeof r == "number" && b8 === null && (o(), S8 = null, b8 = setTimeout(() => {+ S8 ? o() : (b8 = null, y8 = null);+ }, r));+ }+ }+});+//#endregion+//#region node_modules/recharts/es6/state/eventSettingsSlice.js+var C8 = {+ throttleDelay: "raf",+ throttledEvents: [+ "mousemove",+ "touchmove",+ "pointermove",+ "scroll",+ "wheel"+ ]+}, w8 = MW({+ name: "eventSettings",+ initialState: C8,+ reducers: { setEventSettings: (e, t) => {+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = UK(t.payload.throttledEvents));+ } }+}), { setEventSettings: ZHe } = w8.actions, QHe = w8.reducer, $He = dU({+ brush: gze,+ cartesianAxis: rRe,+ chartData: APe,+ errorBars: FBe,+ eventSettings: QHe,+ graphicalItems: NLe,+ layout: _Ee,+ legend: hDe,+ options: TPe,+ polarAxis: CIe,+ polarOptions: YHe,+ referenceElements: Dze,+ renderedTicks: tBe,+ rootProps: KHe,+ tooltip: dNe,+ zIndex: gPe+}), eUe = function(e) {+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";+ return UTe({+ reducer: $He,+ preloadedState: e,+ middleware: (e) => e({+ serializableCheck: !1,+ immutableCheck: ![+ "commonjs",+ "es6",+ "production"+ ].includes("es6")+ }).concat([+ Y6.middleware,+ Z6.middleware,+ s8.middleware,+ p8.middleware,+ v8.middleware+ ]),+ enhancers: (e) => {+ var t = e;+ return typeof e == "function" && (t = e()), t.concat(AW({ type: "raf" }));+ },+ devTools: cq.devToolsEnabled && {+ serialize: { replacer: GHe },+ name: `recharts-${t}`+ }+ });};-X6.Bar = rUe, X6.XAxis = iUe, X6.YAxis = aUe, X6.Grid = oUe, X6.Tooltip = sUe, X6.Legend = cUe, X6.Brush = U6;//#endregion-//#region src/react/charts/chart-card.tsx-var Q6 = `${xE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;-function $6({ title: e, figure: t, note: n }) {- return /* @__PURE__ */ (0, V.jsxs)("header", {- className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",- children: [/* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 flex-col gap-1",- children: [/* @__PURE__ */ (0, V.jsx)("h3", {- className: "text-title-2-medium text-text-primary",- children: e- }), /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-display-4-medium tabular-nums text-text-primary",- children: t- })]- }), /* @__PURE__ */ (0, V.jsx)("small", {- className: "min-w-0 text-caption-1-regular break-words text-text-secondary",- children: n- })]+//#region node_modules/recharts/es6/state/RechartsStoreProvider.js+function T8(e) {+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = PG(), a = (0, B.useRef)(null);+ if (i) return n;+ a.current ??= eUe(t, r);+ var o = KH;+ return /*#__PURE__*/ B.createElement(kDe, {+ context: o,+ store: a.current+ }, n);+}+//#endregion+//#region node_modules/recharts/es6/state/ReportMainChartProps.js+function tUe(e) {+ var { layout: t, margin: n } = e, r = qH(), i = PG();+ return (0, B.useEffect)(() => {+ i || (r(mEe(t)), r(pEe(n)));+ }, [+ r,+ i,+ t,+ n+ ]), null;+}+var E8 = /*#__PURE__*/ (0, B.memo)(tUe, ZK);+//#endregion+//#region node_modules/recharts/es6/state/ReportChartProps.js+function D8(e) {+ var t = qH();+ return (0, B.useEffect)(() => {+ t(qHe(e));+ }, [t, e]), null;+}+var O8 = /*#__PURE__*/ (0, B.memo)((e) => {+ var t = qH();+ return (0, B.useEffect)(() => {+ t(ZHe(e));+ }, [t, e]), null;+}, ZK);+//#endregion+//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js+function k8(e) {+ var { zIndex: t, isPanorama: n } = e, r = (0, B.useRef)(null), i = qH();+ return (0, B.useLayoutEffect)(() => (r.current && i(mPe({+ zIndex: t,+ element: r.current,+ isPanorama: n+ })), () => {+ i(hPe({+ zIndex: t,+ isPanorama: n+ }));+ }), [+ i,+ t,+ n+ ]), /*#__PURE__*/ B.createElement("g", {+ tabIndex: -1,+ ref: r,+ className: `recharts-zIndex-layer_${t}`});}-var e8 = [- "var(--color-chart-1)",- "var(--color-chart-2)",- "var(--color-chart-3)",- "var(--color-chart-4)",- "var(--color-chart-5)",- "var(--color-chart-6)"-], t8 = (e) => ({ light: [e] }), n8 = (e) => `s${e}`;-function wUe(e) {- return Object.fromEntries(e.map((e, t) => [n8(t), {- label: e,- colors: t8(e8[t % e8.length])- }]));+function A8(e) {+ var { children: t, isPanorama: n } = e, r = Q(aPe);+ if (!r || r.length === 0) return t;+ var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);+ return /*#__PURE__*/ B.createElement(B.Fragment, null, i.map((e) => /*#__PURE__*/ B.createElement(k8, {+ key: e,+ zIndex: e,+ isPanorama: n+ })), t, a.map((e) => /*#__PURE__*/ B.createElement(k8, {+ key: e,+ zIndex: e,+ isPanorama: n+ })));+}+//#endregion+//#region node_modules/recharts/es6/container/RootSurface.js+var nUe = ["children"];+function rUe(e, t) {+ if (e == null) return {};+ var n, r, i = iUe(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 iUe(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];+ }+ return n;+}+function j8() {+ return j8 = 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;+ }, j8.apply(null, arguments);+}+var aUe = {+ width: "100%",+ height: "100%",+ display: "block"+}, oUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var n = XG(), r = ZG(), i = fq();+ if (!cG(n) || !cG(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(qB, j8({}, o, {+ title: s,+ desc: c,+ role: u,+ tabIndex: l,+ width: n,+ height: r,+ style: aUe,+ ref: t+ }), a);+}), sUe = (e) => {+ var { children: t } = e, n = Q(IG);+ if (!n) return null;+ var { width: r, height: i, y: a, x: o } = n;+ return /*#__PURE__*/ B.createElement(qB, {+ width: r,+ height: i,+ x: o,+ y: a+ }, t);+}, M8 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var { children: n } = e, r = rUe(e, nUe);+ return PG() ? /*#__PURE__*/ B.createElement(sUe, null, /*#__PURE__*/ B.createElement(A8, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(oUe, j8({ ref: t }, r), /*#__PURE__*/ B.createElement(A8, { isPanorama: !1 }, n));+});+//#endregion+//#region node_modules/recharts/es6/util/useReportScale.js+function cUe() {+ var e = qH(), [t, n] = (0, B.useState)(null), r = Q(kEe);+ return (0, B.useEffect)(() => {+ if (t != null) {+ var n = t.getBoundingClientRect().width / t.offsetWidth;+ sG(n) && n !== r && e(gEe(n));+ }+ }, [+ t,+ e,+ r+ ]), n;+}+//#endregion+//#region node_modules/recharts/es6/chart/RechartsWrapper.js+function N8(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function lUe(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? N8(Object(n), !0).forEach(function(t) {+ uUe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N8(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function uUe(e, t, n) {+ return (t = dUe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function dUe(e) {+ var t = fUe(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function fUe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+function P8() {+ return P8 = 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;+ }, P8.apply(null, arguments);+}+var pUe = () => (zPe(), null);+function F8(e) {+ if (typeof e == "number") return e;+ if (typeof e == "string") {+ var t = parseFloat(e);+ if (!Number.isNaN(t)) return t;+ }+ return 0;+}+var mUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var n = (0, B.useRef)(null), [r, i] = (0, B.useState)({+ containerWidth: F8(e.style?.width),+ containerHeight: F8(e.style?.height)+ }), a = (0, B.useCallback)((e, t) => {+ i((n) => {+ var r = Math.round(e), i = Math.round(t);+ return n.containerWidth === r && n.containerHeight === i ? n : {+ containerWidth: r,+ containerHeight: i+ };+ });+ }, []), o = (0, B.useCallback)((e) => {+ if (typeof t == "function" && t(e), e != null && typeof ResizeObserver < "u") {+ var { width: r, height: i } = e.getBoundingClientRect();+ a(r, i);+ var o = new ResizeObserver((e) => {+ var t = e[0];+ if (t != null) {+ var { width: n, height: r } = t.contentRect;+ a(n, r);+ }+ });+ o.observe(e), n.current = o;+ }+ }, [t, a]);+ return (0, B.useEffect)(() => () => {+ n.current?.disconnect();+ }, [a]), /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {+ width: r.containerWidth,+ height: r.containerHeight+ }), /*#__PURE__*/ B.createElement("div", P8({ ref: o }, e)));+}), hUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var { width: n, height: r } = e, [i, a] = (0, B.useState)({+ containerWidth: F8(n),+ containerHeight: F8(r)+ }), o = (0, B.useCallback)((e, t) => {+ a((n) => {+ var r = Math.round(e), i = Math.round(t);+ return n.containerWidth === r && n.containerHeight === i ? n : {+ containerWidth: r,+ containerHeight: i+ };+ });+ }, []), s = (0, B.useCallback)((e) => {+ if (typeof t == "function" && t(e), e != null) {+ var { width: n, height: r } = e.getBoundingClientRect();+ o(n, r);+ }+ }, [t, o]);+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {+ width: i.containerWidth,+ height: i.containerHeight+ }), /*#__PURE__*/ B.createElement("div", P8({ ref: s }, e)));+}), gUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var { width: n, height: r } = e;+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {+ width: n,+ height: r+ }), /*#__PURE__*/ B.createElement("div", P8({ ref: t }, e)));+}), _Ue = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var { width: n, height: r } = e;+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement(hUe, P8({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(gUe, P8({}, e, {+ width: n,+ height: r,+ ref: t+ })) : /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {+ width: n,+ height: r+ }), /*#__PURE__*/ B.createElement("div", P8({ ref: t }, e)));+});+function vUe(e) {+ return e ? mUe : _Ue;+}+var yUe = /*#__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 = qH(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = cUe(), D = GG(), 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,+ t,+ C,+ T+ ]), j = (0, B.useCallback)((e) => {+ x(J6(e)), x(f8({+ handler: a,+ reactEvent: e+ }));+ }, [x, a]), M = (0, B.useCallback)((e) => {+ x(X6(e)), x(f8({+ handler: l,+ reactEvent: e+ }));+ }, [x, l]), N = (0, B.useCallback)((e) => {+ x($$()), x(f8({+ handler: u,+ reactEvent: e+ }));+ }, [x, u]), P = (0, B.useCallback)((e) => {+ x(X6(e)), x(f8({+ handler: d,+ reactEvent: e+ }));+ }, [x, d]), ee = (0, B.useCallback)(() => {+ x(a8());+ }, [x]), F = (0, B.useCallback)(() => {+ x(o8());+ }, [x]), I = (0, B.useCallback)((e) => {+ x(i8(e.key));+ }, [x]), te = (0, B.useCallback)((e) => {+ x(f8({+ handler: o,+ reactEvent: e+ }));+ }, [x, o]), ne = (0, B.useCallback)((e) => {+ x(f8({+ handler: s,+ reactEvent: e+ }));+ }, [x, s]), re = (0, B.useCallback)((e) => {+ x(f8({+ handler: c,+ reactEvent: e+ }));+ }, [x, c]), ie = (0, B.useCallback)((e) => {+ x(f8({+ handler: f,+ reactEvent: e+ }));+ }, [x, f]), ae = (0, B.useCallback)((e) => {+ x(f8({+ handler: h,+ reactEvent: e+ }));+ }, [x, h]), oe = (0, B.useCallback)((e) => {+ y && x(_8(e)), x(f8({+ handler: m,+ reactEvent: e+ }));+ }, [+ x,+ y,+ m+ ]), se = (0, B.useCallback)((e) => {+ x(f8({+ handler: p,+ reactEvent: e+ }));+ }, [x, p]), ce = vUe(v);+ return /*#__PURE__*/ B.createElement(t0.Provider, { value: S }, /*#__PURE__*/ B.createElement(XB.Provider, { value: w }, /*#__PURE__*/ B.createElement(ce, {+ width: O ?? g?.width,+ height: k ?? g?.height,+ className: _h("recharts-wrapper", r),+ style: lUe({+ position: "relative",+ cursor: "default",+ width: O,+ height: k+ }, g),+ onClick: j,+ onContextMenu: te,+ onDoubleClick: ne,+ onFocus: ee,+ onBlur: F,+ onKeyDown: I,+ onMouseDown: re,+ onMouseEnter: M,+ onMouseLeave: N,+ onMouseMove: P,+ onMouseUp: ie,+ onTouchEnd: se,+ onTouchMove: oe,+ onTouchStart: ae,+ ref: A+ }, /*#__PURE__*/ B.createElement(pUe, null), n)));+}), bUe = [+ "width",+ "height",+ "responsive",+ "children",+ "className",+ "style",+ "compact",+ "title",+ "desc"+];+function xUe(e, t) {+ if (e == null) return {};+ var n, r, i = SUe(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 SUe(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];+ }+ return n;}+var I8 = /*#__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 = UB(xUe(e, bUe));+ return c ? /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {+ width: n,+ height: r+ }), /*#__PURE__*/ B.createElement(M8, {+ otherAttributes: d,+ title: l,+ desc: u+ }, a)) : /*#__PURE__*/ B.createElement(yUe, {+ className: o,+ style: s,+ width: n,+ height: r,+ responsive: i ?? !1,+ onClick: e.onClick,+ onMouseLeave: e.onMouseLeave,+ onMouseEnter: e.onMouseEnter,+ onMouseMove: e.onMouseMove,+ onMouseDown: e.onMouseDown,+ onMouseUp: e.onMouseUp,+ onContextMenu: e.onContextMenu,+ onDoubleClick: e.onDoubleClick,+ onTouchStart: e.onTouchStart,+ onTouchMove: e.onTouchMove,+ onTouchEnd: e.onTouchEnd+ }, /*#__PURE__*/ B.createElement(M8, {+ otherAttributes: d,+ title: l,+ desc: u,+ ref: t+ }, /*#__PURE__*/ B.createElement(Oze, null, a)));+});//#endregion-//#region src/react/charts/chart-tip.tsx-var r8 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";-function i8({ swatch: e, name: t, value: n }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex w-full items-center gap-2",- children: [e, /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-1 items-center justify-between gap-4 leading-none",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- className: "text-muted-foreground",- children: t- }), /* @__PURE__ */ (0, V.jsx)("span", {- className: "font-mono font-medium tabular-nums text-foreground",- children: n.toLocaleString()- })]- })]- });+//#region node_modules/recharts/es6/chart/CartesianChart.js+function L8() {+ return L8 = 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;+ }, L8.apply(null, arguments);}-var a8 = "size-2.5 shrink-0 rounded-xs";-function TUe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {- let { config: o } = N6(), s = (t ?? []).filter((e) => e.type !== "none");- if (!e || !s.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });- let c = a || typeof n != "string" ? null : o[n]?.label ?? n;- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: r8,- children: [c ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "font-medium text-foreground",- children: c- }) : null, s.map((e, t) => {- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = L6(o, e, a), c = i ? n[i] : e.value;- return /* @__PURE__ */ (0, V.jsx)(i8, {- name: s?.label ?? e.name,- value: Number(c ?? 0),- swatch: /* @__PURE__ */ (0, V.jsx)("i", {- className: a8,- style: { background: `var(--color-${a}-0)` }- })- }, a + t);- })]- });+function R8(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;}-function o8({ nameKey: e, valueKey: t, hideLabel: n }) {- return /* @__PURE__ */ (0, V.jsx)(B6, {- cursor: !1,- content: /* @__PURE__ */ (0, V.jsx)(TUe, {- nameKey: e,- valueKey: t,- hideLabel: n- })- });+function CUe(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? R8(Object(n), !0).forEach(function(t) {+ wUe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R8(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;}-//#endregion-//#region src/react/charts/bar-card.tsx-var s8 = [0, (e) => e * 1.2], c8 = (e) => ({- position: e,- className: "fill-text-secondary",- formatter: (e) => Number(e).toLocaleString()-});-function l8({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {- let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({- name: e.name,- value: e.value- })), s = o.reduce((e, t) => e + t.value, 0);- if (!s) return null;- let c = a === "horizontal";- return /* @__PURE__ */ (0, V.jsxs)("section", {- className: Q6,- "aria-label": e,- children: [/* @__PURE__ */ (0, V.jsx)($6, {- title: e,- figure: s.toLocaleString(),- note: t- }), /* @__PURE__ */ (0, V.jsxs)(X6, {- data: o,- config: { value: {- label: n,- colors: t8(i)- } },- layout: a,- barRadius: 4,- className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",- children: [- /* @__PURE__ */ (0, V.jsx)(X6.Grid, {}),- c ? /* @__PURE__ */ (0, V.jsx)(X6.YAxis, {- dataKey: "name",- interval: 0- }) : /* @__PURE__ */ (0, V.jsx)(X6.XAxis, {- dataKey: "name",- interval: 0- }),- c ? /* @__PURE__ */ (0, V.jsx)(X6.XAxis, {- hide: !0,- domain: s8- }) : /* @__PURE__ */ (0, V.jsx)(X6.YAxis, {- hide: !0,- domain: s8- }),- /* @__PURE__ */ (0, V.jsx)(X6.Bar, {- dataKey: "value",- enableHoverHighlight: !0,- barProps: {- dataKey: "value",- label: c8(c ? "right" : "top")- }- }),- /* @__PURE__ */ (0, V.jsx)(o8, {})- ]- })]- });+function wUe(e, t, n) {+ return (t = TUe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;}-//#endregion-//#region src/react/charts/heat.ts-var u8 = [- "周一",- "周二",- "周三",- "周四",- "周五",- "周六",- "周日"-], d8 = (e, t) => e ? Math.max(.12, e / t) : 0;-function EUe(e) {- let t = Array.from({ length: 7 }, () => Array(24).fill(0));- for (let n of e?.hours || []) {- let { weekday: e, hour: r, count: i } = n;- !Number.isInteger(e) || e < 0 || e > 6 || !Number.isInteger(r) || r < 0 || r > 23 || !Number.isFinite(i) || i < 0 || (t[e][r] = (t[e][r] || 0) + i);+function TUe(e) {+ var t = EUe(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function EUe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");}- let n = t.flat(), r = Math.max(1, ...n);- return {- cells: t.flatMap((e, t) => e.map((e, n) => ({- key: `${t}-${n}`,- label: `${u8[t]} ${n}:00`,- count: e,- share: d8(e, r)- }))),- total: n.reduce((e, t) => e + t, 0)- };+ return (t === "string" ? String : Number)(e);}-function DUe(e) {- let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {- cells: [],- total: 0,- start: "",- end: ""- };- if (!t.length) return n;- let r = /* @__PURE__ */ new Date(`${t.at(-1).date}T00:00:00Z`), i = new Date(r);- i.setUTCDate(i.getUTCDate() - 90);- let a = new Map(t.map((e) => [e.date, e.count])), o = Math.max(1, ...t.map((e) => e.count)), s = Array.from({ length: 91 }, (e, t) => {- let n = new Date(i);- n.setUTCDate(i.getUTCDate() + t);- let r = n.toISOString().slice(0, 10), s = a.get(r) || 0;- return {- key: r,- label: r,- count: s,- share: d8(s, o)- };- });- return {- cells: s,- total: s.reduce((e, t) => e + t.count, 0),- start: i.toISOString().slice(0, 10),- end: t.at(-1).date+var DUe = CUe({+ accessibilityLayer: !0,+ barCategoryGap: "10%",+ barGap: 4,+ layout: "horizontal",+ margin: {+ top: 5,+ right: 5,+ bottom: 5,+ left: 5+ },+ responsive: !1,+ reverseStackOrder: !1,+ stackOffset: "none",+ syncMethod: "index"+}, C8), z8 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ var n = bH(e.categoricalChartProps, DUe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {+ chartName: r,+ defaultTooltipEventType: i,+ validateTooltipEventTypes: a,+ tooltipPayloadSearcher: o,+ eventEmitter: void 0};+ return /*#__PURE__*/ B.createElement(T8, {+ preloadedState: { options: c },+ reduxStoreName: s.id ?? r+ }, /*#__PURE__*/ B.createElement(g3, { chartData: s.data }), /*#__PURE__*/ B.createElement(E8, {+ layout: n.layout,+ margin: n.margin+ }), /*#__PURE__*/ B.createElement(O8, {+ throttleDelay: n.throttleDelay,+ throttledEvents: n.throttledEvents+ }), /*#__PURE__*/ B.createElement(D8, {+ baseValue: n.baseValue,+ accessibilityLayer: n.accessibilityLayer,+ barCategoryGap: n.barCategoryGap,+ maxBarSize: n.maxBarSize,+ stackOffset: n.stackOffset,+ barGap: n.barGap,+ barSize: n.barSize,+ syncId: n.syncId,+ syncMethod: n.syncMethod,+ className: n.className,+ reverseStackOrder: n.reverseStackOrder+ }), /*#__PURE__*/ B.createElement(I8, L8({}, n, { ref: t })));+}), OUe = ["axis"], kUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(z8, {+ chartName: "LineChart",+ defaultTooltipEventType: "axis",+ validateTooltipEventTypes: OUe,+ tooltipPayloadSearcher: a0,+ categoricalChartProps: e,+ ref: t+})), AUe = ["axis", "item"], B8 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(z8, {+ chartName: "BarChart",+ defaultTooltipEventType: "axis",+ validateTooltipEventTypes: AUe,+ tooltipPayloadSearcher: a0,+ categoricalChartProps: e,+ ref: t+}));+//#endregion+//#region node_modules/recharts/es6/state/ReportPolarOptions.js+function jUe(e) {+ var t = qH();+ return (0, B.useEffect)(() => {+ t(JHe(e));+ }, [t, e]), null;}//#endregion-//#region src/react/charts/heat-card.tsx-var f8 = 14, p8 = 17, m8 = {- 4: {- fill: "fill-chart-4",- dot: "bg-chart-4"+//#region node_modules/recharts/es6/chart/PolarChart.js+var MUe = ["layout"];+function V8() {+ return V8 = 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;+ }, V8.apply(null, arguments);+}+function NUe(e, t) {+ if (e == null) return {};+ var n, r, i = PUe(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 PUe(e, t) {+ if (e == null) return {};+ var n = {};+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {+ if (t.indexOf(r) !== -1) continue;+ n[r] = e[r];+ }+ return n;+}+function H8(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function FUe(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? H8(Object(n), !0).forEach(function(t) {+ IUe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H8(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function IUe(e, t, n) {+ return (t = LUe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function LUe(e) {+ var t = RUe(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function RUe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+var U8 = FUe({+ accessibilityLayer: !0,+ stackOffset: "none",+ barCategoryGap: "10%",+ barGap: 4,+ margin: {+ top: 5,+ right: 5,+ bottom: 5,+ left: 5},- 5: {- fill: "fill-chart-5",- dot: "bg-chart-5"+ reverseStackOrder: !1,+ syncMethod: "index",+ layout: "radial",+ responsive: !1,+ cx: "50%",+ cy: "50%",+ innerRadius: 0,+ outerRadius: "80%"+}, C8), W8 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ var n = bH(e.categoricalChartProps, U8), { layout: r } = n, i = NUe(n, MUe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {+ chartName: a,+ defaultTooltipEventType: o,+ validateTooltipEventTypes: s,+ tooltipPayloadSearcher: c,+ eventEmitter: void 0+ };+ return /*#__PURE__*/ B.createElement(T8, {+ preloadedState: { options: l },+ reduxStoreName: n.id ?? a+ }, /*#__PURE__*/ B.createElement(g3, { chartData: n.data }), /*#__PURE__*/ B.createElement(E8, {+ layout: r,+ margin: n.margin+ }), /*#__PURE__*/ B.createElement(O8, {+ throttleDelay: n.throttleDelay,+ throttledEvents: n.throttledEvents+ }), /*#__PURE__*/ B.createElement(D8, {+ baseValue: void 0,+ accessibilityLayer: n.accessibilityLayer,+ barCategoryGap: n.barCategoryGap,+ maxBarSize: n.maxBarSize,+ stackOffset: n.stackOffset,+ barGap: n.barGap,+ barSize: n.barSize,+ syncId: n.syncId,+ syncMethod: n.syncMethod,+ className: n.className,+ reverseStackOrder: n.reverseStackOrder+ }), /*#__PURE__*/ B.createElement(jUe, {+ cx: n.cx,+ cy: n.cy,+ startAngle: n.startAngle,+ endAngle: n.endAngle,+ innerRadius: n.innerRadius,+ outerRadius: n.outerRadius+ }), /*#__PURE__*/ B.createElement(I8, V8({}, i, { ref: t })));+});+//#endregion+//#region node_modules/recharts/es6/chart/RadarChart.js+function G8(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);}-}, OUe = {- start: "translate-x-0",- center: "-translate-x-1/2",- end: "-translate-x-full"-};-function kUe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- "aria-hidden": !0,- style: {- left: `${r}%`,- top: `${i}%`- },- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${r8} ${OUe[a]}`,- children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: "font-medium text-foreground",- children: e.label- }), /* @__PURE__ */ (0, V.jsx)(i8, {- name: t,- value: e.count,- swatch: /* @__PURE__ */ (0, V.jsx)("i", { className: `${a8} ${m8[n].dot}` })- })]- });+ return n;}-function h8({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {- let [l, u] = (0, B.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * p8, m = f + a * p8, h = (e) => ({- x: d + e % i * p8,- y: f + Math.floor(e / i) * p8- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + f8 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {- start: _.x,- center: _.x + f8 / 2,- end: _.x + f8- }[y] : 0;- return /* @__PURE__ */ (0, V.jsxs)("section", {- className: Q6,- children: [- /* @__PURE__ */ (0, V.jsx)($6, {- title: e,- figure: (g ? g.count : r).toLocaleString(),- note: g ? g.label : t.unit- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "relative",- children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: "min-w-0 overflow-x-auto",- children: /* @__PURE__ */ (0, V.jsxs)("svg", {- role: "img",- "aria-label": e,- onPointerLeave: () => u(-1),- viewBox: `0 0 ${p} ${m}`,- className: "block h-auto min-w-80 w-full",- children: [o, n.map((e, n) => {- let { x: r, y: i } = h(n);- return /* @__PURE__ */ (0, V.jsx)("rect", {- tabIndex: 0,- role: "img",- "aria-label": `${e.label},${e.count} ${t.cellUnit}`,- x: r,- y: i,- width: f8,- height: f8,- rx: 3,- fillOpacity: e.share || 1,- opacity: l >= 0 && l !== n ? .4 : 1,- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${m8[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",- onPointerEnter: () => u(n),- onFocus: () => u(n),- onBlur: () => u(-1)- }, e.key);- })]- })- }), g && _ ? /* @__PURE__ */ (0, V.jsx)(kUe, {- cell: g,- series: t.series,- tone: c,- anchor: y,- left: b / p * 100,- top: _.y / m * 100- }) : null]- }),- /* @__PURE__ */ (0, V.jsx)("footer", {- className: "flex flex-wrap justify-between gap-3 text-caption-1-regular text-text-secondary",- children: s- })- ]- });+function K8(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? G8(Object(n), !0).forEach(function(t) {+ zUe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G8(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;}-var AUe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [u8.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {- x: 0,- y: 18 + t * p8 + 7,- dominantBaseline: "middle",- className: "fill-text-secondary text-caption-1-regular",- children: e-}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, V.jsx)("text", {- x: 30 + t * p8,- y: 8,- dominantBaseline: "middle",- className: "fill-text-secondary text-caption-1-regular",- children: t-}, t))] });-function g8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {- let o = EUe(e), s = DUe(e);- return s.cells.length ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",- children: [/* @__PURE__ */ (0, V.jsx)(h8, {- title: t,- words: r,- tone: i,- cells: o.cells,- total: o.total,- columns: 24,- rows: 7,- axis: AUe,- footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })- }), /* @__PURE__ */ (0, V.jsx)(h8, {- title: n,- words: r,- tone: i,- cells: s.cells,- total: s.total,- columns: 13,- rows: 7,- footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, V.jsx)("span", { children: s.end })] })- })]- }) : a ? /* @__PURE__ */ (0, V.jsxs)("section", {- className: Q6,- children: [/* @__PURE__ */ (0, V.jsx)("h3", {- className: "text-title-2-medium text-text-primary",- children: t- }), /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: a- })]- }) : null;+function zUe(e, t, n) {+ return (t = BUe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function BUe(e) {+ var t = VUe(e, "string");+ return typeof t == "symbol" ? t : t + "";}+function VUe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+var HUe = ["axis"], UUe = K8(K8({}, U8), {}, {+ layout: "centric",+ startAngle: 90,+ endAngle: -270+}), WUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var n = bH(e, UUe);+ return /*#__PURE__*/ B.createElement(W8, {+ chartName: "RadarChart",+ defaultTooltipEventType: "axis",+ validateTooltipEventTypes: HUe,+ tooltipPayloadSearcher: a0,+ categoricalChartProps: n,+ ref: t+ });+}), GUe = ["axis"], KUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(z8, {+ chartName: "AreaChart",+ defaultTooltipEventType: "axis",+ validateTooltipEventTypes: GUe,+ tooltipPayloadSearcher: a0,+ categoricalChartProps: e,+ ref: t+}));//#endregion-//#region src/react/components/expandable-ranking.tsx-function _8({ children: e, className: t = "", previewCount: n = 10 }) {- let r = (0, B.useId)(), i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(!1), l = B.Children.toArray(e), u = l.length > n;- (0, B.useLayoutEffect)(() => {- let e = i.current;- if (!e || !u) return;- let t = () => {- let t = e.children[Math.min(n, e.children.length) - 1];- !t || !e.offsetWidth || (e.style.setProperty("--ranking-collapsed-height", `${t.offsetTop - e.offsetTop + t.offsetHeight}px`), e.style.setProperty("--ranking-expanded-height", `${e.scrollHeight}px`));- };- t();- let r = new ResizeObserver(t);- return r.observe(e), () => r.disconnect();- }, [- u,- n,- l.length- ]);- let d = l.map((e, t) => !(0, B.isValidElement)(e) || t < n ? e : (0, B.cloneElement)(e, { inert: !a || void 0 }));- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-expandable-ranking": !0,- "data-expandable": u || void 0,- "data-expanded": a || void 0,- "data-animating": s || void 0,- children: [/* @__PURE__ */ (0, V.jsx)("ol", {- id: r,- ref: i,- "data-expandable-ranking-list": !0,- className: t,- onTransitionEnd: (e) => {- e.target === i.current && e.propertyName === "max-height" && c(!1);- },- children: d- }), u ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-ranking-toggle": !0,- "aria-controls": r,- "aria-expanded": a,- "aria-label": a ? "收起排名" : "展开更多排名",- onClick: () => {- c(!0), o((e) => !e);- },- children: /* @__PURE__ */ (0, V.jsx)(oT, { "aria-hidden": !0 })- }) : null]+//#region node_modules/recharts/es6/chart/RadialBarChart.js+function q8(e, t) {+ var n = Object.keys(e);+ if (Object.getOwnPropertySymbols) {+ var r = Object.getOwnPropertySymbols(e);+ t && (r = r.filter(function(t) {+ return Object.getOwnPropertyDescriptor(e, t).enumerable;+ })), n.push.apply(n, r);+ }+ return n;+}+function J8(e) {+ for (var t = 1; t < arguments.length; t++) {+ var n = arguments[t] == null ? {} : arguments[t];+ t % 2 ? q8(Object(n), !0).forEach(function(t) {+ qUe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q8(Object(n)).forEach(function(t) {+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));+ });+ }+ return e;+}+function qUe(e, t, n) {+ return (t = JUe(t)) in e ? Object.defineProperty(e, t, {+ value: n,+ enumerable: !0,+ configurable: !0,+ writable: !0+ }) : e[t] = n, e;+}+function JUe(e) {+ var t = YUe(e, "string");+ return typeof t == "symbol" ? t : t + "";+}+function YUe(e, t) {+ if (typeof e != "object" || !e) return e;+ var n = e[Symbol.toPrimitive];+ if (n !== void 0) {+ var r = n.call(e, t || "default");+ if (typeof r != "object") return r;+ throw TypeError("@@toPrimitive must return a primitive value.");+ }+ return (t === "string" ? String : Number)(e);+}+var XUe = ["axis", "item"], ZUe = J8(J8({}, U8), {}, {+ layout: "radial",+ startAngle: 0,+ endAngle: 360+}), QUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var n = bH(e, ZUe);+ return /*#__PURE__*/ B.createElement(W8, {+ chartName: "RadialBarChart",+ defaultTooltipEventType: "axis",+ validateTooltipEventTypes: XUe,+ tooltipPayloadSearcher: a0,+ categoricalChartProps: n,+ ref: t});+});+//#endregion+//#region src/react/charts/cn.ts+function Y8(...e) {+ return gE(_h(e));}//#endregion-//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx-var jUe = "30%", MUe = "100%", v8 = 5, y8 = 14, NUe = 5, b8 = 1500, x8 = (0, B.createContext)(null);-function S8() {- let e = (0, B.use)(x8);- if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");+//#region src/react/evilcharts/registry/ui/recharts-chart.tsx+var X8 = {+ light: "",+ dark: ".dark"+}, Z8 = Object.keys(X8);+function $Ue(e) {+ for (let [t, n] of Object.entries(e)) if (n.colors && !Z8.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${Z8.join(", ")}). Received empty object or invalid keys.`);+}+var Q8 = B.createContext(null);+function $8() {+ let e = B.useContext(Q8);+ if (!e) throw Error("useChart must be used within a <ChartContainer />");return e;}-function C8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = jUe, outerRadius: l = MUe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {- let m = (0, B.useId)().replace(/:/g, ""), [h, g] = (0, B.useState)(u), _ = BUe(f), v = LUe(o), y = (0, B.useCallback)((e, t) => {- g(e), d?.(e === null ? null : {- dataKey: e,- value: t ?? 0- });- }, [d]), b = (0, B.useMemo)(() => t.map((e) => ({- ...e,- fill: `url(#${m}-radial-colors-${e[n]})`- })), [- t,- n,- m- ]), x = (0, B.useMemo)(() => ({- config: e,- nameKey: n,- chartId: m,- isLoading: f,- selectedBar: h,- selectBar: y- }), [- e,- n,- m,- f,- h,- y- ]);- return /* @__PURE__ */ (0, V.jsx)(x8, {- value: x,- children: /* @__PURE__ */ (0, V.jsxs)(P6, {- className: i,- config: e,- children: [/* @__PURE__ */ (0, V.jsx)(F6, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(IHe, {- id: m,- data: f ? _ : b,- innerRadius: c,- outerRadius: l,- startAngle: v.startAngle,- endAngle: v.endAngle,- cx: v.cx,- cy: v.cy,- ...a,- children: [- s != null && s > 0 && /* @__PURE__ */ (0, V.jsx)(E0, {- type: "number",- domain: [0, s],- tick: !1,- axisLine: !1- }),- p && /* @__PURE__ */ (0, V.jsx)(K6, { variant: p }),- r,- f && /* @__PURE__ */ (0, V.jsx)(VUe, {}),- /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(RUe, {- config: e,- chartId: m- }) })- ]- })]+function e5({ id: e, config: t, initialDimension: n = {+ width: 320,+ height: 200+}, className: r, children: i, footer: a, ...o }) {+ let s = B.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;+ return $Ue(t), /* @__PURE__ */ (0, V.jsx)(Q8.Provider, {+ value: { config: t },+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-slot": "chart",+ "data-chart": c,+ className: Y8("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),+ ...o,+ children: [+ /* @__PURE__ */ (0, V.jsx)(n5, {+ id: c,+ config: t+ }),+ /* @__PURE__ */ (0, V.jsx)(KG, {+ className: "min-h-0 w-full flex-1",+ initialDimension: n,+ children: i+ }),+ a+ ]})});}-function PUe({ dataKey: e, cornerRadius: t = v8, barSize: n = y8, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = S8();- return s ? null : /* @__PURE__ */ (0, V.jsx)(Y2, {- dataKey: e,- cornerRadius: t,- barSize: n,- background: r,- className: "drop-shadow-sm",- style: i ? { cursor: "pointer" } : void 0,- onClick: (t, n) => {- if (!i) return;- let r = t, a = r?.[o] ?? String(n), s = Number(r?.[e] ?? 0);- l(c === a ? null : a, s);- },- shape: (e) => {- let t = e[o], n = c === null || c === t;- return /* @__PURE__ */ (0, V.jsx)(HK, {- ...e,- opacity: i && !n ? .15 : 1,- className: "transition-opacity duration-200"- });- },- ...a- });-}-function FUe({ variant: e, roundness: t, defaultIndex: n }) {- let { nameKey: r, isLoading: i } = S8();- return i ? null : /* @__PURE__ */ (0, V.jsx)(B6, {- defaultIndex: n,- cursor: !1,- content: /* @__PURE__ */ (0, V.jsx)(z6, {- nameKey: r,- hideLabel: !0,- roundness: t,- variant: e+function t5({ isLoading: e }) {+ return e ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "text-primary bg-background flex items-center justify-center gap-2 rounded-md border px-2 py-0.5 text-sm",+ children: [/* @__PURE__ */ (0, V.jsx)("div", { className: "border-border border-t-primary h-3 w-3 animate-spin rounded-full border" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "Loading" })]})+ }) : null;+}+function eWe(e, t) {+ let n = e.length;+ if (n >= t) return e.slice(0, t);+ let r = [], i = Math.floor(t / n), a = t % n;+ for (let t = 0; t < n; t++) {+ let o = i + +(t >= n - a);+ for (let n = 0; n < o; n++) r.push(e[t]);+ }+ return r;+}+var n5 = ({ id: e, config: t }) => {+ let n = Object.entries(t).filter(([, e]) => e.colors);+ if (!n.length) return null;+ let r = (e) => n.flatMap(([t, n]) => {+ let r = n.colors?.[e];+ return !r || !Array.isArray(r) || r.length === 0 ? [] : eWe(r, i5(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);+ }).filter(Boolean).join("\n"), i = Object.entries(X8).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");+ return /* @__PURE__ */ (0, V.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });+};+function r5(e, t, n) {+ if (typeof t != "object" || !t) return;+ let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;+ return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];+}+function i5(e) {+ if (!e.colors) return 1;+ let t = Z8.map((t) => e.colors?.[t]?.length ?? 0);+ return Math.max(...t, 1);+}+var tWe = (e = 10, t = 0, n = 70) => {+ let r = n - t;+ return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));+}, nWe = {+ sm: "rounded-sm",+ md: "rounded-md",+ lg: "rounded-lg",+ xl: "rounded-xl"+}, rWe = {+ default: "bg-background",+ "frosted-glass": "bg-background/70 backdrop-blur-sm"+};+function a5({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {+ let { config: h } = $8(), g = B.useMemo(() => {+ if (i || !t?.length) return null;+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = r5(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;+ return s ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: Y8("font-medium", c),+ children: s(a, t)+ }) : a ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: Y8("font-medium", c),+ children: a+ }) : null;+ }, [+ o,+ s,+ t,+ i,+ c,+ h,+ d+ ]);+ if (!e || !t?.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });+ let _ = t.length === 1 && r !== "dot";+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: Y8("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", nWe[p], rWe[m], n),+ children: [_ ? null : g, /* @__PURE__ */ (0, V.jsx)("div", {+ className: "grid gap-1.5",+ children: t.filter((e) => e.type !== "none").map((e, t) => {+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = r5(h, e, n), o = i ? i5(i) : 1;+ return /* @__PURE__ */ (0, V.jsx)("div", {+ className: Y8("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),+ children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, V.jsx)("div", {+ className: Y8("shrink-0 rounded-[2px]", {+ "h-2.5 w-2.5": r === "dot",+ "w-1": r === "line",+ "w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",+ "my-0.5": _ && r === "dashed"+ }),+ style: iWe(n, o)+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ className: Y8("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "grid gap-1.5",+ children: [_ ? g : null, /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-muted-foreground",+ children: i?.label ?? e.name+ })]+ }), e.value != null && /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-foreground font-mono font-medium tabular-nums",+ children: typeof e.value == "number" ? e.value.toLocaleString() : String(e.value)+ })]+ })] })+ }, t);+ })+ })]});}-function IUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = S8();- return a ? null : /* @__PURE__ */ (0, V.jsx)(H6, {- verticalAlign: n,- align: t,- content: /* @__PURE__ */ (0, V.jsx)(V6, {- selected: o,- onSelectChange: s,- isClickable: r,- nameKey: i,- variant: e+function iWe(e, t) {+ return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };+}+var o5 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, V.jsx)(qPe, {+ animationDuration: e,+ ...t+});+//#endregion+//#region src/react/evilcharts/registry/ui/recharts-legend.tsx+function s5({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {+ let { config: u } = $8();+ return r?.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: Y8("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),+ children: r.filter((e) => e.type !== "none").map((e) => {+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = r5(u, e, r), a = o === null || o === r, d = i ? i5(i) : 1;+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: Y8("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),+ onClick: () => {+ c && s?.(o === r ? null : r);+ },+ children: [i?.icon && !t ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : /* @__PURE__ */ (0, V.jsx)(aWe, {+ variant: l,+ dataKey: r,+ colorsCount: d+ }), i?.label]+ }, r);})- });+ }) : null;}-function LUe(e) {+function aWe({ variant: e, dataKey: t, colorsCount: n }) {+ let r = oWe(t, n), i = sWe(t, n);switch (e) {- case "semi": return {- startAngle: 180,- endAngle: 0,- cx: "50%",- cy: "70%"- };- default: return {- startAngle: 90,- endAngle: -270,- cx: "50%",- cy: "50%"- };+ case "square": return /* @__PURE__ */ (0, V.jsx)("div", {+ className: "h-2 w-2 shrink-0",+ style: r+ });+ case "circle": return /* @__PURE__ */ (0, V.jsx)("div", {+ className: "h-2 w-2 shrink-0 rounded-full",+ style: r+ });+ case "circle-outline": return /* @__PURE__ */ (0, V.jsx)("div", {+ className: "h-2.5 w-2.5 shrink-0 rounded-full p-[1.5px]",+ style: i+ });+ case "vertical-bar": return /* @__PURE__ */ (0, V.jsx)("div", {+ className: "h-3 w-1 shrink-0 rounded-[2px]",+ style: r+ });+ case "horizontal-bar": return /* @__PURE__ */ (0, V.jsx)("div", {+ className: "h-1 w-3 shrink-0 rounded-[2px]",+ style: r+ });+ case "rounded-square-outline": return /* @__PURE__ */ (0, V.jsx)("div", {+ className: "h-2.5 w-2.5 shrink-0 rounded-[3px] p-[1.5px]",+ style: i+ });+ default: return /* @__PURE__ */ (0, V.jsx)("div", {+ className: "h-2 w-2 shrink-0 rounded-[2px]",+ style: r+ });}}-var RUe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Object.entries(e).map(([e, n]) => {- let r = R6(n);- return /* @__PURE__ */ (0, V.jsx)("linearGradient", {- id: `${t}-radial-colors-${e}`,- x1: "0",- y1: "0",- x2: "1",- y2: "1",- children: r === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "0%",- stopColor: `var(--color-${e}-0)`- }), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "100%",- stopColor: `var(--color-${e}-0)`- })] }) : Array.from({ length: r }, (t, n) => {- let i = `${n / (r - 1) * 100}%`;- return /* @__PURE__ */ (0, V.jsx)("stop", {- offset: i,- stopColor: `var(--color-${e}-${n}, var(--color-${e}-0))`- }, i);- })- }, `${t}-radial-colors-${e}`);-}) });-function zUe() {- return Array.from({ length: NUe }, (e, t) => ({- name: `loading${t}`,- value: 40 + Math.random() * 60- }));+function oWe(e, t) {+ return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };}-function BUe(e) {- let [t, n] = (0, B.useState)(0);- return (0, B.useEffect)(() => {- if (!e) return;- let t = setInterval(() => {- n((e) => e + 1);- }, b8);- return () => clearInterval(t);- }, [e]), (0, B.useMemo)(() => zUe(), [t]);+function sWe(e, t) {+ let n = {+ WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",+ WebkitMaskComposite: "xor",+ mask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",+ maskComposite: "exclude"+ };+ return t <= 1 ? {+ backgroundColor: `var(--color-${e}-0)`,+ ...n+ } : {+ background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})`,+ ...n+ };}-var VUe = () => /* @__PURE__ */ (0, V.jsx)(Y2, {- dataKey: "value",- cornerRadius: v8,- barSize: y8,- background: !0,- isAnimationActive: !0,- animationDuration: b8,- animationEasing: "ease-in-out",- shape: (e) => /* @__PURE__ */ (0, V.jsx)(HK, {- ...e,- fill: "currentColor",- fillOpacity: .25- })-});-C8.RadialBar = PUe, C8.Tooltip = FUe, C8.Legend = IUe;-//#endregion-//#region src/react/stats/radial-card.tsx-var HUe = [- "bg-chart-1",- "bg-chart-2",- "bg-chart-3",- "bg-chart-4",- "bg-chart-5",- "bg-chart-6"-], UUe = [- "aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",- "aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",- "aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",- "aria-pressed:bg-chart-4/10 aria-pressed:ring-chart-4",- "aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",- "aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"-];-function w8({ title: e, rows: t, unit: n = "个视频" }) {- let [r, i] = (0, B.useState)(-1), [a, o] = (0, B.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);- if (!s.length) return null;- let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({- slice: n8(t),- value: e.value- }));- return /* @__PURE__ */ (0, V.jsxs)("section", {- className: Q6,+var c5 = tq, l5 = () => null, u5 = {+ stiffness: 300,+ damping: 35,+ mass: .8+};+function cWe({ range: e, totalPoints: t, containerRef: n, commit: r }) {+ let i = B.useRef(null), [a, o] = B.useState(!1), s = (0, B.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, B.useCallback)((t, n) => {+ t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {+ type: n,+ originX: t.clientX,+ originRange: { ...e }+ }, o(!0);+ }, [e]), l = (0, B.useCallback)((e) => {+ let n = i.current;+ if (!n) return;+ let a = s(e.clientX - n.originX), { type: o, originRange: c } = n;+ if (o === "left") r({+ startIndex: c.startIndex + a,+ endIndex: c.endIndex+ }, "left");+ else if (o === "right") r({+ startIndex: c.startIndex,+ endIndex: c.endIndex + a+ }, "right");+ else {+ let e = c.endIndex - c.startIndex, n = c.startIndex + a, i = n + e;+ n < 0 && (n = 0, i = e), i > t - 1 && (i = t - 1, n = Math.max(0, i - e)), r({+ startIndex: n,+ endIndex: i+ }, "middle");+ }+ }, [+ s,+ t,+ r+ ]), u = (0, B.useCallback)((e) => {+ e.target.releasePointerCapture(e.pointerId), i.current = null, o(!1);+ }, []);+ return {+ isDragging: a,+ bind: (0, B.useCallback)((e) => ({+ onPointerDown: (t) => c(t, e),+ onPointerMove: l,+ onPointerUp: u+ }), [+ c,+ l,+ u+ ])+ };+}+function lWe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {+ let x = B.useRef(null), S = B.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = B.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = B.useState(() => ({+ startIndex: Math.max(0, Math.min(p, C - 1)),+ endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))+ })), O = B.useRef(E);+ (0, B.useEffect)(() => {+ T || D((e) => {+ let t = {+ startIndex: Math.min(e.startIndex, Math.max(0, C - 1)),+ endIndex: Math.min(e.endIndex, Math.max(0, C - 1))+ };+ return O.current = t, t;+ });+ }, [C, T]);+ let k = (0, B.useCallback)((e, t) => {+ let { startIndex: n, endIndex: r } = e, i = Math.max(0, C - 1);+ if (n = Math.max(0, Math.min(n, i)), r = Math.max(0, Math.min(r, i)), t === "left") {+ let e = Math.max(0, r - v);+ return n = Math.min(n, e), {+ startIndex: n,+ endIndex: r+ };+ }+ if (t === "right") {+ let e = Math.min(i, n + v);+ return r = Math.max(r, e), {+ startIndex: n,+ endIndex: r+ };+ }+ return r - n < v && (r = Math.min(n + v, i), r - n < v && (n = Math.max(0, r - v))), {+ startIndex: n,+ endIndex: r+ };+ }, [C, v]), { isDragging: A, bind: j } = cWe({+ range: E,+ totalPoints: C,+ containerRef: x,+ commit: (0, B.useCallback)((e, t) => {+ let n = k(e, t), r = O.current;+ (r.startIndex !== n.startIndex || r.endIndex !== n.endIndex) && (O.current = n, D(n), B.startTransition(() => {+ h?.(n);+ }));+ }, [k, h])+ }), M = E;+ (0, B.useEffect)(() => {+ if (T && !A) {+ let e = {+ startIndex: d,+ endIndex: f+ };+ D(e), O.current = e;+ }+ }, [+ T,+ d,+ f,+ A+ ]);+ let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = Hf(N), F = Hf(P);+ ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);+ let I = Yf(ee, u5), te = Yf(F, u5), ne = Gf(I, (e) => `${e}%`), re = Gf(te, (e) => `${e}%`), ie = Gf(I, (e) => `${e}%`), ae = Gf(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Hf(`${Math.max(0, P - N)}%`), se = (0, B.useCallback)(() => {+ oe.set(`${Math.max(0, te.get() - I.get())}%`);+ }, [+ I,+ te,+ oe+ ]);+ Vf(I, "change", se), Vf(te, "change", se);+ let ce = (0, B.useCallback)((t) => {+ if (!r) return String(t);+ let n = e[t]?.[r];+ return g ? g(n, t) : String(n ?? t);+ }, [+ e,+ r,+ g+ ]);+ return C === 0 ? null : /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: x,+ "data-chart": b ? void 0 : w,+ className: Y8("group relative select-none", o),+ style: { height: a },children: [- /* @__PURE__ */ (0, V.jsxs)("header", {- className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",- children: [/* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 flex-col gap-1",- children: [/* @__PURE__ */ (0, V.jsx)("h3", {- className: "text-title-2-medium text-text-primary",- children: u ? u.name : e- }), /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-display-4-medium tabular-nums text-text-primary",- children: (u ? u.value : l).toLocaleString()- })]- }), /* @__PURE__ */ (0, V.jsx)("small", {- className: "text-caption-1-regular text-text-secondary",- children: n- })]+ !b && /* @__PURE__ */ (0, V.jsx)(n5, {+ id: w,+ config: t}),/* @__PURE__ */ (0, V.jsx)("div", {- role: "img",- "aria-label": e,- onPointerLeave: () => o(-1),- children: /* @__PURE__ */ (0, V.jsxs)(C8, {- data: f,- nameKey: "slice",- config: wUe(s.map((e) => e.name)),- max: Sxe(s.map((e) => e.value)),- innerRadius: "22%",- className: "aspect-auto h-75 max-sm:h-65",- children: [/* @__PURE__ */ (0, V.jsx)(C8.RadialBar, {- dataKey: "value",- barSize: Cxe(s.length),- radialBarProps: {- shape: (e) => /* @__PURE__ */ (0, V.jsx)(HK, {- ...e,- opacity: c >= 0 && c !== e.index ? .3 : 1,- className: "cursor-pointer transition-opacity duration-200"- }),- onClick: (e, t) => d(t),- onMouseEnter: (e, t) => o(t)- }- }), /* @__PURE__ */ (0, V.jsx)(o8, {- nameKey: "slice",- hideLabel: !0- })]+ className: "absolute inset-0 overflow-hidden rounded-md",+ children: /* @__PURE__ */ (0, V.jsx)(uWe, {+ data: e,+ keys: S,+ chartConfig: t,+ variant: i,+ curveType: _,+ chartId: w,+ stacked: s,+ strokeVariant: c === "animated-dashed" ? "dashed" : c,+ connectNulls: l,+ barRadius: u})}),- /* @__PURE__ */ (0, V.jsx)("div", {- className: "inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2",- children: s.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "aria-pressed": r === t,- onClick: () => d(t),- onPointerEnter: () => o(t),- onPointerLeave: () => o(-1),- onFocus: () => o(t),- onBlur: () => o(-1),- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${UUe[t % 6]}`,- children: [- /* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsx)("i", {- "aria-hidden": !0,- className: `size-3 shrink-0 rounded-sm ${HUe[t % 6]}`- }), e.name]- }),- /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-title-2-medium tabular-nums text-text-primary",- children: e.value.toLocaleString()- }),- e.detail ? /* @__PURE__ */ (0, V.jsx)("small", {- className: "text-caption-1-regular text-text-secondary",- children: e.detail- }) : null- ]- }, e.name))+ /* @__PURE__ */ (0, V.jsx)(ep.div, {+ className: "bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]",+ style: { width: ie }+ }),+ /* @__PURE__ */ (0, V.jsx)(ep.div, {+ className: "bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]",+ style: { width: ae }+ }),+ /* @__PURE__ */ (0, V.jsx)(ep.div, {+ className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",+ style: {+ left: ne,+ width: oe+ },+ ...j("middle")+ }),+ /* @__PURE__ */ (0, V.jsx)(d5, {+ side: "left",+ position: ne,+ label: y ? ce(M.startIndex) : void 0,+ bind: j("left")+ }),+ /* @__PURE__ */ (0, V.jsx)(d5, {+ side: "right",+ position: re,+ label: y ? ce(M.endIndex) : void 0,+ bind: j("right")})]});}-//#endregion-//#region src/react/stats/stats-page.tsx-var WUe = 10, T8 = e8[5], GUe = e8[4], KUe = `${xE()} flex flex-col gap-4`, qUe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", JUe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", YUe = "开始播放后,这里会显示最近的真实观看证据。", XUe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", ZUe = "添加媒体文件夹后,这里会显示存储空间。";-function E8({ term: e, value: t }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: e- }), /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-title-3-medium tabular-nums text-text-primary",- children: t.toLocaleString()+function d5({ side: e, position: t, label: n, bind: r }) {+ let i = e === "left";+ return /* @__PURE__ */ (0, V.jsxs)(ep.div, {+ className: "absolute inset-y-0 z-10",+ style: { left: t },+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ className: Y8("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),+ ...r,+ children: /* @__PURE__ */ (0, V.jsx)("div", {+ className: Y8("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-[2px]",+ children: [+ /* @__PURE__ */ (0, V.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" }),+ /* @__PURE__ */ (0, V.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" }),+ /* @__PURE__ */ (0, V.jsx)("div", { className: "bg-background/70 h-[2px] w-[2px] rounded-full" })+ ]+ })+ })+ }), n && /* @__PURE__ */ (0, V.jsx)("div", {+ className: Y8("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),+ children: n})]});}-function D8({ term: e, value: t, total: n }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",- children: [/* @__PURE__ */ (0, V.jsxs)("p", {- className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",- children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e }), /* @__PURE__ */ (0, V.jsxs)("b", {- className: "tabular-nums",- children: [t.toLocaleString(), /* @__PURE__ */ (0, V.jsxs)("span", {- className: "ml-1.5 text-caption-1-regular text-text-secondary",- children: [yz(t, n), "%"]- })]- })]- }), /* @__PURE__ */ (0, V.jsx)(EE, {- label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,- value: t,- max: Math.max(n, 1)+function uWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {+ let u = B.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({+ dataKey: e,+ colorsCount: i5(t)+ })), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, V.jsxs)("linearGradient", {+ id: `${a}-zm-vertical-fade`,+ x1: "0",+ y1: "0",+ x2: "0",+ y2: "1",+ children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "0%",+ stopColor: "white",+ stopOpacity: .15+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "100%",+ stopColor: "white",+ stopOpacity: 0})]+ }), u.map(({ dataKey: e, colorsCount: t }) => {+ let n = t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "0%",+ stopColor: `var(--color-${e}-0)`+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "100%",+ stopColor: `var(--color-${e}-0)`+ })] }) : Array.from({ length: t }, (n, r) => /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: `${r / (t - 1) * 100}%`,+ stopColor: `var(--color-${e}-${r}, var(--color-${e}-0))`+ }, r));+ return /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("linearGradient", {+ id: `${a}-zm-${e}`,+ x1: "0",+ y1: "0",+ x2: "0",+ y2: "1",+ children: n+ }), r === "area" && /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("mask", {+ id: `${a}-zm-fill-mask-${e}`,+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${a}-zm-vertical-fade)`+ })+ }), /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: `${a}-zm-fill-${e}`,+ patternUnits: "userSpaceOnUse",+ width: "100%",+ height: "100%",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${a}-zm-${e})`,+ mask: `url(#${a}-zm-fill-mask-${e})`+ })+ })] })] }, e);+ })] });+ if (r === "line") return /* @__PURE__ */ (0, V.jsx)(KG, {+ width: "100%",+ height: "100%",+ children: /* @__PURE__ */ (0, V.jsxs)(kUe, {+ data: e,+ margin: {+ top: 4,+ right: 0,+ bottom: 0,+ left: 0+ },+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(i6, {+ type: i,+ dataKey: e,+ stroke: `url(#${a}-zm-${e})`,+ strokeWidth: 1,+ strokeOpacity: .5,+ strokeDasharray: d,+ connectNulls: c,+ dot: !1,+ activeDot: !1,+ isAnimationActive: !1+ }, e))]+ })});-}-function O8({ term: e, figure: t, unit: n }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",- children: [- /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: e- }),- /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-display-4-medium tabular-nums text-text-primary",- children: t- }),- /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-body-2-regular text-text-secondary",- children: n+ if (r === "bar") {+ let n = l ?? 3;+ return /* @__PURE__ */ (0, V.jsx)(KG, {+ width: "100%",+ height: "100%",+ children: /* @__PURE__ */ (0, V.jsxs)(B8, {+ data: e,+ margin: {+ top: 2,+ right: 0,+ bottom: 0,+ left: 0+ },+ barGap: 2,+ barSize: 14,+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(M6, {+ dataKey: e,+ fill: `url(#${a}-zm-${e})`,+ fillOpacity: .35,+ stackId: o ? "zm-stack" : void 0,+ isAnimationActive: !1,+ radius: [+ n,+ n,+ n,+ n+ ]+ }, e))]})- ]+ });+ }+ return /* @__PURE__ */ (0, V.jsx)(KG, {+ width: "100%",+ height: "100%",+ children: /* @__PURE__ */ (0, V.jsxs)(KUe, {+ data: e,+ margin: {+ top: 4,+ right: 0,+ bottom: 0,+ left: 0+ },+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(y6, {+ type: i,+ dataKey: e,+ stroke: `url(#${a}-zm-${e})`,+ fill: `url(#${a}-zm-fill-${e})`,+ strokeWidth: 1,+ strokeOpacity: .5,+ strokeDasharray: d,+ connectNulls: c,+ fillOpacity: 1,+ stackId: o ? "zm-stack" : void 0,+ dot: !1,+ activeDot: !1,+ isAnimationActive: !1+ }, e))]+ })});}-function k8({ headline: e, children: t }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: `${KUe} md:flex-row md:gap-6`,- children: [e, /* @__PURE__ */ (0, V.jsx)("div", {- className: "min-w-0 grow",- children: t- })]- });+function dWe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {+ let [r, i] = B.useState({+ startIndex: t,+ endIndex: n ?? Math.max(0, e.length - 1)+ }), a = B.useDeferredValue(r);+ return (0, B.useEffect)(() => {+ i({+ startIndex: 0,+ endIndex: Math.max(0, e.length - 1)+ });+ }, [e.length]), {+ range: r,+ visibleData: B.useMemo(() => e.slice(a.startIndex, a.endIndex + 1), [+ e,+ a.startIndex,+ a.endIndex+ ]),+ brushProps: {+ startIndex: r.startIndex,+ endIndex: r.endIndex,+ onChange: i+ }+ };}-function QUe({ data: e, configurable: t, openMediaSettings: n }) {- return e.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-5",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "inline-grid w-full gap-5 md:grid-cols-2",- children: [/* @__PURE__ */ (0, V.jsx)(w8, {- title: "网盘与本地",- rows: e.by_loc.map((e) => ({- name: se[e.k] ?? e.k,- value: e.videos,- detail: pe(e.bytes)- }))- }), /* @__PURE__ */ (0, V.jsx)(w8, {- title: "媒体库",- rows: e.by_library.map((e) => ({- name: e.name,- value: e.videos,- detail: pe(e.bytes)- }))- })]- }), /* @__PURE__ */ (0, V.jsxs)("div", {- className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",- children: [- /* @__PURE__ */ (0, V.jsx)(l8, {- title: "时长",- unit: "个视频",- series: "视频",- color: T8,- rows: Dxe(e.by_length)- }),- /* @__PURE__ */ (0, V.jsx)(l8, {- title: "画质",- unit: "个视频",- series: "视频",- color: T8,- rows: Sz(e.by_quality)- }),- /* @__PURE__ */ (0, V.jsx)(l8, {- title: "文件类型",- unit: "个条目",- series: "条目",- color: T8,- layout: "horizontal",- rows: Txe(e.by_medium)+var fWe = {+ dots: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "20",+ height: "20",+ patternUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("circle", {+ className: "text-border dark:text-border",+ cx: "2",+ cy: "2",+ r: "1",+ fill: "currentColor"+ })+ }),+ grid: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "20",+ height: "20",+ patternUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ className: "text-border dark:text-border",+ d: "M 20 0 L 0 0 0 20",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "0.5"+ })+ }),+ plus: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "16",+ height: "16",+ patternUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ className: "text-border dark:text-border",+ d: "M 8 4 L 8 12 M 4 8 L 12 8",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "0.5",+ strokeLinecap: "round"+ })+ }),+ bubbles: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "100",+ height: "100",+ patternUnits: "userSpaceOnUse",+ patternTransform: "scale(0.6667)",+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ className: "text-border dark:text-border",+ d: "M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z",+ fill: "currentColor",+ fillOpacity: "0.4",+ fillRule: "evenodd"+ })+ }),+ "cross-hatch": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "20",+ height: "20",+ patternUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ className: "text-border/60 dark:text-border/50",+ d: "M 0 0 L 20 20 M 20 0 L 0 20",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "0.5"+ })+ }),+ "diagonal-lines": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "6",+ height: "6",+ patternUnits: "userSpaceOnUse",+ patternTransform: "rotate(45)",+ children: /* @__PURE__ */ (0, V.jsx)("line", {+ className: "text-border dark:text-border",+ x1: "0",+ y1: "0",+ x2: "0",+ y2: "6",+ stroke: "currentColor",+ strokeWidth: "0.5"+ })+ }),+ "falling-triangles": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "18",+ height: "36",+ patternUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ className: "text-border dark:text-border",+ d: "M2 6h12L8 18 2 6zm18 36h12l-6 12-6-12z",+ transform: "scale(0.5)",+ fill: "currentColor",+ fillOpacity: "0.4"+ })+ }),+ "4-pointed-star": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "16",+ height: "16",+ patternUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("polygon", {+ className: "text-border dark:text-border",+ fillRule: "evenodd",+ points: "5 3 8 4 5 5 4 8 3 5 0 4 3 3 4 0 5 3",+ fill: "currentColor",+ fillOpacity: "0.4"+ })+ }),+ "tiny-checkers": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "8",+ height: "8",+ patternUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ className: "text-border dark:text-border",+ fillRule: "evenodd",+ d: "M0 0h4v4H0V0zm4 4h4v4H4V4z",+ fill: "currentColor",+ fillOpacity: "0.2"+ })+ }),+ "overlapping-circles": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "40",+ height: "40",+ patternUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ className: "text-border dark:text-border",+ fillRule: "evenodd",+ d: "M25 25c0-2.762 2.238-5 5-5s5 2.238 5 5-2.238 5-5 5c0 2.762-2.238 5-5 5s-5-2.238-5-5 2.238-5 5-5zM5 5c0-2.762 2.238-5 5-5s5 2.238 5 5-2.238 5-5 5c0 2.762-2.238 5-5 5S0 12.762 0 10s2.238-5 5-5zm5 4c2.209 0 4-1.791 4-4s-1.791-4-4-4-4 1.791-4 4 1.791 4 4 4zm20 20c2.209 0 4-1.791 4-4s-1.791-4-4-4-4 1.791-4 4 1.791 4 4 4z",+ fill: "currentColor",+ fillOpacity: "0.4"+ })+ }),+ "wiggle-lines": ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: e,+ x: "0",+ y: "0",+ width: "52",+ height: "26",+ patternUnits: "userSpaceOnUse",+ patternTransform: "scale(0.6)",+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ className: "text-border dark:text-border",+ d: "M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z",+ fill: "currentColor",+ fillOpacity: "0.4"+ })+ })+};+function f5({ variant: e }) {+ let t = (0, B.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = fWe[e];+ return /* @__PURE__ */ (0, V.jsxs)(Z1, {+ zIndex: -1,+ children: [/* @__PURE__ */ (0, V.jsxs)("defs", { children: [+ /* @__PURE__ */ (0, V.jsx)(a, { id: n }),+ /* @__PURE__ */ (0, V.jsx)("filter", {+ id: i,+ children: /* @__PURE__ */ (0, V.jsx)("feGaussianBlur", { stdDeviation: "25" })+ }),+ /* @__PURE__ */ (0, V.jsx)("mask", {+ id: r,+ maskUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ x: "8%",+ y: "20%",+ width: "85%",+ height: "60%",+ fill: "white",+ filter: `url(#${i})`})- ]+ })+ ] }), /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${n})`,+ mask: `url(#${r})`})]- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- shell: "plain",- icon: Sae,- title: "还没有视频",- actions: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t ? /* @__PURE__ */ (0, V.jsx)(J, {- size: "small",- onClick: n,- children: "添加媒体文件夹"- }) : null, /* @__PURE__ */ (0, V.jsx)(bE, {- variant: "secondary",- href: "/follow-manage?tab=add",- size: "small",- children: "添加关注"- })] }),- children: qUe});}-function $Ue({ data: e }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(g8, {- activity: e.play_activity,- title: "播放时间",- dailyTitle: "每日播放",- words: {- unit: "个作品",- series: "作品",- cellUnit: "个作品"- },- tone: 5- }), /* @__PURE__ */ (0, V.jsx)(l8, {- title: "播放次数",- unit: "个作品",- series: "作品",- color: GUe,- rows: kxe(e.replays)- })] });-}-function eWe({ attribution: e }) {- let t = e.videos;- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col",- children: [- /* @__PURE__ */ (0, V.jsx)(D8, {- term: "有创作者",- value: e.creator,- total: t- }),- /* @__PURE__ */ (0, V.jsx)(D8, {- term: "有番号",- value: e.code,- total: t- }),- /* @__PURE__ */ (0, V.jsx)(D8, {- term: "有厂牌",- value: e.studio,- total: t- }),- /* @__PURE__ */ (0, V.jsx)(D8, {- term: "已抽帧",- value: e.thumb,- total: t- }),- /* @__PURE__ */ (0, V.jsx)(D8, {- term: "已探测时长",- value: e.duration,- total: t- })- ]- });+//#endregion+//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx+var p5 = 2, pWe = "loading", mWe = 2e3, hWe = "evil-stacked", gWe = .5, _We = .05, vWe = [+ 0,+ .7,+ .5,+ 1+], m5 = (0, B.createContext)(null);+function h5() {+ let e = (0, B.use)(m5);+ if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");+ return e;}-function tWe({ volume: e }) {- let t = e.total, n = e.used ?? 0;- return /* @__PURE__ */ (0, V.jsxs)("article", {- className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",- children: [- /* @__PURE__ */ (0, V.jsxs)("header", {- className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",- children: [/* @__PURE__ */ (0, V.jsx)("h3", {- className: "min-w-0 break-words",- children: e.label- }), t == null ? /* @__PURE__ */ (0, V.jsx)("span", {- className: "whitespace-nowrap text-text-secondary",- children: e.online ? "容量未取得" : "离线"- }) : /* @__PURE__ */ (0, V.jsxs)("b", {- className: "whitespace-nowrap tabular-nums",- children: [pe(n), /* @__PURE__ */ (0, V.jsxs)("span", {- className: "ml-1.5 text-caption-1-regular text-text-secondary",- children: [yz(n, t), "%"]- })]- })]- }),- t == null ? null : /* @__PURE__ */ (0, V.jsx)(EE, {- label: `${e.label}空间使用率`,- value: n,- max: Math.max(t, 1)+function g5({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = p5, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {+ let _ = (0, B.useId)().replace(/:/g, ""), [v] = (0, B.useState)(() => Date.now()), [y, b] = (0, B.useState)(f), [x, S] = (0, B.useState)(!1), { loadingData: C, onShimmerExit: w } = LWe(m, h), { visibleData: T, brushProps: E } = dWe({ data: t }), D = (0, B.useMemo)(() => {+ let e = B.Children.toArray(n), t = e.find((e) => (0, B.isValidElement)(e) && e.type === l5), r = (0, B.isValidElement)(t) ? t.props : {};+ return {+ slot: {+ present: (0, B.isValidElement)(t),+ height: r.height,+ formatLabel: r.formatLabel,+ onChange: r.onChange+ },+ chartChildren: e.filter((e) => !((0, B.isValidElement)(e) && e.type === l5))+ };+ }, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, B.useCallback)((e) => {+ b(e), p?.(e);+ }, [p]), N = (0, B.useMemo)(() => ({+ config: e,+ isStacked: k,+ isHorizontal: A,+ isLoading: m,+ barRadius: s,+ animationType: c,+ introStartedAt: v,+ dataLength: j.length,+ selectedDataKey: y,+ selectDataKey: M,+ isMouseInChart: x+ }), [+ e,+ k,+ A,+ m,+ s,+ c,+ v,+ j.length,+ y,+ M,+ x+ ]);+ return /* @__PURE__ */ (0, V.jsx)(m5, {+ value: N,+ children: /* @__PURE__ */ (0, V.jsxs)(e5, {+ className: r,+ config: e,+ footer: O && !m && /* @__PURE__ */ (0, V.jsx)(lWe, {+ data: t,+ chartConfig: e,+ xDataKey: g,+ variant: "bar",+ barRadius: s,+ height: D.slot.height,+ formatLabel: D.slot.formatLabel,+ stacked: k,+ skipStyle: !0,+ className: "mt-1",+ ...E,+ onChange: (e) => {+ E.onChange(e), D.slot.onChange?.(e);+ }}),- /* @__PURE__ */ (0, V.jsxs)("p", {- className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- className: "min-w-0 break-words",- children: e.root ?? "未映射"- }), t == null ? null : /* @__PURE__ */ (0, V.jsx)("span", {- className: "whitespace-nowrap tabular-nums",- children: `可用 ${pe(e.free ?? 0)} · 共 ${pe(t)}`- })]- })- ]- });-}-function nWe({ volumes: e, configurable: t, openMediaSettings: n }) {- return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex flex-col",- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(tWe, { volume: e }, `${e.kind}:${e.label}`))- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- shell: "plain",- icon: _T,- title: "还没有存储来源",- actions: t ? /* @__PURE__ */ (0, V.jsx)(J, {- size: "small",- onClick: n,- children: "添加媒体文件夹"- }) : void 0,- children: ZUe- });-}-function rWe({ tags: e, tagLabel: t, onTag: n }) {- return e.length ? /* @__PURE__ */ (0, V.jsx)(_8, {- previewCount: WUe,- className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",- children: e.map((e, r) => /* @__PURE__ */ (0, V.jsx)("li", {- className: "min-w-0",- children: /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- onClick: () => n(e.k),- className: "flex min-h-11 w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg px-3 py-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",+ children: [/* @__PURE__ */ (0, V.jsx)(t5, { isLoading: m }), /* @__PURE__ */ (0, V.jsxs)(B8, {+ id: _,+ accessibilityLayer: !0,+ layout: A ? "vertical" : "horizontal",+ data: m ? C : j,+ barGap: l,+ barCategoryGap: u,+ stackOffset: a === "percent" ? "expand" : void 0,+ onMouseEnter: () => S(!0),+ onMouseLeave: () => S(!1),+ ...i,children: [- /* @__PURE__ */ (0, V.jsx)("span", {- className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",- children: r + 1- }),- /* @__PURE__ */ (0, V.jsx)("span", {- className: "min-w-0 grow text-body-2-regular break-words text-text-primary",- children: t(e.k)- }),- /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-body-2-medium tabular-nums text-text-secondary",- children: e.n.toLocaleString()+ d && /* @__PURE__ */ (0, V.jsx)(f5, { variant: d }),+ /* @__PURE__ */ (0, V.jsx)(w3, { color: "white" }),+ D.chartChildren,+ m && /* @__PURE__ */ (0, V.jsx)(RWe, {+ chartId: _,+ onShimmerExit: w})]- })- }, e.k))- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- shell: "plain",- icon: bT,- title: "还没有内容标签",- actions: /* @__PURE__ */ (0, V.jsx)(bE, {- variant: "secondary",- href: "/data-cleanup",- size: "small",- children: "补全资料"- }),- children: JUe- });-}-function iWe({ rows: e }) {- return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex flex-col gap-5",- children: e.map((e) => {- let t = bz(e);- return /* @__PURE__ */ (0, V.jsxs)("article", {- className: "flex flex-wrap items-center gap-x-6 gap-y-2",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "min-w-0 grow basis-64",- children: [/* @__PURE__ */ (0, V.jsx)("h3", {- className: "min-w-0 text-body-2-medium text-text-primary",- children: /* @__PURE__ */ (0, V.jsx)("a", {- href: xxe(e),- "data-middle-truncate": !0,- className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",- children: e.name- })- }), /* @__PURE__ */ (0, V.jsxs)("p", {- className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: bxe(e) })]- })]- }), /* @__PURE__ */ (0, V.jsxs)("div", {- className: "min-w-0 basis-40",- children: [/* @__PURE__ */ (0, V.jsx)(EE, {- label: `真实观看 ${t.toFixed(0)}%`,- value: t- }), /* @__PURE__ */ (0, V.jsx)("small", {- className: "mt-1.5 block text-caption-1-regular text-text-secondary",- children: `真实 ${t.toFixed(0)}% · 到达 ${xz(e).toFixed(0)}%`- })]- })]- }, `${e.kind}:${e.id}`);+ })]})- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- shell: "plain",- icon: vT,- title: "还没有观看记录",- actions: /* @__PURE__ */ (0, V.jsx)(bE, {- variant: "secondary",- href: "/",- size: "small",- children: "浏览馆藏"- }),- children: YUe- });-}-function aWe({ sources: e, videos: t }) {- return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",- children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("article", {- className: "flex min-w-0 flex-col gap-1.5",- children: [- /* @__PURE__ */ (0, V.jsxs)("header", {- className: "flex items-baseline justify-between gap-3",- children: [/* @__PURE__ */ (0, V.jsx)("h3", {- className: "min-w-0 text-body-2-medium break-words text-text-primary",- children: e.k- }), /* @__PURE__ */ (0, V.jsxs)("b", {- className: "text-body-2-medium whitespace-nowrap text-text-primary",- children: [e.assets.toLocaleString(), /* @__PURE__ */ (0, V.jsx)("small", {- className: "ml-1 text-caption-1-regular font-normal text-text-secondary",- children: "个视频"- })]- })]- }),- /* @__PURE__ */ (0, V.jsx)(EE, {- label: `${e.k} 覆盖视频`,- value: e.assets,- max: Math.max(t, 1)- }),- /* @__PURE__ */ (0, V.jsxs)("small", {- className: "text-caption-1-regular text-text-secondary",- children: [e.n.toLocaleString(), " 条标签"]- })- ]- }, e.k))- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- shell: "plain",- icon: bT,- title: "还没有标签来源",- actions: /* @__PURE__ */ (0, V.jsx)(bE, {- variant: "secondary",- href: "/data-cleanup",- size: "small",- children: "补全资料"- }),- children: XUe});}-function A8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {- return /* @__PURE__ */ (0, V.jsx)(qk, {- id: e,- className: tM({- interactive: !0,- selectable: !0+function yWe({ 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 } = h5(), b = (0, B.useId)().replace(/:/g, ""), x = Xf();+ if (f) return null;+ let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {+ id: b,+ dataKey: e,+ variant: t,+ barRadius: S,+ glowing: o,+ bufferBar: s,+ isClickable: i,+ enableHoverHighlight: a,+ isMouseInChart: y,+ isHorizontal: d,+ introStartedAt: h,+ selectedDataKey: _,+ dataLength: g,+ onClick: () => {+ i && v(C ? null : e);+ }+ };+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(M6, {+ dataKey: e,+ stackId: u ? hWe : void 0,+ fill: `url(#${b}-colors-${e})`,+ radius: S,+ isAnimationActive: !1,+ style: i || a ? { cursor: "pointer" } : void 0,+ shape: (e) => /* @__PURE__ */ (0, V.jsx)(_5, {+ ...e,+ ...T,+ animationType: w}),- children: /* @__PURE__ */ (0, V.jsx)(aM, {- label: t,- icon: i,- accent: a,- figure: n,- footer: r- })- });-}-function oWe(e) {- let t = wS({- queryKey: _z,- queryFn: ({ signal: e }) => vz(e)- }), n = t.data;- if (!n) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "馆藏统计读取失败",- children: t.error ? W(t.error) : "未取得统计数据,请刷新页面重试。"- }) });- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = yz(n.tag_cov, n.attribution.videos);- return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [- /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${pe(o)}`+ activeBar: (e) => /* @__PURE__ */ (0, V.jsx)(_5, {+ ...e,+ ...T,+ animationType: "none"}),- /* @__PURE__ */ (0, V.jsxs)(Gk, {- defaultSelectedKey: "inventory",- className: "flex flex-col gap-4",- children: [- /* @__PURE__ */ (0, V.jsxs)(Kk, {- "aria-label": "统计视图",- className: nM,- children: [- /* @__PURE__ */ (0, V.jsx)(A8, {- id: "inventory",- label: "馆藏视频",- icon: pT,- accent: 0,- figure: a.toLocaleString(),- detail: pe(o)- }),- /* @__PURE__ */ (0, V.jsx)(A8, {- id: "viewing",- label: "看过",- icon: gT,- accent: 1,- figure: r.played.toLocaleString(),- detail: yxe(r.play_seconds)- }),- /* @__PURE__ */ (0, V.jsx)(A8, {- id: "coverage",- label: "内容标签",- icon: bT,- accent: 2,- figure: `${s}%`,- detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`- }),- /* @__PURE__ */ (0, V.jsx)(A8, {- id: "storage",- label: "使用空间",- icon: _T,- accent: 3,- figure: `${i.online} 个卷`,- detail: i.measured ? `已用 ${pe(i.used)}` : "容量未取得"- })- ]- }),- /* @__PURE__ */ (0, V.jsx)(Jk, {- id: "inventory",- children: /* @__PURE__ */ (0, V.jsx)(QUe, {- data: n,- ...e- })- }),- /* @__PURE__ */ (0, V.jsxs)(Jk, {- id: "viewing",- className: "flex flex-col gap-5",- children: [/* @__PURE__ */ (0, V.jsx)(k8, {- headline: /* @__PURE__ */ (0, V.jsx)(O8, {- term: "观看",- figure: r.played.toLocaleString(),- unit: "个作品有播放记录"- }),- children: /* @__PURE__ */ (0, V.jsxs)("div", {- className: "inline-grid w-full gap-3 sm:grid-cols-2",- children: [- /* @__PURE__ */ (0, V.jsx)(E8, {- term: "馆藏观看",- value: r.library_played- }),- /* @__PURE__ */ (0, V.jsx)(E8, {- term: "在线直接观看",- value: r.online_played- }),- /* @__PURE__ */ (0, V.jsx)(E8, {- term: "高潮计数",- value: r.o_total- }),- /* @__PURE__ */ (0, V.jsx)(E8, {- term: "快进扫过",- value: r.skimmed- }),- /* @__PURE__ */ (0, V.jsx)(E8, {- term: "喜欢",- value: r.liked- }),- /* @__PURE__ */ (0, V.jsx)(E8, {- term: "明确不喜欢",- value: r.dislike- }),- /* @__PURE__ */ (0, V.jsx)(E8, {- term: "看过了",- value: r.seen- }),- /* @__PURE__ */ (0, V.jsx)(E8, {- term: "回收站",- value: r.trash- })- ]- })- }), /* @__PURE__ */ (0, V.jsx)($Ue, { data: n })]- }),- /* @__PURE__ */ (0, V.jsx)(Jk, {- id: "coverage",- children: /* @__PURE__ */ (0, V.jsx)(k8, {- headline: /* @__PURE__ */ (0, V.jsx)(O8, {- term: "内容标签覆盖",- figure: `${s}%`,- unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`- }),- children: /* @__PURE__ */ (0, V.jsx)(eWe, { attribution: n.attribution })- })- }),- /* @__PURE__ */ (0, V.jsx)(Jk, {- id: "storage",- children: /* @__PURE__ */ (0, V.jsx)(k8, {- headline: /* @__PURE__ */ (0, V.jsx)(O8, {- term: "使用空间",- figure: String(i.measured),- unit: "个卷已取得容量"- }),- children: /* @__PURE__ */ (0, V.jsx)(nWe, {- volumes: n.storage_volumes,- ...e- })- })- })- ]+ ...c+ }), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [+ /* @__PURE__ */ (0, V.jsx)(OWe, {+ id: b,+ dataKey: e,+ config: l}),- /* @__PURE__ */ (0, V.jsxs)(Gk, {- defaultSelectedKey: "tags",- className: `${xE({ padding: "none" })} flex flex-col`,- children: [- /* @__PURE__ */ (0, V.jsx)("div", {- className: "px-4 pt-3",- children: /* @__PURE__ */ (0, V.jsxs)(Xk, {- "aria-label": "统计维度",- className: Qk,- children: [- /* @__PURE__ */ (0, V.jsx)(qk, {- id: "tags",- className: $k,- children: "内容标签"- }),- /* @__PURE__ */ (0, V.jsx)(qk, {- id: "recent",- className: $k,- children: "最近看过"- }),- /* @__PURE__ */ (0, V.jsx)(qk, {- id: "sources",- className: $k,- children: "标签来源"- })- ]- })- }),- /* @__PURE__ */ (0, V.jsx)(Jk, {- id: "tags",- className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, V.jsx)(rWe, {- tags: n.top_tags,- ...e- })- }),- /* @__PURE__ */ (0, V.jsx)(Jk, {- id: "recent",- className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, V.jsx)(iWe, { rows: n.recent })- }),- /* @__PURE__ */ (0, V.jsx)(Jk, {- id: "sources",- className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, V.jsx)(aWe, {- sources: n.tag_source,- videos: n.attribution.videos- })- })- ]+ t === "hatched" && /* @__PURE__ */ (0, V.jsx)(kWe, {+ id: b,+ dataKey: e+ }),+ t === "duotone" && /* @__PURE__ */ (0, V.jsx)(jWe, {+ id: b,+ dataKey: e,+ config: l+ }),+ t === "duotone-reverse" && /* @__PURE__ */ (0, V.jsx)(MWe, {+ id: b,+ dataKey: e,+ config: l+ }),+ t === "gradient" && /* @__PURE__ */ (0, V.jsx)(NWe, {+ id: b,+ dataKey: e+ }),+ t === "stripped" && /* @__PURE__ */ (0, V.jsx)(PWe, {+ id: b,+ dataKey: e+ }),+ s && /* @__PURE__ */ (0, V.jsx)(AWe, {+ id: b,+ dataKey: e+ }),+ o && /* @__PURE__ */ (0, V.jsx)(FWe, {+ id: b,+ dataKey: e})- ] });-}-//#endregion-//#region node_modules/d3-sankey/src/align.js-function sWe(e, t) {- return e.sourceLinks.length ? e.depth : t - 1;-}-//#endregion-//#region node_modules/d3-sankey/src/constant.js-function j8(e) {- return function() {- return e;- };-}-//#endregion-//#region node_modules/d3-sankey/src/sankey.js-function M8(e, t) {- return P8(e.source, t.source) || e.index - t.index;-}-function N8(e, t) {- return P8(e.target, t.target) || e.index - t.index;-}-function P8(e, t) {- return e.y0 - t.y0;+ ] })] });}-function F8(e) {- return e.value;+function bWe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {+ let { isLoading: o, isHorizontal: s } = h5();+ return o ? null : /* @__PURE__ */ (0, V.jsx)(B6, {+ tickLine: e,+ axisLine: t,+ tickMargin: n,+ minTickGap: r,+ type: i ?? (s ? "number" : "category"),+ ...a+ });}-function cWe(e) {- return e.index;+function xWe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {+ let { isLoading: s, isHorizontal: c } = h5();+ return s ? null : /* @__PURE__ */ (0, V.jsx)(G6, {+ tickLine: e,+ axisLine: t,+ tickMargin: n,+ minTickGap: r,+ width: i,+ type: a ?? (c ? "category" : "number"),+ ...o+ });}-function lWe(e) {- return e.nodes;+function SWe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {+ let { isHorizontal: i } = h5();+ return /* @__PURE__ */ (0, V.jsx)(V3, {+ strokeDasharray: e,+ vertical: t ?? i,+ horizontal: n ?? !i,+ ...r+ });}-function uWe(e) {- return e.links;+function CWe({ variant: e, roundness: t, defaultIndex: n }) {+ let { isLoading: r, selectedDataKey: i } = h5();+ return r ? null : /* @__PURE__ */ (0, V.jsx)(o5, {+ cursor: !1,+ defaultIndex: n,+ content: /* @__PURE__ */ (0, V.jsx)(a5, {+ selected: i,+ roundness: t,+ variant: e+ })+ });}-function I8(e, t) {- let n = e.get(t);- if (!n) throw Error("missing: " + t);- return n;+function wWe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {+ let { selectedDataKey: i, selectDataKey: a } = h5();+ return /* @__PURE__ */ (0, V.jsx)(c5, {+ verticalAlign: n,+ align: t,+ content: /* @__PURE__ */ (0, V.jsx)(s5, {+ selected: i,+ onSelectChange: a,+ isClickable: r,+ variant: e+ })+ });}-function L8({ nodes: e }) {- for (let t of e) {- let e = t.y0, n = e;- for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;- for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;+var _5 = (e) => {+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = TWe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : EWe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = DWe({+ isClickable: d,+ selectedDataKey: _,+ dataKey: o,+ enableHoverHighlight: f,+ isMouseInChart: p,+ isActive: v+ }), O = d || f ? { cursor: "pointer" } : void 0, k = C ? [+ c,+ c,+ 0,+ 0+ ] : c, A = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Yq, {+ x: t,+ y: n,+ width: r,+ opacity: D,+ height: Math.max(0, i - 3),+ radius: k,+ fill: T,+ filter: E,+ stroke: S ? `url(#${a}-colors-${o})` : void 0,+ strokeWidth: S ? 1 : void 0+ }), C && /* @__PURE__ */ (0, V.jsx)(Yq, {+ x: t,+ y: n - 4,+ width: r,+ height: 2,+ radius: 1,+ fill: `url(#${a}-colors-${o})`+ })] });+ return /* @__PURE__ */ (0, V.jsxs)("g", {+ style: O,+ onClick: b,+ children: [/* @__PURE__ */ (0, V.jsx)(Yq, {+ ...e,+ fill: "transparent"+ }), w ? /* @__PURE__ */ (0, V.jsx)(ep.g, {+ initial: w.initial,+ animate: w.animate,+ transition: w.transition,+ style: w.style,+ children: A+ }) : A]+ });+}, TWe = (e, t, n, r, i) => {+ if (e === "none" || t < 0 || n <= 0) return null;+ let a = n - 1, o = a / 2, s;+ switch (e) {+ case "right-to-left":+ s = a - t;+ break;+ case "center-out":+ s = Math.abs(t - o);+ break;+ case "edges-in":+ s = o - Math.abs(t - o);+ break;+ default: s = t;}-}-function dWe() {- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = cWe, c = sWe, l, u, d = lWe, f = uWe, p = 6;- function m() {- let e = {- nodes: d.apply(null, arguments),- links: f.apply(null, arguments)- };- return h(e), g(e), _(e), v(e), x(e), L8(e), e;+ let c = s * _We * 1e3, l = gWe * 1e3, u = c + l, d = Date.now() - i;+ if (d >= u) return null;+ let f = d <= c ? 0 : (d - c) / l, p = {+ duration: (u - Math.max(d, c)) / 1e3,+ ease: vWe,+ delay: Math.max(0, c - d) / 1e3+ };+ return r ? {+ initial: { scaleX: f },+ animate: { scaleX: 1 },+ transition: p,+ style: { originX: 0 }+ } : {+ initial: { scaleY: f },+ animate: { scaleY: 1 },+ transition: p,+ style: { originY: 1 }+ };+}, EWe = (e, t, n) => {+ switch (e) {+ case "hatched": return `url(#${t}-hatched-${n})`;+ case "duotone": return `url(#${t}-duotone-${n})`;+ case "duotone-reverse": return `url(#${t}-duotone-reverse-${n})`;+ case "gradient": return `url(#${t}-gradient-${n})`;+ case "stripped": return `url(#${t}-stripped-${n})`;+ default: return `url(#${t}-colors-${n})`;}- m.update = function(e) {- return L8(e), e;- }, m.nodeId = function(e) {- return arguments.length ? (s = typeof e == "function" ? e : j8(e), m) : s;- }, m.nodeAlign = function(e) {- return arguments.length ? (c = typeof e == "function" ? e : j8(e), m) : c;- }, m.nodeSort = function(e) {- return arguments.length ? (l = e, m) : l;- }, m.nodeWidth = function(e) {- return arguments.length ? (i = +e, m) : i;- }, m.nodePadding = function(e) {- return arguments.length ? (a = o = +e, m) : a;- }, m.nodes = function(e) {- return arguments.length ? (d = typeof e == "function" ? e : j8(e), m) : d;- }, m.links = function(e) {- return arguments.length ? (f = typeof e == "function" ? e : j8(e), m) : f;- }, m.linkSort = function(e) {- return arguments.length ? (u = e, m) : u;- }, m.size = function(i) {- return arguments.length ? (e = t = 0, n = +i[0], r = +i[1], m) : [n - e, r - t];- }, m.extent = function(i) {- return arguments.length ? (e = +i[0][0], n = +i[1][0], t = +i[0][1], r = +i[1][1], m) : [[e, t], [n, r]];- }, m.iterations = function(e) {- return arguments.length ? (p = +e, m) : p;+}, DWe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {+ let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;+ return r && i ? a ? o : o * .3 : o;+}, OWe = ({ id: e, dataKey: t, config: n }) => {+ let r = i5(n[t] ?? {});+ return /* @__PURE__ */ (0, V.jsx)("linearGradient", {+ id: `${e}-colors-${t}`,+ x1: "0",+ y1: "0",+ x2: "0",+ y2: "1",+ children: r === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "0%",+ stopColor: `var(--color-${t}-0)`+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "100%",+ stopColor: `var(--color-${t}-0)`+ })] }) : Array.from({ length: r }, (e, n) => {+ let i = `${n / (r - 1) * 100}%`;+ return /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: i,+ stopColor: `var(--color-${t}-${n}, var(--color-${t}-0))`+ }, i);+ })+ });+}, kWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsxs)("pattern", {+ id: `${e}-hatched-mask-pattern`,+ x: "0",+ y: "0",+ width: "5",+ height: "5",+ patternUnits: "userSpaceOnUse",+ patternTransform: "rotate(-45)",+ children: [/* @__PURE__ */ (0, V.jsx)("rect", {+ width: "5",+ height: "5",+ fill: "white",+ fillOpacity: .3+ }), /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "1.5",+ height: "5",+ fill: "white",+ fillOpacity: 1+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)("mask", {+ id: `${e}-hatched-mask-${t}`,+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${e}-hatched-mask-pattern)`+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: `${e}-hatched-${t}`,+ patternUnits: "userSpaceOnUse",+ width: "100%",+ height: "100%",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${e}-colors-${t})`,+ mask: `url(#${e}-hatched-mask-${t})`+ })+ })+] }), AWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsxs)("pattern", {+ id: `${e}-buffer-hatched-mask-pattern`,+ x: "0",+ y: "0",+ width: "5",+ height: "5",+ patternUnits: "userSpaceOnUse",+ patternTransform: "rotate(-45)",+ children: [/* @__PURE__ */ (0, V.jsx)("rect", {+ width: "5",+ height: "5",+ fill: "black",+ fillOpacity: 0+ }), /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "1",+ height: "5",+ fill: "white",+ fillOpacity: 1+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)("mask", {+ id: `${e}-buffer-hatched-mask-${t}`,+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${e}-buffer-hatched-mask-pattern)`+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: `${e}-buffer-hatched-${t}`,+ patternUnits: "userSpaceOnUse",+ width: "100%",+ height: "100%",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${e}-colors-${t})`,+ mask: `url(#${e}-buffer-hatched-mask-${t})`+ })+ })+] }), jWe = ({ id: e, dataKey: t, config: n }) => {+ let r = i5(n[t] ?? {});+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsxs)("linearGradient", {+ id: `${e}-duotone-mask-gradient-${t}`,+ gradientUnits: "objectBoundingBox",+ x1: "0",+ y1: "0",+ x2: "1",+ y2: "0",+ children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "50%",+ stopColor: "white",+ stopOpacity: .4+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "50%",+ stopColor: "white",+ stopOpacity: 1+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)("linearGradient", {+ id: `${e}-duotone-colors-${t}`,+ gradientUnits: "objectBoundingBox",+ x1: "0",+ y1: "0",+ x2: "0",+ y2: "1",+ children: r === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "0%",+ stopColor: `var(--color-${t}-0)`+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "100%",+ stopColor: `var(--color-${t}-0)`+ })] }) : Array.from({ length: r }, (e, n) => {+ let i = `${n / (r - 1) * 100}%`;+ return /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: i,+ stopColor: `var(--color-${t}-${n}, var(--color-${t}-0))`+ }, i);+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("mask", {+ id: `${e}-duotone-mask-${t}`,+ maskContentUnits: "objectBoundingBox",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ x: "0",+ y: "0",+ width: "1",+ height: "1",+ fill: `url(#${e}-duotone-mask-gradient-${t})`+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: `${e}-duotone-${t}`,+ patternUnits: "objectBoundingBox",+ patternContentUnits: "objectBoundingBox",+ width: "1",+ height: "1",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ x: "0",+ y: "0",+ width: "1",+ height: "1",+ fill: `url(#${e}-duotone-colors-${t})`,+ mask: `url(#${e}-duotone-mask-${t})`+ })+ })+ ] });+}, MWe = ({ id: e, dataKey: t, config: n }) => {+ let r = i5(n[t] ?? {});+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsxs)("linearGradient", {+ id: `${e}-duotone-reverse-mask-gradient-${t}`,+ gradientUnits: "objectBoundingBox",+ x1: "0",+ y1: "0",+ x2: "1",+ y2: "0",+ children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "50%",+ stopColor: "white",+ stopOpacity: 1+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "50%",+ stopColor: "white",+ stopOpacity: .4+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)("linearGradient", {+ id: `${e}-duotone-reverse-colors-${t}`,+ gradientUnits: "objectBoundingBox",+ x1: "0",+ y1: "0",+ x2: "0",+ y2: "1",+ children: r === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "0%",+ stopColor: `var(--color-${t}-0)`+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "100%",+ stopColor: `var(--color-${t}-0)`+ })] }) : Array.from({ length: r }, (e, n) => {+ let i = `${n / (r - 1) * 100}%`;+ return /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: i,+ stopColor: `var(--color-${t}-${n}, var(--color-${t}-0))`+ }, i);+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("mask", {+ id: `${e}-duotone-reverse-mask-${t}`,+ maskContentUnits: "objectBoundingBox",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ x: "0",+ y: "0",+ width: "1",+ height: "1",+ fill: `url(#${e}-duotone-reverse-mask-gradient-${t})`+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: `${e}-duotone-reverse-${t}`,+ patternUnits: "objectBoundingBox",+ patternContentUnits: "objectBoundingBox",+ width: "1",+ height: "1",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ x: "0",+ y: "0",+ width: "1",+ height: "1",+ fill: `url(#${e}-duotone-reverse-colors-${t})`,+ mask: `url(#${e}-duotone-reverse-mask-${t})`+ })+ })+ ] });+}, NWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsxs)("linearGradient", {+ id: `${e}-gradient-mask-gradient`,+ x1: "0",+ y1: "0",+ x2: "0",+ y2: "1",+ children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "20%",+ stopColor: "white",+ stopOpacity: 1+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "90%",+ stopColor: "white",+ stopOpacity: 0+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)("mask", {+ id: `${e}-gradient-mask-${t}`,+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${e}-gradient-mask-gradient)`+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: `${e}-gradient-${t}`,+ patternUnits: "userSpaceOnUse",+ width: "100%",+ height: "100%",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${e}-colors-${t})`,+ mask: `url(#${e}-gradient-mask-${t})`+ })+ })+] }), PWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsxs)("linearGradient", {+ id: `${e}-stripped-mask-gradient`,+ x1: "0",+ y1: "0",+ x2: "0",+ y2: "1",+ children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "0%",+ stopColor: "white",+ stopOpacity: .2+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "100%",+ stopColor: "white",+ stopOpacity: .2+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)("mask", {+ id: `${e}-stripped-mask-${t}`,+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${e}-stripped-mask-gradient)`+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: `${e}-stripped-${t}`,+ patternUnits: "userSpaceOnUse",+ width: "100%",+ height: "100%",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${e}-colors-${t})`,+ mask: `url(#${e}-stripped-mask-${t})`+ })+ })+] }), FWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {+ id: `${e}-bar-glow-${t}`,+ x: "-100%",+ y: "-100%",+ width: "300%",+ height: "300%",+ children: [+ /* @__PURE__ */ (0, V.jsx)("feGaussianBlur", {+ in: "SourceGraphic",+ stdDeviation: "8",+ result: "blur"+ }),+ /* @__PURE__ */ (0, V.jsx)("feColorMatrix", {+ in: "blur",+ type: "matrix",+ values: "1 0 0 0 0\n 0 1 0 0 0\n 0 0 1 0 0\n 0 0 0 0.5 0",+ result: "glow"+ }),+ /* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })+ ]+}), IWe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {+ let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);+ return {+ offset: `${(a * 100).toFixed(0)}%`,+ opacity: Number(o.toFixed(3))};- function h({ nodes: e, links: t }) {- for (let [t, n] of e.entries()) n.index = t, n.sourceLinks = [], n.targetLinks = [];- let n = new Map(e.map((t, n) => [s(t, n, e), t]));- for (let [e, r] of t.entries()) {- r.index = e;- let { source: t, target: i } = r;- typeof t != "object" && (t = r.source = I8(n, t)), typeof i != "object" && (i = r.target = I8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);- }- if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);- }- function g({ nodes: e }) {- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(lJ(t.sourceLinks, F8), lJ(t.targetLinks, F8)) : t.fixedValue;- }- function _({ nodes: e }) {- let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;- for (; n.size;) {- for (let e of n) {- e.depth = i;- for (let { target: t } of e.sourceLinks) r.add(t);- }- if (++i > t) throw Error("circular link");- n = r, r = /* @__PURE__ */ new Set();- }- }- function v({ nodes: e }) {- let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;- for (; n.size;) {- for (let e of n) {- e.height = i;- for (let { source: t } of e.targetLinks) r.add(t);- }- if (++i > t) throw Error("circular link");- n = r, r = /* @__PURE__ */ new Set();- }- }- function y({ nodes: t }) {- let r = aJ(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];- }- if (l) for (let e of o) e.sort(l);- return o;- }- function b(e) {- let n = oJ(e, (e) => (r - t - (e.length - 1) * o) / lJ(e, F8));- for (let i of e) {- let e = t;- for (let t of i) {- t.y0 = e, t.y1 = e + t.value * n, e = t.y1 + o;- for (let e of t.sourceLinks) e.width = e.value * n;- }- e = (r - e + o) / (i.length + 1);- for (let t = 0; t < i.length; ++t) {- let n = i[t];- n.y0 += e * (t + 1), n.y1 += e * (t + 1);- }- O(i);- }- }- function x(e) {- let n = y(e);- o = Math.min(a, (r - t) / (aJ(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);- }- }- function S(e, t, n) {- for (let r = 1, i = e.length; r < i; ++r) {- let i = e[r];- for (let e of i) {- let n = 0, r = 0;- for (let { source: t, value: i } of e.targetLinks) {- let a = i * (e.layer - t.layer);- n += k(t, e) * a, r += a;- }- if (!(r > 0)) continue;- let i = (n / r - e.y0) * t;- e.y0 += i, e.y1 += i, D(e);- }- l === void 0 && i.sort(P8), w(i, n);- }- }- function C(e, t, n) {- for (let r = e.length - 2; r >= 0; --r) {- let i = e[r];- for (let e of i) {- let n = 0, r = 0;- for (let { target: t, value: i } of e.sourceLinks) {- let a = i * (t.layer - e.layer);- n += A(e, t) * a, r += a;- }- if (!(r > 0)) continue;- let i = (n / r - e.y0) * t;- e.y0 += i, e.y1 += i, D(e);- }- l === void 0 && i.sort(P8), w(i, n);- }- }- function w(e, n) {- let i = e.length >> 1, a = e[i];- E(e, a.y0 - o, i - 1, n), T(e, a.y1 + o, i + 1, n), E(e, r, e.length - 1, n), T(e, t, 0, n);- }- function T(e, t, n, r) {- for (; n < e.length; ++n) {- let i = e[n], a = (t - i.y0) * r;- a > 1e-6 && (i.y0 += a, i.y1 += a), t = i.y1 + o;- }- }- function E(e, t, n, r) {- for (; n >= 0; --n) {- let i = e[n], a = (i.y1 - t) * r;- a > 1e-6 && (i.y0 -= a, i.y1 -= a), t = i.y0 - o;- }- }- function D({ sourceLinks: e, targetLinks: t }) {- if (u === void 0) {- for (let { source: { sourceLinks: e } } of t) e.sort(N8);- for (let { target: { targetLinks: t } } of e) t.sort(M8);- }- }- function O(e) {- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(N8), n.sort(M8);- }- function k(e, t) {- let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;- for (let { target: r, width: i } of e.sourceLinks) {- if (r === t) break;- n += i + o;- }- for (let { source: r, width: i } of t.targetLinks) {- if (r === e) break;- n -= i;- }- return n;- }- function A(e, t) {- let n = t.y0 - (t.targetLinks.length - 1) * o / 2;- for (let { source: r, width: i } of t.targetLinks) {- if (r === e) break;- n += i + o;- }- for (let { target: r, width: i } of e.sourceLinks) {- if (r === t) break;- n -= i;- }- return n;- }- return m;-}-//#endregion-//#region node_modules/d3-path/src/path.js-var R8 = Math.PI, z8 = 2 * R8, B8 = 1e-6, fWe = z8 - B8;-function V8() {- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";-}-function H8() {- return new V8();-}-V8.prototype = H8.prototype = {- constructor: V8,- moveTo: function(e, t) {- this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);- },- closePath: function() {- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");- },- lineTo: function(e, t) {- this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +t);- },- quadraticCurveTo: function(e, t, n, r) {- this._ += "Q" + +e + "," + +t + "," + (this._x1 = +n) + "," + (this._y1 = +r);- },- bezierCurveTo: function(e, t, n, r, i, a) {- this._ += "C" + +e + "," + +t + "," + +n + "," + +r + "," + (this._x1 = +i) + "," + (this._y1 = +a);- },- arcTo: function(e, t, n, r, i) {- e = +e, t = +t, n = +n, r = +r, i = +i;- var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;- if (i < 0) throw Error("negative radius: " + i);- if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);- else if (d > B8) {- if (!(Math.abs(u * s - c * l) > B8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);- else {- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((R8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;- Math.abs(y - 1) > B8 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);- }- }- },- arc: function(e, t, n, r, i, a) {- e = +e, t = +t, n = +n, a = !!a;- var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;- if (n < 0) throw Error("negative radius: " + n);- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > B8 || Math.abs(this._y1 - l) > B8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % z8 + z8), d > fWe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > B8 && (this._ += "A" + n + "," + n + ",0," + +(d >= R8) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));- },- rect: function(e, t, n, r) {- this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";- },- toString: function() {- return this._;- }-};-//#endregion-//#region node_modules/d3-shape/src/constant.js-function U8(e) {- return function() {- return e;+});+function LWe(e, t = 12) {+ let [n, r] = (0, B.useState)(!1), i = (0, B.useCallback)(() => {+ e && r((e) => !e);+ }, [e]);+ return {+ loadingData: (0, B.useMemo)(() => tWe(t, 20, 80), [t, n]),+ onShimmerExit: i};}+var RWe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(M6, {+ dataKey: pWe,+ fill: "currentColor",+ fillOpacity: .15,+ radius: p5,+ isAnimationActive: !1,+ legendType: "none",+ style: { mask: `url(#${e}-loading-mask)` }+}), /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(zWe, {+ chartId: e,+ onShimmerExit: t+}) })] }), zWe = ({ chartId: e, onShimmerExit: t }) => {+ let n = IWe(), r = (0, B.useRef)(-1);+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsx)("linearGradient", {+ id: `${e}-loading-mask-gradient`,+ x1: "0",+ y1: "0",+ x2: "1",+ y2: "0",+ children: n.map(({ offset: e, opacity: t }) => /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: e,+ stopColor: "white",+ stopOpacity: t+ }, e))+ }),+ /* @__PURE__ */ (0, V.jsx)("pattern", {+ id: `${e}-loading-mask-pattern`,+ patternUnits: "objectBoundingBox",+ patternContentUnits: "objectBoundingBox",+ patternTransform: "rotate(25)",+ width: 3,+ height: "1",+ x: "0",+ y: "0",+ children: /* @__PURE__ */ (0, V.jsx)(ep.rect, {+ y: "0",+ width: "1",+ height: "1",+ fill: `url(#${e}-loading-mask-gradient)`,+ initial: { x: -1 },+ animate: { x: 2 },+ transition: {+ duration: mWe / 1e3,+ ease: "linear",+ repeat: Infinity,+ repeatType: "loop"+ },+ onUpdate: (e) => {+ let n = typeof e.x == "number" ? e.x : -1, i = r.current;+ n >= 1 && i < 1 && t(), r.current = n;+ }+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("mask", {+ id: `${e}-loading-mask`,+ maskUnits: "userSpaceOnUse",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: "100%",+ height: "100%",+ fill: `url(#${e}-loading-mask-pattern)`+ })+ })+ ] });+};+g5.Bar = yWe, g5.XAxis = bWe, g5.YAxis = xWe, g5.Grid = SWe, g5.Tooltip = CWe, g5.Legend = wWe, g5.Brush = l5;//#endregion-//#region node_modules/d3-shape/src/point.js-function pWe(e) {- return e[0];-}-function mWe(e) {- return e[1];-}-//#endregion-//#region node_modules/d3-shape/src/array.js-var hWe = Array.prototype.slice;-//#endregion-//#region node_modules/d3-shape/src/link/index.js-function gWe(e) {- return e.source;-}-function _We(e) {- return e.target;-}-function vWe(e) {- var t = gWe, n = _We, r = pWe, i = mWe, a = null;- function o() {- var o, s = hWe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);- if (a ||= o = H8(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;- }- return o.source = function(e) {- return arguments.length ? (t = e, o) : t;- }, o.target = function(e) {- return arguments.length ? (n = e, o) : n;- }, o.x = function(e) {- return arguments.length ? (r = typeof e == "function" ? e : U8(+e), o) : r;- }, o.y = function(e) {- return arguments.length ? (i = typeof e == "function" ? e : U8(+e), o) : i;- }, o.context = function(e) {- return arguments.length ? (a = e ?? null, o) : a;- }, o;-}-function yWe(e, t, n, r, i) {- e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);+//#region src/react/charts/chart-card.tsx+var v5 = `${SE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;+function y5({ title: e, figure: t, note: n }) {+ return /* @__PURE__ */ (0, V.jsxs)("header", {+ className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",+ children: [/* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 flex-col gap-1",+ children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ className: "text-title-2-medium text-text-primary",+ children: e+ }), /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-display-4-medium tabular-nums text-text-primary",+ children: t+ })]+ }), /* @__PURE__ */ (0, V.jsx)("small", {+ className: "min-w-0 text-caption-1-regular break-words text-text-secondary",+ children: n+ })]+ });}-function bWe() {- return vWe(yWe);+var b5 = [+ "var(--color-chart-1)",+ "var(--color-chart-2)",+ "var(--color-chart-3)",+ "var(--color-chart-4)",+ "var(--color-chart-5)",+ "var(--color-chart-6)"+], x5 = (e) => ({ light: [e] }), S5 = (e) => `s${e}`;+function BWe(e) {+ return Object.fromEntries(e.map((e, t) => [S5(t), {+ label: e,+ colors: x5(b5[t % b5.length])+ }]));}//#endregion-//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js-function xWe(e) {- return [e.source.x1, e.y0];+//#region src/react/charts/chart-tip.tsx+var C5 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";+function w5({ swatch: e, name: t, value: n }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex w-full items-center gap-2",+ children: [e, /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-1 items-center justify-between gap-4 leading-none",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-muted-foreground",+ children: t+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ className: "font-mono font-medium tabular-nums text-foreground",+ children: n.toLocaleString()+ })]+ })]+ });}-function SWe(e) {- return [e.target.x0, e.y1];+var T5 = "size-2.5 shrink-0 rounded-xs";+function VWe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {+ let { config: o } = $8(), s = (t ?? []).filter((e) => e.type !== "none");+ if (!e || !s.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });+ let c = a || typeof n != "string" ? null : o[n]?.label ?? n;+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: C5,+ children: [c ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "font-medium text-foreground",+ children: c+ }) : null, s.map((e, t) => {+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = r5(o, e, a), c = i ? n[i] : e.value;+ return /* @__PURE__ */ (0, V.jsx)(w5, {+ name: s?.label ?? e.name,+ value: Number(c ?? 0),+ swatch: /* @__PURE__ */ (0, V.jsx)("i", {+ className: T5,+ style: { background: `var(--color-${a}-0)` }+ })+ }, a + t);+ })]+ });}-function CWe() {- return bWe().source(xWe).target(SWe);+function E5({ nameKey: e, valueKey: t, hideLabel: n }) {+ return /* @__PURE__ */ (0, V.jsx)(o5, {+ cursor: !1,+ content: /* @__PURE__ */ (0, V.jsx)(VWe, {+ nameKey: e,+ valueKey: t,+ hideLabel: n+ })+ });}//#endregion-//#region src/react/taste/taste.ts-var wWe = "/api/taste", W8 = "/api/taste/refresh", TWe = "/api/taste/import", EWe = "/api/taste/source", G8 = (e) => ["taste", e], DWe = ["taste", "refresh"], OWe = [- ["7d", "最近 7 天"],- ["30d", "最近 30 天"],- ["90d", "最近 90 天"],- ["365d", "最近一年"],- ["all", "全部时间"]-], K8 = (e, t) => G(`${wWe}?window=${e}`, t), kWe = (e) => G(W8, e);-async function AWe(e, t) {- await z.fetchQuery({- queryKey: G8(e),- queryFn: () => K8(e, t)+//#region src/react/charts/bar-card.tsx+var D5 = [0, (e) => e * 1.2], O5 = (e) => ({+ position: e,+ className: "fill-text-secondary",+ formatter: (e) => Number(e).toLocaleString()+});+function k5({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {+ let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({+ name: e.name,+ value: e.value+ })), s = o.reduce((e, t) => e + t.value, 0);+ if (!s) return null;+ let c = a === "horizontal";+ return /* @__PURE__ */ (0, V.jsxs)("section", {+ className: v5,+ "aria-label": e,+ children: [/* @__PURE__ */ (0, V.jsx)(y5, {+ title: e,+ figure: s.toLocaleString(),+ note: t+ }), /* @__PURE__ */ (0, V.jsxs)(g5, {+ data: o,+ config: { value: {+ label: n,+ colors: x5(i)+ } },+ layout: a,+ barRadius: 4,+ className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",+ children: [+ /* @__PURE__ */ (0, V.jsx)(g5.Grid, {}),+ c ? /* @__PURE__ */ (0, V.jsx)(g5.YAxis, {+ dataKey: "name",+ interval: 0+ }) : /* @__PURE__ */ (0, V.jsx)(g5.XAxis, {+ dataKey: "name",+ interval: 0+ }),+ c ? /* @__PURE__ */ (0, V.jsx)(g5.XAxis, {+ hide: !0,+ domain: D5+ }) : /* @__PURE__ */ (0, V.jsx)(g5.YAxis, {+ hide: !0,+ domain: D5+ }),+ /* @__PURE__ */ (0, V.jsx)(g5.Bar, {+ dataKey: "value",+ enableHoverHighlight: !0,+ barProps: {+ dataKey: "value",+ label: O5(c ? "right" : "top")+ }+ }),+ /* @__PURE__ */ (0, V.jsx)(E5, {})+ ]+ })]});}-var jWe = (e) => K(W8, {- window: e,- background: !0-}), MWe = (e, t) => K(EWe, {- operation: "remove",- source_key: e,- window: t-});-async function NWe(e) {- let t = await fetch(TWe, {- method: "POST",- credentials: "same-origin",- headers: {- "Content-Type": "application/octet-stream",- "X-Peach-Filename": encodeURIComponent(e.name)- },- body: e- }), n = null;- try {- n = await t.json();- } catch {}- if (!t.ok) {- let e = n?.error;- throw new AS(e || `导入失败(${t.status})`, t.status, n);+//#endregion+//#region src/react/charts/heat.ts+var A5 = [+ "周一",+ "周二",+ "周三",+ "周四",+ "周五",+ "周六",+ "周日"+], j5 = (e, t) => e ? Math.max(.12, e / t) : 0;+function HWe(e) {+ let t = Array.from({ length: 7 }, () => Array(24).fill(0));+ for (let n of e?.hours || []) {+ let { weekday: e, hour: r, count: i } = n;+ !Number.isInteger(e) || e < 0 || e > 6 || !Number.isInteger(r) || r < 0 || r > 23 || !Number.isFinite(i) || i < 0 || (t[e][r] = (t[e][r] || 0) + i);}- return n;-}-var PWe = 1e4, q8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", FWe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, IWe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);-function LWe(e) {- if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();- let t = [];- return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");-}-function RWe(e) {- let t = e.map(IWe), n = Math.max(1, ...t);- return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));-}-var J8 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({- name: e.name,- value: Number(e.score)-})).sort((e, t) => t.value - e.value).slice(0, t);-function zWe(e) {- let t = J8(e, 6);- return t.length < 3 ? [] : t;+ let n = t.flat(), r = Math.max(1, ...n);+ return {+ cells: t.flatMap((e, t) => e.map((e, n) => ({+ key: `${t}-${n}`,+ label: `${A5[t]} ${n}:00`,+ count: e,+ share: j5(e, r)+ }))),+ total: n.reduce((e, t) => e + t, 0)+ };}-var Y8 = {- width: 720,- height: 435-}, X8 = {- source: 145,- target: 545-};-function BWe(e = []) {- let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);- if (!t.length) return null;- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = dWe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({- nodes: [...n.map((e) => ({- id: `source:${e}`,- name: e,- side: "source"- })), ...r.map((e) => ({- id: `target:${e}`,- name: e,- side: "target"- }))],- links: t.map((e) => ({- source: `source:${e.source}`,- target: `target:${e.target}`,- value: e.value- }))- }), a = t.reduce((e, t) => e + t.value, 0), o = CWe();+function UWe(e) {+ let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {+ cells: [],+ total: 0,+ start: "",+ end: ""+ };+ if (!t.length) return n;+ let r = /* @__PURE__ */ new Date(`${t.at(-1).date}T00:00:00Z`), i = new Date(r);+ i.setUTCDate(i.getUTCDate() - 90);+ let a = new Map(t.map((e) => [e.date, e.count])), o = Math.max(1, ...t.map((e) => e.count)), s = Array.from({ length: 91 }, (e, t) => {+ let n = new Date(i);+ n.setUTCDate(i.getUTCDate() + t);+ let r = n.toISOString().slice(0, 10), s = a.get(r) || 0;+ return {+ key: r,+ label: r,+ count: s,+ share: j5(s, o)+ };+ });return {- nodes: i.nodes.map((e) => ({- id: e.id,- name: e.name,- side: e.side,- index: e.index ?? 0,- x: e.x0 ?? 0,- y: e.y0 ?? 0,- height: Math.max(1, (e.y1 ?? 0) - (e.y0 ?? 0)),- value: e.value ?? 0,- share: (e.value ?? 0) / a * 100,- color: n.indexOf(e.name) % 6- })),- links: i.links.map((e, t) => {- let r = e.source, i = e.target;- return {- key: `${r.id}->${i.id}:${t}`,- d: o(e) || "",- width: Math.max(.5, e.width || 0),- color: n.indexOf(r.name) % 6,- source: r.index ?? 0,- target: i.index ?? 0,- value: e.value,- label: `${r.name} → ${i.name}`- };- }),- total: a+ cells: s,+ total: s.reduce((e, t) => e + t.count, 0),+ start: i.toISOString().slice(0, 10),+ end: t.at(-1).date};}-var VWe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, Z8 = B.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {- let c = B.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;- if (e === void 0 || t === void 0) return null;- switch (o) {- case "border": return /* @__PURE__ */ (0, V.jsx)($8, {- cx: e,- cy: t,- dotId: c,- fillOpacity: a,- gradientUrl: l,- className: i,- maskId: s- });- case "colored-border": return /* @__PURE__ */ (0, V.jsx)(e5, {- cx: e,- cy: t,- dotId: c,- fillOpacity: a,- gradientUrl: l,- className: i,- maskId: s- });- default: return /* @__PURE__ */ (0, V.jsx)(Q8, {- cx: e,- cy: t,- dotId: c,- fillOpacity: a,- gradientUrl: l,- className: i,- maskId: s- });+//#endregion+//#region src/react/charts/heat-card.tsx+var M5 = 14, N5 = 17, P5 = {+ 4: {+ fill: "fill-chart-4",+ dot: "bg-chart-4"+ },+ 5: {+ fill: "fill-chart-5",+ dot: "bg-chart-5"}-}), Q8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {- className: a,- mask: o ? `url(#${o})` : void 0,- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {- id: `dot-clip-${n}`,- children: /* @__PURE__ */ (0, V.jsx)("circle", {- cx: e,- cy: t,- r: 3- })- }) }), /* @__PURE__ */ (0, V.jsx)("rect", {- x: "0",- y: t - 3,- width: "100%",- height: 6,- fill: i,- fillOpacity: r,- clipPath: `url(#dot-clip-${n})`- })]-}));-Q8.displayName = "DefaultDot";-var $8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {- className: k6(a, "text-background"),- mask: o ? `url(#${o})` : void 0,- children: [- /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {- id: `dot-clip-${n}`,- children: /* @__PURE__ */ (0, V.jsx)("circle", {- cx: e,- cy: t,- r: 6- })- }) }),- /* @__PURE__ */ (0, V.jsx)("circle", {- cx: e,- cy: t,- r: 6,- fill: "currentColor"- }),- /* @__PURE__ */ (0, V.jsx)("rect", {- x: "0",- y: t - (6 - 5 / 2),- width: "100%",- height: 7,- fill: i,- fillOpacity: r,- clipPath: `url(#dot-clip-inner-${n})`- }),- /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {- id: `dot-clip-inner-${n}`,- children: /* @__PURE__ */ (0, V.jsx)("circle", {- cx: e,- cy: t,- r: 6 - 5 / 2- })- }) })- ]-}));-$8.displayName = "PrimaryBorderDot";-var e5 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {- className: k6(a, "text-background"),- mask: o ? `url(#${o})` : void 0,- children: [- /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {- id: `dot-clip-${n}`,- children: /* @__PURE__ */ (0, V.jsx)("circle", {- cx: e,- cy: t,- r: 3.5+}, WWe = {+ start: "translate-x-0",+ center: "-translate-x-1/2",+ end: "-translate-x-full"+};+function GWe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "aria-hidden": !0,+ style: {+ left: `${r}%`,+ top: `${i}%`+ },+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${C5} ${WWe[a]}`,+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ className: "font-medium text-foreground",+ children: e.label+ }), /* @__PURE__ */ (0, V.jsx)(w5, {+ name: t,+ value: e.count,+ swatch: /* @__PURE__ */ (0, V.jsx)("i", { className: `${T5} ${P5[n].dot}` })+ })]+ });+}+function F5({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {+ let [l, u] = (0, B.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * N5, m = f + a * N5, h = (e) => ({+ x: d + e % i * N5,+ y: f + Math.floor(e / i) * N5+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + M5 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {+ start: _.x,+ center: _.x + M5 / 2,+ end: _.x + M5+ }[y] : 0;+ return /* @__PURE__ */ (0, V.jsxs)("section", {+ className: v5,+ children: [+ /* @__PURE__ */ (0, V.jsx)(y5, {+ title: e,+ figure: (g ? g.count : r).toLocaleString(),+ note: g ? g.label : t.unit+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "relative",+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ className: "min-w-0 overflow-x-auto",+ children: /* @__PURE__ */ (0, V.jsxs)("svg", {+ role: "img",+ "aria-label": e,+ onPointerLeave: () => u(-1),+ viewBox: `0 0 ${p} ${m}`,+ className: "block h-auto min-w-80 w-full",+ children: [o, n.map((e, n) => {+ let { x: r, y: i } = h(n);+ return /* @__PURE__ */ (0, V.jsx)("rect", {+ tabIndex: 0,+ role: "img",+ "aria-label": `${e.label},${e.count} ${t.cellUnit}`,+ x: r,+ y: i,+ width: M5,+ height: M5,+ rx: 3,+ fillOpacity: e.share || 1,+ opacity: l >= 0 && l !== n ? .4 : 1,+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${P5[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",+ onPointerEnter: () => u(n),+ onFocus: () => u(n),+ onBlur: () => u(-1)+ }, e.key);+ })]+ })+ }), g && _ ? /* @__PURE__ */ (0, V.jsx)(GWe, {+ cell: g,+ series: t.series,+ tone: c,+ anchor: y,+ left: b / p * 100,+ top: _.y / m * 100+ }) : null]+ }),+ /* @__PURE__ */ (0, V.jsx)("footer", {+ className: "flex flex-wrap justify-between gap-3 text-caption-1-regular text-text-secondary",+ children: s})- }) }),- /* @__PURE__ */ (0, V.jsx)("rect", {- x: "0",- y: t - 3 - 1 / 2,- width: "100%",- height: 7,- fill: i,- fillOpacity: r,- clipPath: `url(#dot-clip-${n})`- }),- /* @__PURE__ */ (0, V.jsx)("circle", {- cx: e,- cy: t,- r: 3 - 1 / 2,- fill: "currentColor"- })- ]-}));-e5.displayName = "ColoredBorderDot";+ ]+ });+}+var KWe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [A5.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {+ x: 0,+ y: 18 + t * N5 + 7,+ dominantBaseline: "middle",+ className: "fill-text-secondary text-caption-1-regular",+ children: e+}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, V.jsx)("text", {+ x: 30 + t * N5,+ y: 8,+ dominantBaseline: "middle",+ className: "fill-text-secondary text-caption-1-regular",+ children: t+}, t))] });+function I5({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {+ let o = HWe(e), s = UWe(e);+ return s.cells.length ? /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",+ children: [/* @__PURE__ */ (0, V.jsx)(F5, {+ title: t,+ words: r,+ tone: i,+ cells: o.cells,+ total: o.total,+ columns: 24,+ rows: 7,+ axis: KWe,+ footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })+ }), /* @__PURE__ */ (0, V.jsx)(F5, {+ title: n,+ words: r,+ tone: i,+ cells: s.cells,+ total: s.total,+ columns: 13,+ rows: 7,+ footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, V.jsx)("span", { children: s.end })] })+ })]+ }) : a ? /* @__PURE__ */ (0, V.jsxs)("section", {+ className: v5,+ children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ className: "text-title-2-medium text-text-primary",+ children: t+ }), /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: a+ })]+ }) : null;+}//#endregion-//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx-var HWe = 1, UWe = .3, WWe = 6, t5 = 1500, n5 = "value", r5 = (0, B.createContext)(null);-function i5() {- let e = (0, B.use)(r5);- if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");+//#region src/react/components/expandable-ranking.tsx+function L5({ children: e, className: t = "", previewCount: n = 10 }) {+ let r = (0, B.useId)(), i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(!1), l = B.Children.toArray(e), u = l.length > n;+ (0, B.useLayoutEffect)(() => {+ let e = i.current;+ if (!e || !u) return;+ let t = () => {+ let t = e.children[Math.min(n, e.children.length) - 1];+ !t || !e.offsetWidth || (e.style.setProperty("--ranking-collapsed-height", `${t.offsetTop - e.offsetTop + t.offsetHeight}px`), e.style.setProperty("--ranking-expanded-height", `${e.scrollHeight}px`));+ };+ t();+ let r = new ResizeObserver(t);+ return r.observe(e), () => r.disconnect();+ }, [+ u,+ n,+ l.length+ ]);+ let d = l.map((e, t) => !(0, B.isValidElement)(e) || t < n ? e : (0, B.cloneElement)(e, { inert: !a || void 0 }));+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-expandable-ranking": !0,+ "data-expandable": u || void 0,+ "data-expanded": a || void 0,+ "data-animating": s || void 0,+ children: [/* @__PURE__ */ (0, V.jsx)("ol", {+ id: r,+ ref: i,+ "data-expandable-ranking-list": !0,+ className: t,+ onTransitionEnd: (e) => {+ e.target === i.current && e.propertyName === "max-height" && c(!1);+ },+ children: d+ }), u ? /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-ranking-toggle": !0,+ "aria-controls": r,+ "aria-expanded": a,+ "aria-label": a ? "收起排名" : "展开更多排名",+ onClick: () => {+ c(!0), o((e) => !e);+ },+ children: /* @__PURE__ */ (0, V.jsx)(sT, { "aria-hidden": !0 })+ }) : null]+ });+}+//#endregion+//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx+var qWe = "30%", JWe = "100%", R5 = 5, z5 = 14, YWe = 5, B5 = 1500, V5 = (0, B.createContext)(null);+function H5() {+ let e = (0, B.use)(V5);+ if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");return e;}-function a5({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {- let u = (0, B.useId)().replace(/:/g, ""), [d, f] = (0, B.useState)(o), p = rGe(c, l), m = (0, B.useCallback)((e) => {- f(e), s?.(e);- }, [s]), h = (0, B.useMemo)(() => ({+function U5({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = qWe, outerRadius: l = JWe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {+ let m = (0, B.useId)().replace(/:/g, ""), [h, g] = (0, B.useState)(u), _ = nGe(f), v = $We(o), y = (0, B.useCallback)((e, t) => {+ g(e), d?.(e === null ? null : {+ dataKey: e,+ value: t ?? 0+ });+ }, [d]), b = (0, B.useMemo)(() => t.map((e) => ({+ ...e,+ fill: `url(#${m}-radial-colors-${e[n]})`+ })), [+ t,+ n,+ m+ ]), x = (0, B.useMemo)(() => ({config: e,- isLoading: c,- selectedDataKey: d,- selectDataKey: m+ nameKey: n,+ chartId: m,+ isLoading: f,+ selectedBar: h,+ selectBar: y}), [e,- c,- d,- m+ n,+ m,+ f,+ h,+ y]);- return /* @__PURE__ */ (0, V.jsx)(r5, {- value: h,- children: /* @__PURE__ */ (0, V.jsxs)(P6, {- className: r,+ return /* @__PURE__ */ (0, V.jsx)(V5, {+ value: x,+ children: /* @__PURE__ */ (0, V.jsxs)(e5, {+ className: i,config: e,- children: [/* @__PURE__ */ (0, V.jsx)(F6, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)(OHe, {- id: u,- data: c ? p : t,- ...i,+ children: [/* @__PURE__ */ (0, V.jsx)(t5, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(QUe, {+ id: m,+ data: f ? _ : b,+ innerRadius: c,+ outerRadius: l,+ startAngle: v.startAngle,+ endAngle: v.endAngle,+ cx: v.cx,+ cy: v.cy,+ ...a,children: [- a && /* @__PURE__ */ (0, V.jsx)(K6, { variant: a }),- n,- c && /* @__PURE__ */ (0, V.jsx)(iGe, {})+ s != null && s > 0 && /* @__PURE__ */ (0, V.jsx)(K2, {+ type: "number",+ domain: [0, s],+ tick: !1,+ axisLine: !1+ }),+ p && /* @__PURE__ */ (0, V.jsx)(f5, { variant: p }),+ r,+ f && /* @__PURE__ */ (0, V.jsx)(rGe, {}),+ /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(eGe, {+ config: e,+ chartId: m+ }) })]})]})});}-function GWe({ dataKey: e, variant: t = "filled", fillOpacity: n = UWe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = i5(), d = (0, B.useId)().replace(/:/g, "");- if (c) return null;- let f = i && l !== null && l !== e, p = {- stroke: f ? .2 : 1,- fill: f ? .1 : 1,- dot: f ? .2 : 1- }, m = t === "filled", { dot: h, activeDot: g } = ZWe(a, d, e, p.dot);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(y2, {+function XWe({ dataKey: e, cornerRadius: t = R5, barSize: n = z5, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = H5();+ return s ? null : /* @__PURE__ */ (0, V.jsx)(h3, {dataKey: e,- stroke: `url(#${d}-radar-stroke-${e})`,- strokeOpacity: p.stroke,- strokeWidth: HWe,- fill: m ? `url(#${d}-radar-fill-${e})` : "none",- fillOpacity: m ? n * p.fill : 0,- dot: h,- activeDot: g,- filter: r ? `url(#${d}-radar-glow-${e})` : void 0,- className: "transition-opacity duration-200",+ cornerRadius: t,+ barSize: n,+ background: r,+ className: "drop-shadow-sm",style: i ? { cursor: "pointer" } : void 0,- onClick: () => {- i && u(l === e ? null : e);+ onClick: (t, n) => {+ if (!i) return;+ let r = t, a = r?.[o] ?? String(n), s = Number(r?.[e] ?? 0);+ l(c === a ? null : a, s);},- ...o- }), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [- /* @__PURE__ */ (0, V.jsx)(QWe, {- id: d,- dataKey: e,- config: s- }),- /* @__PURE__ */ (0, V.jsx)($We, {- id: d,- dataKey: e,- config: s- }),- m && /* @__PURE__ */ (0, V.jsx)(eGe, {- id: d,- dataKey: e,- config: s- }),- r && /* @__PURE__ */ (0, V.jsx)(tGe, {- id: d,- dataKey: e- })- ] })] });-}-var o5 = () => null, s5 = () => null;-function KWe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {- return /* @__PURE__ */ (0, V.jsx)(f0, {- gridType: e,- stroke: t,- strokeOpacity: n,- strokeDasharray: r,- ...i- });-}-function qWe({ tick: e = {- fill: "currentColor",- fontSize: 12-}, tickLine: t = !1, ...n }) {- let { isLoading: r } = i5();- return r ? null : /* @__PURE__ */ (0, V.jsx)(E0, {- tick: e,- tickLine: t,- ...n- });-}-function JWe({ tick: e = {- fill: "currentColor",- fontSize: 10-}, tickLine: t = !1, axisLine: n = !1, ...r }) {- let { isLoading: i } = i5();- return i ? null : /* @__PURE__ */ (0, V.jsx)(b0, {- tick: e,- tickLine: t,- axisLine: n,- ...r+ shape: (e) => {+ let t = e[o], n = c === null || c === t;+ return /* @__PURE__ */ (0, V.jsx)(oJ, {+ ...e,+ opacity: i && !n ? .15 : 1,+ className: "transition-opacity duration-200"+ });+ },+ ...a});}-function YWe({ variant: e, roundness: t, defaultIndex: n }) {- let { isLoading: r, selectedDataKey: i } = i5();- return r ? null : /* @__PURE__ */ (0, V.jsx)(B6, {+function ZWe({ variant: e, roundness: t, defaultIndex: n }) {+ let { nameKey: r, isLoading: i } = H5();+ return i ? null : /* @__PURE__ */ (0, V.jsx)(o5, {defaultIndex: n,cursor: !1,- content: /* @__PURE__ */ (0, V.jsx)(z6, {- selected: i,+ content: /* @__PURE__ */ (0, V.jsx)(a5, {+ nameKey: r,+ hideLabel: !0,roundness: t,variant: e})});}-function XWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = i5();- return i ? null : /* @__PURE__ */ (0, V.jsx)(H6, {+function QWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = H5();+ return a ? null : /* @__PURE__ */ (0, V.jsx)(c5, {verticalAlign: n,align: t,- content: /* @__PURE__ */ (0, V.jsx)(V6, {- selected: a,- onSelectChange: o,+ content: /* @__PURE__ */ (0, V.jsx)(s5, {+ selected: o,+ onSelectChange: s,isClickable: r,+ nameKey: i,variant: e})});}-var ZWe = (e, t, n, r) => {- let i = !1, a = !1;- return B.Children.forEach(e, (e) => {- if ((0, B.isValidElement)(e)) {- if (e.type === o5) {- let { variant: a } = e.props;- i = /* @__PURE__ */ (0, V.jsx)(Z8, {- type: a,- dataKey: n,- chartId: t,- fillOpacity: r- });- }- if (e.type === s5) {- let { variant: i } = e.props;- a = /* @__PURE__ */ (0, V.jsx)(Z8, {- type: i,- dataKey: n,- chartId: t,- fillOpacity: r- });- }- }- }), {- dot: i,- activeDot: a- };-}, c5 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {- offset: "0%",- stopColor: `var(--color-${e}-0)`,- stopOpacity: n?.[0]-}), /* @__PURE__ */ (0, V.jsx)("stop", {- offset: "100%",- stopColor: `var(--color-${e}-0)`,- stopOpacity: n?.[n.length - 1]-})] }) : /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Array.from({ length: t }, (r, i) => {- let a = `${i / (t - 1) * 100}%`;- return /* @__PURE__ */ (0, V.jsx)("stop", {- offset: a,- stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,- stopOpacity: n?.[i]- }, a);-}) }), QWe = ({ id: e, dataKey: t, config: n }) => {- let r = R6(n[t] ?? {});- return /* @__PURE__ */ (0, V.jsx)("linearGradient", {- id: `${e}-colors-${t}`,- x1: "0",- y1: "0",- x2: "1",- y2: "0",- children: /* @__PURE__ */ (0, V.jsx)(c5, {- dataKey: t,- colorsCount: r- })- });-}, $We = ({ id: e, dataKey: t, config: n }) => {- let r = R6(n[t] ?? {});- return /* @__PURE__ */ (0, V.jsx)("linearGradient", {- id: `${e}-radar-stroke-${t}`,- x1: "0",- y1: "0",- x2: "1",- y2: "1",- children: /* @__PURE__ */ (0, V.jsx)(c5, {- dataKey: t,- colorsCount: r- })- });-}, eGe = ({ id: e, dataKey: t, config: n }) => {- let r = R6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);- return /* @__PURE__ */ (0, V.jsx)("radialGradient", {- id: `${e}-radar-fill-${t}`,- cx: "50%",- cy: "50%",- r: "50%",- children: /* @__PURE__ */ (0, V.jsx)(c5, {- dataKey: t,- colorsCount: r,- opacities: i- })- });-}, tGe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {- id: `${e}-radar-glow-${t}`,- x: "-50%",- y: "-50%",- width: "200%",- height: "200%",- children: [- /* @__PURE__ */ (0, V.jsx)("feGaussianBlur", {- in: "SourceGraphic",- stdDeviation: "4",- result: "blur"- }),- /* @__PURE__ */ (0, V.jsx)("feColorMatrix", {- in: "blur",- type: "matrix",- values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.6 0",- result: "glow"- }),- /* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })- ]-}), nGe = (e) => [- "A",- "B",- "C",- "D",- "E",- "F"-].slice(0, e).map((e) => ({- skill: e,- [n5]: 30 + Math.random() * 70-}));-function rGe(e, t = WWe) {- let [n, r] = (0, B.useState)(0);+function $We(e) {+ switch (e) {+ case "semi": return {+ startAngle: 180,+ endAngle: 0,+ cx: "50%",+ cy: "70%"+ };+ default: return {+ startAngle: 90,+ endAngle: -270,+ cx: "50%",+ cy: "50%"+ };+ }+}+var eGe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Object.entries(e).map(([e, n]) => {+ let r = i5(n);+ return /* @__PURE__ */ (0, V.jsx)("linearGradient", {+ id: `${t}-radial-colors-${e}`,+ x1: "0",+ y1: "0",+ x2: "1",+ y2: "1",+ children: r === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "0%",+ stopColor: `var(--color-${e}-0)`+ }), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "100%",+ stopColor: `var(--color-${e}-0)`+ })] }) : Array.from({ length: r }, (t, n) => {+ let i = `${n / (r - 1) * 100}%`;+ return /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: i,+ stopColor: `var(--color-${e}-${n}, var(--color-${e}-0))`+ }, i);+ })+ }, `${t}-radial-colors-${e}`);+}) });+function tGe() {+ return Array.from({ length: YWe }, (e, t) => ({+ name: `loading${t}`,+ value: 40 + Math.random() * 60+ }));+}+function nGe(e) {+ let [t, n] = (0, B.useState)(0);return (0, B.useEffect)(() => {if (!e) return;let t = setInterval(() => {- r((e) => e + 1);- }, t5);+ n((e) => e + 1);+ }, B5);return () => clearInterval(t);- }, [e]), (0, B.useMemo)(() => nGe(t), [t, n]);+ }, [e]), (0, B.useMemo)(() => tGe(), [t]);}-var iGe = () => /* @__PURE__ */ (0, V.jsx)(y2, {- dataKey: n5,- stroke: "currentColor",- strokeOpacity: .3,- strokeWidth: 2,- fill: "currentColor",- fillOpacity: .1,- dot: !1,+var rGe = () => /* @__PURE__ */ (0, V.jsx)(h3, {+ dataKey: "value",+ cornerRadius: R5,+ barSize: z5,+ background: !0,isAnimationActive: !0,- animationDuration: t5,- animationEasing: "ease-in-out"+ animationDuration: B5,+ animationEasing: "ease-in-out",+ shape: (e) => /* @__PURE__ */ (0, V.jsx)(oJ, {+ ...e,+ fill: "currentColor",+ fillOpacity: .25+ })});-a5.Radar = GWe, a5.Dot = o5, a5.ActiveDot = s5, a5.PolarGrid = KWe, a5.PolarAngleAxis = qWe, a5.PolarRadiusAxis = JWe, a5.Tooltip = YWe, a5.Legend = XWe;+U5.RadialBar = XWe, U5.Tooltip = ZWe, U5.Legend = QWe;//#endregion-//#region src/react/taste/charts.tsx-var aGe = [- "stroke-chart-1",- "stroke-chart-2",- "stroke-chart-3",- "stroke-chart-4",- "stroke-chart-5",- "stroke-chart-6"-], oGe = [- "fill-chart-1",- "fill-chart-2",- "fill-chart-3",- "fill-chart-4",- "fill-chart-5",- "fill-chart-6"-], l5 = { value: {- label: "标签命中",- colors: t8(e8[3])-} }, sGe = [- "min-h-24",- "min-h-24",- "min-h-24",- "min-h-32",- "min-h-40",- "min-h-48",- "min-h-52",- "min-h-60",- "min-h-64"-], cGe = 26, lGe = { radius: l5.value }, uGe = (e, t) => Math.sqrt(e / t);-function dGe({ rows: e, label: t }) {- let n = zWe(e);- if (!n.length) return null;- let r = n[0].value, i = n.map((e) => ({- ...e,- radius: uGe(e.value, r)+//#region src/react/stats/radial-card.tsx+var iGe = [+ "bg-chart-1",+ "bg-chart-2",+ "bg-chart-3",+ "bg-chart-4",+ "bg-chart-5",+ "bg-chart-6"+], aGe = [+ "aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",+ "aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",+ "aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",+ "aria-pressed:bg-chart-4/10 aria-pressed:ring-chart-4",+ "aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",+ "aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"+];+function W5({ title: e, rows: t, unit: n = "个视频" }) {+ let [r, i] = (0, B.useState)(-1), [a, o] = (0, B.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);+ if (!s.length) return null;+ let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({+ slice: S5(t),+ value: e.value}));- return /* @__PURE__ */ (0, V.jsx)("div", {- role: "img",- "aria-label": `${t}:${i.map((e) => e.name).join(",")}`,- children: /* @__PURE__ */ (0, V.jsxs)(a5, {- data: i,- config: lGe,- chartProps: { outerRadius: "58%" },- className: "aspect-auto h-70 text-text-secondary",- children: [- /* @__PURE__ */ (0, V.jsx)(a5.PolarGrid, {}),- /* @__PURE__ */ (0, V.jsx)(a5.PolarAngleAxis, { dataKey: "name" }),- /* @__PURE__ */ (0, V.jsx)(a5.PolarRadiusAxis, {- domain: [0, 1],- allowDecimals: !0,- tick: !1- }),- /* @__PURE__ */ (0, V.jsx)(a5.Radar, { dataKey: "radius" }),- /* @__PURE__ */ (0, V.jsx)(o8, { valueKey: "value" })- ]- })- });-}-function fGe({ rows: e, label: t }) {- let n = J8(e, 8);- return n.length ? /* @__PURE__ */ (0, V.jsx)("section", {- "aria-label": t,- className: `flex grow flex-col ${sGe[n.length]}`,- children: /* @__PURE__ */ (0, V.jsxs)(X6, {- data: n,- config: l5,- layout: "horizontal",- barRadius: 4,- chartProps: { maxBarSize: cGe },- className: "aspect-auto text-text-secondary",- children: [- /* @__PURE__ */ (0, V.jsx)(X6.YAxis, {- dataKey: "name",- interval: 0- }),- /* @__PURE__ */ (0, V.jsx)(X6.XAxis, {- hide: !0,- domain: s8- }),- /* @__PURE__ */ (0, V.jsx)(X6.Bar, {- dataKey: "value",- enableHoverHighlight: !0,- barProps: {- dataKey: "value",- label: c8("right")- }- }),- /* @__PURE__ */ (0, V.jsx)(o8, {})- ]- })- }) : null;-}-function pGe({ flows: e }) {- let [t, n] = (0, B.useState)(null), r = BWe(e);- if (!r) return null;- let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;return /* @__PURE__ */ (0, V.jsxs)("section", {- className: Q6,+ className: v5,children: [- /* @__PURE__ */ (0, V.jsx)($6, {- title: "创作者线索来源",- figure: (t ? t.value : r.total).toLocaleString(),- note: t ? t.label : "条线索"+ /* @__PURE__ */ (0, V.jsxs)("header", {+ className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",+ children: [/* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 flex-col gap-1",+ children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ className: "text-title-2-medium text-text-primary",+ children: u ? u.name : e+ }), /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-display-4-medium tabular-nums text-text-primary",+ children: (u ? u.value : l).toLocaleString()+ })]+ }), /* @__PURE__ */ (0, V.jsx)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: n+ })]}),/* @__PURE__ */ (0, V.jsx)("div", {- className: "min-w-0 overflow-x-auto",- children: /* @__PURE__ */ (0, V.jsxs)("svg", {- viewBox: `0 0 ${Y8.width} ${Y8.height}`,- fill: "none",- role: "img",- "aria-label": "来源网站与创作者线索",- className: "block h-auto max-h-130 min-w-160 w-full",- onPointerLeave: () => n(null),- children: [/* @__PURE__ */ (0, V.jsx)("g", { children: r.links.map((e) => /* @__PURE__ */ (0, V.jsx)("path", {- d: e.d,- strokeWidth: e.width,- tabIndex: 0,- role: "img",- "aria-label": `${e.label}:${e.value} 条线索`,- fillOpacity: 0,- strokeOpacity: a(e, e.label) ? .55 : .08,- className: `outline-none transition-opacity ${aGe[e.color]}`,- onPointerEnter: () => n({- value: e.value,- label: e.label,- node: null- }),- onFocus: () => n({- value: e.value,- label: e.label,- node: null- }),- onBlur: () => n(null)- }, e.key)) }), /* @__PURE__ */ (0, V.jsx)("g", { children: r.nodes.map((e) => /* @__PURE__ */ (0, V.jsxs)("g", {- tabIndex: 0,- role: "img",- "aria-label": `${e.name}:${e.value} 条线索`,- className: "outline-none focus-visible:opacity-100",- onPointerEnter: () => n({- value: e.value,- label: e.name,- node: e.index- }),- onFocus: () => n({- value: e.value,- label: e.name,- node: e.index- }),- onBlur: () => n(null),- children: [/* @__PURE__ */ (0, V.jsx)("rect", {- x: e.x,- y: e.y,- width: 10,- height: e.height,- rx: 5,- className: e.side === "source" ? oGe[e.color] : "fill-text-secondary"- }), /* @__PURE__ */ (0, V.jsxs)("text", {- x: X8[e.side],- y: e.y + e.height / 2,- textAnchor: e.side === "source" ? "end" : "start",- dominantBaseline: "middle",- className: "fill-text-secondary text-caption-1-regular",- children: [VWe(e.name), /* @__PURE__ */ (0, V.jsx)("tspan", {- x: X8[e.side],- dy: 15,- children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`- })]- })]- }, e.id)) })]+ role: "img",+ "aria-label": e,+ onPointerLeave: () => o(-1),+ children: /* @__PURE__ */ (0, V.jsxs)(U5, {+ data: f,+ nameKey: "slice",+ config: BWe(s.map((e) => e.name)),+ max: VSe(s.map((e) => e.value)),+ innerRadius: "22%",+ className: "aspect-auto h-75 max-sm:h-65",+ children: [/* @__PURE__ */ (0, V.jsx)(U5.RadialBar, {+ dataKey: "value",+ barSize: HSe(s.length),+ radialBarProps: {+ shape: (e) => /* @__PURE__ */ (0, V.jsx)(oJ, {+ ...e,+ opacity: c >= 0 && c !== e.index ? .3 : 1,+ className: "cursor-pointer transition-opacity duration-200"+ }),+ onClick: (e, t) => d(t),+ onMouseEnter: (e, t) => o(t)+ }+ }), /* @__PURE__ */ (0, V.jsx)(E5, {+ nameKey: "slice",+ hideLabel: !0+ })]})}),- /* @__PURE__ */ (0, V.jsxs)("footer", {- className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "创作者 · 线索占比" })]+ /* @__PURE__ */ (0, V.jsx)("div", {+ className: "inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2",+ children: s.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "aria-pressed": r === t,+ onClick: () => d(t),+ onPointerEnter: () => o(t),+ onPointerLeave: () => o(-1),+ onFocus: () => o(t),+ onBlur: () => o(-1),+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${aGe[t % 6]}`,+ children: [+ /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",+ children: [/* @__PURE__ */ (0, V.jsx)("i", {+ "aria-hidden": !0,+ className: `size-3 shrink-0 rounded-sm ${iGe[t % 6]}`+ }), e.name]+ }),+ /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-title-2-medium tabular-nums text-text-primary",+ children: e.value.toLocaleString()+ }),+ e.detail ? /* @__PURE__ */ (0, V.jsx)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: e.detail+ }) : null+ ]+ }, e.name))})]});}//#endregion-//#region src/react/taste/taste-page.tsx-var mGe = 10, u5 = hE(cM, lM, "text-body-2-medium"), d5 = `${xE()} flex flex-col gap-4`, f5 = "rounded-xl bg-background-primary-default p-3", hGe = "读取运行 Peach 的这台电脑上的浏览记录", gGe = "导入或读取浏览记录后,这里会列出已采集设备。", _Ge = "馆藏里暂时没有对得上浏览信号的标签。", vGe = "采集浏览记录后,这里会显示聚合后的口味证据。", yGe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", bGe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", xGe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", SGe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", CGe = "这个数据源将不再用于口味分析。原始导出文件保留。", p5 = "peach-taste-guide-dismissed";-function m5({ icon: e, term: t, figure: n, detail: r, accent: i }) {- return /* @__PURE__ */ (0, V.jsx)("div", {- className: tM(),- children: /* @__PURE__ */ (0, V.jsx)(aM, {- label: t,- icon: e,- accent: i,- figure: n,- footer: r ?? ""- })+//#region src/react/stats/stats-page.tsx+var oGe = 10, G5 = b5[5], sGe = b5[4], cGe = `${SE()} flex flex-col gap-4`, lGe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", uGe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", dGe = "开始播放后,这里会显示最近的真实观看证据。", fGe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", pGe = "添加媒体文件夹后,这里会显示存储空间。";+function K5({ term: e, value: t }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: e+ }), /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-title-3-medium tabular-nums text-text-primary",+ children: t.toLocaleString()+ })]});}-function h5({ name: e, domain: t }) {- return /* @__PURE__ */ (0, V.jsxs)("span", {- className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",- children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, V.jsx)("img", {- src: xe({ domain: t }),- alt: "",- loading: "lazy",- width: 20,- height: 20,- onError: (e) => e.currentTarget.remove(),- className: "absolute size-5 object-contain"+function q5({ term: e, value: t, total: n }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",+ children: [/* @__PURE__ */ (0, V.jsxs)("p", {+ className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e }), /* @__PURE__ */ (0, V.jsxs)("b", {+ className: "tabular-nums",+ children: [t.toLocaleString(), /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "ml-1.5 text-caption-1-regular text-text-secondary",+ children: [IB(t, n), "%"]+ })]+ })]+ }), /* @__PURE__ */ (0, V.jsx)(DE, {+ label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,+ value: t,+ max: Math.max(n, 1)})]});}-function wGe({ html: e }) {- return /* @__PURE__ */ (0, V.jsx)("span", {- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${eL}`,- dangerouslySetInnerHTML: { __html: e }+function J5({ term: e, figure: t, unit: n }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",+ children: [+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: e+ }),+ /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-display-4-medium tabular-nums text-text-primary",+ children: t+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-body-2-regular text-text-secondary",+ children: n+ })+ ]});}-function TGe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {- if (!e.length) return /* @__PURE__ */ (0, V.jsx)(SE, {- shell: "plain",- icon: CT,- title: "暂无足够证据",- children: r+function Y5({ headline: e, children: t }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: `${cGe} md:flex-row md:gap-6`,+ children: [e, /* @__PURE__ */ (0, V.jsx)("div", {+ className: "min-w-0 grow",+ children: t+ })]});- let a = RWe(e);- return /* @__PURE__ */ (0, V.jsx)(_8, {- previewCount: mGe,- className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",- children: e.map((e, r) => {- let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 100 1",- preserveAspectRatio: "none",- "aria-hidden": !0,- className: "absolute inset-0 -z-10 size-full overflow-hidden rounded-lg opacity-15",- children: /* @__PURE__ */ (0, V.jsx)("rect", {- width: a[r],- height: 1,- className: "fill-chart-4"- })- }),- /* @__PURE__ */ (0, V.jsx)("span", {- className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",- children: r + 1- }),- n === "domain" ? /* @__PURE__ */ (0, V.jsx)(h5, {- name: e.name,- domain: e.name- }) : null,- n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, V.jsx)(h5, {+}+function mGe({ data: e, configurable: t, openMediaSettings: n }) {+ return e.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-5",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "inline-grid w-full gap-5 md:grid-cols-2",+ children: [/* @__PURE__ */ (0, V.jsx)(W5, {+ title: "网盘与本地",+ rows: e.by_loc.map((e) => ({+ name: se[e.k] ?? e.k,+ value: e.videos,+ detail: pe(e.bytes)+ }))+ }), /* @__PURE__ */ (0, V.jsx)(W5, {+ title: "媒体库",+ rows: e.by_library.map((e) => ({name: e.name,- domain: s- }) : null,- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, V.jsx)(wGe, { html: w(e.name, e.entity_id ? {- id: e.entity_id,- has_image: !!e.has_image,- image_version: e.image_version,- avatar_focus: e.avatar_focus- } : null, e.has_avatar ? e.representative_asset_id ?? null : null, n === "creator" ? "creator" : t || "performer") }) : null,- /* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 grow flex-col gap-0.5",- children: [/* @__PURE__ */ (0, V.jsx)("b", {- className: "min-w-0 text-body-medium break-words text-text-primary",- children: e.name- }), /* @__PURE__ */ (0, V.jsx)("small", {- className: "text-caption-1-regular text-text-secondary",- children: LWe(e)- })]+ value: e.videos,+ detail: pe(e.bytes)+ }))+ })]+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",+ children: [+ /* @__PURE__ */ (0, V.jsx)(k5, {+ title: "时长",+ unit: "个视频",+ series: "视频",+ color: G5,+ rows: KSe(e.by_length)}),- o ? /* @__PURE__ */ (0, V.jsx)(cT, {- "aria-hidden": !0,- className: "size-4 shrink-0 text-text-tertiary"- }) : null- ] }), l = "relative isolate flex min-h-11 w-full min-w-0 items-center gap-2.5 rounded-lg px-3 py-2 text-left";- return /* @__PURE__ */ (0, V.jsx)("li", {- className: "min-w-0",- children: o ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- onClick: () => i(t, e.name),- className: `${l} cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring`,- children: c- }) : /* @__PURE__ */ (0, V.jsx)("div", {- className: l,- children: c+ /* @__PURE__ */ (0, V.jsx)(k5, {+ title: "画质",+ unit: "个视频",+ series: "视频",+ color: G5,+ rows: zB(e.by_quality)+ }),+ /* @__PURE__ */ (0, V.jsx)(k5, {+ title: "文件类型",+ unit: "个条目",+ series: "条目",+ color: G5,+ layout: "horizontal",+ rows: WSe(e.by_medium)})- }, e.name);- })+ ]+ })]+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ shell: "plain",+ icon: xae,+ title: "还没有视频",+ actions: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t ? /* @__PURE__ */ (0, V.jsx)(J, {+ size: "small",+ onClick: n,+ children: "添加媒体文件夹"+ }) : null, /* @__PURE__ */ (0, V.jsx)(xE, {+ variant: "secondary",+ href: "/follow-manage?tab=add",+ size: "small",+ children: "添加关注"+ })] }),+ children: lGe});}-function g5({ label: e, panels: t, onSignal: n }) {- return /* @__PURE__ */ (0, V.jsxs)(Gk, {- className: `${xE({ padding: "none" })} flex flex-col`,- children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: "px-4 pt-3",- children: /* @__PURE__ */ (0, V.jsx)(Xk, {- "aria-label": e,- className: Qk,- children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(qk, {- id: e.id,- className: $k,- children: e.name- }, e.id))+function hGe({ data: e }) {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(I5, {+ activity: e.play_activity,+ title: "播放时间",+ dailyTitle: "每日播放",+ words: {+ unit: "个作品",+ series: "作品",+ cellUnit: "个作品"+ },+ tone: 5+ }), /* @__PURE__ */ (0, V.jsx)(k5, {+ title: "播放次数",+ unit: "个作品",+ series: "作品",+ color: sGe,+ rows: JSe(e.replays)+ })] });+}+function gGe({ attribution: e }) {+ let t = e.videos;+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col",+ children: [+ /* @__PURE__ */ (0, V.jsx)(q5, {+ term: "有创作者",+ value: e.creator,+ total: t+ }),+ /* @__PURE__ */ (0, V.jsx)(q5, {+ term: "有番号",+ value: e.code,+ total: t+ }),+ /* @__PURE__ */ (0, V.jsx)(q5, {+ term: "有厂牌",+ value: e.studio,+ total: t+ }),+ /* @__PURE__ */ (0, V.jsx)(q5, {+ term: "已抽帧",+ value: e.thumb,+ total: t+ }),+ /* @__PURE__ */ (0, V.jsx)(q5, {+ term: "已探测时长",+ value: e.duration,+ total: t})- }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(Jk, {- id: e.id,- className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, V.jsx)(TGe, {- ...e.props,- onSignal: n+ ]+ });+}+function _Ge({ volume: e }) {+ let t = e.total, n = e.used ?? 0;+ return /* @__PURE__ */ (0, V.jsxs)("article", {+ className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",+ children: [+ /* @__PURE__ */ (0, V.jsxs)("header", {+ className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",+ children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ className: "min-w-0 break-words",+ children: e.label+ }), t == null ? /* @__PURE__ */ (0, V.jsx)("span", {+ className: "whitespace-nowrap text-text-secondary",+ children: e.online ? "容量未取得" : "离线"+ }) : /* @__PURE__ */ (0, V.jsxs)("b", {+ className: "whitespace-nowrap tabular-nums",+ children: [pe(n), /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "ml-1.5 text-caption-1-regular text-text-secondary",+ children: [IB(n, t), "%"]+ })]+ })]+ }),+ t == null ? null : /* @__PURE__ */ (0, V.jsx)(DE, {+ label: `${e.label}空间使用率`,+ value: n,+ max: Math.max(t, 1)+ }),+ /* @__PURE__ */ (0, V.jsxs)("p", {+ className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ className: "min-w-0 break-words",+ children: e.root ?? "未映射"+ }), t == null ? null : /* @__PURE__ */ (0, V.jsx)("span", {+ className: "whitespace-nowrap tabular-nums",+ children: `可用 ${pe(e.free ?? 0)} · 共 ${pe(t)}`+ })]})- }, e.id))]+ ]+ });+}+function vGe({ volumes: e, configurable: t, openMediaSettings: n }) {+ return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex flex-col",+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(_Ge, { volume: e }, `${e.kind}:${e.label}`))+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ shell: "plain",+ icon: vT,+ title: "还没有存储来源",+ actions: t ? /* @__PURE__ */ (0, V.jsx)(J, {+ size: "small",+ onClick: n,+ children: "添加媒体文件夹"+ }) : void 0,+ children: pGe});}-function EGe({ data: e, onSignal: t, navigate: n }) {- let r = e.analysis;- if (!r?.headline) return null;- let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({- key: `tag:${e.tag}`,- title: e.title,- detail: e.detail,- act: () => t("tag", e.tag)- })), ...(r.next_steps || []).map((e) => ({- key: `route:${e.route}`,- title: e.title,- detail: e.detail,- act: () => n(e.route)- }))];- return /* @__PURE__ */ (0, V.jsxs)("section", {- className: d5,- "aria-label": "口味总结",- children: [- /* @__PURE__ */ (0, V.jsxs)("header", {- className: "flex flex-col gap-2",+function yGe({ tags: e, tagLabel: t, onTag: n }) {+ return e.length ? /* @__PURE__ */ (0, V.jsx)(L5, {+ previewCount: oGe,+ className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",+ children: e.map((e, r) => /* @__PURE__ */ (0, V.jsx)("li", {+ className: "min-w-0",+ children: /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ onClick: () => n(e.k),+ className: "flex min-h-11 w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg px-3 py-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",children: [- /* @__PURE__ */ (0, V.jsx)("h3", {- className: "text-title-2-medium text-text-primary",- children: "口味总结"+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",+ children: r + 1}),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "max-w-prose text-title-2-regular text-text-primary",- children: r.headline+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "min-w-0 grow text-body-2-regular break-words text-text-primary",+ children: t(e.k)}),- /* @__PURE__ */ (0, V.jsxs)("p", {- className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsx)("i", {- "aria-hidden": !0,- className: `size-2 shrink-0 rounded-full ${i.level === "high" ? "bg-status-lime-text" : i.level === "medium" ? "bg-status-yellow-text" : "bg-text-tertiary"}`- }), i.label || "仍在学习"]+ /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-body-2-medium tabular-nums text-text-secondary",+ children: e.n.toLocaleString()})]- }),- r.points?.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "inline-grid w-full gap-3 sm:grid-cols-2",- children: r.points.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {- className: `flex min-w-0 flex-col gap-1 ${f5}`,- children: [/* @__PURE__ */ (0, V.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: e.label- }), /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-body-2-medium break-words text-text-primary",- children: e.text- })]- }, e.label))- }) : null,- a.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex flex-col gap-2",- children: a.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- onClick: e.act,- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${f5} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,- children: [/* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 grow flex-col gap-1",- children: [/* @__PURE__ */ (0, V.jsx)("b", {- className: "text-body-2-medium text-text-primary",- children: e.title- }), /* @__PURE__ */ (0, V.jsx)("small", {- className: "text-caption-1-regular text-text-secondary",- children: e.detail- })]- }), /* @__PURE__ */ (0, V.jsx)(cT, {- "aria-hidden": !0,- className: "size-4 shrink-0 text-text-tertiary"- })]- }, e.key))- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- shell: "plain",- icon: CT,- title: "还没有可探索的入口",- children: _Ge})- ]+ }, e.k))+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ shell: "plain",+ icon: xT,+ title: "还没有内容标签",+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {+ variant: "secondary",+ href: "/data-cleanup",+ size: "small",+ children: "补全资料"+ }),+ children: uGe});}-function DGe({ onboarding: e, done: t }) {- let [n, r] = (0, B.useState)(() => {- try {- return localStorage.getItem(p5) === "1";- } catch {- return !1;- }- });- return t || n ? null : /* @__PURE__ */ (0, V.jsx)("div", {- className: xE({- padding: "none",- className: "p-4"+function bGe({ rows: e }) {+ return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex flex-col gap-5",+ children: e.map((e) => {+ let t = LB(e);+ return /* @__PURE__ */ (0, V.jsxs)("article", {+ className: "flex flex-wrap items-center gap-x-6 gap-y-2",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "min-w-0 grow basis-64",+ children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ className: "min-w-0 text-body-2-medium text-text-primary",+ children: /* @__PURE__ */ (0, V.jsx)("a", {+ href: BSe(e),+ "data-middle-truncate": !0,+ className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",+ children: e.name+ })+ }), /* @__PURE__ */ (0, V.jsxs)("p", {+ className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: zSe(e) })]+ })]+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "min-w-0 basis-40",+ children: [/* @__PURE__ */ (0, V.jsx)(DE, {+ label: `真实观看 ${t.toFixed(0)}%`,+ value: t+ }), /* @__PURE__ */ (0, V.jsx)("small", {+ className: "mt-1.5 block text-caption-1-regular text-text-secondary",+ children: `真实 ${t.toFixed(0)}% · 到达 ${RB(e).toFixed(0)}%`+ })]+ })]+ }, `${e.kind}:${e.id}`);+ })+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ shell: "plain",+ icon: yT,+ title: "还没有观看记录",+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {+ variant: "secondary",+ href: "/",+ size: "small",+ children: "浏览馆藏"}),- children: /* @__PURE__ */ (0, V.jsxs)(HE, {- summary: "浏览器历史记录导入指南",- defaultOpen: e,+ children: dGe+ });+}+function xGe({ sources: e, videos: t }) {+ return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",+ children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("article", {+ className: "flex min-w-0 flex-col gap-1.5",children: [- /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: bGe- }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: xGe- }),- /* @__PURE__ */ (0, V.jsxs)("ul", {- className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsxs)("li", { children: [- "Chrome:在 ",- /* @__PURE__ */ (0, V.jsx)("a", {- href: "https://takeout.google.com/",- target: "_blank",- rel: "noopener noreferrer",- className: "text-text-primary underline-offset-4 hover:underline",- children: "Google Takeout"- }),- " ",- "选择 Chrome 历史记录,下载 ZIP 后直接导入。"- ] }), /* @__PURE__ */ (0, V.jsxs)("li", { children: [- "其他浏览器:用 ",- /* @__PURE__ */ (0, V.jsx)("a", {- href: "https://github.com/purarue/browserexport",- target: "_blank",- rel: "noopener noreferrer",- className: "text-text-primary underline-offset-4 hover:underline",- children: "browserexport"- }),- " ",- "导出历史记录,再导入导出文件。"- ] })]+ /* @__PURE__ */ (0, V.jsxs)("header", {+ className: "flex items-baseline justify-between gap-3",+ children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ className: "min-w-0 text-body-2-medium break-words text-text-primary",+ children: e.k+ }), /* @__PURE__ */ (0, V.jsxs)("b", {+ className: "text-body-2-medium whitespace-nowrap text-text-primary",+ children: [e.assets.toLocaleString(), /* @__PURE__ */ (0, V.jsx)("small", {+ className: "ml-1 text-caption-1-regular font-normal text-text-secondary",+ children: "个视频"+ })]+ })]}),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: SGe+ /* @__PURE__ */ (0, V.jsx)(DE, {+ label: `${e.k} 覆盖视频`,+ value: e.assets,+ max: Math.max(t, 1)}),- /* @__PURE__ */ (0, V.jsx)("span", {- className: "self-start",- children: /* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- size: "small",- onClick: () => {- try {- localStorage.setItem(p5, "1");- } catch {}- r(!0);- },- children: "跳过"- })+ /* @__PURE__ */ (0, V.jsxs)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: [e.n.toLocaleString(), " 条标签"]})]- })+ }, e.k))+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ shell: "plain",+ icon: xT,+ title: "还没有标签来源",+ actions: /* @__PURE__ */ (0, V.jsx)(xE, {+ variant: "secondary",+ href: "/data-cleanup",+ size: "small",+ children: "补全资料"+ }),+ children: fGe});}-function OGe({ busy: e, onRefresh: t, onImport: n }) {- let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {- a(!1), e();- };- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("span", {- "data-button-group": !0,- "data-split-button": !0,- "data-variant": "primary",- children: [/* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: fT,- title: hGe,- onClick: t,- ...X(e),- children: "读取浏览器历史"- }), /* @__PURE__ */ (0, V.jsx)(J, {- ref: r,- iconOnly: !0,- leadingIcon: oT,- "aria-label": "更多取得浏览记录的方式",- "aria-haspopup": "dialog",- "aria-expanded": i,- ...X(e),- onClick: () => {- e || a(!0);- }- })]- }), /* @__PURE__ */ (0, V.jsx)(QO, {- triggerRef: r,- isOpen: i,- onOpenChange: a,- placement: "bottom end",- offset: 4,- className: sM,- children: /* @__PURE__ */ (0, V.jsxs)(oM, {- "aria-label": "更多取得浏览记录的方式",- className: "flex w-52 flex-col gap-1 outline-none",- children: [/* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- className: u5,- onClick: () => o(t),- children: [/* @__PURE__ */ (0, V.jsx)(fT, {- "aria-hidden": !0,- className: "size-4 shrink-0"- }), "读取浏览器历史"]- }), /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- className: u5,- onClick: () => o(n),- children: [/* @__PURE__ */ (0, V.jsx)(wT, {- "aria-hidden": !0,- className: "size-4 shrink-0"- }), "导入历史文件"]- })]+function X5({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {+ return /* @__PURE__ */ (0, V.jsx)(Jk, {+ id: e,+ className: rM({+ interactive: !0,+ selectable: !0+ }),+ children: /* @__PURE__ */ (0, V.jsx)(sM, {+ label: t,+ icon: i,+ accent: a,+ figure: n,+ footer: r})- })] });-}-function kGe({ sources: e, window: t, toast: n }) {- let r = DS({- mutationFn: (e) => MWe(e, t),- onSuccess: (e) => {- z.setQueryData(G8(t), e.dashboard), n("已移除口味数据源");- }- });- return /* @__PURE__ */ (0, V.jsxs)("section", {- className: d5,- "aria-label": "数据源",- children: [- /* @__PURE__ */ (0, V.jsx)("h3", {- className: "text-title-2-medium text-text-primary",- children: "数据源"- }),- r.error ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- children: W(r.error)- }) : null,- e.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "inline-grid w-full gap-2 sm:grid-cols-2",- children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {- className: `flex min-w-0 items-center gap-3 ${f5}`,- children: [- /* @__PURE__ */ (0, V.jsx)("span", {- className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, V.jsx)(wT, {- "aria-hidden": !0,- className: "size-4"- }) : /* @__PURE__ */ (0, V.jsx)(pT, {- "aria-hidden": !0,- className: "size-4"- })- }),- /* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 grow flex-col gap-0.5",- children: [/* @__PURE__ */ (0, V.jsx)("b", {- className: "min-w-0 text-body-2-medium break-words text-text-primary",- children: e.profile- }), /* @__PURE__ */ (0, V.jsx)("small", {- className: "min-w-0 text-caption-1-regular break-words text-text-secondary",- children: `${e.browser} · ${e.host} · ${Number(e.visits || 0).toLocaleString()} 条`- })]- }),- /* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- size: "small",- "aria-label": `移除 ${e.profile}`,- iconOnly: !0,- leadingIcon: mT,- ...X(r.isPending),- onClick: () => {- r.isPending || Te({- title: "移除口味数据源",- body: CGe,- confirmLabel: "移除口味数据源",- onConfirm: () => r.mutateAsync(e.source_key)- });- }- })- ]- }, e.source_key))- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- shell: "plain",- icon: pT,- title: "还没有数据源",- children: gGe- })- ]});}-function AGe(e) {- let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, B.useState)("all"), [s, c] = (0, B.useState)("browser"), l = (0, B.useRef)(null), u = wS({- queryKey: G8(a),- queryFn: ({ signal: e }) => K8(a, e),- placeholderData: kS.keepPreviousData- }), { job: d, running: f, outcome: p, start: m } = EM({- queryKey: DWe,- queryFn: ({ signal: e }) => kWe(e),- start: () => jWe(a),- idlePollMs: PWe,- onFinish: (e) => {- e.status !== "failed" && (z.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));- }- }), h = DS({- mutationFn: (e) => NWe(e),- onSuccess: (e) => {- z.setQueryData(G8("all"), e.dashboard), o("all"), r("已导入口味数据");- }- }), g = (e) => {- let t = e.currentTarget.files?.[0];- e.currentTarget.value = "", !(!t || h.isPending) && (h.reset(), h.mutate(t));- }, _ = () => {- f || m.isPending || (m.reset(), m.mutate());- }, v = u.data;- if (!v) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+function SGe(e) {+ let t = TS({+ queryKey: PB,+ queryFn: ({ signal: e }) => FB(e)+ }), n = t.data;+ if (!n) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",- title: "口味分析读取失败",- children: u.error ? W(u.error) : "读取口味分析失败"+ title: "馆藏统计读取失败",+ children: t.error ? W(t.error) : "未取得统计数据,请刷新页面重试。"}) });- let y = v.summary || {}, b = v.coverage || {}, x = v.rankings || {}, S = v.storage || {}, C = x.browser_categories || [], w = v.gaps || [], T = b.tagged || 0, E = b.identified || 0, D = m.error ? W(m.error) : h.error ? W(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";- return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [- /* @__PURE__ */ (0, V.jsxs)(Gk, {- selectedKey: s,- onSelectionChange: (e) => c(String(e)),- className: "flex flex-col gap-5",+ 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 = IB(n.tag_cov, n.attribution.videos);+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${pe(o)}`+ }),+ /* @__PURE__ */ (0, V.jsxs)(Kk, {+ defaultSelectedKey: "inventory",+ className: "flex flex-col gap-4",children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-wrap items-center justify-between gap-3",- children: [/* @__PURE__ */ (0, V.jsxs)(Xk, {- "aria-label": "口味证据来源",- className: Qk,- children: [/* @__PURE__ */ (0, V.jsx)(qk, {- id: "browser",- className: $k,- children: "浏览器记录"- }), /* @__PURE__ */ (0, V.jsx)(qk, {- id: "peach",- className: $k,- children: "Peach 内部"- })]- }), /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-wrap items-center gap-2",- children: [- /* @__PURE__ */ (0, V.jsx)(CM, {- "aria-label": "分析范围",- selectedKey: a,- onSelectionChange: (e) => {- e !== null && o(String(e));- },- children: OWe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {- id: e,- children: t- }, e))- }),- /* @__PURE__ */ (0, V.jsx)(OGe, {- busy: f || m.isPending || h.isPending,- onRefresh: _,- onImport: () => l.current?.click()- }),- /* @__PURE__ */ (0, V.jsx)("input", {- ref: l,- type: "file",- tabIndex: -1,- "aria-hidden": !0,- className: "hidden",- onChange: g- })- ]- })]- }),- /* @__PURE__ */ (0, V.jsx)(DGe, {- onboarding: i,- done: !!(y.history_sources || v.updated_at)- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- "aria-live": "polite",- className: "flex flex-col gap-3 empty:hidden",- children: [- f ? /* @__PURE__ */ (0, V.jsx)(yM, {- label: d?.message || "正在读取浏览记录并更新口味分析",- value: d?.checked,- total: d?.total- }) : null,- h.isPending ? /* @__PURE__ */ (0, V.jsx)(yM, { label: "正在导入历史文件" }) : null,- D ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- children: D- }) : null- ]- }),- /* @__PURE__ */ (0, V.jsxs)(Jk, {- id: "browser",- className: "flex flex-col gap-5",- children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- className: nM,- children: [- /* @__PURE__ */ (0, V.jsx)(m5, {- accent: 0,- icon: vT,- term: "浏览记录",- figure: Number(y.history_visits || 0).toLocaleString(),- detail: `${y.history_sources || 0} 个数据源 · ${q8(y.range_start)}—${q8(y.range_end)}`- }),- /* @__PURE__ */ (0, V.jsx)(m5, {- accent: 1,- icon: bT,- term: "口味维度",- figure: C.length.toLocaleString(),- detail: C[0]?.name || "尚无主维度"- }),- /* @__PURE__ */ (0, V.jsx)(m5, {- accent: 2,- icon: CT,- term: "浏览候选",- figure: w.length.toLocaleString()- }),- /* @__PURE__ */ (0, V.jsx)(m5, {- accent: 3,- icon: pT,- term: "私有导出",- figure: Number(S.exports || 0).toLocaleString(),- detail: pe(S.bytes || 0)- })- ]- }),- /* @__PURE__ */ (0, V.jsxs)("section", {- className: `${d5} md:flex-row md:gap-6`,- "aria-label": "浏览器画像",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",- children: [- /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: "浏览器画像"- }),- /* @__PURE__ */ (0, V.jsx)(dGe, {- rows: C,- label: "主要口味维度"- }),- /* @__PURE__ */ (0, V.jsx)("small", {- className: "text-caption-1-regular text-text-secondary",- children: v.updated_at ? `更新于 ${q8(v.updated_at)}` : "尚未采集浏览记录"- })- ]- }), /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex min-w-0 grow flex-col",- children: C.length ? /* @__PURE__ */ (0, V.jsx)(fGe, {- rows: C,- label: "口味维度排名"- }) : /* @__PURE__ */ (0, V.jsx)(SE, {- shell: "plain",- icon: CT,- title: "暂无口味维度",- children: vGe- })- })]- }),- /* @__PURE__ */ (0, V.jsx)(g8, {- activity: v.activity,- title: "浏览活跃时间",- dailyTitle: "每日活跃",- words: {- unit: "口味网站访问",- series: "访问",- cellUnit: "次访问"- },- tone: 4,- empty: "还没有可用于分析的口味网站访问记录。"- }),- /* @__PURE__ */ (0, V.jsx)(pGe, { flows: v.creator_flows }),- /* @__PURE__ */ (0, V.jsx)(g5, {- label: "浏览器口味维度",- onSignal: t,- panels: [- {- id: "tags",- name: "标签",- props: {- rows: x.browser_tags || [],- kind: "tag",- visual: "none",- empty: "暂无足够证据"- }- },- {- id: "creators",- name: "创作者",- props: {- rows: x.browser_creators || [],- kind: "creator",- visual: "creator",- empty: "暂无创作者证据"- }- },- {- id: "domains",- name: "常访问网站",- props: {- rows: x.domains || [],- kind: "",- visual: "domain",- empty: "暂无网站证据"- }- },- {- id: "gaps",- name: "浏览候选",- props: {- rows: w,- kind: "",- visual: "none",- empty: yGe- }- }- ]+ /* @__PURE__ */ (0, V.jsxs)(qk, {+ "aria-label": "统计视图",+ className: iM,+ children: [+ /* @__PURE__ */ (0, V.jsx)(X5, {+ id: "inventory",+ label: "馆藏视频",+ icon: mT,+ accent: 0,+ figure: a.toLocaleString(),+ detail: pe(o)+ }),+ /* @__PURE__ */ (0, V.jsx)(X5, {+ id: "viewing",+ label: "看过",+ icon: _T,+ accent: 1,+ figure: r.played.toLocaleString(),+ detail: RSe(r.play_seconds)+ }),+ /* @__PURE__ */ (0, V.jsx)(X5, {+ id: "coverage",+ label: "内容标签",+ icon: xT,+ accent: 2,+ figure: `${s}%`,+ detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`+ }),+ /* @__PURE__ */ (0, V.jsx)(X5, {+ id: "storage",+ label: "使用空间",+ icon: vT,+ accent: 3,+ figure: `${i.online} 个卷`,+ detail: i.measured ? `已用 ${pe(i.used)}` : "容量未取得"})]}),- /* @__PURE__ */ (0, V.jsxs)(Jk, {- id: "peach",+ /* @__PURE__ */ (0, V.jsx)(Yk, {+ id: "inventory",+ children: /* @__PURE__ */ (0, V.jsx)(mGe, {+ data: n,+ ...e+ })+ }),+ /* @__PURE__ */ (0, V.jsxs)(Yk, {+ id: "viewing",className: "flex flex-col gap-5",- children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- className: nM,+ children: [/* @__PURE__ */ (0, V.jsx)(Y5, {+ headline: /* @__PURE__ */ (0, V.jsx)(J5, {+ term: "观看",+ figure: r.played.toLocaleString(),+ unit: "个作品有播放记录"+ }),+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "inline-grid w-full gap-3 sm:grid-cols-2",children: [- /* @__PURE__ */ (0, V.jsx)(m5, {- accent: 0,- icon: gT,- term: "Peach 看过",- figure: Number(y.peach_items || 0).toLocaleString(),- detail: FWe(y.peach_seconds || 0)+ /* @__PURE__ */ (0, V.jsx)(K5, {+ term: "馆藏观看",+ value: r.library_played}),- /* @__PURE__ */ (0, V.jsx)(m5, {- accent: 1,- icon: xae,+ /* @__PURE__ */ (0, V.jsx)(K5, {+ term: "在线直接观看",+ value: r.online_played+ }),+ /* @__PURE__ */ (0, V.jsx)(K5, {+ term: "高潮计数",+ value: r.o_total+ }),+ /* @__PURE__ */ (0, V.jsx)(K5, {+ term: "快进扫过",+ value: r.skimmed+ }),+ /* @__PURE__ */ (0, V.jsx)(K5, {term: "喜欢",- figure: Number(y.liked || 0).toLocaleString()+ value: r.liked}),- /* @__PURE__ */ (0, V.jsx)(m5, {- accent: 2,- icon: bae,- term: "不合口味",- figure: Number(y.disliked || 0).toLocaleString()+ /* @__PURE__ */ (0, V.jsx)(K5, {+ term: "明确不喜欢",+ value: r.dislike}),- /* @__PURE__ */ (0, V.jsx)(m5, {- accent: 3,- icon: bT,- term: "有标签",- figure: T.toLocaleString()+ /* @__PURE__ */ (0, V.jsx)(K5, {+ term: "看过了",+ value: r.seen+ }),+ /* @__PURE__ */ (0, V.jsx)(K5, {+ term: "回收站",+ value: r.trash})]+ })+ }), /* @__PURE__ */ (0, V.jsx)(hGe, { data: n })]+ }),+ /* @__PURE__ */ (0, V.jsx)(Yk, {+ id: "coverage",+ children: /* @__PURE__ */ (0, V.jsx)(Y5, {+ headline: /* @__PURE__ */ (0, V.jsx)(J5, {+ term: "内容标签覆盖",+ figure: `${s}%`,+ unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`}),- /* @__PURE__ */ (0, V.jsxs)("section", {- className: `${d5} md:flex-row md:gap-6`,- "aria-label": "Peach 观看",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",- children: [- /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: "Peach 观看"- }),- /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-display-4-medium tabular-nums text-text-primary",- children: Number(y.peach_items || 0).toLocaleString()- }),- /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-body-2-regular text-text-secondary",- children: "个作品有内部行为证据"- })- ]- }), /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex min-w-0 grow flex-col",- children: [/* @__PURE__ */ (0, V.jsx)(_5, {- term: "有标签",- value: T,- rest: b.untagged || 0- }), /* @__PURE__ */ (0, V.jsx)(_5, {- term: "有身份",- value: E,- rest: b.unidentified || 0- })]- })]+ children: /* @__PURE__ */ (0, V.jsx)(gGe, { attribution: n.attribution })+ })+ }),+ /* @__PURE__ */ (0, V.jsx)(Yk, {+ id: "storage",+ children: /* @__PURE__ */ (0, V.jsx)(Y5, {+ headline: /* @__PURE__ */ (0, V.jsx)(J5, {+ term: "使用空间",+ figure: String(i.measured),+ unit: "个卷已取得容量"}),- /* @__PURE__ */ (0, V.jsx)(g5, {- label: "Peach 口味维度",- onSignal: t,- panels: [- {- id: "tags",- name: "标签",- props: {- rows: x.peach_tags || [],- kind: "tag",- visual: "none",- empty: "暂无足够证据"- }- },- {- id: "creators",- name: "创作者",- props: {- rows: x.peach_creators || [],- kind: "creator",- visual: "creator",- empty: "暂无创作者证据"- }- },- {- id: "performers",- name: "女优",- props: {- rows: x.peach_performers || [],- kind: "performer",- visual: "entity",- empty: "暂无女优证据"- }- }- ]+ children: /* @__PURE__ */ (0, V.jsx)(vGe, {+ volumes: n.storage_volumes,+ ...e})- ]+ })})]}),- /* @__PURE__ */ (0, V.jsx)(EGe, {- data: v,- onSignal: t,- navigate: n- }),- /* @__PURE__ */ (0, V.jsx)(kGe, {- sources: v.sources || [],- window: a,- toast: r- })- ] });-}-function _5({ term: e, value: t, rest: n }) {- let r = Math.max(t + n, 1);- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",- children: [/* @__PURE__ */ (0, V.jsxs)("p", {- className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",- children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e }), /* @__PURE__ */ (0, V.jsxs)("b", {- className: "tabular-nums",- children: [t.toLocaleString(), /* @__PURE__ */ (0, V.jsx)("span", {- className: "ml-1.5 text-caption-1-regular text-text-secondary",- children: `${n} 项待补`- })]- })]- }), /* @__PURE__ */ (0, V.jsx)(EE, {- label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,- value: t,- max: r- })]- });-}-//#endregion-//#region src/react/router/managed-routes.tsx-function jGe(e, t, n) {- if (e === "duplicates") {- n("/duplicates");- return;- }- let r = t.managePath(e);- y5(r) ? n(r) : t.openManage(e);-}-var v5 = {- "/stats": {- prefetch: (e, t) => vxe(t),- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(oWe, {- tagLabel: ot,- onTag: t.openTag,- configurable: e.configurable,- openMediaSettings: () => {- t.requestConfigurationSection("媒体"), n("/configuration");- }- })- },- "/taste": {- prefetch: (e, t) => AWe("all", t),- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(AGe, {- onSignal: t.openTasteSignal,- navigate: n,- toast: (e) => t.receipt(e),- onboarding: e.onboarding- })- },- "/review": {- prefetch: (e, t) => gue(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(qve, {- ...e,- route: t.routeReview,- openItem: t.openItem,- openEntity: t.openEntity,- revealSource: t.revealSource,- toast: (e) => t.receipt(e)- })- },- "/data-cleanup": {- prefetch: (e, t) => rde(t),- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(vfe, {- failure: t.failure,- open: (e) => jGe(e, t, n),- toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)- })- },- "/duplicates": {- prefetch: (e, t) => jle(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(yme, {- openItem: t.openItem,- failure: t.failure,- toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})- })- },- "/quality-goals": {- prefetch: (e, t) => Yle(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(jve, {- openItem: t.openItem,- javTitleHtml: at,- javDisplayName: it,- toast: (e) => t.receipt(e),- srcBadge: t.srcBadge- })- },- "/scraping": {- prefetch: (e, t) => eye(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(sye, { toast: (e) => t.toast(e) })- },- "/configuration": {- prefetch: (e, t) => gR(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(ybe, {- receipt: (e) => t.receipt(e),- reopenTutorial: t.reopenTutorial,- section: e.section ?? ""- })- },- "/diagnostics": {- prefetch: (e, t) => bme(t),- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(wme, {- navigate: n,- openItem: t.openItem,- receipt: (e) => t.receipt(e),- configure: (e) => {- t.requestConfigurationSection(e), n("/configuration");- }- })- },- "/activity": {- prefetch: (e, t) => Moe(t),- page: () => /* @__PURE__ */ (0, V.jsx)(Yoe, {})- },- "/follow-manage": {- prefetch: (e, t) => nhe(t, e.tab),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(M_e, {- ...e,- route: t.routeFollowManage,- savePreference: t.saveFollowPreference,- toast: (e) => t.receipt(e),- openFollow: t.openFollow- })- }-}, y5 = (e) => Object.hasOwn(v5, e), b5 = {- "/playlists": {- prefetch: (e, t) => _ve(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(kve, {- revision: e.revision,- openPlaylist: t.openPlaylist,- openEntity: t.openEntity,- canFlip: t.canFlip,- toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})- })- },- "/follow": {- prefetch: (e, t) => uhe(e, t),- page: (e) => /* @__PURE__ */ (0, V.jsx)(Phe, { ...e })- }-}, x5 = (e) => Object.hasOwn(b5, e), S5 = {- prefetch: (e, t) => zfe(e, t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(J_e, {- ...e,- route: t.routeIndex,- savePreference: t.savePeopleLayout,- exitSelectMode: t.exitSelectMode,- personAvatar: t.personAvatar,- authorAvatar: t.authorAvatar,- tagLabel: ot,- openEntity: t.openEntity,- showTags: t.showIndexTags,- openFollowAuthor: t.openFollowAuthor,- openFollowTag: t.openFollowTag- })-}, C5 = {- "/performers": S5,- "/creators": S5,- "/studios": S5,- "/agencies": S5,- "/tags": S5-}, w5 = {- prefetch: (e) => Ofe(e),- page: (e) => /* @__PURE__ */ (0, V.jsx)(ume, { ...e })-}, T5 = {- "/performers/*": w5,- "/studios/*": w5,- "/creators/*": w5,- "/series/*": w5,- "/agencies/*": w5-}, E5 = {- "/": {- prefetch: (e, t) => Mre(e, t),- page: (e) => /* @__PURE__ */ (0, V.jsx)(CA, { ...e })- },- "/junk-files": {- prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, V.jsx)(lve, { ...e })- }-}, D5 = (e) => Object.hasOwn(E5, e), MGe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(hve, { ...e }) : /* @__PURE__ */ (0, V.jsx)(xM, { ...e }), O5 = {- "catalog-filter": {- prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, V.jsx)(ele, { ...e })- },- "feed-new": {- prefetch: (e) => Cfe(e),- page: (e) => /* @__PURE__ */ (0, V.jsx)(Tme, { ...e })- },- "library-processing": {- prefetch: (e, t) => IA(t),- page: (e) => /* @__PURE__ */ (0, V.jsx)(MGe, { ...e })- },- search: {- prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, V.jsx)(fye, { ...e })- }-}, k5 = (e) => Object.hasOwn(O5, e), A5 = {- "batch-dock": {- prefetch: async () => {},- page: () => /* @__PURE__ */ (0, V.jsx)(jne, {})- },- "glow-picker": {- prefetch: async () => {},- page: () => /* @__PURE__ */ (0, V.jsx)(Pne, {})- },- "manage-header": {- prefetch: async () => {},- page: () => /* @__PURE__ */ (0, V.jsx)(qie, {})- },- immerse: {- prefetch: async () => {},- page: () => /* @__PURE__ */ (0, V.jsx)(Iie, {})- },- "settings-panel": {- prefetch: async () => {},- page: () => /* @__PURE__ */ (0, V.jsx)(Wbe, {})- },- sidebar: {- prefetch: async () => {},- page: () => /* @__PURE__ */ (0, V.jsx)(sxe, {})- }-}, j5 = (e) => Object.hasOwn(A5, e), NGe = [- "/",- "/unseen",- "/watch-later",- "/flagged",- "/trash",- "/junk-files"-], PGe = [- ...Object.keys(v5),- ...Object.keys(b5),- ...Object.keys(C5),- ...Object.keys(T5),- ...NGe-], M5 = (e) => y5(e) || x5(e) || Object.hasOwn(C5, e) || Object.hasOwn(T5, e) || D5(e) || k5(e) || j5(e);-function N5(e) {- return y5(e) ? v5[e] : x5(e) ? b5[e] : D5(e) ? E5[e] : k5(e) ? O5[e] : j5(e) ? A5[e] : Object.hasOwn(C5, e) ? C5[e] : T5[e];-}-function FGe(e, t, n) {- return M5(e) ? N5(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));-}-function IGe(e, t, n, r) {- return N5(e).page(t, n, r);-}-//#endregion-//#region node_modules/react-router/dist/production/lib/router/url.js-var LGe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, RGe = /^[\\/]{2}/;-function zGe(e, t) {- return t + e.replace(/\\/g, "/");-}-//#endregion-//#region node_modules/react-router/dist/production/lib/router/history.js-function P5(e, t) {- if (e === !1 || e == null) throw Error(t);-}-function F5(e, t) {- if (!e) {- typeof console < "u" && console.warn(t);- try {- throw Error(t);- } catch {}- }-}-function BGe({ pathname: e = "/", search: t = "", hash: n = "" }) {- return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;-}-function I5(e) {- let t = {};- if (e) {- let n = e.indexOf("#");- n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));- let r = e.indexOf("?");- r >= 0 && (t.search = e.substring(r), e = e.substring(0, r)), e && (t.pathname = e);- }- return t;-}-//#endregion-//#region node_modules/react-router/dist/production/lib/router/utils.js-function VGe(e, t, n = "/") {- return HGe(e, t, n, !1);-}-function HGe(e, t, n, r, i) {- let a = U5((typeof t == "string" ? I5(t) : t).pathname || "/", n);- if (a == null) return null;- let o = i ?? UGe(e), s = null, c = nKe(a);- for (let e = 0; s == null && e < o.length; ++e) s = tKe(o[e], c, r);- return s;-}-function UGe(e) {- let t = L5(e);- return WGe(t), t;-}-function L5(e, t = [], n = [], r = "", i = !1) {- let a = (e, a, o = i, s) => {- let c = {- relativePath: s === void 0 ? e.path || "" : s,- caseSensitive: e.caseSensitive === !0,- childrenIndex: a,- route: e- };- if (c.relativePath.startsWith("/")) {- if (!c.relativePath.startsWith(r) && o) return;- P5(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);- }- let l = q5([r, c.relativePath]), u = n.concat(c);- e.children && e.children.length > 0 && (P5(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), L5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({- path: l,- score: $Ge(l, e.index),- routesMeta: u.map((e, t) => {- let [n, r] = H5(e.relativePath, e.caseSensitive, t === u.length - 1);- return {- ...e,- matcher: n,- compiledParams: r- };- })- });- };- return e.forEach((e, t) => {- if (e.path === "" || !e.path?.includes("?")) a(e, t);- else for (let n of R5(e.path)) a(e, t, !0, n);- }), t;-}-function R5(e) {- let t = e.split("/");- if (t.length === 0) return [];- let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");- if (r.length === 0) return i ? [a, ""] : [a];- let o = R5(r.join("/")), s = [];- return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);-}-function WGe(e) {- e.sort((e, t) => e.score === t.score ? eKe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);-}-var GGe = /^:[\w-]+$/, KGe = /^:[\w-]+/, qGe = 3.5, JGe = 3, YGe = 2, XGe = 1, ZGe = 10, QGe = -2, z5 = (e) => e === "*";-function $Ge(e, t) {- let n = e.split("/"), r = n.length;- return n.some(z5) && (r += QGe), t && (r += YGe), n.filter((e) => !z5(e)).reduce((e, t) => e + (GGe.test(t) ? JGe : KGe.test(t) ? qGe : t === "" ? XGe : ZGe), r);-}-function eKe(e, t) {- return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;-}-function tKe(e, t, n = !1) {- let { routesMeta: r } = e, i = {}, a = "/", o = [];- for (let e = 0; e < r.length; ++e) {- let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {- path: s.relativePath,- caseSensitive: s.caseSensitive,- end: c- }, d = s.matcher && s.compiledParams ? V5(u, l, s.matcher, s.compiledParams) : B5(u, l), f = s.route;- if (!d && c && n && !r[r.length - 1].route.index && (d = B5({- path: s.relativePath,- caseSensitive: s.caseSensitive,- end: !1- }, l)), !d) return null;- Object.assign(i, d.params), o.push({- params: i,- pathname: q5([a, d.pathname]),- pathnameBase: sKe(q5([a, d.pathnameBase])),- route: f- }), d.pathnameBase !== "/" && (a = q5([a, d.pathnameBase]));- }- return o;-}-function B5(e, t) {- typeof e == "string" && (e = {- path: e,- caseSensitive: !1,- end: !0- });- let [n, r] = H5(e.path, e.caseSensitive, e.end);- return V5(e, t, n, r);-}-function V5(e, t, n, r) {- let i = t.match(n);- if (!i) return null;- let a = i[0], o = J5(a, 1), s = i.slice(1);- return {- params: r.reduce((e, { paramName: t, isOptional: n }, r) => {- if (t === "*") {- let e = s[r] || "";- o = J5(a.slice(0, a.length - e.length), 1);- }- let i = s[r];- return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;- }, {}),- pathname: a,- pathnameBase: o,- pattern: e- };-}-function H5(e, t = !1, n = !0) {- F5(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);- let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {- if (r.push({- paramName: t,- isOptional: n != null- }), n) {- let t = a.charAt(i + e.length);- return t && t !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";- }- return "/([^\\/]+)";- }).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");- return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];-}-function nKe(e) {- try {- return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");- } catch (t) {- return F5(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;- }-}-function U5(e, t) {- if (t === "/") return e;- if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;- let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);- return r && r !== "/" ? null : e.slice(n) || "/";-}-function rKe(e, t = "/") {- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? I5(e) : e, a;- return n ? (n = K5(n), a = n.startsWith("/") || n.startsWith("\\") ? W5(n.substring(1), "/") : W5(n, t)) : a = t, {- pathname: a,- search: cKe(r),- hash: lKe(i)- };-}-function W5(e, t) {- let n = J5(t).split("/");- return e.split("/").forEach((e) => {- e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);- }), n.length > 1 ? n.join("/") : "/";-}-function G5(e, t, n, r) {- return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;-}-function iKe(e) {- return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);-}-function aKe(e) {- let t = iKe(e);- return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);-}-function oKe(e, t, n, r = !1) {- let i;- typeof e == "string" ? i = I5(e) : (i = { ...e }, P5(!i.pathname || !i.pathname.includes("?"), G5("?", "pathname", "search", i)), P5(!i.pathname || !i.pathname.includes("#"), G5("#", "pathname", "hash", i)), P5(!i.search || !i.search.includes("#"), G5("#", "search", "hash", i)));- let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;- if (o == null) s = n;- else {- let e = t.length - 1;- if (!r && o.startsWith("..")) {- let t = o.split("/");- for (; t[0] === "..";) t.shift(), --e;- i.pathname = t.join("/");- }- s = e >= 0 ? t[e] : "/";- }- let c = rKe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");- return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;-}-var K5 = (e) => e.replace(/[\\/]{2,}/g, "/"), q5 = (e) => K5(e.join("/"));-function J5(e, t = 0) {- let n = e.length;- for (; n > t && e.charCodeAt(n - 1) === 47;) n--;- return n === e.length ? e : e.slice(0, n);-}-var sKe = (e) => J5(e).replace(/^\/*/, "/"), cKe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, lKe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, uKe = class {- status;- statusText;- data;- error;- internal;- constructor(e, t, n, r = !1) {- this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;- }-};-function dKe(e) {- return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;-}-function fKe(e) {- return q5(e.map((e) => e.route.path).filter(Boolean)) || "/";+ /* @__PURE__ */ (0, V.jsxs)(Kk, {+ defaultSelectedKey: "tags",+ className: `${SE({ padding: "none" })} flex flex-col`,+ children: [+ /* @__PURE__ */ (0, V.jsx)("div", {+ className: "px-4 pt-3",+ children: /* @__PURE__ */ (0, V.jsxs)(Zk, {+ "aria-label": "统计维度",+ className: $k,+ children: [+ /* @__PURE__ */ (0, V.jsx)(Jk, {+ id: "tags",+ className: eA,+ children: "内容标签"+ }),+ /* @__PURE__ */ (0, V.jsx)(Jk, {+ id: "recent",+ className: eA,+ children: "最近看过"+ }),+ /* @__PURE__ */ (0, V.jsx)(Jk, {+ id: "sources",+ className: eA,+ children: "标签来源"+ })+ ]+ })+ }),+ /* @__PURE__ */ (0, V.jsx)(Yk, {+ id: "tags",+ className: "px-4 pt-3.5 pb-4",+ children: /* @__PURE__ */ (0, V.jsx)(yGe, {+ tags: n.top_tags,+ ...e+ })+ }),+ /* @__PURE__ */ (0, V.jsx)(Yk, {+ id: "recent",+ className: "px-4 pt-3.5 pb-4",+ children: /* @__PURE__ */ (0, V.jsx)(bGe, { rows: n.recent })+ }),+ /* @__PURE__ */ (0, V.jsx)(Yk, {+ id: "sources",+ className: "px-4 pt-3.5 pb-4",+ children: /* @__PURE__ */ (0, V.jsx)(xGe, {+ sources: n.tag_source,+ videos: n.attribution.videos+ })+ })+ ]+ })+ ] });}-var Y5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;-function pKe(e, t) {- let n = e;- if (typeof n != "string" || !LGe.test(n)) return {- absoluteURL: void 0,- isExternal: !1,- to: n- };- let r = n, i = !1;- if (Y5) try {- let e = new URL(window.location.href), r = RGe.test(n) ? new URL(zGe(n, e.protocol)) : new URL(n), a = U5(r.pathname, t);- r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;- } catch {- F5(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);- }- return {- absoluteURL: r,- isExternal: i,- to: n- };+//#endregion+//#region node_modules/d3-sankey/src/align.js+function CGe(e, t) {+ return e.sourceLinks.length ? e.depth : t - 1;}//#endregion-//#region node_modules/react-router/dist/production/lib/router/navigation.js-var X5 = new URL("http://localhost");+//#region node_modules/d3-sankey/src/constant.jsfunction Z5(e) {- if (e.createURL) return e.createURL("/");- try {- return new URL(e.createHref("/"), X5);- } catch {- return X5;- }-}-function Q5(e, t) {- return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);-}-function mKe(e, t) {- if (e.startsWith("//")) return !0;- let n = t.protocol.toLowerCase();- return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;-}-function $5(e, t, n, r) {- let i = null;- try {- i = e == null ? null : new URL(e, n);- } catch {}- let a = new URL(t, n), o = i != null && !Q5(i, n), s = !Q5(a, n);- if (r === "reject") {- if (o || s) throw Error("External navigation is not allowed");- } else if (s && (i == null || !mKe(e, i) || !Q5(i, a))) throw Error("External navigation is not allowed");+ return function() {+ return e;+ };}//#endregion-//#region node_modules/react-router/dist/production/lib/router/router.js-var e7 = [- "POST",- "PUT",- "PATCH",- "DELETE"-];-new Set(e7);-var hKe = ["GET", ...e7];-new Set(hKe);-var gKe = [- "about:",- "blob:",- "chrome:",- "chrome-untrusted:",- "content:",- "data:",- "devtools:",- "file:",- "filesystem:",- "javascript:"-];-function _Ke(e) {- try {- return gKe.includes(new URL(e).protocol);- } catch {- return !1;- }+//#region node_modules/d3-sankey/src/sankey.js+function Q5(e, t) {+ return e7(e.source, t.source) || e.index - t.index;}-//#endregion-//#region node_modules/react-router/dist/production/lib/context.js-var t7 = B.createContext(null);-t7.displayName = "DataRouter";-var vKe = B.createContext(null);-vKe.displayName = "DataRouterState";-var n7 = B.createContext(null);-n7.displayName = "DataRouterData";-var yKe = B.createContext(null);-yKe.displayName = "DataRouterNavigation";-var bKe = B.createContext(!1), xKe = B.createContext({ isTransitioning: !1 });-xKe.displayName = "ViewTransition";-var SKe = B.createContext(null);-SKe.displayName = "Fetchers";-var CKe = B.createContext(null);-CKe.displayName = "Await";-var r7 = B.createContext(null);-r7.displayName = "Navigation";-var i7 = B.createContext(null);-i7.displayName = "Location";-var a7 = B.createContext({- outlet: null,- matches: [],- isDataRoute: !1-});-a7.displayName = "Route";-var o7 = B.createContext(!1);-o7.displayName = "IsDataRoute";-var s7 = B.createContext(void 0);-s7.displayName = "RouteId";-var c7 = B.createContext(null);-c7.displayName = "RouteError";-//#endregion-//#region node_modules/react-router/dist/production/lib/errors.js-var l7 = "REACT_ROUTER_ERROR", wKe = "REDIRECT", TKe = "ROUTE_ERROR_RESPONSE";-function EKe(e) {- if (e.startsWith(`${l7}:${wKe}:{`)) try {- let t = JSON.parse(e.slice(28));- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;- } catch {}+function $5(e, t) {+ return e7(e.target, t.target) || e.index - t.index;}-function DKe(e) {- if (e.startsWith(`${l7}:${TKe}:{`)) try {- let t = JSON.parse(e.slice(40));- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new uKe(t.status, t.statusText, t.data);- } catch {}+function e7(e, t) {+ return e.y0 - t.y0;}-//#endregion-//#region node_modules/react-router/dist/production/lib/hooks.js-function u7() {- return B.useContext(i7) != null;+function t7(e) {+ return e.value;}-function d7() {- return P5(u7(), "useLocation() may be used only in the context of a <Router> component."), B.useContext(i7).location;+function wGe(e) {+ return e.index;}-var f7 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";-function OKe() {- return B.useContext(o7) ? BKe() : kKe();+function TGe(e) {+ return e.nodes;}-function kKe() {- P5(u7(), "useNavigate() may be used only in the context of a <Router> component.");- let e = B.useContext(t7), { basename: t, navigator: n } = B.useContext(r7), { matches: r } = B.useContext(a7), { pathname: i } = d7(), a = JSON.stringify(aKe(r)), o = B.useRef(!1);- return B.useLayoutEffect(() => {- o.current = !0;- }), B.useCallback((r, s = {}) => {- if (F5(o.current, f7), !o.current) return;- if (typeof r == "number") {- n.go(r);- return;- }- let c = oKe(r, JSON.parse(a), i, s.relative === "path");- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : q5([t, c.pathname])), $5(typeof r == "string" ? r : BGe(r), n.createHref(c), Z5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);- }, [- t,- n,- a,- i,- e- ]);+function EGe(e) {+ return e.links;}-B.createContext(null);-function AKe(e, t) {- return p7(e, t);+function n7(e, t) {+ let n = e.get(t);+ if (!n) throw Error("missing: " + t);+ return n;}-function p7(e, t, n) {- P5(u7(), "useRoutes() may be used only in the context of a <Router> component.");- let { navigator: r } = B.useContext(r7), { matches: i } = B.useContext(a7), a = i[i.length - 1], o = a ? a.params : {};- a && a.pathname;- let s = a ? a.pathnameBase : "/";- a && a.route;- let c = d7(), l;- if (t) {- let e = typeof t == "string" ? I5(t) : t;- P5(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;- } else l = c;- let u = l.pathname || "/", d = u;- if (s !== "/") {- let e = s.replace(/^\//, "").split("/");- d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");+function r7({ nodes: e }) {+ for (let t of e) {+ let e = t.y0, n = e;+ for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;+ for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;}- let f;- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : VGe(e, { pathname: d });- let p = IKe(f && f.map((e) => Object.assign({}, e, {- params: Object.assign({}, o, e.params),- pathname: q5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),- pathnameBase: e.pathnameBase === "/" ? s : q5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])- })), i, n);- return t && p ? /* @__PURE__ */ B.createElement(i7.Provider, { value: {- location: {- pathname: "/",- search: "",- hash: "",- state: null,- key: "default",- mask: void 0,- ...l- },- navigationType: "POP"- } }, p) : p;-}-function jKe() {- let e = zKe(), t = dKe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;- return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ B.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ B.createElement("pre", { style: {- padding: "0.5rem",- backgroundColor: "rgba(200,200,200, 0.5)"- } }, n) : null, null);}-var MKe = /* @__PURE__ */ B.createElement(jKe, null), NKe = class extends B.Component {- constructor(e) {- super(e), this.state = {- location: e.location,- revalidation: e.revalidation,- error: e.error+function DGe() {+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = wGe, c = CGe, l, u, d = TGe, f = EGe, p = 6;+ function m() {+ let e = {+ nodes: d.apply(null, arguments),+ links: f.apply(null, arguments)};+ return h(e), g(e), _(e), v(e), x(e), r7(e), e;}- static contextType = bKe;- static getDerivedStateFromError(e) {- return { error: e };+ m.update = function(e) {+ return r7(e), e;+ }, m.nodeId = function(e) {+ return arguments.length ? (s = typeof e == "function" ? e : Z5(e), m) : s;+ }, m.nodeAlign = function(e) {+ return arguments.length ? (c = typeof e == "function" ? e : Z5(e), m) : c;+ }, m.nodeSort = function(e) {+ return arguments.length ? (l = e, m) : l;+ }, m.nodeWidth = function(e) {+ return arguments.length ? (i = +e, m) : i;+ }, m.nodePadding = function(e) {+ return arguments.length ? (a = o = +e, m) : a;+ }, m.nodes = function(e) {+ return arguments.length ? (d = typeof e == "function" ? e : Z5(e), m) : d;+ }, m.links = function(e) {+ return arguments.length ? (f = typeof e == "function" ? e : Z5(e), m) : f;+ }, m.linkSort = function(e) {+ return arguments.length ? (u = e, m) : u;+ }, m.size = function(i) {+ return arguments.length ? (e = t = 0, n = +i[0], r = +i[1], m) : [n - e, r - t];+ }, m.extent = function(i) {+ return arguments.length ? (e = +i[0][0], n = +i[1][0], t = +i[0][1], r = +i[1][1], m) : [[e, t], [n, r]];+ }, m.iterations = function(e) {+ return arguments.length ? (p = +e, m) : p;+ };+ function h({ nodes: e, links: t }) {+ for (let [t, n] of e.entries()) n.index = t, n.sourceLinks = [], n.targetLinks = [];+ let n = new Map(e.map((t, n) => [s(t, n, e), t]));+ for (let [e, r] of t.entries()) {+ r.index = e;+ let { source: t, target: i } = r;+ typeof t != "object" && (t = r.source = n7(n, t)), typeof i != "object" && (i = r.target = n7(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);+ }+ if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);}- static getDerivedStateFromProps(e, t) {- return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {- error: e.error,- location: e.location,- revalidation: e.revalidation- } : {- error: e.error === void 0 ? t.error : e.error,- location: t.location,- revalidation: e.revalidation || t.revalidation- };+ function g({ nodes: e }) {+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(DY(t.sourceLinks, t7), DY(t.targetLinks, t7)) : t.fixedValue;}- componentDidCatch(e, t) {- this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);+ function _({ nodes: e }) {+ let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;+ for (; n.size;) {+ for (let e of n) {+ e.depth = i;+ for (let { target: t } of e.sourceLinks) r.add(t);+ }+ if (++i > t) throw Error("circular link");+ n = r, r = /* @__PURE__ */ new Set();+ }}- render() {- let e = this.state.error;- if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {- let t = DKe(e.digest);- t && (e = t);+ function v({ nodes: e }) {+ let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;+ for (; n.size;) {+ for (let e of n) {+ e.height = i;+ for (let { source: t } of e.targetLinks) r.add(t);+ }+ if (++i > t) throw Error("circular link");+ n = r, r = /* @__PURE__ */ new Set();}- let t = e === void 0 ? this.props.children : /* @__PURE__ */ B.createElement(a7.Provider, { value: this.props.routeContext }, /* @__PURE__ */ B.createElement(o7.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ B.createElement(s7.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ B.createElement(c7.Provider, {- value: e,- children: this.props.component- }))));- return this.context ? /* @__PURE__ */ B.createElement(PKe, { error: e }, t) : t;}-}, m7 = /* @__PURE__ */ new WeakMap();-function PKe({ children: e, error: t }) {- let { basename: n, navigator: r } = B.useContext(r7);- if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {- let e = EKe(t.digest);- if (e) {- let i = m7.get(t);- if (i) throw i;- let a = pKe(e.location, n), o = a.absoluteURL || a.to;- if ($5(e.location, o, Z5(r), "allow-explicit"), _Ke(o)) throw Error("Invalid redirect location");- if (Y5 && !m7.get(t)) {- if (a.isExternal || e.reloadDocument) window.location.href = o;- else {- let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));- throw m7.set(t, n), n;- }+ function y({ nodes: t }) {+ let r = CY(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];+ }+ if (l) for (let e of o) e.sort(l);+ return o;+ }+ function b(e) {+ let n = wY(e, (e) => (r - t - (e.length - 1) * o) / DY(e, t7));+ for (let i of e) {+ let e = t;+ for (let t of i) {+ t.y0 = e, t.y1 = e + t.value * n, e = t.y1 + o;+ for (let e of t.sourceLinks) e.width = e.value * n;}- return /* @__PURE__ */ B.createElement("meta", {- httpEquiv: "refresh",- content: `0;url=${o}`- });+ e = (r - e + o) / (i.length + 1);+ for (let t = 0; t < i.length; ++t) {+ let n = i[t];+ n.y0 += e * (t + 1), n.y1 += e * (t + 1);+ }+ O(i);}}- return e;-}-function FKe({ routeContext: e, match: t, children: n }) {- let r = B.useContext(t7);- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ B.createElement(a7.Provider, { value: e }, /* @__PURE__ */ B.createElement(o7.Provider, { value: e.isDataRoute }, /* @__PURE__ */ B.createElement(s7.Provider, { value: t.route.id }, n)));-}-function IKe(e, t = [], n) {- let r = n?.state;- if (e == null) {- if (!r) return null;- if (r.errors) e = r.matches;- else if (t.length === 0 && !r.initialized && r.matches.length > 0) e = r.matches;- else return null;+ function x(e) {+ let n = y(e);+ o = Math.min(a, (r - t) / (CY(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);+ }}- let i = e, a = r?.errors;- if (a != null) {- let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);- P5(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));+ function S(e, t, n) {+ for (let r = 1, i = e.length; r < i; ++r) {+ let i = e[r];+ for (let e of i) {+ let n = 0, r = 0;+ for (let { source: t, value: i } of e.targetLinks) {+ let a = i * (e.layer - t.layer);+ n += k(t, e) * a, r += a;+ }+ if (!(r > 0)) continue;+ let i = (n / r - e.y0) * t;+ e.y0 += i, e.y1 += i, D(e);+ }+ l === void 0 && i.sort(e7), w(i, n);+ }}- let o = !1, s = -1;- if (n && r) {- o = r.renderFallback;- for (let e = 0; e < i.length; e++) {- let t = i[e];- if ((t.route.HydrateFallback || t.route.hydrateFallbackElement) && (s = e), t.route.id) {- let { loaderData: e, errors: a } = r, c = t.route.loader && !e.hasOwnProperty(t.route.id) && (!a || a[t.route.id] === void 0);- if (t.route.lazy || c) {- n.isStatic && (o = !0), i = s >= 0 ? i.slice(0, s + 1) : [i[0]];- break;+ function C(e, t, n) {+ for (let r = e.length - 2; r >= 0; --r) {+ let i = e[r];+ for (let e of i) {+ let n = 0, r = 0;+ for (let { target: t, value: i } of e.sourceLinks) {+ let a = i * (t.layer - e.layer);+ n += A(e, t) * a, r += a;}+ if (!(r > 0)) continue;+ let i = (n / r - e.y0) * t;+ e.y0 += i, e.y1 += i, D(e);}+ l === void 0 && i.sort(e7), w(i, n);}}- let c = n?.onError, l = r && c ? (e, t) => {- c(e, {- location: r.location,- params: r.matches?.[0]?.params ?? {},- pattern: fKe(r.matches),- errorInfo: t- });- } : void 0;- return i.reduceRight((e, n, c) => {- let u, d = !1, f = null, p = null;- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || MKe, o && (s < 0 && c === 0 ? (VKe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));- let m = t.concat(i.slice(0, c + 1)), h = () => {- let t;- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ B.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ B.createElement(FKe, {- match: n,- routeContext: {- outlet: e,- matches: m,- isDataRoute: r != null- },- children: t- });- };- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ B.createElement(NKe, {- location: r.location,- revalidation: r.revalidation,- component: f,- error: u,- children: h(),- routeContext: {- outlet: null,- matches: m,- isDataRoute: !0- },- onError: l- }) : h();- }, null);-}-function h7(e) {- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;-}-function LKe(e) {- let t = B.useContext(t7);- return P5(t, h7(e)), t;-}-function RKe(e) {- let t = B.useContext(n7);- return P5(t, h7(e)), t;-}-function g7(e) {- let t = B.useContext(s7);- return P5(t, `${e} can only be used on routes that contain a unique "id"`), t;-}-function zKe() {- let e = B.useContext(c7), t = RKe("useRouteError"), n = g7("useRouteError");- return e === void 0 ? t.errors?.[n] : e;-}-function BKe() {- let { router: e } = LKe("useNavigate"), t = g7("useNavigate"), n = B.useRef(!1);- return B.useLayoutEffect(() => {- n.current = !0;- }), B.useCallback(async (r, i = {}) => {- F5(n.current, f7), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {- fromRouteId: t,- ...i- }));- }, [e, t]);-}-var _7 = {};-function VKe(e, t, n) {- !t && !_7[e] && (_7[e] = !0, F5(!1, n));-}-B.memo(HKe);-function HKe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {- let a = B.useContext(t7);- return P5(a, "You must render this element inside a <DataRouterContext.Provider> element"), p7(e, void 0, {- router: a.router,- manifest: t,- state: n,- isStatic: r,- onError: i- });-}-function v7(e) {- P5(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");-}-function UKe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {- P5(!u7(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");- let s = e.replace(/^\/*/, "/"), c = B.useMemo(() => ({- basename: s,- navigator: i,- static: a,- useTransitions: o,- future: {}- }), [- s,- i,- a,- o- ]);- typeof n == "string" && (n = I5(n));- let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = B.useMemo(() => {- let e = U5(l, s);- return e == null ? null : {- location: {- pathname: e,- search: u,- hash: d,- state: f,- key: p,- mask: m- },- navigationType: r- };- }, [- s,- l,- u,- d,- f,- p,- r,- m- ]);- return F5(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ B.createElement(r7.Provider, { value: c }, /* @__PURE__ */ B.createElement(i7.Provider, {- children: t,- value: h- }));-}-function y7({ children: e, location: t }) {- return AKe(b7(e), t);-}-B.Component;-function b7(e, t = []) {- let n = [];- return B.Children.forEach(e, (e, r) => {- if (!B.isValidElement(e)) return;- let i = [...t, r];- if (e.type === B.Fragment) {- n.push.apply(n, b7(e.props.children, i));- return;+ function w(e, n) {+ let i = e.length >> 1, a = e[i];+ E(e, a.y0 - o, i - 1, n), T(e, a.y1 + o, i + 1, n), E(e, r, e.length - 1, n), T(e, t, 0, n);+ }+ function T(e, t, n, r) {+ for (; n < e.length; ++n) {+ let i = e[n], a = (t - i.y0) * r;+ a > 1e-6 && (i.y0 += a, i.y1 += a), t = i.y1 + o;}- P5(e.type === v7, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);- let a = e.props;- P5(!a.index || !a.children, "An index route cannot have child routes.");- let o = {- id: a.id || i.join("-"),- caseSensitive: a.caseSensitive,- element: a.element,- Component: a.Component,- index: a.index,- path: a.path,- middleware: a.middleware,- loader: a.loader,- action: a.action,- hydrateFallbackElement: a.hydrateFallbackElement,- HydrateFallback: a.HydrateFallback,- errorElement: a.errorElement,- ErrorBoundary: a.ErrorBoundary,- shouldRevalidate: a.shouldRevalidate,- handle: a.handle,- lazy: a.lazy- };- a.children && (o.children = b7(a.children, i)), n.push(o);- }), n;-}-//#endregion-//#region src/react/providers.tsx-var x7 = null;-function WKe() {- return x7?.isConnected || (x7 = document.createElement("div"), x7.className = "peach-react", x7.dataset.reactOverlays = "", document.body.append(x7)), x7;-}-function S7({ children: e }) {- return /* @__PURE__ */ (0, V.jsx)(lS, {- client: z,- children: /* @__PURE__ */ (0, V.jsx)(rd, {- reducedMotion: "user",- children: /* @__PURE__ */ (0, V.jsx)(Qv, {- getContainer: WKe,- children: e- })- })- });-}-//#endregion-//#region src/react/router/router.tsx-var C7 = (0, B.createContext)(0), w7 = (0, B.createContext)(null);-function GKe({ children: e }) {- let [t, n] = (0, B.useState)(() => ft.navigation);- return (0, B.useLayoutEffect)(() => (n(ft.navigation), ft.listen(n)), []), /* @__PURE__ */ (0, V.jsx)(C7.Provider, {- value: t.seq,- children: /* @__PURE__ */ (0, V.jsx)(UKe, {- location: t.location,- navigationType: t.action,- navigator: ft,- children: e- })- });-}-function KKe() {- let e = (0, B.useContext)(C7);- return (0, B.useLayoutEffect)(() => {- queueMicrotask(() => pt(e));- }, [e]), null;-}-function qKe({ target: e }) {- let t = OKe();- return (0, B.useLayoutEffect)(() => {- e.current = t;- }), null;-}-function JKe(e, t, n) {- let r = new URL(e, window.location.href);- if (!y5(r.pathname)) {- t.navigate(e);- return;}- n(`${r.pathname}${r.search}${r.hash}`);-}-function YKe() {- let e = (0, B.useContext)(w7), [t, n] = (0, B.useState)(dt), r = (0, B.useRef)(null);- (0, B.useLayoutEffect)(() => (n(dt()), ut((e, t) => {- t ? (0, $f.flushSync)(() => n(e)) : n(e);- })), []);- let i = (0, B.useMemo)(() => (t) => {- e && r.current && JKe(t, e, r.current);- }, [e]);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(qKe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, V.jsx)(XKe, {- entry: t,- children: /* @__PURE__ */ (0, V.jsx)(ZKe, {- entry: t,- actions: e,- go: i- })- }, t.revision)) : null] });-}-var XKe = class extends B.Component {- state = { failed: !1 };- static getDerivedStateFromError() {- return { failed: !0 };+ function E(e, t, n, r) {+ for (; n >= 0; --n) {+ let i = e[n], a = (i.y1 - t) * r;+ a > 1e-6 && (i.y0 -= a, i.y1 -= a), t = i.y0 - o;+ }}- componentDidCatch() {- lt(this.props.entry.container, this.props.entry.revision);+ function D({ sourceLinks: e, targetLinks: t }) {+ if (u === void 0) {+ for (let { source: { sourceLinks: e } } of t) e.sort($5);+ for (let { target: { targetLinks: t } } of e) t.sort(Q5);+ }+ }+ function O(e) {+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort($5), n.sort(Q5);+ }+ function k(e, t) {+ let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;+ for (let { target: r, width: i } of e.sourceLinks) {+ if (r === t) break;+ n += i + o;+ }+ for (let { source: r, width: i } of t.targetLinks) {+ if (r === e) break;+ n -= i;+ }+ return n;}- render() {- return this.state.failed ? null : this.props.children;+ function A(e, t) {+ let n = t.y0 - (t.targetLinks.length - 1) * o / 2;+ for (let { source: r, width: i } of t.targetLinks) {+ if (r === e) break;+ n += i + o;+ }+ for (let { target: r, width: i } of e.sourceLinks) {+ if (r === t) break;+ n -= i;+ }+ return n;}-}, ZKe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {- return M5(e.path) ? (0, $f.createPortal)(IGe(e.path, e.props, t, n), e.host, String(e.revision)) : null;-});-function QKe({ children: e }) {- let t = d7(), n = ct(t.state);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(y7, {- location: n ?? t,- children: [- PGe.map((e) => /* @__PURE__ */ (0, V.jsx)(v7, {- path: e,- element: null- }, e)),- /* @__PURE__ */ (0, V.jsx)(v7, {- path: "/resource-sync",- element: null- }),- /* @__PURE__ */ (0, V.jsx)(v7, {- path: "*",- element: e- })- ]- }), /* @__PURE__ */ (0, V.jsxs)(y7, { children: [st.map((e) => /* @__PURE__ */ (0, V.jsx)(v7, {- path: e,- element: null- }, e)), /* @__PURE__ */ (0, V.jsx)(v7, {- path: "*",- element: null- })] })] });+ return m;}-function $Ke({ children: e, actions: t = null }) {- return /* @__PURE__ */ (0, V.jsx)(S7, { children: /* @__PURE__ */ (0, V.jsx)(w7.Provider, {- value: t,- children: /* @__PURE__ */ (0, V.jsxs)(GKe, { children: [- /* @__PURE__ */ (0, V.jsx)(KKe, {}),- /* @__PURE__ */ (0, V.jsx)(YKe, {}),- /* @__PURE__ */ (0, V.jsx)(QKe, { children: e })- ] })- }) });+//#endregion+//#region node_modules/d3-path/src/path.js+var i7 = Math.PI, a7 = 2 * i7, o7 = 1e-6, OGe = a7 - o7;+function s7() {+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";}-var eqe = { onCaughtError: (e) => {- globalThis.reportError?.(e);-} }, T7 = null;-function tqe(e) {- if (T7) return;- T7 = (0, DN.createRoot)(document.createElement("div"), eqe);- let t = T7;- (0, $f.flushSync)(() => t.render(/* @__PURE__ */ (0, V.jsx)($Ke, { actions: e })));+function c7() {+ return new s7();}+s7.prototype = c7.prototype = {+ constructor: s7,+ moveTo: function(e, t) {+ this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);+ },+ closePath: function() {+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");+ },+ lineTo: function(e, t) {+ this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +t);+ },+ quadraticCurveTo: function(e, t, n, r) {+ this._ += "Q" + +e + "," + +t + "," + (this._x1 = +n) + "," + (this._y1 = +r);+ },+ bezierCurveTo: function(e, t, n, r, i, a) {+ this._ += "C" + +e + "," + +t + "," + +n + "," + +r + "," + (this._x1 = +i) + "," + (this._y1 = +a);+ },+ arcTo: function(e, t, n, r, i) {+ e = +e, t = +t, n = +n, r = +r, i = +i;+ var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;+ if (i < 0) throw Error("negative radius: " + i);+ if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);+ else if (d > o7) {+ if (!(Math.abs(u * s - c * l) > o7) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);+ else {+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((i7 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > o7 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);+ }+ }+ },+ arc: function(e, t, n, r, i, a) {+ e = +e, t = +t, n = +n, a = !!a;+ var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;+ if (n < 0) throw Error("negative radius: " + n);+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > o7 || Math.abs(this._y1 - l) > o7) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % a7 + a7), d > OGe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > o7 && (this._ += "A" + n + "," + n + ",0," + +(d >= i7) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));+ },+ rect: function(e, t, n, r) {+ this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";+ },+ toString: function() {+ return this._;+ }+};//#endregion-//#region src/board-skeleton.ts-var E7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, nqe = () => `${E7("80%")}${E7("48%")}`, rqe = (e, t) => e.repeat(t);-function iqe() {- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${E7("85%")}${E7("65%")}${rqe(nqe(), 4)}</div></aside></div>`;+//#region node_modules/d3-shape/src/constant.js+function l7(e) {+ return function() {+ return e;+ };}//#endregion-//#region src/react/follow-detail/follow-detail.ts-var D7 = (e) => ["follow-item", e], aqe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, oqe = "/api/follow/save", sqe = "/api/follow/media/hide";-async function O7(e, t) {- let n = await G(aqe(e), t);- for (let t of n.groups || []) {- let r = kF(t).find((t) => t.id === e);- if (r) return {- item: r,- group: t,- sources: n.sources || [],- aliases: n.author_aliases || []- };- }- throw Error("这条关注内容已不存在");+//#region node_modules/d3-shape/src/point.js+function kGe(e) {+ return e[0];}-async function k7(e, t) {- let n = D7(e.id), r = dhe(e.id), i = z.getQueryData(TF) ? null : z.fetchQuery({- queryKey: TF,- queryFn: () => EF(t)- });- r ? z.setQueryData(n, {- ...r,- item: r.item- }) : await z.fetchQuery({- queryKey: n,- queryFn: () => O7(e.id, t)- }), await i;+function AGe(e) {+ return e[1];}-function cqe(e, t, n, r) {- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && PF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);- return {- embedded: i,- selected: s,- kind: p,- images: c,- position: l,- carousel: u,- embeddedQueue: d,- collection: f,- frameRatio: p === "image" ? m.length ? Math.min(...m.map((e) => e.width / e.height)) : +!!u : 0,- src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""- };+//#endregion+//#region node_modules/d3-shape/src/array.js+var jGe = Array.prototype.slice;+//#endregion+//#region node_modules/d3-shape/src/link/index.js+function MGe(e) {+ return e.source;}-var lqe = (e) => kF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), uqe = {- "gofile.io": "Gofile",- "pixeldrain.com": "Pixeldrain",- "mega.nz": "MEGA",- "mega.io": "MEGA",- "mediafire.com": "MediaFire",- "drive.google.com": "Google Drive"-}, dqe = {- gofile: "Gofile",- pixeldrain: "Pixeldrain",- mega: "MEGA",- mediafire: "MediaFire",- google_drive: "Google Drive"-};-function fqe(e) {- try {- let t = new URL(e).hostname.replace(/^www\./, "");- return uqe[t] || t;- } catch {- return "外部文件页";- }+function NGe(e) {+ return e.target;}-function A7(e, t) {- return dqe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";+function PGe(e) {+ var t = MGe, n = NGe, r = kGe, i = AGe, a = null;+ function o() {+ var o, s = jGe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);+ if (a ||= o = c7(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;+ }+ return o.source = function(e) {+ return arguments.length ? (t = e, o) : t;+ }, o.target = function(e) {+ return arguments.length ? (n = e, o) : n;+ }, o.x = function(e) {+ return arguments.length ? (r = typeof e == "function" ? e : l7(+e), o) : r;+ }, o.y = function(e) {+ return arguments.length ? (i = typeof e == "function" ? e : l7(+e), o) : i;+ }, o.context = function(e) {+ return arguments.length ? (a = e ?? null, o) : a;+ }, o;}-function pqe(e, t, n = "") {- let r = n;- !r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";- let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;- return {- label: r,- title: e.is_release && t.author ? `${t.author}:${i}` : i- };+function FGe(e, t, n, r, i) {+ e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);}-var mqe = (e) => String(e.name || "").trim(), j7 = (e, t) => e.tag_types?.[t] || "unknown", hqe = /* @__PURE__ */ new Set([- "artist",- "character",- "copyright",- "metadata",- "unknown"-]);-function gqe(e, t) {- let n = j7(e, t);- return `r34-${hqe.has(n) ? n : "general"}`;+function IGe() {+ return PGe(FGe);}-var M7 = [- "copyright",- "character",- "artist",- "general",- "metadata"-];-function _qe(e, t) {- let n = e.detail_tags || e.tags || [], r = (t) => {- let n = M7.indexOf(j7(e, t));- return n < 0 ? M7.length : n;- };- return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));+//#endregion+//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js+function LGe(e) {+ return [e.source.x1, e.y0];}-function vqe(e, t) {- let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);- return !r.length && n && r.push(n), r;+function RGe(e) {+ return [e.target.x0, e.y1];}-var yqe = (e, t) => ({- sources: e.sources,- aliases: e.aliases,- credentials: t-}), N7 = (e) => e?.size ? { size: e.size } : {};-function bqe(e, t) {- let { images: n, kind: r, src: i, selected: a } = t;- return n.length ? n.map((t, r) => ({- src: `/follow-stream?id=${e.id}&media=${t.index}`,- thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,- name: t.name || e.title,- source: A7(t, e),- ...N7(t),- position: r + 1,- total: n.length- })) : r === "image" && i ? [{- src: i,- thumb: e.thumb_url || i,- name: e.title,- source: A7(a, e),- ...N7(a),- position: 1,- total: 1- }] : e.thumb_url ? [{- src: e.thumb_url,- thumb: e.thumb_url,- name: e.title,- source: e.provider_label || e.provider || "在线图片",- position: 1,- total: 1- }] : [];+function zGe() {+ return IGe().source(LGe).target(RGe);}-var xqe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";//#endregion-//#region src/react/components/mix-queue.tsx-function P7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {- let c = (0, B.useRef)(null), l = (0, B.useCallback)((e) => {- c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);- }, [a]);- return (0, B.useLayoutEffect)(() => {- let e = c.current, t = e?.querySelector("[data-mix-item][aria-current=\"true\"]");- if (!e || !t) return;- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();- (r.top < n.top || r.bottom > n.bottom) && (e.scrollTop += r.top - n.top - (n.height - r.height) / 2), (r.left < n.left || r.right > n.right) && (e.scrollLeft += r.left - n.left - (n.width - r.width) / 2);- }, []), /* @__PURE__ */ (0, V.jsxs)("aside", {- "data-mix-queue": "",- "data-queue-kind": e,- ...s,- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- "data-mix-queue-head": "",- children: [/* @__PURE__ */ (0, V.jsxs)("div", { children: [/* @__PURE__ */ (0, V.jsx)("h2", {- className: "font-semibold",- children: t- }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })] }), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-mix-queue-actions": "",- children: [i, /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-queue-close": "",- title: "关闭",- "aria-label": "关闭",- onClick: r,- dangerouslySetInnerHTML: { __html: R("x") }- })]- })]- }), /* @__PURE__ */ (0, V.jsx)("div", {- "data-mix-list": "",- ref: l,- children: o- })]- });-}-function F7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {- let s = /* @__PURE__ */ (0, V.jsx)("span", {- "data-mix-item-text": "",- children: a- });- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-mix-row": "",- ...i,- children: [/* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-mix-item": "",- "aria-current": e ? "true" : "false",- ...o,- children: [/* @__PURE__ */ (0, V.jsx)("span", {- "data-mix-item-pic": "",- children: t- }), n === void 0 ? s : /* @__PURE__ */ (0, V.jsxs)("span", {- "data-mix-item-meta": "",- children: [n, s]- })]- }), r]- });-}-var Sqe = ({ label: e, count: t }) => /* @__PURE__ */ (0, V.jsxs)("h3", {- "data-mix-group-label": "",- children: [- e,- " ",- /* @__PURE__ */ (0, V.jsx)("span", { children: t })- ]-}), I7 = (e) => Number(e) > 0, Cqe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {- className: "contents",- dangerouslySetInnerHTML: { __html: R(e) }-}), L7 = R("external-link", "externalmark");-function wqe(e) {- let { id: t, actions: n } = e, r = wS({- queryKey: D7(t),- queryFn: ({ signal: e }) => O7(t, e)- }), i = wS({- queryKey: TF,- queryFn: ({ signal: e }) => EF(e)- }), a = (0, B.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, B.useState)(e.mediaIndex);- return r.data ? /* @__PURE__ */ (0, V.jsx)(Tqe, {- ...e,- data: r.data,- context: yqe(r.data, a),- mediaIndex: o,- onMedia: s- }) : /* @__PURE__ */ (0, V.jsx)("div", {- "data-stage-grid": "",- "data-follow-detail": "",- children: /* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-media": "",- "data-follow-detail-media": "none",- children: [/* @__PURE__ */ (0, V.jsx)(R7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {- "data-follow-detail-placeholder": "",- children: r.isError ? /* @__PURE__ */ (0, V.jsx)(pA, {- message: ye(r.error),- onRetry: () => void r.refetch()- }) : null- })]- })+//#region src/react/taste/taste.ts+var BGe = "/api/taste", u7 = "/api/taste/refresh", VGe = "/api/taste/import", HGe = "/api/taste/source", d7 = (e) => ["taste", e], UGe = ["taste", "refresh"], WGe = [+ ["7d", "最近 7 天"],+ ["30d", "最近 30 天"],+ ["90d", "最近 90 天"],+ ["365d", "最近一年"],+ ["all", "全部时间"]+], f7 = (e, t) => G(`${BGe}?window=${e}`, t), GGe = (e) => G(u7, e);+async function KGe(e, t) {+ await z.fetchQuery({+ queryKey: d7(e),+ queryFn: () => f7(e, t)});}-var R7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-close": "",- id: "closeStage",- title: "关闭",- "aria-label": "关闭",- onClick: e,- dangerouslySetInnerHTML: { __html: R("x") }+var qGe = (e) => K(u7, {+ window: e,+ background: !0+}), JGe = (e, t) => K(HGe, {+ operation: "remove",+ source_key: e,+ window: t});-function Tqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {- let { item: s, group: c } = e, l = cqe(s, c, n, i), u = kqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, B.useState)({- key: "",- kind: ""- }), m = {- failed: () => p({- key: d,- kind: "failed"- }),- thumbFallback: () => p({- key: d,- kind: "thumb"- })- };- (0, B.useLayoutEffect)(() => {- o.present(s, l.kind);- }, [- o,- s,- l.kind- ]);- let h = !l.embedded.length && l.collection ? lqe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(H7, {- item: s,- current: l.selected.index,- helpers: a,- actions: o,- onMedia: r- }) : l.collection ? h ? /* @__PURE__ */ (0, V.jsx)(H7, {- item: h,- current: null,- helpers: a,- actions: o,- onMedia: r,- currentId: s.id- }) : /* @__PURE__ */ (0, V.jsx)(Dqe, {- group: l.collection,- itemId: s.id,- helpers: a,- actions: o- }) : null;- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-grid": "",- "data-with-queue": g ? "" : void 0,- "data-follow-detail": "",- children: [- /* @__PURE__ */ (0, V.jsx)(Eqe, {- item: s,- media: l,- helpers: a,- actions: o,- onMedia: r,- issues: m- }, d),- g,- /* @__PURE__ */ (0, V.jsx)(Oqe, {- item: s,- data: e,- context: t,- media: l,- write: u,- issue: f.key === d ? f.kind : "",- helpers: a,- actions: o- })- ]- });-}-function Eqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(null), h = bqe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, B.useState)(v), S = (0, B.useRef)({- item: e,- selected: o- }), C = (0, B.useRef)(i.failed);- C.current = i.failed, (0, B.useLayoutEffect)(() => {- let e = f.current;- if (!(!e || !_)) return n.mountPlayer(e, S.current.item, S.current.selected, { onError: () => C.current() });- }, [n, _]), (0, B.useLayoutEffect)(() => {- let e = f.current, t = e?.querySelector("[data-follow-detail-poster]"), n = e?.querySelector("[data-follow-image-step]");- if (!e || !t || !n) return;- let r = () => {- if (!t.naturalWidth || !t.naturalHeight) return;- let r = e.getBoundingClientRect(), i = Math.min(r.width, r.height * (t.naturalWidth / t.naturalHeight)), a = Math.max(0, (r.width - i) / 2), o = matchMedia("(max-width:640px)").matches ? 10 : 16;- m(Math.round(a >= n.offsetWidth + o * 2 ? (a - n.offsetWidth) / 2 : o));- }, i = new ResizeObserver(r);- return i.observe(e), t.addEventListener("load", r), () => {- i.disconnect(), t.removeEventListener("load", r);- };- }, [b]);- let w = (e) => r(c[(l + e + c.length) % c.length].index);- return /* @__PURE__ */ (0, V.jsxs)("div", {- ref: f,- "data-stage-media": "",- "data-follow-detail-media": a || "none",- "data-framed": d ? "" : void 0,- style: {- "--follow-frame-ratio": d ? d.toFixed(4) : void 0,- "--follow-image-arrow-inset": p === null ? void 0 : `${p}px`+async function YGe(e) {+ let t = await fetch(VGe, {+ method: "POST",+ credentials: "same-origin",+ headers: {+ "Content-Type": "application/octet-stream",+ "X-Peach-Filename": encodeURIComponent(e.name)},- children: [- /* @__PURE__ */ (0, V.jsx)(R7, { onClose: n.close }),- _ ? null : v ? /* @__PURE__ */ (0, V.jsx)("img", {- "data-follow-detail-poster": "",- "data-zoomable": h.length ? "" : void 0,- src: b,- alt: e.title,- referrerPolicy: "no-referrer",- onClick: h.length ? () => void NN(Math.max(0, l), h) : void 0,- onError: () => {- if (y && b !== y) {- x(y), i.thumbFallback();- return;- }- i.failed();- }- }) : /* @__PURE__ */ (0, V.jsxs)("div", {- "data-follow-detail-placeholder": "",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- className: "contents",- dangerouslySetInnerHTML: { __html: BF(e.resource_provider || e.provider) }- }), /* @__PURE__ */ (0, V.jsx)("span", { children: "没有可用预览" })]- }),- u ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-follow-image-step": "-1",- "data-follow-image-arrow": "prev",- "aria-label": "上一张图片",- title: "上一张",- onClick: () => w(-1),- dangerouslySetInnerHTML: { __html: R("chevron-left") }- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-follow-image-step": "1",- "data-follow-image-arrow": "next",- "aria-label": "下一张图片",- title: "下一张",- onClick: () => w(1),- dangerouslySetInnerHTML: { __html: R("chevron-right") }- }),- /* @__PURE__ */ (0, V.jsx)("div", {- "data-follow-image-dots": "",- role: "group",- "aria-label": `${c.length} 张图片`,- children: c.map((e, t) => /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-follow-image-item": e.index,- "aria-current": t === l ? "true" : "false",- "aria-label": `第 ${t + 1} 张,共 ${c.length} 张`,- title: `第 ${t + 1} 张`,- onClick: () => r(e.index)- }, e.index))- })- ] }) : null- ]- });+ body: e+ }), n = null;+ try {+ n = await t.json();+ } catch {}+ if (!t.ok) {+ let e = n?.error;+ throw new jS(e || `导入失败(${t.status})`, t.status, n);+ }+ return n;}-var z7 = ({ kind: e }) => /* @__PURE__ */ (0, V.jsx)("span", {- "data-follow-nothumb": "",- dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }-});-function B7({ src: e }) {- let [t, n] = (0, B.useState)(!1);- return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {- src: e,- alt: "",- loading: "lazy",- referrerPolicy: "no-referrer",- onError: () => n(!0)- });+var XGe = 1e4, p7 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", ZGe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, QGe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);+function $Ge(e) {+ if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();+ let t = [];+ return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");}-function V7(e) {- return (0, B.useCallback)((t) => {- t && e.wireDrag(t);- }, [e]);+function eKe(e) {+ let t = e.map(QGe), n = Math.max(1, ...t);+ return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));+}+var m7 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({+ name: e.name,+ value: Number(e.score)+})).sort((e, t) => t.value - e.value).slice(0, t);+function tKe(e) {+ let t = m7(e, 6);+ return t.length < 3 ? [] : t;+}+var h7 = {+ width: 720,+ height: 435+}, g7 = {+ source: 145,+ target: 545+};+function nKe(e = []) {+ let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);+ if (!t.length) return null;+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = DGe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({+ nodes: [...n.map((e) => ({+ id: `source:${e}`,+ name: e,+ side: "source"+ })), ...r.map((e) => ({+ id: `target:${e}`,+ name: e,+ side: "target"+ }))],+ links: t.map((e) => ({+ source: `source:${e.source}`,+ target: `target:${e.target}`,+ value: e.value+ }))+ }), a = t.reduce((e, t) => e + t.value, 0), o = zGe();+ return {+ nodes: i.nodes.map((e) => ({+ id: e.id,+ name: e.name,+ side: e.side,+ index: e.index ?? 0,+ x: e.x0 ?? 0,+ y: e.y0 ?? 0,+ height: Math.max(1, (e.y1 ?? 0) - (e.y0 ?? 0)),+ value: e.value ?? 0,+ share: (e.value ?? 0) / a * 100,+ color: n.indexOf(e.name) % 6+ })),+ links: i.links.map((e, t) => {+ let r = e.source, i = e.target;+ return {+ key: `${r.id}->${i.id}:${t}`,+ d: o(e) || "",+ width: Math.max(.5, e.width || 0),+ color: n.indexOf(r.name) % 6,+ source: r.index ?? 0,+ target: i.index ?? 0,+ value: e.value,+ label: `${r.name} → ${i.name}`+ };+ }),+ total: a+ };}-function Dqe({ group: e, itemId: t, helpers: n, actions: r }) {- let i = PF(e), a = V7(n);- return /* @__PURE__ */ (0, V.jsx)(P7, {- kind: "collection",- "data-follow-queue": "",- title: "视频合集",- onClose: r.close,- listRef: a,- summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,- children: i.map((n) => {- let i = e.duplicates.includes(n), a = pqe(e, n, i ? n.provider_label : ""), o = i ? BF(n.provider, n.provider_label) : "";- return /* @__PURE__ */ (0, V.jsxs)(F7, {- current: n.id === t,- "data-follow-queue-item": n.id,- onClick: () => r.openItem(n.id),- pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(B7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(z7, { kind: "video" }), I7(n.duration) ? /* @__PURE__ */ (0, V.jsx)("i", {- className: "mono",- "data-mix-item-duration": "",- children: fe(n.duration)- }) : null] }),- children: [/* @__PURE__ */ (0, V.jsx)("b", {- "data-truncate-end": "",- children: a.title- }), /* @__PURE__ */ (0, V.jsxs)("span", {- "data-follow-queue-meta": "",- children: [o ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-follow-queue-source": "",- dangerouslySetInnerHTML: { __html: o }- }) : /* @__PURE__ */ (0, V.jsx)("i", {- "data-follow-variant": n.variant_kind || "",- children: a.label- }), /* @__PURE__ */ (0, V.jsx)("time", {- dateTime: n.published_at || "",- children: qF(n)- })]- })]- }, n.id);+var rKe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _7 = B.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {+ let c = B.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;+ if (e === void 0 || t === void 0) return null;+ switch (o) {+ case "border": return /* @__PURE__ */ (0, V.jsx)(y7, {+ cx: e,+ cy: t,+ dotId: c,+ fillOpacity: a,+ gradientUrl: l,+ className: i,+ maskId: s+ });+ case "colored-border": return /* @__PURE__ */ (0, V.jsx)(b7, {+ cx: e,+ cy: t,+ dotId: c,+ fillOpacity: a,+ gradientUrl: l,+ className: i,+ maskId: s+ });+ default: return /* @__PURE__ */ (0, V.jsx)(v7, {+ cx: e,+ cy: t,+ dotId: c,+ fillOpacity: a,+ gradientUrl: l,+ className: i,+ maskId: s+ });+ }+}), v7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {+ className: a,+ mask: o ? `url(#${o})` : void 0,+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {+ id: `dot-clip-${n}`,+ children: /* @__PURE__ */ (0, V.jsx)("circle", {+ cx: e,+ cy: t,+ r: 3})- });+ }) }), /* @__PURE__ */ (0, V.jsx)("rect", {+ x: "0",+ y: t - 3,+ width: "100%",+ height: 6,+ fill: i,+ fillOpacity: r,+ clipPath: `url(#dot-clip-${n})`+ })]+}));+v7.displayName = "DefaultDot";+var y7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {+ className: Y8(a, "text-background"),+ mask: o ? `url(#${o})` : void 0,+ children: [+ /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {+ id: `dot-clip-${n}`,+ children: /* @__PURE__ */ (0, V.jsx)("circle", {+ cx: e,+ cy: t,+ r: 6+ })+ }) }),+ /* @__PURE__ */ (0, V.jsx)("circle", {+ cx: e,+ cy: t,+ r: 6,+ fill: "currentColor"+ }),+ /* @__PURE__ */ (0, V.jsx)("rect", {+ x: "0",+ y: t - (6 - 5 / 2),+ width: "100%",+ height: 7,+ fill: i,+ fillOpacity: r,+ clipPath: `url(#dot-clip-inner-${n})`+ }),+ /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {+ id: `dot-clip-inner-${n}`,+ children: /* @__PURE__ */ (0, V.jsx)("circle", {+ cx: e,+ cy: t,+ r: 6 - 5 / 2+ })+ }) })+ ]+}));+y7.displayName = "PrimaryBorderDot";+var b7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {+ className: Y8(a, "text-background"),+ mask: o ? `url(#${o})` : void 0,+ children: [+ /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {+ id: `dot-clip-${n}`,+ children: /* @__PURE__ */ (0, V.jsx)("circle", {+ cx: e,+ cy: t,+ r: 3.5+ })+ }) }),+ /* @__PURE__ */ (0, V.jsx)("rect", {+ x: "0",+ y: t - 3 - 1 / 2,+ width: "100%",+ height: 7,+ fill: i,+ fillOpacity: r,+ clipPath: `url(#dot-clip-${n})`+ }),+ /* @__PURE__ */ (0, V.jsx)("circle", {+ cx: e,+ cy: t,+ r: 3 - 1 / 2,+ fill: "currentColor"+ })+ ]+}));+b7.displayName = "ColoredBorderDot";+//#endregion+//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx+var iKe = 1, aKe = .3, oKe = 6, x7 = 1500, S7 = "value", C7 = (0, B.createContext)(null);+function w7() {+ let e = (0, B.use)(C7);+ if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");+ return e;}-function H7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {- let o = e.media_items || [], s = V7(r), c = [];- o.forEach((e) => {- let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);- n || (n = {- key: t,- label: e.resource_group_label || "",- items: []- }, c.push(n)), n.items.push(e);- });- let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);- return /* @__PURE__ */ (0, V.jsx)(P7, {- kind: "media",- "data-follow-queue": "",- title: "多媒体",- onClose: i.close,- listRef: s,- summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, V.jsx)(Sqe, {- label: n.label,- count: n.items.length- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, V.jsxs)(F7, {- current: n.index === t,- "data-follow-media-owner": e.id,- "data-follow-media-item": n.index,- "data-media-kind": n.media_kind || "",- onClick: () => l(n),- pic: n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(B7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(z7, { kind: n.media_kind || "" }),- children: [/* @__PURE__ */ (0, V.jsx)("b", {- "data-middle-truncate": "",- children: mqe(n)- }), /* @__PURE__ */ (0, V.jsx)("span", {- "data-truncate-end": "",- children: n.media_kind === "image" ? "图片" : "视频"+function T7({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {+ let u = (0, B.useId)().replace(/:/g, ""), [d, f] = (0, B.useState)(o), p = yKe(c, l), m = (0, B.useCallback)((e) => {+ f(e), s?.(e);+ }, [s]), h = (0, B.useMemo)(() => ({+ config: e,+ isLoading: c,+ selectedDataKey: d,+ selectDataKey: m+ }), [+ e,+ c,+ d,+ m+ ]);+ return /* @__PURE__ */ (0, V.jsx)(C7, {+ value: h,+ children: /* @__PURE__ */ (0, V.jsxs)(e5, {+ className: r,+ config: e,+ children: [/* @__PURE__ */ (0, V.jsx)(t5, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)(WUe, {+ id: u,+ data: c ? p : t,+ ...i,+ children: [+ a && /* @__PURE__ */ (0, V.jsx)(f5, { variant: a }),+ n,+ c && /* @__PURE__ */ (0, V.jsx)(bKe, {})+ ]})]- }, n.index))])- });-}-function Oqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {- let { kind: c, selected: l, src: u } = r, d = {- primary: e,- variants: [],- duplicates: [],- has_wip: e.variant_kind === "wip"- }, f = GF(d, e), p = UF(e, vqe(e, t.sources), n), m = p.credited ? "" : e.author && me(e.author) !== me(p.author) ? e.author : "", h = KF(e, n), g = _qe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {- "aria-busy": !0,- "aria-disabled": !0- } : {};- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-stage-side": "",- "data-follow-detail-side": "",- children: /* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-side-content": "",- children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- "data-follow-detail-title": "",- children: [/* @__PURE__ */ (0, V.jsx)("div", {- "data-stage-title": "",- "data-follow-detail-name": "",- "data-reveal-line": "",- dangerouslySetInnerHTML: { __html: WF(d, e) + L(e.title) }- }), e.url ? /* @__PURE__ */ (0, V.jsx)("a", {- "data-follow-origin": "",- href: e.url,- target: "_blank",- rel: "noreferrer noopener",- title: "打开来源页面",- "aria-label": "打开来源页面",- dangerouslySetInnerHTML: { __html: L7 }- }) : null]- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- "data-follow-detail-identity": "",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- "data-follow-source-avatar": "",- dangerouslySetInnerHTML: { __html: p.avatar }- }), /* @__PURE__ */ (0, V.jsxs)("div", { children: [- /* @__PURE__ */ (0, V.jsx)("b", { children: p.author }),- m ? /* @__PURE__ */ (0, V.jsxs)("span", { children: ["发布者 ", m] }) : null,- p.credited ? /* @__PURE__ */ (0, V.jsxs)("span", { children: ["署名含 ", p.credited] }) : null- ] })]- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "mono",- "data-stage-meta": "",- "data-reveal-line": "",- children: [- /* @__PURE__ */ (0, V.jsx)("span", { children: qF(e) }),- I7(e.duration) ? /* @__PURE__ */ (0, V.jsx)("span", { children: fe(e.duration) }) : null,- f ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-follow-badges": "",- dangerouslySetInnerHTML: { __html: f }- }) : null- ]- }),- e.summary ? /* @__PURE__ */ (0, V.jsx)("p", {- "data-follow-detail-summary": "",- children: e.summary- }) : null,- h ? /* @__PURE__ */ (0, V.jsx)("p", {- "data-follow-media-issue": "",- children: h- }) : null,- /* @__PURE__ */ (0, V.jsx)("p", {- "data-follow-media-issue": "",- "data-media-load-issue": "",- hidden: a !== "failed",- children: "媒体未取回:上游这一次没有返回内容,多半是站点限流,过一阵再打开。"- }),- /* @__PURE__ */ (0, V.jsx)("p", {- "data-follow-media-issue": "",- "data-media-thumb-fallback": "",- hidden: a !== "thumb",- children: "原图未取回,先显示缩略图:上游拦下了这一次请求。"- }),- e.resource_urls?.length ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-follow-resources": "",- children: e.resource_urls.map((e) => /* @__PURE__ */ (0, V.jsxs)("a", {- href: e,- target: "_blank",- rel: "noreferrer noopener",- children: [fqe(e), /* @__PURE__ */ (0, V.jsx)("span", {- className: "contents",- dangerouslySetInnerHTML: { __html: L7 }- })]- }, e))- }) : null,- /* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-actions": "",- "data-follow-detail-actions": "",- children: [- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-action": "later",- "data-follow-detail-save": "",- "aria-label": _ ? "已保存" : "保存到账本",- title: _ ? "已保存" : "保存到账本",- disabled: _,- ...y("save"),- onClick: i.save,- dangerouslySetInnerHTML: { __html: R(_ ? "check" : "bookmark-plus") }- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-action": "later",- "data-follow-detail-want": "",- "aria-pressed": !!i.want,- "aria-label": i.want ? "取消想要" : "想要",- title: i.want ? "取消想要" : "想要",- ...y("want"),- onClick: i.toggleWant,- dangerouslySetInnerHTML: { __html: R("star") }- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-action": "seen",- "data-follow-detail-status": "seen",- "aria-label": "标记已看",- title: "标记已看",- "aria-pressed": e.status === "seen",- ...y("seen"),- onClick: () => i.status("seen"),- dangerouslySetInnerHTML: { __html: R("eye") }- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-action": "dislike",- "data-follow-detail-status": "ignored",- "aria-label": "忽略",- title: "忽略",- "aria-pressed": e.status === "ignored",- ...y("ignored"),- onClick: () => i.status("ignored"),- dangerouslySetInnerHTML: { __html: R("eye-off") }- }),- e.status === "seen" || e.status === "ignored" ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-follow-detail-status": "new",- "aria-label": "恢复未看",- title: "恢复未看",- ...y("new"),- onClick: () => i.status("new"),- dangerouslySetInnerHTML: { __html: R("rotate-ccw") }- }) : null,- c === "image" && l ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-action": "dislike",- "data-follow-media-hide": l.index,- "aria-label": "隐藏这张图",- title: "隐藏这张图",- ...y(`hide:${l.index}`),- onClick: () => i.hide(l.index),- dangerouslySetInnerHTML: { __html: R("image-off") }- }) : null,- u ? /* @__PURE__ */ (0, V.jsx)("a", {- "data-follow-download": "",- href: `${u}${u.includes("?") ? "&" : "?"}download=1`,- download: "",- "aria-label": "下载到本地",- title: "下载到本地",- dangerouslySetInnerHTML: { __html: R("download") }- }) : null- ]- }),- e.hidden_media?.length ? /* @__PURE__ */ (0, V.jsxs)("div", {- "data-follow-hidden-media": "",- children: [/* @__PURE__ */ (0, V.jsxs)("span", {- "data-follow-hidden-label": "",- children: [- "已隐藏 ",- e.hidden_media.length,- " 张"- ]- }), /* @__PURE__ */ (0, V.jsx)("div", {- "data-follow-hidden-thumbs": "",- children: e.hidden_media.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-follow-media-restore": e.index,- title: `恢复显示 ${e.name || ""}`,- "aria-label": `恢复显示 ${e.name || ""}`,- ...y(`restore:${e.index}`),- onClick: () => i.restore(e.index),- children: [e.thumb_url ? /* @__PURE__ */ (0, V.jsx)(B7, { src: e.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(Cqe, { name: "image-off" }), /* @__PURE__ */ (0, V.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]- }, e.index))- })]- }) : null,- /* @__PURE__ */ (0, V.jsx)("span", {- "data-follow-state": "",- "aria-live": "polite",- children: i.failure- }),- g.length ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-stage-tags": "",- "data-follow-detail-tags": "",- children: g.map((t) => /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-tag-cat": gqe(e, t),- "data-follow-tag": t,- onClick: () => s.openTag(t),- children: o.tagLabel(t)- }, t))- }) : null- ]})});}-function kqe(e, t, n) {- let r = e.id, i = D7(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), l = (e, t) => o((n) => {- let r = new Set(n);- return t ? r.add(e) : r.delete(e), r;- }), u = (e) => {- z.setQueryData(i, (t) => t && {- ...t,- item: {- ...t.item,- status: e- }- }), phe(r, e);- }, d = (e) => {- c(ye(e) || "操作失败"), t.failure("更新关注状态", e);- }, f = DS({- mutationFn: ({ to: e }) => K(RP, {- item: r,- to: e- }),- onSuccess: (e, { to: n, was: i }) => {- u(n), c(""), n === "ignored" && gL(), t.toast(xqe(n), { undo: i === "saved" ? void 0 : async () => {- await K(RP, {- item: r,- to: i- }), u(i);- } });- },- onError: d,- onSettled: (e, t, { to: n }) => l(n, !1)- }), p = DS({- mutationFn: () => K(oqe, { item: r }),- onSuccess: () => {- u("saved"), c(""), t.toast("已保存到账本");- },- onError: d,- onSettled: () => l("save", !1)- }), m = DS({- mutationFn: async ({ index: e, hidden: t }) => {- await K(sqe, {- item: r,- media: e,- hidden: t- }), await z.invalidateQueries({- queryKey: i,- exact: !0- });- },- onSuccess: (e, { hidden: r, next: a }) => {- let o = z.getQueryData(i);- o && fhe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");- },- onError: d,- onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)- }), h = wS({- queryKey: S_e(r),- queryFn: ({ signal: e }) => T_e(r, e)- }).data?.want ?? null, g = DS({- mutationFn: async (e) => (e ? await hL([e.id]) : await mL({ follow: r }), !e),- onSuccess: (e) => {- c(""), t.toast(e ? "已加入想要" : "已取消想要"), gL();- },- onError: d,- onSettled: () => l("want", !1)- });- return {- busy: a,- failure: s,- want: h,- toggleWant: () => {- l("want", !0), g.mutate(h);- },- save: () => {- l("save", !0), p.mutate();- },- status: (t) => {- l(t, !0), f.mutate({- to: t,- was: e.status- });- },- hide: (t) => {- let n = (e.media_items || []).find((e) => e.index !== t && e.media_kind === "image");- l(`hide:${t}`, !0), m.mutate({- index: t,- hidden: !0,- next: n ? n.index : null- });+function sKe({ dataKey: e, variant: t = "filled", fillOpacity: n = aKe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = w7(), d = (0, B.useId)().replace(/:/g, "");+ if (c) return null;+ let f = i && l !== null && l !== e, p = {+ stroke: f ? .2 : 1,+ fill: f ? .1 : 1,+ dot: f ? .2 : 1+ }, m = t === "filled", { dot: h, activeDot: g } = pKe(a, d, e, p.dot);+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(z4, {+ dataKey: e,+ stroke: `url(#${d}-radar-stroke-${e})`,+ strokeOpacity: p.stroke,+ strokeWidth: iKe,+ fill: m ? `url(#${d}-radar-fill-${e})` : "none",+ fillOpacity: m ? n * p.fill : 0,+ dot: h,+ activeDot: g,+ filter: r ? `url(#${d}-radar-glow-${e})` : void 0,+ className: "transition-opacity duration-200",+ style: i ? { cursor: "pointer" } : void 0,+ onClick: () => {+ i && u(l === e ? null : e);},- restore: (e) => {- l(`restore:${e}`, !0), m.mutate({- index: e,- hidden: !1,- next: e- });- }- };+ ...o+ }), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [+ /* @__PURE__ */ (0, V.jsx)(mKe, {+ id: d,+ dataKey: e,+ config: s+ }),+ /* @__PURE__ */ (0, V.jsx)(hKe, {+ id: d,+ dataKey: e,+ config: s+ }),+ m && /* @__PURE__ */ (0, V.jsx)(gKe, {+ id: d,+ dataKey: e,+ config: s+ }),+ r && /* @__PURE__ */ (0, V.jsx)(_Ke, {+ id: d,+ dataKey: e+ })+ ] })] });}-//#endregion-//#region src/react/components/overlay-host.ts-function Aqe(e) {- let t = e.querySelector(":scope > [data-react-overlays]");- if (t) return t;- let n = e.ownerDocument.createElement("div");- return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;+var E7 = () => null, D7 = () => null;+function cKe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {+ return /* @__PURE__ */ (0, V.jsx)(M2, {+ gridType: e,+ stroke: t,+ strokeOpacity: n,+ strokeDasharray: r,+ ...i+ });}-function jqe(e) {- let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");- return Aqe(n ?? t.body);+function lKe({ tick: e = {+ fill: "currentColor",+ fontSize: 12+}, tickLine: t = !1, ...n }) {+ let { isLoading: r } = w7();+ return r ? null : /* @__PURE__ */ (0, V.jsx)(K2, {+ tick: e,+ tickLine: t,+ ...n+ });}-//#endregion-//#region src/react/cover-crop/cover-crop.ts-var Mqe = "/api/cover-crop", Nqe = (e, t) => K(Mqe, {- code: e,- box: t-});-//#endregion-//#region src/react/cover-crop/cover-crop-page.tsx-function U7({ className: e }) {- return /* @__PURE__ */ (0, V.jsx)("svg", {- "aria-hidden": !0,- viewBox: "0 0 24 24",- fill: "none",- stroke: "currentColor",- strokeWidth: 2,- strokeLinecap: "round",- strokeLinejoin: "round",- className: e,- children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-crop" })+function uKe({ tick: e = {+ fill: "currentColor",+ fontSize: 10+}, tickLine: t = !1, axisLine: n = !1, ...r }) {+ let { isLoading: i } = w7();+ return i ? null : /* @__PURE__ */ (0, V.jsx)(B2, {+ tick: e,+ tickLine: t,+ axisLine: n,+ ...r});}-function Pqe({ code: e, coverUrl: t, box: n, onSaved: r }) {- let [i, a] = (0, B.useState)(!1), o = (0, B.useRef)(null);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {- ref: o,- type: "button",- "aria-haspopup": "dialog",- "data-cover-crop": !0,- "aria-label": `裁剪 ${e} 的封面`,- title: "裁剪封面:框出正封那一块",- onClick: () => a(!0),- className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: /* @__PURE__ */ (0, V.jsx)(U7, { className: "size-3.75" })- }), /* @__PURE__ */ (0, V.jsx)(Qv, {- getContainer: () => jqe(o.current),- children: /* @__PURE__ */ (0, V.jsx)(qN, {- isOpen: i,- onOpenChange: a,- width: "cover-crop",- label: "裁剪封面",- children: /* @__PURE__ */ (0, V.jsx)(Fqe, {- code: e,- coverUrl: t,- box: n,- onSaved: r,- close: () => a(!1)- })+function dKe({ variant: e, roundness: t, defaultIndex: n }) {+ let { isLoading: r, selectedDataKey: i } = w7();+ return r ? null : /* @__PURE__ */ (0, V.jsx)(o5, {+ defaultIndex: n,+ cursor: !1,+ content: /* @__PURE__ */ (0, V.jsx)(a5, {+ selected: i,+ roundness: t,+ variant: e})- })] });+ });}-function Fqe({ 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 = hM(), f = DS({- mutationFn: (t) => Nqe(e, t),- onSuccess: (e) => {- i(), r(e.poster_box);+function fKe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = w7();+ return i ? null : /* @__PURE__ */ (0, V.jsx)(c5, {+ verticalAlign: n,+ align: t,+ content: /* @__PURE__ */ (0, V.jsx)(s5, {+ selected: a,+ onSelectChange: o,+ isClickable: r,+ variant: e+ })+ });+}+var pKe = (e, t, n, r) => {+ let i = !1, a = !1;+ return B.Children.forEach(e, (e) => {+ if ((0, B.isValidElement)(e)) {+ if (e.type === E7) {+ let { variant: a } = e.props;+ i = /* @__PURE__ */ (0, V.jsx)(_7, {+ type: a,+ dataKey: n,+ chartId: t,+ fillOpacity: r+ });+ }+ if (e.type === D7) {+ let { variant: i } = e.props;+ a = /* @__PURE__ */ (0, V.jsx)(_7, {+ type: i,+ dataKey: n,+ chartId: t,+ fillOpacity: r+ });+ }}+ }), {+ dot: i,+ activeDot: a+ };+}, O7 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "0%",+ stopColor: `var(--color-${e}-0)`,+ stopOpacity: n?.[0]+}), /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: "100%",+ stopColor: `var(--color-${e}-0)`,+ stopOpacity: n?.[n.length - 1]+})] }) : /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Array.from({ length: t }, (r, i) => {+ let a = `${i / (t - 1) * 100}%`;+ return /* @__PURE__ */ (0, V.jsx)("stop", {+ offset: a,+ stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,+ stopOpacity: n?.[i]+ }, a);+}) }), mKe = ({ id: e, dataKey: t, config: n }) => {+ let r = i5(n[t] ?? {});+ return /* @__PURE__ */ (0, V.jsx)("linearGradient", {+ id: `${e}-colors-${t}`,+ x1: "0",+ y1: "0",+ x2: "1",+ y2: "0",+ children: /* @__PURE__ */ (0, V.jsx)(O7, {+ dataKey: t,+ colorsCount: r+ })});- function p(e) {- o(e);- let t = n && n.px?.[0] === e.width && n.px?.[1] === e.height ? {- x0: n.x0,- y0: n.y0,- x1: n.x1,- y1: n.y1- } : dpe(e, OC);- c(UN(t, e, null));- }- let m = f.isPending;- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex shrink-0 items-start gap-4 p-5",- children: [- /* @__PURE__ */ (0, V.jsx)(JN, { children: /* @__PURE__ */ (0, V.jsx)(U7, { className: "size-6" }) }),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex min-w-0 flex-1 flex-col gap-2",- children: [- /* @__PURE__ */ (0, V.jsx)(ND, {- slot: "title",- className: "text-title-3-semibold text-text-primary",- children: "裁剪封面"- }),- /* @__PURE__ */ (0, V.jsxs)("p", {- className: "text-body-2-regular text-text-secondary",- children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]- }),- f.error ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- children: W(f.error)- }) : null- ]- }),- /* @__PURE__ */ (0, V.jsx)(_M, {- icon: dT,- size: "small",- "aria-label": "关闭",- onClick: i- })- ]+}, hKe = ({ id: e, dataKey: t, config: n }) => {+ let r = i5(n[t] ?? {});+ return /* @__PURE__ */ (0, V.jsx)("linearGradient", {+ id: `${e}-radar-stroke-${t}`,+ x1: "0",+ y1: "0",+ x2: "1",+ y2: "1",+ children: /* @__PURE__ */ (0, V.jsx)(O7, {+ dataKey: t,+ colorsCount: r+ })+ });+}, gKe = ({ id: e, dataKey: t, config: n }) => {+ let r = i5(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);+ return /* @__PURE__ */ (0, V.jsx)("radialGradient", {+ id: `${e}-radar-fill-${t}`,+ cx: "50%",+ cy: "50%",+ r: "50%",+ children: /* @__PURE__ */ (0, V.jsx)(O7, {+ dataKey: t,+ colorsCount: r,+ opacities: i+ })+ });+}, _Ke = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {+ id: `${e}-radar-glow-${t}`,+ x: "-50%",+ y: "-50%",+ width: "200%",+ height: "200%",+ children: [+ /* @__PURE__ */ (0, V.jsx)("feGaussianBlur", {+ in: "SourceGraphic",+ stdDeviation: "4",+ result: "blur"}),- /* @__PURE__ */ (0, V.jsx)("div", {- ref: d,- className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",- children: /* @__PURE__ */ (0, V.jsx)(XN, {- src: t,- aspect: l ? OC : null,- box: s,- size: a,- label: `${e} 的正封取景框`,- onSize: (e) => {- VN(e) && p(e);- },- onBox: c- })+ /* @__PURE__ */ (0, V.jsx)("feColorMatrix", {+ in: "blur",+ type: "matrix",+ values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.6 0",+ result: "glow"}),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",- children: [/* @__PURE__ */ (0, V.jsx)($I, {- isSelected: l,- onChange: (e) => {- u(e), e && s && a && c(UN(s, a, OC));- },- children: /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-body-2-regular text-text-secondary",- children: "锁定正封比例"- })- }), /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-1 flex-wrap items-center justify-end gap-3",- children: [/* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- ...X(m),- onClick: () => {- m || f.mutate(null);- },- children: "恢复默认"- }), /* @__PURE__ */ (0, V.jsx)(J, {- disabled: !s || !a,- ...X(m),- onClick: () => {- s && !m && f.mutate(s);- },- children: "用这一块"- })]- })]- })- ] });+ /* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })+ ]+}), vKe = (e) => [+ "A",+ "B",+ "C",+ "D",+ "E",+ "F"+].slice(0, e).map((e) => ({+ skill: e,+ [S7]: 30 + Math.random() * 70+}));+function yKe(e, t = oKe) {+ let [n, r] = (0, B.useState)(0);+ return (0, B.useEffect)(() => {+ if (!e) return;+ let t = setInterval(() => {+ r((e) => e + 1);+ }, x7);+ return () => clearInterval(t);+ }, [e]), (0, B.useMemo)(() => vKe(t), [t, n]);}-//#endregion-//#region src/react/item-detail/item-detail-page.tsx-var W7 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {- className: "contents",- dangerouslySetInnerHTML: { __html: R(e) }-}), G7 = ({ html: e }) => /* @__PURE__ */ (0, V.jsx)("span", {- className: "contents",- dangerouslySetInnerHTML: { __html: e }+var bKe = () => /* @__PURE__ */ (0, V.jsx)(z4, {+ dataKey: S7,+ stroke: "currentColor",+ strokeOpacity: .3,+ strokeWidth: 2,+ fill: "currentColor",+ fillOpacity: .1,+ dot: !1,+ isAnimationActive: !0,+ animationDuration: x7,+ animationEasing: "ease-in-out"});-function Iqe(e) {- let { queue: t, actions: n } = e, r = wS({- queryKey: t ? FC(t) : ["item-queue", "none"],- queryFn: ({ signal: n }) => WC(t, e.helpers, n),- enabled: !!t- }), i = t && r.data || null, a = i ? qC(i, e.id) : t ? null : e.id, o = wS({- queryKey: PC(a ?? 0),- queryFn: ({ signal: e }) => UC(a, e),- enabled: a != null- });- if (!o.data || t && !i) {- let e = o.error || r.error;- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-stage-grid": "",- "data-item-detail": "",- children: /* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-media": "",- "data-item-media": "none",- children: [/* @__PURE__ */ (0, V.jsx)(K7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {- "data-item-placeholder": "",- children: e ? /* @__PURE__ */ (0, V.jsx)(pA, {- message: ye(e),- onRetry: () => {- r.error && r.refetch(), o.error && o.refetch();- }- }) : null- })]- })- });- }- return /* @__PURE__ */ (0, V.jsx)(Lqe, {+T7.Radar = sKe, T7.Dot = E7, T7.ActiveDot = D7, T7.PolarGrid = cKe, T7.PolarAngleAxis = lKe, T7.PolarRadiusAxis = uKe, T7.Tooltip = dKe, T7.Legend = fKe;+//#endregion+//#region src/react/taste/charts.tsx+var xKe = [+ "stroke-chart-1",+ "stroke-chart-2",+ "stroke-chart-3",+ "stroke-chart-4",+ "stroke-chart-5",+ "stroke-chart-6"+], SKe = [+ "fill-chart-1",+ "fill-chart-2",+ "fill-chart-3",+ "fill-chart-4",+ "fill-chart-5",+ "fill-chart-6"+], k7 = { value: {+ label: "标签命中",+ colors: x5(b5[3])+} }, CKe = [+ "min-h-24",+ "min-h-24",+ "min-h-24",+ "min-h-32",+ "min-h-40",+ "min-h-48",+ "min-h-52",+ "min-h-60",+ "min-h-64"+], wKe = 26, TKe = { radius: k7.value }, EKe = (e, t) => Math.sqrt(e / t);+function DKe({ rows: e, label: t }) {+ let n = tKe(e);+ if (!n.length) return null;+ let r = n[0].value, i = n.map((e) => ({...e,- item: Hre(o.data, i),- queue: i- }, o.data.id);+ radius: EKe(e.value, r)+ }));+ return /* @__PURE__ */ (0, V.jsx)("div", {+ role: "img",+ "aria-label": `${t}:${i.map((e) => e.name).join(",")}`,+ children: /* @__PURE__ */ (0, V.jsxs)(T7, {+ data: i,+ config: TKe,+ chartProps: { outerRadius: "58%" },+ className: "aspect-auto h-70 text-text-secondary",+ children: [+ /* @__PURE__ */ (0, V.jsx)(T7.PolarGrid, {}),+ /* @__PURE__ */ (0, V.jsx)(T7.PolarAngleAxis, { dataKey: "name" }),+ /* @__PURE__ */ (0, V.jsx)(T7.PolarRadiusAxis, {+ domain: [0, 1],+ allowDecimals: !0,+ tick: !1+ }),+ /* @__PURE__ */ (0, V.jsx)(T7.Radar, { dataKey: "radius" }),+ /* @__PURE__ */ (0, V.jsx)(E5, { valueKey: "value" })+ ]+ })+ });}-var K7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-close": "",- id: "closeStage",- title: "关闭",- "aria-label": "关闭",- onClick: e,- dangerouslySetInnerHTML: { __html: R("x") }-});-function Lqe(e) {- let { item: t, queue: n, actions: r, helpers: i } = e, a = $qe(t, r, i.tagLabel), o = (0, B.useRef)(t);- (0, B.useLayoutEffect)(() => {- r.present(o.current, n);- }, [r]), (0, B.useEffect)(() => {- n?.kind === "playlist" && K(IC, {- action: "progress",- id: n.playlistId,- asset_id: t.id- }).catch(() => {});- }, []);- let s = tie(t, i.sourceOffline(t.location || ""));- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-grid": "",- "data-with-queue": n ? "" : void 0,- "data-item-detail": "",+function OKe({ rows: e, label: t }) {+ let n = m7(e, 8);+ return n.length ? /* @__PURE__ */ (0, V.jsx)("section", {+ "aria-label": t,+ className: `flex grow flex-col ${CKe[n.length]}`,+ children: /* @__PURE__ */ (0, V.jsxs)(g5, {+ data: n,+ config: k7,+ layout: "horizontal",+ barRadius: 4,+ chartProps: { maxBarSize: wKe },+ className: "aspect-auto text-text-secondary",+ children: [+ /* @__PURE__ */ (0, V.jsx)(g5.YAxis, {+ dataKey: "name",+ interval: 0+ }),+ /* @__PURE__ */ (0, V.jsx)(g5.XAxis, {+ hide: !0,+ domain: D5+ }),+ /* @__PURE__ */ (0, V.jsx)(g5.Bar, {+ dataKey: "value",+ enableHoverHighlight: !0,+ barProps: {+ dataKey: "value",+ label: O5("right")+ }+ }),+ /* @__PURE__ */ (0, V.jsx)(E5, {})+ ]+ })+ }) : null;+}+function kKe({ flows: e }) {+ let [t, n] = (0, B.useState)(null), r = nKe(e);+ if (!r) return null;+ let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;+ return /* @__PURE__ */ (0, V.jsxs)("section", {+ className: v5,children: [- /* @__PURE__ */ (0, V.jsx)(Rqe, {- item: t,- gate: s,- helpers: i,- actions: r+ /* @__PURE__ */ (0, V.jsx)(y5, {+ title: "创作者线索来源",+ figure: (t ? t.value : r.total).toLocaleString(),+ note: t ? t.label : "条线索"}),- n ? /* @__PURE__ */ (0, V.jsx)(Bqe, {- queue: n,- itemId: t.id,- helpers: i,- actions: r- }) : null,- /* @__PURE__ */ (0, V.jsx)(Uqe, {- item: t,- queue: n,- write: a,- helpers: i,- actions: r+ /* @__PURE__ */ (0, V.jsx)("div", {+ className: "min-w-0 overflow-x-auto",+ children: /* @__PURE__ */ (0, V.jsxs)("svg", {+ viewBox: `0 0 ${h7.width} ${h7.height}`,+ fill: "none",+ role: "img",+ "aria-label": "来源网站与创作者线索",+ className: "block h-auto max-h-130 min-w-160 w-full",+ onPointerLeave: () => n(null),+ children: [/* @__PURE__ */ (0, V.jsx)("g", { children: r.links.map((e) => /* @__PURE__ */ (0, V.jsx)("path", {+ d: e.d,+ strokeWidth: e.width,+ tabIndex: 0,+ role: "img",+ "aria-label": `${e.label}:${e.value} 条线索`,+ fillOpacity: 0,+ strokeOpacity: a(e, e.label) ? .55 : .08,+ className: `outline-none transition-opacity ${xKe[e.color]}`,+ onPointerEnter: () => n({+ value: e.value,+ label: e.label,+ node: null+ }),+ onFocus: () => n({+ value: e.value,+ label: e.label,+ node: null+ }),+ onBlur: () => n(null)+ }, e.key)) }), /* @__PURE__ */ (0, V.jsx)("g", { children: r.nodes.map((e) => /* @__PURE__ */ (0, V.jsxs)("g", {+ tabIndex: 0,+ role: "img",+ "aria-label": `${e.name}:${e.value} 条线索`,+ className: "outline-none focus-visible:opacity-100",+ onPointerEnter: () => n({+ value: e.value,+ label: e.name,+ node: e.index+ }),+ onFocus: () => n({+ value: e.value,+ label: e.name,+ node: e.index+ }),+ onBlur: () => n(null),+ children: [/* @__PURE__ */ (0, V.jsx)("rect", {+ x: e.x,+ y: e.y,+ width: 10,+ height: e.height,+ rx: 5,+ className: e.side === "source" ? SKe[e.color] : "fill-text-secondary"+ }), /* @__PURE__ */ (0, V.jsxs)("text", {+ x: g7[e.side],+ y: e.y + e.height / 2,+ textAnchor: e.side === "source" ? "end" : "start",+ dominantBaseline: "middle",+ className: "fill-text-secondary text-caption-1-regular",+ children: [rKe(e.name), /* @__PURE__ */ (0, V.jsx)("tspan", {+ x: g7[e.side],+ dy: 15,+ children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`+ })]+ })]+ }, e.id)) })]+ })+ }),+ /* @__PURE__ */ (0, V.jsxs)("footer", {+ className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "来源网站" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "创作者 · 线索占比" })]})]- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, V.jsx)(Qqe, { ...e }) : null] });+ });+}+//#endregion+//#region src/react/taste/taste-page.tsx+var AKe = 10, A7 = gE(uM, dM, "text-body-2-medium"), j7 = `${SE()} flex flex-col gap-4`, M7 = "rounded-xl bg-background-primary-default p-3", jKe = "读取运行 Peach 的这台电脑上的浏览记录", MKe = "导入或读取浏览记录后,这里会列出已采集设备。", NKe = "馆藏里暂时没有对得上浏览信号的标签。", PKe = "采集浏览记录后,这里会显示聚合后的口味证据。", FKe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", IKe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", LKe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", RKe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", zKe = "这个数据源将不再用于口味分析。原始导出文件保留。", N7 = "peach-taste-guide-dismissed";+function P7({ icon: e, term: t, figure: n, detail: r, accent: i }) {+ return /* @__PURE__ */ (0, V.jsx)("div", {+ className: rM(),+ children: /* @__PURE__ */ (0, V.jsx)(sM, {+ label: t,+ icon: e,+ accent: i,+ figure: n,+ footer: r ?? ""+ })+ });+}+function F7({ name: e, domain: t }) {+ return /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",+ children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, V.jsx)("img", {+ src: xe({ domain: t }),+ alt: "",+ loading: "lazy",+ width: 20,+ height: 20,+ onError: (e) => e.currentTarget.remove(),+ className: "absolute size-5 object-contain"+ })]+ });}-function Rqe({ item: e, gate: t, helpers: n, actions: r }) {- let [i, a] = (0, B.useState)(t ? "" : "auto"), o = (0, B.useRef)(null), s = (0, B.useRef)(e);- (0, B.useLayoutEffect)(() => {- let e = o.current;- if (!(!e || !i)) return r.mountPlayer(e, s.current, null, i === "clicked" ? { autoplay: !0 } : void 0);- }, [r, i]);- let c = n.badgeHtml(e.location || "", e.cost || "", "srcbig");- return /* @__PURE__ */ (0, V.jsxs)("div", {- ref: o,- "data-stage-media": "",- "data-item-media": t || "video",- children: [/* @__PURE__ */ (0, V.jsx)(K7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(zqe, {- item: e,- badge: c,- helpers: n,- actions: r- }) : t === "online" ? /* @__PURE__ */ (0, V.jsxs)("div", {- id: "onlineGate",- role: "status",- "data-item-gate": "online",- children: [- /* @__PURE__ */ (0, V.jsx)(G7, { html: c }),- /* @__PURE__ */ (0, V.jsx)("b", { children: "在线资产" }),- /* @__PURE__ */ (0, V.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),- /* @__PURE__ */ (0, V.jsx)("button", {- className: "chip",- id: "openSavedFollow",+function BKe({ html: e }) {+ return /* @__PURE__ */ (0, V.jsx)("span", {+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${eL}`,+ dangerouslySetInnerHTML: { __html: e }+ });+}+function VKe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {+ if (!e.length) return /* @__PURE__ */ (0, V.jsx)(CE, {+ shell: "plain",+ icon: wT,+ title: "暂无足够证据",+ children: r+ });+ let a = eKe(e);+ return /* @__PURE__ */ (0, V.jsx)(L5, {+ previewCount: AKe,+ className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",+ children: e.map((e, r) => {+ let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 100 1",+ preserveAspectRatio: "none",+ "aria-hidden": !0,+ className: "absolute inset-0 -z-10 size-full overflow-hidden rounded-lg opacity-15",+ children: /* @__PURE__ */ (0, V.jsx)("rect", {+ width: a[r],+ height: 1,+ className: "fill-chart-4"+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",+ children: r + 1+ }),+ n === "domain" ? /* @__PURE__ */ (0, V.jsx)(F7, {+ name: e.name,+ domain: e.name+ }) : null,+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, V.jsx)(F7, {+ name: e.name,+ domain: s+ }) : null,+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, V.jsx)(BKe, { html: w(e.name, e.entity_id ? {+ id: e.entity_id,+ has_image: !!e.has_image,+ image_version: e.image_version,+ avatar_focus: e.avatar_focus+ } : null, e.has_avatar ? e.representative_asset_id ?? null : null, n === "creator" ? "creator" : t || "performer") }) : null,+ /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 grow flex-col gap-0.5",+ children: [/* @__PURE__ */ (0, V.jsx)("b", {+ className: "min-w-0 text-body-medium break-words text-text-primary",+ children: e.name+ }), /* @__PURE__ */ (0, V.jsx)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: $Ge(e)+ })]+ }),+ o ? /* @__PURE__ */ (0, V.jsx)(lT, {+ "aria-hidden": !0,+ className: "size-4 shrink-0 text-text-tertiary"+ }) : null+ ] }), l = "relative isolate flex min-h-11 w-full min-w-0 items-center gap-2.5 rounded-lg px-3 py-2 text-left";+ return /* @__PURE__ */ (0, V.jsx)("li", {+ className: "min-w-0",+ children: o ? /* @__PURE__ */ (0, V.jsx)("button", {type: "button",- onClick: r.openSavedFollow,- children: "打开已保存关注"+ onClick: () => i(t, e.name),+ className: `${l} cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring`,+ children: c+ }) : /* @__PURE__ */ (0, V.jsx)("div", {+ className: l,+ children: c})- ]- }) : t === "metered" && !i ? /* @__PURE__ */ (0, V.jsxs)("div", {- id: "gate",- "data-item-gate": "metered",- onClick: () => a("clicked"),- children: [/* @__PURE__ */ (0, V.jsx)(G7, { html: c }), /* @__PURE__ */ (0, V.jsxs)("span", { children: ["点此开始拉流 · ", pe(e.size || 0)] })]- }) : null]+ }, e.name);+ })});}-function zqe({ item: e, badge: t, helpers: n, actions: r }) {- let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(!1), c = async () => {- a(!0);- let t = await r.checkSource(e.location || "").catch(() => !1);- a(!1), t ? r.reopen() : s(!0);- };- return /* @__PURE__ */ (0, V.jsxs)("div", {- id: "offlineGate",- role: "status",- "data-item-gate": "offline",- children: [- /* @__PURE__ */ (0, V.jsx)(G7, { html: t }),- /* @__PURE__ */ (0, V.jsx)("b", { children: "脱盘模式" }),- /* @__PURE__ */ (0, V.jsx)("span", { children: n.offlineReason(e.location || "") }),- /* @__PURE__ */ (0, V.jsx)("button", {- className: "chip",- id: "offlineRetry",- type: "button",- disabled: i,- onClick: () => void c(),- children: o ? "仍无法读取 · 刷新" : "刷新状态"+function I7({ label: e, panels: t, onSignal: n }) {+ return /* @__PURE__ */ (0, V.jsxs)(Kk, {+ className: `${SE({ padding: "none" })} flex flex-col`,+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ className: "px-4 pt-3",+ children: /* @__PURE__ */ (0, V.jsx)(Zk, {+ "aria-label": e,+ className: $k,+ children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(Jk, {+ id: e.id,+ className: eA,+ children: e.name+ }, e.id))})- ]+ }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(Yk, {+ id: e.id,+ className: "px-4 pt-3.5 pb-4",+ children: /* @__PURE__ */ (0, V.jsx)(VKe, {+ ...e.props,+ onSignal: n+ })+ }, e.id))]});}-function Bqe({ queue: e, itemId: t, helpers: n, actions: r }) {- let i = Zre(e), a = (0, B.useRef)(null), o = Hqe(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, {- selector: "[data-queue-row]",- attribute: "data-queue-row",- onMove: (e, t, n) => s.current.move(+e, +t, n)- }));- }, [n, e.kind]), l = Vqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-save-mix": "",- title: "保存为播放列表",- "aria-label": "保存为播放列表",- onClick: l,- dangerouslySetInnerHTML: { __html: R("playlist") }- }) : e.kind === "playlist" ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-edit-playlist": "",- title: "编辑播放列表",- "aria-label": "编辑播放列表",- onClick: r.editPlaylist,- dangerouslySetInnerHTML: { __html: R("playlist") }- }) : null, d = {- kind: e.kind,- seedId: e.seedId,- playlistId: e.playlistId- };- return /* @__PURE__ */ (0, V.jsx)(P7, {- kind: e.kind,- title: i.title,- summary: i.summary,- onClose: r.close,- actions: u,- listRef: c,- children: e.items.map((i) => {- let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, V.jsx)("i", {- className: `javedition ${Yre[i.edition_label] || "censored"}`,- "data-queue-edition": "",- children: i.edition_label- }) : null, s = e.kind === "playlist" && KC(i);- return /* @__PURE__ */ (0, V.jsxs)(F7, {- current: i.id === t,- "data-queue-item": i.id,- row: { "data-queue-row": i.id },- disabled: s,- title: s ? "文件已不在盘上,不能播放" : void 0,- ...s ? { "data-queue-vanished": "" } : {},- onClick: () => {- s || r.openQueueItem(d, i.id);- },- pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(G7, { html: I(i, n.javImage()) }), /* @__PURE__ */ (0, V.jsx)("i", {- className: "mono",- "data-mix-item-duration": "",- children: fe(i.duration)- })] }),- lead: /* @__PURE__ */ (0, V.jsx)(G7, { html: F(i) }),- after: e.kind === "playlist" ? /* @__PURE__ */ (0, V.jsxs)("span", {- "data-queue-edit": "",- children: [/* @__PURE__ */ (0, V.jsx)("i", {- "data-queue-grip": "",- "aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "grip-vertical" })- }), /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-queue-remove": i.id,- title: "移出播放列表",- "aria-label": "移出播放列表",- onClick: () => o.remove(i.id),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "x" })+function HKe({ data: e, onSignal: t, navigate: n }) {+ let r = e.analysis;+ if (!r?.headline) return null;+ let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({+ key: `tag:${e.tag}`,+ title: e.title,+ detail: e.detail,+ act: () => t("tag", e.tag)+ })), ...(r.next_steps || []).map((e) => ({+ key: `route:${e.route}`,+ title: e.title,+ detail: e.detail,+ act: () => n(e.route)+ }))];+ return /* @__PURE__ */ (0, V.jsxs)("section", {+ className: j7,+ "aria-label": "口味总结",+ children: [+ /* @__PURE__ */ (0, V.jsxs)("header", {+ className: "flex flex-col gap-2",+ children: [+ /* @__PURE__ */ (0, V.jsx)("h3", {+ className: "text-title-2-medium text-text-primary",+ children: "口味总结"+ }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "max-w-prose text-title-2-regular text-text-primary",+ children: r.headline+ }),+ /* @__PURE__ */ (0, V.jsxs)("p", {+ className: "flex flex-wrap items-center gap-2 text-body-2-regular text-text-secondary",+ children: [/* @__PURE__ */ (0, V.jsx)("i", {+ "aria-hidden": !0,+ className: `size-2 shrink-0 rounded-full ${i.level === "high" ? "bg-status-lime-text" : i.level === "medium" ? "bg-status-yellow-text" : "bg-text-tertiary"}`+ }), i.label || "仍在学习"]+ })+ ]+ }),+ r.points?.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "inline-grid w-full gap-3 sm:grid-cols-2",+ children: r.points.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {+ className: `flex min-w-0 flex-col gap-1 ${M7}`,+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: e.label+ }), /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-body-2-medium break-words text-text-primary",+ children: e.text})]- }) : null,- children: [/* @__PURE__ */ (0, V.jsxs)("span", {- "data-queue-head": "",- children: [a, /* @__PURE__ */ (0, V.jsx)("b", {- "data-middle-truncate": "",- children: n.displayName(i)+ }, e.label))+ }) : null,+ a.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex flex-col gap-2",+ children: a.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ onClick: e.act,+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${M7} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,+ children: [/* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 grow flex-col gap-1",+ children: [/* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-body-2-medium text-text-primary",+ children: e.title+ }), /* @__PURE__ */ (0, V.jsx)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: e.detail+ })]+ }), /* @__PURE__ */ (0, V.jsx)(lT, {+ "aria-hidden": !0,+ className: "size-4 shrink-0 text-text-tertiary"})]- }), /* @__PURE__ */ (0, V.jsx)("span", {- "data-truncate-end": "",- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? nw(i.part_label) : P(i, n.tagLabel)- })]- }, i.id);- })+ }, e.key))+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ shell: "plain",+ icon: wT,+ title: "还没有可探索的入口",+ children: NKe+ })+ ]});}-function Vqe(e, t) {- let n = DS({ mutationFn: (t) => K(IC, {- action: "create",- name: t,- asset_ids: e.items.map((e) => e.id),- source_kind: "mix",- source_seed_asset_id: e.seedId- }).then((e) => e.playlist) });- return () => t.saveMix({- title: e.title,- count: e.items.length,- save: (e) => n.mutateAsync(e)+function UKe({ onboarding: e, done: t }) {+ let [n, r] = (0, B.useState)(() => {+ try {+ return localStorage.getItem(N7) === "1";+ } catch {+ return !1;+ }});-}-function Hqe(e, t, n) {- let r = FC({- kind: "playlist",- playlistId: e.playlistId- }), i = (e) => (z.setQueryData(r, GC(e)), e), a = (t) => K(IC, {- id: e.playlistId,- ...t- }).then((e) => e.playlist), o = DS({- mutationFn: (e) => a({- action: "reorder",- asset_ids: e+ return t || n ? null : /* @__PURE__ */ (0, V.jsx)("div", {+ className: SE({+ padding: "none",+ className: "p-4"}),- onSuccess: (e, t) => {- i(e);- },- onError: (e) => n.failure("调整播放顺序", e)- }), s = e.items.map((e) => e.id);- return {- move: async (t, r, c) => {- if (e.kind !== "playlist") return;- let l = $re(s, t, r, c);- if (eie(l, s)) return;- let u = s;- await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {- i(await a({- action: "reorder",- asset_ids: u- }));- } });- },- remove: (e) => {- let r = s;- Te({- title: "移出播放列表",- body: "这个视频将从播放列表移除,视频文件保留。",- confirmLabel: "移出播放列表",- onConfirm: async () => {- let o = await a({- action: "remove",- asset_id: e- });- if (n.toast("已移出播放列表", { undo: async () => {- await a({- action: "add",- asset_ids: [e]- });- let s = i(await a({- action: "reorder",- asset_ids: r- }));- (!o.items.length || e === t) && n.openQueueItem({- kind: "playlist",- playlistId: s.id- }, t, !1);- } }), !o.items.length) {- n.openPlaylists();- return;- }- i(o), e === t && n.openQueueItem({- kind: "playlist",- playlistId: o.id- }, o.current_asset_id || o.items[0].id, !1);- }- });- }- };-}-function Uqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {- let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, B.useState)(!1);- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-stage-side": "",- "data-item-side": "",- children: /* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-side-content": "",+ children: /* @__PURE__ */ (0, V.jsxs)(UE, {+ summary: "浏览器历史记录导入指南",+ defaultOpen: e,children: [- /* @__PURE__ */ (0, V.jsx)(Wqe, {- item: e,- queue: t,- helpers: r,- actions: i,- onStatus: n.setSourceState- }),- a ? null : /* @__PURE__ */ (0, V.jsx)("span", {- "data-title-state": "",- "aria-live": "polite",- children: n.sourceState- }),- /* @__PURE__ */ (0, V.jsx)(Kqe, {- item: e,- write: n- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "mono",- "data-stage-meta": "",- "data-reveal-line": "",- children: [- /* @__PURE__ */ (0, V.jsxs)("span", {- "data-spec-item": "",- children: [/* @__PURE__ */ (0, V.jsx)(W7, { name: "monitor" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [- e.width || "?",- "×",- e.height || "?"- ] })]- }),- /* @__PURE__ */ (0, V.jsxs)("span", {- "data-spec-item": "",- children: [/* @__PURE__ */ (0, V.jsx)(W7, { name: "hard-drive" }), /* @__PURE__ */ (0, V.jsx)("span", { children: pe(e.size || 0) })]- }),- e.release_date ? /* @__PURE__ */ (0, V.jsxs)("span", {- "data-spec-item": "",- children: [/* @__PURE__ */ (0, V.jsx)(W7, { name: "calendar" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.release_date })]- }) : null,- e.region_label ? /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-spec-item": "",- "data-open-region": e.region || "",- title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",- onClick: () => i.openRegion(e.region || ""),- children: [/* @__PURE__ */ (0, V.jsx)(W7, { name: "globe" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]- }) : null- ]- }),- /* @__PURE__ */ (0, V.jsx)(qqe, {- item: e,- helpers: r,- actions: i+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: IKe}),- /* @__PURE__ */ (0, V.jsx)(Jqe, {- item: e,- write: n,- helpers: r,- actions: i+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: LKe}),- /* @__PURE__ */ (0, V.jsx)(Xqe, { item: e }),- /* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-actions": "",- "data-item-feedback": "",- children: [- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- id: "likeBtn",- "data-fb": "like",- "aria-label": e.liked ? "取消喜欢" : "喜欢",- title: "喜欢 · 记录口味偏好",- "aria-pressed": !!e.liked,- ...o("like"),- onClick: () => n.preference({ liked: !e.liked }),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "thumbs-up" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- id: "preferenceToggle",- "data-fb": "reason",- "aria-label": "喜爱理由",- title: "喜爱理由",- "aria-expanded": s,- "aria-controls": "preferencePanel",- "data-has-reason": String(!!e.like_reason),- onClick: () => c((e) => !e),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "notebook-pen" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-action": "dislike",- "data-kind": "dislike",- "aria-label": "不合口味",- title: "不合口味 · 降低推荐权重",- "aria-pressed": e.feedback === "dislike",- ...o("dislike"),- onClick: () => n.feedback("dislike"),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "thumbs-down" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-action": "seen",- "data-kind": "seen",- "aria-label": "看过了",- title: "看过了 · 只降低近期推荐",- "aria-pressed": e.feedback === "seen",- ...o("seen"),- onClick: () => n.feedback("seen"),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "eye" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-stage-action": "later",- id: "stageLater",- "aria-label": "稍后看",- title: "稍后看 · 加入或移出队列",- "aria-pressed": !!e.watch_later,- ...o("later"),- onClick: n.later,- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: e.watch_later ? "check" : "bookmark-plus" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- id: "addPlaylist",- "data-fb": "playlist",- "aria-label": "加入播放列表",- title: "加入播放列表",- onClick: () => i.addToPlaylist(e),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "playlist" })+ /* @__PURE__ */ (0, V.jsxs)("ul", {+ className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",+ children: [/* @__PURE__ */ (0, V.jsxs)("li", { children: [+ "Chrome:在 ",+ /* @__PURE__ */ (0, V.jsx)("a", {+ href: "https://takeout.google.com/",+ target: "_blank",+ rel: "noopener noreferrer",+ className: "text-text-primary underline-offset-4 hover:underline",+ children: "Google Takeout"}),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- id: "betterVersion",- "data-fb": "quality",- "aria-label": "寻找更好版本",- title: e.better_version ? e.better_version_reason || "已标记寻找更好版本" : "寻找高清、无水印或完整版",- "aria-pressed": !!e.better_version,- ...o("quality"),- onClick: n.quality,- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "sparkles" })+ " ",+ "选择 Chrome 历史记录,下载 ZIP 后直接导入。"+ ] }), /* @__PURE__ */ (0, V.jsxs)("li", { children: [+ "其他浏览器:用 ",+ /* @__PURE__ */ (0, V.jsx)("a", {+ href: "https://github.com/purarue/browserexport",+ target: "_blank",+ rel: "noopener noreferrer",+ className: "text-text-primary underline-offset-4 hover:underline",+ children: "browserexport"}),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-kind": "dispose",- "data-fb": "dispose",- "aria-label": "移入回收站",- title: "移入回收站 · 文件仍保留,可从回收站永久清除",- "aria-pressed": e.disposal === "trash",- ...o("dispose"),- onClick: () => n.feedback("dispose"),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "trash" })- })- ]+ " ",+ "导出历史记录,再导入导出文件。"+ ] })]}),- /* @__PURE__ */ (0, V.jsx)(Zqe, {- item: e,- open: s,- write: n+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: RKe}),- /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-kind": "o",- ...o("o"),- onClick: () => n.feedback("o"),- children: [- /* @__PURE__ */ (0, V.jsx)(W7, { name: "sperm" }),- /* @__PURE__ */ (0, V.jsx)("span", { children: "记一次高潮" }),- /* @__PURE__ */ (0, V.jsx)("b", {- className: "mono",- id: "oCount",- children: e.o_count || 0- })- ]+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "self-start",+ children: /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "secondary",+ size: "small",+ onClick: () => {+ try {+ localStorage.setItem(N7, "1");+ } catch {}+ r(!0);+ },+ children: "跳过"+ })})]})});}-function Wqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {- let a = (0, B.useRef)(null), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(!1);- (0, B.useLayoutEffect)(() => {- let e = a.current;- if (!e) return;- let t = () => {- e.hasAttribute("data-expanded") || l(e.scrollHeight > e.clientHeight + 1);- }, n = new ResizeObserver(t);- return n.observe(e), t(), () => n.disconnect();- }, []);- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Qre(e, t);- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-item-title": "",- children: /* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-title": "",- "data-title-line": "",- "data-reveal-line": "",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- ref: a,- "data-detail-title": "",- "data-expanded": o ? "" : void 0,- "data-foldable": c ? "" : void 0,- onClick: () => {- c && !String(getSelection() || "") && u();- },- dangerouslySetInnerHTML: { __html: d }- }), /* @__PURE__ */ (0, V.jsxs)("span", {- "data-title-tools": "",- children: [- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-title-fold": "",- hidden: !c,- "aria-expanded": o,- "aria-label": o ? "收起标题" : "展开标题",- title: o ? "收起标题" : "展开完整标题",- onClick: u,- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: o ? "chevron-up" : "chevron-down" })- }),- e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-cover-crop-host": "",- children: /* @__PURE__ */ (0, V.jsx)(Pqe, {- code: e.cover_key || e.code || "",- coverUrl: D(e),- box: e.poster_box || null,- onSaved: (t) => {- z.invalidateQueries({- queryKey: PC(e.id),- exact: !0- }), NC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });- }- })- }) : null,- e.location === "online" ? null : /* @__PURE__ */ (0, V.jsx)(Gqe, {- id: e.id,- actions: r,- onStatus: i- })- ]+function WKe({ busy: e, onRefresh: t, onImport: n }) {+ let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {+ a(!1), e();+ };+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("span", {+ "data-button-group": !0,+ "data-split-button": !0,+ "data-variant": "primary",+ children: [/* @__PURE__ */ (0, V.jsx)(J, {+ leadingIcon: pT,+ title: jKe,+ onClick: t,+ ...X(e),+ children: "读取浏览器历史"+ }), /* @__PURE__ */ (0, V.jsx)(J, {+ ref: r,+ iconOnly: !0,+ leadingIcon: sT,+ "aria-label": "更多取得浏览记录的方式",+ "aria-haspopup": "dialog",+ "aria-expanded": i,+ ...X(e),+ onClick: () => {+ e || a(!0);+ }+ })]+ }), /* @__PURE__ */ (0, V.jsx)($O, {+ triggerRef: r,+ isOpen: i,+ onOpenChange: a,+ placement: "bottom end",+ offset: 4,+ className: lM,+ children: /* @__PURE__ */ (0, V.jsxs)(cM, {+ "aria-label": "更多取得浏览记录的方式",+ className: "flex w-52 flex-col gap-1 outline-none",+ children: [/* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ className: A7,+ onClick: () => o(t),+ children: [/* @__PURE__ */ (0, V.jsx)(pT, {+ "aria-hidden": !0,+ className: "size-4 shrink-0"+ }), "读取浏览器历史"]+ }), /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ className: A7,+ onClick: () => o(n),+ children: [/* @__PURE__ */ (0, V.jsx)(TT, {+ "aria-hidden": !0,+ className: "size-4 shrink-0"+ }), "导入历史文件"]})]})- });-}-function Gqe({ id: e, actions: t, onStatus: n }) {- let [r, i] = (0, B.useState)(""), a = async () => {- r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));- }, o = async () => {- if (r) return;- i("sync"), n("正在核对目录…");- let a = await t.sync(e);- n(a.text), i(""), a.removed.includes(e) && t.close();- };- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-reveal": e,- title: "在文件管理器里打开源文件所在目录",- "aria-label": "定位源文件",- ...r === "reveal" ? {- "aria-busy": !0,- "aria-disabled": !0- } : {},- onClick: () => void a(),- dangerouslySetInnerHTML: { __html: r === "reveal" ? Ke("正在定位") : R("folder-open") }- }), /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-sync": e,- title: "核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失",- "aria-label": "同步删除",- ...r === "sync" ? {- "aria-busy": !0,- "aria-disabled": !0- } : {},- onClick: () => void o(),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "folder-sync" })})] });}-function Kqe({ item: e, write: t }) {- let n = XC(e.rating);- return /* @__PURE__ */ (0, V.jsxs)("div", {- id: "detailRating",- role: "group",- "data-item-rating": "",- "aria-label": "评分",- "data-value": YC(e.rating),- children: [/* @__PURE__ */ (0, V.jsx)("div", {- "data-rating-stars": "",- children: [- 1,- 2,- 3,- 4,- 5- ].map((e) => /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-rate": e,- "data-on": String(e <= n),- title: e === n ? "再点一次取消评分" : `${e} 星`,- "aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,- ...t.busyAttrs(`rate:${e}`),- onClick: () => t.rate(e),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "star" })- }, e))- }), /* @__PURE__ */ (0, V.jsx)("span", {- "data-rating-value": "",- "aria-live": "polite",- children: Wre(e.rating)- })]+function GKe({ sources: e, window: t, toast: n }) {+ let r = OS({+ mutationFn: (e) => JGe(e, t),+ onSuccess: (e) => {+ z.setQueryData(d7(t), e.dashboard), n("已移除口味数据源");+ }});-}-function qqe({ item: e, actions: t }) {- let n = (0, B.useMemo)(() => Ure(e), [e]), [r, i] = (0, B.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {- let a = e === "performer" && i >= 8 && !r, o = e === "performer" ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-id-face": "",- dangerouslySetInnerHTML: { __html: `<span>${L(n.name.slice(0, 1))}</span>` + A({- id: n.id,- hasImage: n.has_image,- version: n.image_version,- focus: n.avatar_focus- }) }- }) : /* @__PURE__ */ (0, V.jsx)("span", {- "data-id-face": "",- children: e === "studio" ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: n.name.slice(0, 2) }), n.has_logo ? /* @__PURE__ */ (0, V.jsx)("img", {- src: M(n.name, "icon", n.logo_version),- alt: "",- loading: "lazy",- "data-drop": "self"- }) : null] }) : /* @__PURE__ */ (0, V.jsx)("span", { children: n.name.slice(0, 1) })- }), s = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)("span", {- "data-id-name": "",- children: n.name- })] }), c = e === "performer" && i >= 8 ? { "data-castoverflow": "" } : {};- return n.id ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-id-cell": e,- "data-entity-kind": e,- "data-entity-name": n.name,- title: n.name,- hidden: a,- ...c,- onClick: () => t.openEntity(e, n.name),- children: s- }, `${e}:${n.name}`) : /* @__PURE__ */ (0, V.jsx)("span", {- "data-id-cell": e,- title: n.name,- hidden: a,- ...c,- children: s- }, `${e}:${n.name}`);- }, s = (e, t, n, r = null) => n.length ? /* @__PURE__ */ (0, V.jsxs)("section", {- "data-id-group": t,- children: [/* @__PURE__ */ (0, V.jsx)("h5", {- "data-id-label": "",- children: e- }), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-id-row": "",- children: [n.map((e, n) => o(t, e, n)), r]- })]- }, `${t}:${e}`) : null, c = [- n.unowned ? /* @__PURE__ */ (0, V.jsxs)("section", {- "data-id-group": "unowned",- children: [/* @__PURE__ */ (0, V.jsx)("h5", {- "data-id-label": "",- children: "归属"- }), /* @__PURE__ */ (0, V.jsx)("div", {- "data-id-row": "",- children: /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-id-cell": "unowned",- "data-open-unowned": "",- title: "打开未归属:馆藏里没有署名人的作品",- onClick: t.openUnowned,- children: [/* @__PURE__ */ (0, V.jsx)("span", {- "data-id-face": "",- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "user-round" })- }), /* @__PURE__ */ (0, V.jsx)("span", {- "data-id-name": "",- children: "未归属"- })]- })- })]- }, "unowned") : s(ee(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, V.jsxs)(J, {- variant: "secondary",- size: "small",- id: "castMore",- "data-cast-more": "",- trailingIcon: oT,- "aria-expanded": !1,- onClick: () => i(!0),- children: [- "还有 ",- a,- " 位"- ]- }) : null),- s("厂牌", "studio", n.studios),- s("片商", "studio", n.makers)- ].filter(Boolean);- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-item-identity": "",+ return /* @__PURE__ */ (0, V.jsxs)("section", {+ className: j7,+ "aria-label": "数据源",children: [- c.length ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-identity-primary": "",- children: c+ /* @__PURE__ */ (0, V.jsx)("h3", {+ className: "text-title-2-medium text-text-primary",+ children: "数据源"+ }),+ r.error ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ children: W(r.error)}) : null,- s("创作者", "creator", n.creators),- n.series.length ? /* @__PURE__ */ (0, V.jsxs)("section", {- "data-id-group": "series",- children: [/* @__PURE__ */ (0, V.jsx)("h5", {- "data-id-label": "",- children: "系列"- }), /* @__PURE__ */ (0, V.jsx)("div", {- "data-series-rows": "",- children: n.series.map((e) => e.id ? /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-series-link": "",- "data-entity-kind": "series",- "data-entity-name": e.name,- title: e.name,- onClick: () => t.openEntity("series", e.name),- children: [/* @__PURE__ */ (0, V.jsx)(W7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]- }, e.name) : /* @__PURE__ */ (0, V.jsxs)("span", {- "data-series-link": "",- title: e.name,- children: [/* @__PURE__ */ (0, V.jsx)(W7, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]- }, e.name))- })]- }) : null+ e.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "inline-grid w-full gap-2 sm:grid-cols-2",+ children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {+ className: `flex min-w-0 items-center gap-3 ${M7}`,+ children: [+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, V.jsx)(TT, {+ "aria-hidden": !0,+ className: "size-4"+ }) : /* @__PURE__ */ (0, V.jsx)(mT, {+ "aria-hidden": !0,+ className: "size-4"+ })+ }),+ /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 grow flex-col gap-0.5",+ children: [/* @__PURE__ */ (0, V.jsx)("b", {+ className: "min-w-0 text-body-2-medium break-words text-text-primary",+ children: e.profile+ }), /* @__PURE__ */ (0, V.jsx)("small", {+ className: "min-w-0 text-caption-1-regular break-words text-text-secondary",+ children: `${e.browser} · ${e.host} · ${Number(e.visits || 0).toLocaleString()} 条`+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "secondary",+ size: "small",+ "aria-label": `移除 ${e.profile}`,+ iconOnly: !0,+ leadingIcon: hT,+ ...X(r.isPending),+ onClick: () => {+ r.isPending || Te({+ title: "移除口味数据源",+ body: zKe,+ confirmLabel: "移除口味数据源",+ onConfirm: () => r.mutateAsync(e.source_key)+ });+ }+ })+ ]+ }, e.source_key))+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ shell: "plain",+ icon: mT,+ title: "还没有数据源",+ children: MKe+ })]});}-function Jqe({ item: e, write: t, helpers: n, actions: r }) {- let i = Kre(e, n);- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-stage-tags": "",- id: "detailTags",- "data-item-tags": "",- children: [i.map((e) => /* @__PURE__ */ (0, V.jsxs)("span", {- "data-detail-tag": "",- children: [/* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-tag": e.k,- onClick: () => r.openTag(e.k),- children: n.tagLabel(e.k)- }), /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-remove-tag": e.k,- title: "从此视频隐藏该标签",- "aria-label": `删除标签 ${n.tagLabel(e.k)}`,- ...t.busyAttrs(`tag:${e.k}`),- onClick: () => t.removeTag(e),- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "x" })- })]- }, e.k)), /* @__PURE__ */ (0, V.jsx)(Yqe, {- item: e,- write: t,- helpers: n- })]- });-}-function Yqe({ item: e, write: t, helpers: n }) {- let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(-1), h = (0, B.useCallback)(() => {- i.current && De(i.current), c(!1);- }, []);- (0, B.useEffect)(() => {- if (!s) return;- let e = (e) => {- let t = e.target;- !i.current?.contains(t) && t !== r.current && h();- }, t = setTimeout(() => document.addEventListener("pointerdown", e, !0), 0);- return () => {- clearTimeout(t), document.removeEventListener("pointerdown", e, !0);- };- }, [s, h]);- let g = s ? Jre(d, n.tagCandidates(), tw()) : {- recent: [],- results: [],- create: ""- }, _ = [- ...g.recent,- ...g.results,- ...g.create ? [{- k: g.create,- n: -1- }] : []- ], v = (e, n) => {- h(), n || t.addTag(e.k);- }, y = (n) => {- if (!n.nativeEvent.isComposing) {- if (n.key === "Escape") {- n.preventDefault(), h(), r.current?.focus();- return;- }- if (n.key === "ArrowDown" || n.key === "ArrowUp") {- if (n.preventDefault(), !_.length) return;- let e = (p + (n.key === "ArrowDown" ? 1 : -1) + _.length) % _.length;- m(e), i.current?.querySelectorAll("[data-pick]")[e]?.scrollIntoView({ block: "nearest" });- return;- }- if (n.key === "Enter") {- n.preventDefault();- let r = p >= 0 ? _[p] : null;- r ? v(r, r.n !== -1 && ZC(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));- }+function KKe(e) {+ let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, B.useState)("all"), [s, c] = (0, B.useState)("browser"), l = (0, B.useRef)(null), u = TS({+ queryKey: d7(a),+ queryFn: ({ signal: e }) => f7(a, e),+ placeholderData: AS.keepPreviousData+ }), { job: d, running: f, outcome: p, start: m } = OM({+ queryKey: UGe,+ queryFn: ({ signal: e }) => GGe(e),+ start: () => qGe(a),+ idlePollMs: XGe,+ onFinish: (e) => {+ e.status !== "failed" && (z.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));}- }, b = -1, x = (t) => {- b += 1;- let r = b, i = ZC(e, t.k);- return /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-pick": t.k,- "data-active": r === p ? "" : void 0,- "aria-pressed": i,- onClick: () => v(t, i),+ }), h = OS({+ mutationFn: (e) => YGe(e),+ onSuccess: (e) => {+ z.setQueryData(d7("all"), e.dashboard), o("all"), r("已导入口味数据");+ }+ }), g = (e) => {+ let t = e.currentTarget.files?.[0];+ e.currentTarget.value = "", !(!t || h.isPending) && (h.reset(), h.mutate(t));+ }, _ = () => {+ f || m.isPending || (m.reset(), m.mutate());+ }, v = u.data;+ if (!v) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "口味分析读取失败",+ children: u.error ? W(u.error) : "读取口味分析失败"+ }) });+ let y = v.summary || {}, b = v.coverage || {}, x = v.rankings || {}, S = v.storage || {}, C = x.browser_categories || [], w = v.gaps || [], T = b.tagged || 0, E = b.identified || 0, D = m.error ? W(m.error) : h.error ? W(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";+ return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [+ /* @__PURE__ */ (0, V.jsxs)(Kk, {+ selectedKey: s,+ onSelectionChange: (e) => c(String(e)),+ className: "flex flex-col gap-5",children: [- /* @__PURE__ */ (0, V.jsx)(W7, { name: i ? "check" : "tags" }),- /* @__PURE__ */ (0, V.jsx)("span", {- "data-pick-name": "",- children: n.tagLabel(t.k)- }),- /* @__PURE__ */ (0, V.jsx)("span", {- "data-pick-count": "",- children: (t.n || 0).toLocaleString()- })- ]- }, `${r}:${t.k}`);- };- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {- ref: r,- type: "button",- id: "tagPlus",- "data-tag-plus": "",- title: "添加标签",- "aria-label": "添加标签",- "aria-expanded": s,- onClick: () => {- i.current && (ze(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));- },- children: /* @__PURE__ */ (0, V.jsx)(W7, { name: "plus" })- }), /* @__PURE__ */ (0, V.jsxs)("div", {- ref: i,- id: "tagPicker",- "data-tag-picker": "",- role: "dialog",- "aria-label": "添加标签",- hidden: !0,- children: [/* @__PURE__ */ (0, V.jsxs)("label", {- "data-tag-search": "",- children: [/* @__PURE__ */ (0, V.jsx)(W7, { name: "search" }), /* @__PURE__ */ (0, V.jsx)("input", {- ref: a,- id: "tagPickSearch",- maxLength: 80,- placeholder: "搜索或输入新标签",- autoComplete: "off",- value: l,- onChange: (e) => {- u(e.target.value), m(-1), o.current || f(e.target.value);- },- onCompositionStart: () => {- o.current = !0;- },- onCompositionEnd: (e) => {- o.current = !1, f(e.currentTarget.value);- },- onKeyDown: y- })]- }), /* @__PURE__ */ (0, V.jsxs)("div", {- id: "tagPickBody",- "data-tag-body": "",- children: [s && g.recent.length ? /* @__PURE__ */ (0, V.jsxs)("section", {- "data-tag-section": "",- children: [/* @__PURE__ */ (0, V.jsx)("h4", { children: "最近使用" }), /* @__PURE__ */ (0, V.jsx)("div", {- "data-tag-grid": "",- children: g.recent.map(x)- })]- }) : null, s ? /* @__PURE__ */ (0, V.jsxs)("section", {- "data-tag-section": "",- children: [/* @__PURE__ */ (0, V.jsx)("h4", { children: d.trim() ? "搜索结果" : "全部标签" }), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-tag-grid": "",- children: [g.results.map(x), g.create ? (() => {- b += 1;- let e = b;- return /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-pick": g.create,- "data-active": e === p ? "" : void 0,- onClick: () => {- h(), t.addTag(g.create);+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-wrap items-center justify-between gap-3",+ children: [/* @__PURE__ */ (0, V.jsxs)(Zk, {+ "aria-label": "口味证据来源",+ className: $k,+ children: [/* @__PURE__ */ (0, V.jsx)(Jk, {+ id: "browser",+ className: eA,+ children: "浏览器记录"+ }), /* @__PURE__ */ (0, V.jsx)(Jk, {+ id: "peach",+ className: eA,+ children: "Peach 内部"+ })]+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-wrap items-center gap-2",+ children: [+ /* @__PURE__ */ (0, V.jsx)(TM, {+ "aria-label": "分析范围",+ selectedKey: a,+ onSelectionChange: (e) => {+ e !== null && o(String(e));+ },+ children: WGe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {+ id: e,+ children: t+ }, e))+ }),+ /* @__PURE__ */ (0, V.jsx)(WKe, {+ busy: f || m.isPending || h.isPending,+ onRefresh: _,+ onImport: () => l.current?.click()+ }),+ /* @__PURE__ */ (0, V.jsx)("input", {+ ref: l,+ type: "file",+ tabIndex: -1,+ "aria-hidden": !0,+ className: "hidden",+ onChange: g+ })+ ]+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)(UKe, {+ onboarding: i,+ done: !!(y.history_sources || v.updated_at)+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "aria-live": "polite",+ className: "flex flex-col gap-3 empty:hidden",+ children: [+ f ? /* @__PURE__ */ (0, V.jsx)(xM, {+ label: d?.message || "正在读取浏览记录并更新口味分析",+ value: d?.checked,+ total: d?.total+ }) : null,+ h.isPending ? /* @__PURE__ */ (0, V.jsx)(xM, { label: "正在导入历史文件" }) : null,+ D ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ children: D+ }) : null+ ]+ }),+ /* @__PURE__ */ (0, V.jsxs)(Yk, {+ id: "browser",+ className: "flex flex-col gap-5",+ children: [+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: iM,+ children: [+ /* @__PURE__ */ (0, V.jsx)(P7, {+ accent: 0,+ icon: yT,+ term: "浏览记录",+ figure: Number(y.history_visits || 0).toLocaleString(),+ detail: `${y.history_sources || 0} 个数据源 · ${p7(y.range_start)}—${p7(y.range_end)}`+ }),+ /* @__PURE__ */ (0, V.jsx)(P7, {+ accent: 1,+ icon: xT,+ term: "口味维度",+ figure: C.length.toLocaleString(),+ detail: C[0]?.name || "尚无主维度"+ }),+ /* @__PURE__ */ (0, V.jsx)(P7, {+ accent: 2,+ icon: wT,+ term: "浏览候选",+ figure: w.length.toLocaleString()+ }),+ /* @__PURE__ */ (0, V.jsx)(P7, {+ accent: 3,+ icon: mT,+ term: "私有导出",+ figure: Number(S.exports || 0).toLocaleString(),+ detail: pe(S.bytes || 0)+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsxs)("section", {+ className: `${j7} md:flex-row md:gap-6`,+ "aria-label": "浏览器画像",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",+ children: [+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: "浏览器画像"+ }),+ /* @__PURE__ */ (0, V.jsx)(DKe, {+ rows: C,+ label: "主要口味维度"+ }),+ /* @__PURE__ */ (0, V.jsx)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: v.updated_at ? `更新于 ${p7(v.updated_at)}` : "尚未采集浏览记录"+ })+ ]+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex min-w-0 grow flex-col",+ children: C.length ? /* @__PURE__ */ (0, V.jsx)(OKe, {+ rows: C,+ label: "口味维度排名"+ }) : /* @__PURE__ */ (0, V.jsx)(CE, {+ shell: "plain",+ icon: wT,+ title: "暂无口味维度",+ children: PKe+ })+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)(I5, {+ activity: v.activity,+ title: "浏览活跃时间",+ dailyTitle: "每日活跃",+ words: {+ unit: "口味网站访问",+ series: "访问",+ cellUnit: "次访问"},- children: [/* @__PURE__ */ (0, V.jsx)(W7, { name: "plus" }), /* @__PURE__ */ (0, V.jsxs)("span", {- "data-pick-name": "",+ tone: 4,+ empty: "还没有可用于分析的口味网站访问记录。"+ }),+ /* @__PURE__ */ (0, V.jsx)(kKe, { flows: v.creator_flows }),+ /* @__PURE__ */ (0, V.jsx)(I7, {+ label: "浏览器口味维度",+ onSignal: t,+ panels: [+ {+ id: "tags",+ name: "标签",+ props: {+ rows: x.browser_tags || [],+ kind: "tag",+ visual: "none",+ empty: "暂无足够证据"+ }+ },+ {+ id: "creators",+ name: "创作者",+ props: {+ rows: x.browser_creators || [],+ kind: "creator",+ visual: "creator",+ empty: "暂无创作者证据"+ }+ },+ {+ id: "domains",+ name: "常访问网站",+ props: {+ rows: x.domains || [],+ kind: "",+ visual: "domain",+ empty: "暂无网站证据"+ }+ },+ {+ id: "gaps",+ name: "浏览候选",+ props: {+ rows: w,+ kind: "",+ visual: "none",+ empty: FKe+ }+ }+ ]+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsxs)(Yk, {+ id: "peach",+ className: "flex flex-col gap-5",+ children: [+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: iM,+ children: [+ /* @__PURE__ */ (0, V.jsx)(P7, {+ accent: 0,+ icon: _T,+ term: "Peach 看过",+ figure: Number(y.peach_items || 0).toLocaleString(),+ detail: ZGe(y.peach_seconds || 0)+ }),+ /* @__PURE__ */ (0, V.jsx)(P7, {+ accent: 1,+ icon: bae,+ term: "喜欢",+ figure: Number(y.liked || 0).toLocaleString()+ }),+ /* @__PURE__ */ (0, V.jsx)(P7, {+ accent: 2,+ icon: yae,+ term: "不合口味",+ figure: Number(y.disliked || 0).toLocaleString()+ }),+ /* @__PURE__ */ (0, V.jsx)(P7, {+ accent: 3,+ icon: xT,+ term: "有标签",+ figure: T.toLocaleString()+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsxs)("section", {+ className: `${j7} md:flex-row md:gap-6`,+ "aria-label": "Peach 观看",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",children: [- "新建“",- g.create,- "”"+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: "Peach 观看"+ }),+ /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-display-4-medium tabular-nums text-text-primary",+ children: Number(y.peach_items || 0).toLocaleString()+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-body-2-regular text-text-secondary",+ children: "个作品有内部行为证据"+ })]+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex min-w-0 grow flex-col",+ children: [/* @__PURE__ */ (0, V.jsx)(L7, {+ term: "有标签",+ value: T,+ rest: b.untagged || 0+ }), /* @__PURE__ */ (0, V.jsx)(L7, {+ term: "有身份",+ value: E,+ rest: b.unidentified || 0+ })]})]- }, "create");- })() : null]- })]- }) : null]- })]- })] });-}-function Xqe({ item: e }) {- let t = nie(e);- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-item-trace": "",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- "data-trace-metric": "",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- "data-trace-label": "",- children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "离开位置" }), /* @__PURE__ */ (0, V.jsx)("span", {- id: "ratioTxt",- children: "0%"- })]- }), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-trace-bar": "",- children: [/* @__PURE__ */ (0, V.jsx)("u", { id: "watched" }), /* @__PURE__ */ (0, V.jsx)("b", { id: "mark" })]- })]- }), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-trace-metric": "",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- "data-trace-label": "",- children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "真实观看" }), /* @__PURE__ */ (0, V.jsx)("span", {- id: "realTxt",- children: t == null ? "0%" : `${t.toFixed(0)}%`- })]- }), /* @__PURE__ */ (0, V.jsx)("div", {- "data-trace-bar": "",- children: /* @__PURE__ */ (0, V.jsx)("u", {- id: "realBar",- "data-trace-real": "",- style: t == null ? void 0 : { width: `${t.toFixed(1)}%` }+ }),+ /* @__PURE__ */ (0, V.jsx)(I7, {+ label: "Peach 口味维度",+ onSignal: t,+ panels: [+ {+ id: "tags",+ name: "标签",+ props: {+ rows: x.peach_tags || [],+ kind: "tag",+ visual: "none",+ empty: "暂无足够证据"+ }+ },+ {+ id: "creators",+ name: "创作者",+ props: {+ rows: x.peach_creators || [],+ kind: "creator",+ visual: "creator",+ empty: "暂无创作者证据"+ }+ },+ {+ id: "performers",+ name: "女优",+ props: {+ rows: x.peach_performers || [],+ kind: "performer",+ visual: "entity",+ empty: "暂无女优证据"+ }+ }+ ]+ })+ ]})- })]- })]- });+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)(HKe, {+ data: v,+ onSignal: t,+ navigate: n+ }),+ /* @__PURE__ */ (0, V.jsx)(GKe, {+ sources: v.sources || [],+ window: a,+ toast: r+ })+ ] });}-function Zqe({ item: e, open: t, write: n }) {- let [r, i] = (0, B.useState)(e.like_reason || ""), a = (0, B.useRef)(null);- (0, B.useEffect)(() => {- t && a.current?.focus();- }, [t]), (0, B.useEffect)(() => {- i(e.like_reason || "");- }, [e.like_reason]);- let o = n.busy.has("preference");+function L7({ term: e, value: t, rest: n }) {+ let r = Math.max(t + n, 1);return /* @__PURE__ */ (0, V.jsxs)("div", {- id: "preferencePanel",- "data-item-preference": "",- hidden: !t,- children: [/* @__PURE__ */ (0, V.jsx)("textarea", {- ref: a,- id: "likeReason",- maxLength: 2e3,- placeholder: "为什么喜欢?",- value: r,- onChange: (e) => i(e.target.value)- }), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-preference-foot": "",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- id: "preferenceState",- "aria-live": "polite",- children: n.preferenceState- }), /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- className: "geist-button primary",- id: "savePreference",- "data-save-preference": "",- title: "提交喜爱理由",- "aria-label": "提交喜爱理由",- ...n.busyAttrs("preference"),- onClick: () => n.preference({ reason: r }),- dangerouslySetInnerHTML: { __html: o ? `${Ke("正在提交喜爱理由")}<span>提交中…</span>` : "<span>提交</span>" }+ className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",+ children: [/* @__PURE__ */ (0, V.jsxs)("p", {+ className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e }), /* @__PURE__ */ (0, V.jsxs)("b", {+ className: "tabular-nums",+ children: [t.toLocaleString(), /* @__PURE__ */ (0, V.jsx)("span", {+ className: "ml-1.5 text-caption-1-regular text-text-secondary",+ children: `${n} 项待补`+ })]})]+ }), /* @__PURE__ */ (0, V.jsx)(DE, {+ label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,+ value: t,+ max: r})]});}-function Qqe(e) {- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = wS({- queryKey: zre(t.id, n),- queryFn: async ({ signal: e }) => (await G(Vre(t.id, n), e)).items || []- }), [o] = (0, B.useState)(() => r.relatedSkeletonHtml()), s = (0, B.useCallback)((e) => {- e && (ke(e), r.wireDrag(e));- }, [r]);- return a.data && !a.data.length ? null : /* @__PURE__ */ (0, V.jsxs)("div", {- "data-item-related": "",- children: [/* @__PURE__ */ (0, V.jsx)("h3", {- className: "font-semibold",- children: "接着看"- }), /* @__PURE__ */ (0, V.jsx)("div", {- ref: s,- id: "nrow",- "data-related-row": "",- children: a.data ? /* @__PURE__ */ (0, V.jsx)(CA, {- mode: "items",- variant: "next",- items: a.data,- helpers: i.helpers,- actions: i.actions,- layout: e.layout,- selectMode: e.selectMode,- selected: e.selected,- seekSeconds: e.seekSeconds,- revision: 0,- wireDrag: r.wireDrag,- skeletonHtml: () => ""- }) : a.isError ? null : /* @__PURE__ */ (0, V.jsx)(G7, { html: o })- })]- });+//#endregion+//#region src/react/router/managed-routes.tsx+function qKe(e, t, n) {+ if (e === "duplicates") {+ n("/duplicates");+ return;+ }+ let r = t.managePath(e);+ z7(r) ? n(r) : t.openManage(e);}-function $qe(e, t, n) {- let r = e.id, i = PC(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) => {- let t = typeof e == "function" ? e(f()) : {- ...f(),- ...e- };- z.setQueryData(i, t);- let n = {- feedback: t.feedback,- disposal: t.disposal,- watch_later: t.watch_later,- rating: t.rating,- o_count: t.o_count- };- return MC(r, n), t;- }, m = (e, t) => K(e, {- id: r,- ...t- }), h = DS({- mutationFn: ({ run: e }) => e(),- onError: (e, { action: n }) => t.failure(n, e),- onSettled: (e, t, { name: n }) => d(n, !1)- }), g = (e, t, n) => {- a.has(e) || (d(e, !0), h.mutate({- name: e,- action: t,- run: n- }));- }, _ = async (e, t) => {- let n = await m(LC, t === void 0 ? { kind: e } : {- kind: e,- value: t- });- return p(e === "rate" ? { rating: n.rating ?? null } : {- feedback: n.feedback ?? void 0,- disposal: n.disposal ?? void 0,- o_count: n.o_count- }), n;- };- return {- busy: a,- sourceState: s,- setSourceState: c,- preferenceState: l,- busyAttrs: (e) => a.has(e) ? {- "aria-busy": !0,- "aria-disabled": !0- } : {},- rate: (e) => g(`rate:${e}`, "评分", async () => {- let n = f().rating || 0, r = Gre(n, e);- await _("rate", r), t.toast(r ? `已评 ${XC(r)} 星` : "已取消评分", { undo: async () => {- await _("rate", n);- } });- }),- feedback: (e) => g(e, "操作", async () => {- let n = { feedback: f().feedback || null }, r = await _(e);- t.toast(rw(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(zC, {});- p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {- p({ watch_later: (await m(zC, {})).watch_later });- } });- }),- quality: () => g("quality", "更新版本需求", async () => {- let e = {- wanted: !!f().better_version,- reason: f().better_version_reason || ""- }, n = (e) => p({- better_version: e.better_version,- better_version_reason: e.better_version_reason || ""- }), r = await m(BC, { wanted: !e.wanted });- n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {- n(await m(BC, e));- } });- }),- preference: ({ liked: e, reason: n }) => {- g(e === void 0 ? "preference" : "like", "保存喜欢偏好", async () => {- let r = {- liked: !!f().liked,- reason: f().like_reason || ""- }, i = n ?? r.reason, a = e ?? (r.liked || i.trim().length > 0), o = (e) => p({- liked: e.liked,- like_reason: e.like_reason || ""- });- u("保存中…");- try {- o(await m(VC, {- liked: a,- reason: i- }));- } catch (e) {- throw u("保存失败 · 请重试"), e;- }- u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);- let s = f();- t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {- o(await m(VC, r));- } });- });- },- removeTag: (e) => g(`tag:${e.k}`, "删除标签", async () => {- if (!(await m("/api/item-tag", {- operation: "remove",- tag: e.k- })).ok) throw Error("标签未删除");- p((t) => QC(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {- await m(RC, {- operation: "add",- tag: e.k- }), p((t) => $C(t, e));- } });- }),- addTag: (e) => {- let r = e.trim();- r && g(`add:${r}`, "添加标签", async () => {- (await m("/api/item-tag", {- operation: "add",- tag: r- })).ok && (p((e) => $C(e, {- k: r,- cat: "general"- })), qre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {- await m(RC, {- operation: "remove",- tag: r- }), p((e) => QC(e, r));- } }));- });- }- };+var R7 = {+ "/stats": {+ prefetch: (e, t) => LSe(t),+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(SGe, {+ tagLabel: ot,+ onTag: t.openTag,+ configurable: e.configurable,+ openMediaSettings: () => {+ t.requestConfigurationSection("媒体"), n("/configuration");+ }+ })+ },+ "/taste": {+ prefetch: (e, t) => KGe("all", t),+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(KKe, {+ onSignal: t.openTasteSignal,+ navigate: n,+ toast: (e) => t.receipt(e),+ onboarding: e.onboarding+ })+ },+ "/review": {+ prefetch: (e, t) => mue(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Bve, {+ ...e,+ route: t.routeReview,+ openItem: t.openItem,+ openEntity: t.openEntity,+ revealSource: t.revealSource,+ toast: (e) => t.receipt(e)+ })+ },+ "/data-cleanup": {+ prefetch: (e, t) => tde(t),+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(gfe, {+ failure: t.failure,+ open: (e) => qKe(e, t, n),+ toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)+ })+ },+ "/duplicates": {+ prefetch: (e, t) => kle(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(fme, {+ openItem: t.openItem,+ failure: t.failure,+ toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})+ })+ },+ "/quality-goals": {+ prefetch: (e, t) => qle(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(wve, {+ openItem: t.openItem,+ javTitleHtml: at,+ javDisplayName: it,+ toast: (e) => t.receipt(e),+ srcBadge: t.srcBadge+ })+ },+ "/scraping": {+ prefetch: (e, t) => qve(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(eye, { toast: (e) => t.toast(e) })+ },+ "/configuration": {+ prefetch: (e, t) => gR(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(fbe, {+ receipt: (e) => t.receipt(e),+ reopenTutorial: t.reopenTutorial,+ section: e.section ?? ""+ })+ },+ "/diagnostics": {+ prefetch: (e, t) => pme(t),+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(_me, {+ navigate: n,+ openItem: t.openItem,+ receipt: (e) => t.receipt(e),+ configure: (e) => {+ t.requestConfigurationSection(e), n("/configuration");+ }+ })+ },+ "/activity": {+ prefetch: (e, t) => joe(t),+ page: () => /* @__PURE__ */ (0, V.jsx)(Joe, {})+ },+ "/follow-manage": {+ prefetch: (e, t) => Yme(t, e.tab),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(T_e, {+ ...e,+ route: t.routeFollowManage,+ savePreference: t.saveFollowPreference,+ toast: (e) => t.receipt(e),+ openFollow: t.openFollow+ })+ }+}, z7 = (e) => Object.hasOwn(R7, e), B7 = {+ "/playlists": {+ prefetch: (e, t) => uve(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Sve, {+ revision: e.revision,+ openPlaylist: t.openPlaylist,+ openEntity: t.openEntity,+ canFlip: t.canFlip,+ toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})+ })+ },+ "/follow": {+ prefetch: (e, t) => rhe(e, t),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(Dhe, { ...e })+ }+}, V7 = (e) => Object.hasOwn(B7, e), H7 = {+ prefetch: (e, t) => Lfe(e, t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(V_e, {+ ...e,+ route: t.routeIndex,+ savePreference: t.savePeopleLayout,+ exitSelectMode: t.exitSelectMode,+ personAvatar: t.personAvatar,+ authorAvatar: t.authorAvatar,+ tagLabel: ot,+ openEntity: t.openEntity,+ showTags: t.showIndexTags,+ openFollowAuthor: t.openFollowAuthor,+ openFollowTag: t.openFollowTag+ })+}, U7 = {+ "/performers": H7,+ "/creators": H7,+ "/studios": H7,+ "/agencies": H7,+ "/tags": H7+}, W7 = {+ prefetch: (e) => Efe(e),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(rme, { ...e })+}, G7 = {+ "/performers/*": W7,+ "/studios/*": W7,+ "/creators/*": W7,+ "/series/*": W7,+ "/agencies/*": W7+}, K7 = {+ "/": {+ prefetch: (e, t) => jre(e, t),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(wA, { ...e })+ },+ "/junk-files": {+ prefetch: async () => {},+ page: (e) => /* @__PURE__ */ (0, V.jsx)(nve, { ...e })+ }+}, q7 = (e) => Object.hasOwn(K7, e), JKe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(cve, { ...e }) : /* @__PURE__ */ (0, V.jsx)(CM, { ...e }), J7 = {+ "catalog-filter": {+ prefetch: async () => {},+ page: (e) => /* @__PURE__ */ (0, V.jsx)($ce, { ...e })+ },+ "feed-new": {+ prefetch: (e) => xfe(e),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(vme, { ...e })+ },+ "library-processing": {+ prefetch: (e, t) => RA(t),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(JKe, { ...e })+ },+ search: {+ prefetch: async () => {},+ page: (e) => /* @__PURE__ */ (0, V.jsx)(aye, { ...e })+ }+}, Y7 = (e) => Object.hasOwn(J7, e), X7 = {+ "batch-dock": {+ prefetch: async () => {},+ page: () => /* @__PURE__ */ (0, V.jsx)(Ane, {})+ },+ "glow-picker": {+ prefetch: async () => {},+ page: () => /* @__PURE__ */ (0, V.jsx)(Nne, {})+ },+ "manage-header": {+ prefetch: async () => {},+ page: () => /* @__PURE__ */ (0, V.jsx)(Kie, {})+ },+ immerse: {+ prefetch: async () => {},+ page: () => /* @__PURE__ */ (0, V.jsx)(Fie, {})+ },+ "settings-panel": {+ prefetch: async () => {},+ page: () => /* @__PURE__ */ (0, V.jsx)(Lbe, {})+ },+ sidebar: {+ prefetch: async () => {},+ page: () => /* @__PURE__ */ (0, V.jsx)(exe, {})+ },+ stage: {+ prefetch: async () => {},+ page: () => /* @__PURE__ */ (0, V.jsx)(FSe, {})+ }+}, Z7 = (e) => Object.hasOwn(X7, e), YKe = [+ "/",+ "/unseen",+ "/watch-later",+ "/flagged",+ "/trash",+ "/junk-files"+], XKe = [+ ...Object.keys(R7),+ ...Object.keys(B7),+ ...Object.keys(U7),+ ...Object.keys(G7),+ ...YKe+], Q7 = (e) => z7(e) || V7(e) || Object.hasOwn(U7, e) || Object.hasOwn(G7, e) || q7(e) || Y7(e) || Z7(e);+function $7(e) {+ return z7(e) ? R7[e] : V7(e) ? B7[e] : q7(e) ? K7[e] : Y7(e) ? J7[e] : Z7(e) ? X7[e] : Object.hasOwn(U7, e) ? U7[e] : G7[e];+}+function ZKe(e, t, n) {+ return Q7(e) ? $7(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));+}+function QKe(e, t, n, r) {+ return $7(e).page(t, n, r);}//#endregion-//#region src/react/stage/stage-player.ts-var q7 = null, J7 = null, Y7 = null, X7 = null, Z7 = null, Q7 = !1, $7 = 0, e9 = null, t9 = () => !1, n9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;-function eJe(e, t) {- q7 = e, t9 = () => t.isOpen(), e9 = () => t.requestClose(), Xne({- ...e.player,- stage: () => document.getElementById("stage")- }), Zne({- inMiniplayer: (e) => J7?.player === e,- kind: (e) => J7?.player === e ? J7.kind : Y7?.kind ?? X7?.kind ?? "item",- expand: () => x9(),- toMiniplayer: () => S9()- }), r9 || (r9 = !0, addEventListener("pagehide", () => dC()));-}-var r9 = !1;-function i9() {- if (!q7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");- return q7;-}-function a9(e) {- X7 = e;-}-var tJe = () => X7;-function o9(e, t) {- let { kind: n, item: r, media: i = null } = t, a = n9(n, r.id, i?.index ?? null);- if (J7 && J7.key === a) return nJe(e, J7);- J7 && b9();- let o = {- player: null,- kind: n,- item: r,- mediaIndex: i?.index ?? null,- key: a- };- Y7 = 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 = TC(s, {- kind: n,- item: r,- media: i,- autoplay: t.autoplay,- resume: t.resume ?? null,- onPlayer: (e) => {- Y7 === o && (o.player = e);- },- handedOff: (e) => J7?.player === e- });- return () => {- let e = !!o.player && J7?.player === o.player;- Y7 === o && (Y7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), dC());- };+//#region node_modules/react-router/dist/production/lib/router/url.js+var $Ke = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, eqe = /^[\\/]{2}/;+function tqe(e, t) {+ return t + e.replace(/\\/g, "/");}-function nJe(e, t) {- let { player: n } = t;- v9(t), J7 = null, y9(), n.el().classList.remove("vjs-peach-mini"), CC(e), e.append(n.el()), BS(n);- let r = {- player: n,- kind: t.kind,- item: t.item,- mediaIndex: t.mediaIndex,- key: t.key- };- Y7 = r;- let i = wC(n, e);- return VS(n), () => {- Y7 === r && (Y7 = null), i(), J7?.player !== n && (zS() === n && BS(null), rC(n), dC());- };+//#endregion+//#region node_modules/react-router/dist/production/lib/router/history.js+function e9(e, t) {+ if (e === !1 || e == null) throw Error(t);}-var s9 = () => {- let e = Y7?.player;- return e && !e.isDisposed() ? e : null;-};-function rJe(e) {- let t = Q7;- Q7 = !1, J7?.pending && b9();- let n = Y7, r = n?.player, i = X7;- if (!n || !r || r.isDisposed() || !i || !Z7) return;- let a = i9().player.settings();- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && sJe({- player: r,- kind: n.kind,- item: n.item,- mediaIndex: n.mediaIndex,- key: n.key- }, i);+function t9(e, t) {+ if (!e) {+ typeof console < "u" && console.warn(t);+ try {+ throw Error(t);+ } catch {}+ }}-function c9(e, t) {- if (Q7 = !1, J7) {- if (J7.kind === e && J7.item.id === t) {- J7.pending = !0, y9();- return;- }- b9();+function nqe({ pathname: e = "/", search: t = "", hash: n = "" }) {+ return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;+}+function n9(e) {+ let t = {};+ if (e) {+ let n = e.indexOf("#");+ n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));+ let r = e.indexOf("?");+ r >= 0 && (t.search = e.substring(r), e = e.substring(0, r)), e && (t.pathname = e);}+ return t;}-function l9(e) {- Z7 = e, Z7 && g9();+//#endregion+//#region node_modules/react-router/dist/production/lib/router/utils.js+function rqe(e, t, n = "/") {+ return iqe(e, t, n, !1);}-var u9 = () => !!J7 && !J7.pending && !J7.player.isDisposed();-function iJe() {- return u9() ? Z7?.frame.querySelector("video") ?? null : null;+function iqe(e, t, n, r, i) {+ let a = l9((typeof t == "string" ? n9(t) : t).pathname || "/", n);+ if (a == null) return null;+ let o = i ?? aqe(e), s = null, c = vqe(a);+ for (let e = 0; s == null && e < o.length; ++e) s = _qe(o[e], c, r);+ return s;}-function aJe() {- return t9() ? document.getElementById("stage")?.querySelector("video") ?? null : iJe();+function aqe(e) {+ let t = r9(e);+ return oqe(t), t;}-function d9(e) {- Z7 && (Z7.title.textContent = e.title || "", Z7.sub.textContent = e.sub || "", Z7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));+function r9(e, t = [], n = [], r = "", i = !1) {+ let a = (e, a, o = i, s) => {+ let c = {+ relativePath: s === void 0 ? e.path || "" : s,+ caseSensitive: e.caseSensitive === !0,+ childrenIndex: a,+ route: e+ };+ if (c.relativePath.startsWith("/")) {+ if (!c.relativePath.startsWith(r) && o) return;+ e9(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);+ }+ let l = p9([r, c.relativePath]), u = n.concat(c);+ e.children && e.children.length > 0 && (e9(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), r9(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({+ path: l,+ score: hqe(l, e.index),+ routesMeta: u.map((e, t) => {+ let [n, r] = c9(e.relativePath, e.caseSensitive, t === u.length - 1);+ return {+ ...e,+ matcher: n,+ compiledParams: r+ };+ })+ });+ };+ return e.forEach((e, t) => {+ if (e.path === "" || !e.path?.includes("?")) a(e, t);+ else for (let n of i9(e.path)) a(e, t, !0, n);+ }), t;}-function f9(e = J7?.item) {- if (!Z7) return;- let t = Z7.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;- Z7.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);+function i9(e) {+ let t = e.split("/");+ if (t.length === 0) return [];+ let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");+ if (r.length === 0) return i ? [a, ""] : [a];+ let o = i9(r.join("/")), s = [];+ return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);}-function p9() {- let e = J7?.player;- if (!e || e.isDisposed() || !Z7) return;- let t = e.paused();- Z7.play.setAttribute("aria-label", t ? "播放" : "暂停"), Z7.play.querySelector("[data-icon-swap]") || (Z7.play.innerHTML = je("player-pause", "player-play", t ? "b" : "a")), Ge(Z7.play, t ? "b" : "a");+function oqe(e) {+ e.sort((e, t) => e.score === t.score ? gqe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);}-function m9() {- let e = J7?.player;- if (!e || e.isDisposed() || !Z7) return;- let t = ve(J7?.item.duration) || ve(e.duration());- Z7.time.textContent = `${de(e.currentTime())} / ${t ? de(t) : "0:00"}`;+var sqe = /^:[\w-]+$/, cqe = /^:[\w-]+/, lqe = 3.5, uqe = 3, dqe = 2, fqe = 1, pqe = 10, mqe = -2, a9 = (e) => e === "*";+function hqe(e, t) {+ let n = e.split("/"), r = n.length;+ return n.some(a9) && (r += mqe), t && (r += dqe), n.filter((e) => !a9(e)).reduce((e, t) => e + (sqe.test(t) ? uqe : cqe.test(t) ? lqe : t === "" ? fqe : pqe), r);}-var h9 = () => Math.max(1, Number(i9().player.settings().seekSeconds) || 10);-function g9() {- if (!Z7 || !q7) return;- let e = h9();- for (let [t, n] of [[Z7.back, `后退 ${e} 秒`], [Z7.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;+function gqe(e, t) {+ return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;}-function _9(e) {- let t = (t, n) => {- e.player.on(t, n), e.off.push(() => {- try {- e.player.off(t, n);- } catch {}- });- };- t([- "play",- "pause",- "ended"- ], p9), t([- "timeupdate",- "durationchange",- "loadedmetadata"- ], m9), t("loadedmetadata", () => f9()), p9(), m9(), f9(), g9();+function _qe(e, t, n = !1) {+ let { routesMeta: r } = e, i = {}, a = "/", o = [];+ for (let e = 0; e < r.length; ++e) {+ let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {+ path: s.relativePath,+ caseSensitive: s.caseSensitive,+ end: c+ }, d = s.matcher && s.compiledParams ? s9(u, l, s.matcher, s.compiledParams) : o9(u, l), f = s.route;+ if (!d && c && n && !r[r.length - 1].route.index && (d = o9({+ path: s.relativePath,+ caseSensitive: s.caseSensitive,+ end: !1+ }, l)), !d) return null;+ Object.assign(i, d.params), o.push({+ params: i,+ pathname: p9([a, d.pathname]),+ pathnameBase: Cqe(p9([a, d.pathnameBase])),+ route: f+ }), d.pathnameBase !== "/" && (a = p9([a, d.pathnameBase]));+ }+ return o;}-function v9(e) {- e.off.forEach((e) => e()), e.off = [];+function o9(e, t) {+ typeof e == "string" && (e = {+ path: e,+ caseSensitive: !1,+ end: !0+ });+ let [n, r] = c9(e.path, e.caseSensitive, e.end);+ return s9(e, t, n, r);}-function oJe() {- let e = Z7?.root;- if (!e) return;- let t = e.hidden;- if (e.hidden = !1, !t) return;- e.setAttribute("data-miniplayer-enter", "");- let n = () => e.removeAttribute("data-miniplayer-enter");- e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);+function s9(e, t, n, r) {+ let i = t.match(n);+ if (!i) return null;+ let a = i[0], o = m9(a, 1), s = i.slice(1);+ return {+ params: r.reduce((e, { paramName: t, isOptional: n }, r) => {+ if (t === "*") {+ let e = s[r] || "";+ o = m9(a.slice(0, a.length - e.length), 1);+ }+ let i = s[r];+ return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;+ }, {}),+ pathname: a,+ pathnameBase: o,+ pattern: e+ };}-function y9() {- let e = Z7?.root;- if (e) {- e.hidden = !0;- for (let t of [- "data-miniplayer-drag",- "data-miniplayer-snap",- "data-miniplayer-enter"- ]) e.removeAttribute(t);- e.style.transform = "";+function c9(e, t = !1, n = !0) {+ t9(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);+ let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {+ if (r.push({+ paramName: t,+ isOptional: n != null+ }), n) {+ let t = a.charAt(i + e.length);+ return t && t !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";+ }+ return "/([^\\/]+)";+ }).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");+ return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];+}+function vqe(e) {+ try {+ return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");+ } catch (t) {+ return t9(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;}}-function sJe(e, t) {- if (!Z7) return;- let n = {- ...e,- meta: t,- off: [],- pending: !1+function l9(e, t) {+ if (t === "/") return e;+ if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;+ let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);+ return r && r !== "/" ? null : e.slice(n) || "/";+}+function yqe(e, t = "/") {+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? n9(e) : e, a;+ return n ? (n = f9(n), a = n.startsWith("/") || n.startsWith("\\") ? u9(n.substring(1), "/") : u9(n, t)) : a = t, {+ pathname: a,+ search: wqe(r),+ hash: Tqe(i)};- J7 = n, $7++, e.player.el().classList.add("vjs-peach-mini"), Z7.frame.prepend(e.player.el()), d9(t), _9(n), oJe(), VS(e.player);}-function b9() {- let e = J7;- e && v9(e), J7 = null, $7++;- let t = e?.player ?? null;- t && zS() === t && BS(null), rC(t), t && dC(), Z7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), LS(), y9();+function u9(e, t) {+ let n = m9(t).split("/");+ return e.split("/").forEach((e) => {+ e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);+ }), n.length > 1 ? n.join("/") : "/";}-function x9() {- if (!u9() || !J7) return;- let { kind: e, item: t, mediaIndex: n } = J7;- i9().expand(e, t.id, n);+function d9(e, t, n, r) {+ return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;}-function S9() {- if (u9() && !t9()) {- x9();- return;- }- t9() && s9() && e9 && (Q7 = !0, e9());+function bqe(e) {+ return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);}-function cJe() {- let e = J7?.player;- !e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());+function xqe(e) {+ let t = bqe(e);+ return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);}-function C9(e) {- let t = J7?.player;- if (!t || t.isDisposed()) return;- let n = ve(t.duration()) || ve(J7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + h9() * e);- t.currentTime(n ? Math.min(n, r) : r);+function Sqe(e, t, n, r = !1) {+ let i;+ typeof e == "string" ? i = n9(e) : (i = { ...e }, e9(!i.pathname || !i.pathname.includes("?"), d9("?", "pathname", "search", i)), e9(!i.pathname || !i.pathname.includes("#"), d9("#", "pathname", "hash", i)), e9(!i.search || !i.search.includes("#"), d9("#", "search", "hash", i)));+ let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;+ if (o == null) s = n;+ else {+ let e = t.length - 1;+ if (!r && o.startsWith("..")) {+ let t = o.split("/");+ for (; t[0] === "..";) t.shift(), --e;+ i.pathname = t.join("/");+ }+ s = e >= 0 ? t[e] : "/";+ }+ let c = yqe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");+ return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;}-function w9(e) {- return !(!u9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || i9().sourceOffline(String(e.location ?? "")));+var f9 = (e) => e.replace(/[\\/]{2,}/g, "/"), p9 = (e) => f9(e.join("/"));+function m9(e, t = 0) {+ let n = e.length;+ for (; n > t && e.charCodeAt(n - 1) === 47;) n--;+ return n === e.length ? e : e.slice(0, n);}-async function lJe(e) {- if (!u9() || !J7 || !Z7) return;- let t = ++$7, n = await ce(`/api/item?id=${e}`).catch(() => null);- if (t !== $7 || !u9() || !J7 || !Z7 || !n || n.error) return;- if (!w9(n)) {- i9().openItem(e);- return;+var Cqe = (e) => m9(e).replace(/^\/*/, "/"), wqe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Tqe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Eqe = class {+ status;+ statusText;+ data;+ error;+ internal;+ constructor(e, t, n, r = !1) {+ this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;}- let r = J7;- v9(r), zS() === r.player && BS(null), rC(r.player), dC(), Z7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());- let i = document.createElement("video");- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", Z7.frame.prepend(i);- let a = {- kind: "item",- item: n,- title: String(n.title || n.name || ""),- sub: String(n.performers?.[0] || n.creator || "未归属")- };- d9(a), TC(i, {- kind: "item",- item: n,- autoplay: !0,- chrome: !1,- onPlayer: (r) => {- if (t !== $7) {- r && zS() === r && BS(null), rC(r);- return;- }- if (!r) {- b9(), i9().openItem(e);- return;- }- r.el().classList.add("vjs-peach-mini");- let i = {- player: r,- kind: "item",- item: n,- mediaIndex: null,- key: n9("item", n.id, null),- meta: a,- off: [],- pending: !1- };- J7 = i, _9(i);- }- }), f9(n);+};+function Dqe(e) {+ return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;}-//#endregion-//#region src/react/stage/miniplayer.tsx-var T9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })-}), uJe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, E9 = (e) => (t) => {- t.stopPropagation(), e();-}, dJe = (0, B.memo)(function() {- let e = (0, B.useRef)(null), t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)(null);- return (0, B.useLayoutEffect)(() => (l9({- root: e.current,- frame: n.current,- play: r.current,- time: i.current,- back: a.current,- ahead: o.current,- title: s.current,- sub: c.current,- info: l.current- }), () => l9(null)), []), (0, B.useEffect)(() => pJe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {- ref: e,- "data-miniplayer": "",- id: "miniplayer",- "data-corner": "br",- "aria-label": "小窗播放",- hidden: !0,- children: /* @__PURE__ */ (0, V.jsxs)("div", {- ref: t,- "data-miniplayer-card": "",- id: "miniplayerCard",- children: [/* @__PURE__ */ (0, V.jsx)("div", {- ref: n,- "data-miniplayer-frame": "",- id: "miniplayerFrame",- children: /* @__PURE__ */ (0, V.jsxs)("div", {- "data-miniplayer-scrim": "",- children: [- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-miniplayer-button": "expand",- id: "miniplayerExpand",- "aria-label": "展开到详情",- "aria-keyshortcuts": "i",- onClick: E9(x9),- children: /* @__PURE__ */ (0, V.jsx)(T9, { name: "maximize-2" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-miniplayer-button": "close",- id: "miniplayerClose",- "aria-label": "关闭小窗",- onClick: E9(b9),- children: /* @__PURE__ */ (0, V.jsx)(T9, { name: "x" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- ref: a,- type: "button",- "data-miniplayer-seek": "",- id: "miniplayerBack",- onClick: E9(() => C9(-1)),- children: /* @__PURE__ */ (0, V.jsx)(T9, { name: "rotate-ccw" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- ref: r,- type: "button",- "data-miniplayer-play": "",- id: "miniplayerPlay",- "aria-label": "暂停",- "aria-keyshortcuts": "k",- onClick: E9(cJe),- dangerouslySetInnerHTML: uJe- }),- /* @__PURE__ */ (0, V.jsx)("button", {- ref: o,- type: "button",- "data-miniplayer-seek": "",- id: "miniplayerAhead",- onClick: E9(() => C9(1)),- children: /* @__PURE__ */ (0, V.jsx)(T9, { name: "rotate-cw" })- }),- /* @__PURE__ */ (0, V.jsx)("span", {- ref: i,- className: "mono",- "data-miniplayer-time": "",- id: "miniplayerTime",- children: "0:00 / 0:00"- })- ]- })- }), /* @__PURE__ */ (0, V.jsxs)("button", {- ref: l,- type: "button",- "data-miniplayer-info": "",- id: "miniplayerInfo",- "aria-label": "展开到详情",- onClick: () => x9(),- children: [/* @__PURE__ */ (0, V.jsx)("span", {- ref: s,- "data-miniplayer-title": "",- id: "miniplayerTitle"- }), /* @__PURE__ */ (0, V.jsx)("span", {- ref: c,- "data-miniplayer-sub": "",- id: "miniplayerSub"- })]- })]- })- });-});-function fJe(e, t, n) {- let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {- left: r.left - t,- top: r.top - n- }, s = {- left: i.endsWith("l") ? 16 : innerWidth - 16 - r.width,- top: i.startsWith("t") ? a + 16 : innerHeight - 16 - r.height- };- e.removeAttribute("data-miniplayer-drag");- let c = () => {- e.removeAttribute("data-miniplayer-snap"), e.style.transition = "none", e.dataset.corner = i, e.style.transform = "", e.getBoundingClientRect(), e.style.transition = "";- };- if (matchMedia("(prefers-reduced-motion: reduce)").matches) {- c();- return;- }- e.setAttribute("data-miniplayer-snap", ""), e.style.transform = `translate(${s.left - o.left}px,${s.top - o.top}px)`;- let l = !1, u = () => {- l || (l = !0, e.removeEventListener("transitionend", u), c());- };- e.addEventListener("transitionend", u), setTimeout(u, 600);+function Oqe(e) {+ return p9(e.map((e) => e.route.path).filter(Boolean)) || "/";}-function pJe(e, t) {- let n = null, r = (e) => {- if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {- n = {- id: e.pointerId,- x: e.clientX,- y: e.clientY,- dx: 0,- dy: 0,- moved: !1- };- try {- t.setPointerCapture(e.pointerId);- } catch {}- }- }, i = (t) => {- !n || t.pointerId !== n.id || (n.dx = t.clientX - n.x, n.dy = t.clientY - n.y, !(!n.moved && Math.hypot(n.dx, n.dy) < 4) && (n.moved || (n.moved = !0, e.setAttribute("data-miniplayer-drag", ""), e.removeAttribute("data-miniplayer-snap")), e.style.transform = `translate(${n.dx}px,${n.dy}px)`));- }, a = (r) => {- if (!n || r.pointerId !== n.id) return;- let i = n;- n = null;- try {- t.releasePointerCapture(r.pointerId);- } catch {}- i.moved && (e.dataset.dragged = "1", setTimeout(() => {- delete e.dataset.dragged;- }, 0), fJe(e, i.dx, i.dy));- }, o = (t) => {- e.dataset.dragged && (t.stopPropagation(), t.preventDefault());- }, s = (e) => {- n && e.preventDefault();+var h9 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;+function kqe(e, t) {+ let n = e;+ if (typeof n != "string" || !$Ke.test(n)) return {+ absoluteURL: void 0,+ isExternal: !1,+ to: n};- return t.addEventListener("pointerdown", r), t.addEventListener("mousedown", s), t.addEventListener("pointermove", i), t.addEventListener("pointerup", a), t.addEventListener("pointercancel", a), t.addEventListener("click", o, !0), () => {- t.removeEventListener("pointerdown", r), t.removeEventListener("mousedown", s), t.removeEventListener("pointermove", i), t.removeEventListener("pointerup", a), t.removeEventListener("pointercancel", a), t.removeEventListener("click", o, !0);+ let r = n, i = !1;+ if (h9) try {+ let e = new URL(window.location.href), r = eqe.test(n) ? new URL(tqe(n, e.protocol)) : new URL(n), a = l9(r.pathname, t);+ r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;+ } catch {+ t9(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);+ }+ return {+ absoluteURL: r,+ isExternal: i,+ to: n};}//#endregion-//#region src/react/stage/stage.tsx-var D9 = null, O9 = null, k9 = null, A9 = null, j9 = 0, M9 = null, N9 = !1, P9 = !1, F9 = () => {- let e = document.getElementById("stage");- return e instanceof HTMLDialogElement ? e : null;-};-function I9() {- if (!D9) throw Error("舞台还没有接上宿主(configureStage)");- return D9;+//#region node_modules/react-router/dist/production/lib/router/navigation.js+var g9 = new URL("http://localhost");+function _9(e) {+ if (e.createURL) return e.createURL("/");+ try {+ return new URL(e.createHref("/"), g9);+ } catch {+ return g9;+ }}-function mJe() {- return (!O9 || !k9?.isConnected) && (O9?.unmount(), k9 = document.createElement("div"), k9.dataset.stageHost = "", document.body.append(k9), O9 = (0, DN.createRoot)(k9)), O9;+function v9(e, t) {+ return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);}-function L9() {- let e = mJe();- (0, $f.flushSync)(() => e.render(/* @__PURE__ */ (0, V.jsx)(S7, { children: /* @__PURE__ */ (0, V.jsx)(hJe, { view: A9 }) })));+function Aqe(e, t) {+ if (e.startsWith("//")) return !0;+ let n = t.protocol.toLowerCase();+ return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;}-function hJe({ view: e }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)(gJe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, V.jsx)(dJe, {})] });+function y9(e, t, n, r) {+ let i = null;+ try {+ i = e == null ? null : new URL(e, n);+ } catch {}+ let a = new URL(t, n), o = i != null && !v9(i, n), s = !v9(a, n);+ if (r === "reject") {+ if (o || s) throw Error("External navigation is not allowed");+ } else if (s && (i == null || !Aqe(e, i) || !v9(i, a))) throw Error("External navigation is not allowed");}-var R9 = () => /* @__PURE__ */ (0, V.jsx)("div", {- "data-skeleton": "detail",- role: "status",- "aria-label": "正在读取作品详情",- dangerouslySetInnerHTML: { __html: iqe() }+//#endregion+//#region node_modules/react-router/dist/production/lib/router/router.js+var b9 = [+ "POST",+ "PUT",+ "PATCH",+ "DELETE"+];+new Set(b9);+var jqe = ["GET", ...b9];+new Set(jqe);+var Mqe = [+ "about:",+ "blob:",+ "chrome:",+ "chrome-untrusted:",+ "content:",+ "data:",+ "devtools:",+ "file:",+ "filesystem:",+ "javascript:"+];+function Nqe(e) {+ try {+ return Mqe.includes(new URL(e).protocol);+ } catch {+ return !1;+ }+}+//#endregion+//#region node_modules/react-router/dist/production/lib/context.js+var x9 = B.createContext(null);+x9.displayName = "DataRouter";+var Pqe = B.createContext(null);+Pqe.displayName = "DataRouterState";+var S9 = B.createContext(null);+S9.displayName = "DataRouterData";+var Fqe = B.createContext(null);+Fqe.displayName = "DataRouterNavigation";+var Iqe = B.createContext(!1), Lqe = B.createContext({ isTransitioning: !1 });+Lqe.displayName = "ViewTransition";+var Rqe = B.createContext(null);+Rqe.displayName = "Fetchers";+var zqe = B.createContext(null);+zqe.displayName = "Await";+var C9 = B.createContext(null);+C9.displayName = "Navigation";+var w9 = B.createContext(null);+w9.displayName = "Location";+var T9 = B.createContext({+ outlet: null,+ matches: [],+ isDataRoute: !1});-function z9(e) {- let t = e.currentTarget;- if (e.target !== t) return !1;- let n = t.getBoundingClientRect();- return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;+T9.displayName = "Route";+var E9 = B.createContext(!1);+E9.displayName = "IsDataRoute";+var D9 = B.createContext(void 0);+D9.displayName = "RouteId";+var O9 = B.createContext(null);+O9.displayName = "RouteError";+//#endregion+//#region node_modules/react-router/dist/production/lib/errors.js+var k9 = "REACT_ROUTER_ERROR", Bqe = "REDIRECT", Vqe = "ROUTE_ERROR_RESPONSE";+function Hqe(e) {+ if (e.startsWith(`${k9}:${Bqe}:{`)) try {+ let t = JSON.parse(e.slice(28));+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;+ } catch {}}-function gJe({ view: e }) {- let t = (0, B.useRef)(null);- (0, B.useLayoutEffect)(() => {- let e = t.current, n = (e) => {- e.preventDefault(), B9();- };- return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);- }, []);- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, V.jsx)(Iqe, { ...r.props }) : /* @__PURE__ */ (0, V.jsx)(wqe, { ...r.props }, r.props.id);- return /* @__PURE__ */ (0, V.jsxs)("dialog", {- ref: t,- id: "stage",- "data-stage": "",- "aria-label": "作品详情",- onKeyDown: (e) => {- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), B9());- },- onPointerDown: (e) => {- P9 = z9(e);- },- onClick: (e) => {- P9 && z9(e) && B9();- },- children: [- n === "skeleton" ? /* @__PURE__ */ (0, V.jsx)(R9, {}, "skeleton") : null,- n === "reveal" ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-stage-fade": "",- "aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)(R9, {})- }, "fade") : null,- n === "skeleton" ? null : /* @__PURE__ */ (0, V.jsx)("div", {- "data-stage-scroll": "",- children: /* @__PURE__ */ (0, V.jsx)("div", {- className: "peach-react",- children: i- })- }, "content")- ]- });+function Uqe(e) {+ if (e.startsWith(`${k9}:${Vqe}:{`)) try {+ let t = JSON.parse(e.slice(40));+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Eqe(t.status, t.statusText, t.data);+ } catch {}}-function B9() {- !A9 || N9 || (N9 = !0, A9.request.actions.close());+//#endregion+//#region node_modules/react-router/dist/production/lib/hooks.js+function A9() {+ return B.useContext(w9) != null;}-function V9(e, t) {- let n = F9();- n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);+function j9() {+ return e9(A9(), "useLocation() may be used only in the context of a <Router> component."), B.useContext(w9).location;}-function H9(e) {- let t = e.resume ?? null, n = (n) => {- let r = t && (e.id == null || e.id === n) ? t : null;- return t = null, r;- }, r = () => I9().player.settings();- if (e.kind === "item") {- let { kind: t, resume: i, actions: a, ...o } = e, s = {- ...a,- close: B9,- present: (e, t) => {- let n = e.performers;- a9({- kind: "item",- item: e,- title: String(e.title || e.name || ""),- sub: String(n?.[0] || e.creator || "未归属")- }), V9(r().ambientMode, r().theaterMode), a.present(e, t);- },- mountPlayer: (e, t, r, i) => o9(e, {- kind: "item",- item: t,- autoplay: i?.autoplay,- resume: n(t.id),- id: "vid"- })+var M9 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";+function Wqe() {+ return B.useContext(E9) ? nJe() : Gqe();+}+function Gqe() {+ e9(A9(), "useNavigate() may be used only in the context of a <Router> component.");+ let e = B.useContext(x9), { basename: t, navigator: n } = B.useContext(C9), { matches: r } = B.useContext(T9), { pathname: i } = j9(), a = JSON.stringify(xqe(r)), o = B.useRef(!1);+ return B.useLayoutEffect(() => {+ o.current = !0;+ }), B.useCallback((r, s = {}) => {+ if (t9(o.current, M9), !o.current) return;+ if (typeof r == "number") {+ n.go(r);+ return;+ }+ let c = Sqe(r, JSON.parse(a), i, s.relative === "path");+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : p9([t, c.pathname])), y9(typeof r == "string" ? r : nqe(r), n.createHref(c), _9(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);+ }, [+ t,+ n,+ a,+ i,+ e+ ]);+}+B.createContext(null);+function Kqe(e, t) {+ return N9(e, t);+}+function N9(e, t, n) {+ e9(A9(), "useRoutes() may be used only in the context of a <Router> component.");+ let { navigator: r } = B.useContext(C9), { matches: i } = B.useContext(T9), a = i[i.length - 1], o = a ? a.params : {};+ a && a.pathname;+ let s = a ? a.pathnameBase : "/";+ a && a.route;+ let c = j9(), l;+ if (t) {+ let e = typeof t == "string" ? n9(t) : t;+ e9(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;+ } else l = c;+ let u = l.pathname || "/", d = u;+ if (s !== "/") {+ let e = s.replace(/^\//, "").split("/");+ d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");+ }+ let f;+ f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : rqe(e, { pathname: d });+ let p = Qqe(f && f.map((e) => Object.assign({}, e, {+ params: Object.assign({}, o, e.params),+ pathname: p9([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),+ pathnameBase: e.pathnameBase === "/" ? s : p9([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])+ })), i, n);+ return t && p ? /* @__PURE__ */ B.createElement(w9.Provider, { value: {+ location: {+ pathname: "/",+ search: "",+ hash: "",+ state: null,+ key: "default",+ mask: void 0,+ ...l+ },+ navigationType: "POP"+ } }, p) : p;+}+function qqe() {+ let e = tJe(), t = Dqe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;+ return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ B.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ B.createElement("pre", { style: {+ padding: "0.5rem",+ backgroundColor: "rgba(200,200,200, 0.5)"+ } }, n) : null, null);+}+var Jqe = /* @__PURE__ */ B.createElement(qqe, null), Yqe = class extends B.Component {+ constructor(e) {+ super(e), this.state = {+ location: e.location,+ revalidation: e.revalidation,+ error: e.error};- return {- kind: "item",- props: {- ...o,- actions: s- }+ }+ static contextType = Iqe;+ static getDerivedStateFromError(e) {+ return { error: e };+ }+ static getDerivedStateFromProps(e, t) {+ return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {+ error: e.error,+ location: e.location,+ revalidation: e.revalidation+ } : {+ error: e.error === void 0 ? t.error : e.error,+ location: t.location,+ revalidation: e.revalidation || t.revalidation};}- let { kind: i, resume: a, actions: o, ...s } = e, c = {- ...o,- close: B9,- present: (e, t) => {- a9({- kind: "follow",- item: e,- title: e.title || "",- sub: e.author || e.source_label || ""- }), V9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);- },- mountPlayer: (e, t, r, i) => o9(e, {- kind: "follow",- item: t,- media: r,- poster: t.thumb_url || void 0,- onError: i.onError,- resume: n(t.id)- })- };- return {- kind: "follow",- props: {- ...s,- actions: c+ componentDidCatch(e, t) {+ this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);+ }+ render() {+ let e = this.state.error;+ if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {+ let t = Uqe(e.digest);+ t && (e = t);}- };-}-function _Je(e, t) {- let n = e.querySelector(":scope > [data-stage-fade]");- e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");- let r = 0, i = () => {- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), A9?.generation === t && A9.phase === "reveal" && (A9 = {- ...A9,- phase: "content"- }, L9());- }, a = (e) => {- e.target === n && i();- };- n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ B.createElement(T9.Provider, { value: this.props.routeContext }, /* @__PURE__ */ B.createElement(E9.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ B.createElement(D9.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ B.createElement(O9.Provider, {+ value: e,+ children: this.props.component+ }))));+ return this.context ? /* @__PURE__ */ B.createElement(Xqe, { error: e }, t) : t;+ }+}, P9 = /* @__PURE__ */ new WeakMap();+function Xqe({ children: e, error: t }) {+ let { basename: n, navigator: r } = B.useContext(C9);+ if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {+ let e = Hqe(t.digest);+ if (e) {+ let i = P9.get(t);+ if (i) throw i;+ let a = kqe(e.location, n), o = a.absoluteURL || a.to;+ if (y9(e.location, o, _9(r), "allow-explicit"), Nqe(o)) throw Error("Invalid redirect location");+ if (h9 && !P9.get(t)) {+ if (a.isExternal || e.reloadDocument) window.location.href = o;+ else {+ let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));+ throw P9.set(t, n), n;+ }+ }+ return /* @__PURE__ */ B.createElement("meta", {+ httpEquiv: "refresh",+ content: `0;url=${o}`+ });+ }+ }+ return e;}-function U9(e) {- let t = F9();- return !A9 || A9.content.kind !== e || N9 || !t?.open || t.hasAttribute("data-closing") ? null : t;+function Zqe({ routeContext: e, match: t, children: n }) {+ let r = B.useContext(x9);+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ B.createElement(T9.Provider, { value: e }, /* @__PURE__ */ B.createElement(E9.Provider, { value: e.isDataRoute }, /* @__PURE__ */ B.createElement(D9.Provider, { value: t.route.id }, n)));}-async function vJe(e) {- let t = U9(e.kind);- if (t) {- await yJe(e, t);- return;+function Qqe(e, t = [], n) {+ let r = n?.state;+ if (e == null) {+ if (!r) return null;+ if (r.errors) e = r.matches;+ else if (t.length === 0 && !r.initialized && r.matches.length > 0) e = r.matches;+ else return null;}- A9 && W9({ miniplayer: !1 });- let n = ++j9, r = new AbortController();- M9 = r, N9 = !1, P9 = !1, c9(e.kind, e.id ?? NaN), A9 = {- generation: n,- request: e,- content: H9(e),- phase: "skeleton"- }, L9();- let i = F9();- if (!i) return;- ke(i), document.body.setAttribute("data-detail-open", ""), i.open || i.showModal();- let a = A9.content;- try {- a.kind === "item" ? await JC(a.props, r.signal) : await k7(a.props, r.signal);- } catch {- if (r.signal.aborted) return;+ let i = e, a = r?.errors;+ if (a != null) {+ let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);+ e9(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));}- if (n !== j9 || !A9) return;- let o = !!i.querySelector(".skeleton-awaiting");- A9 = {- ...A9,- phase: o ? "content" : "reveal"- }, L9(), o || _Je(i, n), Be(i, ":scope>:not([data-stage-fade]) [data-reveal-line]");- let s = document.activeElement;- (s === i || !i.contains(s)) && i.querySelector("#closeStage")?.focus();-}-async function yJe(e, t) {- let n = ++j9;- M9?.abort();- let r = new AbortController();- M9 = r, P9 = !1;- let i = H9(e);- try {- i.kind === "item" ? await JC(i.props, r.signal) : await k7(i.props, r.signal);- } catch {- if (r.signal.aborted) return;+ let o = !1, s = -1;+ if (n && r) {+ o = r.renderFallback;+ for (let e = 0; e < i.length; e++) {+ let t = i[e];+ if ((t.route.HydrateFallback || t.route.hydrateFallbackElement) && (s = e), t.route.id) {+ let { loaderData: e, errors: a } = r, c = t.route.loader && !e.hasOwnProperty(t.route.id) && (!a || a[t.route.id] === void 0);+ if (t.route.lazy || c) {+ n.isStatic && (o = !0), i = s >= 0 ? i.slice(0, s + 1) : [i[0]];+ break;+ }+ }+ }}- if (n !== j9 || !A9 || U9(e.kind) !== t) return;- c9(e.kind, e.id ?? NaN), ie(t), LS(), A9 = {- ...A9,- request: e,- content: i,- phase: "content"- }, L9(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Be(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");- let a = document.activeElement;- (a === t || !t.contains(a)) && (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });+ let c = n?.onError, l = r && c ? (e, t) => {+ c(e, {+ location: r.location,+ params: r.matches?.[0]?.params ?? {},+ pattern: Oqe(r.matches),+ errorInfo: t+ });+ } : void 0;+ return i.reduceRight((e, n, c) => {+ let u, d = !1, f = null, p = null;+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || Jqe, o && (s < 0 && c === 0 ? (rJe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));+ let m = t.concat(i.slice(0, c + 1)), h = () => {+ let t;+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ B.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ B.createElement(Zqe, {+ match: n,+ routeContext: {+ outlet: e,+ matches: m,+ isDataRoute: r != null+ },+ children: t+ });+ };+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ B.createElement(Yqe, {+ location: r.location,+ revalidation: r.revalidation,+ component: f,+ error: u,+ children: h(),+ routeContext: {+ outlet: null,+ matches: m,+ isDataRoute: !0+ },+ onError: l+ }) : h();+ }, null);}-function bJe() {- let e = F9();- return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {- let n = 0, r = () => {- clearTimeout(n), e.removeEventListener("animationend", i), t();- }, i = (t) => {- t.target === e && r();+function F9(e) {+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;+}+function $qe(e) {+ let t = B.useContext(x9);+ return e9(t, F9(e)), t;+}+function eJe(e) {+ let t = B.useContext(S9);+ return e9(t, F9(e)), t;+}+function I9(e) {+ let t = B.useContext(D9);+ return e9(t, `${e} can only be used on routes that contain a unique "id"`), t;+}+function tJe() {+ let e = B.useContext(O9), t = eJe("useRouteError"), n = I9("useRouteError");+ return e === void 0 ? t.errors?.[n] : e;+}+function nJe() {+ let { router: e } = $qe("useNavigate"), t = I9("useNavigate"), n = B.useRef(!1);+ return B.useLayoutEffect(() => {+ n.current = !0;+ }), B.useCallback(async (r, i = {}) => {+ t9(n.current, M9), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {+ fromRouteId: t,+ ...i+ }));+ }, [e, t]);+}+var L9 = {};+function rJe(e, t, n) {+ !t && !L9[e] && (L9[e] = !0, t9(!1, n));+}+B.memo(iJe);+function iJe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {+ let a = B.useContext(x9);+ return e9(a, "You must render this element inside a <DataRouterContext.Provider> element"), N9(e, void 0, {+ router: a.router,+ manifest: t,+ state: n,+ isStatic: r,+ onError: i+ });+}+function R9(e) {+ e9(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");+}+function aJe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {+ e9(!A9(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");+ let s = e.replace(/^\/*/, "/"), c = B.useMemo(() => ({+ basename: s,+ navigator: i,+ static: a,+ useTransitions: o,+ future: {}+ }), [+ s,+ i,+ a,+ o+ ]);+ typeof n == "string" && (n = n9(n));+ let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = B.useMemo(() => {+ let e = l9(l, s);+ return e == null ? null : {+ location: {+ pathname: e,+ search: u,+ hash: d,+ state: f,+ key: p,+ mask: m+ },+ navigationType: r};- e.addEventListener("animationend", i), n = window.setTimeout(r, 380);+ }, [+ s,+ l,+ u,+ d,+ f,+ p,+ r,+ m+ ]);+ return t9(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ B.createElement(C9.Provider, { value: c }, /* @__PURE__ */ B.createElement(w9.Provider, {+ children: t,+ value: h}));}-function W9({ miniplayer: e = !0 } = {}) {- if (j9++, M9?.abort(), M9 = null, rJe(e), !A9) return;- let t = F9();- t && ie(t), LS(), t?.open && t.close(), A9 = null, N9 = !1, P9 = !1, L9(), a9(null), document.body.removeAttribute("data-detail-open");+function z9({ children: e, location: t }) {+ return Kqe(B9(e), t);}-function xJe(e) {- !A9 || A9.content.kind !== "item" || (A9 = {- ...A9,- content: {- kind: "item",- props: {- ...A9.content.props,- ...e- }+B.Component;+function B9(e, t = []) {+ let n = [];+ return B.Children.forEach(e, (e, r) => {+ if (!B.isValidElement(e)) return;+ let i = [...t, r];+ if (e.type === B.Fragment) {+ n.push.apply(n, B9(e.props.children, i));+ return;}- }, L9());+ e9(e.type === R9, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);+ let a = e.props;+ e9(!a.index || !a.children, "An index route cannot have child routes.");+ let o = {+ id: a.id || i.join("-"),+ caseSensitive: a.caseSensitive,+ element: a.element,+ Component: a.Component,+ index: a.index,+ path: a.path,+ middleware: a.middleware,+ loader: a.loader,+ action: a.action,+ hydrateFallbackElement: a.hydrateFallbackElement,+ HydrateFallback: a.HydrateFallback,+ errorElement: a.errorElement,+ ErrorBoundary: a.ErrorBoundary,+ shouldRevalidate: a.shouldRevalidate,+ handle: a.handle,+ lazy: a.lazy+ };+ a.children && (o.children = B9(a.children, i)), n.push(o);+ }), n;}-function SJe() {- let e = tJe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, I9().player.settings().javImage) : "";- if (!n) return;- let r = s9();- r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);+//#endregion+//#region src/react/providers.tsx+var V9 = null;+function oJe() {+ return V9?.isConnected || (V9 = document.createElement("div"), V9.className = "peach-react", V9.dataset.reactOverlays = "", document.body.append(V9)), V9;}-var CJe = {- open: vJe,- update: xJe,- exit: bJe,- dispose: W9,- requestClose: B9,- repaintPoster: SJe,- isOpen: () => !!A9,- showing: () => A9 && U9(A9.content.kind) ? A9.content.kind : null,- activeVideo: () => aJe(),- toggleTheater: () => {- A9 && nC(!I9().player.settings().theaterMode);- },- toggleMiniplayer: () => S9(),- closeMiniplayer: () => b9(),- miniplayerActive: () => u9(),- miniplayerTakesCard: (e) => w9(e),- miniplayerPlay: (e) => {- lJe(e);+function sJe({ children: e }) {+ return /* @__PURE__ */ (0, V.jsx)(uS, {+ client: z,+ children: /* @__PURE__ */ (0, V.jsx)(rd, {+ reducedMotion: "user",+ children: /* @__PURE__ */ (0, V.jsx)(Qv, {+ getContainer: oJe,+ children: e+ })+ })+ });+}+//#endregion+//#region src/react/router/router.tsx+var H9 = (0, B.createContext)(0), U9 = (0, B.createContext)(null);+function cJe({ children: e }) {+ let [t, n] = (0, B.useState)(() => ft.navigation);+ return (0, B.useLayoutEffect)(() => (n(ft.navigation), ft.listen(n)), []), /* @__PURE__ */ (0, V.jsx)(H9.Provider, {+ value: t.seq,+ children: /* @__PURE__ */ (0, V.jsx)(aJe, {+ location: t.location,+ navigationType: t.action,+ navigator: ft,+ children: e+ })+ });+}+function lJe() {+ let e = (0, B.useContext)(H9);+ return (0, B.useLayoutEffect)(() => {+ queueMicrotask(() => pt(e));+ }, [e]), null;+}+function uJe({ target: e }) {+ let t = Wqe();+ return (0, B.useLayoutEffect)(() => {+ e.current = t;+ }), null;+}+function dJe(e, t, n) {+ let r = new URL(e, window.location.href);+ if (!z7(r.pathname)) {+ t.navigate(e);+ return;}-};-function wJe(e) {- return D9 = e, eJe(e, {- isOpen: () => !!A9,- requestClose: B9- }), L9(), CJe;+ n(`${r.pathname}${r.search}${r.hash}`);+}+function fJe() {+ let e = (0, B.useContext)(U9), [t, n] = (0, B.useState)(dt), r = (0, B.useRef)(null);+ (0, B.useLayoutEffect)(() => (n(dt()), ut((e, t) => {+ t ? (0, $f.flushSync)(() => n(e)) : n(e);+ })), []);+ let i = (0, B.useMemo)(() => (t) => {+ e && r.current && dJe(t, e, r.current);+ }, [e]);+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(uJe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, V.jsx)(pJe, {+ entry: t,+ children: /* @__PURE__ */ (0, V.jsx)(mJe, {+ entry: t,+ actions: e,+ go: i+ })+ }, t.revision)) : null] });+}+var pJe = class extends B.Component {+ state = { failed: !1 };+ static getDerivedStateFromError() {+ return { failed: !0 };+ }+ componentDidCatch() {+ lt(this.props.entry.container, this.props.entry.revision);+ }+ render() {+ return this.state.failed ? null : this.props.children;+ }+}, mJe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {+ return Q7(e.path) ? (0, $f.createPortal)(QKe(e.path, e.props, t, n), e.host, String(e.revision)) : null;+});+function hJe({ children: e }) {+ let t = j9(), n = ct(t.state);+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(z9, {+ location: n ?? t,+ children: [+ XKe.map((e) => /* @__PURE__ */ (0, V.jsx)(R9, {+ path: e,+ element: null+ }, e)),+ /* @__PURE__ */ (0, V.jsx)(R9, {+ path: "/resource-sync",+ element: null+ }),+ /* @__PURE__ */ (0, V.jsx)(R9, {+ path: "*",+ element: e+ })+ ]+ }), /* @__PURE__ */ (0, V.jsxs)(z9, { children: [st.map((e) => /* @__PURE__ */ (0, V.jsx)(R9, {+ path: e,+ element: null+ }, e)), /* @__PURE__ */ (0, V.jsx)(R9, {+ path: "*",+ element: null+ })] })] });+}+function gJe({ children: e, actions: t = null }) {+ return /* @__PURE__ */ (0, V.jsx)(sJe, { children: /* @__PURE__ */ (0, V.jsx)(U9.Provider, {+ value: t,+ children: /* @__PURE__ */ (0, V.jsxs)(cJe, { children: [+ /* @__PURE__ */ (0, V.jsx)(lJe, {}),+ /* @__PURE__ */ (0, V.jsx)(fJe, {}),+ /* @__PURE__ */ (0, V.jsx)(hJe, { children: e })+ ] })+ }) });+}+var _Je = { onCaughtError: (e) => {+ globalThis.reportError?.(e);+} }, W9 = null;+function vJe(e) {+ if (W9) return;+ W9 = (0, kN.createRoot)(document.createElement("div"), _Je);+ let t = W9;+ (0, $f.flushSync)(() => t.render(/* @__PURE__ */ (0, V.jsx)(gJe, { actions: e })));}//#endregion//#region node_modules/sonner/dist/index.mjs-function TJe(e) {+function yJe(e) {if (!e || typeof document > "u") return;let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));}-var EJe = (e) => {+var bJe = (e) => {switch (e) {- case "success": return kJe;- case "info": return jJe;- case "warning": return AJe;- case "error": return MJe;+ case "success": return CJe;+ case "info": return TJe;+ case "warning": return wJe;+ case "error": return EJe;default: return null;}-}, DJe = Array(12).fill(0), OJe = ({ visible: e, className: t }) => /*#__PURE__*/ B.createElement("div", {+}, xJe = Array(12).fill(0), SJe = ({ visible: e, className: t }) => /*#__PURE__*/ B.createElement("div", {className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),"data-visible": e-}, /*#__PURE__*/ B.createElement("div", { className: "sonner-spinner" }, DJe.map((e, t) => /*#__PURE__*/ B.createElement("div", {+}, /*#__PURE__*/ B.createElement("div", { className: "sonner-spinner" }, xJe.map((e, t) => /*#__PURE__*/ B.createElement("div", {className: "sonner-loading-bar",key: `spinner-bar-${t}`-})))), kJe = /*#__PURE__*/ B.createElement("svg", {+})))), CJe = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -81551,7 +81454,7 @@ var EJe = (e) => {fillRule: "evenodd",d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule: "evenodd"-})), AJe = /*#__PURE__*/ B.createElement("svg", {+})), wJe = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 24 24",fill: "currentColor",@@ -81562,7 +81465,7 @@ var EJe = (e) => {fillRule: "evenodd",d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule: "evenodd"-})), jJe = /*#__PURE__*/ B.createElement("svg", {+})), TJe = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -81573,7 +81476,7 @@ var EJe = (e) => {fillRule: "evenodd",d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule: "evenodd"-})), MJe = /*#__PURE__*/ B.createElement("svg", {+})), EJe = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -81584,7 +81487,7 @@ var EJe = (e) => {fillRule: "evenodd",d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule: "evenodd"-})), NJe = /*#__PURE__*/ B.createElement("svg", {+})), DJe = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",width: "12",height: "12",@@ -81605,7 +81508,7 @@ var EJe = (e) => {y1: "6",x2: "18",y2: "18"-})), PJe = () => {+})), OJe = () => {let [e, t] = B.useState(document.hidden);return B.useEffect(() => {let e = () => {@@ -81613,7 +81516,7 @@ var EJe = (e) => {};return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);}, []), e;-}, FJe = 1, IJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : FJe++, K9 = new class {+}, kJe = 1, AJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : kJe++, K9 = new class {constructor() {this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {let t = this.subscribers.indexOf(e);@@ -81623,7 +81526,7 @@ var EJe = (e) => {}, this.addToast = (e) => {this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();}, this.trimHistory = () => {- let e = this.toasts.length - IJe;+ let e = this.toasts.length - AJe;e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));}, this.create = (e) => {let { message: t, ...n } = e, r = G9(e), i = this.pendingDismissals.get(r);@@ -81701,7 +81604,7 @@ var EJe = (e) => {type: "default",message: e});- else if (RJe(e) && !e.ok) {+ else if (MJe(e) && !e.ok) {i = !1;let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !B.isValidElement(r) ? r : { message: r };this.create({@@ -81754,7 +81657,7 @@ var EJe = (e) => {}), n;}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();}-}(), LJe = (e, t) => K9.message(e, t), RJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(LJe, {+}(), jJe = (e, t) => K9.message(e, t), MJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(jJe, {success: K9.success,info: K9.info,warning: K9.warning,@@ -81768,20 +81671,20 @@ var EJe = (e) => {getHistory: () => K9.toasts,getToasts: () => K9.getActiveToasts()});-TJe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");+yJe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function J9(e) {return e.label !== void 0;}-var zJe = 3, BJe = "24px", VJe = "16px", Y9 = 4e3, HJe = 356, UJe = 14, WJe = 45, GJe = 200;+var NJe = 3, PJe = "24px", FJe = "16px", Y9 = 4e3, IJe = 356, LJe = 14, RJe = 45, zJe = 200;function X9(...e) {return e.filter(Boolean).join(" ");}-function KJe(e) {+function BJe(e) {let [t, n] = e.split("-"), r = [];return t && r.push(t), n && r.push(n), r;}-var qJe = (e) => {- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = B.useState(null), [O, k] = B.useState(null), [A, j] = B.useState(!1), [M, N] = B.useState(!1), [P, ee] = B.useState(!1), [F, I] = B.useState(!1), [te, ne] = B.useState(!1), [re, ie] = B.useState(0), [ae, oe] = B.useState(0), se = B.useRef(n.duration || y || Y9), ce = B.useRef(null), le = B.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", R = n.descriptionClassName || "", he = B.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = B.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = B.useMemo(() => n.duration || y || Y9, [n.duration, y]), ve = B.useRef(0), ye = B.useRef(0), be = B.useRef(0), xe = B.useRef(null), [Se, Ce] = b.split("-"), we = B.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = PJe(), Ee = B.useMemo(() => e.swipeDirections ?? KJe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = de === "loading";+var VJe = (e) => {+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = B.useState(null), [O, k] = B.useState(null), [A, j] = B.useState(!1), [M, N] = B.useState(!1), [P, ee] = B.useState(!1), [F, I] = B.useState(!1), [te, ne] = B.useState(!1), [re, ie] = B.useState(0), [ae, oe] = B.useState(0), se = B.useRef(n.duration || y || Y9), ce = B.useRef(null), le = B.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", R = n.descriptionClassName || "", he = B.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = B.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = B.useMemo(() => n.duration || y || Y9, [n.duration, y]), ve = B.useRef(0), ye = B.useRef(0), be = B.useRef(0), xe = B.useRef(null), [Se, Ce] = b.split("-"), we = B.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = OJe(), Ee = B.useMemo(() => e.swipeDirections ?? BJe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = de === "loading";ye.current = B.useMemo(() => he * x + we, [he, we]), B.useEffect(() => {se.current = _e;}, [_e]), B.useEffect(() => {@@ -81822,7 +81725,7 @@ var qJe = (e) => {let ke = B.useCallback(() => {N(!0), ie(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {d(n);- }, GJe);+ }, zJe);}, [n,d,@@ -81855,12 +81758,12 @@ var qJe = (e) => {return w?.loading ? /*#__PURE__*/ B.createElement("div", {className: X9(C?.loader, n?.classNames?.loader, "sonner-loader"),"data-visible": de === "loading"- }, w.loading) : /*#__PURE__*/ B.createElement(OJe, {+ }, w.loading) : /*#__PURE__*/ B.createElement(SJe, {className: X9(C?.loader, n?.classNames?.loader),visible: de === "loading"});}- let je = n.icon || w?.[de] || EJe(de);+ let je = n.icon || w?.[de] || bJe(de);return /*#__PURE__*/ B.createElement("li", {tabIndex: 0,ref: le,@@ -81907,7 +81810,7 @@ var qJe = (e) => {if (F || !pe) return;xe.current = null;let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;- if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= WJe || a > .11)) {+ if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= RJe || a > .11)) {ie(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), I(!0);return;}@@ -81948,7 +81851,7 @@ var qJe = (e) => {ke(), n.onDismiss == null || n.onDismiss.call(n, n);},className: X9(C?.closeButton, n?.classNames?.closeButton)- }, w?.close ?? NJe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ B.createElement("div", {+ }, w?.close ?? DJe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ B.createElement("div", {"data-icon": "",className: X9(C?.icon, n?.classNames?.icon)}, de === "loading" ? n.icon || Ae() : n.promise ? Ae() : null, de === "loading" ? null : je) : null, /*#__PURE__*/ B.createElement("div", {@@ -81983,10 +81886,10 @@ function Z9() {let e = document.documentElement.getAttribute("dir");return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;}-function JJe(e, t) {+function HJe(e, t) {let n = {};return [e, t].forEach((e, t) => {- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? VJe : BJe;+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? FJe : PJe;function o(e) {["top",@@ -82007,8 +81910,8 @@ function JJe(e, t) {}) : o(a);}), n;}-var YJe = /*#__PURE__*/ B.forwardRef(function(e, t) {- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = zJe, toastOptions: g, dir: _ = Z9(), gap: v = UJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = B.useState([]), w = B.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = B.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = B.useState([]), [O, k] = B.useState(!1), [A, j] = B.useState(!1), [M, N] = B.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = B.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = B.useRef(null), I = B.useRef(!1), te = B.useCallback((e) => {+var UJe = /*#__PURE__*/ B.forwardRef(function(e, t) {+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = NJe, toastOptions: g, dir: _ = Z9(), gap: v = LJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = B.useState([]), w = B.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = B.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = B.useState([]), [O, k] = B.useState(!1), [A, j] = B.useState(!1), [M, N] = B.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = B.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = B.useRef(null), I = B.useRef(!1), te = B.useCallback((e) => {C((t) => (t.find((t) => t.id === e.id)?.delete || K9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));}, []);return B.useEffect(() => K9.subscribe((e) => {@@ -82094,10 +81997,10 @@ var YJe = /*#__PURE__*/ B.forwardRef(function(e, t) {"data-x-position": a,style: {"--front-toast-height": `${E[0]?.height || 0}px`,- "--width": `${HJe}px`,+ "--width": `${IJe}px`,"--gap": `${v}px`,...m,- ...JJe(l, u)+ ...HJe(l, u)},onBlur: (e) => {I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));@@ -82115,7 +82018,7 @@ var YJe = /*#__PURE__*/ B.forwardRef(function(e, t) {e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);},onPointerUp: () => j(!1)- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ B.createElement(qJe, {+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ B.createElement(VJe, {key: n.id,icons: y,index: i,@@ -82149,8 +82052,8 @@ var YJe = /*#__PURE__*/ B.forwardRef(function(e, t) {"data-toast-glyph": t ? "draw" : "still","aria-hidden": "true",dangerouslySetInnerHTML: { __html: e }-}), $9 = !1, XJe = (e, t) => {- $9 || ($9 = !0, (0, DN.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(YJe, {+}), $9 = !1, WJe = (e, t) => {+ $9 || ($9 = !0, (0, kN.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(UJe, {position: "bottom-right",closeButton: !0,gap: 8,@@ -82171,7 +82074,7 @@ var YJe = /*#__PURE__*/ B.forwardRef(function(e, t) {error: Q9(t.error, !1)}})));-}, ZJe = (e, t) => {+}, GJe = (e, t) => {let n = t.alert ? q9.error : q9.success, r = t.action;n(/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {id: e,@@ -82185,4 +82088,4 @@ var YJe = /*#__PURE__*/ B.forwardRef(function(e, t) {});};//#endregion-export { Ane as configureBatchDock, Nne as configureGlowPicker, Fie as configureImmerse, Kie as configureManageHeader, tqe as configureRouter, Ube as configureSettingsPanel, oxe as configureSidebar, wJe as configureStage, XJe as mountToaster, FGe as prefetchManagedRoute, ZJe as showToast };+export { kne as configureBatchDock, Mne as configureGlowPicker, Pie as configureImmerse, Gie as configureManageHeader, vJe as configureRouter, Ibe as configureSettingsPanel, $be as configureSidebar, PSe as configureStage, WJe as mountToaster, ZKe as prefetchManagedRoute, GJe as showToast };diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.jsindex 4a26ea98f..18e01e779 100644--- a/web/dist/peach-ui.js+++ b/web/dist/peach-ui.js@@ -4994,7 +4994,10 @@ function sc(e, t, n, r) {}var cc = null, lc = null;function uc(e) {- return cc ??= import("/dist/peach-react.js").then((t) => (lc = t.configureStage(e), lc)), cc;+ return cc ??= import("/dist/peach-react.js").then(async (t) => {+ let n = t.configureStage(e), r = document.createElement("div");+ return r.dataset.stageHost = "", await B("stage", r, (e) => (document.body.append(e), e)), lc = n, n;+ }), cc;}var dc = () => lc, fc = null, pc = null;function mc(e) {