Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 路由树一面一层错误边界,抛错只空那一面

longmeidao7d86fe6d607c
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.md
index 0ee4cc4cb..702798759 100644
--- a/docs/FRONTEND.md
+++ b/docs/FRONTEND.md
@@ -314,6 +314,11 @@ await openManagedRoute('search', props, {container: $('#searchMenu'), isCurrent:
收 `#index` 那一页;`#grid` 那一页离开目录时由 `clearCatalogGrid` 收,首页新作行由 `clearHomeFeed` 收;搜索
下拉常驻、从不收。多数页面的离场路径是直接 `innerHTML=`,页面被挤出文档却照样活着,所以收起必须由这几个
公共点负责,而不是逐页判断。第二道是 `isCurrent`:取数落地时用户可能已经走开,这时不画。
+- 抛错的那一面:每一面各套一层错误边界(`router.tsx` 的 `SurfaceBoundary`,按代次挂 key)。某一面渲染
+ 抛错时只空出那一面,`failManagedRoute` 撤掉它的登记与宿主,`managedTaken` 回 false、推补丁是空操作,壳
+ 下次打开就重开;首帧就抛错时 `openManagedRoute` 照样回 true,回来时登记已经撤了。错误经根的
+ `onCaughtError` 交给 `reportError`,每次一条,边界自己不再报。根上不套边界:派发点与两组 `<Routes>`
+ 不随某一面卸掉。确定性的抛错每重开一次就再报一次;搜索下拉只在壳启动时打开,抛错后空到刷新为止。
遗留助手不打进 `peach-ui.js` 与 `peach-react.js`:`LOC`、`fmtDur`、`fmtSize`、`emptyStateHtml`、`noteHtml`
在浏览器里是 `/js/*.js`,源码用 `@peach/legacy/*` 引用,`output.paths` 在产物里改写回真实路径。
diff --git a/frontend/src/history/index.ts b/frontend/src/history/index.ts
index e062fcee4..5821ecfc0 100644
--- a/frontend/src/history/index.ts
+++ b/frontend/src/history/index.ts
@@ -122,7 +122,7 @@ export {
type BackgroundLocation, type OverlayKind, type OverlayState,
} from './overlay';
export {
- connectManagedRoutes, listenManagedEntry, managedEntries, managedEntry, managedTaken, openManagedRoute,
+ connectManagedRoutes, failManagedRoute, listenManagedEntry, managedEntries, managedEntry, managedTaken, openManagedRoute,
preloadManagedRoutes, releaseManagedRoute, updateManagedRoute,
type ManagedEntry, type ManagedOpenOptions, type ManagedPrefetch,
} from './managed';
diff --git a/frontend/src/history/managed.ts b/frontend/src/history/managed.ts
index 773879ca4..e8b90dc75 100644
--- a/frontend/src/history/managed.ts
+++ b/frontend/src/history/managed.ts
@@ -159,3 +159,18 @@ export function releaseManagedRoute(container: Element, ...more: Element[]): voi
notify(true);
for (const shown of removed) shown.host.remove();
}
+
+/** 某一面渲染抛错、路由树的错误边界接住之后调:只撤这一面的登记与宿主,别的面照画。之后
+ * `managedTaken` 回 false、`updateManagedRoute` 对它是空操作,壳下一次打开就重开。代次对不上(这一格
+ * 已经收起或重开过)是空操作:过期的那一面不能撤掉壳刚开的新一面。
+ *
+ * 删登记与撤宿主当场做,通知延到微任务:这里在 React 的提交阶段里(错误边界的 `componentDidCatch`),
+ * 通知会让路由树重渲染。抛错出在打开那一次的首帧时,打开照样回 true,只是回来的那一刻登记已经撤了,
+ * 壳紧接着推的补丁是空操作。 */
+export function failManagedRoute(container: Element, failed: number): void {
+ const shown = entries.get(container);
+ if (shown?.revision !== failed) return;
+ entries.delete(container);
+ shown.host.remove();
+ queueMicrotask(() => { notify(false) });
+}
diff --git a/frontend/src/react/router/router.tsx b/frontend/src/react/router/router.tsx
index cdfb03743..e6cbb4248 100644
--- a/frontend/src/react/router/router.tsx
+++ b/frontend/src/react/router/router.tsx
@@ -12,17 +12,21 @@
*
* 路由分两组:页面组按条目自己记的背景(`usr.backgroundLocation`)匹配,详情压在哪一页上就还匹配那一页;
* 覆盖组按真实地址匹配详情与队列那几条(`OVERLAY_PATHS`)。两组的具体路由都只声明路径,`path="*"`
- * 不按路径设 key,同一个实例在非管理区地址之间从头活到尾。 */
+ * 不按路径设 key,同一个实例在非管理区地址之间从头活到尾。
+ *
+ * 一处渲染错误只带走抛错的那一面:每一面各套一层错误边界(`SurfaceBoundary`),根上不套,派发点与两组
+ * `<Routes>` 不随某一面卸掉。错误经根的 `onCaughtError` 交给 `reportError`,每次一条。 */
import {
- createContext, memo, useContext, useLayoutEffect, useMemo, useRef, useState, type ReactNode, type RefObject,
+ Component, createContext, memo, useContext, useLayoutEffect, useMemo, useRef, useState, type ReactNode,
+ type RefObject,
} from 'react';
import { createPortal, flushSync } from 'react-dom';
-import { createRoot, type Root } from 'react-dom/client';
+import { createRoot, type Root, type RootOptions } from 'react-dom/client';
import { Route, Router, Routes, useLocation, useNavigate, type NavigateFunction } from 'react-router';
import {
- backgroundOf, listenManagedEntry, managedEntries, OVERLAY_PATHS, peachHistory, routeSeen, type ManagedEntry,
- type Navigation,
+ backgroundOf, failManagedRoute, listenManagedEntry, managedEntries, OVERLAY_PATHS, peachHistory, routeSeen,
+ type ManagedEntry, type Navigation,
} from '@peach/history';
import { Providers } from '../providers';
@@ -103,11 +107,31 @@ function ManagedSurface() {
<>
<NavigateInto target={navigate} />
{actions ? entries.map((entry) => (
- <ManagedPortal key={entry.revision} entry={entry} actions={actions} go={go} />)) : null}
+ <SurfaceBoundary key={entry.revision} entry={entry}>
+ <ManagedPortal entry={entry} actions={actions} go={go} />
+ </SurfaceBoundary>)) : null}
</>
);
}
+/** 一面一层的错误边界。接住之后这一面画成空,并撤掉它的登记与宿主(`failManagedRoute`),壳下次打开时重开;
+ * 按代次挂 key,重开就是一个新的边界实例。上报不在这里:根的 `onCaughtError` 已经报过一次。 */
+class SurfaceBoundary extends Component<{ entry: ManagedEntry; children: ReactNode }, { failed: boolean }> {
+ override state = { failed: false };
+
+ static getDerivedStateFromError(): { failed: boolean } {
+ return { failed: true };
+ }
+
+ override componentDidCatch(): void {
+ failManagedRoute(this.props.entry.container, this.props.entry.revision);
+ }
+
+ override render(): ReactNode {
+ return this.state.failed ? null : this.props.children;
+ }
+}
+
const ManagedPortal = memo(function ManagedPortal(
{ entry, actions, go }: { entry: ManagedEntry; actions: ShellActions; go: (path: string) => void },
) {
@@ -151,13 +175,19 @@ export function RouterRoot({ children, actions = null }: { children?: ReactNode;
);
}
+/** 路由树那棵根的选项。错误边界接住的错误交给全局 `reportError`,和没人接住时 React 的上报同一条路,
+ * 控制台与 window 的 `error` 事件各见一次。运行时才取 `reportError`:测试环境里可能没有它。 */
+export const ROUTER_ROOT_OPTIONS: RootOptions = {
+ onCaughtError: (error) => { globalThis.reportError?.(error) },
+};
+
/* 根建在一个不进文档的容器上:页面经 portal 画进壳的 `#stats`、`#index`、`#grid` 与各附属面的容器,别的地方
* 什么都不画。
* 第一次渲染同步做完,宿主在 `loadRouter` 落定之前就已经订阅:壳打开的第一页取齐时它一定在听。 */
let root: Root | null = null;
export function configureRouter(actions: ShellActions): void {
if (root) return;
- root = createRoot(document.createElement('div'));
+ root = createRoot(document.createElement('div'), ROUTER_ROOT_OPTIONS);
const mounted = root;
flushSync(() => mounted.render(<RouterRoot actions={actions} />));
}
diff --git a/frontend/test/react/surface-boundary.test.tsx b/frontend/test/react/surface-boundary.test.tsx
new file mode 100644
index 000000000..d954a7660
--- /dev/null
+++ b/frontend/test/react/surface-boundary.test.tsx
@@ -0,0 +1,241 @@
+/* 路由树一面一层错误边界:某一面渲染抛错只空出那一面并撤掉它的登记,别的面、派发点与 `<Routes>` 照旧;
+ * 错误经根的 `onCaughtError` 交给 `reportError`,每次一条;壳下次打开能重开。
+ *
+ * 首页新作行与垃圾队列的页面模块整个换掉,抛不抛、首屏取数成不成由 `pages` 当场决定:用例中途改它,就是
+ * 「下一次打开换成好页面」。 */
+import { act } from 'react';
+import { createRoot } from 'react-dom/client';
+import { afterEach, beforeAll, expect, it, vi } from 'vitest';
+
+import type { CatalogFilterProps } from '../../src/react/catalog-filter/catalog-filter';
+import type { FeedNewProps } from '../../src/react/feed-new/feed-new';
+import type { ShellActions } from '../../src/react/router/shell-actions';
+import type { SearchApi, SearchProps } from '../../src/react/search/search';
+
+// 首次导入会编译路由表带进来的整棵页面子树,编译等待使用独立的有限窗口;之后每条用例重新装载只重跑模块。
+const REACT_IMPORT_TIMEOUT_MS = 30_000;
+
+(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+
+beforeAll(async () => { await import('../../src/react/router/router') }, REACT_IMPORT_TIMEOUT_MS);
+
+const pages = vi.hoisted(() => ({
+ feedBroken: false, junkBroken: false, feedPrefetchFails: false,
+}));
+
+vi.mock('../../src/react/feed-new/feed-new-page', () => ({
+ FeedNewPage: () => {
+ if (pages.feedBroken) throw new Error('新作行画不出来');
+ return <p data-feed-good>新作</p>;
+ },
+}));
+vi.mock(import('../../src/react/feed-new/feed-new'), async (importOriginal) => ({
+ ...(await importOriginal()),
+ prefetchFeedNew: async () => { if (pages.feedPrefetchFails) throw new Error('取数失败') },
+}));
+vi.mock('../../src/react/junk-queue/junk-queue-page', () => ({
+ JunkQueuePage: () => {
+ if (pages.junkBroken) throw new Error('垃圾队列画不出来');
+ return null;
+ },
+}));
+
+/** 装载时停在沉浸地址上:页面组 `path="*"` 只在不归路由树画的地址上画出 `children`。 */
+async function load() {
+ vi.resetModules();
+ window.history.replaceState(null, '', '/immerse');
+ const [history, router, routes] = await Promise.all([
+ import('../../src/history'), import('../../src/react/router/router'), import('../../src/react/router/managed-routes'),
+ ]);
+ return { ...history, ...router, ...routes };
+}
+type Loaded = Awaited<ReturnType<typeof load>>;
+
+const unmounts: Array<() => void> = [];
+afterEach(async () => {
+ for (const unmount of unmounts.splice(0)) await act(async () => { unmount() });
+ document.body.innerHTML = '';
+ Object.assign(pages, { feedBroken: false, junkBroken: false, feedPrefetchFails: false });
+ vi.unstubAllGlobals();
+ vi.restoreAllMocks();
+});
+
+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(), requestCloudDownload: 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),
+ };
+}
+
+/** 壳启动时的顺序:先画路由树,再接上取数。根的选项与 `configureRouter` 是同一份;返回根所在的容器,
+ * `children` 的标记节点画在那里面。 */
+async function mount(r: Loaded): Promise<HTMLElement> {
+ const el = document.createElement('div');
+ const root = createRoot(el, r.ROUTER_ROOT_OPTIONS);
+ await act(async () => { root.render(<r.RouterRoot actions={shellActions()}><i data-marker /></r.RouterRoot>) });
+ unmounts.push(() => root.unmount());
+ await act(async () => { r.connectManagedRoutes(Promise.resolve(r.prefetchManagedRoute)) });
+ return el;
+}
+
+/** 壳铺好骨架的容器。 */
+function container(id: string): HTMLElement {
+ const el = document.createElement('div');
+ el.id = id;
+ el.innerHTML = '<div class="geist-skeleton" data-skeleton="cards">正在读取</div>';
+ document.body.append(el);
+ return el;
+}
+
+/** 收下每一次上报;`console.error` 只静音,不数条数。取数一律回空闲、空列表。 */
+function watchReports() {
+ const reported = vi.fn();
+ vi.stubGlobal('reportError', reported);
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+ vi.stubGlobal('fetch', vi.fn(async () => ({ ok: true, status: 200, json: async () => ({ status: 'idle', items: [] }) })));
+ return reported;
+}
+
+function filterProps(): CatalogFilterProps {
+ return {
+ tiers: { key: 'k', performers: [], studios: [] }, empty: true, tags: [], tagFirst: 0,
+ views: [{ k: '', label: '全部', href: '/' }], state: '', count: { total: 0, shown: 0 }, trash: false,
+ sorts: [], layout: null, refreshing: false, offscreen: false, combo: [], comboHidden: true, comboHost: null,
+ actions: {
+ openEntity: vi.fn(), setView: vi.fn(), toggleTag: vi.fn(), clearFilter: vi.fn(), clearAll: vi.fn(),
+ setSort: vi.fn(), reshuffle: vi.fn(async () => {}), setLayout: vi.fn(), moreTops: vi.fn(async () => []),
+ },
+ helpers: { wireDrag: vi.fn(), wireScroller: vi.fn() },
+ };
+}
+
+function feedProps(host: HTMLElement, revision = 0): FeedNewProps {
+ return { host, revision, helpers: { feedRowHtml: () => '', wireFeedRow: vi.fn() }, actions: { settled: vi.fn() } };
+}
+
+function searchProps(exposed: { api: SearchApi | null }): SearchProps {
+ const input = document.createElement('input');
+ document.body.append(input);
+ return {
+ input, historyLimit: 10,
+ actions: { search: vi.fn(), openItem: vi.fn(), openEntity: vi.fn() },
+ helpers: {
+ pool: async () => [], coverHtml: () => '',
+ present: (el) => { el.hidden = false }, dismiss: (el) => { el.hidden = true },
+ wireScroller: () => {}, typed: () => {}, composing: () => {}, clearField: (el) => { el.value = '' },
+ },
+ expose: (api) => { exposed.api = api },
+ };
+}
+
+const always = () => true;
+
+async function openFilter(r: Loaded): Promise<HTMLElement> {
+ const el = container('catalogFilter');
+ await act(async () => {
+ expect(await r.openManagedRoute('catalog-filter', filterProps(), { container: el, isCurrent: always })).toBe(true);
+ });
+ return el;
+}
+
+it('附属面渲染抛错:只空那一面、撤掉登记、上报一次,另一面与整棵树照旧', async () => {
+ const reported = watchReports();
+ pages.feedBroken = true;
+ const r = await load();
+ const tree = await mount(r);
+ const filter = await openFilter(r);
+ const feed = container('feedNew');
+ await act(async () => {
+ expect(await r.openManagedRoute('feed-new', feedProps(feed), { container: feed, isCurrent: always }),
+ '首帧抛错时打开照样回 true').toBe(true);
+ });
+
+ expect(r.managedTaken(feed), '壳下次打开能重开').toBe(false);
+ expect(feed.childNodes.length, '坏的那一面连宿主一起撤掉').toBe(0);
+ expect(r.managedEntry(feed)).toBeNull();
+ expect(r.managedEntries().map((entry) => entry.path)).toEqual(['catalog-filter']);
+ expect(filter.querySelector(':scope > .peach-react [data-catalog-placeholder="performer"]'), '筛选条照画').not.toBeNull();
+ expect(tree.querySelector('[data-marker]'), '整棵树没卸').not.toBeNull();
+ expect(reported).toHaveBeenCalledTimes(1);
+ expect(reported).toHaveBeenCalledWith(expect.objectContaining({ message: '新作行画不出来' }));
+});
+
+it('抛错之后推补丁是空操作;壳每重开一次再报一次,换成好页面就画上', async () => {
+ const reported = watchReports();
+ pages.feedBroken = true;
+ const r = await load();
+ await mount(r);
+ const feed = container('feedNew');
+ const open = (revision: number) => r.openManagedRoute('feed-new', feedProps(feed, revision),
+ { container: feed, isCurrent: always });
+ await act(async () => { await open(0) });
+ expect(reported).toHaveBeenCalledTimes(1);
+
+ await act(async () => { r.updateManagedRoute(feed, { revision: 1 }) });
+ expect(reported, '没画上的容器推补丁不重画').toHaveBeenCalledTimes(1);
+ await act(async () => { await open(2) });
+ expect(reported, '确定性抛错每重开一次报一次').toHaveBeenCalledTimes(2);
+
+ pages.feedBroken = false;
+ await act(async () => { expect(await open(3)).toBe(true) });
+ expect(feed.querySelector(':scope > .peach-react [data-feed-good]')).not.toBeNull();
+ expect(r.managedTaken(feed)).toBe(true);
+ expect(reported).toHaveBeenCalledTimes(2);
+});
+
+it('首屏取数失败不是渲染错误:照画、不上报', async () => {
+ const reported = watchReports();
+ pages.feedPrefetchFails = true;
+ const r = await load();
+ await mount(r);
+ const feed = container('feedNew');
+ await act(async () => {
+ expect(await r.openManagedRoute('feed-new', feedProps(feed), { container: feed, isCurrent: always })).toBe(true);
+ });
+ expect(feed.querySelector(':scope > .peach-react [data-feed-good]')).not.toBeNull();
+ expect(r.managedTaken(feed)).toBe(true);
+ expect(reported).not.toHaveBeenCalled();
+});
+
+it('一页抛错:四座附属面照画,后退前进照旧派发', async () => {
+ const reported = watchReports();
+ pages.junkBroken = true;
+ const r = await load();
+ const tree = await mount(r);
+ const filter = await openFilter(r);
+ const feed = container('feedNew');
+ const notice = container('libraryProcessingNotice');
+ const menu = container('searchMenu');
+ const exposed: { api: SearchApi | null } = { api: null };
+ await act(async () => {
+ await r.openManagedRoute('feed-new', feedProps(feed), { container: feed, isCurrent: always });
+ await r.openManagedRoute('library-processing', { toast: vi.fn(), mode: 'notice' }, { container: notice, isCurrent: always });
+ await r.openManagedRoute('search', searchProps(exposed), { container: menu, isCurrent: always });
+ });
+ const dispatch = vi.fn();
+ await act(async () => { await r.startRouting(dispatch) });
+
+ const grid = container('grid');
+ await act(async () => { await r.openManagedRoute('/junk-files', {}, { container: grid, isCurrent: always }) });
+
+ expect(grid.childNodes.length).toBe(0);
+ expect(r.managedTaken(grid)).toBe(false);
+ expect(reported).toHaveBeenCalledTimes(1);
+ expect(r.managedEntries().map((entry) => entry.path).sort())
+ .toEqual(['catalog-filter', 'feed-new', 'library-processing', 'search']);
+ expect(filter.querySelector('[data-catalog-placeholder="performer"]')).not.toBeNull();
+ expect(feed.querySelector('[data-feed-good]')).not.toBeNull();
+ expect(notice.querySelector(':scope > .peach-react')).not.toBeNull();
+ expect(menu.querySelector(':scope > .peach-react')).not.toBeNull();
+ expect(exposed.api).not.toBeNull();
+ expect(tree.querySelector('[data-marker]')).not.toBeNull();
+
+ await act(async () => { window.dispatchEvent(new PopStateEvent('popstate', { state: window.history.state })) });
+ expect(dispatch, '派发点还活着').toHaveBeenCalledTimes(2);
+});
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 51b557a92..365cb5f5d 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -6,32 +6,32 @@ import { LOC as I, api as pe, brandIcon as me, entityPath as he, esc as ge, fmtC
import { MEDIA_SOURCE_ICONS as Oe, attachOverlayScrollbar as ke, closeAnchoredMenu as Ae, confirmModal as je, dialSliderHtml as Me, dismissMenu as Ne, emptyStateHtml as Pe, fitSkeleton as Fe, growCollapse as Ie, iconSwapHtml as Le, iconSwitchHtml as Re, indexSkeletonHtml as ze, loadingDotsHtml as Be, moveGlidePane as Ve, noteHtml as He, popBadges as Ue, popCount as We, presentMenu as Ge, revealTexts as Ke, scrollMovesAnchor as qe, selectFieldHtml as Je, setActionBusy as Ye, setCollapseOpen as Xe, setIconSwap as Ze, spinnerHtml as Qe, swapText as $e, wireAnchoredMenu as et, wireContextCard as tt, wireDialSlider as nt, wireHorizontalScroller as rt, wireIconSwitch as it, wireSelectField as at } from "/js/ui-components.js";
import { javDisplayName as ot, javTitleHtml as st } from "/js/jav-title.js";
import { tagLabel as ct } from "/js/tags.js";
-import { OVERLAY_PATHS as lt, backgroundOf as ut, listenManagedEntry as dt, managedEntries as ft, peachHistory as pt, routeSeen as mt } from "/dist/peach-ui.js";
+import { OVERLAY_PATHS as lt, backgroundOf as ut, failManagedRoute as dt, listenManagedEntry as ft, managedEntries as pt, peachHistory as mt, routeSeen as ht } from "/dist/peach-ui.js";
//#region \0rolldown/runtime.js
-var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, vt = Object.getOwnPropertyNames, yt = Object.getPrototypeOf, bt = Object.prototype.hasOwnProperty, xt = (e, t, n) => () => {
+var gt = Object.create, _t = Object.defineProperty, vt = Object.getOwnPropertyDescriptor, yt = Object.getOwnPropertyNames, bt = Object.getPrototypeOf, xt = Object.prototype.hasOwnProperty, St = (e, t, n) => () => {
if (n) throw n[0];
try {
return e && (t = e(e = 0)), t;
} catch (e) {
throw n = [e], e;
}
-}, St = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Ct = (e, t) => {
+}, Ct = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), wt = (e, t) => {
let n = {};
- for (var r in e) gt(n, r, {
+ for (var r in e) _t(n, r, {
get: e[r],
enumerable: !0
});
- return t || gt(n, Symbol.toStringTag, { value: "Module" }), n;
-}, wt = (e, t, n, r) => {
- if (t && typeof t == "object" || typeof t == "function") for (var i = vt(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !bt.call(e, s) && s !== n && gt(e, s, {
+ return t || _t(n, Symbol.toStringTag, { value: "Module" }), n;
+}, Tt = (e, t, n, r) => {
+ if (t && typeof t == "object" || typeof t == "function") for (var i = yt(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !xt.call(e, s) && s !== n && _t(e, s, {
get: ((e) => t[e]).bind(null, s),
- enumerable: !(r = _t(t, s)) || r.enumerable
+ enumerable: !(r = vt(t, s)) || r.enumerable
});
return e;
-}, Tt = (e, t, n) => (wt(e, t, "default"), n && wt(n, t, "default")), Et = (e, t, n) => (n = e == null ? {} : ht(yt(e)), wt(t || !e || !e.__esModule || !bt.call(e, "default") ? gt(n, "default", {
+}, Et = (e, t, n) => (Tt(e, t, "default"), n && Tt(n, t, "default")), Dt = (e, t, n) => (n = e == null ? {} : gt(bt(e)), Tt(t || !e || !e.__esModule || !xt.call(e, "default") ? _t(n, "default", {
value: e,
enumerable: !0
-}) : n, e)), Dt = (e) => bt.call(e, "module.exports") ? e["module.exports"] : wt(gt({}, "__esModule", { value: !0 }), e), Ot = /* @__PURE__ */ St(((e) => {
+}) : n, e)), Ot = (e) => xt.call(e, "module.exports") ? e["module.exports"] : Tt(_t({}, "__esModule", { value: !0 }), e), kt = /* @__PURE__ */ Ct(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;
function h(e) {
return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);
@@ -326,10 +326,10 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}, e.useTransition = function() {
return T.H.useTransition();
}, e.version = "19.3.0";
-})), kt = /* @__PURE__ */ St(((e, t) => {
- t.exports = Ot();
-})), At = /* @__PURE__ */ St(((e) => {
- var t = kt();
+})), At = /* @__PURE__ */ Ct(((e, t) => {
+ t.exports = kt();
+})), jt = /* @__PURE__ */ Ct(((e) => {
+ var t = At();
function n(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -456,7 +456,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.0";
-})), jt = /* @__PURE__ */ St(((e, t) => {
+})), Mt = /* @__PURE__ */ Ct(((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);
@@ -464,8 +464,8 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
console.error(e);
}
}
- n(), t.exports = At();
-})), Mt = /* @__PURE__ */ St(((e) => {
+ n(), t.exports = jt();
+})), Nt = /* @__PURE__ */ Ct(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -664,10 +664,10 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
};
};
-})), eee = /* @__PURE__ */ St(((e, t) => {
- t.exports = Mt();
-})), Nt = /* @__PURE__ */ St(((e) => {
- var t = eee(), n = kt(), r = jt();
+})), eee = /* @__PURE__ */ Ct(((e, t) => {
+ t.exports = Nt();
+})), Pt = /* @__PURE__ */ Ct(((e) => {
+ var t = eee(), n = At(), r = Mt();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -1236,10 +1236,10 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
}
var yt = Math.random().toString(36).slice(2), bt = "__reactFiber$" + yt, xt = "__reactProps$" + yt, St = "__reactContainer$" + yt, Ct = "__reactEvents$" + yt, wt = "__reactListeners$" + yt, Tt = "__reactHandles$" + yt, Et = "__reactResources$" + yt, Dt = "__reactMarker$" + yt, Ot = "__reactLoad$" + yt;
- function At(e) {
+ function kt(e) {
delete e[bt], delete e[xt], delete e[wt], delete e[Tt];
}
- function Mt(e) {
+ function jt(e) {
var t;
if (t = e[bt]) return t;
for (var n = e.parentNode; n;) {
@@ -1276,15 +1276,15 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
function It(e) {
e[Dt] = !0;
}
- function R(e) {
+ function Lt(e) {
e[Ot] = void 0;
}
- var Lt = /* @__PURE__ */ new Set(), Rt = {};
+ var R = /* @__PURE__ */ new Set(), Rt = {};
function zt(e, t) {
Bt(e, t), Bt(e + "Capture", t);
}
function Bt(e, t) {
- for (Rt[e] = t, e = 0; e < t.length; e++) Lt.add(t[e]);
+ for (Rt[e] = t, e = 0; e < t.length; e++) R.add(t[e]);
}
var Vt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Ht = {}, Ut = {};
function Wt(e) {
@@ -1832,7 +1832,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
twist: 0,
pointerType: 0,
isPrimary: 0
- })), z = Ln(w({}, Rn, { submitter: 0 })), ar = Ln(w({}, Bn, {
+ })), ar = Ln(w({}, Rn, { submitter: 0 })), z = Ln(w({}, Bn, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@@ -2352,7 +2352,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
ra = Sm(e);
- } else t === 27 ? (t = ra, V(e.type) ? (e = xm, xm = null, ra = e) : ra = t) : ra = na ? bm(e.stateNode.nextSibling) : null;
+ } else t === 27 ? (t = ra, Pp(e.type) ? (e = xm, xm = null, ra = e) : ra = t) : ra = na ? bm(e.stateNode.nextSibling) : null;
return !0;
}
function fa() {
@@ -4484,7 +4484,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
return t;
case 26: return qc(e, t), e === null ? (n = Wm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ia || (t.stateNode = wp(t.type, t.pendingProps, L.current, t)) : t.memoizedState = Wm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return we(t), e === null && ia && (r = t.stateNode = Em(t.type, t.pendingProps, L.current), na = t, oa = !0, a = ra, V(t.type) ? (xm = a, ra = bm(r.firstChild)) : ra = a), Lc(e, t, t.pendingProps.children, n), qc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 27: return we(t), e === null && ia && (r = t.stateNode = Em(t.type, t.pendingProps, L.current), na = t, oa = !0, a = ra, Pp(t.type) ? (xm = a, ra = bm(r.firstChild)) : ra = a), Lc(e, t, t.pendingProps.children, n), qc(e, t), e === null && (t.flags |= 4194304), t.child;
case 5: return e === null && ia && ((a = r = ra) && (r = mm(r, t.type, t.pendingProps, oa), r === null ? a = !1 : (t.stateNode = r, na = t, ra = bm(r.firstChild), oa = !1, a = !0)), a || ca(t)), we(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Tp(a, o) ? r = null : s !== null && Tp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = ts(e, t, is, null, null, n), vh._currentValue = a), qc(e, t), Lc(e, t, r, n), t.child;
case 6: return e === null && ia && ((e = n = ra) && (n = hm(n, t.pendingProps, oa), n === null ? e = !1 : (t.stateNode = n, na = t, ra = null, e = !0)), e || ca(t)), null;
case 13: return tl(e, t, n);
@@ -4948,7 +4948,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
}
function Rl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && V(e.type) || e.tag === 4;
+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Pp(e.type) || e.tag === 4;
}
function zl(e) {
a: for (;;) {
@@ -4957,7 +4957,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
e = e.return;
}
for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
- if (e.tag === 27 && V(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
+ if (e.tag === 27 && Pp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
e.child.return = e, e = e.child;
}
if (!(e.flags & 2)) return e.stateNode;
@@ -4966,12 +4966,12 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
function Bl(e, t, n, r) {
var i = e.tag;
if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = vn)), jl(e, r), Gt = !0;
- else if (i !== 4 && (i === 27 && (jl(e, r), r = null, V(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Bl(e, t, n, r), e = e.sibling; e !== null;) Bl(e, t, n, r), e = e.sibling;
+ else if (i !== 4 && (i === 27 && (jl(e, r), r = null, Pp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Bl(e, t, n, r), e = e.sibling; e !== null;) Bl(e, t, n, r), e = e.sibling;
}
function Vl(e, t, n, r) {
var i = e.tag;
if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), jl(e, r), Gt = !0;
- else if (i !== 4 && (i === 27 && (jl(e, r), r = null, V(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Vl(e, t, n, r), e = e.sibling; e !== null;) Vl(e, t, n, r), e = e.sibling;
+ else if (i !== 4 && (i === 27 && (jl(e, r), r = null, Pp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Vl(e, t, n, r), e = e.sibling; e !== null;) Vl(e, t, n, r), e = e.sibling;
}
function Hl(e) {
var t = e.stateNode, n = e.memoizedProps;
@@ -5371,7 +5371,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
function wu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, wu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && At(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
+ t !== null && (e.alternate = null, wu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && kt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
}
var Tu = null, Eu = !1;
function Du(e, t, n) {
@@ -5388,7 +5388,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
case 27:
lu || Al(n, t), Nl(n);
var r = Tu, i = Eu;
- V(n.type) && (Tu = n.stateNode, Eu = !1), Du(e, t, n), Dm(n.stateNode, n.type, n.memoizedProps), Tu = r, Eu = i;
+ Pp(n.type) && (Tu = n.stateNode, Eu = !1), Du(e, t, n), Dm(n.stateNode, n.type, n.memoizedProps), Tu = r, Eu = i;
break;
case 5: lu || Al(n, t), Nl(n);
case 6:
@@ -5406,7 +5406,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
break;
case 18:
- Tu !== null && (Eu ? (e = Tu, Pp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Qh(e)) : Pp(Tu, n.stateNode));
+ Tu !== null && (Eu ? (e = Tu, V(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Qh(e)) : V(Tu, n.stateNode));
break;
case 4:
r = Tu, i = Eu, Tu = n.stateNode.containerInfo, Eu = !0, Du(e, t, n), Tu = r, Eu = i;
@@ -5480,7 +5480,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
a: for (; l !== null;) {
switch (l.tag) {
case 27:
- if (V(l.type)) {
+ if (Pp(l.type)) {
Tu = l.stateNode, Eu = !1;
break a;
}
@@ -5512,13 +5512,13 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
var s = r[o];
s.ref.impl = s.nextImpl;
}
- Nu(t, e, n), B(e), a & 4 && (El(3, e, e.return), Tl(3, e), El(5, e, e.return));
+ Nu(t, e, n), Iu(e), a & 4 && (El(3, e, e.return), Tl(3, e), El(5, e, e.return));
break;
case 1:
- Nu(t, e, n), B(e), a & 512 && (lu || r === null || Al(r, r.return)), a & 64 && cu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ Nu(t, e, n), Iu(e), a & 512 && (lu || r === null || Al(r, r.return)), a & 64 && cu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
break;
case 26:
- if (o = Pu, Nu(t, e, n), B(e), a & 512 && (lu || r === null || Al(r, r.return)), a & 4) {
+ if (o = Pu, Nu(t, e, n), Iu(e), a & 512 && (lu || r === null || Al(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
@@ -5560,10 +5560,10 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
break;
case 27:
- Nu(t, e, n), B(e), a & 512 && (lu || r === null || Al(r, r.return)), r !== null && a & 4 && Ll(e, e.memoizedProps, r.memoizedProps);
+ Nu(t, e, n), Iu(e), a & 512 && (lu || r === null || Al(r, r.return)), r !== null && a & 4 && Ll(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = uu, uu = !1, Nu(t, e, n), uu = o, B(e), a & 512 && (lu || r === null || Al(r, r.return)), e.flags & 32) {
+ if (o = uu, uu = !1, Nu(t, e, n), uu = o, Iu(e), a & 512 && (lu || r === null || Al(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
un(t, ""), Gt = !0;
@@ -5574,7 +5574,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
a & 4 && e.stateNode != null && (t = e.memoizedProps, Ll(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (du = !0);
break;
case 6:
- if (Nu(t, e, n), B(e), a & 4) {
+ if (Nu(t, e, n), Iu(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
@@ -5585,42 +5585,42 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
break;
case 3:
- if (Gt = !1, th = null, o = Pu, Pu = jm(t.containerInfo), Nu(t, e, n), Pu = o, B(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ if (Gt = !1, th = null, o = Pu, Pu = jm(t.containerInfo), Nu(t, e, n), Pu = o, Iu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Qh(t.containerInfo);
} catch (t) {
Cf(e, e.return, t);
}
- du && (du = !1, Iu(e)), Gt = !1;
+ du && (du = !1, B(e)), Gt = !1;
break;
case 4:
- a = uu, uu = cu, r = Kt(), o = Pu, Pu = jm(e.stateNode.containerInfo), Nu(t, e, n), B(e), Pu = o, Gt && hu && (gu = !0), Gt = r, uu = a;
+ a = uu, uu = cu, r = Kt(), o = Pu, Pu = jm(e.stateNode.containerInfo), Nu(t, e, n), Iu(e), Pu = o, Gt && hu && (gu = !0), Gt = r, uu = a;
break;
case 12:
- Nu(t, e, n), B(e);
+ Nu(t, e, n), Iu(e);
break;
case 31:
- Nu(t, e, n), B(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Mu(e, t)));
+ Nu(t, e, n), Iu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Mu(e, t)));
break;
case 13:
- Nu(t, e, n), B(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (Cd = Re()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Mu(e, t)));
+ Nu(t, e, n), Iu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (Cd = Re()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Mu(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
var c = cu, l = lu, u = uu;
- cu = c || o, uu = u || o, lu = l || s, Nu(t, e, n), lu = l, uu = u, cu = c, B(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || cu || lu || (t = s || lu, n = cu, r = lu, cu = o || cu, lu = t, Bu(e, 2), cu = n, lu = r), !o && uu || xu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Mu(e, n))));
+ cu = c || o, uu = u || o, lu = l || s, Nu(t, e, n), lu = l, uu = u, cu = c, Iu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || cu || lu || (t = s || lu, n = cu, r = lu, cu = o || cu, lu = t, Bu(e, 2), cu = n, lu = r), !o && uu || xu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Mu(e, n))));
break;
case 19:
- Nu(t, e, n), B(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Mu(e, t)));
+ Nu(t, e, n), Iu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Mu(e, t)));
break;
case 30:
- a & 512 && (lu || r === null || Al(r, r.return)), a = Kt(), o = hu, s = (n & 335544064) === n, c = e.memoizedProps, hu = s && vi(c.default, c.update) !== "none", Nu(t, e, n), B(e), s && r !== null && Gt && (e.flags |= 4), hu = o, Gt = a;
+ a & 512 && (lu || r === null || Al(r, r.return)), a = Kt(), o = hu, s = (n & 335544064) === n, c = e.memoizedProps, hu = s && vi(c.default, c.update) !== "none", Nu(t, e, n), Iu(e), s && r !== null && Gt && (e.flags |= 4), hu = o, Gt = a;
break;
case 21: break;
case 7: a & 512 && (lu || r === null || Al(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: Nu(t, e, n), B(e);
+ default: Nu(t, e, n), Iu(e);
}
}
- function B(e) {
+ function Iu(e) {
var t = e.flags;
if (t & 2) {
try {
@@ -5665,10 +5665,10 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
t & 4096 && (e.flags &= -4097);
}
- function Iu(e) {
+ function B(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Iu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Eh = !0, t.reset(), Eh = !1), e = e.sibling;
+ B(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Eh = !0, t.reset(), Eh = !1), e = e.sibling;
}
}
function Lu(e, t) {
@@ -6798,7 +6798,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
var ep = "_reactListening" + Math.random().toString(36).slice(2);
function tp(e) {
if (!e[ep]) {
- e[ep] = !0, Lt.forEach(function(t) {
+ e[ep] = !0, R.forEach(function(t) {
t !== "selectionchange" && (Xf.has(t) || $f(t, !1, e), $f(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
@@ -6834,7 +6834,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
s = s.return;
}
for (; c !== null;) {
- if (s = Mt(c), s === null) return;
+ if (s = jt(c), s === null) return;
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
r = a = s;
continue a;
@@ -6891,7 +6891,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
case "touchend":
case "touchmove":
case "touchstart":
- l = ar;
+ l = z;
break;
case ai:
case oi:
@@ -6924,7 +6924,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
l = ir;
break;
case "submit":
- l = z;
+ l = ar;
break;
case "toggle":
case "beforetoggle": l = cr;
@@ -6944,8 +6944,8 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== yn && (u = n.relatedTarget || n.fromElement) && (Mt(u) || u[St])) break a;
- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Mt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ir, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Pt(c), h = l == null ? u : Pt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Mt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, op) : null, c !== null && sp(s, u, c, d, !1), l !== null && f !== null && sp(s, f, l, d, !0)));
+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== yn && (u = n.relatedTarget || n.fromElement) && (jt(u) || u[St])) break a;
+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? jt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ir, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Pt(c), h = l == null ? u : Pt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, jt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, op) : null, c !== null && sp(s, u, c, d, !1), l !== null && f !== null && sp(s, f, l, d, !0)));
}
a: {
if (c = r ? Pt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Or;
@@ -7624,10 +7624,10 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
throw e;
});
}
- function V(e) {
+ function Pp(e) {
return e === "head";
}
- function Pp(e, t) {
+ function V(e, t) {
var n = t, r = 0;
do {
var i = n.nextSibling;
@@ -7975,7 +7975,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || sm(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
function sm(e, t, n, r, i) {
- var a = Mt(i);
+ var a = jt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -8072,7 +8072,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
case "HTML":
case "HEAD":
case "BODY":
- pm(n), At(n);
+ pm(n), kt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -8215,11 +8215,11 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
var i = n[r];
n.hasOwnProperty(r) && i != null && fp(e, t, r, null, hp, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === vn && (e.onclick = null), At(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === vn && (e.onclick = null), kt(e);
}
function Om(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
- At(e);
+ kt(e);
}
var km = /* @__PURE__ */ new Map(), Am = /* @__PURE__ */ new Set();
function jm(e) {
@@ -8287,7 +8287,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}, n), km.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Km(a)) || t === "script" && r.querySelector(Xm(a))))) {
var o = r.createElement("link");
mp(o, "link", e), t === "style" && (o[Ot] = !0, o.onload = o.onerror = function() {
- R(o);
+ Lt(o);
}), It(o), r.head.appendChild(o);
}
}
@@ -8466,7 +8466,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[Ot] = !0, t.onload = t.onerror = R.bind(null, t), mp(t, "link", n), It(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[Ot] = !0, t.onload = t.onerror = Lt.bind(null, t), mp(t, "link", n), It(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
@@ -8665,17 +8665,17 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
function xh(e) {
return e ? (e = ki, e) : ki;
}
- function H(e, t, n, r, i, a) {
+ function Sh(e, t, n, r, i, a) {
i = xh(i), r.context === null ? r.context = i : r.pendingContext = i, r = _o(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = vo(e, r, t), n !== null && (Ud(n, e, t), yo(n, e, t));
}
- function Sh(e, t) {
+ function H(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
var n = e.retryLane;
e.retryLane = n !== 0 && n < t ? n : t;
}
}
function Ch(e, t) {
- Sh(e, t), (e = e.alternate) && Sh(e, t);
+ H(e, t), (e = e.alternate) && H(e, t);
}
function wh(e) {
if (e.tag === 13 || e.tag === 31) {
@@ -8749,7 +8749,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
}
var jh = null;
function Mh(e) {
- if (jh = null, e = Mt(e), e !== null) {
+ if (jh = null, e = jt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -8898,7 +8898,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
return !1;
}
function Gh(e) {
- var t = Mt(e.target);
+ var t = jt(e.target);
if (t !== null) {
var n = o(t);
if (n !== null) {
@@ -9028,13 +9028,13 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- H(n, Bd(), e, t, null, null);
+ Sh(n, Bd(), e, t, null, null);
}, tg.prototype.unmount = eg.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- H(e.current, 2, null, e, null, null), Jd(), t[St] = null;
+ Sh(e.current, 2, null, e, null, null), Jd(), t[St] = null;
}
};
function tg(e) {
@@ -9077,7 +9077,7 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
var n = !1, r = "", o = Ec, s = Dc, c = Oc;
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 = bh(e, 1, !1, null, null, n, r, null, o, s, c, $h), e[St] = t.current, tp(e), new eg(t);
};
-})), Pt = /* @__PURE__ */ St(((e, t) => {
+})), Ft = /* @__PURE__ */ Ct(((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);
@@ -9085,8 +9085,8 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
console.error(e);
}
}
- n(), t.exports = Nt();
-})), Ft = /* @__PURE__ */ St(((e) => {
+ n(), t.exports = Pt();
+})), It = /* @__PURE__ */ Ct(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
function r(e, n, r) {
var i = null;
@@ -9101,48 +9101,48 @@ var ht = Object.create, gt = Object.defineProperty, _t = Object.getOwnPropertyDe
};
}
e.Fragment = n, e.jsx = r, e.jsxs = r;
-})), It = /* @__PURE__ */ St(((e, t) => {
- t.exports = Ft();
-})), R = /* @__PURE__ */ Et(kt(), 1), Lt = (0, R.createContext)({});
+})), Lt = /* @__PURE__ */ Ct(((e, t) => {
+ t.exports = It();
+})), R = /* @__PURE__ */ Dt(At(), 1), Rt = (0, R.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function Rt(e) {
+function zt(e) {
let t = (0, R.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var zt = typeof window < "u" ? R.useLayoutEffect : R.useEffect, Bt = /* @__PURE__ */ (0, R.createContext)(null);
+var Bt = typeof window < "u" ? R.useLayoutEffect : R.useEffect, Vt = /* @__PURE__ */ (0, R.createContext)(null);
//#endregion
//#region node_modules/motion-utils/dist/es/array.mjs
-function Vt(e, t) {
+function Ht(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function Ht(e, t) {
+function Ut(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var Ut = (e, t, n) => n > t ? t : n < e ? e : n, Wt = {}, Gt = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Kt = (e) => typeof e == "object" && !!e, qt = (e) => /^0[^.\s]+$/u.test(e);
+var Wt = (e, t, n) => n > t ? t : n < e ? e : n, Gt = {}, Kt = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), qt = (e) => typeof e == "object" && !!e, Jt = (e) => /^0[^.\s]+$/u.test(e);
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function Jt(e) {
+function Yt(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var Yt = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Xt = (...e) => e.reduce((e, t) => (n) => t(e(n))), Zt = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var Xt = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Zt = (...e) => e.reduce((e, t) => (n) => t(e(n))), Qt = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, Qt = class {
+}, $t = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return Vt(this.subscriptions, e), () => Ht(this.subscriptions, e);
+ return Ht(this.subscriptions, e), () => Ut(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -9160,42 +9160,42 @@ var Yt = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Xt = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, $t = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, en = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, tn = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, nn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, rn = 1e-7, an = 12;
-function on(e, t, n, r, i) {
+}, en = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, tn = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, nn = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, rn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, an = 1e-7, on = 12;
+function sn(e, t, n, r, i) {
let a, o, s = 0;
do
- o = t + (n - t) / 2, a = nn(o, r, i) - e, a > 0 ? n = o : t = o;
- while (Math.abs(a) > rn && ++s < an);
+ o = t + (n - t) / 2, a = rn(o, r, i) - e, a > 0 ? n = o : t = o;
+ while (Math.abs(a) > an && ++s < on);
return o;
}
/*#__NO_SIDE_EFFECTS__*/
-function sn(e, t, n, r) {
- if (e === t && n === r) return Yt;
- let i = (t) => on(t, 0, 1, e, n);
- return (e) => e === 0 || e === 1 ? e : nn(i(e), t, r);
+function cn(e, t, n, r) {
+ if (e === t && n === r) return Xt;
+ let i = (t) => sn(t, 0, 1, e, n);
+ return (e) => e === 0 || e === 1 ? e : rn(i(e), t, r);
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var cn = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ln = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), un = /*@__PURE__*/ sn(.33, 1.53, .69, .99), dn = /*@__PURE__*/ ln(un), fn = /*@__PURE__*/ cn(dn), pn = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * dn(e) : .5 * (2 - 2 ** (-10 * (e - 1))), mn = (e) => 1 - Math.sin(Math.acos(e)), hn = /* @__PURE__ */ ln(mn), gn = /* @__PURE__ */ cn(mn), _n = /*@__PURE__*/ sn(.42, 0, 1, 1), vn = /*@__PURE__*/ sn(0, 0, .58, 1), yn = /*@__PURE__*/ sn(.42, 0, .58, 1), bn = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", xn = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Sn = {
- linear: Yt,
- easeIn: _n,
- easeInOut: yn,
- easeOut: vn,
- circIn: mn,
- circInOut: gn,
- circOut: hn,
- backIn: dn,
- backInOut: fn,
- backOut: un,
- anticipate: pn
-}, Cn = (e) => typeof e == "string", wn = (e) => {
- if (/* @__PURE__ */ xn(e)) {
+var ln = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, un = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), dn = /*@__PURE__*/ cn(.33, 1.53, .69, .99), fn = /*@__PURE__*/ un(dn), pn = /*@__PURE__*/ ln(fn), mn = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * fn(e) : .5 * (2 - 2 ** (-10 * (e - 1))), hn = (e) => 1 - Math.sin(Math.acos(e)), gn = /* @__PURE__ */ un(hn), _n = /* @__PURE__ */ ln(hn), vn = /*@__PURE__*/ cn(.42, 0, 1, 1), yn = /*@__PURE__*/ cn(0, 0, .58, 1), bn = /*@__PURE__*/ cn(.42, 0, .58, 1), xn = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", Sn = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Cn = {
+ linear: Xt,
+ easeIn: vn,
+ easeInOut: bn,
+ easeOut: yn,
+ circIn: hn,
+ circInOut: _n,
+ circOut: gn,
+ backIn: fn,
+ backInOut: pn,
+ backOut: dn,
+ anticipate: mn
+}, wn = (e) => typeof e == "string", Tn = (e) => {
+ if (/* @__PURE__ */ Sn(e)) {
e.length;
let [t, n, r, i] = e;
- return /* @__PURE__ */ sn(t, n, r, i);
+ return /* @__PURE__ */ cn(t, n, r, i);
}
- return Cn(e) ? (Sn[e], `${e}`, Sn[e]) : e;
-}, Tn = [
+ return wn(e) ? (Cn[e], `${e}`, Cn[e]) : e;
+}, En = [
"setup",
"read",
"resolveKeyframes",
@@ -9207,7 +9207,7 @@ var cn = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 -
];
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function En(e) {
+function Dn(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a = /* @__PURE__ */ new WeakSet(), o = {
delta: 0,
timestamp: 0,
@@ -9238,25 +9238,25 @@ function En(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var Dn = 40;
-function On(e, t) {
+var On = 40;
+function kn(e, t) {
let n = !1, r = !0, i = {
delta: 0,
timestamp: 0,
isProcessing: !1
- }, a = () => n = !0, o = Tn.reduce((e, t) => (e[t] = En(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = Wt.useManualTiming, o = a ? i.timestamp : performance.now();
- n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, Dn), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
+ }, a = () => n = !0, o = En.reduce((e, t) => (e[t] = Dn(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = Gt.useManualTiming, o = a ? i.timestamp : performance.now();
+ n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, On), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
}, g = () => {
n = !0, r = !0, i.isProcessing || e(h);
};
return {
- schedule: Tn.reduce((e, t) => {
+ schedule: En.reduce((e, t) => {
let r = o[t];
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < Tn.length; t++) o[Tn[t]].cancel(e);
+ for (let t = 0; t < En.length; t++) o[En[t]].cancel(e);
},
state: i,
steps: o
@@ -9264,59 +9264,59 @@ function On(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: kn, cancel: An, state: jn, steps: Mn } = /* @__PURE__ */ On(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Yt, !0), Nn;
-function Pn() {
- Nn = void 0;
+var { schedule: An, cancel: jn, state: Mn, steps: Nn } = /* @__PURE__ */ kn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Xt, !0), Pn;
+function Fn() {
+ Pn = void 0;
}
-var Fn = {
- now: () => (Nn === void 0 && Fn.set(jn.isProcessing || Wt.useManualTiming ? jn.timestamp : performance.now()), Nn),
+var In = {
+ now: () => (Pn === void 0 && In.set(Mn.isProcessing || Gt.useManualTiming ? Mn.timestamp : performance.now()), Pn),
set: (e) => {
- Nn = e, queueMicrotask(Pn);
+ Pn = e, queueMicrotask(Fn);
}
-}, In = (e) => (t) => typeof t == "string" && t.startsWith(e), Ln = /*@__PURE__*/ In("--"), Rn = /*@__PURE__*/ In("var(--"), zn = (e) => Rn(e) ? Bn.test(e.split("/*")[0].trim()) : !1, Bn = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function Vn(e) {
+}, Ln = (e) => (t) => typeof t == "string" && t.startsWith(e), Rn = /*@__PURE__*/ Ln("--"), zn = /*@__PURE__*/ Ln("var(--"), Bn = (e) => zn(e) ? Vn.test(e.split("/*")[0].trim()) : !1, Vn = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function Hn(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var Hn = {
+var Un = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, Un = {
- ...Hn,
- transform: (e) => Ut(0, 1, e)
}, Wn = {
- ...Hn,
+ ...Un,
+ transform: (e) => Wt(0, 1, e)
+}, Gn = {
+ ...Un,
default: 1
-}, Gn = (e) => Math.round(e * 1e5) / 1e5, Kn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, Kn = (e) => Math.round(e * 1e5) / 1e5, qn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function qn(e) {
+function Jn(e) {
return e == null;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var Jn = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Yn = (e, t) => (n) => !!(typeof n == "string" && Jn.test(n) && n.startsWith(e) || t && !qn(n) && Object.prototype.hasOwnProperty.call(n, t)), Xn = (e, t, n) => (r) => {
+var Yn = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Xn = (e, t) => (n) => !!(typeof n == "string" && Yn.test(n) && n.startsWith(e) || t && !Jn(n) && Object.prototype.hasOwnProperty.call(n, t)), Zn = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(Kn);
+ let [i, a, o, s] = r.match(qn);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, Zn = (e) => Ut(0, 255, e), Qn = {
- ...Hn,
- transform: (e) => Math.round(Zn(e))
-}, $n = {
- test: /*@__PURE__*/ Yn("rgb", "red"),
- parse: /*@__PURE__*/ Xn("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Qn.transform(e) + ", " + Qn.transform(t) + ", " + Qn.transform(n) + ", " + Gn(Un.transform(r)) + ")"
+}, Qn = (e) => Wt(0, 255, e), $n = {
+ ...Un,
+ transform: (e) => Math.round(Qn(e))
+}, er = {
+ test: /*@__PURE__*/ Xn("rgb", "red"),
+ parse: /*@__PURE__*/ Zn("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + $n.transform(e) + ", " + $n.transform(t) + ", " + $n.transform(n) + ", " + Kn(Wn.transform(r)) + ")"
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
-function er(e) {
+function tr(e) {
let t = "", n = "", r = "", i = "";
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
red: parseInt(t, 16),
@@ -9325,38 +9325,38 @@ function er(e) {
alpha: i ? parseInt(i, 16) / 255 : 1
};
}
-var tr = {
- test: /*@__PURE__*/ Yn("#"),
- parse: er,
- transform: $n.transform
-}, nr = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var nr = {
+ test: /*@__PURE__*/ Xn("#"),
+ parse: tr,
+ transform: er.transform
+}, rr = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), rr = /*@__PURE__*/ nr("deg"), ir = /*@__PURE__*/ nr("%"), z = /*@__PURE__*/ nr("px"), ar = /*@__PURE__*/ nr("vh"), or = /*@__PURE__*/ nr("vw"), sr = {
- ...ir,
- parse: (e) => ir.parse(e) / 100,
- transform: (e) => ir.transform(e * 100)
-}, cr = {
- test: /*@__PURE__*/ Yn("hsl", "hue"),
- parse: /*@__PURE__*/ Xn("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + ir.transform(Gn(t)) + ", " + ir.transform(Gn(n)) + ", " + Gn(Un.transform(r)) + ")"
+}), ir = /*@__PURE__*/ rr("deg"), ar = /*@__PURE__*/ rr("%"), z = /*@__PURE__*/ rr("px"), or = /*@__PURE__*/ rr("vh"), sr = /*@__PURE__*/ rr("vw"), cr = {
+ ...ar,
+ parse: (e) => ar.parse(e) / 100,
+ transform: (e) => ar.transform(e * 100)
}, lr = {
- test: (e) => $n.test(e) || tr.test(e) || cr.test(e),
- parse: (e) => $n.test(e) ? $n.parse(e) : cr.test(e) ? cr.parse(e) : tr.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? $n.transform(e) : cr.transform(e),
+ test: /*@__PURE__*/ Xn("hsl", "hue"),
+ parse: /*@__PURE__*/ Zn("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + ar.transform(Kn(t)) + ", " + ar.transform(Kn(n)) + ", " + Kn(Wn.transform(r)) + ")"
+}, ur = {
+ test: (e) => er.test(e) || nr.test(e) || lr.test(e),
+ parse: (e) => er.test(e) ? er.parse(e) : lr.test(e) ? lr.parse(e) : nr.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? er.transform(e) : lr.transform(e),
getAnimatableNone: (e) => {
- let t = lr.parse(e);
- return t.alpha = 0, lr.transform(t);
+ let t = ur.parse(e);
+ return t.alpha = 0, ur.transform(t);
}
-}, ur = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
+}, dr = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs
-function dr(e) {
- return isNaN(e) && typeof e == "string" && (e.match(Kn)?.length || 0) + (e.match(ur)?.length || 0) > 0;
+function fr(e) {
+ return isNaN(e) && typeof e == "string" && (e.match(qn)?.length || 0) + (e.match(dr)?.length || 0) > 0;
}
-var fr = "number", pr = "color", mr = "var", hr = "var(", gr = "${}", _r = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
-function vr(e) {
+var pr = "number", mr = "color", hr = "var", gr = "var(", _r = "${}", vr = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
+function yr(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -9364,51 +9364,51 @@ function vr(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(_r, (e) => (lr.test(e) ? (r.color.push(a), i.push(pr), n.push(lr.parse(e))) : e.startsWith(hr) ? (r.var.push(a), i.push(mr), n.push(e)) : (r.number.push(a), i.push(fr), n.push(parseFloat(e))), ++a, gr)).split(gr),
+ split: t.replace(vr, (e) => (ur.test(e) ? (r.color.push(a), i.push(mr), n.push(ur.parse(e))) : e.startsWith(gr) ? (r.var.push(a), i.push(hr), n.push(e)) : (r.number.push(a), i.push(pr), n.push(parseFloat(e))), ++a, _r)).split(_r),
indexes: r,
types: i
};
}
-function yr(e) {
- return vr(e).values;
+function br(e) {
+ return yr(e).values;
}
-function br({ split: e, types: t }) {
+function xr({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === fr ? Gn(r[a]) : e === pr ? lr.transform(r[a]) : r[a];
+ i += e === pr ? Kn(r[a]) : e === mr ? ur.transform(r[a]) : r[a];
}
return i;
};
}
-function xr(e) {
- return br(vr(e));
+function Sr(e) {
+ return xr(yr(e));
}
-var Sr = (e) => typeof e == "number" ? 0 : lr.test(e) ? lr.getAnimatableNone(e) : e, Cr = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Sr(e);
-function wr(e) {
- let t = vr(e);
- return br(t)(t.values.map((e, n) => Cr(e, t.split[n])));
+var Cr = (e) => typeof e == "number" ? 0 : ur.test(e) ? ur.getAnimatableNone(e) : e, wr = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Cr(e);
+function Tr(e) {
+ let t = yr(e);
+ return xr(t)(t.values.map((e, n) => wr(e, t.split[n])));
}
-var Tr = {
- test: dr,
- parse: yr,
- createTransformer: xr,
- getAnimatableNone: wr
+var Er = {
+ test: fr,
+ parse: br,
+ createTransformer: Sr,
+ getAnimatableNone: Tr
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function Er(e, t, n) {
+function Dr(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function Dr({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function Or({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = Er(s, r, e + 1 / 3), a = Er(s, r, e), o = Er(s, r, e - 1 / 3);
+ i = Dr(s, r, e + 1 / 3), a = Dr(s, r, e), o = Dr(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -9419,61 +9419,61 @@ function Dr({ hue: e, saturation: t, lightness: n, alpha: r }) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function Or(e, t) {
+function kr(e, t) {
return (n) => n > 0 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var kr = (e, t, n) => e + (t - e) * n, Ar = (e, t, n) => {
+var Ar = (e, t, n) => e + (t - e) * n, jr = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, jr = [
- tr,
- $n,
- cr
-], Mr = (e) => jr.find((t) => t.test(e));
-function Nr(e) {
- let t = Mr(e);
+}, Mr = [
+ nr,
+ er,
+ lr
+], Nr = (e) => Mr.find((t) => t.test(e));
+function Pr(e) {
+ let t = Nr(e);
if (`${e}`, !t) return !1;
let n = t.parse(e);
- return t === cr && (n = Dr(n)), n;
+ return t === lr && (n = Or(n)), n;
}
-var Pr = (e, t) => {
- let n = Nr(e), r = Nr(t);
- if (!n || !r) return Or(e, t);
+var Fr = (e, t) => {
+ let n = Pr(e), r = Pr(t);
+ if (!n || !r) return kr(e, t);
let i = { ...n };
- return (e) => (i.red = Ar(n.red, r.red, e), i.green = Ar(n.green, r.green, e), i.blue = Ar(n.blue, r.blue, e), i.alpha = kr(n.alpha, r.alpha, e), $n.transform(i));
-}, Fr = /* @__PURE__ */ new Set(["none", "hidden"]);
-function Ir(e, t) {
- return Fr.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return (e) => (i.red = jr(n.red, r.red, e), i.green = jr(n.green, r.green, e), i.blue = jr(n.blue, r.blue, e), i.alpha = Ar(n.alpha, r.alpha, e), er.transform(i));
+}, Ir = /* @__PURE__ */ new Set(["none", "hidden"]);
+function Lr(e, t) {
+ return Ir.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
-function Lr(e, t) {
- return (n) => kr(e, t, n);
+function Rr(e, t) {
+ return (n) => Ar(e, t, n);
}
-function Rr(e) {
- return typeof e == "number" ? Lr : typeof e == "string" ? zn(e) ? Or : lr.test(e) ? Pr : Hr : Array.isArray(e) ? zr : typeof e == "object" ? lr.test(e) ? Pr : Br : Or;
+function zr(e) {
+ return typeof e == "number" ? Rr : typeof e == "string" ? Bn(e) ? kr : ur.test(e) ? Fr : Ur : Array.isArray(e) ? Br : typeof e == "object" ? ur.test(e) ? Fr : Vr : kr;
}
-function zr(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => Rr(e)(e, t[n]));
+function Br(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => zr(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
};
}
-function Br(e, t) {
+function Vr(e, t) {
let n = {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Rr(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = zr(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
};
}
-function Vr(e, t) {
+function Hr(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -9485,50 +9485,50 @@ function Vr(e, t) {
}
return n;
}
-var Hr = (e, t) => {
- let n = Tr.createTransformer(t), r = vr(e), i = vr(t);
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Fr.has(e) && !i.values.length || Fr.has(t) && !r.values.length ? Ir(e, t) : Xt(zr(Vr(r, i), i.values), n) : (`${e}${t}`, Or(e, t));
+var Ur = (e, t) => {
+ let n = Er.createTransformer(t), r = yr(e), i = yr(t);
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Ir.has(e) && !i.values.length || Ir.has(t) && !r.values.length ? Lr(e, t) : Zt(Br(Hr(r, i), i.values), n) : (`${e}${t}`, kr(e, t));
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
-function Ur(e, t, n) {
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? kr(e, t, n) : Rr(e)(e, t);
+function Wr(e, t, n) {
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Ar(e, t, n) : zr(e)(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
-var Wr = (e) => {
+var Gr = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => kn.update(t, e),
- stop: () => An(t),
- now: () => jn.isProcessing ? jn.timestamp : Fn.now()
+ start: (e = !0) => An.update(t, e),
+ stop: () => jn(t),
+ now: () => Mn.isProcessing ? Mn.timestamp : In.now()
};
-}, Gr = (e, t, n = 10) => {
+}, Kr = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, Kr = 2e4;
-function qr(e) {
+}, qr = 2e4;
+function Jr(e) {
let t = 0, n = e.next(t);
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
return t >= 2e4 ? Infinity : t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function Jr(e, t = 100, n) {
+function Yr(e, t = 100, n) {
let r = n({
...e,
keyframes: [0, t]
- }), i = Math.min(qr(r), Kr);
+ }), i = Math.min(Jr(r), qr);
return {
type: "keyframes",
ease: (e) => r.next(i * e).value / t,
- duration: /* @__PURE__ */ en(i)
+ duration: /* @__PURE__ */ tn(i)
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var Yr = {
+var Xr = {
stiffness: 100,
damping: 10,
mass: 1,
@@ -9549,31 +9549,31 @@ var Yr = {
minDamping: .05,
maxDamping: 1
};
-function Xr(e, t) {
+function Zr(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var Zr = 12;
-function Qr(e, t, n) {
+var Qr = 12;
+function $r(e, t, n) {
let r = n;
- for (let n = 1; n < Zr; n++) r -= e(r) / t(r);
+ for (let n = 1; n < Qr; n++) r -= e(r) / t(r);
return r;
}
-var $r = .001;
-function ei({ duration: e = Yr.duration, bounce: t = Yr.bounce, velocity: n = Yr.velocity, mass: r = Yr.mass }) {
+var ei = .001;
+function ti({ duration: e = Xr.duration, bounce: t = Xr.bounce, velocity: n = Xr.velocity, mass: r = Xr.mass }) {
let i, a;
- Yr.maxDuration;
+ Xr.maxDuration;
let o = 1 - t;
- o = Ut(Yr.minDamping, Yr.maxDamping, o), e = Ut(Yr.minDuration, Yr.maxDuration, /* @__PURE__ */ en(e)), o < 1 ? (i = (t) => {
- let r = t * o, i = r * e, a = r - n, s = Xr(t, o), c = Math.exp(-i);
- return $r - a / s * c;
+ o = Wt(Xr.minDamping, Xr.maxDamping, o), e = Wt(Xr.minDuration, Xr.maxDuration, /* @__PURE__ */ tn(e)), o < 1 ? (i = (t) => {
+ let r = t * o, i = r * e, a = r - n, s = Zr(t, o), c = Math.exp(-i);
+ return ei - a / s * c;
}, a = (t) => {
- let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Xr(t ** 2, o);
- return (-i(t) + $r > 0 ? -1 : 1) * ((a - s) * c) / l;
+ let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Zr(t ** 2, o);
+ return (-i(t) + ei > 0 ? -1 : 1) * ((a - s) * c) / l;
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
- let s = 5 / e, c = Qr(i, a, s);
- if (e = /* @__PURE__ */ $t(e), isNaN(c)) return {
- stiffness: Yr.stiffness,
- damping: Yr.damping,
+ let s = 5 / e, c = $r(i, a, s);
+ if (e = /* @__PURE__ */ en(e), isNaN(c)) return {
+ stiffness: Xr.stiffness,
+ damping: Xr.damping,
duration: e
};
{
@@ -9585,47 +9585,47 @@ function ei({ duration: e = Yr.duration, bounce: t = Yr.bounce, velocity: n = Yr
};
}
}
-var ti = ["duration", "bounce"], ni = [
+var ni = ["duration", "bounce"], ri = [
"stiffness",
"damping",
"mass"
];
-function ri(e, t) {
+function ii(e, t) {
return t.some((t) => e[t] !== void 0);
}
-function ii(e) {
+function ai(e) {
let t = {
- velocity: Yr.velocity,
- stiffness: Yr.stiffness,
- damping: Yr.damping,
- mass: Yr.mass,
+ velocity: Xr.velocity,
+ stiffness: Xr.stiffness,
+ damping: Xr.damping,
+ mass: Xr.mass,
isResolvedFromDuration: !1,
...e
};
- if (!ri(e, ni) && ri(e, ti)) {
+ if (!ii(e, ri) && ii(e, ni)) {
if (t.velocity = 0, e.visualDuration) {
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * Ut(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * Wt(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
t = {
...t,
- mass: Yr.mass,
+ mass: Xr.mass,
stiffness: i,
damping: a
};
} else {
- let n = ei({
+ let n = ti({
...e,
velocity: 0
});
t = {
...t,
...n,
- mass: Yr.mass
+ mass: Xr.mass
}, t.isResolvedFromDuration = !0;
}
}
return t;
}
-function ai(e = Yr.visualDuration, t = Yr.bounce) {
+function oi(e = Xr.visualDuration, t = Xr.bounce) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -9633,13 +9633,13 @@ function ai(e = Yr.visualDuration, t = Yr.bounce) {
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
done: !1,
value: a
- }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = ii({
+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = ai({
...n,
- velocity: -/* @__PURE__ */ en(n.velocity || 0)
- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ en(Math.sqrt(c / u)), v = Math.abs(g) < 5;
- r ||= v ? Yr.restSpeed.granular : Yr.restSpeed.default, i ||= v ? Yr.restDelta.granular : Yr.restDelta.default;
+ velocity: -/* @__PURE__ */ tn(n.velocity || 0)
+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ tn(Math.sqrt(c / u)), v = Math.abs(g) < 5;
+ r ||= v ? Xr.restSpeed.granular : Xr.restSpeed.default, i ||= v ? Xr.restDelta.granular : Xr.restDelta.default;
let y, b, x, S, C, w;
- if (h < 1) x = Xr(_, h), S = (m + h * _ * g) / x, y = (e) => {
+ if (h < 1) x = Zr(_, h), S = (m + h * _ * g) / x, y = (e) => {
let t = Math.exp(-h * _ * e);
return o - t * (S * Math.sin(x * e) + g * Math.cos(x * e));
}, C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
@@ -9661,42 +9661,42 @@ function ai(e = Yr.visualDuration, t = Yr.bounce) {
}
let T = {
calculatedDuration: p && d || null,
- velocity: (e) => /* @__PURE__ */ $t(b(e)),
+ velocity: (e) => /* @__PURE__ */ en(b(e)),
next: (e) => {
if (!p && h < 1) {
- let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ $t(t * (C * n + w * a));
+ let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ en(t * (C * n + w * a));
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
}
let t = y(e);
if (p) s.done = e >= d;
else {
- let n = /* @__PURE__ */ $t(b(e));
+ let n = /* @__PURE__ */ en(b(e));
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
}
return s.value = s.done ? o : t, s;
},
toString: () => {
- let e = Math.min(qr(T), Kr), t = Gr((t) => T.next(e * t).value, e, 30);
+ let e = Math.min(Jr(T), qr), t = Kr((t) => T.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return T;
}
-ai.applyToOptions = (e) => {
- let t = Jr(e, 100, ai);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ $t(t.duration), e.type = "keyframes", e;
+oi.applyToOptions = (e) => {
+ let t = Yr(e, 100, oi);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ en(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var oi = 5;
-function si(e, t, n) {
- let r = Math.max(t - oi, 0);
- return /* @__PURE__ */ tn(n - e(r), t - r);
+var si = 5;
+function ci(e, t, n) {
+ let r = Math.max(t - si, 0);
+ return /* @__PURE__ */ nn(n - e(r), t - r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function ci({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function li({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -9706,9 +9706,9 @@ function ci({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e), n = y(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
}, x, S, C = (e) => {
- p(f.value) && (x = e, S = ai({
+ p(f.value) && (x = e, S = oi({
keyframes: [f.value, m(f.value)],
- velocity: si(y, e, f.value),
+ velocity: ci(y, e, f.value),
damping: i,
stiffness: a,
restDelta: l,
@@ -9725,59 +9725,59 @@ function ci({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function li(e, t, n) {
- let r = [], i = n || Wt.mix || Ur, a = e.length - 1;
+function ui(e, t, n) {
+ let r = [], i = n || Gt.mix || Wr, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
- t && (a = Xt(Array.isArray(t) ? t[n] || Yt : t, a)), r.push(a);
+ t && (a = Zt(Array.isArray(t) ? t[n] || Xt : t, a)), r.push(a);
}
return r;
}
-function ui(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function di(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (t.length, a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = li(t, r, i), c = s.length, l = (n) => {
+ let s = ui(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ Zt(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ Qt(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(Ut(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(Wt(e[0], e[a - 1], t)) : l;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function di(e, t) {
+function fi(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ Zt(0, t, r);
- e.push(kr(n, 1, i));
+ let i = /* @__PURE__ */ Qt(0, t, r);
+ e.push(Ar(n, 1, i));
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function fi(e) {
+function pi(e) {
let t = [0];
- return di(t, e.length - 1), t;
+ return fi(t, e.length - 1), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function pi(e, t) {
+function mi(e, t) {
return e.map((e) => e * t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function mi(e, t) {
- return e.map(() => t || yn).splice(0, e.length - 1);
+function hi(e, t) {
+ return e.map(() => t || bn).splice(0, e.length - 1);
}
-function hi({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ bn(r) ? r.map(wn) : wn(r), a = {
+function gi({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
+ let i = /* @__PURE__ */ xn(r) ? r.map(Tn) : Tn(r), a = {
done: !1,
value: t[0]
- }, o = ui(pi(n && n.length === t.length ? n : fi(t), e), t, { ease: Array.isArray(i) ? i : mi(t, i) });
+ }, o = di(mi(n && n.length === t.length ? n : pi(t), e), t, { ease: Array.isArray(i) ? i : hi(t, i) });
return {
calculatedDuration: e,
next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -9785,26 +9785,26 @@ function hi({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var gi = (e) => e !== null;
-function _i(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(gi), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var _i = (e) => e !== null;
+function vi(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(_i), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var vi = {
- decay: ci,
- inertia: ci,
- tween: hi,
- keyframes: hi,
- spring: ai
+var yi = {
+ decay: li,
+ inertia: li,
+ tween: gi,
+ keyframes: gi,
+ spring: oi
};
-function yi(e) {
- typeof e.type == "string" && (e.type = vi[e.type]);
+function bi(e) {
+ typeof e.type == "string" && (e.type = yi[e.type]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var bi = class {
+var xi = class {
constructor() {
this.updateFinished();
}
@@ -9822,21 +9822,21 @@ var bi = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, xi = (e) => e / 100, Si = class extends bi {
+}, Si = (e) => e / 100, Ci = class extends xi {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== Fn.now() && this.tick(Fn.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ e && e.updatedAt !== In.now() && this.tick(In.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
}
initAnimation() {
let { options: e } = this;
- yi(e);
- let { type: t = hi, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || hi;
- s !== hi && typeof o[0] != "number" && (this.mixKeyframes = Xt(xi, Ur(o[0], o[1])), o = [0, 100]);
+ bi(e);
+ let { type: t = gi, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || gi;
+ s !== gi && typeof o[0] != "number" && (this.mixKeyframes = Zt(Si, Wr(o[0], o[1])), o = [0, 100]);
let c = s({
...e,
keyframes: o
@@ -9845,7 +9845,7 @@ var bi = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = qr(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = Jr(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -9863,54 +9863,54 @@ var bi = class {
let v = this.currentTime, y = n;
if (u) {
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
- !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = Ut(0, 1, n) * o;
+ !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = Wt(0, 1, n) * o;
}
let b;
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
let { done: x } = b;
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
- return S && p !== ci && (b.value = _i(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
+ return S && p !== li && (b.value = vi(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
}
then(e, t) {
return this.finished.then(e, t);
}
get duration() {
- return /* @__PURE__ */ en(this.calculatedDuration);
+ return /* @__PURE__ */ tn(this.calculatedDuration);
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ en(e);
+ return this.duration + /* @__PURE__ */ tn(e);
}
get time() {
- return /* @__PURE__ */ en(this.currentTime);
+ return /* @__PURE__ */ tn(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ $t(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ en(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
let e = this.currentTime;
if (e <= 0) return this.options.velocity || 0;
if (this.generator.velocity) return this.generator.velocity(e);
let t = this.generator.next(e).value;
- return si((e) => this.generator.next(e).value, e, t);
+ return ci((e) => this.generator.next(e).value, e, t);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(Fn.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ en(this.currentTime));
+ t && this.driver && this.updateTime(In.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ tn(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = Wr, startTime: t } = this.options;
+ let { driver: e = Gr, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(Fn.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(In.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -9936,12 +9936,12 @@ var bi = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function Ci(e) {
+function wi(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var wi = (e) => e * 180 / Math.PI, Ti = (e) => Di(wi(Math.atan2(e[1], e[0]))), Ei = {
+var Ti = (e) => e * 180 / Math.PI, Ei = (e) => Oi(Ti(Math.atan2(e[1], e[0]))), Di = {
x: 4,
y: 5,
translateX: 4,
@@ -9949,54 +9949,54 @@ var wi = (e) => e * 180 / Math.PI, Ti = (e) => Di(wi(Math.atan2(e[1], e[0]))), E
scaleX: 0,
scaleY: 3,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: Ti,
- rotateZ: Ti,
- skewX: (e) => wi(Math.atan(e[1])),
- skewY: (e) => wi(Math.atan(e[2])),
+ rotate: Ei,
+ rotateZ: Ei,
+ skewX: (e) => Ti(Math.atan(e[1])),
+ skewY: (e) => Ti(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, Di = (e) => (e %= 360, e < 0 && (e += 360), e), Oi = Ti, ki = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Ai = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), ji = {
+}, Oi = (e) => (e %= 360, e < 0 && (e += 360), e), ki = Ei, Ai = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), ji = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Mi = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: ki,
- scaleY: Ai,
- scale: (e) => (ki(e) + Ai(e)) / 2,
- rotateX: (e) => Di(wi(Math.atan2(e[6], e[5]))),
- rotateY: (e) => Di(wi(Math.atan2(-e[2], e[0]))),
- rotateZ: Oi,
- rotate: Oi,
- skewX: (e) => wi(Math.atan(e[4])),
- skewY: (e) => wi(Math.atan(e[1])),
+ scaleX: Ai,
+ scaleY: ji,
+ scale: (e) => (Ai(e) + ji(e)) / 2,
+ rotateX: (e) => Oi(Ti(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => Oi(Ti(Math.atan2(-e[2], e[0]))),
+ rotateZ: ki,
+ rotate: ki,
+ skewX: (e) => Ti(Math.atan(e[4])),
+ skewY: (e) => Ti(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function Mi(e) {
+function Ni(e) {
return +!!e.includes("scale");
}
-function Ni(e, t) {
- if (!e || e === "none") return Mi(t);
+function Pi(e, t) {
+ if (!e || e === "none") return Ni(t);
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
- if (n) r = ji, i = n;
+ if (n) r = Mi, i = n;
else {
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
- r = Ei, i = t;
+ r = Di, i = t;
}
- if (!i) return Mi(t);
- let a = r[t], o = i[1].split(",").map(Fi);
+ if (!i) return Ni(t);
+ let a = r[t], o = i[1].split(",").map(Ii);
return typeof a == "function" ? a(o) : o[a];
}
-var Pi = (e, t) => {
+var Fi = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return Ni(n, t);
+ return Pi(n, t);
};
-function Fi(e) {
+function Ii(e) {
return parseFloat(e.trim());
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
-var Ii = [
+var Li = [
"transformPerspective",
"x",
"y",
@@ -10014,19 +10014,19 @@ var Ii = [
"skew",
"skewX",
"skewY"
-], Li = /* @__PURE__ */ new Set([...Ii, "pathRotation"]), Ri = (e) => e === Hn || e === z, zi = /* @__PURE__ */ new Set([
+], Ri = /* @__PURE__ */ new Set([...Li, "pathRotation"]), zi = (e) => e === Un || e === z, Bi = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Bi = Ii.filter((e) => !zi.has(e));
-function Vi(e) {
+]), Vi = Li.filter((e) => !Bi.has(e));
+function Hi(e) {
let t = [];
- return Bi.forEach((n) => {
+ return Vi.forEach((n) => {
let r = e.getValue(n);
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
}), t;
}
-var Hi = {
+var Ui = {
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }) => {
let i = e.max - e.min;
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
@@ -10039,18 +10039,18 @@ var Hi = {
left: (e, { left: t }) => parseFloat(t),
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
- x: (e, { transform: t }) => Ni(t, "x"),
- y: (e, { transform: t }) => Ni(t, "y")
+ x: (e, { transform: t }) => Pi(t, "x"),
+ y: (e, { transform: t }) => Pi(t, "y")
};
-Hi.translateX = Hi.x, Hi.translateY = Hi.y;
+Ui.translateX = Ui.x, Ui.translateY = Ui.y;
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
-var Ui = /* @__PURE__ */ new Set(), Wi = !1, Gi = !1, Ki = !1;
-function qi() {
- if (Gi) {
- let e = Array.from(Ui).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
+var Wi = /* @__PURE__ */ new Set(), Gi = !1, Ki = !1, qi = !1;
+function Ji() {
+ if (Ki) {
+ let e = Array.from(Wi).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
t.forEach((e) => {
- let t = Vi(e);
+ let t = Hi(e);
t.length && (n.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -10062,22 +10062,22 @@ function qi() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- Gi = !1, Wi = !1, Ui.forEach((e) => e.complete(Ki)), Ui.clear();
+ Ki = !1, Gi = !1, Wi.forEach((e) => e.complete(qi)), Wi.clear();
}
-function Ji() {
- Ui.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (Gi = !0);
+function Yi() {
+ Wi.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (Ki = !0);
});
}
-function Yi() {
- Ki = !0, Ji(), qi(), Ki = !1;
+function Xi() {
+ qi = !0, Yi(), Ji(), qi = !1;
}
-var Xi = class {
+var Zi = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (Ui.add(this), Wi || (Wi = !0, kn.read(Ji), kn.resolveKeyframes(qi))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (Wi.add(this), Gi || (Gi = !0, An.read(Yi), An.resolveKeyframes(Ji))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -10090,70 +10090,70 @@ var Xi = class {
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- Ci(e);
+ wi(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Ui.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Wi.delete(this);
}
cancel() {
- this.state === "scheduled" && (Ui.delete(this), this.state = "pending");
+ this.state === "scheduled" && (Wi.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, Zi = (e) => e.startsWith("--");
+}, Qi = (e) => e.startsWith("--");
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function Qi(e, t, n) {
- Zi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function $i(e, t, n) {
+ Qi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var $i = {};
+var ea = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function ea(e, t) {
- let n = /* @__PURE__ */ Jt(e);
- return () => $i[t] ?? n();
+function ta(e, t) {
+ let n = /* @__PURE__ */ Yt(e);
+ return () => ea[t] ?? n();
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var ta = /* @__PURE__ */ ea(() => window.ScrollTimeline !== void 0, "scrollTimeline"), na = /*@__PURE__*/ ea(() => {
+var na = /* @__PURE__ */ ta(() => window.ScrollTimeline !== void 0, "scrollTimeline"), ra = /*@__PURE__*/ ta(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), ra = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, ia = {
+}, "linearEasing"), ia = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, aa = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ ra([
+ circIn: /*@__PURE__*/ ia([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ ra([
+ circOut: /*@__PURE__*/ ia([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ ra([
+ backIn: /*@__PURE__*/ ia([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ ra([
+ backOut: /*@__PURE__*/ ia([
.33,
1.53,
.69,
@@ -10162,15 +10162,15 @@ var ta = /* @__PURE__ */ ea(() => window.ScrollTimeline !== void 0, "scrollTimel
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function aa(e, t) {
- if (e) return typeof e == "function" ? na() ? Gr(e, t) : "ease-out" : /* @__PURE__ */ xn(e) ? ra(e) : Array.isArray(e) ? e.map((e) => aa(e, t) || ia.easeOut) : ia[e];
+function oa(e, t) {
+ if (e) return typeof e == "function" ? ra() ? Kr(e, t) : "ease-out" : /* @__PURE__ */ Sn(e) ? ia(e) : Array.isArray(e) ? e.map((e) => oa(e, t) || aa.easeOut) : aa[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function oa(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function sa(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = aa(s, i);
+ let d = oa(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -10184,26 +10184,26 @@ function oa(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function sa(e) {
+function ca(e) {
return typeof e == "function" && "applyToOptions" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function ca({ type: e, ...t }) {
- return sa(e) && na() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function la({ type: e, ...t }) {
+ return ca(e) && ra() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var la = class extends bi {
+var ua = class extends xi {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, e.type;
- let c = ca(e);
- this.animation = oa(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = la(e);
+ this.animation = sa(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = _i(r, this.options, o, this.speed);
- this.updateMotionValue && this.updateMotionValue(e), Qi(t, n, e), this.animation.cancel();
+ let e = vi(r, this.options, o, this.speed);
+ this.updateMotionValue && this.updateMotionValue(e), $i(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
};
@@ -10234,18 +10234,18 @@ var la = class extends bi {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ en(Number(e));
+ return /* @__PURE__ */ tn(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ en(e);
+ return this.duration + /* @__PURE__ */ tn(e);
}
get time() {
- return /* @__PURE__ */ en(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ tn(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ $t(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ en(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -10263,24 +10263,24 @@ var la = class extends bi {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ta() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), Yt) : r(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && na() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), Xt) : r(this);
}
-}, ua = {
- anticipate: pn,
- backInOut: fn,
- circInOut: gn
+}, da = {
+ anticipate: mn,
+ backInOut: pn,
+ circInOut: _n
};
-function da(e) {
- return e in ua;
-}
function fa(e) {
- typeof e.ease == "string" && da(e.ease) && (e.ease = ua[e.ease]);
+ return e in da;
+}
+function pa(e) {
+ typeof e.ease == "string" && fa(e.ease) && (e.ease = da[e.ease]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
-var pa = 10, ma = class extends la {
+var ma = 10, ha = class extends ua {
constructor(e) {
- fa(e), yi(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ pa(e), bi(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
updateMotionValue(e) {
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
@@ -10289,48 +10289,48 @@ var pa = 10, ma = class extends la {
t.set(e);
return;
}
- let o = new Si({
+ let o = new Ci({
...a,
autoplay: !1
- }), s = Math.max(pa, Fn.now() - this.startTime), c = Ut(0, pa, s - pa), l = o.sample(s).value, { name: u } = this.options;
- i && u && Qi(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
+ }), s = Math.max(ma, In.now() - this.startTime), c = Wt(0, ma, s - ma), l = o.sample(s).value, { name: u } = this.options;
+ i && u && $i(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
}
-}, ha = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Tr.test(e) || e === "0") && !e.startsWith("url("));
+}, ga = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Er.test(e) || e === "0") && !e.startsWith("url("));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function ga(e) {
+function _a(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function _a(e, t, n, r) {
+function va(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = ha(i, t), s = ha(a, t);
- return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : ga(e) || (n === "spring" || sa(n)) && r;
+ let a = e[e.length - 1], o = ga(i, t), s = ga(a, t);
+ return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : _a(e) || (n === "spring" || ca(n)) && r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function va(e) {
+function ya(e) {
e.duration = 0, e.type = "keyframes";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var ya = /* @__PURE__ */ new Set([
+var ba = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform",
"backgroundColor"
-]), ba = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function xa(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && ba.test(e[t])) return !0;
+]), xa = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function Sa(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && xa.test(e[t])) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
-var Sa = /* @__PURE__ */ new Set([
+var Ca = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -10341,20 +10341,20 @@ var Sa = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), Ca = /*@__PURE__*/ Jt(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
-function wa(e) {
+]), wa = /*@__PURE__*/ Yt(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+function Ta(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e, c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return Ca() && n && (ya.has(n) || Sa.has(n) && xa(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
+ return wa() && n && (ba.has(n) || Ca.has(n) && Sa(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var Ta = 40, Ea = class extends bi {
+var Ea = 40, Da = class extends xi {
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = Fn.now();
+ }, this.createdAt = In.now();
let d = {
autoplay: e,
delay: t,
@@ -10366,33 +10366,33 @@ var Ta = 40, Ea = class extends bi {
motionValue: c,
element: l,
...u
- }, f = l?.KeyframeResolver || Xi;
+ }, f = l?.KeyframeResolver || Zi;
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = Fn.now();
+ this.resolvedAt = In.now();
let u = !0;
- _a(e, i, a, o) || (u = !1, (Wt.instantAnimations || !s) && l?.(_i(e, n, t)), e[0] = e[e.length - 1], va(n), n.repeat = 0);
+ va(e, i, a, o) || (u = !1, (Gt.instantAnimations || !s) && l?.(vi(e, n, t)), e[0] = e[e.length - 1], ya(n), n.repeat = 0);
let d = {
- startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Ta ? this.resolvedAt : this.createdAt : void 0,
+ startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Ea ? this.resolvedAt : this.createdAt : void 0,
finalKeyframe: t,
...n,
keyframes: e
- }, f = u && !c && wa(d), p = d.motionValue?.owner?.current, m;
+ }, f = u && !c && Ta(d), p = d.motionValue?.owner?.current, m;
if (f) try {
- m = new ma({
+ m = new ha({
...d,
element: p
});
} catch {
- m = new Si(d);
+ m = new Ci(d);
}
- else m = new Si(d);
+ else m = new Ci(d);
m.finished.then(() => {
this.notifyFinished();
- }).catch(Yt), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
+ }).catch(Xt), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
return this._animation ? this.animation.finished : this._finished;
@@ -10401,7 +10401,7 @@ var Ta = 40, Ea = class extends bi {
return this.finished.finally(e).then(() => {});
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Yi()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Xi()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -10442,7 +10442,7 @@ var Ta = 40, Ea = class extends bi {
cancel() {
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
}
-}, Da = class {
+}, Oa = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -10482,10 +10482,10 @@ var Ta = 40, Ea = class extends bi {
return this.getAll("startTime");
}
get duration() {
- return Oa(this.animations, "duration");
+ return ka(this.animations, "duration");
}
get iterationDuration() {
- return Oa(this.animations, "iterationDuration");
+ return ka(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -10503,7 +10503,7 @@ var Ta = 40, Ea = class extends bi {
this.runAll("complete");
}
};
-function Oa(e, t) {
+function ka(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -10513,32 +10513,32 @@ function Oa(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var ka = class extends Da {
+var Aa = class extends Oa {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, Aa = /* @__PURE__ */ new WeakMap(), ja = (e, t = "") => `${e}:${t}`;
-function Ma(e) {
- let t = Aa.get(e);
- return t || (t = /* @__PURE__ */ new Map(), Aa.set(e, t)), t;
+}, ja = /* @__PURE__ */ new WeakMap(), Ma = (e, t = "") => `${e}:${t}`;
+function Na(e) {
+ let t = ja.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), ja.set(e, t)), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function Na(e, t, n, r = 0, i = 1) {
+function Pa(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/index.mjs
-var Pa = 30, Fa = (e) => !isNaN(parseFloat(e)), Ia = { current: void 0 }, La = class {
+var Fa = 30, Ia = (e) => !isNaN(parseFloat(e)), La = { current: void 0 }, Ra = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = Fn.now();
+ let t = In.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = Fn.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Fa(this.current));
+ this.current = e, this.updatedAt = In.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Ia(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -10547,10 +10547,10 @@ var Pa = 30, Fa = (e) => !isNaN(parseFloat(e)), Ia = { current: void 0 }, La = c
return this.on("change", e);
}
on(e, t) {
- this.events[e] || (this.events[e] = new Qt());
+ this.events[e] || (this.events[e] = new $t());
let n = this.events[e].add(t);
return e === "change" ? () => {
- n(), kn.read(() => {
+ n(), An.read(() => {
this.events.change.getSize() || this.stop();
});
} : n;
@@ -10580,16 +10580,16 @@ var Pa = 30, Fa = (e) => !isNaN(parseFloat(e)), Ia = { current: void 0 }, La = c
this.dependents && this.dependents.delete(e);
}
get() {
- return Ia.current && Ia.current.push(this), this.current;
+ return La.current && La.current.push(this), this.current;
}
getPrevious() {
return this.prev;
}
getVelocity() {
- let e = Fn.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Pa) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, Pa);
- return /* @__PURE__ */ tn(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = In.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Fa) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, Fa);
+ return /* @__PURE__ */ nn(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -10611,12 +10611,12 @@ var Pa = 30, Fa = (e) => !isNaN(parseFloat(e)), Ia = { current: void 0 }, La = c
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
}
};
-function Ra(e, t) {
- return new La(e, t);
+function za(e, t) {
+ return new Ra(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function za(e, t) {
+function Ba(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -10628,26 +10628,26 @@ function za(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function Ba(e, t) {
+function Va(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : za(n, e);
+ return n === e ? n : Ba(n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var Va = {
+var Ha = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, Ha = (e) => ({
+}, Ua = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), Ua = {
+}), Wa = {
type: "keyframes",
duration: .8
-}, Wa = {
+}, Ga = {
type: "keyframes",
ease: [
.25,
@@ -10656,7 +10656,7 @@ var Va = {
1
],
duration: .3
-}, Ga = (e, { keyframes: t }) => t.length > 2 ? Ua : Li.has(e) ? e.startsWith("scale") ? Ha(t[1]) : Va : Wa, Ka = /* @__PURE__ */ new Set([
+}, Ka = (e, { keyframes: t }) => t.length > 2 ? Wa : Ri.has(e) ? e.startsWith("scale") ? Ua(t[1]) : Ha : Ga, qa = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -10668,15 +10668,15 @@ var Va = {
"from",
"elapsed"
]);
-function qa(e) {
- for (let t in e) if (!Ka.has(t)) return !0;
+function Ja(e) {
+ for (let t in e) if (!qa.has(t)) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var Ja = (e, t, n, r = {}, i, a) => (o) => {
- let s = Ba(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ $t(c);
+var Ya = (e, t, n, r = {}, i, a) => (o) => {
+ let s = Va(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ en(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -10693,160 +10693,160 @@ var Ja = (e, t, n, r = {}, i, a) => (o) => {
motionValue: t,
element: a ? void 0 : i
};
- qa(s) || Object.assign(u, Ga(e, u)), u.duration &&= /* @__PURE__ */ $t(u.duration), u.repeatDelay &&= /* @__PURE__ */ $t(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ Ja(s) || Object.assign(u, Ka(e, u)), u.duration &&= /* @__PURE__ */ en(u.duration), u.repeatDelay &&= /* @__PURE__ */ en(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (va(u), u.delay === 0 && (d = !0)), (Wt.instantAnimations || Wt.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, va(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = _i(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (ya(u), u.delay === 0 && (d = !0)), (Gt.instantAnimations || Gt.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, ya(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = vi(u.keyframes, s);
if (e !== void 0) {
- kn.update(() => {
+ An.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Si(u) : new Ea(u);
-}, Ya = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function Xa(e) {
- let t = Ya.exec(e);
+ return s.isSync ? new Ci(u) : new Da(u);
+}, Xa = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function Za(e) {
+ let t = Xa.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function Za(e, t, n = 1) {
+function Qa(e, t, n = 1) {
`${e}`;
- let [r, i] = Xa(e);
+ let [r, i] = Za(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return Gt(e) ? parseFloat(e) : e;
+ return Kt(e) ? parseFloat(e) : e;
}
- return zn(i) ? Za(i, t, n + 1) : i;
+ return Bn(i) ? Qa(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function Qa(e) {
+function $a(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function $a(e, t, n, r) {
+function eo(e, t, n, r) {
if (typeof t == "function") {
- let [i, a] = Qa(r);
+ let [i, a] = $a(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
- let [i, a] = Qa(r);
+ let [i, a] = $a(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function eo(e, t, n) {
+function to(e, t, n) {
let r = e.getProps();
- return $a(r, t, n === void 0 ? r.custom : n, e);
+ return eo(r, t, n === void 0 ? r.custom : n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
-var to = /* @__PURE__ */ new Set([
+var no = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...Ii
-]), no = (e) => Array.isArray(e);
+ ...Li
+]), ro = (e) => Array.isArray(e);
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function ro(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Ra(n));
+function io(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, za(n));
}
-function io(e) {
- return no(e) ? e[e.length - 1] || 0 : e;
+function ao(e) {
+ return ro(e) ? e[e.length - 1] || 0 : e;
}
-function ao(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = eo(e, t) || {};
+function oo(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = to(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) ro(e, t, io(i[t]));
+ for (let t in i) io(e, t, ao(i[t]));
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var oo = (e) => !!(e && e.getVelocity);
+var so = (e) => !!(e && e.getVelocity);
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function so(e) {
- return !!(oo(e) && e.add);
+function co(e) {
+ return !!(so(e) && e.add);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function co(e, t) {
+function lo(e, t) {
let n = e.getValue("willChange");
- if (so(n)) return n.add(t);
- if (!n && Wt.WillChange) {
- let n = new Wt.WillChange("auto");
+ if (co(n)) return n.add(t);
+ if (!n && Gt.WillChange) {
+ let n = new Gt.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function lo(e) {
+function uo(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
-var uo = "data-" + lo("framerAppearId");
+var fo = "data-" + uo("framerAppearId");
//#endregion
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function fo(e) {
- return e.props[uo];
+function po(e) {
+ return e.props[fo];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-function po({ protectedKeys: e, needsAnimating: t }, n) {
+function mo({ protectedKeys: e, needsAnimating: t }, n) {
let r = e.hasOwnProperty(n) && t[n] !== !0;
return t[n] = !1, r;
}
-function mo(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function ho(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? za(a, c) : c;
+ a = a ? Ba(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState && e.animationState.getState()[i], p = a?.path;
p && p.animateVisualElement(e, s, a, n, d);
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && po(f, t)) continue;
+ if (i === void 0 || f && mo(f, t)) continue;
let o = {
delay: n,
- ...Ba(a || {}, t)
+ ...Va(a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- kn.update(() => r.set(i));
+ An.update(() => r.set(i));
continue;
}
let p = !1;
if (window.MotionHandoffAnimation) {
- let n = fo(e);
+ let n = po(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, kn);
+ let e = window.MotionHandoffAnimation(n, t, An);
e !== null && (o.startTime = e, p = !0);
}
}
- co(e, t);
+ lo(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(Ja(t, r, i, m && to.has(t) ? { type: !1 } : o, e, p));
+ r.start(Ya(t, r, i, m && no.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => kn.update(() => {
- o && ao(e, o);
+ let t = () => An.update(() => {
+ o && oo(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
@@ -10854,12 +10854,12 @@ function mo(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function ho(e, t, n = {}) {
- let r = eo(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
+function go(e, t, n = {}) {
+ let r = to(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
n.transitionOverride && (i = n.transitionOverride);
- let a = r ? () => Promise.all(mo(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
+ let a = r ? () => Promise.all(ho(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
- return go(e, t, r, a, o, s, n);
+ return _o(e, t, r, a, o, s, n);
} : () => Promise.resolve(), { when: s } = i;
if (s) {
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
@@ -10867,26 +10867,26 @@ function ho(e, t, n = {}) {
}
return Promise.all([a(), o(n.delay)]);
}
-function go(e, t, n = 0, r = 0, i = 0, a = 1, o) {
+function _o(e, t, n = 0, r = 0, i = 0, a = 1, o) {
let s = [];
- for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(ho(c, t, {
+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(go(c, t, {
...o,
- delay: n + (typeof r == "function" ? 0 : r) + Na(e.variantChildren, c, r, i, a)
+ delay: n + (typeof r == "function" ? 0 : r) + Pa(e.variantChildren, c, r, i, a)
}).then(() => c.notify("AnimationComplete", t)));
return Promise.all(s);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function _o(e, t, n = {}) {
+function vo(e, t, n = {}) {
e.notify("AnimationStart", t);
let r;
if (Array.isArray(t)) {
- let i = t.map((t) => ho(e, t, n));
+ let i = t.map((t) => go(e, t, n));
r = Promise.all(i);
- } else if (typeof t == "string") r = ho(e, t, n);
+ } else if (typeof t == "string") r = go(e, t, n);
else {
- let i = typeof t == "function" ? eo(e, t, n.custom) : t;
- r = Promise.all(mo(e, i, n));
+ let i = typeof t == "function" ? to(e, t, n.custom) : t;
+ r = Promise.all(ho(e, i, n));
}
return r.then(() => {
e.notify("AnimationComplete", t);
@@ -10894,58 +10894,58 @@ function _o(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/auto.mjs
-var vo = {
+var yo = {
test: (e) => e === "auto",
parse: (e) => e
-}, yo = (e) => (t) => t.test(e), bo = [
- Hn,
+}, bo = (e) => (t) => t.test(e), xo = [
+ Un,
z,
+ ar,
ir,
- rr,
+ sr,
or,
- ar,
- vo
-], xo = (e) => bo.find(yo(e));
+ yo
+], So = (e) => xo.find(bo(e));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function So(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || qt(e);
+function Co(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Jt(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
-var Co = /* @__PURE__ */ new Set([
+var wo = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function wo(e) {
+function To(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(Kn) || [];
+ let [r] = n.match(qn) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!Co.has(t);
+ let i = n.replace(r, ""), a = +!!wo.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var To = /\b([a-z-]*)\(.*?\)/gu, Eo = {
- ...Tr,
+var Eo = /\b([a-z-]*)\(.*?\)/gu, Do = {
+ ...Er,
getAnimatableNone: (e) => {
- let t = e.match(To);
- return t ? t.map(wo).join(" ") : e;
+ let t = e.match(Eo);
+ return t ? t.map(To).join(" ") : e;
}
-}, Do = {
- ...Tr,
+}, Oo = {
+ ...Er,
getAnimatableNone: (e) => {
- let t = Tr.parse(e);
- return Tr.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = Er.parse(e);
+ return Er.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, Oo = {
- ...Hn,
- transform: Math.round
}, ko = {
+ ...Un,
+ transform: Math.round
+}, Ao = {
borderWidth: z,
borderTopWidth: z,
borderRightWidth: z,
@@ -10996,18 +10996,18 @@ var To = /\b([a-z-]*)\(.*?\)/gu, Eo = {
fontSize: z,
backgroundPositionX: z,
backgroundPositionY: z,
- rotate: rr,
- pathRotation: rr,
- rotateX: rr,
- rotateY: rr,
- rotateZ: rr,
- scale: Wn,
- scaleX: Wn,
- scaleY: Wn,
- scaleZ: Wn,
- skew: rr,
- skewX: rr,
- skewY: rr,
+ rotate: ir,
+ pathRotation: ir,
+ rotateX: ir,
+ rotateY: ir,
+ rotateZ: ir,
+ scale: Gn,
+ scaleX: Gn,
+ scaleY: Gn,
+ scaleZ: Gn,
+ skew: ir,
+ skewX: ir,
+ skewY: ir,
distance: z,
translateX: z,
translateY: z,
@@ -11017,53 +11017,53 @@ var To = /\b([a-z-]*)\(.*?\)/gu, Eo = {
z,
perspective: z,
transformPerspective: z,
- opacity: Un,
- originX: sr,
- originY: sr,
+ opacity: Wn,
+ originX: cr,
+ originY: cr,
originZ: z,
- zIndex: Oo,
- fillOpacity: Un,
- strokeOpacity: Un,
- numOctaves: Oo
-}, Ao = {
- ...ko,
- color: lr,
- backgroundColor: lr,
- outlineColor: lr,
- fill: lr,
- stroke: lr,
- borderColor: lr,
- borderTopColor: lr,
- borderRightColor: lr,
- borderBottomColor: lr,
- borderLeftColor: lr,
- filter: Eo,
- WebkitFilter: Eo,
- mask: Do,
- WebkitMask: Do
-}, jo = (e) => Ao[e], Mo = /*@__PURE__*/ new Set([Eo, Do]);
-function No(e, t) {
- let n = jo(e);
- return Mo.has(n) || (n = Tr), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ zIndex: ko,
+ fillOpacity: Wn,
+ strokeOpacity: Wn,
+ numOctaves: ko
+}, jo = {
+ ...Ao,
+ color: ur,
+ backgroundColor: ur,
+ outlineColor: ur,
+ fill: ur,
+ stroke: ur,
+ borderColor: ur,
+ borderTopColor: ur,
+ borderRightColor: ur,
+ borderBottomColor: ur,
+ borderLeftColor: ur,
+ filter: Do,
+ WebkitFilter: Do,
+ mask: Oo,
+ WebkitMask: Oo
+}, Mo = (e) => jo[e], No = /*@__PURE__*/ new Set([Do, Oo]);
+function Po(e, t) {
+ let n = Mo(e);
+ return No.has(n) || (n = Er), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Po = /* @__PURE__ */ new Set([
+var Fo = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Fo(e, t, n) {
+function Io(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Po.has(t) && vr(t).values.length && (i = e[r]), r++;
+ typeof t == "string" && !Fo.has(t) && yr(t).values.length && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] = No(n, i);
+ if (i && n) for (let r of t) e[r] = Po(n, i);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Io = class extends Xi {
+var Lo = class extends Zi {
constructor(e, t, n, r, i) {
super(e, t, n, r, i, !0);
}
@@ -11073,34 +11073,34 @@ var Io = class extends Xi {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), zn(r))) {
- let i = Za(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), Bn(r))) {
+ let i = Qa(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !to.has(n) || e.length !== 2) return;
- let [r, i] = e, a = xo(r), o = xo(i);
- if (Vn(r) !== Vn(i) && Hi[n]) {
+ if (this.resolveNoneKeyframes(), !no.has(n) || e.length !== 2) return;
+ let [r, i] = e, a = So(r), o = So(i);
+ if (Hn(r) !== Hn(i) && Ui[n]) {
this.needsMeasurement = !0;
return;
}
if (a !== o) {
- if (Ri(a) && Ri(o)) for (let t = 0; t < e.length; t++) {
+ if (zi(a) && zi(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else Hi[n] && (this.needsMeasurement = !0);
+ else Ui[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || So(e[t])) && n.push(t);
- n.length && Fo(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Co(e[t])) && n.push(t);
+ n.length && Io(e, n, t);
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
if (!e || !e.current) return;
- n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Hi[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
+ n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Ui[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
let r = t[t.length - 1];
r !== void 0 && e.getValue(n, r).jump(r, !1);
}
@@ -11110,23 +11110,23 @@ var Io = class extends Xi {
let r = e.getValue(t);
r && r.jump(this.measuredOrigin, !1);
let i = n.length - 1, a = n[i];
- n[i] = Hi[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
+ n[i] = Ui[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
e.getValue(t).set(n);
}), this.resolveNoneKeyframes();
}
-}, Lo = [
+}, Ro = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Ro = /* @__PURE__ */ new Set([
+], zo = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...Lo,
+ ...Ro,
"width",
"maxWidth",
"height",
@@ -11170,12 +11170,12 @@ var Io = class extends Xi {
]);
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function zo(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Ro.has(t) && (e[n] = e[n] + "px");
+function Bo(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && zo.has(t) && (e[n] = e[n] + "px");
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Bo(e, t, n) {
+function Vo(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
@@ -11188,34 +11188,34 @@ function Bo(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var Vo = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
+var Ho = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function Ho(e) {
- return Kt(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function Uo(e) {
+ return qt(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs
-var { schedule: Uo, cancel: Wo } = /* @__PURE__ */ On(queueMicrotask, !1), Go = {
+var { schedule: Wo, cancel: Go } = /* @__PURE__ */ kn(queueMicrotask, !1), Ko = {
x: !1,
y: !1
};
-function Ko() {
- return Go.x || Go.y;
+function qo() {
+ return Ko.x || Ko.y;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function qo(e) {
- return e === "x" || e === "y" ? Go[e] ? null : (Go[e] = !0, () => {
- Go[e] = !1;
- }) : Go.x || Go.y ? null : (Go.x = Go.y = !0, () => {
- Go.x = Go.y = !1;
+function Jo(e) {
+ return e === "x" || e === "y" ? Ko[e] ? null : (Ko[e] = !0, () => {
+ Ko[e] = !1;
+ }) : Ko.x || Ko.y ? null : (Ko.x = Ko.y = !0, () => {
+ Ko.x = Ko.y = !1;
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function Jo(e, t) {
- let n = Bo(e), r = new AbortController();
+function Yo(e, t) {
+ let n = Vo(e), r = new AbortController();
return [
n,
{
@@ -11228,11 +11228,11 @@ function Jo(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Yo(e) {
- return !(e.pointerType === "touch" || Ko());
+function Xo(e) {
+ return !(e.pointerType === "touch" || qo());
}
-function Xo(e, t, n = {}) {
- let [r, i, a] = Jo(e, n);
+function Zo(e, t, n = {}) {
+ let [r, i, a] = Yo(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -11252,7 +11252,7 @@ function Xo(e, t, n = {}) {
}
};
e.addEventListener("pointerenter", (n) => {
- if (!Yo(n)) return;
+ if (!Xo(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -11261,130 +11261,130 @@ function Xo(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var Zo = (e, t) => t ? e === t || Zo(e, t.parentElement) : !1, Qo = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, $o = /* @__PURE__ */ new Set([
+var Qo = (e, t) => t ? e === t || Qo(e, t.parentElement) : !1, $o = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, es = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function es(e) {
- return $o.has(e.tagName) || e.isContentEditable === !0;
+function ts(e) {
+ return es.has(e.tagName) || e.isContentEditable === !0;
}
-var ts = /* @__PURE__ */ new Set([
+var ns = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function ns(e) {
- return ts.has(e.tagName) || e.isContentEditable === !0;
+function rs(e) {
+ return ns.has(e.tagName) || e.isContentEditable === !0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
-var rs = /* @__PURE__ */ new WeakSet();
+var is = /* @__PURE__ */ new WeakSet();
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function is(e) {
+function as(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function as(e, t) {
+function os(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var os = (e, t) => {
+var ss = (e, t) => {
let n = e.currentTarget;
if (!n) return;
- let r = is(() => {
- if (rs.has(n)) return;
- as(n, "down");
- let e = is(() => {
- as(n, "up");
+ let r = as(() => {
+ if (is.has(n)) return;
+ os(n, "down");
+ let e = as(() => {
+ os(n, "up");
});
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => as(n, "cancel"), t);
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => os(n, "cancel"), t);
});
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
};
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function ss(e) {
- return Qo(e) && !Ko();
+function cs(e) {
+ return $o(e) && !qo();
}
-var cs = /* @__PURE__ */ new WeakSet();
-function ls(e, t, n = {}) {
- let [r, i, a] = Jo(e, n), o = (e) => {
+var ls = /* @__PURE__ */ new WeakSet();
+function us(e, t, n = {}) {
+ let [r, i, a] = Yo(e, n), o = (e) => {
let r = e.currentTarget;
- if (!ss(e) || cs.has(e)) return;
- rs.add(r), n.stopPropagation && cs.add(e);
+ if (!cs(e) || ls.has(e)) return;
+ is.add(r), n.stopPropagation && ls.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), rs.has(r) && rs.delete(r), ss(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), is.has(r) && is.delete(r), cs(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || Zo(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || Qo(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Ho(e) && (e.addEventListener("focus", (e) => os(e, i)), !es(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Uo(e) && (e.addEventListener("focus", (e) => ss(e, i)), !ts(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function us(e, t) {
+function ds(e, t) {
let n = window.getComputedStyle(e);
- return Zi(t) ? n.getPropertyValue(t) : n[t];
+ return Qi(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function ds(e) {
- return Kt(e) && "ownerSVGElement" in e;
+function fs(e) {
+ return qt(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var fs = /* @__PURE__ */ new WeakMap(), ps, ms = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : ds(r) && "getBBox" in r ? r.getBBox()[t] : r[n], hs = /*@__PURE__*/ ms("inline", "width", "offsetWidth"), gs = /*@__PURE__*/ ms("block", "height", "offsetHeight");
-function _s({ target: e, borderBoxSize: t }) {
- fs.get(e)?.forEach((n) => {
+var ps = /* @__PURE__ */ new WeakMap(), ms, hs = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : fs(r) && "getBBox" in r ? r.getBBox()[t] : r[n], gs = /*@__PURE__*/ hs("inline", "width", "offsetWidth"), _s = /*@__PURE__*/ hs("block", "height", "offsetHeight");
+function vs({ target: e, borderBoxSize: t }) {
+ ps.get(e)?.forEach((n) => {
n(e, {
get width() {
- return hs(e, t);
+ return gs(e, t);
},
get height() {
- return gs(e, t);
+ return _s(e, t);
}
});
});
}
-function vs(e) {
- e.forEach(_s);
+function ys(e) {
+ e.forEach(vs);
}
-function ys() {
- typeof ResizeObserver > "u" || (ps = new ResizeObserver(vs));
+function bs() {
+ typeof ResizeObserver > "u" || (ms = new ResizeObserver(ys));
}
-function bs(e, t) {
- ps || ys();
- let n = Bo(e);
+function xs(e, t) {
+ ms || bs();
+ let n = Vo(e);
return n.forEach((e) => {
- let n = fs.get(e);
- n || (n = /* @__PURE__ */ new Set(), fs.set(e, n)), n.add(t), ps?.observe(e);
+ let n = ps.get(e);
+ n || (n = /* @__PURE__ */ new Set(), ps.set(e, n)), n.add(t), ms?.observe(e);
}), () => {
n.forEach((e) => {
- let n = fs.get(e);
- n?.delete(t), n?.size || ps?.unobserve(e);
+ let n = ps.get(e);
+ n?.delete(t), n?.size || ms?.unobserve(e);
});
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var xs = /* @__PURE__ */ new Set(), Ss;
-function Cs() {
- Ss = () => {
+var Ss = /* @__PURE__ */ new Set(), Cs;
+function ws() {
+ Cs = () => {
let e = {
get width() {
return window.innerWidth;
@@ -11393,49 +11393,49 @@ function Cs() {
return window.innerHeight;
}
};
- xs.forEach((t) => t(e));
- }, window.addEventListener("resize", Ss);
+ Ss.forEach((t) => t(e));
+ }, window.addEventListener("resize", Cs);
}
-function ws(e) {
- return xs.add(e), Ss || Cs(), () => {
- xs.delete(e), !xs.size && typeof Ss == "function" && (window.removeEventListener("resize", Ss), Ss = void 0);
+function Ts(e) {
+ return Ss.add(e), Cs || ws(), () => {
+ Ss.delete(e), !Ss.size && typeof Cs == "function" && (window.removeEventListener("resize", Cs), Cs = void 0);
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/index.mjs
-function Ts(e, t) {
- return typeof e == "function" ? ws(e) : bs(e, t);
+function Es(e, t) {
+ return typeof e == "function" ? Ts(e) : xs(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/stats/buffer.mjs
-var Es = {
+var Ds = {
value: null,
addProjectionMetrics: null
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function Ds(e) {
- return ds(e) && e.tagName === "svg";
+function Os(e) {
+ return fs(e) && e.tagName === "svg";
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/transform.mjs
-function Os(...e) {
- let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = ui(i, a, o);
+function ks(...e) {
+ let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = di(i, a, o);
return t ? s(r) : s;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/follow-value.mjs
-function ks(e, t, n = {}) {
+function As(e, t, n = {}) {
let r = e.get(), i = null, a = r, o, s = typeof r == "string" ? r.replace(/[\d.-]/g, "") : void 0, c = () => {
i &&= (i.stop(), null), e.animation = void 0;
}, l = () => {
- let t = js(e.get()), r = js(a);
+ let t = Ms(e.get()), r = Ms(a);
if (t === r) {
c();
return;
}
let s = i ? i.getGeneratorVelocity() : e.getVelocity();
- c(), i = new Si({
+ c(), i = new Ci({
keyframes: [t, r],
velocity: s,
type: "spring",
@@ -11450,10 +11450,10 @@ function ks(e, t, n = {}) {
});
};
if (e.attach((e, t) => {
- a = e, o = (e) => t(As(e, s)), kn.postRender(u);
- }, c), oo(t)) {
+ a = e, o = (e) => t(js(e, s)), An.postRender(u);
+ }, c), so(t)) {
let r = n.skipInitialAnimation === !0, i = t.on("change", (t) => {
- r ? (r = !1, e.jump(As(t, s), !1)) : e.set(As(t, s));
+ r ? (r = !1, e.jump(js(t, s), !1)) : e.set(js(t, s));
}), a = e.on("destroy", i);
return () => {
i(), a();
@@ -11461,46 +11461,46 @@ function ks(e, t, n = {}) {
}
return c;
}
-function As(e, t) {
+function js(e, t) {
return t ? e + t : e;
}
-function js(e) {
+function Ms(e) {
return typeof e == "number" ? e : parseFloat(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/find.mjs
-var Ms = [
- ...bo,
- lr,
- Tr
-], Ns = (e) => Ms.find(yo(e)), Ps = () => ({
+var Ns = [
+ ...xo,
+ ur,
+ Er
+], Ps = (e) => Ns.find(bo(e)), Fs = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), Fs = () => ({
- x: Ps(),
- y: Ps()
}), Is = () => ({
+ x: Fs(),
+ y: Fs()
+}), Ls = () => ({
min: 0,
max: 0
-}), Ls = () => ({
- x: Is(),
- y: Is()
-}), Rs = /* @__PURE__ */ new WeakMap();
+}), Rs = () => ({
+ x: Ls(),
+ y: Ls()
+}), zs = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function zs(e) {
+function Bs(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function Bs(e) {
+function Vs(e) {
return typeof e == "string" || Array.isArray(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var Vs = [
+var Hs = [
"animate",
"whileInView",
"whileFocus",
@@ -11508,29 +11508,29 @@ var Vs = [
"whileTap",
"whileDrag",
"exit"
-], Hs = ["initial", ...Vs];
+], Us = ["initial", ...Hs];
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function Us(e) {
- return zs(e.animate) || Hs.some((t) => Bs(e[t]));
-}
function Ws(e) {
- return !!(Us(e) || e.variants);
+ return Bs(e.animate) || Us.some((t) => Vs(e[t]));
+}
+function Gs(e) {
+ return !!(Ws(e) || e.variants);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function Gs(e, t, n) {
+function Ks(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (oo(i)) e.addValue(r, i);
- else if (oo(a)) e.addValue(r, Ra(i, { owner: e }));
+ if (so(i)) e.addValue(r, i);
+ else if (so(a)) e.addValue(r, za(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, Ra(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, za(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -11539,18 +11539,18 @@ function Gs(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var Ks = { current: null }, qs = { current: !1 }, Js = typeof window < "u";
-function Ys() {
- if (qs.current = !0, Js) {
+var qs = { current: null }, Js = { current: !1 }, Ys = typeof window < "u";
+function Xs() {
+ if (Js.current = !0, Ys) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Ks.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => qs.current = e.matches;
e.addEventListener("change", t), t();
- } else Ks.current = !1;
+ } else qs.current = !1;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Xs = [
+var Zs = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -11558,38 +11558,38 @@ var Xs = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Zs = {};
-function Qs(e) {
- Zs = e;
+], Qs = {};
+function $s(e) {
+ Qs = e;
}
-function $s() {
- return Zs;
+function ec() {
+ return Qs;
}
-var ec = class {
+var tc = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Xi, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Zi, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = Fn.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, kn.render(this.render, !1, !0));
+ let e = In.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, An.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = Us(t), this.isVariantNode = Ws(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = Ws(t), this.isVariantNode = Gs(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && oo(t) && t.set(c[e]);
+ c[e] !== void 0 && so(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- this.current = e, Rs.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (qs.current || Ys(), this.shouldReduceMotion = Ks.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.current = e, zs.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Js.current || Xs(), this.shouldReduceMotion = qs.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection && this.projection.unmount(), An(this.notifyUpdate), An(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), jn(this.notifyUpdate), jn(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -11604,24 +11604,24 @@ var ec = class {
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && ya.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new la({
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && ba.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new ua({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ $t(o)
+ duration: /* @__PURE__ */ en(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = Li.has(e);
+ let n = Ri.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && kn.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && An.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i && i();
@@ -11632,8 +11632,8 @@ var ec = class {
}
updateFeatures() {
let e = "animation";
- for (e in Zs) {
- let t = Zs[e];
+ for (e in Qs) {
+ let t = Qs[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -11646,7 +11646,7 @@ var ec = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Ls();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Rs();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -11656,13 +11656,13 @@ var ec = class {
}
update(e, t) {
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Xs.length; t++) {
- let n = Xs[t];
+ for (let t = 0; t < Zs.length; t++) {
+ let n = Zs[t];
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = Gs(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
+ this.prevMotionValues = Ks(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
}
getProps() {
return this.props;
@@ -11698,11 +11698,11 @@ var ec = class {
getValue(e, t) {
if (this.props.values && this.props.values[e]) return this.props.values[e];
let n = this.values.get(e);
- return n === void 0 && t !== void 0 && (n = Ra(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
+ return n === void 0 && t !== void 0 && (n = za(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (Gt(n) || qt(n)) ? n = parseFloat(n) : !Ns(n) && Tr.test(t) && (n = No(e, t)), this.setBaseTarget(e, oo(n) ? n.get() : n)), oo(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (Kt(n) || Jt(n)) ? n = parseFloat(n) : !Ps(n) && Er.test(t) && (n = Po(e, t)), this.setBaseTarget(e, so(n) ? n.get() : n)), so(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -11710,25 +11710,25 @@ var ec = class {
getBaseTarget(e) {
let { initial: t } = this.props, n;
if (typeof t == "string" || typeof t == "object") {
- let r = $a(this.props, t, this.presenceContext?.custom);
+ let r = eo(this.props, t, this.presenceContext?.custom);
r && (n = r[e]);
}
if (t && n !== void 0) return n;
let r = this.getBaseTargetFromProps(this.props, e);
- return r !== void 0 && !oo(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
+ return r !== void 0 && !so(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
}
on(e, t) {
- return this.events[e] || (this.events[e] = new Qt()), this.events[e].add(t);
+ return this.events[e] || (this.events[e] = new $t()), this.events[e].add(t);
}
notify(e, ...t) {
this.events[e] && this.events[e].notify(...t);
}
scheduleRenderMicrotask() {
- Uo.render(this.render);
+ Wo.render(this.render);
}
-}, tc = class extends ec {
+}, nc = class extends tc {
constructor() {
- super(...arguments), this.KeyframeResolver = Io;
+ super(...arguments), this.KeyframeResolver = Lo;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -11743,11 +11743,11 @@ var ec = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- oo(e) && (this.childSubscription = e.on("change", (e) => {
+ so(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
-}, nc = class {
+}, rc = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
@@ -11755,7 +11755,7 @@ var ec = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function rc({ top: e, left: t, right: n, bottom: r }) {
+function ic({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -11767,7 +11767,7 @@ function rc({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function ic({ x: e, y: t }) {
+function ac({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -11775,7 +11775,7 @@ function ic({ x: e, y: t }) {
left: e.min
};
}
-function ac(e, t) {
+function oc(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -11793,37 +11793,37 @@ function ac(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function oc(e) {
+function sc(e) {
return e === void 0 || e === 1;
}
-function sc({ scale: e, scaleX: t, scaleY: n }) {
- return !oc(e) || !oc(t) || !oc(n);
-}
-function cc(e) {
- return sc(e) || lc(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
+function cc({ scale: e, scaleX: t, scaleY: n }) {
+ return !sc(e) || !sc(t) || !sc(n);
}
function lc(e) {
- return uc(e.x) || uc(e.y);
+ return cc(e) || uc(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
}
function uc(e) {
+ return dc(e.x) || dc(e.y);
+}
+function dc(e) {
return e && e !== "0%";
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function dc(e, t, n) {
+function fc(e, t, n) {
return n + t * (e - n);
}
-function fc(e, t, n, r, i) {
- return i !== void 0 && (e = dc(e, i, r)), dc(e, n, r) + t;
+function pc(e, t, n, r, i) {
+ return i !== void 0 && (e = fc(e, i, r)), fc(e, n, r) + t;
}
-function pc(e, t = 0, n = 1, r, i) {
- e.min = fc(e.min, t, n, r, i), e.max = fc(e.max, t, n, r, i);
+function mc(e, t = 0, n = 1, r, i) {
+ e.min = pc(e.min, t, n, r, i), e.max = pc(e.max, t, n, r, i);
}
-function mc(e, { x: t, y: n }) {
- pc(e.x, t.translate, t.scale, t.originPoint), pc(e.y, n.translate, n.scale, n.originPoint);
+function hc(e, { x: t, y: n }) {
+ mc(e.x, t.translate, t.scale, t.originPoint), mc(e.y, n.translate, n.scale, n.originPoint);
}
-var hc = .999999999999, gc = 1.0000000000001;
-function _c(e, t, n, r = !1) {
+var gc = .999999999999, _c = 1.0000000000001;
+function vc(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
@@ -11831,44 +11831,44 @@ function _c(e, t, n, r = !1) {
for (let s = 0; s < i; s++) {
a = n[s], o = a.projectionDelta;
let { visualElement: i } = a.options;
- i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (vc(e.x, -a.scroll.offset.x), vc(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, mc(e, o)), r && cc(a.latestValues) && xc(e, a.latestValues, a.layout?.layoutBox));
+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (yc(e.x, -a.scroll.offset.x), yc(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, hc(e, o)), r && lc(a.latestValues) && Sc(e, a.latestValues, a.layout?.layoutBox));
}
- t.x < gc && t.x > hc && (t.x = 1), t.y < gc && t.y > hc && (t.y = 1);
+ t.x < _c && t.x > gc && (t.x = 1), t.y < _c && t.y > gc && (t.y = 1);
}
-function vc(e, t) {
+function yc(e, t) {
e.min += t, e.max += t;
}
-function yc(e, t, n, r, i = .5) {
- pc(e, t, n, kr(e.min, e.max, i), r);
+function bc(e, t, n, r, i = .5) {
+ mc(e, t, n, Ar(e.min, e.max, i), r);
}
-function bc(e, t) {
+function xc(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function xc(e, t, n) {
+function Sc(e, t, n) {
let r = n ?? e;
- yc(e.x, bc(t.x, r.x), t.scaleX, t.scale, t.originX), yc(e.y, bc(t.y, r.y), t.scaleY, t.scale, t.originY);
+ bc(e.x, xc(t.x, r.x), t.scaleX, t.scale, t.originX), bc(e.y, xc(t.y, r.y), t.scaleY, t.scale, t.originY);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function Sc(e, t) {
- return rc(ac(e.getBoundingClientRect(), t));
+function Cc(e, t) {
+ return ic(oc(e.getBoundingClientRect(), t));
}
-function Cc(e, t, n) {
- let r = Sc(e, n), { scroll: i } = t;
- return i && (vc(r.x, i.offset.x), vc(r.y, i.offset.y)), r;
+function wc(e, t, n) {
+ let r = Cc(e, n), { scroll: i } = t;
+ return i && (yc(r.x, i.offset.x), yc(r.y, i.offset.y)), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
-var wc = {
+var Tc = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, Tc = Ii.length;
-function Ec(e, t, n) {
+}, Ec = Li.length;
+function Dc(e, t, n) {
let r = "", i = !0;
- for (let a = 0; a < Tc; a++) {
- let o = Ii[a], s = e[o];
+ for (let a = 0; a < Ec; a++) {
+ let o = Li[a], s = e[o];
if (s === void 0) continue;
let c = !0;
if (typeof s == "number") c = s === +!!o.startsWith("scale");
@@ -11877,154 +11877,154 @@ function Ec(e, t, n) {
c = o.startsWith("scale") ? e === 1 : e === 0;
}
if (!c || n) {
- let e = Vo(s, ko[o]);
+ let e = Ho(s, Ao[o]);
if (!c) {
i = !1;
- let t = wc[o] || o;
+ let t = Tc[o] || o;
r += `${t}(${e}) `;
}
n && (t[o] = e);
}
}
let a = e.pathRotation;
- return a && (i = !1, r += `rotate(${Vo(a, ko.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
+ return a && (i = !1, r += `rotate(${Ho(a, Ao.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Dc(e, t, n) {
+function Oc(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (Li.has(e)) {
+ if (Ri.has(e)) {
o = !0;
continue;
}
- if (Ln(e)) {
+ if (Rn(e)) {
i[e] = n;
continue;
}
{
- let t = Vo(n, ko[e]);
+ let t = Ho(n, Ao[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = Ec(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = Dc(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function Oc(e, { style: t, vars: n }, r, i) {
+function kc(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function kc(e, t) {
+function Ac(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Ac = { correct: (e, t) => {
+var jc = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (z.test(e)) e = parseFloat(e);
else return e;
}
- return `${kc(e, t.target.x)}% ${kc(e, t.target.y)}%`;
-} }, jc = { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = Tr.parse(e);
+ return `${Ac(e, t.target.x)}% ${Ac(e, t.target.y)}%`;
+} }, Mc = { correct: (e, { treeScale: t, projectionDelta: n }) => {
+ let r = e, i = Er.parse(e);
if (i.length > 5) return r;
- let a = Tr.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = Er.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = kr(s, c, .5);
+ let l = Ar(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
-} }, Mc = {
+} }, Nc = {
borderRadius: {
- ...Ac,
- applyTo: [...Lo]
+ ...jc,
+ applyTo: [...Ro]
},
- borderTopLeftRadius: Ac,
- borderTopRightRadius: Ac,
- borderBottomLeftRadius: Ac,
- borderBottomRightRadius: Ac,
- boxShadow: jc
+ borderTopLeftRadius: jc,
+ borderTopRightRadius: jc,
+ borderBottomLeftRadius: jc,
+ borderBottomRightRadius: jc,
+ boxShadow: Mc
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function Nc(e, { layout: t, layoutId: n }) {
- return Li.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Mc[e] || e === "opacity");
+function Pc(e, { layout: t, layoutId: n }) {
+ return Ri.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Nc[e] || e === "opacity");
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function Pc(e, t, n) {
+function Fc(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (oo(r[t]) || i && oo(i[t]) || Nc(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (so(r[t]) || i && so(i[t]) || Pc(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function Fc(e) {
+function Ic(e) {
return window.getComputedStyle(e);
}
-var Ic = class extends tc {
+var Lc = class extends nc {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Oc;
+ super(...arguments), this.type = "html", this.renderInstance = kc;
}
mount(e) {
e.style, super.mount(e);
}
readValueFromInstance(e, t) {
- if (Li.has(t)) return this.projection?.isProjecting ? Mi(t) : Pi(e, t);
+ if (Ri.has(t)) return this.projection?.isProjecting ? Ni(t) : Fi(e, t);
{
- let n = Fc(e), r = (Ln(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = Ic(e), r = (Rn(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return Sc(e, t);
+ return Cc(e, t);
}
build(e, t, n) {
- Dc(e, t, n.transformTemplate);
+ Oc(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Pc(e, t, n);
+ return Fc(e, t, n);
}
-}, Lc = {
+}, Rc = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, Rc = {
+}, zc = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function zc(e, t, n = 1, r = 0, i = !0) {
+function Bc(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? Lc : Rc;
+ let a = i ? Rc : zc;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Bc = [
+var Vc = [
"offsetDistance",
"offsetPath",
"offsetRotate",
"offsetAnchor"
];
-function Vc(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Dc(e, s, l), c) {
+function Hc(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Oc(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
- for (let e of Bc) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && zc(d, i, a, o, !1);
+ for (let e of Vc) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && Bc(d, i, a, o, !1);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
-var Hc = /* @__PURE__ */ new Set([
+var Uc = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -12048,68 +12048,68 @@ var Hc = /* @__PURE__ */ new Set([
"startOffset",
"textLength",
"lengthAdjust"
-]), Uc = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), Wc = (e) => typeof e == "string" && e.toLowerCase() === "svg";
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Wc(e, t, n, r) {
- Oc(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(Hc.has(n) ? n : lo(n), t.attrs[n]);
+function Gc(e, t, n, r) {
+ kc(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(Uc.has(n) ? n : uo(n), t.attrs[n]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function Gc(e, t, n) {
- let r = Pc(e, t, n);
- for (let n in e) if (oo(e[n]) || oo(t[n])) {
- let t = Ii.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function Kc(e, t, n) {
+ let r = Fc(e, t, n);
+ for (let n in e) if (so(e[n]) || so(t[n])) {
+ let t = Li.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Kc = class extends tc {
+var qc = class extends nc {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Ls;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Rs;
}
getBaseTargetFromProps(e, t) {
return e[t];
}
readValueFromInstance(e, t) {
- if (Li.has(t)) {
- let e = jo(t);
+ if (Ri.has(t)) {
+ let e = Mo(t);
return e && e.default || 0;
}
- return t = Hc.has(t) ? t : lo(t), e.getAttribute(t);
+ return t = Uc.has(t) ? t : uo(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Gc(e, t, n);
+ return Kc(e, t, n);
}
build(e, t, n) {
- Vc(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ Hc(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Wc(e, t, n, r);
+ Gc(e, t, n, r);
}
mount(e) {
- this.isSVGTag = Uc(e.tagName), super.mount(e);
+ this.isSVGTag = Wc(e.tagName), super.mount(e);
}
-}, qc = Hs.length;
-function Jc(e) {
+}, Jc = Us.length;
+function Yc(e) {
if (!e) return;
if (!e.isControllingVariants) {
- let t = e.parent && Jc(e.parent) || {};
+ let t = e.parent && Yc(e.parent) || {};
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
}
let t = {};
- for (let n = 0; n < qc; n++) {
- let r = Hs[n], i = e.props[r];
- (Bs(i) || i === !1) && (t[r] = i);
+ for (let n = 0; n < Jc; n++) {
+ let r = Us[n], i = e.props[r];
+ (Vs(i) || i === !1) && (t[r] = i);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function Yc(e, t) {
+function Xc(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -12118,13 +12118,13 @@ function Yc(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Xc = [...Vs].reverse(), Zc = Vs.length;
-function Qc(e) {
- return (t) => Promise.all(t.map(({ animation: t, options: n }) => _o(e, t, n)));
-}
+var Zc = [...Hs].reverse(), Qc = Hs.length;
function $c(e) {
- let t = Qc(e), n = nl(), r = !0, i = !1, a = (t) => (n, r) => {
- let i = eo(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => vo(e, t, n)));
+}
+function el(e) {
+ let t = $c(e), n = rl(), r = !0, i = !1, a = (t) => (n, r) => {
+ let i = to(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
if (i) {
let { transition: e, transitionEnd: t, ...r } = i;
n = {
@@ -12139,12 +12139,12 @@ function $c(e) {
t = n(e);
}
function s(o) {
- let { props: s } = e, c = Jc(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
- for (let t = 0; t < Zc; t++) {
- let p = Xc[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = Bs(h), _ = p === o ? m.isActive : null;
+ let { props: s } = e, c = Yc(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
+ for (let t = 0; t < Qc; t++) {
+ let p = Zc[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = Vs(h), _ = p === o ? m.isActive : null;
_ === !1 && (f = t);
let v = h === c[p] && h !== s[p] && g;
- if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || zs(h) || typeof h == "boolean") continue;
+ if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || Bs(h) || typeof h == "boolean") continue;
if (p === "exit" && m.isActive && _ !== !0) {
m.prevResolvedValues && (d = {
...d,
@@ -12152,7 +12152,7 @@ function $c(e) {
});
continue;
}
- let y = el(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
+ let y = tl(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
_ === !1 && (C = {});
let { prevResolvedValues: w = {} } = m, T = {
...w,
@@ -12166,7 +12166,7 @@ function $c(e) {
let t = C[e], n = w[e];
if (d.hasOwnProperty(e)) continue;
let r = !1;
- r = no(t) && no(n) ? !Yc(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
+ r = ro(t) && ro(n) ? !Xc(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
}
m.prevProp = h, m.prevResolvedValues = C, m.isActive && (d = {
...d,
@@ -12176,10 +12176,10 @@ function $c(e) {
b && (!D || x) && l.push(...S.map((t) => {
let n = { type: p };
if (typeof t == "string" && (r || i) && !D && e.manuallyAnimateOnMount && e.parent) {
- let { parent: r } = e, i = eo(r, t);
+ let { parent: r } = e, i = to(r, t);
if (r.enteringChildren && i) {
let { delayChildren: t } = i.transition || {};
- n.delay = Na(r.enteringChildren, e, t);
+ n.delay = Pa(r.enteringChildren, e, t);
}
}
return {
@@ -12191,7 +12191,7 @@ function $c(e) {
if (u.size) {
let t = {};
if (typeof s.initial != "boolean") {
- let n = eo(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
+ let n = to(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
n && n.transition && (t.transition = n.transition);
}
u.forEach((n) => {
@@ -12215,14 +12215,14 @@ function $c(e) {
setAnimateFunction: o,
getState: () => n,
reset: () => {
- n = nl(), i = !0;
+ n = rl(), i = !0;
}
};
}
-function el(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !Yc(t, e) : !1;
+function tl(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !Xc(t, e) : !1;
}
-function tl(e = !1) {
+function nl(e = !1) {
return {
isActive: e,
protectedKeys: {},
@@ -12230,115 +12230,115 @@ function tl(e = !1) {
prevResolvedValues: {}
};
}
-function nl() {
+function rl() {
return {
- animate: tl(!0),
- whileInView: tl(),
- whileHover: tl(),
- whileTap: tl(),
- whileDrag: tl(),
- whileFocus: tl(),
- exit: tl()
+ animate: nl(!0),
+ whileInView: nl(),
+ whileHover: nl(),
+ whileTap: nl(),
+ whileDrag: nl(),
+ whileFocus: nl(),
+ exit: nl()
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function rl(e, t) {
- e.min = t.min, e.max = t.max;
-}
function il(e, t) {
- rl(e.x, t.x), rl(e.y, t.y);
+ e.min = t.min, e.max = t.max;
}
function al(e, t) {
+ il(e.x, t.x), il(e.y, t.y);
+}
+function ol(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var ol = .9999, sl = 1.0001, cl = -.01, ll = .01;
-function ul(e) {
+var sl = .9999, cl = 1.0001, ll = -.01, ul = .01;
+function dl(e) {
return e.max - e.min;
}
-function dl(e, t, n) {
+function fl(e, t, n) {
return Math.abs(e - t) <= n;
}
-function fl(e, t, n, r = .5) {
- e.origin = r, e.originPoint = kr(t.min, t.max, e.origin), e.scale = ul(n) / ul(t), e.translate = kr(n.min, n.max, e.origin) - e.originPoint, (e.scale >= ol && e.scale <= sl || isNaN(e.scale)) && (e.scale = 1), (e.translate >= cl && e.translate <= ll || isNaN(e.translate)) && (e.translate = 0);
+function pl(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = Ar(t.min, t.max, e.origin), e.scale = dl(n) / dl(t), e.translate = Ar(n.min, n.max, e.origin) - e.originPoint, (e.scale >= sl && e.scale <= cl || isNaN(e.scale)) && (e.scale = 1), (e.translate >= ll && e.translate <= ul || isNaN(e.translate)) && (e.translate = 0);
}
-function pl(e, t, n, r) {
- fl(e.x, t.x, n.x, r ? r.originX : void 0), fl(e.y, t.y, n.y, r ? r.originY : void 0);
+function ml(e, t, n, r) {
+ pl(e.x, t.x, n.x, r ? r.originX : void 0), pl(e.y, t.y, n.y, r ? r.originY : void 0);
}
-function ml(e, t, n, r = 0) {
- e.min = (r ? kr(n.min, n.max, r) : n.min) + t.min, e.max = e.min + ul(t);
+function hl(e, t, n, r = 0) {
+ e.min = (r ? Ar(n.min, n.max, r) : n.min) + t.min, e.max = e.min + dl(t);
}
-function hl(e, t, n, r) {
- ml(e.x, t.x, n.x, r?.x), ml(e.y, t.y, n.y, r?.y);
+function gl(e, t, n, r) {
+ hl(e.x, t.x, n.x, r?.x), hl(e.y, t.y, n.y, r?.y);
}
-function gl(e, t, n, r = 0) {
- let i = r ? kr(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + ul(t);
+function _l(e, t, n, r = 0) {
+ let i = r ? Ar(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + dl(t);
}
-function _l(e, t, n, r) {
- gl(e.x, t.x, n.x, r?.x), gl(e.y, t.y, n.y, r?.y);
+function vl(e, t, n, r) {
+ _l(e.x, t.x, n.x, r?.x), _l(e.y, t.y, n.y, r?.y);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function vl(e, t, n, r, i) {
- return e -= t, e = dc(e, 1 / n, r), i !== void 0 && (e = dc(e, 1 / i, r)), e;
+function yl(e, t, n, r, i) {
+ return e -= t, e = fc(e, 1 / n, r), i !== void 0 && (e = fc(e, 1 / i, r)), e;
}
-function yl(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (ir.test(t) && (t = parseFloat(t), t = kr(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = kr(a.min, a.max, r);
- e === a && (s -= t), e.min = vl(e.min, t, n, s, i), e.max = vl(e.max, t, n, s, i);
+function bl(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (ar.test(t) && (t = parseFloat(t), t = Ar(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = Ar(a.min, a.max, r);
+ e === a && (s -= t), e.min = yl(e.min, t, n, s, i), e.max = yl(e.max, t, n, s, i);
}
-function bl(e, t, [n, r, i], a, o) {
- yl(e, t[n], t[r], t[i], t.scale, a, o);
+function xl(e, t, [n, r, i], a, o) {
+ bl(e, t[n], t[r], t[i], t.scale, a, o);
}
-var xl = [
+var Sl = [
"x",
"scaleX",
"originX"
-], Sl = [
+], Cl = [
"y",
"scaleY",
"originY"
];
-function Cl(e, t, n, r) {
- bl(e.x, t, xl, n ? n.x : void 0, r ? r.x : void 0), bl(e.y, t, Sl, n ? n.y : void 0, r ? r.y : void 0);
+function wl(e, t, n, r) {
+ xl(e.x, t, Sl, n ? n.x : void 0, r ? r.x : void 0), xl(e.y, t, Cl, n ? n.y : void 0, r ? r.y : void 0);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function wl(e) {
+function Tl(e) {
return e.translate === 0 && e.scale === 1;
}
-function Tl(e) {
- return wl(e.x) && wl(e.y);
-}
-function El(e, t) {
- return e.min === t.min && e.max === t.max;
+function El(e) {
+ return Tl(e.x) && Tl(e.y);
}
function Dl(e, t) {
- return El(e.x, t.x) && El(e.y, t.y);
+ return e.min === t.min && e.max === t.max;
}
function Ol(e, t) {
- return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
+ return Dl(e.x, t.x) && Dl(e.y, t.y);
}
function kl(e, t) {
- return Ol(e.x, t.x) && Ol(e.y, t.y);
+ return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
+}
+function Al(e, t) {
+ return kl(e.x, t.x) && kl(e.y, t.y);
}
-function Al(e) {
- return ul(e.x) / ul(e.y);
+function jl(e) {
+ return dl(e.x) / dl(e.y);
}
-function jl(e, t) {
+function Ml(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function Ml(e) {
+function Nl(e) {
return [e("x"), e("y")];
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Nl(e, t, n) {
+function Pl(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
@@ -12349,81 +12349,81 @@ function Nl(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var Pl = Lo.length, Fl = (e) => typeof e == "string" ? parseFloat(e) : e, Il = (e) => typeof e == "number" || z.test(e);
-function Ll(e, t, n, r, i, a) {
- i ? (e.opacity = kr(0, n.opacity ?? 1, zl(r)), e.opacityExit = kr(t.opacity ?? 1, 0, Bl(r))) : a && (e.opacity = kr(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < Pl; i++) {
- let a = Lo[i], o = Rl(t, a), s = Rl(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || Il(o) === Il(s) ? (e[a] = Math.max(kr(Fl(o), Fl(s), r), 0), (ir.test(s) || ir.test(o)) && (e[a] += "%")) : e[a] = s);
+var Fl = Ro.length, Il = (e) => typeof e == "string" ? parseFloat(e) : e, Ll = (e) => typeof e == "number" || z.test(e);
+function Rl(e, t, n, r, i, a) {
+ i ? (e.opacity = Ar(0, n.opacity ?? 1, Bl(r)), e.opacityExit = Ar(t.opacity ?? 1, 0, Vl(r))) : a && (e.opacity = Ar(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < Fl; i++) {
+ let a = Ro[i], o = zl(t, a), s = zl(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || Ll(o) === Ll(s) ? (e[a] = Math.max(Ar(Il(o), Il(s), r), 0), (ar.test(s) || ar.test(o)) && (e[a] += "%")) : e[a] = s);
}
- (t.rotate || n.rotate) && (e.rotate = kr(t.rotate || 0, n.rotate || 0, r));
+ (t.rotate || n.rotate) && (e.rotate = Ar(t.rotate || 0, n.rotate || 0, r));
}
-function Rl(e, t) {
+function zl(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var zl = /*@__PURE__*/ Vl(0, .5, hn), Bl = /*@__PURE__*/ Vl(.5, .95, Yt);
-function Vl(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Zt(e, t, r));
+var Bl = /*@__PURE__*/ Hl(0, .5, gn), Vl = /*@__PURE__*/ Hl(.5, .95, Xt);
+function Hl(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Qt(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function Hl(e, t, n) {
- let r = oo(e) ? e : Ra(e);
- return r.start(Ja("", r, t, n)), r.animation;
+function Ul(e, t, n) {
+ let r = so(e) ? e : za(e);
+ return r.start(Ya("", r, t, n)), r.animation;
}
//#endregion
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function Ul(e, t, n, r = { passive: !0 }) {
+function Wl(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var Wl = (e, t) => e.depth - t.depth, Gl = class {
+var Gl = (e, t) => e.depth - t.depth, Kl = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- Vt(this.children, e), this.isDirty = !0;
+ Ht(this.children, e), this.isDirty = !0;
}
remove(e) {
- Ht(this.children, e), this.isDirty = !0;
+ Ut(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(Wl), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(Gl), this.isDirty = !1, this.children.forEach(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
-function Kl(e, t) {
- let n = Fn.now(), r = ({ timestamp: i }) => {
+function ql(e, t) {
+ let n = In.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (An(r), e(a - t));
+ a >= t && (jn(r), e(a - t));
};
- return kn.setup(r, !0), () => An(r);
+ return An.setup(r, !0), () => jn(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function ql(e) {
- return oo(e) ? e.get() : e;
+function Jl(e) {
+ return so(e) ? e.get() : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Jl = class {
+var Yl = class {
constructor() {
this.members = [];
}
add(e) {
- Vt(this.members, e);
+ Ht(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- (!r || r.isConnected === !1) && !n.snapshot && (Ht(this.members, n), n.unmount());
+ (!r || r.isConnected === !1) && !n.snapshot && (Ut(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (Ht(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (Ut(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -12454,51 +12454,51 @@ var Jl = class {
removeLeadSnapshot() {
this.lead?.snapshot && (this.lead.snapshot = void 0);
}
-}, Yl = {
+}, Xl = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, Xl = {
+}, Zl = {
nodes: 0,
calculatedTargetDeltas: 0,
calculatedProjections: 0
-}, Zl = [
+}, Ql = [
"",
"X",
"Y",
"Z"
-], Ql = 1e3, $l = 0;
-function eu(e, t, n, r) {
+], $l = 1e3, eu = 0;
+function tu(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-function tu(e) {
+function nu(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = fo(t);
+ let n = po(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", kn, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", An, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && tu(r);
+ r && !r.hasCheckedOptimisedAppear && nu(r);
}
-function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+function ru({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
return class {
constructor(e = {}, n = t?.()) {
- this.id = $l++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = eu++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, Es.value && (Xl.nodes = Xl.calculatedTargetDeltas = Xl.calculatedProjections = 0), this.nodes.forEach(au), this.nodes.forEach(mu), this.nodes.forEach(hu), this.nodes.forEach(ou), Es.addProjectionMetrics && Es.addProjectionMetrics(Xl);
+ this.projectionUpdateScheduled = !1, Ds.value && (Zl.nodes = Zl.calculatedTargetDeltas = Zl.calculatedProjections = 0), this.nodes.forEach(ou), this.nodes.forEach(hu), this.nodes.forEach(gu), this.nodes.forEach(su), Ds.addProjectionMetrics && Ds.addProjectionMetrics(Zl);
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Gl());
+ this.root === this && (this.nodes = new Kl());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Qt()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new $t()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
let n = this.eventHandlers.get(e);
@@ -12509,15 +12509,15 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = ds(t) && !Ds(t), this.instance = t;
+ this.isSVG = fs(t) && !Os(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- kn.read(() => {
+ An.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Kl(i, 250), Yl.hasAnimatedSinceResize && (Yl.hasAnimatedSinceResize = !1, this.nodes.forEach(pu)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = ql(i, 250), Xl.hasAnimatedSinceResize && (Xl.hasAnimatedSinceResize = !1, this.nodes.forEach(mu)));
});
}
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
@@ -12525,23 +12525,23 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || i.getDefaultTransition() || Su, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !kl(this.targetLayout, r), l = !t && n;
+ let a = this.options.transition || i.getDefaultTransition() || Cu, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !Al(this.targetLayout, r), l = !t && n;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...Ba(a, "layout"),
+ ...Va(a, "layout"),
onPlay: o,
onComplete: s
};
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || pu(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ } else t || mu(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
this.targetLayout = r;
});
}
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
let e = this.getStack();
- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), An(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), jn(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -12556,7 +12556,7 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(gu), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(_u), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -12567,7 +12567,7 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete && this.options.onExitComplete();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && tu(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && nu(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
@@ -12581,39 +12581,39 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(lu), this.nodes.forEach(cu);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(uu), this.nodes.forEach(lu);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(uu);
+ this.nodes.forEach(du);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(du), this.nodes.forEach(fu), this.nodes.forEach(ru), this.nodes.forEach(iu)) : this.nodes.forEach(uu), this.clearAllSnapshots();
- let e = Fn.now();
- jn.delta = Ut(0, 1e3 / 60, e - jn.timestamp), jn.timestamp = e, jn.isProcessing = !0, Mn.update.process(jn), Mn.preRender.process(jn), Mn.render.process(jn), jn.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(fu), this.nodes.forEach(pu), this.nodes.forEach(iu), this.nodes.forEach(au)) : this.nodes.forEach(du), this.clearAllSnapshots();
+ let e = In.now();
+ Mn.delta = Wt(0, 1e3 / 60, e - Mn.timestamp), Mn.timestamp = e, Mn.isProcessing = !0, Nn.update.process(Mn), Nn.preRender.process(Mn), Nn.render.process(Mn), Mn.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, Uo.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, Wo.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(su), this.sharedNodes.forEach(_u);
+ this.nodes.forEach(cu), this.sharedNodes.forEach(vu);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, kn.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, An.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- kn.postRender(() => {
+ An.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !ul(this.snapshot.measuredBox.x) && !ul(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !dl(this.snapshot.measuredBox.x) && !dl(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= Ls(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= Rs(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
}
@@ -12632,12 +12632,12 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
resetTransform() {
if (!i) return;
- let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !Tl(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || cc(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !El(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || lc(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Eu(n), {
+ return e && (n = this.removeTransform(n)), Du(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -12647,42 +12647,42 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return Ls();
+ if (!e) return Rs();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(Ou))) {
+ if (!(this.scroll?.wasRoot || this.path.some(ku))) {
let { scroll: e } = this.root;
- e && (vc(t.x, e.offset.x), vc(t.y, e.offset.y));
+ e && (yc(t.x, e.offset.x), yc(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = Ls();
- if (il(t, e), this.scroll?.wasRoot) return t;
+ let t = Rs();
+ if (al(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && il(t, e), vc(t.x, i.offset.x), vc(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && al(t, e), yc(t.x, i.offset.x), yc(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n) {
- let r = n || Ls();
- il(r, e);
+ let r = n || Rs();
+ al(r, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (vc(r.x, -n.scroll.offset.x), vc(r.y, -n.scroll.offset.y)), cc(n.latestValues) && xc(r, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (yc(r.x, -n.scroll.offset.x), yc(r.y, -n.scroll.offset.y)), lc(n.latestValues) && Sc(r, n.latestValues, n.layout?.layoutBox);
}
- return cc(this.latestValues) && xc(r, this.latestValues, this.layout?.layoutBox), r;
+ return lc(this.latestValues) && Sc(r, this.latestValues, this.layout?.layoutBox), r;
}
removeTransform(e) {
- let t = Ls();
- il(t, e);
+ let t = Rs();
+ al(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!cc(n.latestValues)) continue;
+ if (!lc(n.latestValues)) continue;
let r;
- n.instance && (sc(n.latestValues) && n.updateSnapshot(), r = Ls(), il(r, n.measurePageBox())), Cl(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (cc(n.latestValues) && n.updateSnapshot(), r = Rs(), al(r, n.measurePageBox())), wl(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return cc(this.latestValues) && Cl(t, this.latestValues), t;
+ return lc(this.latestValues) && wl(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -12698,7 +12698,7 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== jn.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== Mn.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -12707,36 +12707,36 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = jn.timestamp;
+ this.resolvedRelativeTargetAt = Mn.timestamp;
let a = this.getClosestProjectingParent();
- a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = Ls(), this.targetWithTransforms = Ls()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), hl(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : il(this.target, this.layout.layoutBox), mc(this.target, this.targetDelta)) : il(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), Es.value && Xl.calculatedTargetDeltas++);
+ a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = Rs(), this.targetWithTransforms = Rs()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), gl(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : al(this.target, this.layout.layoutBox), hc(this.target, this.targetDelta)) : al(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), Ds.value && Zl.calculatedTargetDeltas++);
}
getClosestProjectingParent() {
- if (!(!this.parent || sc(this.parent.latestValues) || lc(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || cc(this.parent.latestValues) || uc(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Ls(), this.relativeTargetOrigin = Ls(), _l(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), il(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Rs(), this.relativeTargetOrigin = Rs(), vl(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), al(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === jn.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === Mn.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- il(this.layoutCorrected, this.layout.layoutBox);
+ al(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- _c(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Ls());
+ vc(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Rs());
let { target: s } = e;
if (!s) {
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
return;
}
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (al(this.prevProjectionDelta.x, this.projectionDelta.x), al(this.prevProjectionDelta.y, this.projectionDelta.y)), pl(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !jl(this.projectionDelta.x, this.prevProjectionDelta.x) || !jl(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), Es.value && Xl.calculatedProjections++;
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ol(this.prevProjectionDelta.x, this.projectionDelta.x), ol(this.prevProjectionDelta.y, this.projectionDelta.y)), ml(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !Ml(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ml(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), Ds.value && Zl.calculatedProjections++;
}
hide() {
this.isVisible = !1;
@@ -12752,22 +12752,22 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = Fs(), this.projectionDelta = Fs(), this.projectionDeltaWithTransform = Fs();
+ this.prevProjectionDelta = Is(), this.projectionDelta = Is(), this.projectionDeltaWithTransform = Is();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Fs();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Is();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = Ls(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(xu));
+ let s = Rs(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(Su));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- r ? (o.x.translate = r.x, o.x.scale = kr(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = kr(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (vu(o.x, e.x, n), vu(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (_l(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), bu(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Dl(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Ls(), il(f, this.relativeTarget)), c && (this.animationValues = a, Ll(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ r ? (o.x.translate = r.x, o.x.scale = Ar(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = Ar(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (yu(o.x, e.x, n), yu(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (vl(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), xu(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Ol(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Rs(), al(f, this.relativeTarget)), c && (this.animationValues = a, Rl(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (An(this.pendingAnimation), void 0), this.pendingAnimation = kn.update(() => {
- Yl.hasAnimatedSinceResize = !0, this.motionValue ||= Ra(0), this.motionValue.jump(0, !1), this.currentAnimation = Hl(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (jn(this.pendingAnimation), void 0), this.pendingAnimation = An.update(() => {
+ Xl.hasAnimatedSinceResize = !0, this.motionValue ||= za(0), this.motionValue.jump(0, !1), this.currentAnimation = Ul(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -12786,23 +12786,23 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Ql), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta($l), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
if (!(!t || !n || !r)) {
- if (this !== e && this.layout && r && Du(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
- n = this.target || Ls();
- let t = ul(this.layout.layoutBox.x);
+ if (this !== e && this.layout && r && Ou(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
+ n = this.target || Rs();
+ let t = dl(this.layout.layoutBox.x);
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
- let r = ul(this.layout.layoutBox.y);
+ let r = dl(this.layout.layoutBox.y);
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
}
- il(t, n), xc(t, i), pl(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
+ al(t, n), Sc(t, i), ml(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Jl()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Yl()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n ? n.transition : void 0,
@@ -12839,8 +12839,8 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let t = !1, { latestValues: n } = e;
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
let r = {};
- n.z && eu("z", e, r, this.animationValues);
- for (let t = 0; t < Zl.length; t++) eu(`rotate${Zl[t]}`, e, r, this.animationValues), eu(`skew${Zl[t]}`, e, r, this.animationValues);
+ n.z && tu("z", e, r, this.animationValues);
+ for (let t = 0; t < Ql.length; t++) tu(`rotate${Ql[t]}`, e, r, this.animationValues), tu(`skew${Ql[t]}`, e, r, this.animationValues);
e.render();
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
e.scheduleRender();
@@ -12853,71 +12853,71 @@ function nu({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let n = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = ql(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Jl(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
return;
}
let r = this.getLead();
if (!this.projectionDelta || !this.layout || !r.target) {
- this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = ql(t?.pointerEvents) || ""), this.hasProjected && !cc(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = Jl(t?.pointerEvents) || ""), this.hasProjected && !lc(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = r.animationValues || r.latestValues;
this.applyTransformsToTarget();
- let a = Nl(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = Pl(this.projectionDeltaWithTransform, this.treeScale, i);
n && (a = n(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = r.animationValues ? r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in Mc) {
+ for (let t in Nc) {
if (i[t] === void 0) continue;
- let { correct: n, applyTo: o, isCSSVariable: s } = Mc[t], c = a === "none" ? i[t] : n(i[t], r);
+ let { correct: n, applyTo: o, isCSSVariable: s } = Nc[t], c = a === "none" ? i[t] : n(i[t], r);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = r === this ? ql(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = r === this ? Jl(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(cu), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(lu), this.root.sharedNodes.clear();
}
};
}
-function ru(e) {
+function iu(e) {
e.updateLayout();
}
-function iu(e) {
+function au(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
- if (i === "size") Ml((e) => {
- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = ul(r);
+ if (i === "size") Nl((e) => {
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = dl(r);
r.min = n[e].min, r.max = r.min + i;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- rl(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
- } else Du(i, t.layoutBox, n) && Ml((r) => {
- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = ul(n[r]);
+ il(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
+ } else Ou(i, t.layoutBox, n) && Nl((r) => {
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = dl(n[r]);
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
});
- let o = Fs();
- pl(o, n, t.layoutBox);
- let s = Fs();
- a ? pl(s, e.applyTransform(r, !0), t.measuredBox) : pl(s, n, t.layoutBox);
- let c = !Tl(o), l = !1;
+ let o = Is();
+ ml(o, n, t.layoutBox);
+ let s = Is();
+ a ? ml(s, e.applyTransform(r, !0), t.measuredBox) : ml(s, n, t.layoutBox);
+ let c = !El(o), l = !1;
if (!e.resumeFrom) {
let r = e.getClosestProjectingParent();
if (r && !r.resumeFrom) {
let { snapshot: i, layout: a } = r;
if (i && a) {
- let o = e.options.layoutAnchor || void 0, s = Ls();
- _l(s, t.layoutBox, i.layoutBox, o);
- let c = Ls();
- _l(c, n, a.layoutBox, o), kl(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
+ let o = e.options.layoutAnchor || void 0, s = Rs();
+ vl(s, t.layoutBox, i.layoutBox, o);
+ let c = Rs();
+ vl(c, n, a.layoutBox, o), Al(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
}
}
}
@@ -12935,59 +12935,59 @@ function iu(e) {
}
e.options.transition = void 0;
}
-function au(e) {
- Es.value && Xl.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
-}
function ou(e) {
- e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+ Ds.value && Zl.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
function su(e) {
- e.clearSnapshot();
+ e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
function cu(e) {
- e.clearMeasurements();
+ e.clearSnapshot();
}
function lu(e) {
- e.isLayoutDirty = !0, e.updateLayout();
+ e.clearMeasurements();
}
function uu(e) {
- e.isLayoutDirty = !1;
+ e.isLayoutDirty = !0, e.updateLayout();
}
function du(e) {
- e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
+ e.isLayoutDirty = !1;
}
function fu(e) {
+ e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
+}
+function pu(e) {
let { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function pu(e) {
+function mu(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function mu(e) {
+function hu(e) {
e.resolveTargetDelta();
}
-function hu(e) {
+function gu(e) {
e.calcProjection();
}
-function gu(e) {
+function _u(e) {
e.resetSkewAndRotation();
}
-function _u(e) {
+function vu(e) {
e.removeLeadSnapshot();
}
-function vu(e, t, n) {
- e.translate = kr(t.translate, 0, n), e.scale = kr(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
-}
-function yu(e, t, n, r) {
- e.min = kr(t.min, n.min, r), e.max = kr(t.max, n.max, r);
+function yu(e, t, n) {
+ e.translate = Ar(t.translate, 0, n), e.scale = Ar(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
function bu(e, t, n, r) {
- yu(e.x, t.x, n.x, r), yu(e.y, t.y, n.y, r);
+ e.min = Ar(t.min, n.min, r), e.max = Ar(t.max, n.max, r);
+}
+function xu(e, t, n, r) {
+ bu(e.x, t.x, n.x, r), bu(e.y, t.y, n.y, r);
}
-function xu(e) {
+function Su(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
}
-var Su = {
+var Cu = {
duration: .45,
ease: [
.4,
@@ -12995,79 +12995,79 @@ var Su = {
.1,
1
]
-}, Cu = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), wu = Cu("applewebkit/") && !Cu("chrome/") ? Math.round : Yt;
-function Tu(e) {
- e.min = wu(e.min), e.max = wu(e.max);
-}
+}, wu = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Tu = wu("applewebkit/") && !wu("chrome/") ? Math.round : Xt;
function Eu(e) {
- Tu(e.x), Tu(e.y);
+ e.min = Tu(e.min), e.max = Tu(e.max);
+}
+function Du(e) {
+ Eu(e.x), Eu(e.y);
}
-function Du(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !dl(Al(t), Al(n), .2);
+function Ou(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !fl(jl(t), jl(n), .2);
}
-function Ou(e) {
+function ku(e) {
return e !== e.root && e.scroll?.wasRoot;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var ku = nu({
- attachResizeListener: (e, t) => Ul(e, "resize", t),
+var Au = ru({
+ attachResizeListener: (e, t) => Wl(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
}),
checkIsScrollRoot: () => !0
-}), Au = { current: void 0 }, ju = nu({
+}), ju = { current: void 0 }, Mu = ru({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!Au.current) {
- let e = new ku({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), Au.current = e;
+ if (!ju.current) {
+ let e = new Au({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), ju.current = e;
}
- return Au.current;
+ return ju.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), Mu = (0, R.createContext)({
+}), Nu = (0, R.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function Nu(e, t) {
+function Pu(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Pu(...e) {
+function Fu(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = Nu(e, t);
+ let r = Pu(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : Nu(e[t], null);
+ typeof n == "function" ? n() : Pu(e[t], null);
}
};
};
}
-function Fu(...e) {
- return R.useCallback(Pu(...e), e);
+function Iu(...e) {
+ return R.useCallback(Fu(...e), e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var B = It(), Iu = class extends R.Component {
+var B = Lt(), Lu = class extends R.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.childRef.current;
- if (Ho(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = Ho(e) && e.offsetWidth || 0, r = Ho(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ if (Uo(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = Uo(e) && e.offsetWidth || 0, r = Uo(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
}
return null;
@@ -13077,7 +13077,7 @@ var B = It(), Iu = class extends R.Component {
return this.props.children;
}
};
-function Lu({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
+function Ru({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
let o = (0, R.useId)(), s = (0, R.useRef)(null), c = (0, R.useRef)({
width: 0,
height: 0,
@@ -13086,7 +13086,7 @@ function Lu({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: l } = (0, R.useContext)(Mu), u = Fu(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ }), { nonce: l } = (0, R.useContext)(Nu), u = Iu(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
return (0, R.useInsertionEffect)(() => {
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
if (t || a === !1 || !s.current || !e || !u) return;
@@ -13106,7 +13106,7 @@ function Lu({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
`), () => {
s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
};
- }, [t]), (0, B.jsx)(Iu, {
+ }, [t]), (0, B.jsx)(Lu, {
isPresent: t,
childRef: s,
sizeRef: c,
@@ -13116,9 +13116,9 @@ function Lu({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Ru = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = Rt(zu), d = (0, R.useId)(), f = (0, R.useRef)(n), p = (0, R.useRef)(r);
- zt(() => {
+var zu = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = zt(Bu), d = (0, R.useId)(), f = (0, R.useRef)(n), p = (0, R.useRef)(r);
+ Bt(() => {
f.current = n, p.current = r;
});
let m = !0, h = (0, R.useMemo)(() => (m = !1, {
@@ -13143,25 +13143,25 @@ var Ru = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i,
u.forEach((e, t) => u.set(t, !1));
}, [n]), R.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, B.jsx)(Lu, {
+ }, [n]), e = (0, B.jsx)(Ru, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
anchorY: c,
root: l,
children: e
- }), (0, B.jsx)(Bt.Provider, {
+ }), (0, B.jsx)(Vt.Provider, {
value: h,
children: e
});
};
-function zu() {
+function Bu() {
return /* @__PURE__ */ new Map();
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Bu(e = !0) {
- let t = (0, R.useContext)(Bt);
+function Vu(e = !0) {
+ let t = (0, R.useContext)(Vt);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, R.useId)();
(0, R.useEffect)(() => {
@@ -13174,16 +13174,16 @@ function Bu(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Vu() {
- return Hu((0, R.useContext)(Bt));
+function Hu() {
+ return Uu((0, R.useContext)(Vt));
}
-function Hu(e) {
+function Uu(e) {
return e === null || e.isPresent;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Uu = (e) => e.key || "";
-function Wu(e) {
+var Wu = (e) => e.key || "";
+function Gu(e) {
let t = [];
return R.Children.forEach(e, (e) => {
(0, R.isValidElement)(e) && t.push(e);
@@ -13191,12 +13191,12 @@ function Wu(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Gu = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = Bu(o), f = (0, R.useMemo)(() => Wu(e), [e]), p = o && !u ? [] : f.map(Uu), m = (0, R.useRef)(!0), h = (0, R.useRef)(f), g = Rt(() => /* @__PURE__ */ new Map()), _ = (0, R.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, R.useState)(f), [b, x] = (0, R.useState)(f);
- zt(() => {
+var Ku = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Vu(o), f = (0, R.useMemo)(() => Gu(e), [e]), p = o && !u ? [] : f.map(Wu), m = (0, R.useRef)(!0), h = (0, R.useRef)(f), g = zt(() => /* @__PURE__ */ new Map()), _ = (0, R.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, R.useState)(f), [b, x] = (0, R.useState)(f);
+ Bt(() => {
m.current = !1, h.current = f;
for (let e = 0; e < b.length; e++) {
- let t = Uu(b[e]);
+ let t = Wu(b[e]);
p.includes(t) ? (g.delete(t), _.current.delete(t)) : g.get(t) !== !0 && g.set(t, !1);
}
}, [
@@ -13208,15 +13208,15 @@ var Gu = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== v) {
let e = [...f];
for (let t = 0; t < b.length; t++) {
- let n = b[t], r = Uu(n);
+ let n = b[t], r = Wu(n);
p.includes(r) || (e.splice(t, 0, n), S.push(n));
}
- return a === "wait" && S.length && (e = S), x(Wu(e)), y(f), null;
+ return a === "wait" && S.length && (e = S), x(Gu(e)), y(f), null;
}
- let { forceRender: C } = (0, R.useContext)(Lt);
+ let { forceRender: C } = (0, R.useContext)(Rt);
return (0, B.jsx)(B.Fragment, { children: b.map((e) => {
- let v = Uu(e), y = o && !u ? !1 : f === b || p.includes(v);
- return (0, B.jsx)(Ru, {
+ let v = Wu(e), y = o && !u ? !1 : f === b || p.includes(v);
+ return (0, B.jsx)(zu, {
isPresent: y,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -13237,7 +13237,7 @@ var Gu = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, v);
}) });
-}, Ku = (0, R.createContext)({ strict: !1 }), qu = {
+}, qu = (0, R.createContext)({ strict: !1 }), Ju = {
animation: [
"animate",
"variants",
@@ -13274,98 +13274,98 @@ var Gu = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Ju = !1;
-function Yu() {
- if (Ju) return;
+}, Yu = !1;
+function Xu() {
+ if (Yu) return;
let e = {};
- for (let t in qu) e[t] = { isEnabled: (e) => qu[t].some((t) => !!e[t]) };
- Qs(e), Ju = !0;
+ for (let t in Ju) e[t] = { isEnabled: (e) => Ju[t].some((t) => !!e[t]) };
+ $s(e), Yu = !0;
}
-function Xu() {
- return Yu(), $s();
+function Zu() {
+ return Xu(), ec();
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function Zu(e) {
- let t = Xu();
+function Qu(e) {
+ let t = Zu();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Qs(t);
+ $s(t);
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var Qu = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function $u(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Qu.has(e);
+var $u = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function ed(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || $u.has(e);
}
//#endregion
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
-var ed = /* @__PURE__ */ Ct({ default: () => td }), td, nd = xt((() => {
- throw td = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
-})), rd = (e) => !$u(e);
-function id(e) {
- typeof e == "function" && (rd = (t) => t.startsWith("on") ? !$u(t) : e(t));
+var td = /* @__PURE__ */ wt({ default: () => nd }), nd, rd = St((() => {
+ throw nd = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
+})), id = (e) => !ed(e);
+function ad(e) {
+ typeof e == "function" && (id = (t) => t.startsWith("on") ? !ed(t) : e(t));
}
try {
- id((nd(), Dt(ed)).default);
+ ad((rd(), Ot(td)).default);
} catch {}
-function ad(e, t, n) {
+function od(e, t, n) {
let r = {};
- for (let i in e) (i !== "values" || typeof e.values != "object") && (oo(e[i]) || (rd(i) || n === !0 && $u(i) || !t && !$u(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
+ for (let i in e) (i !== "values" || typeof e.values != "object") && (so(e[i]) || (id(i) || n === !0 && ed(i) || !t && !ed(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
return r;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function od({ children: e, isValidProp: t, ...n }) {
- t && id(t);
- let r = (0, R.useContext)(Mu);
+function sd({ children: e, isValidProp: t, ...n }) {
+ t && ad(t);
+ let r = (0, R.useContext)(Nu);
n = {
...r,
...n
- }, n.transition = za(n.transition, r.transition), n.isStatic = Rt(() => n.isStatic);
+ }, n.transition = Ba(n.transition, r.transition), n.isStatic = zt(() => n.isStatic);
let i = (0, R.useMemo)(() => n, [
JSON.stringify(n.transition),
n.transformPagePoint,
n.reducedMotion,
n.skipAnimations
]);
- return (0, B.jsx)(Mu.Provider, {
+ return (0, B.jsx)(Nu.Provider, {
value: i,
children: e
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var sd = /* @__PURE__ */ (0, R.createContext)({});
+var cd = /* @__PURE__ */ (0, R.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function cd(e, t) {
- if (Us(e)) {
+function ld(e, t) {
+ if (Ws(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || Bs(t) ? t : void 0,
- animate: Bs(n) ? n : void 0
+ initial: t === !1 || Vs(t) ? t : void 0,
+ animate: Vs(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function ld(e) {
- let { initial: t, animate: n } = cd(e, (0, R.useContext)(sd));
+function ud(e) {
+ let { initial: t, animate: n } = ld(e, (0, R.useContext)(cd));
return (0, R.useMemo)(() => ({
initial: t,
animate: n
- }), [ud(t), ud(n)]);
+ }), [dd(t), dd(n)]);
}
-function ud(e) {
+function dd(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var dd = () => ({
+var fd = () => ({
style: {},
transform: {},
transformOrigin: {},
@@ -13373,42 +13373,42 @@ var dd = () => ({
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function fd(e, t, n) {
- for (let r in t) !oo(t[r]) && !Nc(r, n) && (e[r] = t[r]);
+function pd(e, t, n) {
+ for (let r in t) !so(t[r]) && !Pc(r, n) && (e[r] = t[r]);
}
-function pd({ transformTemplate: e }, t) {
+function md({ transformTemplate: e }, t) {
return (0, R.useMemo)(() => {
- let n = dd();
- return Dc(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = fd();
+ return Oc(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function md(e, t) {
+function hd(e, t) {
let n = e.style || {}, r = {};
- return fd(r, n, e), Object.assign(r, pd(e, t)), r;
+ return pd(r, n, e), Object.assign(r, md(e, t)), r;
}
-function hd(e, t) {
- let n = {}, r = md(e, t);
+function gd(e, t) {
+ let n = {}, r = hd(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var gd = () => ({
- ...dd(),
+var _d = () => ({
+ ...fd(),
attrs: {}
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function _d(e, t, n, r) {
+function vd(e, t, n, r) {
let i = (0, R.useMemo)(() => {
- let n = gd();
- return Vc(n, t, Uc(r), e.transformTemplate, e.style), {
+ let n = _d();
+ return Hc(n, t, Wc(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- fd(t, e.style, e), i.style = {
+ pd(t, e.style, e), i.style = {
...t,
...i.style
};
@@ -13417,7 +13417,7 @@ function _d(e, t, n, r) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var vd = [
+var yd = [
"animate",
"circle",
"defs",
@@ -13446,17 +13446,17 @@ var vd = [
];
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function yd(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(vd.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function bd(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(yd.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function bd(e, t, n, { latestValues: r }, i, a = !1, o) {
- let s = (o ?? yd(e) ? _d : hd)(t, r, i, e), c = ad(t, typeof e == "string", a), l = e === R.Fragment ? {} : {
+function xd(e, t, n, { latestValues: r }, i, a = !1, o) {
+ let s = (o ?? bd(e) ? vd : gd)(t, r, i, e), c = od(t, typeof e == "string", a), l = e === R.Fragment ? {} : {
...c,
...s,
ref: n
- }, { children: u } = t, d = (0, R.useMemo)(() => oo(u) ? u.get() : u, [u]);
+ }, { children: u } = t, d = (0, R.useMemo)(() => so(u) ? u.get() : u, [u]);
return (0, R.createElement)(e, {
...l,
children: d
@@ -13464,24 +13464,24 @@ function bd(e, t, n, { latestValues: r }, i, a = !1, o) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function xd({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function Sd({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: Sd(n, r, i, e),
+ latestValues: Cd(n, r, i, e),
renderState: t()
};
}
-function Sd(e, t, n, r) {
+function Cd(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = ql(a[e]);
- let { initial: o, animate: s } = e, c = Us(e), l = Ws(e);
+ for (let e in a) i[e] = Jl(a[e]);
+ let { initial: o, animate: s } = e, c = Ws(e), l = Gs(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !zs(d)) {
+ if (d && typeof d != "boolean" && !Bs(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = $a(e, t[n]);
+ let r = eo(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -13498,19 +13498,19 @@ function Sd(e, t, n, r) {
}
return i;
}
-var Cd = (e) => (t, n) => {
- let r = (0, R.useContext)(sd), i = (0, R.useContext)(Bt), a = () => xd(e, t, r, i);
- return n ? a() : Rt(a);
-}, wd = /*@__PURE__*/ Cd({
- scrapeMotionValuesFromProps: Pc,
- createRenderState: dd
-}), Td = /*@__PURE__*/ Cd({
- scrapeMotionValuesFromProps: Gc,
- createRenderState: gd
-}), Ed = Symbol.for("motionComponentSymbol");
+var wd = (e) => (t, n) => {
+ let r = (0, R.useContext)(cd), i = (0, R.useContext)(Vt), a = () => Sd(e, t, r, i);
+ return n ? a() : zt(a);
+}, Td = /*@__PURE__*/ wd({
+ scrapeMotionValuesFromProps: Fc,
+ createRenderState: fd
+}), Ed = /*@__PURE__*/ wd({
+ scrapeMotionValuesFromProps: Kc,
+ createRenderState: _d
+}), Dd = Symbol.for("motionComponentSymbol");
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function Dd(e, t, n) {
+function Od(e, t, n) {
let r = (0, R.useRef)(n);
(0, R.useInsertionEffect)(() => {
r.current = n;
@@ -13529,16 +13529,16 @@ function Dd(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Od = (0, R.createContext)({});
+var kd = (0, R.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function kd(e) {
+function Ad(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Ad(e, t, n, r, i, a) {
- let { visualElement: o } = (0, R.useContext)(sd), s = (0, R.useContext)(Ku), c = (0, R.useContext)(Bt), l = (0, R.useContext)(Mu), u = l.reducedMotion, d = l.skipAnimations, f = (0, R.useRef)(null), p = (0, R.useRef)(!1);
+function jd(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, R.useContext)(cd), s = (0, R.useContext)(qu), c = (0, R.useContext)(Vt), l = (0, R.useContext)(Nu), u = l.reducedMotion, d = l.skipAnimations, f = (0, R.useRef)(null), p = (0, R.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -13549,14 +13549,14 @@ function Ad(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, R.useContext)(Od);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && jd(f.current, n, i, h);
+ let m = f.current, h = (0, R.useContext)(kd);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && Md(f.current, n, i, h);
let g = (0, R.useRef)(!1);
(0, R.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
});
- let _ = n[uo], v = (0, R.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
- return zt(() => {
+ let _ = n[fo], v = (0, R.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
+ return Bt(() => {
p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
}), (0, R.useEffect)(() => {
m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
@@ -13564,12 +13564,12 @@ function Ad(e, t, n, r, i, a) {
}), !1), m.enteringChildren = void 0);
}), m;
}
-function jd(e, t, n, r) {
+function Md(e, t, n, r) {
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Md(e.parent)), e.projection.setOptions({
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Nd(e.parent)), e.projection.setOptions({
layoutId: i,
layout: a,
- alwaysMeasureLayout: !!o || s && kd(s),
+ alwaysMeasureLayout: !!o || s && Ad(s),
visualElement: e,
animationType: typeof a == "string" ? a : "both",
initialPromotionConfig: r,
@@ -13579,46 +13579,46 @@ function jd(e, t, n, r) {
layoutAnchor: u
});
}
-function Md(e) {
- if (e) return e.options.allowProjection === !1 ? Md(e.parent) : e.projection;
+function Nd(e) {
+ if (e) return e.options.allowProjection === !1 ? Nd(e.parent) : e.projection;
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function Nd(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && Zu(r);
- let a = n ? n === "svg" : yd(e), o = a ? Td : wd;
+function Pd(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && Qu(r);
+ let a = n ? n === "svg" : bd(e), o = a ? Ed : Td;
function s(n, s) {
let c, l = {
- ...(0, R.useContext)(Mu),
+ ...(0, R.useContext)(Nu),
...n,
- layoutId: Pd(n)
- }, { isStatic: u } = l, d = ld(n), f = o(n, u);
+ layoutId: Fd(n)
+ }, { isStatic: u } = l, d = ud(n), f = o(n, u);
if (!u && typeof window < "u") {
- Fd(l, r);
- let t = Id(l);
- c = t.MeasureLayout, d.visualElement = Ad(e, f, l, i, t.ProjectionNode, a);
+ Id(l, r);
+ let t = Ld(l);
+ c = t.MeasureLayout, d.visualElement = jd(e, f, l, i, t.ProjectionNode, a);
}
- return (0, B.jsxs)(sd.Provider, {
+ return (0, B.jsxs)(cd.Provider, {
value: d,
children: [c && d.visualElement ? (0, B.jsx)(c, {
visualElement: d.visualElement,
...l
- }) : null, bd(e, n, Dd(f, d.visualElement, s), f, u, t, a)]
+ }) : null, xd(e, n, Od(f, d.visualElement, s), f, u, t, a)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, R.forwardRef)(s);
- return c[Ed] = e, c;
+ return c[Dd] = e, c;
}
-function Pd({ layoutId: e }) {
- let t = (0, R.useContext)(Lt).id;
+function Fd({ layoutId: e }) {
+ let t = (0, R.useContext)(Rt).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Fd(e, t) {
- (0, R.useContext)(Ku).strict;
+function Id(e, t) {
+ (0, R.useContext)(qu).strict;
}
-function Id(e) {
- let { drag: t, layout: n } = Xu();
+function Ld(e) {
+ let { drag: t, layout: n } = Zu();
if (!t && !n) return {};
let r = {
...t,
@@ -13631,20 +13631,20 @@ function Id(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Ld(e, t) {
- if (typeof Proxy > "u") return Nd;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Nd(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Nd(a, void 0, e, t)), n.get(a)) });
+function Rd(e, t) {
+ if (typeof Proxy > "u") return Pd;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Pd(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Pd(a, void 0, e, t)), n.get(a)) });
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Rd = (e, t) => t.isSVG ?? yd(e) ? new Kc(t) : new Ic(t, { allowProjection: e !== R.Fragment }), zd = class extends nc {
+var zd = (e, t) => t.isSVG ?? bd(e) ? new qc(t) : new Lc(t, { allowProjection: e !== R.Fragment }), Bd = class extends rc {
constructor(e) {
- super(e), e.animationState ||= $c(e);
+ super(e), e.animationState ||= el(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- zs(e) && (this.unmountControls = e.subscribe(this.node));
+ Bs(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -13656,11 +13656,11 @@ var Rd = (e, t) => t.isSVG ?? yd(e) ? new Kc(t) : new Ic(t, { allowProjection: e
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Bd = 0, Vd = {
- animation: { Feature: zd },
- exit: { Feature: class extends nc {
+}, Vd = 0, Hd = {
+ animation: { Feature: Bd },
+ exit: { Feature: class extends rc {
constructor() {
- super(...arguments), this.id = Bd++, this.isExitComplete = !1;
+ super(...arguments), this.id = Vd++, this.isExitComplete = !1;
}
update() {
if (!this.node.presenceContext) return;
@@ -13670,7 +13670,7 @@ var Rd = (e, t) => t.isSVG ?? yd(e) ? new Kc(t) : new Ic(t, { allowProjection: e
if (this.isExitComplete) {
let { initial: e, custom: t } = this.node.getProps();
if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {
- let n = eo(this.node, e, t);
+ let n = to(this.node, e, t);
if (n) {
let { transition: e, transitionEnd: t, ...r } = n;
for (let e in r) this.node.getValue(e)?.jump(r[e]);
@@ -13695,28 +13695,28 @@ var Rd = (e, t) => t.isSVG ?? yd(e) ? new Kc(t) : new Ic(t, { allowProjection: e
};
//#endregion
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function Hd(e) {
+function Ud(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var Ud = (e) => (t) => Qo(t) && e(t, Hd(t));
+var Wd = (e) => (t) => $o(t) && e(t, Ud(t));
//#endregion
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function Wd(e, t, n, r) {
- return Ul(e, t, Ud(n), r);
+function Gd(e, t, n, r) {
+ return Wl(e, t, Wd(n), r);
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var Gd = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Kd = (e, t) => Math.abs(e - t);
-function qd(e, t) {
- let n = Kd(e.x, t.x), r = Kd(e.y, t.y);
+var Kd = ({ current: e }) => e ? e.ownerDocument.defaultView : null, qd = (e, t) => Math.abs(e - t);
+function Jd(e, t) {
+ let n = qd(e.x, t.x), r = qd(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
-var Jd = /*#__PURE__*/ new Set(["auto", "scroll"]), Yd = class {
+var Yd = /*#__PURE__*/ new Set(["auto", "scroll"]), Xd = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -13724,13 +13724,13 @@ var Jd = /*#__PURE__*/ new Set(["auto", "scroll"]), Yd = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Xd(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = Qd(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = qd(e.offset, {
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Zd(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = $d(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Jd(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
if (!t && !n) return;
- let { point: r } = e, { timestamp: i } = jn;
+ let { point: r } = e, { timestamp: i } = Mn;
this.history.push({
...r,
timestamp: i
@@ -13738,33 +13738,33 @@ var Jd = /*#__PURE__*/ new Set(["auto", "scroll"]), Yd = class {
let { onStart: a, onMove: o } = this.handlers;
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Xd(t, this.transformPagePoint), kn.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Zd(t, this.transformPagePoint), An.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = Qd(e.type === "pointercancel" ? this.lastMoveEventInfo : Xd(t, this.transformPagePoint), this.history);
+ let a = $d(e.type === "pointercancel" ? this.lastMoveEventInfo : Zd(t, this.transformPagePoint), this.history);
this.startEvent && n && n(e, a), r && r(e, a);
- }, !Qo(e)) return;
+ }, !$o(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = Xd(Hd(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = jn;
+ let s = Zd(Ud(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = Mn;
this.history = [{
...c,
timestamp: l
}];
let { onSessionStart: u } = t;
- u && u(e, Qd(s, this.history));
+ u && u(e, $d(s, this.history));
let d = {
passive: !0,
capture: !0
};
- this.removeListeners = Xt(Wd(this.contextWindow, "pointermove", this.handlePointerMove, d), Wd(this.contextWindow, "pointerup", this.handlePointerUp, d), Wd(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = Zt(Gd(this.contextWindow, "pointermove", this.handlePointerMove, d), Gd(this.contextWindow, "pointerup", this.handlePointerUp, d), Gd(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Jd.has(e.overflowX) || Jd.has(e.overflowY)) && this.scrollPositions.set(t, {
+ (Yd.has(e.overflowX) || Yd.has(e.overflowY)) && this.scrollPositions.set(t, {
x: t.scrollLeft,
y: t.scrollTop
}), t = t.parentElement;
@@ -13789,51 +13789,51 @@ var Jd = /*#__PURE__*/ new Set(["auto", "scroll"]), Yd = class {
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), kn.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), An.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), An(this.updatePoint);
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), jn(this.updatePoint);
}
};
-function Xd(e, t) {
+function Zd(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Zd(e, t) {
+function Qd(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function Qd({ point: e }, t) {
+function $d({ point: e }, t) {
return {
point: e,
- delta: Zd(e, ef(t)),
- offset: Zd(e, $d(t)),
- velocity: tf(t, .1)
+ delta: Qd(e, tf(t)),
+ offset: Qd(e, ef(t)),
+ velocity: nf(t, .1)
};
}
-function $d(e) {
+function ef(e) {
return e[0];
}
-function ef(e) {
+function tf(e) {
return e[e.length - 1];
}
-function tf(e, t) {
+function nf(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = ef(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ $t(t)));) n--;
+ let n = e.length - 1, r = null, i = tf(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ en(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ $t(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ en(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ en(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ tn(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -13846,86 +13846,86 @@ function tf(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
-function nf(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? kr(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? kr(n, e, r.max) : Math.min(e, n)), e;
+function rf(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? Ar(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Ar(n, e, r.max) : Math.min(e, n)), e;
}
-function rf(e, t, n) {
+function af(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function af(e, { top: t, left: n, bottom: r, right: i }) {
+function of(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: rf(e.x, n, i),
- y: rf(e.y, t, r)
+ x: af(e.x, n, i),
+ y: af(e.y, t, r)
};
}
-function of(e, t) {
+function sf(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function sf(e, t) {
+function cf(e, t) {
return {
- x: of(e.x, t.x),
- y: of(e.y, t.y)
+ x: sf(e.x, t.x),
+ y: sf(e.y, t.y)
};
}
-function cf(e, t) {
- let n = .5, r = ul(e), i = ul(t);
- return i > r ? n = /* @__PURE__ */ Zt(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Zt(e.min, e.max - i, t.min)), Ut(0, 1, n);
-}
function lf(e, t) {
+ let n = .5, r = dl(e), i = dl(t);
+ return i > r ? n = /* @__PURE__ */ Qt(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Qt(e.min, e.max - i, t.min)), Wt(0, 1, n);
+}
+function uf(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var uf = .35;
-function df(e = uf) {
- return e === !1 ? e = 0 : e === !0 && (e = uf), {
- x: ff(e, "left", "right"),
- y: ff(e, "top", "bottom")
+var df = .35;
+function ff(e = df) {
+ return e === !1 ? e = 0 : e === !0 && (e = df), {
+ x: pf(e, "left", "right"),
+ y: pf(e, "top", "bottom")
};
}
-function ff(e, t, n) {
+function pf(e, t, n) {
return {
- min: pf(e, t),
- max: pf(e, n)
+ min: mf(e, t),
+ max: mf(e, n)
};
}
-function pf(e, t) {
+function mf(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var mf = /* @__PURE__ */ new WeakMap(), hf = class {
+var hf = /* @__PURE__ */ new WeakMap(), gf = class {
constructor(e) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Ls(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Rs(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
let { presenceContext: r } = this.visualElement;
if (r && r.isPresent === !1) return;
let i = (e) => {
- t && this.snapToCursor(Hd(e).point), this.stopAnimation();
+ t && this.snapToCursor(Ud(e).point), this.stopAnimation();
}, a = (e, t) => {
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
- if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = qo(n), !this.openDragLock)) return;
- this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Ml((e) => {
+ if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Jo(n), !this.openDragLock)) return;
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Nl((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (ir.test(t)) {
+ if (ar.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
- r && (t = ul(r) * (parseFloat(t) / 100));
+ r && (t = dl(r) * (parseFloat(t) / 100));
}
}
this.originPoint[e] = t;
- }), i && kn.update(() => i(e, t), !1, !0), co(this.visualElement, "transform");
+ }), i && An.update(() => i(e, t), !1, !0), lo(this.visualElement, "transform");
let { animationState: a } = this.visualElement;
a && a.setActive("whileDrag", !0);
}, o = (e, t) => {
@@ -13934,10 +13934,10 @@ var mf = /* @__PURE__ */ new WeakMap(), hf = class {
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- this.currentDirection = yf(o), this.currentDirection !== null && i && i(this.currentDirection);
+ this.currentDirection = bf(o), this.currentDirection !== null && i && i(this.currentDirection);
return;
}
- this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && kn.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && An.update(() => a(e, t), !1, !0);
}, s = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, c = () => {
@@ -13947,7 +13947,7 @@ var mf = /* @__PURE__ */ new WeakMap(), hf = class {
y: 0
});
}, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new Yd(e, {
+ this.panSession = new Xd(e, {
onSessionStart: i,
onStart: a,
onMove: o,
@@ -13957,7 +13957,7 @@ var mf = /* @__PURE__ */ new WeakMap(), hf = class {
transformPagePoint: this.visualElement.getTransformPagePoint(),
dragSnapToOrigin: l,
distanceThreshold: n,
- contextWindow: Gd(this.visualElement),
+ contextWindow: Kd(this.visualElement),
element: this.visualElement.current
});
}
@@ -13967,7 +13967,7 @@ var mf = /* @__PURE__ */ new WeakMap(), hf = class {
let { velocity: a } = r;
this.startAnimation(a);
let { onDragEnd: o } = this.getProps();
- o && kn.postRender(() => o(n, r));
+ o && An.postRender(() => o(n, r));
}
cancel() {
this.isDragging = !1;
@@ -13981,32 +13981,32 @@ var mf = /* @__PURE__ */ new WeakMap(), hf = class {
}
updateAxis(e, t, n) {
let { drag: r } = this.getProps();
- if (!n || !vf(e, r, this.currentDirection)) return;
+ if (!n || !yf(e, r, this.currentDirection)) return;
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
- this.constraints && this.constraints[e] && (a = nf(a, this.constraints[e], this.elastic[e])), i.set(a);
+ this.constraints && this.constraints[e] && (a = rf(a, this.constraints[e], this.elastic[e])), i.set(a);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
- e && kd(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? af(n.layoutBox, e) : !1, this.elastic = df(t), r !== this.constraints && !kd(e) && n && this.constraints && !this.hasMutatedConstraints && Ml((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = lf(n.layoutBox[e], this.constraints[e]));
+ e && Ad(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? of(n.layoutBox, e) : !1, this.elastic = ff(t), r !== this.constraints && !Ad(e) && n && this.constraints && !this.hasMutatedConstraints && Nl((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = uf(n.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!e || !kd(e)) return !1;
+ if (!e || !Ad(e)) return !1;
let n = e.current, { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
r.root && (r.root.scroll = void 0, r.root.updateScroll());
- let i = Cc(n, r.root, this.visualElement.getTransformPagePoint()), a = sf(r.layout.layoutBox, i);
+ let i = wc(n, r.root, this.visualElement.getTransformPagePoint()), a = cf(r.layout.layoutBox, i);
if (t) {
- let e = t(ic(a));
- this.hasMutatedConstraints = !!e, e && (a = rc(e));
+ let e = t(ac(a));
+ this.hasMutatedConstraints = !!e, e && (a = ic(e));
}
return a;
}
startAnimation(e) {
- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = Ml((o) => {
- if (!vf(o, t, this.currentDirection)) return;
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = Nl((o) => {
+ if (!yf(o, t, this.currentDirection)) return;
let c = s && s[o] || {};
(a === !0 || a === o) && (c = {
min: 0,
@@ -14029,65 +14029,65 @@ var mf = /* @__PURE__ */ new WeakMap(), hf = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return co(this.visualElement, e), n.start(Ja(e, n, 0, t, this.visualElement, !1));
+ return lo(this.visualElement, e), n.start(Ya(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- Ml((e) => this.getAxisMotionValue(e).stop());
+ Nl((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
}
snapToCursor(e) {
- Ml((t) => {
+ Nl((t) => {
let { drag: n } = this.getProps();
- if (!vf(t, n, this.currentDirection)) return;
+ if (!yf(t, n, this.currentDirection)) return;
let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
if (r && r.layout) {
let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
- i.set(e[t] - kr(n, a, .5) + o);
+ i.set(e[t] - Ar(n, a, .5) + o);
}
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!kd(t) || !n || !this.constraints) return;
+ if (!Ad(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = {
x: 0,
y: 0
};
- Ml((e) => {
+ Nl((e) => {
let t = this.getAxisMotionValue(e);
if (t && this.constraints !== !1) {
let n = t.get();
- r[e] = cf({
+ r[e] = lf({
min: n,
max: n
}, this.constraints[e]);
}
});
let { transformTemplate: i } = this.visualElement.getProps();
- this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Ml((t) => {
- if (!vf(t, e, null)) return;
+ this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Nl((t) => {
+ if (!yf(t, e, null)) return;
let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
- n.set(kr(i, a, r[t]));
+ n.set(Ar(i, a, r[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- mf.set(this.visualElement, this);
- let e = this.visualElement.current, t = Wd(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && ns(i);
+ hf.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Gd(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && rs(i);
n && r && !a && this.start(t);
}), n, r = () => {
let { dragConstraints: t } = this.getProps();
- kd(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= _f(e, t.current, () => this.scalePositionWithinConstraints()));
+ Ad(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= vf(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), kn.read(r);
- let o = Ul(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (Ml((t) => {
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), An.read(r);
+ let o = Wl(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (Nl((t) => {
let n = this.getAxisMotionValue(t);
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
}), this.visualElement.render());
@@ -14097,7 +14097,7 @@ var mf = /* @__PURE__ */ new WeakMap(), hf = class {
};
}
getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = uf, dragMomentum: o = !0 } = e;
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = df, dragMomentum: o = !0 } = e;
return {
...e,
drag: t,
@@ -14109,7 +14109,7 @@ var mf = /* @__PURE__ */ new WeakMap(), hf = class {
};
}
};
-function gf(e) {
+function _f(e) {
let t = !0;
return () => {
if (t) {
@@ -14119,28 +14119,28 @@ function gf(e) {
e();
};
}
-function _f(e, t, n) {
- let r = Ts(e, gf(n)), i = Ts(t, gf(n));
+function vf(e, t, n) {
+ let r = Es(e, _f(n)), i = Es(t, _f(n));
return () => {
r(), i();
};
}
-function vf(e, t, n) {
+function yf(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function yf(e, t = 10) {
+function bf(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
-var bf = class extends nc {
+var xf = class extends rc {
constructor(e) {
- super(e), this.removeGroupControls = Yt, this.removeListeners = Yt, this.controls = new hf(e);
+ super(e), this.removeGroupControls = Xt, this.removeListeners = Xt, this.controls = new gf(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Yt;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Xt;
}
update() {
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
@@ -14149,31 +14149,31 @@ var bf = class extends nc {
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, xf = (e) => (t, n) => {
- e && kn.update(() => e(t, n), !1, !0);
-}, Sf = class extends nc {
+}, Sf = (e) => (t, n) => {
+ e && An.update(() => e(t, n), !1, !0);
+}, Cf = class extends rc {
constructor() {
- super(...arguments), this.removePointerDownListener = Yt;
+ super(...arguments), this.removePointerDownListener = Xt;
}
onPointerDown(e) {
- this.session = new Yd(e, this.createPanHandlers(), {
+ this.session = new Xd(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: Gd(this.node)
+ contextWindow: Kd(this.node)
});
}
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: xf(e),
- onStart: xf(t),
- onMove: xf(n),
+ onSessionStart: Sf(e),
+ onStart: Sf(t),
+ onMove: Sf(n),
onEnd: (e, t) => {
- delete this.session, r && kn.postRender(() => r(e, t));
+ delete this.session, r && An.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Wd(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Gd(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -14181,36 +14181,36 @@ var bf = class extends nc {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, Cf = !1, wf = class extends R.Component {
+}, wf = !1, Tf = class extends R.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group && t.group.add(i), n && n.register && r && n.register(i), Cf && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), wf && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
this.safeToRemove();
}), i.setOptions({
...i.options,
layoutDependency: this.props.layoutDependency,
onExitComplete: () => this.safeToRemove()
- })), Yl.hasEverUpdated = !0;
+ })), Xl.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), Cf = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || kn.postRender(() => {
+ }), wf = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || An.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
})), null) : null;
}
componentDidUpdate() {
let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
- n && (n.options.layoutAnchor = t, n.root.didUpdate(), Uo.postRender(() => {
+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), Wo.postRender(() => {
!n.currentAnimation && n.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Cf = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ wf = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
}
safeToRemove() {
let { safeToRemove: e } = this.props;
@@ -14220,41 +14220,41 @@ var bf = class extends nc {
return null;
}
};
-function Tf(e) {
- let [t, n] = Bu(), r = (0, R.useContext)(Lt);
- return (0, B.jsx)(wf, {
+function Ef(e) {
+ let [t, n] = Vu(), r = (0, R.useContext)(Rt);
+ return (0, B.jsx)(Tf, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, R.useContext)(Od),
+ switchLayoutGroup: (0, R.useContext)(kd),
isPresent: t,
safeToRemove: n
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Ef = {
- pan: { Feature: Sf },
+var Df = {
+ pan: { Feature: Cf },
drag: {
- Feature: bf,
- ProjectionNode: ju,
- MeasureLayout: Tf
+ Feature: xf,
+ ProjectionNode: Mu,
+ MeasureLayout: Ef
}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Df(e, t, n) {
+function Of(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && kn.postRender(() => i(t, Hd(t)));
+ i && An.postRender(() => i(t, Ud(t)));
}
-var Of = class extends nc {
+var kf = class extends rc {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Xo(e, (e, t) => (Df(this.node, t, "Start"), (e) => Df(this.node, e, "End"))));
+ e && (this.unmount = Zo(e, (e, t) => (Of(this.node, t, "Start"), (e) => Of(this.node, e, "End"))));
}
unmount() {}
-}, kf = class extends nc {
+}, Af = class extends rc {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -14271,57 +14271,57 @@ var Of = class extends nc {
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Xt(Ul(this.node.current, "focus", () => this.onFocus()), Ul(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Zt(Wl(this.node.current, "focus", () => this.onFocus()), Wl(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function Af(e, t, n) {
+function jf(e, t, n) {
let { props: r } = e;
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
let i = r["onTap" + (n === "End" ? "" : n)];
- i && kn.postRender(() => i(t, Hd(t)));
+ i && An.postRender(() => i(t, Ud(t)));
}
-var jf = class extends nc {
+var Mf = class extends rc {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = ls(e, (e, t) => (Af(this.node, t, "Start"), (e, { success: t }) => Af(this.node, e, t ? "End" : "Cancel")), {
+ this.unmount = us(e, (e, t) => (jf(this.node, t, "Start"), (e, { success: t }) => jf(this.node, e, t ? "End" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, Mf = /* @__PURE__ */ new WeakMap(), Nf = /* @__PURE__ */ new WeakMap(), Pf = (e) => {
- let t = Mf.get(e.target);
+}, Nf = /* @__PURE__ */ new WeakMap(), Pf = /* @__PURE__ */ new WeakMap(), Ff = (e) => {
+ let t = Nf.get(e.target);
t && t(e);
-}, Ff = (e) => {
- e.forEach(Pf);
+}, If = (e) => {
+ e.forEach(Ff);
};
-function If({ root: e, ...t }) {
+function Lf({ root: e, ...t }) {
let n = e || document;
- Nf.has(n) || Nf.set(n, {});
- let r = Nf.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(Ff, {
+ Pf.has(n) || Pf.set(n, {});
+ let r = Pf.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(If, {
root: e,
...t
})), r[i];
}
-function Lf(e, t, n) {
- let r = If(t);
- return Mf.set(e, n), r.observe(e), () => {
- Mf.delete(e), r.unobserve(e);
+function Rf(e, t, n) {
+ let r = Lf(t);
+ return Nf.set(e, n), r.observe(e), () => {
+ Nf.delete(e), r.unobserve(e);
};
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Rf = {
+var zf = {
some: 0,
all: 1
-}, zf = class extends nc {
+}, Bf = class extends rc {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -14330,7 +14330,7 @@ var Rf = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : Rf[r]
+ threshold: typeof r == "number" ? r : zf[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -14338,7 +14338,7 @@ var Rf = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Lf(this.node.current, a, o);
+ this.stopObserver = Rf(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -14350,34 +14350,34 @@ var Rf = {
"amount",
"margin",
"root"
- ].some(Bf(e, t)) && this.startObserver();
+ ].some(Vf(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Bf({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Vf({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
-var Vf = {
- inView: { Feature: zf },
- tap: { Feature: jf },
- focus: { Feature: kf },
- hover: { Feature: Of }
-}, Hf = { layout: {
- ProjectionNode: ju,
- MeasureLayout: Tf
-} }, Uf = /*@__PURE__*/ Ld({
- ...Vd,
- ...Vf,
- ...Ef,
- ...Hf
-}, Rd);
+var Hf = {
+ inView: { Feature: Bf },
+ tap: { Feature: Mf },
+ focus: { Feature: Af },
+ hover: { Feature: kf }
+}, Uf = { layout: {
+ ProjectionNode: Mu,
+ MeasureLayout: Ef
+} }, Wf = /*@__PURE__*/ Rd({
+ ...Hd,
+ ...Hf,
+ ...Df,
+ ...Uf
+}, zd);
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs
-function Wf(e, t, n) {
+function Gf(e, t, n) {
(0, R.useInsertionEffect)(() => e.on(t, n), [
e,
t,
@@ -14386,8 +14386,8 @@ function Wf(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-motion-value.mjs
-function Gf(e) {
- let t = Rt(() => Ra(e)), { isStatic: n } = (0, R.useContext)(Mu);
+function Kf(e) {
+ let t = zt(() => za(e)), { isStatic: n } = (0, R.useContext)(Nu);
if (n) {
let [, n] = (0, R.useState)(e);
(0, R.useEffect)(() => t.on("change", n), []);
@@ -14396,28 +14396,28 @@ function Gf(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-combine-values.mjs
-function Kf(e, t) {
- let n = Gf(t()), r = () => n.set(t());
- return r(), zt(() => {
- let t = () => kn.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
+function qf(e, t) {
+ let n = Kf(t()), r = () => n.set(t());
+ return r(), Bt(() => {
+ let t = () => An.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
return () => {
- n.forEach((e) => e()), An(r);
+ n.forEach((e) => e()), jn(r);
};
}), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-computed.mjs
-function qf(e) {
- Ia.current = [], e();
- let t = Kf(Ia.current, e);
- return Ia.current = void 0, t;
+function Jf(e) {
+ La.current = [], e();
+ let t = qf(La.current, e);
+ return La.current = void 0, t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-transform.mjs
-function Jf(e, t, n, r) {
- if (typeof e == "function") return qf(e);
- if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return Xf(e, t, n, r);
- let i = typeof t == "function" ? t : Os(t, n, r), a = Array.isArray(e) ? Yf(e, i) : Yf([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
+function Yf(e, t, n, r) {
+ if (typeof e == "function") return Jf(e);
+ if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return Zf(e, t, n, r);
+ let i = typeof t == "function" ? t : ks(t, n, r), a = Array.isArray(e) ? Xf(e, i) : Xf([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
return o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && (a.accelerate = {
...o,
times: t,
@@ -14426,57 +14426,57 @@ function Jf(e, t, n, r) {
...r?.ease ? { ease: r.ease } : {}
}), a;
}
-function Yf(e, t) {
- let n = Rt(() => []);
- return Kf(e, () => {
+function Xf(e, t) {
+ let n = zt(() => []);
+ return qf(e, () => {
n.length = 0;
let r = e.length;
for (let t = 0; t < r; t++) n[t] = e[t].get();
return t(n);
});
}
-function Xf(e, t, n, r) {
- let i = Rt(() => Object.keys(n)), a = Rt(() => ({}));
- for (let o of i) a[o] = Jf(e, t, n[o], r);
+function Zf(e, t, n, r) {
+ let i = zt(() => Object.keys(n)), a = zt(() => ({}));
+ for (let o of i) a[o] = Yf(e, t, n[o], r);
return a;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-follow-value.mjs
-function Zf(e, t = {}) {
- let { isStatic: n } = (0, R.useContext)(Mu), r = () => oo(e) ? e.get() : e;
- if (n) return Jf(r);
- let i = Gf(r());
- return (0, R.useInsertionEffect)(() => ks(i, e, t), [i, JSON.stringify(t)]), i;
+function Qf(e, t = {}) {
+ let { isStatic: n } = (0, R.useContext)(Nu), r = () => so(e) ? e.get() : e;
+ if (n) return Yf(r);
+ let i = Kf(r());
+ return (0, R.useInsertionEffect)(() => As(i, e, t), [i, JSON.stringify(t)]), i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-spring.mjs
-function Qf(e, t = {}) {
- return Zf(e, {
+function $f(e, t = {}) {
+ return Qf(e, {
type: "spring",
...t
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function $f() {
- !qs.current && Ys();
- let [e] = (0, R.useState)(Ks.current);
+function ep() {
+ !Js.current && Xs();
+ let [e] = (0, R.useState)(qs.current);
return e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function ep(e, t, n, r) {
+function tp(e, t, n, r) {
if (e == null) return [];
- let i = Bo(e, r), a = i.length, o = [];
+ let i = Vo(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...Ba(s, e) };
- i.duration &&= /* @__PURE__ */ $t(i.duration), i.delay &&= /* @__PURE__ */ $t(i.delay);
- let a = Ma(r), c = ja(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...Va(s, e) };
+ i.duration &&= /* @__PURE__ */ en(i.duration), i.delay &&= /* @__PURE__ */ en(i.delay);
+ let a = Na(r), c = Ma(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -14492,21 +14492,21 @@ function ep(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = us(r, i)), Ci(t), zo(t, i), !a && t.length < 2 && t.unshift(us(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = ds(r, i)), wi(t), Bo(t, i), !a && t.length < 2 && t.unshift(ds(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new la(r);
+ let { map: t, key: n, options: r } = o[e], i = new ua(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var tp = /*@__PURE__*/ ((e) => {
+var np = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new ka(ep(t, n, r, e));
+ return new Aa(tp(t, n, r, e));
}
return t;
-})(), np = /* @__PURE__ */ Et(jt(), 1), rp = Pt(), ip = Uf, ap = class {
+})(), rp = /* @__PURE__ */ Dt(Mt(), 1), ip = Ft(), ap = Wf, op = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -14521,22 +14521,22 @@ var tp = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, op = class extends ap {
+}, sp = class extends op {
filter(e, t, n) {
- let [r, i] = dp(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = fp(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends ap {
+(class extends op {
static {
this.type = "header";
}
});
-var sp = class extends ap {
+var cp = class extends op {
static {
this.type = "loader";
}
-}, cp = class extends op {
+}, lp = class extends sp {
static {
this.type = "item";
}
@@ -14547,7 +14547,7 @@ var sp = class extends ap {
}
return null;
}
-}, lp = class extends op {
+}, up = class extends sp {
static {
this.type = "section";
}
@@ -14559,7 +14559,7 @@ var sp = class extends ap {
}
return null;
}
-}, up = class {
+}, dp = class {
get size() {
return this.itemCount;
}
@@ -14634,14 +14634,14 @@ var sp = class extends ap {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = dp(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = fp(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function dp(e, t, n, r) {
+function fp(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -14656,7 +14656,7 @@ function dp(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var fp = class {
+var pp = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -14737,7 +14737,7 @@ var fp = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, pp = class e extends fp {
+}, mp = class e extends pp {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -14788,7 +14788,7 @@ var fp = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, mp = class extends fp {
+}, hp = class extends pp {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -14796,7 +14796,7 @@ var fp = class {
return !0;
}
createElement(e) {
- return new pp(e, this);
+ return new mp(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -14818,8 +14818,8 @@ var fp = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof pp && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof pp ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof mp && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof mp ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -14838,13 +14838,13 @@ var fp = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function hp(e) {
+function gp(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, R.useMemo)(() => void 0, [t]), s = (0, R.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, R.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = gp(a) ? a : null, o = n ? s.get(n) : null;
+ let n = _p(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -14869,7 +14869,7 @@ function hp(e) {
i
]);
}
-function gp(e) {
+function _p(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -14879,26 +14879,26 @@ function gp(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function _p(e) {
- if (yp()) e.focus({ preventScroll: !0 });
+function vp(e) {
+ if (bp()) e.focus({ preventScroll: !0 });
else {
- let t = bp(e);
- e.focus(), xp(t);
+ let t = xp(e);
+ e.focus(), Sp(t);
}
}
-var vp = null;
-function yp() {
- if (vp == null) {
- vp = !1;
+var yp = null;
+function bp() {
+ if (yp == null) {
+ yp = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return vp = !0, !0;
+ return yp = !0, !0;
} });
} catch {}
}
- return vp;
+ return yp;
}
-function bp(e) {
+function xp(e) {
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
element: t,
@@ -14911,25 +14911,25 @@ function bp(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function xp(e) {
+function Sp(e) {
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var Sp = (e) => Tp(e) ? e.document : Ep(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Cp = (e) => Sp(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function wp(e) {
- return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
-}
+var Cp = (e) => Ep(e) ? e.document : Dp(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), wp = (e) => Cp(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
function Tp(e) {
- return typeof e == "object" && !!e && "window" in e && e.window === e;
+ return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
function Ep(e) {
- return wp(e) && e.nodeType === 9;
+ return typeof e == "object" && !!e && "window" in e && e.window === e;
}
function Dp(e) {
- return wp(e) && e.nodeType === 11 && "host" in e;
+ return Tp(e) && e.nodeType === 9;
}
-function Op(e, t, n, r) {
+function Op(e) {
+ return Tp(e) && e.nodeType === 11 && "host" in e;
+}
+function kp(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -14937,7 +14937,7 @@ function Op(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function kp(e, t, n, r) {
+function Ap(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -14952,73 +14952,73 @@ function kp(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Ap = !1;
-function jp() {
- return Ap;
+var jp = !1;
+function Mp() {
+ return jp;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function Mp(e, t) {
- if (!jp()) return t && e ? e.contains(t) : !1;
+function Np(e, t) {
+ if (!Mp()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n !== null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Dp(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Op(n) ? n.host : n.parentNode;
}
return !1;
}
-var Np = (e = document) => {
- if (!jp()) return e.activeElement;
+var Pp = (e = document) => {
+ if (!Mp()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function V(e) {
- if (jp() && e.target instanceof Element && e.target.shadowRoot) {
+ if (Mp() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function Pp(e, t) {
+function Fp(e, t) {
if (t === null) return [];
- t ??= Cp(e);
+ t ??= wp(e);
let n = [t];
- if (!jp() || !e || e === t) return n;
+ if (!Mp() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; Dp(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Op(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function Fp(e) {
+function Ip(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = Cp(e);
+ let t = e.getRootNode(), n = wp(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var Ip = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function Lp(e) {
- let t = Cp(e);
+var Lp = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Rp(e) {
+ let t = wp(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = Cp(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = wp(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function Rp(e, t) {
+function zp(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function zp(e, t) {
- return Ip ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Lp(e) && Rp(e, t) && (!e.parentElement || zp(e.parentElement, e));
+function Bp(e, t) {
+ return Lp ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Rp(e) && zp(e, t) && (!e.parentElement || Bp(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var Bp = [
+var Vp = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -15033,41 +15033,41 @@ var Bp = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], Vp = Bp.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-Bp.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Hp = Bp.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Up(e, t) {
- return e.matches(Vp) && !Gp(e) && (t?.skipVisibilityCheck || zp(e));
-}
-function Wp(e) {
- return e.matches(Hp) && zp(e) && !Gp(e);
+], Hp = Vp.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+Vp.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Up = Vp.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Wp(e, t) {
+ return e.matches(Hp) && !Kp(e) && (t?.skipVisibilityCheck || Bp(e));
}
function Gp(e) {
+ return e.matches(Up) && Bp(e) && !Kp(e);
+}
+function Kp(e) {
let t = e;
for (; t != null;) {
- if (t instanceof Cp(t).HTMLElement && t.inert) return !0;
+ if (t instanceof wp(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var Kp = typeof document < "u" ? R.useLayoutEffect : () => {};
+var qp = typeof document < "u" ? R.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function qp(e) {
+function Jp(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function Jp(e, t) {
+function Yp(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Yp(e) {
+function Xp(e) {
let t = (0, R.useRef)({
isFocused: !1,
observer: null
});
- return Kp(() => {
+ return qp(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -15079,14 +15079,14 @@ function Yp(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = qp(r);
+ let t = Jp(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === Np() ? null : Np();
+ let e = n === Pp() ? null : Pp();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -15099,87 +15099,87 @@ function Yp(e) {
}
}, [e]);
}
-var Xp = !1;
-function Zp(e) {
- for (; e && !Up(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = Np(Cp(e).document);
+var Zp = !1;
+function Qp(e) {
+ for (; e && !Wp(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = Pp(wp(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && Dp(n) ? n : Cp(e), i = (t) => t === e || t != null && Mp(e, t), a = (e) => e === t || t != null && e != null && Mp(t, e);
- Xp = !0;
+ let n = e?.getRootNode(), r = n != null && Op(n) ? n : wp(e), i = (t) => t === e || t != null && Np(e, t), a = (e) => e === t || t != null && e != null && Np(t, e);
+ Zp = !0;
let o = !1, s = (e) => {
(a(V(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(V(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, _p(t), d()));
+ (a(V(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, vp(t), d()));
}, l = (e) => {
(i(V(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(V(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, _p(t), d()));
+ (i(V(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, vp(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Xp = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Zp = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Qp(e) {
+function $p(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function $p(e) {
+function em(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function em(e) {
+function tm(e) {
let t = null;
return () => (t ??= e(), t);
}
-var tm = em(function() {
- return $p(/^Mac/i);
-}), nm = em(function() {
- return $p(/^iPhone/i);
-}), rm = em(function() {
- return $p(/^iPad/i) || tm() && navigator.maxTouchPoints > 1;
-}), im = em(function() {
- return nm() || rm();
-}), am = em(function() {
- return tm() || im();
-}), om = em(function() {
- return Qp(/AppleWebKit/i) && (im() || !sm());
-}), sm = em(function() {
- return Qp(/Chrome|CriOS|CrMo/i);
-}), cm = em(function() {
- return Qp(/Android/i);
-}), lm = em(function() {
- return Qp(/(Firefox|FxiOS)/i);
+var nm = tm(function() {
+ return em(/^Mac/i);
+}), rm = tm(function() {
+ return em(/^iPhone/i);
+}), im = tm(function() {
+ return em(/^iPad/i) || nm() && navigator.maxTouchPoints > 1;
+}), am = tm(function() {
+ return rm() || im();
+}), om = tm(function() {
+ return nm() || am();
+}), sm = tm(function() {
+ return $p(/AppleWebKit/i) && (am() || !cm());
+}), cm = tm(function() {
+ return $p(/Chrome|CriOS|CrMo/i);
+}), lm = tm(function() {
+ return $p(/Android/i);
+}), um = tm(function() {
+ return $p(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function um(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : cm() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
-}
function dm(e) {
- return !cm() && e.width === 0 && e.height === 0 || cm() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+ return e.pointerType === "" && e.isTrusted ? !0 : lm() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+}
+function fm(e) {
+ return !lm() && e.width === 0 && e.height === 0 || lm() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
-var fm = /*#__PURE__*/ (0, R.createContext)({
+var pm = /*#__PURE__*/ (0, R.createContext)({
isNative: !0,
- open: _m,
+ open: vm,
useHref: (e) => e
});
-function pm() {
- return (0, R.useContext)(fm);
+function mm() {
+ return (0, R.useContext)(pm);
}
-function mm(e, t) {
+function hm(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function hm(e, t, n = !0) {
+function gm(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !om() && lm() && window.event?.type?.startsWith("key") && e.target === "_blank" && (tm() ? r = !0 : i = !0);
- let s = om() && tm() && !rm() ? new KeyboardEvent("keydown", {
+ !sm() && um() && window.event?.type?.startsWith("key") && e.target === "_blank" && (nm() ? r = !0 : i = !0);
+ let s = sm() && nm() && !im() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -15194,21 +15194,21 @@ function hm(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- hm.isOpening = n, _p(e), e.dispatchEvent(s), hm.isOpening = !1;
+ gm.isOpening = n, vp(e), e.dispatchEvent(s), gm.isOpening = !1;
}
-hm.isOpening = !1;
-function gm(e, t) {
+gm.isOpening = !1;
+function _m(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function _m(e, t) {
- gm(e, (e) => hm(e, t));
+function vm(e, t) {
+ _m(e, (e) => gm(e, t));
}
-function vm(e) {
- let t = pm().useHref(e.href ?? "");
+function ym(e) {
+ let t = mm().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -15218,8 +15218,8 @@ function vm(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function ym(e) {
- let t = pm().useHref(e?.href ?? ""), n = {};
+function bm(e) {
+ let t = mm().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -15230,138 +15230,138 @@ function ym(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function bm(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && mm(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function xm(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && hm(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var xm = {
+var Sm = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, Sm = /*#__PURE__*/ R.createContext(xm), Cm = /*#__PURE__*/ R.createContext(!1);
+}, Cm = /*#__PURE__*/ R.createContext(Sm), wm = /*#__PURE__*/ R.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var wm = /* @__PURE__ */ new WeakMap();
-function Tm(e = !1) {
- let t = (0, R.useContext)(Sm), n = (0, R.useRef)(null);
+var Tm = /* @__PURE__ */ new WeakMap();
+function Em(e = !1) {
+ let t = (0, R.useContext)(Cm), n = (0, R.useRef)(null);
if (n.current === null && !e) {
let e = R.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = wm.get(e);
- n == null ? wm.set(e, {
+ let n = Tm.get(e);
+ n == null ? Tm.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, wm.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Tm.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Em(e) {
- let t = (0, R.useContext)(Sm), n = Tm(!!e), r = `react-aria${t.prefix}`;
+function Dm(e) {
+ let t = (0, R.useContext)(Cm), n = Em(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Dm(e) {
- let t = R.useId(), [n] = (0, R.useState)(Mm()), r = n ? "react-aria" : `react-aria${xm.prefix}`;
+function Om(e) {
+ let t = R.useId(), [n] = (0, R.useState)(Nm()), r = n ? "react-aria" : `react-aria${Sm.prefix}`;
return e || `${r}-${t}`;
}
-var Om = typeof R.useId == "function" ? Dm : Em;
-function km() {
+var km = typeof R.useId == "function" ? Om : Dm;
+function Am() {
return !1;
}
-function Am() {
+function jm() {
return !0;
}
-function jm(e) {
+function Mm(e) {
return () => {};
}
-function Mm() {
- return typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore(jm, km, Am) : (0, R.useContext)(Cm);
+function Nm() {
+ return typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore(Mm, Am, jm) : (0, R.useContext)(wm);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var Nm = null, Pm = /* @__PURE__ */ new Set(), Fm = /* @__PURE__ */ new Map(), Im = !1, Lm = !1, Rm = {
+var Pm = null, Fm = /* @__PURE__ */ new Set(), Im = /* @__PURE__ */ new Map(), Lm = !1, Rm = !1, zm = {
Tab: !0,
Escape: !0
};
-function zm(e, t) {
- for (let n of Pm) n(e, t);
-}
-function Bm(e) {
- return !(e.metaKey || !tm() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Bm(e, t) {
+ for (let n of Fm) n(e, t);
}
function Vm(e) {
- Im = !0, !hm.isOpening && Bm(e) && (Nm = "keyboard", zm("keyboard", e));
+ return !(e.metaKey || !nm() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function Hm(e) {
- Nm = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Im = !0, zm("pointer", e));
+ Lm = !0, !gm.isOpening && Vm(e) && (Pm = "keyboard", Bm("keyboard", e));
}
function Um(e) {
- !hm.isOpening && um(e) && (Im = !0, Nm = "virtual");
+ Pm = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Lm = !0, Bm("pointer", e));
}
function Wm(e) {
- if (Xp) return;
- let t = V(e), n = Cp(t), r = Sp(t);
+ !gm.isOpening && dm(e) && (Lm = !0, Pm = "virtual");
+}
+function Gm(e) {
+ if (Zp) return;
+ let t = V(e), n = wp(t), r = Cp(t);
if (t === n) {
- Lm = !0;
+ Rm = !0;
return;
}
- t === r || !e.isTrusted || (!Im && !Lm && (Nm = "virtual", zm("virtual", e)), Im = !1, Lm = !1);
+ t === r || !e.isTrusted || (!Lm && !Rm && (Pm = "virtual", Bm("virtual", e)), Lm = !1, Rm = !1);
}
-function Gm() {
- Xp || (Im = !1, Lm = !0);
+function Km() {
+ Zp || (Lm = !1, Rm = !0);
}
-function Km(e) {
+function qm(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = Cp(e), n = Sp(e);
- if (Fm.get(t)) return;
+ let t = wp(e), n = Cp(e);
+ if (Im.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Im = !0, r.apply(this, arguments);
+ Lm = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", Vm, !0), n.addEventListener("keyup", Vm, !0), n.addEventListener("click", Um, !0), t.addEventListener("focus", Wm, !0), t.addEventListener("blur", Gm, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Hm, !0), n.addEventListener("pointermove", Hm, !0), n.addEventListener("pointerup", Hm, !0)), t.addEventListener("beforeunload", () => {
- qm(e);
- }, { once: !0 }), Fm.set(t, { focus: r });
+ }), n.addEventListener("keydown", Hm, !0), n.addEventListener("keyup", Hm, !0), n.addEventListener("click", Wm, !0), t.addEventListener("focus", Gm, !0), t.addEventListener("blur", Km, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Um, !0), n.addEventListener("pointermove", Um, !0), n.addEventListener("pointerup", Um, !0)), t.addEventListener("beforeunload", () => {
+ Jm(e);
+ }, { once: !0 }), Im.set(t, { focus: r });
}
-var qm = (e, t) => {
- let n = Cp(e), r = Sp(e);
- t && r.removeEventListener("DOMContentLoaded", t), Fm.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var Jm = (e, t) => {
+ let n = wp(e), r = Cp(e);
+ t && r.removeEventListener("DOMContentLoaded", t), Im.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: Fm.get(n).focus
- }), r.removeEventListener("keydown", Vm, !0), r.removeEventListener("keyup", Vm, !0), r.removeEventListener("click", Um, !0), n.removeEventListener("focus", Wm, !0), n.removeEventListener("blur", Gm, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Hm, !0), r.removeEventListener("pointermove", Hm, !0), r.removeEventListener("pointerup", Hm, !0)), Fm.delete(n));
+ value: Im.get(n).focus
+ }), r.removeEventListener("keydown", Hm, !0), r.removeEventListener("keyup", Hm, !0), r.removeEventListener("click", Wm, !0), n.removeEventListener("focus", Gm, !0), n.removeEventListener("blur", Km, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Um, !0), r.removeEventListener("pointermove", Um, !0), r.removeEventListener("pointerup", Um, !0)), Im.delete(n));
};
-function Jm(e) {
- let t = Sp(e), n;
+function Ym(e) {
+ let t = Cp(e), n;
return t.readyState === "loading" ? (n = () => {
- Km(e);
- }, t.addEventListener("DOMContentLoaded", n)) : Km(e), () => qm(e, n);
-}
-typeof document < "u" && Jm();
-function Ym() {
- return Nm !== "pointer";
+ qm(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : qm(e), () => Jm(e, n);
}
+typeof document < "u" && Ym();
function Xm() {
- return Nm;
+ return Pm !== "pointer";
}
-function Zm(e) {
- Nm = e, zm(e, null);
+function Zm() {
+ return Pm;
}
-function Qm() {
- Km();
- let [e, t] = (0, R.useState)(Nm);
+function Qm(e) {
+ Pm = e, Bm(e, null);
+}
+function $m() {
+ qm();
+ let [e, t] = (0, R.useState)(Pm);
return (0, R.useEffect)(() => {
let e = () => {
- t(Nm);
+ t(Pm);
};
- return Pm.add(e), () => {
- Pm.delete(e);
+ return Fm.add(e), () => {
+ Fm.delete(e);
};
- }, []), Mm() ? null : e;
+ }, []), Nm() ? null : e;
}
-var $m = /* @__PURE__ */ new Set([
+var eh = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -15372,31 +15372,31 @@ var $m = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function eh(e, t, n) {
- let r = n ? V(n) : void 0, i = Sp(r), a = Cp(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = Np(i);
- return e = e || u instanceof o && !$m.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Rm[n.key]);
+function th(e, t, n) {
+ let r = n ? V(n) : void 0, i = Cp(r), a = wp(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = Pp(i);
+ return e = e || u instanceof o && !eh.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !zm[n.key]);
}
-function th(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, R.useState)(n || Ym());
- return nh((e) => {
+function nh(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, R.useState)(n || Xm());
+ return rh((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function nh(e, t, n) {
- Km(), (0, R.useEffect)(() => {
+function rh(e, t, n) {
+ qm(), (0, R.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- eh(!!n?.isTextInput, t, r) && e(Ym());
+ th(!!n?.isTextInput, t, r) && e(Xm());
};
- return Pm.add(t), () => {
- Pm.delete(t);
+ return Fm.add(t), () => {
+ Fm.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var rh = /* @__PURE__ */ new Map(), ih = /* @__PURE__ */ new Set();
-function ah() {
+var ih = /* @__PURE__ */ new Map(), ah = /* @__PURE__ */ new Set();
+function oh() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
@@ -15404,51 +15404,51 @@ function ah() {
let t = (t) => {
let r = V(t);
if (!e(t) || !r) return;
- let i = rh.get(r);
- i || (i = /* @__PURE__ */ new Set(), rh.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = ih.get(r);
+ i || (i = /* @__PURE__ */ new Set(), ih.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
let r = V(t);
if (!e(t) || !r) return;
- let i = rh.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), rh.delete(r)), rh.size === 0)) {
- for (let e of ih) e();
- ih.clear();
+ let i = ih.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), ih.delete(r)), ih.size === 0)) {
+ for (let e of ah) e();
+ ah.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", ah) : ah());
-function oh() {
- for (let [e] of rh) "isConnected" in e && !e.isConnected && rh.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", oh) : oh());
+function sh() {
+ for (let [e] of ih) "isConnected" in e && !e.isConnected && ih.delete(e);
}
-function sh(e) {
+function ch(e) {
requestAnimationFrame(() => {
- oh(), rh.size === 0 ? e() : ih.add(e);
+ sh(), ih.size === 0 ? e() : ah.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function ch(e) {
+function lh(e) {
if (!e.isConnected) return;
- let t = Sp(e);
- if (Xm() === "virtual") {
- let n = Np(t);
- sh(() => {
- let r = Np(t);
- (r === n || r === t.body) && e.isConnected && _p(e);
+ let t = Cp(e);
+ if (Zm() === "virtual") {
+ let n = Pp(t);
+ ch(() => {
+ let r = Pp(t);
+ (r === n || r === t.body) && e.isConnected && vp(e);
});
- } else _p(e);
+ } else vp(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function lh(...e) {
+function uh(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function uh(e) {
+function dh(e) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(t), i = (0, R.useRef)(null), a = (0, R.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
@@ -15458,7 +15458,7 @@ function uh(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return Kp(() => {
+ return qp(() => {
r.current = t, i.current && a.current();
}), [t, (0, R.useCallback)((e) => {
i.current = e(r.current), a.current();
@@ -15466,21 +15466,21 @@ function uh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var dh = !!(typeof window < "u" && window.document && window.document.createElement), fh = /* @__PURE__ */ new Map(), ph;
-typeof FinalizationRegistry < "u" && (ph = new FinalizationRegistry((e) => {
- fh.delete(e);
+var fh = !!(typeof window < "u" && window.document && window.document.createElement), ph = /* @__PURE__ */ new Map(), mh;
+typeof FinalizationRegistry < "u" && (mh = new FinalizationRegistry((e) => {
+ ph.delete(e);
}));
-var mh = /* @__PURE__ */ new WeakMap();
-function hh(e) {
- let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(null), i = Om(t), a = (0, R.useRef)(null), o = mh.get(a);
- if (ph && o !== i && (o != null && ph.unregister(a), ph.register(a, i, a), mh.set(a, i)), dh) {
- let e = fh.get(i);
- e && !e.includes(r) ? e.push(r) : fh.set(i, [r]);
- }
- return Kp(() => {
+var hh = /* @__PURE__ */ new WeakMap();
+function gh(e) {
+ let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(null), i = km(t), a = (0, R.useRef)(null), o = hh.get(a);
+ if (mh && o !== i && (o != null && mh.unregister(a), mh.register(a, i, a), hh.set(a, i)), fh) {
+ let e = ph.get(i);
+ e && !e.includes(r) ? e.push(r) : ph.set(i, [r]);
+ }
+ return qp(() => {
let e = i;
return () => {
- ph && (ph.unregister(a), mh.delete(a)), fh.delete(e);
+ mh && (mh.unregister(a), hh.delete(a)), ph.delete(e);
};
}, [i]), (0, R.useEffect)(() => {
let e = r.current;
@@ -15489,20 +15489,20 @@ function hh(e) {
};
}), i;
}
-function gh(e, t) {
+function _h(e, t) {
if (e === t) return e;
- let n = fh.get(e);
+ let n = ph.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = fh.get(t);
+ let r = ph.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function _h(e = []) {
- let t = hh(), [n, r] = uh(t), i = (0, R.useCallback)(() => {
+function vh(e = []) {
+ let t = gh(), [n, r] = dh(t), i = (0, R.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return Kp(i, [
+ return qp(i, [
t,
i,
...e
@@ -15510,38 +15510,38 @@ function _h(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function vh(...e) {
+function yh(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = yh(e, t);
+ let r = bh(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : yh(e[n], null);
+ typeof t == "function" ? t() : bh(e[n], null);
});
};
};
}
-function yh(e, t) {
+function bh(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function bh(e) {
+function xh(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = bh(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = xh(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function xh() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = bh(e)) && (r && (r += " "), r += t);
+function Sh() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = xh(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
@@ -15552,18 +15552,18 @@ function H(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = lh(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = xh(n, i) : e === "id" && n && i ? t.id = gh(n, i) : e === "ref" && n && i ? t.ref = vh(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = uh(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Sh(n, i) : e === "id" && n && i ? t.id = _h(n, i) : e === "ref" && n && i ? t.ref = yh(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function Sh(e) {
+function Ch(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, R.useCallback)((e) => {
if (V(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Yp(a), s = (0, R.useCallback)((e) => {
- let t = V(e), r = Sp(t), a = r ? Np(r) : Np();
+ }, [r, i]), o = Xp(a), s = (0, R.useCallback)((e) => {
+ let t = V(e), r = Cp(t), a = r ? Pp(r) : Pp();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -15577,7 +15577,7 @@ function Sh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function Ch(e) {
+function wh(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -15602,33 +15602,33 @@ function Ch(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var wh = /* @__PURE__ */ new Set([
+var Th = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Th = [
+]), Eh = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Eh(e) {
- let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(tm() ? "Meta" : "Control"), t;
-}
function Dh(e) {
let t = /* @__PURE__ */ new Set();
- return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(nm() ? "Meta" : "Control"), t;
}
function Oh(e) {
- return Th.filter((t) => e.has(t));
+ let t = /* @__PURE__ */ new Set();
+ return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
function kh(e) {
+ return Eh.filter((t) => e.has(t));
+}
+function Ah(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return wh.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Th.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -15640,10 +15640,10 @@ function kh(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function Ah(e) {
+function jh(e) {
return e.toLowerCase();
}
-var jh = {
+var Mh = {
space: " ",
esc: "escape",
del: "delete",
@@ -15655,26 +15655,26 @@ var jh = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Mh(e) {
- let t = Ah(e);
- return jh[t] ?? t;
-}
function Nh(e) {
- let t = Oh(Eh(e)), n = Mh(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = jh(e);
+ return Mh[t] ?? t;
}
function Ph(e) {
- let t = Oh(Dh(e)), n = Ah(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = kh(Dh(e)), n = Nh(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function Fh(e) {
+ let t = kh(Oh(e)), n = jh(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function Ih(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = kh(n);
- t.set(Nh(e), r);
+ let e = Ah(n);
+ t.set(Ph(e), r);
}
return (e) => {
- let n = Ph(e), r = t.get(n), i = r?.(e);
+ let n = Fh(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -15686,11 +15686,11 @@ function Fh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Ih(e) {
+function Lh(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Fh(t), s = Ch((e) => {
- if (!Mp(e.currentTarget, V(e))) {
+ let o = Ih(t), s = wh((e) => {
+ if (!Np(e.currentTarget, V(e))) {
e.continuePropagation();
return;
}
@@ -15699,8 +15699,8 @@ function Ih(e) {
return;
}
o(e);
- }), c = Ch((e) => {
- if (!Mp(e.currentTarget, V(e))) {
+ }), c = wh((e) => {
+ if (!Np(e.currentTarget, V(e))) {
e.continuePropagation();
return;
}
@@ -15710,8 +15710,8 @@ function Ih(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? lh(e.onKeyDown, s) : s, a = e.onKeyUp ? lh(e.onKeyUp, c) : c;
- } else i = Ch(e.onKeyDown), a = Ch(e.onKeyUp);
+ i = e.onKeyDown ? uh(e.onKeyDown, s) : s, a = e.onKeyUp ? uh(e.onKeyUp, c) : c;
+ } else i = wh(e.onKeyDown), a = wh(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -15719,7 +15719,7 @@ function Ih(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Lh(e) {
+function Rh(e) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(void 0), r = (0, R.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -15742,8 +15742,8 @@ function Lh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Rh(e, t) {
- Kp(() => {
+function zh(e, t) {
+ qp(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -15751,17 +15751,17 @@ function Rh(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var zh = /*#__PURE__*/ R.createContext(null);
-function Bh(e) {
- let t = (0, R.useContext)(zh) || {};
- Rh(t, e);
+var Bh = /*#__PURE__*/ R.createContext(null);
+function Vh(e) {
+ let t = (0, R.useContext)(Bh) || {};
+ zh(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Vh(e, t) {
- let { focusProps: n } = Sh(e), { keyboardProps: r } = Ih(e), i = H(n, r), a = Bh(t), o = e.isDisabled ? {} : a, s = (0, R.useRef)(e.autoFocus);
+function Hh(e, t) {
+ let { focusProps: n } = Ch(e), { keyboardProps: r } = Lh(e), i = H(n, r), a = Vh(t), o = e.isDisabled ? {} : a, s = (0, R.useRef)(e.autoFocus);
(0, R.useEffect)(() => {
- s.current && t.current && ch(t.current), s.current = !1;
+ s.current && t.current && lh(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: H({
@@ -15796,23 +15796,23 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Hh = /*#__PURE__*/ (0, R.createContext)(!1);
-function Uh(e) {
- if ((0, R.useContext)(Hh)) return /*#__PURE__*/ R.createElement(R.Fragment, null, e.children);
- let t = /*#__PURE__*/ R.createElement(Hh.Provider, { value: !0 }, e.children);
+var Uh = /*#__PURE__*/ (0, R.createContext)(!1);
+function Wh(e) {
+ if ((0, R.useContext)(Uh)) return /*#__PURE__*/ R.createElement(R.Fragment, null, e.children);
+ let t = /*#__PURE__*/ R.createElement(Uh.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ R.createElement("template", null, t);
}
-function Wh(e) {
- let t = (t, n) => (0, R.useContext)(Hh) ? null : e(t, n);
+function Gh(e) {
+ let t = (t, n) => (0, R.useContext)(Uh) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, R.forwardRef)(t);
}
-function Gh() {
- return (0, R.useContext)(Hh);
+function Kh() {
+ return (0, R.useContext)(Uh);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var Kh = /* @__PURE__ */ St(((e) => {
- var t = kt();
+var qh = /* @__PURE__ */ Ct(((e) => {
+ var t = At();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -15849,47 +15849,47 @@ var Kh = /* @__PURE__ */ St(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), qh = /* @__PURE__ */ St(((e, t) => {
- t.exports = Kh();
-})), Jh = qh(), Yh = /*#__PURE__*/ (0, R.createContext)(!1), Xh = /*#__PURE__*/ (0, R.createContext)(null);
-function Zh(e) {
- if ((0, R.useContext)(Xh)) return e.content;
- let { collection: t, document: n } = tg(e.createCollection);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Uh, null, /*#__PURE__*/ R.createElement(Xh.Provider, { value: n }, e.content)), /*#__PURE__*/ R.createElement(Qh, {
+})), Jh = /* @__PURE__ */ Ct(((e, t) => {
+ t.exports = qh();
+})), Yh = Jh(), Xh = /*#__PURE__*/ (0, R.createContext)(!1), Zh = /*#__PURE__*/ (0, R.createContext)(null);
+function Qh(e) {
+ if ((0, R.useContext)(Zh)) return e.content;
+ let { collection: t, document: n } = ng(e.createCollection);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Wh, null, /*#__PURE__*/ R.createElement(Zh.Provider, { value: n }, e.content)), /*#__PURE__*/ R.createElement($h, {
render: e.children,
collection: t
}));
}
-function Qh({ collection: e, render: t }) {
+function $h({ collection: e, render: t }) {
return t(e);
}
-function $h(e, t, n) {
- let r = Mm(), i = (0, R.useRef)(r);
+function eg(e, t, n) {
+ let r = Nm(), i = (0, R.useRef)(r);
i.current = r;
let a = (0, R.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Jh.useSyncExternalStore)(e, a);
+ return (0, Yh.useSyncExternalStore)(e, a);
}
-var eg = typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore : $h;
-function tg(e) {
- let [t] = (0, R.useState)(() => new mp(e?.() || new up()));
+var tg = typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore : eg;
+function ng(e) {
+ let [t] = (0, R.useState)(() => new hp(e?.() || new dp()));
return {
- collection: eg((0, R.useCallback)((e) => t.subscribe(e), [t]), (0, R.useCallback)(() => {
+ collection: tg((0, R.useCallback)((e) => t.subscribe(e), [t]), (0, R.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, R.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var ng = /*#__PURE__*/ (0, R.createContext)(null);
-function rg(e) {
- return class extends ap {
+var rg = /*#__PURE__*/ (0, R.createContext)(null);
+function ig(e) {
+ return class extends op {
static {
this.type = e;
}
};
}
-function ig(e, t, n, r, i, a) {
- typeof e == "string" && (e = rg(e));
+function ag(e, t, n, r, i, a) {
+ typeof e == "string" && (e = ig(e));
let o = (0, R.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -15898,58 +15898,58 @@ function ig(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, R.useContext)(ng);
+ ]), s = (0, R.useContext)(rg);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ R.createElement(ng.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ R.createElement(rg.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ R.createElement(e.type, { ref: o }, i);
}
-function ag(e, t) {
+function og(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, R.forwardRef)((r, i) => {
- let a = (0, R.useContext)(zh);
- if (!(0, R.useContext)(Yh)) {
+ let a = (0, R.useContext)(Bh);
+ if (!(0, R.useContext)(Xh)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return ig(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ R.createElement(zh.Provider, { value: a }, /*#__PURE__*/ R.createElement(n, { node: e })));
+ return ag(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ R.createElement(Bh.Provider, { value: a }, /*#__PURE__*/ R.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function og(e, t, n = sg) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, R.forwardRef)((t, i) => ig(e, t, i, null, n(t), (e) => /*#__PURE__*/ R.createElement(r, { node: e })) ?? /*#__PURE__*/ R.createElement(R.Fragment, null));
+function sg(e, t, n = cg) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, R.forwardRef)((t, i) => ag(e, t, i, null, n(t), (e) => /*#__PURE__*/ R.createElement(r, { node: e })) ?? /*#__PURE__*/ R.createElement(R.Fragment, null));
return i.displayName = t.name, i;
}
-function sg(e) {
- return hp({
+function cg(e) {
+ return gp({
...e,
addIdAndValue: !0
});
}
-var cg = /*#__PURE__*/ (0, R.createContext)(null);
-function lg(e) {
- let t = (0, R.useContext)(cg), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = sg({
+var lg = /*#__PURE__*/ (0, R.createContext)(null);
+function ug(e) {
+ let t = (0, R.useContext)(lg), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = cg({
...e,
idScope: r,
dependencies: n
});
- return (0, R.useContext)(Xh) && (i = /*#__PURE__*/ R.createElement(tee, null, i)), t = (0, R.useMemo)(() => ({
+ return (0, R.useContext)(Zh) && (i = /*#__PURE__*/ R.createElement(tee, null, i)), t = (0, R.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ R.createElement(cg.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ R.createElement(lg.Provider, { value: t }, i);
}
function tee({ children: e }) {
- let t = (0, R.useContext)(Xh), n = (0, R.useMemo)(() => /*#__PURE__*/ R.createElement(Xh.Provider, { value: null }, /*#__PURE__*/ R.createElement(Yh.Provider, { value: !0 }, e)), [e]);
- return Mm() ? /*#__PURE__*/ R.createElement(ng.Provider, { value: t }, n) : /*#__PURE__*/ (0, np.createPortal)(n, t);
+ let t = (0, R.useContext)(Zh), n = (0, R.useMemo)(() => /*#__PURE__*/ R.createElement(Zh.Provider, { value: null }, /*#__PURE__*/ R.createElement(Xh.Provider, { value: !0 }, e)), [e]);
+ return Nm() ? /*#__PURE__*/ R.createElement(rg.Provider, { value: t }, n) : /*#__PURE__*/ (0, rp.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
var nee = "react-aria-clear-focus", ree = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function ug(e) {
- let t = aee(Sp(e));
- t !== e && (t && iee(t, e), e && dg(e, t));
+function dg(e) {
+ let t = aee(Cp(e));
+ t !== e && (t && iee(t, e), e && fg(e, t));
}
function iee(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
@@ -15957,20 +15957,20 @@ function iee(e, t) {
relatedTarget: t
}));
}
-function dg(e, t) {
+function fg(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
function aee(e) {
- let t = Np(e), n = t?.getAttribute("aria-activedescendant");
+ let t = Pp(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function fg(e) {
- return tm() ? e.metaKey : e.ctrlKey;
+function pg(e) {
+ return nm() ? e.metaKey : e.ctrlKey;
}
var oee = /* @__PURE__ */ new Set([
"checkbox",
@@ -15983,13 +15983,13 @@ var oee = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function pg(e) {
+function mg(e) {
return e instanceof HTMLInputElement && !oee.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var see = R.useInsertionEffect ?? Kp;
-function mg(e) {
+var see = R.useInsertionEffect ?? qp;
+function hg(e) {
let t = (0, R.useRef)(null);
return see(() => {
t.current = e;
@@ -16000,10 +16000,10 @@ function mg(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function hg(e, t, n, r) {
- let i = mg(n), a = n == null;
+function gg(e, t, n, r) {
+ let i = hg(n), a = n == null;
(0, R.useEffect)(() => {
- if (!(a || e.current == null)) return Op(e.current, t, i, r);
+ if (!(a || e.current == null)) return kp(e.current, t, i, r);
}, [
e,
t,
@@ -16013,9 +16013,9 @@ function hg(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function gg(e, t) {
+function _g(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = hh(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = gh(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -16066,9 +16066,9 @@ function uee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var _g = Symbol.for("react-aria.i18n.locale");
-function vg() {
- let e = typeof window < "u" && window[_g] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var vg = Symbol.for("react-aria.i18n.locale");
+function yg() {
+ let e = typeof window < "u" && window[vg] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -16079,30 +16079,30 @@ function vg() {
direction: uee(e) ? "rtl" : "ltr"
};
}
-var yg = vg(), bg = /* @__PURE__ */ new Set();
-function xg() {
- yg = vg();
- for (let e of bg) e(yg);
+var bg = yg(), xg = /* @__PURE__ */ new Set();
+function Sg() {
+ bg = yg();
+ for (let e of xg) e(bg);
}
function dee() {
- let e = Mm(), [t, n] = (0, R.useState)(yg);
- return (0, R.useEffect)(() => (bg.size === 0 && window.addEventListener("languagechange", xg), bg.add(n), () => {
- bg.delete(n), bg.size === 0 && window.removeEventListener("languagechange", xg);
+ let e = Nm(), [t, n] = (0, R.useState)(bg);
+ return (0, R.useEffect)(() => (xg.size === 0 && window.addEventListener("languagechange", Sg), xg.add(n), () => {
+ xg.delete(n), xg.size === 0 && window.removeEventListener("languagechange", Sg);
}), []), e ? {
- locale: typeof window < "u" && window[_g] || "en-US",
+ locale: typeof window < "u" && window[vg] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
var fee = /*#__PURE__*/ R.createContext(null);
-function Sg() {
+function Cg() {
let e = dee();
return (0, R.useContext)(fee) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var pee = Symbol.for("react-aria.i18n.locale"), mee = Symbol.for("react-aria.i18n.strings"), Cg = void 0, wg = class e {
+var pee = Symbol.for("react-aria.i18n.locale"), mee = Symbol.for("react-aria.i18n.strings"), wg = void 0, Tg = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -16118,13 +16118,13 @@ var pee = Symbol.for("react-aria.i18n.locale"), mee = Symbol.for("react-aria.i18
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
let n = window[pee];
- if (Cg === void 0) {
+ if (wg === void 0) {
let t = window[mee];
if (!t) return null;
- Cg = {};
- for (let r in t) Cg[r] = new e({ [n]: t[r] }, n);
+ wg = {};
+ for (let r in t) wg[r] = new e({ [n]: t[r] }, n);
}
- let r = Cg?.[t];
+ let r = wg?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
@@ -16145,7 +16145,7 @@ function _ee(e) {
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Tg = /* @__PURE__ */ new Map(), Eg = /* @__PURE__ */ new Map(), vee = class {
+var Eg = /* @__PURE__ */ new Map(), Dg = /* @__PURE__ */ new Map(), vee = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -16156,27 +16156,27 @@ var Tg = /* @__PURE__ */ new Map(), Eg = /* @__PURE__ */ new Map(), vee = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Tg.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Tg.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Eg.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Eg.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Eg.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Eg.set(this.locale, t)), t.format(e);
+ let t = Dg.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Dg.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Dg = /* @__PURE__ */ new WeakMap();
+}, Og = /* @__PURE__ */ new WeakMap();
function yee(e) {
- let t = Dg.get(e);
- return t || (t = new wg(e), Dg.set(e, t)), t;
+ let t = Og.get(e);
+ return t || (t = new Tg(e), Og.set(e, t)), t;
}
function bee(e, t) {
- return t && wg.getGlobalDictionaryForPackage(t) || yee(e);
+ return t && Tg.getGlobalDictionaryForPackage(t) || yee(e);
}
-function Og(e, t) {
- let { locale: n } = Sg(), r = bee(e, t);
+function kg(e, t) {
+ let { locale: n } = Cg(), r = bee(e, t);
return (0, R.useMemo)(() => new vee(n, r), [n, r]);
}
//#endregion
@@ -16200,65 +16200,65 @@ var xee = /* @__PURE__ */ new Set(["id"]), See = /* @__PURE__ */ new Set([
"hidden",
"inert",
"translate"
-]), kg = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Tee = /^(data-.*)$/;
-function Ag(e, t = {}) {
+]), Ag = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Tee = /^(data-.*)$/;
+function jg(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (xee.has(t) || n && See.has(t) || r && Cee.has(t) || i && wee.has(t) || a && (kg.has(t) || t.endsWith("Capture") && kg.has(t.slice(0, -7))) || o?.has(t) || Tee.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (xee.has(t) || n && See.has(t) || r && Cee.has(t) || i && wee.has(t) || a && (Ag.has(t) || t.endsWith("Capture") && Ag.has(t.slice(0, -7))) || o?.has(t) || Tee.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var jg = "default", Mg = "", Ng = /* @__PURE__ */ new WeakMap();
+var Mg = "default", Ng = "", Pg = /* @__PURE__ */ new WeakMap();
function Eee(e) {
- if (im() && om()) {
- if (jg === "default") {
- let t = Sp(e);
- Mg = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ if (am() && sm()) {
+ if (Mg === "default") {
+ let t = Cp(e);
+ Ng = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- jg = "disabled";
+ Mg = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Ng.set(e, e.style[t]), e.style[t] = "none";
+ Pg.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Pg(e) {
- if (im() && om()) {
- if (jg !== "disabled") return;
- jg = "restoring", setTimeout(() => {
- sh(() => {
- if (jg === "restoring") {
- let t = Sp(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Mg || ""), Mg = "", jg = "default";
+function Fg(e) {
+ if (am() && sm()) {
+ if (Mg !== "disabled") return;
+ Mg = "restoring", setTimeout(() => {
+ ch(() => {
+ if (Mg === "restoring") {
+ let t = Cp(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Ng || ""), Ng = "", Mg = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Ng.has(e)) {
- let t = Ng.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Ng.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Pg.has(e)) {
+ let t = Pg.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Pg.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
function Dee(e, t) {
- let n = Cp(t), r = Sp(t);
+ let n = wp(t), r = Cp(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Fg = /* @__PURE__ */ new WeakMap();
-function Ig(e) {
- let t = Sp(e), n = Fg.get(t);
- return n ??= Dee("csp-nonce", t), n !== void 0 && Fg.set(t, n), n;
+var Ig = /* @__PURE__ */ new WeakMap();
+function Lg(e) {
+ let t = Cp(e), n = Ig.get(t);
+ return n ??= Dee("csp-nonce", t), n !== void 0 && Ig.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var Lg = R.createContext({ register: () => {} });
-Lg.displayName = "PressResponderContext";
+var Rg = R.createContext({ register: () => {} });
+Rg.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Rg() {
+function zg() {
let e = (0, R.useRef)(/* @__PURE__ */ new Map()), t = (0, R.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -16286,14 +16286,14 @@ function Rg() {
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
function Oee(e) {
- let t = (0, R.useContext)(Lg);
+ let t = (0, R.useContext)(Rg);
if (t) {
let { register: n, ref: r, ...i } = t;
e = H(i, e), n();
}
- return Rh(t, e.ref), e;
+ return zh(t, e.ref), e;
}
-var zg = class {
+var Bg = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -16306,8 +16306,8 @@ var zg = class {
get shouldStopPropagation() {
return this.#e;
}
-}, Bg = Symbol("linkClicked"), Vg = "react-aria-pressable-style", Hg = "data-react-aria-pressable";
-function Ug(e) {
+}, Vg = Symbol("linkClicked"), Hg = "react-aria-pressable-style", Ug = "data-react-aria-pressable";
+function Wg(e) {
let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Oee(e), [m, h] = (0, R.useState)(!1), g = (0, R.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
@@ -16318,12 +16318,12 @@ function Ug(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Rg(), y = (0, R.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = zg(), y = (0, R.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new zg("pressstart", t, e);
+ let n = new Bg("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -16337,11 +16337,11 @@ function Ug(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new zg("pressend", r, e);
+ let t = new Bg("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new zg("press", r, e);
+ let n = new Bg("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -16350,19 +16350,19 @@ function Ug(e) {
i,
n,
t
- ]), x = mg(b), S = mg((0, R.useCallback)((e, t) => {
+ ]), x = hg(b), S = hg((0, R.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new zg("pressup", t, e);
+ let r = new Bg("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, R.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(Kg(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Pg(t.target);
+ t.didFirePressStart && t.pointerType != null && b(qg(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Fg(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -16370,7 +16370,7 @@ function Ug(e) {
d,
v,
b
- ]), w = mg(C);
+ ]), w = hg(C);
(0, R.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -16387,39 +16387,39 @@ function Ug(e) {
}, [s, o]), D = (0, R.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- Jp(n, t), o(qp(n));
+ Yp(n, t), o(Jp(n));
}
}, [s, o]), O = (0, R.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (Gg(t.nativeEvent, t.currentTarget) && Mp(t.currentTarget, V(t))) {
- qg(V(t), t.key) && t.preventDefault();
+ if (Kg(t.nativeEvent, t.currentTarget) && Np(t.currentTarget, V(t))) {
+ Jg(V(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(Sp(t.currentTarget), "keyup", lh((t) => {
- Gg(t, i) && !t.repeat && Mp(i, V(t)) && e.target && S(Kg(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && tm() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(Cp(t.currentTarget), "keyup", uh((t) => {
+ Kg(t, i) && !t.repeat && Np(i, V(t)) && e.target && S(qg(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && nm() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !Mp(t.currentTarget, V(t))) && t && t.button === 0 && !e.isTriggeringEvent && !hm.isOpening) {
+ if (!(t && !Np(t.currentTarget, V(t))) && t && t.button === 0 && !e.isTriggeringEvent && !gm.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || um(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || dm(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Kg(t.currentTarget, t), r), a = x(Kg(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(qg(t.currentTarget, t), r), a = x(qg(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && Gg(t, e.target)) {
- qg(V(t), t.key) && t.preventDefault();
- let n = V(t), r = Mp(e.target, n);
- x(Kg(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Wg(e.target) && Mp(e.target, n) && !t[Bg] && (t[Bg] = !0, hm(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && Kg(t, e.target)) {
+ Jg(V(t), t.key) && t.preventDefault();
+ let n = V(t), r = Np(e.target, n);
+ x(qg(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Gg(e.target) && Np(e.target, n) && !t[Vg] && (t[Vg] = !0, gm(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -16428,8 +16428,8 @@ function Ug(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !Mp(t.currentTarget, V(t))) return;
- if (dm(t.nativeEvent)) {
+ if (t.button !== 0 || !Np(t.currentTarget, V(t))) return;
+ if (fm(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
@@ -16438,29 +16438,29 @@ function Ug(e) {
if (!e.isPressed) {
e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Eee(e.target), i = y(t, e.pointerType);
let a = V(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Sp(t.currentTarget), "pointerup", n, !1), _(Sp(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Cp(t.currentTarget), "pointerup", n, !1), _(Cp(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (Mp(t.currentTarget, V(t)) && t.button === 0) {
+ if (Np(t.currentTarget, V(t)) && t.button === 0) {
if (l) {
- let n = Zp(t.target);
+ let n = Qp(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !Mp(t.currentTarget, V(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ !Np(t.currentTarget, V(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Kg(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(qg(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Kg(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(qg(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (Mp(e.target, V(t)) && e.pointerType != null) {
+ if (Np(e.target, V(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (_p(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (vp(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -16470,7 +16470,7 @@ function Ug(e) {
w(e);
};
t.onDragStart = (e) => {
- Mp(e.currentTarget, V(e)) && w(e);
+ Np(e.currentTarget, V(e)) && w(e);
};
}
return t;
@@ -16487,14 +16487,14 @@ function Ug(e) {
]);
return (0, R.useEffect)(() => {
if (!f) return;
- let e = Sp(f.current);
- if (!e || !e.head || e.getElementById(Vg)) return;
+ let e = Cp(f.current);
+ if (!e || !e.head || e.getElementById(Hg)) return;
let t = e.createElement("style");
- t.id = Vg;
- let n = Ig(e);
+ t.id = Hg;
+ let n = Lg(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${Hg}] {
+ [${Ug}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -16502,23 +16502,23 @@ function Ug(e) {
}, [f]), (0, R.useEffect)(() => {
let e = g.current;
return () => {
- d || Pg(e.target ?? void 0);
+ d || Fg(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: H(p, O, { [Hg]: !0 })
+ pressProps: H(p, O, { [Ug]: !0 })
};
}
-function Wg(e) {
+function Gg(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function Gg(e, t) {
+function Kg(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Cp(i).HTMLInputElement && !Jg(i, n) || i instanceof Cp(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Wg(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof wp(i).HTMLInputElement && !Yg(i, n) || i instanceof wp(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Gg(i)) && n !== "Enter");
}
-function Kg(e, t) {
+function qg(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -16532,10 +16532,10 @@ function Kg(e, t) {
};
}
function kee(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Wg(e);
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Gg(e);
}
-function qg(e, t) {
- return tm() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Jg(e, t) : kee(e);
+function Jg(e, t) {
+ return nm() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Yg(e, t) : kee(e);
}
var Aee = /* @__PURE__ */ new Set([
"checkbox",
@@ -16548,7 +16548,7 @@ var Aee = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Jg(e, t) {
+function Yg(e, t) {
return e.type === "checkbox" || e.type === "radio" ? t === " " : Aee.has(e.type);
}
//#endregion
@@ -16575,7 +16575,7 @@ function jee(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = Ug({
+ let { pressProps: _, isPressed: v } = Wg({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -16585,9 +16585,9 @@ function jee(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Vh(e, t);
+ }), { focusableProps: y } = Hh(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = H(y, _, Ag(e, { labelable: !0 }));
+ let b = H(y, _, jg(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: H(g, b, {
@@ -16627,7 +16627,7 @@ var Mee = class {
return this._currentNode;
}
set currentNode(e) {
- if (!Mp(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!Np(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -16641,7 +16641,7 @@ var Mee = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return Mp(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return Np(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -16705,45 +16705,45 @@ var Mee = class {
return null;
}
};
-function Yg(e, t, n, r) {
- return jp() ? new Mee(e, t, n, r) : e.createTreeWalker(t, n, r);
+function Xg(e, t, n, r) {
+ return Mp() ? new Mee(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var Xg = /*#__PURE__*/ R.createContext(null), Zg = "react-aria-focus-scope-restore", Qg = null;
-function $g(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)([]), { parentNode: c } = (0, R.useContext)(Xg) || {}, l = (0, R.useMemo)(() => new f_({ scopeRef: s }), [s]);
- Kp(() => {
- let e = c || p_.root;
- if (p_.getTreeNode(e.scopeRef) && Qg && !a_(Qg, e.scopeRef)) {
- let t = p_.getTreeNode(Qg);
+var Zg = /*#__PURE__*/ R.createContext(null), Qg = "react-aria-focus-scope-restore", $g = null;
+function e_(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)([]), { parentNode: c } = (0, R.useContext)(Zg) || {}, l = (0, R.useMemo)(() => new p_({ scopeRef: s }), [s]);
+ qp(() => {
+ let e = c || m_.root;
+ if (m_.getTreeNode(e.scopeRef) && $g && !o_($g, e.scopeRef)) {
+ let t = m_.getTreeNode($g);
t && (e = t);
}
- e.addChild(l), p_.addNode(l);
- }, [l, c]), Kp(() => {
- let e = p_.getTreeNode(s);
+ e.addChild(l), m_.addNode(l);
+ }, [l, c]), qp(() => {
+ let e = m_.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), Kp(() => {
+ }, [n]), qp(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Zg, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Qg, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Zg, n);
+ for (let e of t) e.removeEventListener(Qg, n);
};
}, [t]), zee(s, r, n), Iee(s, n), Bee(s, r, n), Ree(s, i), (0, R.useEffect)(() => {
- let e = Np(Sp(s.current ? s.current[0] : void 0)), t = null;
- if (r_(e, s.current)) {
- for (let n of p_.traverse()) n.scopeRef && r_(e, n.scopeRef.current) && (t = n);
- t === p_.getTreeNode(s) && (Qg = t.scopeRef);
- }
- }, [s]), Kp(() => () => {
- let e = p_.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === Qg || a_(s, Qg)) && (!e || p_.getTreeNode(e)) && (Qg = e), p_.removeTreeNode(s);
+ let e = Pp(Cp(s.current ? s.current[0] : void 0)), t = null;
+ if (i_(e, s.current)) {
+ for (let n of m_.traverse()) n.scopeRef && i_(e, n.scopeRef.current) && (t = n);
+ t === m_.getTreeNode(s) && ($g = t.scopeRef);
+ }
+ }, [s]), qp(() => () => {
+ let e = m_.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === $g || o_(s, $g)) && (!e || m_.getTreeNode(e)) && ($g = e), m_.removeTreeNode(s);
}, [s]);
let u = (0, R.useMemo)(() => Nee(s), []), d = (0, R.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ R.createElement(Xg.Provider, { value: d }, /*#__PURE__*/ R.createElement("span", {
+ return /*#__PURE__*/ R.createElement(Zg.Provider, { value: d }, /*#__PURE__*/ R.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -16756,48 +16756,48 @@ function $g(e) {
function Nee(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Np(Sp(n[0] ?? void 0)), c = n[0].previousElementSibling, l = d_(e_(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Pp(Cp(n[0] ?? void 0)), c = n[0].previousElementSibling, l = f_(t_(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = r_(s, n) ? s : c;
+ l.currentNode = i_(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && o_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && s_(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Np(Sp(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = d_(e_(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Pp(Cp(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = f_(t_(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = r_(s, n) ? s : c;
+ l.currentNode = i_(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && o_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && s_(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = d_(e_(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = f_(t_(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && o_(o, !0), o;
+ return o && s_(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = d_(e_(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = f_(t_(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && o_(o, !0), o;
+ return o && s_(o, !0), o;
}
};
}
-function e_(e) {
+function t_(e) {
return e[0].parentElement;
}
-function t_(e) {
- let t = p_.getTreeNode(Qg);
+function n_(e) {
+ let t = m_.getTreeNode($g);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
@@ -16805,8 +16805,8 @@ function t_(e) {
return !0;
}
function Pee(e) {
- if (!e.form) return Array.from(Sp(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = Cp(e);
+ if (!e.form) return Array.from(Cp(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = wp(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
function Fee(e) {
@@ -16816,91 +16816,91 @@ function Fee(e) {
}
function Iee(e, t) {
let n = (0, R.useRef)(void 0), r = (0, R.useRef)(void 0);
- Kp(() => {
+ qp(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = Sp(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !t_(e) || t.isComposing) return;
- let n = Np(a), r = e.current;
- if (!r || !r_(n, r)) return;
- let i = d_(e_(r), { tabbable: !0 }, r);
+ let a = Cp(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !n_(e) || t.isComposing) return;
+ let n = Pp(a), r = e.current;
+ if (!r || !i_(n, r)) return;
+ let i = f_(t_(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (o_(o, !0), o instanceof Cp(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (s_(o, !0), o instanceof wp(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!Qg || a_(Qg, e)) && r_(V(t), e.current) ? (Qg = e, n.current = V(t)) : t_(e) && !i_(V(t), e) ? n.current ? o_(n.current) : Qg && Qg.current && c_(Qg.current) : t_(e) && (n.current = V(t));
+ (!$g || o_($g, e)) && i_(V(t), e.current) ? ($g = e, n.current = V(t)) : n_(e) && !a_(V(t), e) ? n.current ? s_(n.current) : $g && $g.current && l_($g.current) : n_(e) && (n.current = V(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = Xm(), i = (r === "virtual" || r === null) && cm() && sm(), o = Np(a);
- if (!i && o && t_(e) && !i_(o, e)) {
- Qg = e;
+ let r = Zm(), i = (r === "virtual" || r === null) && lm() && cm(), o = Pp(a);
+ if (!i && o && n_(e) && !a_(o, e)) {
+ $g = e;
let r = V(t);
- r && r.isConnected ? (n.current = r, o_(n.current)) : Qg.current && c_(Qg.current);
+ r && r.isConnected ? (n.current = r, s_(n.current)) : $g.current && l_($g.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), Kp(() => () => {
+ }, [e, t]), qp(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function n_(e) {
- return i_(e);
+function r_(e) {
+ return a_(e);
}
-function r_(e, t) {
- return !e || !t ? !1 : t.some((t) => Mp(t, e));
+function i_(e, t) {
+ return !e || !t ? !1 : t.some((t) => Np(t, e));
}
-function i_(e, t = null) {
+function a_(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of p_.traverse(p_.getTreeNode(t))) if (n && r_(e, n.current)) return !0;
+ for (let { scopeRef: n } of m_.traverse(m_.getTreeNode(t))) if (n && i_(e, n.current)) return !0;
return !1;
}
function Lee(e) {
- return i_(e, Qg);
+ return a_(e, $g);
}
-function a_(e, t) {
- let n = p_.getTreeNode(t)?.parent;
+function o_(e, t) {
+ let n = m_.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function o_(e, t = !1) {
+function s_(e, t = !1) {
if (e != null && !t) try {
- ch(e);
+ lh(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function s_(e, t = !0) {
- let n = e[0].previousElementSibling, r = e_(e), i = d_(r, { tabbable: t }, e);
+function c_(e, t = !0) {
+ let n = e[0].previousElementSibling, r = t_(e), i = f_(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = e_(e), i = d_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = t_(e), i = f_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function c_(e, t = !0) {
- o_(s_(e, t));
+function l_(e, t = !0) {
+ s_(c_(e, t));
}
function Ree(e, t) {
let n = R.useRef(t);
(0, R.useEffect)(() => {
- n.current && (Qg = e, !r_(Np(Sp(e.current ? e.current[0] : void 0)), Qg.current) && e.current && c_(e.current)), n.current = !1;
+ n.current && ($g = e, !i_(Pp(Cp(e.current ? e.current[0] : void 0)), $g.current) && e.current && l_(e.current)), n.current = !1;
}, [e]);
}
function zee(e, t, n) {
- Kp(() => {
+ qp(() => {
if (t || n) return;
- let r = e.current, i = Sp(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = Cp(r ? r[0] : void 0), a = (t) => {
let n = V(t);
- r_(n, e.current) ? Qg = e : n_(n) || (Qg = null);
+ i_(n, e.current) ? $g = e : r_(n) || ($g = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -16911,8 +16911,8 @@ function zee(e, t, n) {
n
]);
}
-function l_(e) {
- let t = p_.getTreeNode(Qg);
+function u_(e) {
+ let t = m_.getTreeNode($g);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
@@ -16920,34 +16920,34 @@ function l_(e) {
return t?.scopeRef === e;
}
function Bee(e, t, n) {
- let r = (0, R.useRef)(typeof document < "u" ? Np(Sp(e.current ? e.current[0] : void 0)) : null);
- Kp(() => {
- let r = e.current, i = Sp(r ? r[0] : void 0);
+ let r = (0, R.useRef)(typeof document < "u" ? Pp(Cp(e.current ? e.current[0] : void 0)) : null);
+ qp(() => {
+ let r = e.current, i = Cp(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!Qg || a_(Qg, e)) && r_(Np(i), e.current) && (Qg = e);
+ (!$g || o_($g, e)) && i_(Pp(i), e.current) && ($g = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), Kp(() => {
- let r = Sp(e.current ? e.current[0] : void 0);
+ }, [e, n]), qp(() => {
+ let r = Cp(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !t_(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !n_(e) || t.isComposing) return;
let n = r.activeElement;
- if (!i_(n, e) || !l_(e)) return;
- let i = p_.getTreeNode(e);
+ if (!a_(n, e) || !u_(e)) return;
+ let i = m_.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = d_(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = f_(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !i_(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !a_(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (i_(s, e));
- t.preventDefault(), t.stopPropagation(), s ? o_(s, !0) : n_(a) ? o_(a, !0) : n.blur();
+ while (a_(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? s_(s, !0) : r_(a) ? s_(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -16957,31 +16957,31 @@ function Bee(e, t, n) {
e,
t,
n
- ]), Kp(() => {
- let n = Sp(e.current ? e.current[0] : void 0);
+ ]), qp(() => {
+ let n = Cp(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = p_.getTreeNode(e);
+ let i = m_.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = p_.getTreeNode(e);
+ let r = m_.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = Np(n);
- if (t && i && (a && i_(a, e) || a === n.body && l_(e))) {
- let t = p_.clone();
+ let i = r.nodeToRestore, a = Pp(n);
+ if (t && i && (a && a_(a, e) || a === n.body && u_(e))) {
+ let t = m_.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- u_(n.nodeToRestore);
+ d_(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && p_.getTreeNode(n.scopeRef)) {
- let e = s_(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && m_.getTreeNode(n.scopeRef)) {
+ let e = c_(n.scopeRef.current, !0);
if (e) {
- u_(e);
+ d_(e);
return;
}
}
@@ -16993,21 +16993,21 @@ function Bee(e, t, n) {
};
}, [e, t]);
}
-function u_(e) {
- e.dispatchEvent(new CustomEvent(Zg, {
+function d_(e) {
+ e.dispatchEvent(new CustomEvent(Qg, {
bubbles: !0,
cancelable: !0
- })) && o_(e);
+ })) && s_(e);
}
-function d_(e, t, n) {
- let r = t?.tabbable ? Wp : Up, i = Sp(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Yg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return Mp(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Fee(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || r_(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function f_(e, t, n) {
+ let r = t?.tabbable ? Gp : Wp, i = Cp(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Xg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return Np(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Fee(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || i_(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
var Vee = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new f_({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new p_({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -17018,7 +17018,7 @@ var Vee = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new f_({ scopeRef: e });
+ let i = new p_({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -17029,7 +17029,7 @@ var Vee = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && r_(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && i_(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -17041,7 +17041,7 @@ var Vee = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, f_ = class {
+}, p_ = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -17051,10 +17051,10 @@ var Vee = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, p_ = new Vee(), m_ = 7e3, h_ = null;
-function g_(e, t = "assertive", n = m_) {
- h_ ? h_.announce(e, t, n) : (h_ = new Hee(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? h_.announce(e, t, n) : setTimeout(() => {
- h_?.isAttached() && h_?.announce(e, t, n);
+}, m_ = new Vee(), h_ = 7e3, g_ = null;
+function __(e, t = "assertive", n = h_) {
+ g_ ? g_.announce(e, t, n) : (g_ = new Hee(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? g_.announce(e, t, n) : setTimeout(() => {
+ g_?.isAttached() && g_?.announce(e, t, n);
}, 100));
}
var Hee = class {
@@ -17082,7 +17082,7 @@ var Hee = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = m_) {
+ announce(e, t = "assertive", n = h_) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -17095,8 +17095,8 @@ var Hee = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function __(e, t) {
- let n = (0, R.useRef)(!0), r = (0, R.useRef)(null), i = mg(e);
+function v_(e, t) {
+ let n = (0, R.useRef)(!0), r = (0, R.useRef)(null), i = hg(e);
(0, R.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, R.useEffect)(() => {
@@ -17106,33 +17106,33 @@ function __(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function v_(e, t) {
+function y_(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function y_(e, t) {
+function b_(e, t) {
let n = e;
- for (v_(n, t) && (n = n.parentElement); n && !v_(n, t);) n = n.parentElement;
+ for (y_(n, t) && (n = n.parentElement); n && !y_(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function b_(e, t) {
+function x_(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (v_(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (y_(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function x_(e, t, n = {}) {
+function S_(e, t, n = {}) {
e !== t && Uee(e, t, t.getBoundingClientRect(), n);
}
function Uee(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, F = p + (f ? 0 : T) + x, ne = m - (f ? 0 : E) - S - P, re = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;
- im() && om() || u.direction === "ltr" ? ie -= te : u.direction === "rtl" && (re += te);
+ am() && sm() || u.direction === "ltr" ? ie -= te : u.direction === "rtl" && (re += te);
let ae = k < F || A > ne, oe = j < re || M > ie;
if (ae && i === "start") o += k - F;
else if (ae && i === "center") o += (k + A) / 2 - (F + ne) / 2;
@@ -17153,7 +17153,7 @@ function Uee(e, t, n, r = {}) {
top: o
});
}
-function S_(e, t = {}) {
+function C_(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -17166,28 +17166,28 @@ function S_(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = b_(e, !0);
- for (let t of i) x_(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = x_(e, !0);
+ for (let t of i) S_(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? b_(n, !0) : [];
- for (let e of i) x_(e, n, {
+ i = n ? x_(n, !0) : [];
+ for (let e of i) S_(e, n, {
block: "center",
inline: "center"
});
- for (let t of b_(e, !0)) x_(t, e);
+ for (let t of x_(e, !0)) S_(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Wee = 0, C_ = /* @__PURE__ */ new Map();
-function w_(e) {
+var Wee = 0, w_ = /* @__PURE__ */ new Map();
+function T_(e) {
let [t, n] = (0, R.useState)();
- return Kp(() => {
+ return qp(() => {
if (!e) return;
- let t = C_.get(e);
+ let t = w_.get(e);
if (t) n(t.element.id);
else {
let r = `react-aria-description-${Wee++}`;
@@ -17196,17 +17196,17 @@ function w_(e) {
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, C_.set(e, t);
+ }, w_.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), C_.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), w_.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function T_(e, t, n) {
- let r = mg((e) => {
+function E_(e, t, n) {
+ let r = hg((e) => {
n && !e.defaultPrevented && n(t);
});
(0, R.useEffect)(() => {
@@ -17218,21 +17218,21 @@ function T_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function E_(e, t, n) {
+function D_(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- Kp(() => {
+ qp(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Kee(n.current));
}
});
- let a = (0, R.useRef)(!1), o = mg(() => {
+ let a = (0, R.useRef)(!1), o = hg(() => {
a.current || t.resetValidation();
- }), s = mg((e) => {
+ }), s = hg((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && qee(r) === n.current && (i ? i() : n.current?.focus(), Zm("keyboard")), e.preventDefault();
- }), c = mg(() => {
+ !e.defaultPrevented && n && r && qee(r) === n.current && (i ? i() : n.current?.focus(), Qm("keyboard")), e.preventDefault();
+ }), c = hg(() => {
t.commitValidation();
});
(0, R.useEffect)(() => {
@@ -17282,12 +17282,12 @@ function Jee(e = !0) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return Kp(() => {
+ return qp(() => {
r.current || n(!1);
}, []), [i, t];
}
-function D_(e = !0) {
- let t = hh(), [n, r] = Jee(e);
+function O_(e = !0) {
+ let t = gh(), [n, r] = Jee(e);
return {
id: r ? t : void 0,
ref: n
@@ -17295,7 +17295,7 @@ function D_(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var O_ = {
+var k_ = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -17307,18 +17307,18 @@ var O_ = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, k_ = {
- ...O_,
+}, A_ = {
+ ...k_,
customError: !0,
valid: !1
-}, A_ = {
+}, j_ = {
isInvalid: !1,
- validationDetails: O_,
+ validationDetails: k_,
validationErrors: []
-}, Yee = (0, R.createContext)({}), j_ = "__reactAriaFormValidationState";
-function M_(e) {
+}, Yee = (0, R.createContext)({}), M_ = "__reactAriaFormValidationState";
+function N_(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[j_];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[M_];
return {
realtimeValidation: t,
displayValidation: n,
@@ -17335,63 +17335,63 @@ function Xee(e) {
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: k_
- }, l = (0, R.useMemo)(() => !o || i == null ? null : P_(Zee(o, i)), [o, i]);
+ validationDetails: A_
+ }, l = (0, R.useMemo)(() => !o || i == null ? null : F_(Zee(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, R.useContext)(Yee), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => N_(u[e])) : N_(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
+ let u = (0, R.useContext)(Yee), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => P_(u[e])) : P_(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, R.useMemo)(() => P_(m ? [] : d), [m, d]), _ = (0, R.useRef)(A_), [v, y] = (0, R.useState)(A_), b = (0, R.useRef)(A_), x = () => {
+ let g = (0, R.useMemo)(() => F_(m ? [] : d), [m, d]), _ = (0, R.useRef)(j_), [v, y] = (0, R.useState)(j_), b = (0, R.useRef)(j_), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- F_(e, b.current) || (b.current = e, y(e));
+ I_(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, R.useState)(!1);
return (0, R.useEffect)(x), {
- realtimeValidation: c || g || l || a || A_,
+ realtimeValidation: c || g || l || a || j_,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !F_(v, e) ? y(e) : _.current = e;
+ s === "aria" && !I_(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = A_;
- F_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = j_;
+ I_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function N_(e) {
+function P_(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
function Zee(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return N_(n);
+ if (n && typeof n != "boolean") return P_(n);
}
return [];
}
-function P_(e) {
+function F_(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: k_
+ validationDetails: A_
} : null;
}
-function F_(e, t) {
+function I_(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function I_(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = M_({
+function L_(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = N_({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- E_(e, b, n);
+ D_(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(V(e).checked);
- }, { pressProps: T, isPressed: E } = Ug({
+ }, { pressProps: T, isPressed: E } = Wg({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -17399,7 +17399,7 @@ function I_(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, R.useState)(!1), { pressProps: k } = Ug({
+ }), [D, O] = (0, R.useState)(!1), { pressProps: k } = Wg({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -17428,13 +17428,13 @@ function I_(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [j_]: i } = e, { commitValidation: a } = i || b;
+ let { [M_]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = Vh(e, n), j = H(T, A), M = Ag(e, { labelable: !0 });
- T_(n, t.defaultSelected, t.setSelected);
- let N = D_(), ee = D_();
+ }), { focusableProps: A } = Hh(e, n), j = H(T, A), M = jg(e, { labelable: !0 });
+ E_(n, t.defaultSelected, t.setSelected);
+ let N = O_(), ee = O_();
return {
labelProps: H(k, { onClick: (e) => e.preventDefault() }),
inputProps: H(M, {
@@ -17471,8 +17471,8 @@ function I_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function L_(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = I_(e, t, n), { isIndeterminate: m } = e;
+function R_(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = L_(e, t, n), { isIndeterminate: m } = e;
return (0, R.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -17494,15 +17494,15 @@ function L_(e, t, n) {
var Qee = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function R_(e) {
+function z_(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = hh(t);
- let o = hh(), s = {};
+ t = gh(t);
+ let o = gh(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = gg({
+ let c = _g({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -17514,13 +17514,13 @@ function R_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function z_(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = R_(e), s = _h([
+function B_(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = z_(e), s = vh([
!!t,
!!n,
r,
i
- ]), c = _h([
+ ]), c = vh([
!!t,
!!n,
r,
@@ -17539,26 +17539,26 @@ function z_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function B_(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, R.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Rg(), c = (0, R.useCallback)((e) => {
- Mp(e.currentTarget, V(e)) && a.current.isFocusWithin && !Mp(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function V_(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, R.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = zg(), c = (0, R.useCallback)((e) => {
+ Np(e.currentTarget, V(e)) && a.current.isFocusWithin && !Np(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = Yp(c), u = (0, R.useCallback)((e) => {
- if (!Mp(e.currentTarget, V(e))) return;
- let t = V(e), n = Sp(t), s = Np(n);
+ ]), l = Xp(c), u = (0, R.useCallback)((e) => {
+ if (!Np(e.currentTarget, V(e))) return;
+ let t = V(e), n = Cp(t), s = Pp(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
let r = V(e);
- if (a.current.isFocusWithin && !Mp(t, r)) {
+ if (a.current.isFocusWithin && !Np(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- Jp(e, t);
- let i = qp(e);
+ Yp(e, t);
+ let i = Jp(e);
c(i);
}
}, { capture: !0 });
@@ -17581,7 +17581,7 @@ function B_(e) {
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
var $ee = typeof document < "u" ? R.useInsertionEffect ?? R.useLayoutEffect : () => {};
-function V_(e, t, n) {
+function H_(e, t, n) {
let [r, i] = (0, R.useState)(e || t), a = (0, R.useRef)(r), o = (0, R.useRef)(e !== void 0), s = e !== void 0;
(0, R.useEffect)(() => {
o.current, o.current = s;
@@ -17598,8 +17598,8 @@ function V_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function H_(e = {}) {
- let { isReadOnly: t } = e, [n, r] = V_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, R.useState)(n);
+function U_(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = H_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, R.useState)(n);
function a(e) {
t || r(e);
}
@@ -17616,7 +17616,7 @@ function H_(e = {}) {
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
function ete(e, t, n) {
- let r = H_({
+ let r = U_({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
@@ -17625,16 +17625,16 @@ function ete(e, t, n) {
}
}), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Qee.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = M_({
+ let { realtimeValidation: l } = N_({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, R.useRef)(A_), d = () => {
+ }), u = (0, R.useRef)(j_), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, R.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = L_({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = R_({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -17642,7 +17642,7 @@ function ete(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [j_]: {
+ [M_]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -17666,12 +17666,12 @@ function ete(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function U_(e, t = -Infinity, n = Infinity) {
+function W_(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var W_ = {
+var G_ = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -17683,38 +17683,38 @@ var W_ = {
width: "1px",
whiteSpace: "nowrap"
};
-function G_(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, R.useState)(!1), { focusWithinProps: a } = B_({
+function K_(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, R.useState)(!1), { focusWithinProps: a } = V_({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, R.useMemo)(() => r ? t : t ? {
- ...W_,
+ ...G_,
...t
- } : W_, [r]);
+ } : G_, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function K_(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = G_(e);
+function q_(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = K_(e);
return /*#__PURE__*/ R.createElement(n, H(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
function tte(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = V_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Vh(e, t), d = M_({
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = H_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Hh(e, t), d = N_({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = z_({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = B_({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Ag(e, { labelable: !0 }), b = {
+ }), y = jg(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, R.useState)(c);
- return T_(t, e.defaultValue ?? x, l), E_(e, d, t), {
+ return E_(t, e.defaultValue ?? x, l), D_(e, d, t), {
labelProps: h,
inputProps: H(y, n === "input" ? b : void 0, {
disabled: r,
@@ -17762,41 +17762,41 @@ function tte(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
var nte = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function q_(e) {
+function J_(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var J_ = /* @__PURE__ */ new WeakMap(), Y_ = [];
-function X_(e, t) {
- let n = Cp(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && nte, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var Y_ = /* @__PURE__ */ new WeakMap(), X_ = [];
+function Z_(e, t) {
+ let n = wp(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && nte, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
- if (jp()) {
+ if (Mp()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; Dp(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Op(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (Mp(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (Np(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Yg(Sp(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = Xg(Cp(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = J_.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), J_.set(e, t + 1));
+ let t = Y_.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Y_.set(e, t + 1));
};
- Y_.length && Y_[Y_.length - 1].disconnect(), d(i);
+ X_.length && X_[X_.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => Mp(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && q_(e) ? o.add(e) : e instanceof Element && d(e);
- if (jp()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => Np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && J_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Mp()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -17809,11 +17809,11 @@ function X_(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (jp()) for (let e of u) {
+ if (Mp()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => Mp(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && q_(e) ? o.add(e) : e instanceof Element && d(e);
- if (jp()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => Np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && J_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Mp()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -17839,59 +17839,59 @@ function X_(e, t) {
p.disconnect();
}
};
- return Y_.push(h), () => {
- if (p.disconnect(), jp()) for (let e of m) e.disconnect();
+ return X_.push(h), () => {
+ if (p.disconnect(), Mp()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = J_.get(e);
- t != null && (t === 1 ? (l(e, !1), J_.delete(e)) : J_.set(e, t - 1));
+ let t = Y_.get(e);
+ t != null && (t === 1 ? (l(e, !1), Y_.delete(e)) : Y_.set(e, t - 1));
}
- h === Y_[Y_.length - 1] ? (Y_.pop(), Y_.length && Y_[Y_.length - 1].observe()) : Y_.splice(Y_.indexOf(h), 1);
+ h === X_[X_.length - 1] ? (X_.pop(), X_.length && X_[X_.length - 1].observe()) : X_.splice(X_.indexOf(h), 1);
};
}
function rte(e) {
- let t = Y_[Y_.length - 1];
+ let t = X_[X_.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var Z_ = /* @__PURE__ */ new WeakMap();
+var Q_ = /* @__PURE__ */ new WeakMap();
function ite(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
function ate(e, t) {
- let n = Z_.get(e);
+ let n = Q_.get(e);
if (!n) throw Error("Unknown list");
return `${n.id}-option-${ite(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Q_(e) {
- return am() ? e.altKey : e.ctrlKey;
+function $_(e) {
+ return om() ? e.altKey : e.ctrlKey;
}
-function $_(e, t) {
+function ev(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var ev = /* @__PURE__ */ new WeakMap();
+var tv = /* @__PURE__ */ new WeakMap();
function ote(e) {
- let t = hh();
- return ev.set(e, t), t;
+ let t = gh();
+ return tv.set(e, t), t;
}
function ste(e) {
- return ev.get(e);
+ return tv.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var tv = class {
+var nv = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : $_(this.ref, e);
+ let n = e == null ? null : ev(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -17917,12 +17917,12 @@ var tv = class {
height: e?.clientHeight ?? 0
};
}
-}, nv = class {
+}, rv = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new tv(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new tv(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new nv(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new nv(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -17962,14 +17962,14 @@ var tv = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = $_(this.ref, e);
+ let t = this.getNextKey(e), n = ev(this.ref, e);
if (t != null) {
- let e = $_(this.ref, t);
+ let e = ev(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = $_(this.ref, r);
+ let e = ev(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -18003,7 +18003,7 @@ var tv = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !v_(t)) return this.getFirstKey();
+ if (t && !y_(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -18018,7 +18018,7 @@ var tv = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !v_(t)) return this.getLastKey();
+ if (t && !y_(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -18041,184 +18041,184 @@ var tv = class {
}
return null;
}
-}, rv = {};
-rv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, iv = {};
+iv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var iv = {};
-iv = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var av = {};
+av = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var av = {};
-av = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var ov = {};
+ov = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var ov = {};
-ov = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var sv = {};
+sv = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var sv = {};
-sv = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var cv = {};
+cv = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var cv = {};
-cv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var lv = {};
+lv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var lv = {};
-lv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var uv = {};
+uv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var uv = {};
-uv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var dv = {};
+dv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var dv = {};
-dv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var fv = {};
+fv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var fv = {};
-fv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var pv = {};
+pv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var pv = {};
-pv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var mv = {};
+mv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var mv = {};
-mv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var hv = {};
+hv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var hv = {};
-hv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var gv = {};
+gv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var gv = {};
-gv = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var _v = {};
+_v = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var _v = {};
-_v = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var vv = {};
+vv = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var vv = {};
-vv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var yv = {};
+yv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var yv = {};
-yv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var bv = {};
+bv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var bv = {};
-bv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var xv = {};
+xv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var xv = {};
-xv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Sv = {};
+Sv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var Sv = {};
-Sv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Cv = {};
+Cv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Cv = {};
-Cv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var wv = {};
+wv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var wv = {};
-wv = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Tv = {};
+Tv = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var Tv = {};
-Tv = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Ev = {};
+Ev = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var Ev = {};
-Ev = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Dv = {};
+Dv = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var Dv = {};
-Dv = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Ov = {};
+Ov = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var Ov = {};
-Ov = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var kv = {};
+kv = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var kv = {};
-kv = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Av = {};
+Av = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var Av = {};
-Av = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var jv = {};
+jv = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var jv = {};
-jv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Mv = {};
+Mv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var Mv = {};
-Mv = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Nv = {};
+Nv = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var Nv = {};
-Nv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Pv = {};
+Pv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var Pv = {};
-Pv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Fv = {};
+Fv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Fv = {};
-Fv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Iv = {};
+Iv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Iv = {};
-Iv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Lv = {};
+Lv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Lv = {};
-Lv = {
- "ar-AE": rv,
- "bg-BG": iv,
- "cs-CZ": av,
- "da-DK": ov,
- "de-DE": sv,
- "el-GR": cv,
- "en-US": lv,
- "es-ES": uv,
- "et-EE": dv,
- "fi-FI": fv,
- "fr-FR": pv,
- "he-IL": mv,
- "hr-HR": hv,
- "hu-HU": gv,
- "it-IT": _v,
- "ja-JP": vv,
- "ko-KR": yv,
- "lt-LT": bv,
- "lv-LV": xv,
- "nb-NO": Sv,
- "nl-NL": Cv,
- "pl-PL": wv,
- "pt-BR": Tv,
- "pt-PT": Ev,
- "ro-RO": Dv,
- "ru-RU": Ov,
- "sk-SK": kv,
- "sl-SI": Av,
- "sr-SP": jv,
- "sv-SE": Mv,
- "tr-TR": Nv,
- "uk-UA": Pv,
- "zh-CN": Fv,
- "zh-TW": Iv
+var Rv = {};
+Rv = {
+ "ar-AE": iv,
+ "bg-BG": av,
+ "cs-CZ": ov,
+ "da-DK": sv,
+ "de-DE": cv,
+ "el-GR": lv,
+ "en-US": uv,
+ "es-ES": dv,
+ "et-EE": fv,
+ "fi-FI": pv,
+ "fr-FR": mv,
+ "he-IL": hv,
+ "hr-HR": gv,
+ "hu-HU": _v,
+ "it-IT": vv,
+ "ja-JP": yv,
+ "ko-KR": bv,
+ "lt-LT": xv,
+ "lv-LV": Sv,
+ "nb-NO": Cv,
+ "nl-NL": wv,
+ "pl-PL": Tv,
+ "pt-BR": Ev,
+ "pt-PT": Dv,
+ "ro-RO": Ov,
+ "ru-RU": kv,
+ "sk-SK": Av,
+ "sl-SI": jv,
+ "sr-SP": Mv,
+ "sv-SE": Nv,
+ "tr-TR": Pv,
+ "uk-UA": Fv,
+ "zh-CN": Iv,
+ "zh-TW": Lv
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
var cte = 500;
-function Rv(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = cte, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Rg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Ug({
+function zv(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = cte, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = zg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Wg({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -18226,12 +18226,12 @@ function Rv(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Sp(e.target).activeElement !== e.target && _p(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Cp(e.target).activeElement !== e.target && vp(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = Cp(e.target);
+ let t = wp(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -18246,12 +18246,12 @@ function Rv(e) {
});
}
});
- return { longPressProps: H(f, w_(a && !t ? s : void 0)) };
+ return { longPressProps: H(f, T_(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
function lte(e) {
- let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = Rv({
+ let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = zv({
onLongPressStart() {
n.current = !1;
},
@@ -18263,7 +18263,7 @@ function lte(e) {
});
}
});
- return t ? { contextMenuProps: H(im() ? r : {}, {
+ return t ? { contextMenuProps: H(am() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -18274,7 +18274,7 @@ function lte(e) {
});
},
onKeyDown(e) {
- if (tm() && e.ctrlKey && e.key === "Enter") {
+ if (nm() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -18294,13 +18294,13 @@ function lte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var zv = /* @__PURE__ */ new WeakMap();
+var Bv = /* @__PURE__ */ new WeakMap();
function ute(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, R.useEffect)(() => !n || r === null ? void 0 : Op(Pp(t.current), "scroll", (e) => {
+ (0, R.useEffect)(() => !n || r === null ? void 0 : kp(Fp(t.current), "scroll", (e) => {
let n = V(e);
- if (!t.current || n instanceof Node && !Mp(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || zv.get(t.current);
+ if (!t.current || n instanceof Node && !Np(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || Bv.get(t.current);
i && i();
}, !0), [
n,
@@ -18313,11 +18313,11 @@ function ute(e) {
function dte(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, R.useEffect)(() => {
- n && n.current && zv.set(n.current, t.close);
+ n && n.current && Bv.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = hh();
+ let o = gh();
return {
triggerProps: {
"aria-haspopup": a,
@@ -18333,11 +18333,11 @@ function dte(e, t, n) {
function fte(e) {
return e && e.__esModule ? e.default : e;
}
-function Bv(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = hh(), { triggerProps: s, overlayProps: c } = dte({ type: r }, t, n), l = (e, n, r = "first") => {
+function Vv(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = gh(), { triggerProps: s, overlayProps: c } = dte({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Ih({
+ }, { keyboardProps: u } = Lh({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -18349,7 +18349,7 @@ function Bv(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Og(fte(Lv), "@react-aria/menu"), { longPressProps: f } = Rv({
+ }), d = kg(fte(Rv), "@react-aria/menu"), { longPressProps: f } = zv({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -18361,10 +18361,10 @@ function Bv(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (_p(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (vp(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (_p(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (vp(e.target), t.toggle());
}
};
delete s.onPress;
@@ -18413,8 +18413,8 @@ function Bv(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var Vv = 1e3;
-function Hv(e) {
+var Hv = 1e3;
+function Uv(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, R.useRef)({
search: "",
timeout: void 0
@@ -18433,12 +18433,12 @@ function Hv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Vv);
+ }, Hv);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
let a = pte(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !Mp(e.currentTarget, V(e)) || i.current.search.length === 0 && a === " ")) {
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !Np(e.currentTarget, V(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -18449,7 +18449,7 @@ function Hv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Vv);
+ }, Hv);
}
} : void 0
} };
@@ -18459,24 +18459,24 @@ function pte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Uv(e, t) {
+function Wv(e, t) {
let n = (0, R.useRef)(!0), r = (0, R.useRef)(null);
- Kp(() => (n.current = !0, () => {
+ qp(() => (n.current = !0, () => {
n.current = !1;
- }), []), Kp(() => {
+ }), []), qp(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Wv(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Sg(), _ = pm(), v = (e, n, i) => {
+function Gv(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Cg(), _ = mm(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Q_(e)) {
- (0, np.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !$_(e)) {
+ (0, rp.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = $_(r, n), o = t.getItemProps(n);
+ let a = ev(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -18488,7 +18488,7 @@ function Wv(e) {
t.extendSelection(n);
return;
}
- if (l && !Q_(e)) {
+ if (l && !$_(e)) {
t.replaceSelection(n);
return;
}
@@ -18515,9 +18515,9 @@ function Wv(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, fg(e));
+ let r = n.getFirstKey(t.focusedKey, pg(e));
if (t.setFocusedKey(r), r != null) {
- if (fg(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (pg(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -18549,9 +18549,9 @@ function Wv(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, fg(e));
+ let r = n.getLastKey(t.focusedKey, pg(e));
if (t.setFocusedKey(r), r != null) {
- if (fg(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (pg(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -18588,12 +18588,12 @@ function Wv(e) {
return !1;
}, k = () => {
if (!f && r.current) {
- let e = d_(r.current, { tabbable: !0 }), t, n;
+ let e = f_(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = Np();
- t && (!Fp(t) || i && !Wp(i)) && _p(t);
+ let i = Pp();
+ t && (!Ip(t) || i && !Gp(i)) && vp(t);
}
return {
shouldContinuePropagation: !0,
@@ -18603,11 +18603,11 @@ function Wv(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [tm() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [nm() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [tm() ? e + "+Alt" : e + "+Control"]: t,
+ [nm() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = Ih({
+ }), { keyboardProps: M } = Lh({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -18617,7 +18617,7 @@ function Wv(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: N } = Ih({ shortcuts: {
+ }), { keyboardProps: N } = Lh({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -18628,7 +18628,7 @@ function Wv(e) {
top: 0,
left: 0
});
- hg(p, "scroll", () => {
+ gg(p, "scroll", () => {
ee.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -18636,11 +18636,11 @@ function Wv(e) {
});
let te = (e) => {
if (t.isFocused) {
- Mp(e.currentTarget, V(e)) || t.setFocused(!1);
+ Np(e.currentTarget, V(e)) || t.setFocused(!1);
return;
}
- if (!Mp(e.currentTarget, V(e))) return;
- let i = Xm();
+ if (!Np(e.currentTarget, V(e))) return;
+ let i = Zm();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -18651,27 +18651,27 @@ function Wv(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = ee.current.top, p.current.scrollLeft = ee.current.left);
if (t.focusedKey != null && p.current) {
- let e = $_(r, t.focusedKey);
- e instanceof HTMLElement && (!Fp(e) && !d && _p(e), (i === "keyboard" || h && i === "virtual") && S_(e, { containingElement: r.current }));
+ let e = ev(r, t.focusedKey);
+ e instanceof HTMLElement && (!Ip(e) && !d && vp(e), (i === "keyboard" || h && i === "virtual") && C_(e, { containingElement: r.current }));
}
}, P = (e) => {
- Mp(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ Np(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, F = (0, R.useRef)(!1);
- hg(r, ree, d ? (e) => {
+ gg(r, ree, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (F.current = !0);
} : void 0);
let ne = n.getFirstKey?.() ?? null;
- Uv(() => {
+ Wv(() => {
if (F.current) {
if (ne == null) {
- let e = Np();
- ug(r.current), dg(e, null), t.collection.size > 0 && (F.current = !1);
+ let e = Pp();
+ dg(r.current), fg(e, null), t.collection.size > 0 && (F.current = !1);
} else t.setFocusedKey(ne), F.current = !1;
}
- }, [ne, t.collection.size]), Uv(() => {
+ }, [ne, t.collection.size]), Wv(() => {
t.collection.size > 0 && (F.current = !1);
- }, [t.focusedKey]), hg(r, nee, d ? (e) => {
+ }, [t.focusedKey]), gg(r, nee, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let re = (0, R.useRef)(i), ie = (0, R.useRef)(!1);
@@ -18686,22 +18686,22 @@ function Wv(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && ch(r.current), t.collection.size > 0 && (re.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && lh(r.current), t.collection.size > 0 && (re.current = !1, ie.current = !0);
}
});
let ae = (0, R.useRef)(t.focusedKey), oe = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = Xm(), n = $_(r, t.focusedKey);
+ let e = Zm(), n = ev(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (x_(p.current, n), e !== "virtual" && S_(n, { containingElement: r.current }));
+ p.current && (S_(p.current, n), e !== "virtual" && C_(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && ch(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && lh(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, R.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), hg(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), gg(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -18711,7 +18711,7 @@ function Wv(e) {
onMouseDown(e) {
p.current === V(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = Hv({
+ }, { typeSelectProps: ce } = Uv({
keyboardDelegate: n,
selectionManager: t
});
@@ -18726,13 +18726,13 @@ function Wv(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function Gv(e, t) {
+function Kv(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function Kv(e) {
- return qv(e, 0);
+function qv(e) {
+ return Jv(e, 0);
}
-function qv(e, t) {
+function Jv(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -18740,112 +18740,112 @@ function qv(e, t) {
n++;
}
}
-function Jv(e) {
+function Yv(e) {
let t;
for (let n of e) t = n;
return t;
}
-function Yv(e, t, n) {
+function Xv(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...Xv(e, t), t], i = [...Xv(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...Zv(e, t), t], i = [...Zv(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function Xv(e, t) {
+function Zv(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var Zv = /* @__PURE__ */ new WeakMap();
-function Qv(e) {
- let t = Zv.get(e);
+var Qv = /* @__PURE__ */ new WeakMap();
+function $v(e) {
+ let t = Qv.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(Gv(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(Kv(i, e)) : i.type === "item" && n++;
};
- return r(e), Zv.set(e, n), n;
+ return r(e), Qv.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var $v = /* @__PURE__ */ new Map();
-function ey(e) {
- let { locale: t } = Sg(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if ($v.has(n)) return $v.get(n);
+var ey = /* @__PURE__ */ new Map();
+function ty(e) {
+ let { locale: t } = Cg(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (ey.has(n)) return ey.get(n);
let r = new Intl.Collator(t, e);
- return $v.set(n, r), r;
+ return ey.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
var mte = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, R.useRef)(!1), i = (0, R.useContext)(Lg), a = H(i || {}, {
+ let r = (0, R.useRef)(!1), i = (0, R.useContext)(Rg), a = H(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = Lh(n || i?.ref), Rh(i, a.ref), (0, R.useEffect)(() => {
+ return a.ref = Rh(n || i?.ref), zh(i, a.ref), (0, R.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ R.createElement(Lg.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ R.createElement(Rg.Provider, { value: a }, e);
});
function hte({ children: e }) {
let t = (0, R.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ R.createElement(Lg.Provider, { value: t }, e);
+ return /*#__PURE__*/ R.createElement(Rg.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var ty = /*#__PURE__*/ (0, R.createContext)({});
-function ny(e) {
- let { getContainer: t } = e, { getContainer: n } = ry();
- return /*#__PURE__*/ R.createElement(ty.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var ny = /*#__PURE__*/ (0, R.createContext)({});
+function ry(e) {
+ let { getContainer: t } = e, { getContainer: n } = iy();
+ return /*#__PURE__*/ R.createElement(ny.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function ry() {
- return (0, R.useContext)(ty) ?? {};
+function iy() {
+ return (0, R.useContext)(ny) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var iy = /*#__PURE__*/ R.createContext(null);
-function ay(e) {
- let t = Mm(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, R.useState)(!1), o = (0, R.useMemo)(() => ({
+var ay = /*#__PURE__*/ R.createContext(null);
+function oy(e) {
+ let t = Nm(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, R.useState)(!1), o = (0, R.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = ry();
+ }), [i, a]), { getContainer: s } = iy();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement($g, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement(e_, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ R.createElement(iy.Provider, { value: o }, /*#__PURE__*/ R.createElement(hte, null, /*#__PURE__*/ R.createElement(zh.Provider, { value: null }, c))), /*#__PURE__*/ np.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ R.createElement(ay.Provider, { value: o }, /*#__PURE__*/ R.createElement(hte, null, /*#__PURE__*/ R.createElement(Bh.Provider, { value: null }, c))), /*#__PURE__*/ rp.createPortal(c, n);
}
-function oy() {
- let e = (0, R.useContext)(iy)?.setContain;
- Kp(() => {
+function sy() {
+ let e = (0, R.useContext)(ay)?.setContain;
+ qp(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
function gte(e, t) {
- let { role: n = "dialog" } = e, r = _h();
+ let { role: n = "dialog" } = e, r = vh();
r = e["aria-label"] ? void 0 : r;
- let i = _h();
+ let i = vh();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
let a = (0, R.useRef)(!1);
(0, R.useEffect)(() => {
- if (t.current && !Fp(t.current)) {
- ch(t.current);
+ if (t.current && !Ip(t.current)) {
+ lh(t.current);
let e = setTimeout(() => {
- (Np() === t.current || Np() === document.body) && (a.current = !0, t.current && (t.current.blur(), ch(t.current)), a.current = !1);
+ (Pp() === t.current || Pp() === document.body) && (a.current = !0, t.current && (t.current.blur(), lh(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), oy(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
+ }, [t]), sy(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...Ag(e, { labelable: !0 }),
+ ...jg(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -18860,23 +18860,23 @@ function gte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function sy(e = {}) {
+function cy(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, R.useRef)({
isFocused: !1,
- isFocusVisible: t || Ym()
+ isFocusVisible: t || Xm()
}), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, R.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, R.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = Ym(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = Xm(), o(e), l();
}, [l]);
- nh((e) => {
+ rh((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = Sh({
+ let { focusProps: d } = Ch({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = B_({
+ }), { focusWithinProps: f } = V_({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -18889,27 +18889,27 @@ function sy(e = {}) {
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
function _te(e = {}) {
- let { locale: t } = Sg();
+ let { locale: t } = Cg();
return (0, R.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var cy = !1, ly = 0;
+var ly = !1, uy = 0;
function vte() {
- cy = !0, setTimeout(() => {
- cy = !1;
+ ly = !0, setTimeout(() => {
+ ly = !1;
}, 500);
}
-function uy(e) {
+function dy(e) {
e.pointerType === "touch" && vte();
}
function yte() {
- let e = Sp(null);
- if (e !== void 0) return ly === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", uy), ly++, () => {
- ly--, !(ly > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", uy);
+ let e = Cp(null);
+ if (e !== void 0) return uy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", dy), uy++, () => {
+ uy--, !(uy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", dy);
};
}
-function dy(e) {
+function fy(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, R.useState)(!1), s = (0, R.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
@@ -18917,13 +18917,13 @@ function dy(e) {
target: null
}).current;
(0, R.useEffect)(yte, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Rg(), { hoverProps: u, triggerHoverEnd: d } = (0, R.useMemo)(() => {
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = zg(), { hoverProps: u, triggerHoverEnd: d } = (0, R.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !Mp(e.currentTarget, V(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !Np(e.currentTarget, V(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(Sp(V(e)), "pointerover", (e) => {
- s.isHovered && s.target && !Mp(s.target, V(e)) && a(e, e.pointerType);
+ s.target = l, c(Cp(V(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !Np(s.target, V(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -18938,9 +18938,9 @@ function dy(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- cy && t.pointerType === "mouse" || e(t, t.pointerType);
+ ly && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && Mp(e.currentTarget, V(e)) && a(e, e.pointerType);
+ !i && Np(e.currentTarget, V(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -18967,18 +18967,18 @@ function bte(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, R.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = mg((e) => {
- n && fy(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = mg((e) => {
+ }), o = hg((e) => {
+ n && py(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = hg((e) => {
n && n(e);
});
(0, R.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = Sp(n);
+ let n = t.current, i = Cp(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && fy(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && py(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -18986,19 +18986,19 @@ function bte(e) {
}
}, [t, r]);
}
-function fy(e, t) {
+function py(e, t) {
if (e.button > 0) return !1;
let n = V(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !Mp(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !Np(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var py = {};
-py = {
+var my = {};
+my = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -19012,8 +19012,8 @@ py = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var my = {};
-my = {
+var hy = {};
+hy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -19027,8 +19027,8 @@ my = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var hy = {};
-hy = {
+var gy = {};
+gy = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -19042,8 +19042,8 @@ hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var gy = {};
-gy = {
+var _y = {};
+_y = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -19057,8 +19057,8 @@ gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var _y = {};
-_y = {
+var vy = {};
+vy = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -19072,8 +19072,8 @@ _y = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var vy = {};
-vy = {
+var yy = {};
+yy = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -19087,8 +19087,8 @@ vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var yy = {};
-yy = {
+var by = {};
+by = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -19102,8 +19102,8 @@ yy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var by = {};
-by = {
+var xy = {};
+xy = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -19117,8 +19117,8 @@ by = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var xy = {};
-xy = {
+var Sy = {};
+Sy = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -19132,8 +19132,8 @@ xy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var Sy = {};
-Sy = {
+var Cy = {};
+Cy = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -19147,8 +19147,8 @@ Sy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Cy = {};
-Cy = {
+var wy = {};
+wy = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -19162,8 +19162,8 @@ Cy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var wy = {};
-wy = {
+var Ty = {};
+Ty = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -19177,8 +19177,8 @@ wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Ty = {};
-Ty = {
+var Ey = {};
+Ey = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -19192,8 +19192,8 @@ Ty = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Ey = {};
-Ey = {
+var Dy = {};
+Dy = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -19207,8 +19207,8 @@ Ey = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var Dy = {};
-Dy = {
+var Oy = {};
+Oy = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -19222,8 +19222,8 @@ Dy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Oy = {};
-Oy = {
+var ky = {};
+ky = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -19237,8 +19237,8 @@ Oy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var ky = {};
-ky = {
+var Ay = {};
+Ay = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -19252,8 +19252,8 @@ ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var Ay = {};
-Ay = {
+var jy = {};
+jy = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -19267,8 +19267,8 @@ Ay = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var jy = {};
-jy = {
+var My = {};
+My = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -19282,8 +19282,8 @@ jy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var My = {};
-My = {
+var Ny = {};
+Ny = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -19297,8 +19297,8 @@ My = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var Ny = {};
-Ny = {
+var Py = {};
+Py = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -19312,8 +19312,8 @@ Ny = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var Py = {};
-Py = {
+var Fy = {};
+Fy = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -19327,8 +19327,8 @@ Py = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var Fy = {};
-Fy = {
+var Iy = {};
+Iy = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -19342,8 +19342,8 @@ Fy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var Iy = {};
-Iy = {
+var Ly = {};
+Ly = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -19357,8 +19357,8 @@ Iy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var Ly = {};
-Ly = {
+var Ry = {};
+Ry = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -19372,8 +19372,8 @@ Ly = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var Ry = {};
-Ry = {
+var zy = {};
+zy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -19387,8 +19387,8 @@ Ry = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var zy = {};
-zy = {
+var By = {};
+By = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -19402,8 +19402,8 @@ zy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var By = {};
-By = {
+var Vy = {};
+Vy = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -19417,8 +19417,8 @@ By = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var Vy = {};
-Vy = {
+var Hy = {};
+Hy = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -19432,8 +19432,8 @@ Vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var Hy = {};
-Hy = {
+var Uy = {};
+Uy = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -19447,8 +19447,8 @@ Hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var Uy = {};
-Uy = {
+var Wy = {};
+Wy = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -19462,8 +19462,8 @@ Uy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var Wy = {};
-Wy = {
+var Gy = {};
+Gy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -19477,8 +19477,8 @@ Wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var Gy = {};
-Gy = {
+var Ky = {};
+Ky = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -19492,8 +19492,8 @@ Gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var Ky = {};
-Ky = {
+var qy = {};
+qy = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -19507,42 +19507,42 @@ Ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var qy = {};
-qy = {
- "ar-AE": py,
- "bg-BG": my,
- "cs-CZ": hy,
- "da-DK": gy,
- "de-DE": _y,
- "el-GR": vy,
- "en-US": yy,
- "es-ES": by,
- "et-EE": xy,
- "fi-FI": Sy,
- "fr-FR": Cy,
- "he-IL": wy,
- "hr-HR": Ty,
- "hu-HU": Ey,
- "it-IT": Dy,
- "ja-JP": Oy,
- "ko-KR": ky,
- "lt-LT": Ay,
- "lv-LV": jy,
- "nb-NO": My,
- "nl-NL": Ny,
- "pl-PL": Py,
- "pt-BR": Fy,
- "pt-PT": Iy,
- "ro-RO": Ly,
- "ru-RU": Ry,
- "sk-SK": zy,
- "sl-SI": By,
- "sr-SP": Vy,
- "sv-SE": Hy,
- "tr-TR": Uy,
- "uk-UA": Wy,
- "zh-CN": Gy,
- "zh-TW": Ky
+var Jy = {};
+Jy = {
+ "ar-AE": my,
+ "bg-BG": hy,
+ "cs-CZ": gy,
+ "da-DK": _y,
+ "de-DE": vy,
+ "el-GR": yy,
+ "en-US": by,
+ "es-ES": xy,
+ "et-EE": Sy,
+ "fi-FI": Cy,
+ "fr-FR": wy,
+ "he-IL": Ty,
+ "hr-HR": Ey,
+ "hu-HU": Dy,
+ "it-IT": Oy,
+ "ja-JP": ky,
+ "ko-KR": Ay,
+ "lt-LT": jy,
+ "lv-LV": My,
+ "nb-NO": Ny,
+ "nl-NL": Py,
+ "pl-PL": Fy,
+ "pt-BR": Iy,
+ "pt-PT": Ly,
+ "ro-RO": Ry,
+ "ru-RU": zy,
+ "sk-SK": By,
+ "sl-SI": Vy,
+ "sr-SP": Hy,
+ "sv-SE": Uy,
+ "tr-TR": Wy,
+ "uk-UA": Gy,
+ "zh-CN": Ky,
+ "zh-TW": qy
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
@@ -19550,12 +19550,12 @@ function xte(e) {
return e && e.__esModule ? e.default : e;
}
function Ste(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Og(xte(qy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = kg(xte(Jy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = Jy(i, a.current), o = Jy(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = Yy(i, a.current), o = Yy(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -19575,7 +19575,7 @@ function Ste(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && g_(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && __(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -19586,7 +19586,7 @@ function Ste(e, t) {
n,
r
]);
- __(() => {
+ v_(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -19594,7 +19594,7 @@ function Ste(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function Jy(e, t) {
+function Yy(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -19602,13 +19602,13 @@ function Jy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function Yy(e, t) {
+function Xy(e, t) {
let n = t?.isDisabled, [r, i] = (0, R.useState)(!1);
- return Kp(() => {
+ return qp(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = d_(e.current, { tabbable: !0 });
+ let t = f_(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -19631,8 +19631,8 @@ function Cte(e) {
return e && e.__esModule ? e.default : e;
}
function wte(e) {
- let t = Og(Cte(qy), "@react-aria/grid"), n = Qm(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return w_((0, R.useMemo)(() => {
+ let t = kg(Cte(Jy), "@react-aria/grid"), n = $m(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return T_((0, R.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -19645,11 +19645,11 @@ function wte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Xy(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ey({
+function Zy(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ty({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new nv({
+ }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new rv({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -19666,7 +19666,7 @@ function Xy(e) {
c,
l,
s
- ]), { collectionProps: d } = Wv({
+ ]), { collectionProps: d } = Gv({
...e,
ref: i,
selectionManager: t,
@@ -19676,11 +19676,11 @@ function Xy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Zy(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = pm();
- t = hh(t);
+function Qy(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = mm();
+ t = gh(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Q_(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && $_(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -19691,11 +19691,11 @@ function Zy(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (fg(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (pg(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, R.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? ug(i.current) : s ? s() : Np() !== i.current && i.current && ch(i.current));
+ r === n.focusedKey && n.isFocused && (o ? dg(i.current) : s ? s() : Pp() !== i.current && i.current && lh(i.current));
}, [
i,
r,
@@ -19723,20 +19723,20 @@ function Zy(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || $y(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || eb(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Qy(e.key)) return;
+ if (e.pointerType === "keyboard" && !$y(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || $y(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || eb(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && Qy(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && $y(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
let A = ste(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = H(k, {
@@ -19753,10 +19753,10 @@ function Zy(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = lh(k[e], D[e]));
- let { pressProps: j, isPressed: M } = Ug(k), N = x ? (e) => {
+ ]) D[e] && (k[e] = uh(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = Wg(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: ee } = Rv({
+ } : void 0, { longPressProps: ee } = zv({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -19764,7 +19764,7 @@ function Zy(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- hm.isOpening || e.preventDefault();
+ gm.isOpening || e.preventDefault();
} : void 0, F = H(m, v || b || o && !c ? j : {}, w ? ee : {}, {
onDoubleClick: N,
onDragStartCapture: te,
@@ -19777,7 +19777,7 @@ function Zy(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return Wp(e);
+ return Gp(e);
}, re = F.onPointerDown;
F.onPointerDown = (e) => {
let t = V(e);
@@ -19805,10 +19805,10 @@ function Zy(e) {
hasAction: S
};
}
-function Qy(e) {
+function $y(e) {
return e === "Enter";
}
-function $y(e) {
+function eb(e) {
return e === " ";
}
//#endregion
@@ -19817,10 +19817,10 @@ function Tte(e) {
return e && e.__esModule ? e.default : e;
}
function Ete(e, t) {
- let { key: n } = e, r = t.selectionManager, i = hh(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+ let { key: n } = e, r = t.selectionManager, i = gh(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Og(Tte(qy), "@react-aria/grid").format("select"),
+ "aria-label": kg(Tte(Jy), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -19829,21 +19829,21 @@ function Ete(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
function Dte(e, t, n) {
- let r = Ag(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+ let r = jg(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = Xy({
+ let { listProps: s } = Zy({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = B_({
+ }), { focusWithinProps: c } = V_({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = hh(e.id);
- Z_.set(t, {
+ }), l = gh(e.id);
+ Q_.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -19853,7 +19853,7 @@ function Dte(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = R_({
+ let { labelProps: u, fieldProps: d } = z_({
...e,
id: l,
labelElementType: "span"
@@ -19870,7 +19870,7 @@ function Dte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
function Ote(e) {
- let { heading: t, "aria-label": n } = e, r = hh();
+ let { heading: t, "aria-label": n } = e, r = gh();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -19890,7 +19890,7 @@ function Ote(e) {
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
function kte(e, t, n) {
- let { key: r } = e, i = Z_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = _h(), f = _h(), p = {
+ let { key: r } = e, i = Q_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = vh(), f = vh(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -19900,9 +19900,9 @@ function kte(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = Qv(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = $v(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = ate(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Zy({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = ate(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Qy({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -19911,18 +19911,18 @@ function kte(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? lh(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? uh(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = dy({
+ }), { hoverProps: S } = fy({
isDisabled: a || !c,
onHoverStart() {
- Ym() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ Xm() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Ag(m?.props);
+ }), C = jg(m?.props);
delete C.id;
- let w = ym(m?.props);
+ let w = bm(m?.props);
return {
optionProps: {
...p,
@@ -19932,7 +19932,7 @@ function kte(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && Ym(),
+ isFocusVisible: y && t.selectionManager.isFocused && Xm(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -19942,13 +19942,13 @@ function kte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var eb = /* @__PURE__ */ new WeakMap();
+var tb = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
function Ate(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Ag(e, { labelable: !0 }), { listProps: c } = Xy({
+ let s = jg(e, { labelable: !0 }), { listProps: c } = Zy({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -19957,7 +19957,7 @@ function Ate(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return eb.set(t, {
+ return tb.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -19975,14 +19975,14 @@ function Ate(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
function jte(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = eb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = pm(), M = () => {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = tb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = mm(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, N = "menuitem";
w || (C.selectionMode === "single" ? N = "menuitemradio" : C.selectionMode === "multiple" && (N = "menuitemcheckbox"));
- let ee = _h(), te = _h(), P = _h(), F = {
+ let ee = vh(), te = vh(), P = vh(), F = {
id: r,
"aria-disabled": E || void 0,
role: N,
@@ -19999,17 +19999,17 @@ function jte(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (F["aria-checked"] = D), s) {
let e = Number(k?.index);
- F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = Qv(t.collection);
+ F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = $v(t.collection);
}
let ne = (0, R.useRef)(!1), re = (e) => {
f?.(e), ne.current = e;
}, ie = (0, R.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (ne.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), M(), bm(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), xm(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = Zy({
+ }, { itemProps: se, isFocused: ce } = Qy({
id: r,
selectionManager: C,
key: i,
@@ -20018,27 +20018,27 @@ function jte(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = Ug({
+ }), { pressProps: le, isPressed: ue } = Wg({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: re,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = dy({
+ }), { hoverProps: de } = fy({
isDisabled: E,
onHoverStart(e) {
- !Ym() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !Xm() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = Ih({
+ }), { keyboardProps: fe } = Lh({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, V(e).click(), Zm("keyboard");
+ }, V(e).click(), Qm("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -20047,10 +20047,10 @@ function jte(e, t, n) {
};
let t = V(e);
if (t.tagName !== "A") {
- t.click(), Zm("keyboard");
+ t.click(), Qm("keyboard");
return;
}
- return Zm("keyboard"), {
+ return Qm("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -20058,13 +20058,13 @@ function jte(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: I } = Vh({
+ }), { focusableProps: I } = Hh({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), pe = Ag(k?.props);
+ }, n), pe = jg(k?.props);
delete pe.id;
- let me = ym(k?.props);
+ let me = bm(k?.props);
return {
menuItemProps: {
...F,
@@ -20079,7 +20079,7 @@ function jte(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && Ym() && !T,
+ isFocusVisible: ce && C.isFocused && Xm() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
@@ -20088,7 +20088,7 @@ function jte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
function Mte(e) {
- let { heading: t, "aria-label": n } = e, r = hh();
+ let { heading: t, "aria-label": n } = e, r = gh();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -20107,8 +20107,8 @@ function Mte(e) {
function Nte() {
return window.ResizeObserver !== void 0;
}
-function tb(e) {
- let { ref: t, box: n, onResize: r } = e, i = mg(r);
+function nb(e) {
+ let { ref: t, box: n, onResize: r } = e, i = hg(r);
(0, R.useEffect)(() => {
let e = t?.current;
if (e) {
@@ -20128,189 +20128,189 @@ function tb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var nb = {};
-nb = { dismiss: "تجاهل" };
+var rb = {};
+rb = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var rb = {};
-rb = { dismiss: "Отхвърляне" };
+var ib = {};
+ib = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var ib = {};
-ib = { dismiss: "Odstranit" };
+var ab = {};
+ab = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var ab = {};
-ab = { dismiss: "Luk" };
+var ob = {};
+ob = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var ob = {};
-ob = { dismiss: "Schließen" };
+var sb = {};
+sb = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var sb = {};
-sb = { dismiss: "Απόρριψη" };
+var cb = {};
+cb = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var cb = {};
-cb = { dismiss: "Dismiss" };
+var lb = {};
+lb = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var lb = {};
-lb = { dismiss: "Descartar" };
+var ub = {};
+ub = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var ub = {};
-ub = { dismiss: "Lõpeta" };
+var db = {};
+db = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var db = {};
-db = { dismiss: "Hylkää" };
+var fb = {};
+fb = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var fb = {};
-fb = { dismiss: "Rejeter" };
+var pb = {};
+pb = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var pb = {};
-pb = { dismiss: "התעלם" };
+var mb = {};
+mb = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var mb = {};
-mb = { dismiss: "Odbaci" };
+var hb = {};
+hb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var hb = {};
-hb = { dismiss: "Elutasítás" };
+var gb = {};
+gb = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var gb = {};
-gb = { dismiss: "Ignora" };
+var _b = {};
+_b = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var _b = {};
-_b = { dismiss: "閉じる" };
+var vb = {};
+vb = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var vb = {};
-vb = { dismiss: "무시" };
+var yb = {};
+yb = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var yb = {};
-yb = { dismiss: "Atmesti" };
+var bb = {};
+bb = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var bb = {};
-bb = { dismiss: "Nerādīt" };
+var xb = {};
+xb = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var xb = {};
-xb = { dismiss: "Lukk" };
+var Sb = {};
+Sb = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Sb = {};
-Sb = { dismiss: "Negeren" };
+var Cb = {};
+Cb = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Cb = {};
-Cb = { dismiss: "Zignoruj" };
+var wb = {};
+wb = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var wb = {};
-wb = { dismiss: "Descartar" };
+var Tb = {};
+Tb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Tb = {};
-Tb = { dismiss: "Dispensar" };
+var Eb = {};
+Eb = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Eb = {};
-Eb = { dismiss: "Revocare" };
+var Db = {};
+Db = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Db = {};
-Db = { dismiss: "Пропустить" };
+var Ob = {};
+Ob = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var Ob = {};
-Ob = { dismiss: "Zrušiť" };
+var kb = {};
+kb = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var kb = {};
-kb = { dismiss: "Opusti" };
+var Ab = {};
+Ab = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var Ab = {};
-Ab = { dismiss: "Odbaci" };
+var jb = {};
+jb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var jb = {};
-jb = { dismiss: "Avvisa" };
+var Mb = {};
+Mb = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var Mb = {};
-Mb = { dismiss: "Kapat" };
+var Nb = {};
+Nb = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Nb = {};
-Nb = { dismiss: "Скасувати" };
+var Pb = {};
+Pb = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var Pb = {};
-Pb = { dismiss: "取消" };
+var Fb = {};
+Fb = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Fb = {};
-Fb = { dismiss: "關閉" };
+var Ib = {};
+Ib = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Ib = {};
-Ib = {
- "ar-AE": nb,
- "bg-BG": rb,
- "cs-CZ": ib,
- "da-DK": ab,
- "de-DE": ob,
- "el-GR": sb,
- "en-US": cb,
- "es-ES": lb,
- "et-EE": ub,
- "fi-FI": db,
- "fr-FR": fb,
- "he-IL": pb,
- "hr-HR": mb,
- "hu-HU": hb,
- "it-IT": gb,
- "ja-JP": _b,
- "ko-KR": vb,
- "lt-LT": yb,
- "lv-LV": bb,
- "nb-NO": xb,
- "nl-NL": Sb,
- "pl-PL": Cb,
- "pt-BR": wb,
- "pt-PT": Tb,
- "ro-RO": Eb,
- "ru-RU": Db,
- "sk-SK": Ob,
- "sl-SI": kb,
- "sr-SP": Ab,
- "sv-SE": jb,
- "tr-TR": Mb,
- "uk-UA": Nb,
- "zh-CN": Pb,
- "zh-TW": Fb
+var Lb = {};
+Lb = {
+ "ar-AE": rb,
+ "bg-BG": ib,
+ "cs-CZ": ab,
+ "da-DK": ob,
+ "de-DE": sb,
+ "el-GR": cb,
+ "en-US": lb,
+ "es-ES": ub,
+ "et-EE": db,
+ "fi-FI": fb,
+ "fr-FR": pb,
+ "he-IL": mb,
+ "hr-HR": hb,
+ "hu-HU": gb,
+ "it-IT": _b,
+ "ja-JP": vb,
+ "ko-KR": yb,
+ "lt-LT": bb,
+ "lv-LV": xb,
+ "nb-NO": Sb,
+ "nl-NL": Cb,
+ "pl-PL": wb,
+ "pt-BR": Tb,
+ "pt-PT": Eb,
+ "ro-RO": Db,
+ "ru-RU": Ob,
+ "sk-SK": kb,
+ "sl-SI": Ab,
+ "sr-SP": jb,
+ "sv-SE": Mb,
+ "tr-TR": Nb,
+ "uk-UA": Pb,
+ "zh-CN": Fb,
+ "zh-TW": Ib
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
function Pte(e) {
return e && e.__esModule ? e.default : e;
}
-function Lb(e) {
- let { onDismiss: t, ...n } = e, r = gg(n, Og(Pte(Ib), "@react-aria/overlays").format("dismiss")), i = () => {
+function Rb(e) {
+ let { onDismiss: t, ...n } = e, r = _g(n, kg(Pte(Lb), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ R.createElement(K_, null, /*#__PURE__*/ R.createElement("button", {
+ return /*#__PURE__*/ R.createElement(q_, null, /*#__PURE__*/ R.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -20322,23 +20322,23 @@ function Lb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Rb = [];
-function zb(e, t) {
+var zb = [];
+function Bb(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, R.useRef)(void 0);
(0, R.useEffect)(() => {
- if (i && !Rb.includes(t)) return Rb.push(t), () => {
- let e = Rb.indexOf(t);
- e >= 0 && Rb.splice(e, 1);
+ if (i && !zb.includes(t)) return zb.push(t), () => {
+ let e = zb.indexOf(t);
+ e >= 0 && zb.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Rb[Rb.length - 1] === t && n && n();
+ zb[zb.length - 1] === t && n && n();
}, u = (e) => {
- let n = Rb[Rb.length - 1];
+ let n = zb[zb.length - 1];
c.current = n, (!s || s(V(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(V(e))) && (Rb[Rb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Ih({ shortcuts: { Escape: () => {
+ (!s || s(V(e))) && (zb[zb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Lh({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
@@ -20350,7 +20350,7 @@ function zb(e, t) {
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = B_({
+ let { focusWithinProps: p } = V_({
isDisabled: !r,
onBlurWithin: (e) => {
!e.relatedTarget || Lee(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
@@ -20366,26 +20366,26 @@ function zb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Bb = typeof document < "u" && window.visualViewport, Vb = 0, Hb;
-function Ub(e = {}) {
+var Vb = typeof document < "u" && window.visualViewport, Hb = 0, Ub;
+function Wb(e = {}) {
let { isDisabled: t } = e;
- Kp(() => {
- if (!t) return Vb++, Vb === 1 && (Hb = im() && om() ? Ite() : Fte()), () => {
- Vb--, Vb === 0 && Hb();
+ qp(() => {
+ if (!t) return Hb++, Hb === 1 && (Ub = am() && sm() ? Ite() : Fte()), () => {
+ Hb--, Hb === 0 && Ub();
};
}, [t]);
}
function Fte() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return lh(e > 0 && ("scrollbarGutter" in document.documentElement.style ? kp(document.documentElement, "scrollbar-gutter", "stable") : kp(document.documentElement, "padding-right", `${e}px`)), kp(document.documentElement, "overflow", "hidden"));
+ return uh(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Ap(document.documentElement, "scrollbar-gutter", "stable") : Ap(document.documentElement, "padding-right", `${e}px`)), Ap(document.documentElement, "overflow", "hidden"));
}
function Ite() {
- let e = kp(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let e = Ap(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = V(e);
- t = v_(r) ? r : y_(r, !0), n = !1;
+ t = y_(r) ? r : b_(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = Ig();
+ }, i = document.createElement("style"), a = Lg();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
if (!(e.touches.length === 2 || n)) {
@@ -20397,26 +20397,26 @@ function Ite() {
}
}, s = (e) => {
let t = V(e), n = e.relatedTarget;
- n && pg(n) ? (n.focus({ preventScroll: !0 }), Wb(n, pg(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && mg(n) ? (n.focus({ preventScroll: !0 }), Gb(n, mg(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function(e) {
- let t = Np(), n = t != null && pg(t);
+ let t = Pp(), n = t != null && mg(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Wb(this, n);
+ }), (!e || !e.preventScroll) && Gb(this, n);
}
});
- let l = lh(Op(document, "touchstart", r, {
+ let l = uh(kp(document, "touchstart", r, {
passive: !1,
capture: !0
- }), Op(document, "touchmove", o, {
+ }), kp(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Op(document, "blur", s, !0));
+ }), kp(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -20425,18 +20425,18 @@ function Ite() {
});
};
}
-function Wb(e, t) {
- t || !Bb ? Gb(e) : Bb.addEventListener("resize", () => Gb(e), { once: !0 });
+function Gb(e, t) {
+ t || !Vb ? Kb(e) : Vb.addEventListener("resize", () => Kb(e), { once: !0 });
}
-function Gb(e) {
+function Kb(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = y_(n);
+ let e = b_(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Bb && (n = Math.min(n, Bb.offsetTop + Bb.height));
+ Vb && (n = Math.min(n, Vb.offsetTop + Vb.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -20450,13 +20450,13 @@ function Gb(e) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
function Lte(e, t, n) {
- let { overlayProps: r, underlayProps: i } = zb({
+ let { overlayProps: r, underlayProps: i } = Bb({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Ub({ isDisabled: !t.isOpen }), oy(), (0, R.useEffect)(() => {
- if (t.isOpen && n.current) return X_([n.current], { shouldUseInert: !0 });
+ return Wb({ isDisabled: !t.isOpen }), sy(), (0, R.useEffect)(() => {
+ if (t.isOpen && n.current) return Z_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: H(r),
underlayProps: i
@@ -20464,12 +20464,12 @@ function Lte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Kb = {
+var qb = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, qb = {
+}, Jb = {
top: "bottom",
bottom: "top",
left: "right",
@@ -20477,20 +20477,20 @@ var Kb = {
}, Rte = {
top: "left",
left: "top"
-}, Jb = {
+}, Yb = {
top: "height",
left: "width"
-}, Yb = {
+}, Xb = {
width: "totalWidth",
height: "totalHeight"
-}, Xb = {}, zte = () => typeof document < "u" ? window.visualViewport : null;
-function Zb(e, t) {
+}, Zb = {}, zte = () => typeof document < "u" ? window.visualViewport : null;
+function Qb(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = rx(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return om() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = ax(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return sm() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -20508,8 +20508,8 @@ function Bte(e) {
height: e.scrollHeight
};
}
-function Qb(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Jb[e]], l = o[e] + r.scroll[Kb[e]] + a, u = o[e] + r.scroll[Kb[e]] + c - a, d = t - s + r.scroll[Kb[e]] + o[e] - r[Kb[e]], f = t - s + n + r.scroll[Kb[e]] + o[e] - r[Kb[e]];
+function $b(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Yb[e]], l = o[e] + r.scroll[qb[e]] + a, u = o[e] + r.scroll[qb[e]] + c - a, d = t - s + r.scroll[qb[e]] + o[e] - r[qb[e]], f = t - s + n + r.scroll[qb[e]] + o[e] - r[qb[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
function Vte(e) {
@@ -20521,55 +20521,55 @@ function Vte(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function $b(e) {
- if (Xb[e]) return Xb[e];
- let [t, n] = e.split(" "), r = Kb[t] || "right", i = Rte[r];
- Kb[n] || (n = "center");
- let a = Jb[r], o = Jb[i];
- return Xb[e] = {
+function ex(e) {
+ if (Zb[e]) return Zb[e];
+ let [t, n] = e.split(" "), r = qb[t] || "right", i = Rte[r];
+ qb[n] || (n = "center");
+ let a = Yb[r], o = Yb[i];
+ return Zb[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Xb[e];
+ }, Zb[e];
}
-function ex(e, t, n, r, i, a, o, s, c, l, u) {
+function tx(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = U_(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Yb[h]];
- _[qb[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = W_(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Xb[h]];
+ _[Jb[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Hte(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Yb.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function nx(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Xb.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function tx(e, t, n, r, i, a, o, s) {
+function rx(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[qb[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[qb[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Jb[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Jb[l]] - i);
}
-function Ute(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = $b(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = ex(t, s, n, v, u, d, l, f, m, h, c), T = u, E = tx(s, l, t, i, a + u, v, c, g);
+function Hte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = ex(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = tx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = rx(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = $b(`${qb[S]} ${C}`), r = ex(t, s, n, e, u, d, l, f, m, h, c);
- tx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = ex(`${Jb[S]} ${C}`), r = tx(t, s, n, e, u, d, l, f, m, h, c);
+ rx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = Qb(b, w[b], n[x], s, c, a, l);
+ let O = $b(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Hte(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = ex(t, s, n, v, T, d, l, f, m, h, c), O = Qb(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Kb[b]], M = j + .5 * t[x], N = m / 2 + h, ee = Kb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
- A[b] = U_(U_(M, t[b] + m / 2 - (w[b] + i[Kb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Kb[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = nx(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = tx(t, s, n, v, T, d, l, f, m, h, c), O = $b(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[qb[b]], M = j + .5 * t[x], N = m / 2 + h, ee = qb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
+ A[b] = W_(W_(M, t[b] + m / 2 - (w[b] + i[qb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[qb[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, F = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -20583,17 +20583,17 @@ function Ute(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: F
};
}
-function Wte(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = zte(), h = r instanceof HTMLElement ? Gte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? rx(n, !1, p) : ix(n, h, !1, p);
+function Ute(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = zte(), h = r instanceof HTMLElement ? Wte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ax(n, !1, p) : ox(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = rx(r, !0), x = Vte(r);
+ let b = ax(r, !0), x = Vte(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Bte(i), C = Zb(s, m), w = Zb(h, m), T;
+ let S = Bte(i), C = Qb(s, m), w = Qb(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = nx(h, !1);
+ let e = ix(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -20605,11 +20605,11 @@ function Wte(e) {
left: 0,
width: 0,
height: 0
- } : ix(s, h, !1);
- let E = Mp(s, h);
- return Ute(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : ox(s, h, !1);
+ let E = Np(s, h);
+ return Hte(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function nx(e, t) {
+function ix(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -20618,8 +20618,8 @@ function nx(e, t) {
height: a
};
}
-function rx(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || nx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function ax(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || ix(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -20627,30 +20627,30 @@ function rx(e, t, n) {
height: o
};
}
-function ix(e, t, n, r) {
+function ox(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || nx(e, n);
+ if (i.position === "fixed") a = r || ix(e, n);
else {
- a = rx(e, n, r);
- let i = rx(t, n), o = window.getComputedStyle(t);
+ a = ax(e, n, r);
+ let i = ax(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function Gte(e) {
+function Wte(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !ax(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !ax(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !sx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !sx(t);) t = t.parentElement;
return t || document.documentElement;
}
-function ax(e) {
+function sx(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var ox = typeof document < "u" ? window.visualViewport : null;
-function Kte(e) {
- let { direction: t } = Sg(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, R.useState)(null), x = [
+var cx = typeof document < "u" ? window.visualViewport : null;
+function Gte(e) {
+ let { direction: t } = Cg(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, R.useState)(null), x = [
p,
s,
i.current,
@@ -20667,15 +20667,15 @@ function Kte(e) {
g,
_,
n
- ], S = (0, R.useRef)(ox?.scale);
+ ], S = (0, R.useRef)(cx?.scale);
(0, R.useEffect)(() => {
- m && (S.current = ox?.scale);
+ m && (S.current = cx?.scale);
}, [m]);
let C = (0, R.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || ox?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || cx?.scale !== S.current) return;
let e = null;
- if (o.current && Fp(o.current)) {
- let t = Np()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && Ip(o.current)) {
+ let t = Pp()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -20683,8 +20683,8 @@ function Kte(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = Wte({
- placement: Jte(s, t),
+ let y = Ute({
+ placement: qte(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -20694,28 +20694,28 @@ function Kte(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? nx(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? ix(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = Np();
+ let x = Pp();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- Kp(C, x), qte(C), tb({
+ qp(C, x), Kte(C), nb({
ref: i,
onResize: C
- }), tb({
+ }), nb({
ref: r,
onResize: C
});
let w = (0, R.useRef)(!1);
- Kp(() => {
+ qp(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -20723,10 +20723,10 @@ function Kte(e) {
}, n = () => {
w.current && t();
};
- ox?.addEventListener("resize", t), ox?.addEventListener("scroll", n);
- let r = Op(Pp(window), "scroll", n);
+ cx?.addEventListener("resize", t), cx?.addEventListener("scroll", n);
+ let r = kp(Fp(window), "scroll", n);
return () => {
- ox?.removeEventListener("resize", t), ox?.removeEventListener("scroll", n), r();
+ cx?.removeEventListener("resize", t), cx?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, R.useCallback)(() => {
@@ -20758,25 +20758,25 @@ function Kte(e) {
updatePosition: C
};
}
-function qte(e) {
- Kp(() => (window.addEventListener("resize", e, !1), () => {
+function Kte(e) {
+ qp(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Jte(e, t) {
+function qte(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function Yte(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = zb({
+function Jte(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Bb({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Kte({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Gte({
...c,
targetRef: n,
overlayRef: r,
@@ -20784,15 +20784,15 @@ function Yte(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Ub({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
- if (t.isOpen && r.current) return a ? rte(i?.current ?? r.current) : X_([i?.current ?? r.current], { shouldUseInert: !0 });
+ Wb({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? rte(i?.current ?? r.current) : Z_([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = B_(e);
+ let { focusWithinProps: g } = V_(e);
return {
popoverProps: H(u, f, g),
arrowProps: p,
@@ -20803,13 +20803,13 @@ function Yte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var sx = /* @__PURE__ */ new WeakMap();
+var lx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Xte(e, t, n) {
+function Yte(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = Ug({
+ }, { pressProps: g, isPressed: _ } = Wg({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -20817,7 +20817,7 @@ function Xte(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = Ug({
+ }), { pressProps: v, isPressed: y } = Wg({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -20827,11 +20827,11 @@ function Xte(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Vh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = Ag(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = Hh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = jg(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = sx.get(t);
- T_(n, t.defaultSelectedValue, t.setSelectedValue), E_({ validationBehavior: O }, t, n);
- let k = D_();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = lx.get(t);
+ E_(n, t.defaultSelectedValue, t.setSelectedValue), D_({ validationBehavior: O }, t, n);
+ let k = O_();
return {
labelProps: H(v, (0, R.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -20863,13 +20863,13 @@ function Xte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Zte(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Sg(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = z_({
+function Xte(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Cg(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = B_({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Ag(e, { labelable: !0 }), { focusWithinProps: v } = B_({
+ }), _ = jg(e, { labelable: !0 }), { focusWithinProps: v } = V_({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -20877,13 +20877,13 @@ function Zte(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = d_(n.currentTarget, {
+ let r = f_(n.currentTarget, {
from: V(n),
- accept: (e) => e instanceof Cp(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof wp(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = Ih({
+ let { keyboardProps: b } = Lh({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -20891,8 +20891,8 @@ function Zte(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = hh(n);
- return sx.set(t, {
+ }), x = gh(n);
+ return lx.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -20921,21 +20921,21 @@ function Zte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var cx = /* @__PURE__ */ new WeakMap();
-function Qte(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ey({
+var ux = /* @__PURE__ */ new WeakMap();
+function Zte(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ty({
usage: "search",
sensitivity: "base"
- }), u = (0, R.useMemo)(() => r || new nv(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, R.useMemo)(() => r || new rv(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Bv({
+ ]), { menuTriggerProps: d, menuProps: f } = Vv({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Ih({
+ }, t, n), { keyboardProps: p } = Lh({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -20951,21 +20951,21 @@ function Qte(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Hv({
+ }), { typeSelectProps: m } = Uv({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = z_({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = B_({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Ag(e, { labelable: !0 }), C = H(m, d, y), w = hh();
- return cx.set(t, {
+ let S = jg(e, { labelable: !0 }), C = H(m, d, y), w = gh();
+ return ux.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -20975,13 +20975,13 @@ function Qte(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), Zm("keyboard"));
+ e.isDisabled || (n.current?.focus(), Qm("keyboard"));
}
},
triggerProps: H(S, {
...C,
isDisabled: i,
- onKeyDown: lh(C.onKeyDown, p.onKeyDown),
+ onKeyDown: uh(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -21005,7 +21005,7 @@ function Qte(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- Mp(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ Np(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -21026,13 +21026,13 @@ function Qte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function $te(e, t, n) {
- let r = cx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = G_({ style: {
+function Qte(e, t, n) {
+ let r = ux.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = K_({ style: {
position: "fixed",
top: 0,
left: 0
} });
- T_(e.selectRef, t.defaultValue, t.setValue), E_({
+ E_(e.selectRef, t.defaultValue, t.setValue), D_({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -21062,8 +21062,8 @@ function $te(e, t, n) {
}
};
}
-function ene(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, R.useRef)(null), c = (0, R.useRef)(null), { containerProps: l, selectProps: u } = $te({
+function $te(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, R.useRef)(null), c = (0, R.useRef)(null), { containerProps: l, selectProps: u } = Qte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -21087,7 +21087,7 @@ function ene(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = cx.get(t) || {};
+ let { validationBehavior: e } = ux.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -21118,8 +21118,8 @@ function ene(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function tne(e) {
- let t = Ag(e, { labelable: !0 }), n;
+function dx(e) {
+ let t = jg(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -21128,8 +21128,8 @@ function tne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function nne(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = I_(e, t, n);
+function ene(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = L_(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -21143,10 +21143,10 @@ function nne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var lx = class {
+var fx = 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 rne(e.layout) : new tv(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new tne(e.layout) : new nv(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -21182,7 +21182,7 @@ var lx = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of Gv(n, this.collection)) {
+ for (let e of Kv(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -21216,13 +21216,13 @@ var lx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Gv(t, this.collection);
- return (this.direction === "rtl" ? Jv(e)?.key : Kv(e)?.key) ?? null;
+ let e = Kv(t, this.collection);
+ return (this.direction === "rtl" ? Yv(e)?.key : qv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = Gv(n, this.collection), i = (this.direction === "rtl" ? qv(r, t.index - 1) : qv(r, t.index + 1)) ?? null;
+ let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index - 1) : Jv(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -21231,13 +21231,13 @@ var lx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Gv(t, this.collection);
- return (this.direction === "rtl" ? Kv(e)?.key : Jv(e)?.key) ?? null;
+ let e = Kv(t, this.collection);
+ return (this.direction === "rtl" ? qv(e)?.key : Yv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = Gv(n, this.collection), i = (this.direction === "rtl" ? qv(r, t.index + 1) : qv(r, t.index - 1)) ?? null;
+ let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index + 1) : Jv(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -21248,13 +21248,13 @@ var lx = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? Kv(Gv(e, this.collection))?.key ?? null : null;
+ return e ? qv(Kv(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = Kv(Gv(e, this.collection))?.key ?? null;
+ n = qv(Kv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -21264,13 +21264,13 @@ var lx = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? Jv(Gv(e, this.collection))?.key ?? null : null;
+ return e ? Yv(Kv(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = Jv(Gv(e, this.collection))?.key ?? null;
+ n = Yv(Kv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -21306,13 +21306,13 @@ var lx = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? Kv(Gv(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? qv(Kv(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, rne = class {
+}, tne = class {
constructor(e) {
this.layout = e;
}
@@ -21325,16 +21325,16 @@ var lx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, ux = /* @__PURE__ */ new WeakMap();
+}, px = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function ine(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 = ey({
+ let h = ty({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Sg(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new lx({
+ }), { direction: g } = Cg(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new fx({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -21351,7 +21351,7 @@ function ine(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = Wv({
+ ]), { collectionProps: y } = Gv({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -21359,8 +21359,8 @@ function ine(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = hh(e.id);
- ux.set(t, {
+ }), b = gh(e.id);
+ px.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -21372,16 +21372,16 @@ function ine(e, t, n) {
let x = wte({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Ag(e, { labelable: !0 }), C = (0, R.useCallback)((e) => {
+ }), S = jg(e, { labelable: !0 }), C = (0, R.useCallback)((e) => {
if (m.isFocused) {
- Mp(e.currentTarget, V(e)) || m.setFocused(!1);
+ Np(e.currentTarget, V(e)) || m.setFocused(!1);
return;
}
- Mp(e.currentTarget, V(e)) && m.setFocused(!0);
+ Np(e.currentTarget, V(e)) && m.setFocused(!0);
}, [m]), w = (0, R.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = Yy(n, { isDisabled: t.collection.size !== 0 }), E = H(S, {
+ }), [C, y.onBlur]), T = Xy(n, { isDisabled: t.collection.size !== 0 }), E = H(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
@@ -21390,27 +21390,27 @@ function ine(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var dx = /* @__PURE__ */ new WeakMap();
-function fx(e) {
+var mx = /* @__PURE__ */ new WeakMap();
+function hx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function ane(e, t) {
- let n = dx.get(e);
+function rne(e, t) {
+ let n = mx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${fx(t)}`;
+ return `${n}-${hx(t)}`;
}
-function px(e, t, n) {
- let r = dx.get(e);
+function gx(e, t, n) {
+ let r = mx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${fx(t)}-${fx(n)}`;
+ return `${r}-${hx(t)}-${hx(n)}`;
}
-function mx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => px(e, t, n)).join(" ");
+function _x(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => gx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var hx = {};
-hx = {
+var vx = {};
+vx = {
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: "طي",
@@ -21425,8 +21425,8 @@ hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var gx = {};
-gx = {
+var yx = {};
+yx = {
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: "Свиване",
@@ -21441,8 +21441,8 @@ gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var _x = {};
-_x = {
+var bx = {};
+bx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -21457,8 +21457,8 @@ _x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var vx = {};
-vx = {
+var xx = {};
+xx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -21473,8 +21473,8 @@ vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var yx = {};
-yx = {
+var Sx = {};
+Sx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -21489,8 +21489,8 @@ yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var bx = {};
-bx = {
+var Cx = {};
+Cx = {
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: "Σύμπτυξη",
@@ -21505,8 +21505,8 @@ bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var xx = {};
-xx = {
+var wx = {};
+wx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -21521,8 +21521,8 @@ xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Sx = {};
-Sx = {
+var Tx = {};
+Tx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -21537,8 +21537,8 @@ Sx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Cx = {};
-Cx = {
+var Ex = {};
+Ex = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -21553,8 +21553,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var wx = {};
-wx = {
+var Dx = {};
+Dx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -21569,8 +21569,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Tx = {};
-Tx = {
+var Ox = {};
+Ox = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -21585,8 +21585,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Ex = {};
-Ex = {
+var kx = {};
+kx = {
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: "כווץ",
@@ -21601,8 +21601,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Dx = {};
-Dx = {
+var Ax = {};
+Ax = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -21617,8 +21617,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Ox = {};
-Ox = {
+var jx = {};
+jx = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -21633,8 +21633,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var kx = {};
-kx = {
+var Mx = {};
+Mx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -21649,8 +21649,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Ax = {};
-Ax = {
+var Nx = {};
+Nx = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -21665,8 +21665,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var jx = {};
-jx = {
+var Px = {};
+Px = {
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: "접기",
@@ -21681,8 +21681,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Mx = {};
-Mx = {
+var Fx = {};
+Fx = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -21697,8 +21697,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Nx = {};
-Nx = {
+var Ix = {};
+Ix = {
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",
@@ -21713,8 +21713,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Px = {};
-Px = {
+var Lx = {};
+Lx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -21729,8 +21729,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Fx = {};
-Fx = {
+var Rx = {};
+Rx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -21745,8 +21745,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Ix = {};
-Ix = {
+var zx = {};
+zx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -21761,8 +21761,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Lx = {};
-Lx = {
+var Bx = {};
+Bx = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -21777,8 +21777,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Rx = {};
-Rx = {
+var Vx = {};
+Vx = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -21793,8 +21793,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var zx = {};
-zx = {
+var Hx = {};
+Hx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -21809,8 +21809,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Bx = {};
-Bx = {
+var Ux = {};
+Ux = {
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: "Свернуть",
@@ -21825,8 +21825,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Vx = {};
-Vx = {
+var Wx = {};
+Wx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -21841,8 +21841,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Hx = {};
-Hx = {
+var Gx = {};
+Gx = {
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",
@@ -21857,8 +21857,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Ux = {};
-Ux = {
+var Kx = {};
+Kx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -21873,8 +21873,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Wx = {};
-Wx = {
+var qx = {};
+qx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -21889,8 +21889,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Gx = {};
-Gx = {
+var Jx = {};
+Jx = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -21905,8 +21905,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Kx = {};
-Kx = {
+var Yx = {};
+Yx = {
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: "Згорнути",
@@ -21921,8 +21921,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var qx = {};
-qx = {
+var Xx = {};
+Xx = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -21937,8 +21937,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var Jx = {};
-Jx = {
+var Zx = {};
+Zx = {
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: "收合",
@@ -21953,46 +21953,46 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var Yx = {};
-Yx = {
- "ar-AE": hx,
- "bg-BG": gx,
- "cs-CZ": _x,
- "da-DK": vx,
- "de-DE": yx,
- "el-GR": bx,
- "en-US": xx,
- "es-ES": Sx,
- "et-EE": Cx,
- "fi-FI": wx,
- "fr-FR": Tx,
- "he-IL": Ex,
- "hr-HR": Dx,
- "hu-HU": Ox,
- "it-IT": kx,
- "ja-JP": Ax,
- "ko-KR": jx,
- "lt-LT": Mx,
- "lv-LV": Nx,
- "nb-NO": Px,
- "nl-NL": Fx,
- "pl-PL": Ix,
- "pt-BR": Lx,
- "pt-PT": Rx,
- "ro-RO": zx,
- "ru-RU": Bx,
- "sk-SK": Vx,
- "sl-SI": Hx,
- "sr-SP": Ux,
- "sv-SE": Wx,
- "tr-TR": Gx,
- "uk-UA": Kx,
- "zh-CN": qx,
- "zh-TW": Jx
+var Qx = {};
+Qx = {
+ "ar-AE": vx,
+ "bg-BG": yx,
+ "cs-CZ": bx,
+ "da-DK": xx,
+ "de-DE": Sx,
+ "el-GR": Cx,
+ "en-US": wx,
+ "es-ES": Tx,
+ "et-EE": Ex,
+ "fi-FI": Dx,
+ "fr-FR": Ox,
+ "he-IL": kx,
+ "hr-HR": Ax,
+ "hu-HU": jx,
+ "it-IT": Mx,
+ "ja-JP": Nx,
+ "ko-KR": Px,
+ "lt-LT": Fx,
+ "lv-LV": Ix,
+ "nb-NO": Lx,
+ "nl-NL": Rx,
+ "pl-PL": zx,
+ "pt-BR": Bx,
+ "pt-PT": Vx,
+ "ro-RO": Hx,
+ "ru-RU": Ux,
+ "sk-SK": Wx,
+ "sl-SI": Gx,
+ "sr-SP": Kx,
+ "sv-SE": qx,
+ "tr-TR": Jx,
+ "uk-UA": Yx,
+ "zh-CN": Xx,
+ "zh-TW": Zx
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var one = class extends lx {
+var ine = class extends fx {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -22000,7 +22000,7 @@ var one = class extends lx {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = Kv(Gv(n, this.collection));
+ let e = qv(Kv(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -22021,13 +22021,13 @@ var one = class extends lx {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of Gv(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of Kv(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...Gv(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...Kv(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -22056,7 +22056,7 @@ var one = class extends lx {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of Gv(o, this.collection)) {
+ for (let r of Kv(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -22070,14 +22070,14 @@ var one = class extends lx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function sne(e) {
+function ane(e) {
return e && e.__esModule ? e.default : e;
}
-function cne(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ey({
+function one(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ty({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Sg(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new one({
+ }), { direction: c } = Cg(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new ine({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -22096,43 +22096,43 @@ function cne(e, t, n) {
s,
a,
o
- ]), d = hh(e.id);
- dx.set(t, d);
- let { gridProps: f } = ine({
+ ]), d = gh(e.id);
+ mx.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 = Og(sne(Yx), "@react-aria/table"), g = (0, R.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = kg(ane(Qx), "@react-aria/table"), g = (0, R.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = w_(g);
- return __(() => {
- g && g_(g, "assertive", 500);
+ ]), _ = T_(g);
+ return v_(() => {
+ g && __(g, "assertive", 500);
}, [g]), { gridProps: H(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function Xx(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Sg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = ux.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
+function $x(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Cg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = px.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
if (n.current) {
- let e = d_(n.current);
+ let e = f_(n.current);
if (p === "child") {
- if (Fp(n.current) && n.current !== Np(Sp(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? Zx(e) : e.firstChild();
+ if (Ip(n.current) && n.current !== Pp(Cp(n.current))) return;
+ let r = t.selectionManager.childFocusStrategy === "last" ? eS(e) : e.firstChild();
if (r) {
- ch(r);
+ lh(r);
return;
}
}
- (m.current != null && r.key !== m.current || !Fp(n.current)) && ch(n.current);
+ (m.current != null && r.key !== m.current || !Ip(n.current)) && lh(n.current);
}
- }, { itemProps: g, isPressed: _ } = Zy({
+ }, { itemProps: g, isPressed: _ } = Qy({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -22144,47 +22144,47 @@ function Xx(e, t, n) {
}), v = H(g, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = Np(Sp(n.current));
- if (!Mp(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = d_(n.current);
+ let i = Pp(Cp(n.current));
+ if (!Np(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = f_(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) ch(t), S_(t, { containingElement: y_(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) lh(t), C_(t, { containingElement: b_(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (ch(n.current), S_(n.current, { containingElement: y_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : Zx(a), t && (ch(t), S_(t, { containingElement: y_(n.current) })));
+ p === "cell" && l === "rtl" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : eS(a), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) ch(t), S_(t, { containingElement: y_(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) lh(t), C_(t, { containingElement: b_(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (ch(n.current), S_(n.current, { containingElement: y_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? Zx(a) : a.firstChild(), t && (ch(t), S_(t, { containingElement: y_(n.current) })));
+ p === "cell" && l === "ltr" ? (lh(n.current), C_(n.current, { containingElement: b_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? eS(a) : a.firstChild(), t && (lh(t), C_(t, { containingElement: b_(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && Mp(n.current, V(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && Np(n.current, V(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = Np(Sp(n.current));
- if (!(!Mp(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
+ let r = Pp(Cp(n.current));
+ if (!(!Np(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
if (f === "tab" && V(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = d_(n.current, { tabbable: !0 });
+ let t = f_(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -22194,11 +22194,11 @@ function Xx(e, t, n) {
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
if (m.current = r.key, V(e) !== n.current) {
- Ym() || t.selectionManager.setFocusedKey(r.key);
+ Xm() || t.selectionManager.setFocusedKey(r.key);
return;
}
- p === "child" && e.relatedTarget && Mp(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && Np(Sp(n.current)) === n.current && h();
+ p === "child" && e.relatedTarget && Np(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && Pp(Cp(n.current)) === n.current && h();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -22213,7 +22213,7 @@ function Xx(e, t, n) {
isPressed: _
};
}
-function Zx(e) {
+function eS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -22222,33 +22222,33 @@ function Zx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function lne(e, t, n) {
- let { gridCellProps: r, isPressed: i } = Xx(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = px(t, e.node.parentKey, a)), {
+function sne(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = $x(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = gx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function une(e) {
+function cne(e) {
return e && e.__esModule ? e.default : e;
}
-function dne(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Xx({
+function lne(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = $x({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Ug({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Wg({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = Vh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !cm() && (u = d ? f : "none");
- let p = Og(une(Yx), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && cm() && (m = `${m}, ${p.format(f)}`));
- let h = w_(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = Hh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !lm() && (u = d ? f : "none");
+ let p = kg(cne(Qx), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && lm() && (m = `${m}, ${p.format(f)}`));
+ let h = T_(m), g = t.collection.size === 0;
return (0, R.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -22259,7 +22259,7 @@ function dne(e, t, n) {
columnHeaderProps: {
...H(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: ane(t, r.key),
+ id: rne(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -22268,20 +22268,20 @@ function dne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function fne(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 pne(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = ux.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Zy({
+function dne(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = px.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Qy({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? lh(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? uh(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -22296,10 +22296,10 @@ function pne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function mne(e) {
+function fne(e) {
return e && e.__esModule ? e.default : e;
}
-var Qx = {
+var tS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -22309,21 +22309,21 @@ var Qx = {
rtl: "ArrowRight"
}
};
-function hne(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = pne(e, t, n), { direction: s } = Sg();
+function pne(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = dne(e, t, n), { direction: s } = Cg();
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 = Og(mne(Yx), "@react-aria/table"), u = gg({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = kg(fne(Qx), "@react-aria/table"), u = _g({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": mx(t, r.key)
+ "aria-labelledby": _x(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = $x(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 = $x(t.collection, a);
+ let n = nS(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 = nS(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === Qx.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Qx.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 === tS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === tS.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,
@@ -22341,45 +22341,45 @@ function hne(e, t, n) {
};
}
}
- let p = vm(r.props), m = o.hasAction ? p : {};
+ let p = ym(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...H(a, d, m),
- "aria-labelledby": mx(t, r.key)
+ "aria-labelledby": _x(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function $x(e, t) {
+function nS(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 gne() {
+function mne() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function eS() {
- return gne();
+function rS() {
+ return mne();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function _ne(e) {
+function hne(e) {
return e && e.__esModule ? e.default : e;
}
-function vne(e, t) {
+function gne(e, t) {
let { key: n } = e, { checkboxProps: r } = Ete(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${mx(t, n)}`
+ "aria-labelledby": `${r.id} ${_x(t, n)}`
} };
}
-function yne(e) {
+function _ne(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Og(_ne(Yx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": kg(hne(Qx), "@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,
@@ -22388,23 +22388,23 @@ function yne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var tS = /* @__PURE__ */ new WeakMap();
-function nS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${tS.get(e)}-${n}-${t}`) : "";
+var iS = /* @__PURE__ */ new WeakMap();
+function aS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${iS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function bne(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 } = Zy({
+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,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = nS(t, r, "tab"), m = nS(t, r, "tabpanel"), { tabIndex: h } = d, g = Ag(u?.props, { labelable: !0 });
+ }), p = aS(t, r, "tab"), m = aS(t, r, "tabpanel"), { tabIndex: h } = d, g = jg(u?.props, { labelable: !0 });
delete g.id;
- let _ = ym(u?.props), { focusableProps: v } = Vh({
+ let _ = bm(u?.props), { focusableProps: v } = Hh({
...u?.props,
isDisabled: l
}, n);
@@ -22424,7 +22424,7 @@ function bne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var xne = 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";
}
@@ -22468,11 +22468,11 @@ var xne = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Sne(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Sg(), { collectionProps: l } = Wv({
+function bne(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Cg(), { collectionProps: l } = Gv({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, R.useMemo)(() => new xne(a, c, r, s), [
+ keyboardDelegate: (0, R.useMemo)(() => new yne(a, c, r, s), [
a,
s,
r,
@@ -22482,9 +22482,9 @@ function Sne(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = hh();
- return tS.set(t, u), { tabListProps: {
- ...H(l, gg({
+ }), u = gh();
+ return iS.set(t, u), { tabListProps: {
+ ...H(l, _g({
...e,
id: u
})),
@@ -22495,12 +22495,12 @@ function Sne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Cne(e, t, n) {
- let r = Yy(n) ? void 0 : 0, i = nS(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: H(gg({
+function xne(e, t, n) {
+ let r = Xy(n) ? void 0 : 0, i = aS(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: H(_g({
...e,
id: i,
- "aria-labelledby": nS(t, t?.selectedKey, "tab")
+ "aria-labelledby": aS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -22510,16 +22510,16 @@ function Cne(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var rS = "(prefers-reduced-motion: reduce)", wne = () => matchMedia(rS).matches, Tne = (e) => {
- let t = matchMedia(rS);
+var oS = "(prefers-reduced-motion: reduce)", Sne = () => matchMedia(oS).matches, Cne = (e) => {
+ let t = matchMedia(oS);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function Ene({ children: e, count: t, label: n }) {
- let r = Vu(), i = (0, R.useSyncExternalStore)(Tne, wne, () => !1), { isFocusVisible: a } = th(), o = i || a, s = {
+function wne({ children: e, count: t, label: n }) {
+ let r = Hu(), i = (0, R.useSyncExternalStore)(Cne, Sne, () => !1), { isFocusVisible: a } = nh(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
- return /* @__PURE__ */ (0, B.jsxs)(ip.div, {
+ return /* @__PURE__ */ (0, B.jsxs)(ap.div, {
role: "group",
"aria-label": n,
"data-selection-dock": !0,
@@ -22551,23 +22551,23 @@ function Ene({ children: e, count: t, label: n }) {
}), e]
});
}
-function iS({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, B.jsx)(Gu, { children: e ? /* @__PURE__ */ (0, B.jsx)(Ene, { ...t }, "selection") : null });
+function sS({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, B.jsx)(Ku, { children: e ? /* @__PURE__ */ (0, B.jsx)(wne, { ...t }, "selection") : null });
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
-var aS = R.createContext(void 0), oS = (e) => {
- let t = R.useContext(aS);
+var cS = R.createContext(void 0), lS = (e) => {
+ let t = R.useContext(cS);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, sS = ({ client: e, children: t }) => (R.useEffect(() => (e.mount(), () => {
+}, uS = ({ client: e, children: t }) => (R.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, B.jsx)(aS.Provider, {
+}), [e]), /* @__PURE__ */ (0, B.jsx)(cS.Provider, {
value: e,
children: t
-})), Dne = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
- let a = oS(r), o = R.useRef(t);
+})), Tne = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
+ let a = lS(r), o = R.useRef(t);
R.useEffect(() => {
o.current = t;
});
@@ -22585,10 +22585,10 @@ var aS = R.createContext(void 0), oS = (e) => {
return R.useEffect(() => {
s && i(a, { queries: s }, o.current);
}, [a, s]), e;
-}, cS = R.createContext(!1), lS = () => R.useContext(cS), One = cS.Provider;
+}, dS = R.createContext(!1), fS = () => R.useContext(dS), Ene = dS.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function uS() {
+function pS() {
let e = !1;
return {
clearReset: () => {
@@ -22600,31 +22600,31 @@ function uS() {
isReset: () => e
};
}
-var dS = R.createContext(uS()), fS = () => R.useContext(dS), kne = ({ children: e }) => {
- let [t] = R.useState(() => uS());
- return /* @__PURE__ */ (0, B.jsx)(dS.Provider, {
+var mS = R.createContext(pS()), hS = () => R.useContext(mS), Dne = ({ children: e }) => {
+ let [t] = R.useState(() => pS());
+ return /* @__PURE__ */ (0, B.jsx)(mS.Provider, {
value: t,
children: typeof e == "function" ? e(t) : e
});
-}, pS = (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));
-}, mS = (e) => {
+}, _S = (e) => {
R.useEffect(() => {
e.clearReset();
}, [e]);
-}, hS = ({ 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])), gS = (e, t) => t.state.data === void 0, _S = (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));
}
-}, vS = (e, t) => e?.suspense && t.isPending, yS = (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 bS({ queries: e, ...t }, i) {
- let s = oS(i), c = lS(), l = fS(), u = t.subscribed !== !1, d = R.useMemo(() => e.map((e) => {
+function CS({ queries: e, ...t }, i) {
+ let s = lS(i), c = fS(), l = hS(), u = t.subscribed !== !1, d = R.useMemo(() => e.map((e) => {
let t = s.defaultQueryOptions(e);
return t._optimisticResults = c ? "isRestoring" : u ? "optimistic" : void 0, t;
}), [
@@ -22634,10 +22634,10 @@ function bS({ queries: e, ...t }, i) {
u
]);
d.forEach((e) => {
- _S(e);
+ bS(e);
let t = s.getQueryCache().get(e.queryHash);
- pS(e, l, t);
- }), mS(l);
+ gS(e, l, t);
+ }), _S(l);
let [f] = R.useState(() => new n(s, d, t)), [p, m, h] = f.getOptimisticResult(d, t.combine), g = !c && u;
R.useSyncExternalStore(R.useCallback((e) => g ? f.subscribe(o.batchCalls(e)) : a, [f, g]), () => f.getCurrentResult(), () => f.getCurrentResult()), R.useEffect(() => {
f.setQueries(d, t);
@@ -22646,14 +22646,14 @@ function bS({ queries: e, ...t }, i) {
t,
f
]);
- let _ = p.some((e, t) => vS(d[t], e)) ? p.flatMap((e, t) => {
+ let _ = p.some((e, t) => xS(d[t], e)) ? p.flatMap((e, t) => {
let n = d[t];
- return n && vS(n, e) ? yS(n, new r(s, n), l) : [];
+ return n && xS(n, e) ? SS(n, new r(s, n), l) : [];
}) : [];
if (_.length > 0) throw Promise.all(_);
let v = p.find((e, t) => {
let n = d[t];
- return n && hS({
+ return n && vS({
result: e,
errorResetBoundary: l,
throwOnError: n.throwOnError,
@@ -22666,17 +22666,17 @@ function bS({ queries: e, ...t }, i) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function xS(e, t, n) {
- let r = lS(), i = fS(), s = oS(n), c = s.defaultQueryOptions(e), l = s.getQueryCache().get(c.queryHash), u = e.subscribed !== !1;
- c._optimisticResults = r ? "isRestoring" : u ? "optimistic" : void 0, _S(c), pS(c, i, l), mS(i);
+function wS(e, t, n) {
+ let r = fS(), i = hS(), s = lS(n), c = s.defaultQueryOptions(e), l = s.getQueryCache().get(c.queryHash), u = e.subscribed !== !1;
+ c._optimisticResults = r ? "isRestoring" : u ? "optimistic" : void 0, bS(c), gS(c, i, l), _S(i);
let [d] = R.useState(() => new t(s, c)), f = d.getOptimisticResult(c), p = !r && u;
if (R.useSyncExternalStore(R.useCallback((e) => {
let t = p ? d.subscribe(o.batchCalls(e)) : a;
return d.updateResult(), t;
}, [d, p]), () => d.getCurrentResult(), () => d.getCurrentResult()), R.useEffect(() => {
d.setOptions(c);
- }, [c, d]), vS(c, f)) throw yS(c, d, i);
- if (hS({
+ }, [c, d]), xS(c, f)) throw SS(c, d, i);
+ if (vS({
result: f,
errorResetBoundary: i,
throwOnError: c.throwOnError,
@@ -22687,40 +22687,40 @@ function xS(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function SS(e, t) {
- return xS(e, r, t);
+function TS(e, t) {
+ return wS(e, r, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js
-function Ane(e, t) {
- return xS({
+function One(e, t) {
+ return wS({
...e,
enabled: !0,
suspense: !0,
- throwOnError: gS,
+ throwOnError: yS,
placeholderData: void 0
}, r, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js
-function jne(t, n) {
- return xS({
+function kne(t, n) {
+ return wS({
...t,
enabled: !0,
suspense: !0,
- throwOnError: gS,
+ throwOnError: yS,
placeholderData: void 0
}, e, n);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js
-function Mne(e, t) {
- return bS({
+function Ane(e, t) {
+ return CS({
...e,
queries: e.queries.map((e) => ({
...e,
suspense: !0,
- throwOnError: gS,
+ throwOnError: yS,
enabled: !0,
placeholderData: void 0
}))
@@ -22728,57 +22728,57 @@ function Mne(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchQuery.js
-function Nne(e, t) {
- let n = oS(t);
+function jne(e, t) {
+ let n = lS(t);
n.getQueryState(e.queryKey) || n.query(e).catch(a);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js
-function Pne(e, t) {
- let n = oS(t);
+function Mne(e, t) {
+ let n = lS(t);
n.getQueryState(e.queryKey) || n.infiniteQuery(e).catch(a);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/queryOptions.js
-function Fne(e) {
+function Nne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js
-function Ine(e) {
+function Pne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useIsFetching.js
-function Lne(e, t) {
- let n = oS(t), r = n.getQueryCache();
+function Fne(e, t) {
+ let n = lS(t), r = n.getQueryCache();
return R.useSyncExternalStore(R.useCallback((e) => r.subscribe(o.batchCalls(e)), [r]), () => n.isFetching(e), () => n.isFetching(e));
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutationState.js
-function Rne(e, t) {
- let n = oS(t);
- return wS({ filters: {
+function Ine(e, t) {
+ let n = lS(t);
+ return DS({ filters: {
...e,
status: "pending"
} }, n).length;
}
-function CS(e, t) {
+function ES(e, t) {
return e.findAll(t.filters).map((e) => t.select ? t.select(e) : e.state);
}
-function wS(e = {}, t) {
- let n = oS(t).getMutationCache(), r = R.useRef(e), i = R.useRef(null);
- return i.current === null && (i.current = CS(n, e)), R.useEffect(() => {
+function DS(e = {}, t) {
+ let n = lS(t).getMutationCache(), r = R.useRef(e), i = R.useRef(null);
+ return i.current === null && (i.current = ES(n, e)), R.useEffect(() => {
r.current = e;
}), R.useSyncExternalStore(R.useCallback((e) => n.subscribe(() => {
- let t = s(i.current, CS(n, r.current));
+ let t = s(i.current, ES(n, r.current));
i.current !== t && (i.current = t, o.schedule(e));
}), [n]), () => i.current, () => i.current);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function TS(e, n) {
- let r = oS(n), [i] = R.useState(() => new t(r, e));
+function OS(e, n) {
+ let r = lS(n), [i] = R.useState(() => new t(r, e));
R.useEffect(() => {
i.setOptions(e);
}, [i, e]);
@@ -22794,57 +22794,57 @@ function TS(e, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/mutationOptions.js
-function zne(e) {
+function Lne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js
-function ES(t, n) {
- return xS(t, e, n);
+function kS(t, n) {
+ return wS(t, e, n);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/index.js
-var DS = /* @__PURE__ */ Ct({
- HydrationBoundary: () => Dne,
- IsRestoringProvider: () => One,
- QueryClientContext: () => aS,
- QueryClientProvider: () => sS,
- QueryErrorResetBoundary: () => kne,
- infiniteQueryOptions: () => Ine,
- mutationOptions: () => zne,
- queryOptions: () => Fne,
- useInfiniteQuery: () => ES,
- useIsFetching: () => Lne,
- useIsMutating: () => Rne,
- useIsRestoring: () => lS,
- useMutation: () => TS,
- useMutationState: () => wS,
- usePrefetchInfiniteQuery: () => Pne,
- usePrefetchQuery: () => Nne,
- useQueries: () => bS,
- useQuery: () => SS,
- useQueryClient: () => oS,
- useQueryErrorResetBoundary: () => fS,
- useSuspenseInfiniteQuery: () => jne,
- useSuspenseQueries: () => Mne,
- useSuspenseQuery: () => Ane
+var AS = /* @__PURE__ */ wt({
+ HydrationBoundary: () => Tne,
+ IsRestoringProvider: () => Ene,
+ QueryClientContext: () => cS,
+ QueryClientProvider: () => uS,
+ QueryErrorResetBoundary: () => Dne,
+ infiniteQueryOptions: () => Pne,
+ mutationOptions: () => Lne,
+ queryOptions: () => Nne,
+ useInfiniteQuery: () => kS,
+ useIsFetching: () => Fne,
+ useIsMutating: () => Ine,
+ useIsRestoring: () => fS,
+ useMutation: () => OS,
+ useMutationState: () => DS,
+ usePrefetchInfiniteQuery: () => Mne,
+ usePrefetchQuery: () => jne,
+ useQueries: () => CS,
+ useQuery: () => TS,
+ useQueryClient: () => lS,
+ useQueryErrorResetBoundary: () => hS,
+ useSuspenseInfiniteQuery: () => kne,
+ useSuspenseQueries: () => Ane,
+ useSuspenseQuery: () => One
});
-import * as Bne from "/dist/peach-ui.js";
-Tt(DS, Bne);
+import * as Rne from "/dist/peach-ui.js";
+Et(AS, Rne);
/* istanbul ignore file */
//#endregion
//#region src/react/providers.tsx
-var OS = null;
-function Vne() {
- return OS?.isConnected || (OS = document.createElement("div"), OS.className = "peach-react", OS.dataset.reactOverlays = "", document.body.append(OS)), OS;
+var jS = null;
+function zne() {
+ return jS?.isConnected || (jS = document.createElement("div"), jS.className = "peach-react", jS.dataset.reactOverlays = "", document.body.append(jS)), jS;
}
-function kS({ children: e }) {
- return /* @__PURE__ */ (0, B.jsx)(sS, {
+function MS({ children: e }) {
+ return /* @__PURE__ */ (0, B.jsx)(uS, {
client: p,
- children: /* @__PURE__ */ (0, B.jsx)(od, {
+ children: /* @__PURE__ */ (0, B.jsx)(sd, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, B.jsx)(ny, {
- getContainer: Vne,
+ children: /* @__PURE__ */ (0, B.jsx)(ry, {
+ getContainer: zne,
children: e
})
})
@@ -22852,13 +22852,13 @@ function kS({ children: e }) {
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var AS = {
+var NS = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Hne(e, t = !1) {
+function Bne(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -22874,7 +22874,7 @@ function Hne(e, t = !1) {
glyph: "trash",
danger: !0
},
- AS
+ NS
];
case "junk": return [
t ? {
@@ -22895,7 +22895,7 @@ function Hne(e, t = !1) {
glyph: "trash",
danger: !0
},
- AS
+ NS
];
case "follow": return [
{
@@ -22916,7 +22916,7 @@ function Hne(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- AS
+ NS
];
default: return [
{
@@ -22950,42 +22950,42 @@ function Hne(e, t = !1) {
glyph: "trash",
danger: !0
},
- AS
+ NS
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var jS = null, MS = null, NS = {
+var PS = null, FS = null, IS = {
count: 0,
context: "catalog",
junkDismissed: !1
};
-function PS() {
- let e = jS;
- if (!e || !MS) return;
- let t = NS;
- (0, np.flushSync)(() => MS.render(/* @__PURE__ */ (0, B.jsx)(kS, { children: /* @__PURE__ */ (0, B.jsx)(Gne, {
+function LS() {
+ let e = PS;
+ if (!e || !FS) return;
+ let t = IS;
+ (0, rp.flushSync)(() => FS.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(Une, {
host: e,
props: t
}) })));
}
-var Une = { render(e) {
- NS = e, PS();
+var Vne = { render(e) {
+ IS = e, LS();
} };
-function Wne(e) {
- return jS = e, MS = (0, rp.createRoot)(e.root), PS(), Une;
+function Hne(e) {
+ return PS = e, FS = (0, ip.createRoot)(e.root), LS(), Vne;
}
-function Gne({ host: e, props: t }) {
+function Une({ host: e, props: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, B.jsx)(iS, {
+ children: /* @__PURE__ */ (0, B.jsx)(sS, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count} 项`,
- children: Hne(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: Bne(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -23002,7 +23002,7 @@ function Gne({ host: e, props: t }) {
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function FS({ store: e, label: t, hidden: n }) {
+function RS({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-glow-grid": "",
@@ -23028,11 +23028,11 @@ function FS({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-function Kne(e) {
- let t = (0, rp.createRoot)(e.root);
- (0, np.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(qne, { host: e })));
+function Wne(e) {
+ let t = (0, ip.createRoot)(e.root);
+ (0, rp.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(Gne, { host: e })));
}
-function qne({ host: e }) {
+function Gne({ host: e }) {
let { store: t } = e;
(0, R.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -23048,7 +23048,7 @@ function qne({ host: e }) {
children: "重置"
})]
}),
- /* @__PURE__ */ (0, B.jsx)(FS, {
+ /* @__PURE__ */ (0, B.jsx)(RS, {
store: t,
label: "光晕",
hidden: !n.on
@@ -23088,13 +23088,13 @@ function qne({ host: e }) {
}
//#endregion
//#region src/api.ts
-var IS = class extends Error {
+var zS = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(Te(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, LS = (e) => {
+}, BS = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -23116,7 +23116,7 @@ async function W(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new IS(LS(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new zS(BS(r) || `请求失败(${n.status})`, n.status);
return r;
}
async function G(e, t, n = "POST", r) {
@@ -23133,37 +23133,37 @@ async function G(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new IS(LS(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new zS(BS(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/player/host.ts
-var RS = null;
-function Jne(e) {
- RS = e;
+var VS = null;
+function Kne(e) {
+ VS = e;
}
-function zS() {
- if (!RS) throw Error("播放器还没有接上宿主(configurePlayer)");
- return RS;
+function HS() {
+ if (!VS) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return VS;
}
//#endregion
//#region src/player/menu.ts
-var BS = null;
-function Yne(e) {
- BS = e;
+var US = null;
+function qne(e) {
+ US = e;
}
-function Xne() {
+function Jne() {
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 VS = null, HS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function US() {
+var WS = null, GS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function KS() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && Ne(e, () => {
e.innerHTML = "";
- }), VS &&= (VS(), null);
+ }), WS &&= (WS(), null);
}
-async function Zne(e) {
+async function Yne(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -23176,12 +23176,12 @@ async function Zne(e) {
return t.remove(), n;
}
}
-function Qne(e) {
- let t = !!BS?.inMiniplayer(e), n = e.peachItem, r = BS?.kind(e) ?? "item", i = (t) => {
+function Xne(e) {
+ let t = !!US?.inMiniplayer(e), n = e.peachItem, r = US?.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) => {
- Zne(i(e)).then((e) => zS().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Yne(i(e)).then((e) => HS().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -23193,11 +23193,11 @@ function Qne(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => BS?.expand()
+ run: () => US?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => BS?.toMiniplayer()
+ run: () => US?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -23220,29 +23220,29 @@ function Qne(e) {
run: () => s.click()
}), o;
}
-function $ne(e, t, n) {
- let r = Xne();
- US();
- let i = zS().stage();
+function Zne(e, t, n) {
+ let r = Jne();
+ KS();
+ let i = HS().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Qne(e);
+ let a = Xne(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}">${HS(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${ge(e.label)}</span>${n ? HS(L("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${GS(L(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${ge(e.label)}</span>${n ? GS(L("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), Ge(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)];
- US(), n?.run();
+ KS(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || US();
+ r.contains(e.target) || KS();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), US();
+ e.preventDefault(), e.stopPropagation(), KS();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -23250,51 +23250,51 @@ function $ne(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- qe(t, e.el()) && US();
+ qe(t, e.el()) && KS();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), VS = () => {
+ }, 0), WS = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function ere(e) {
+function Qne(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), $ne(e, t.clientX, t.clientY));
- }), e.on("dispose", US);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Zne(e, t.clientX, t.clientY));
+ }), e.on("dispose", KS);
}
//#endregion
//#region src/player/registry.ts
-var WS = null, GS = () => WS;
-function KS(e) {
- WS = e;
+var qS = null, JS = () => qS;
+function YS(e) {
+ qS = e;
}
-function qS(e) {
+function XS(e) {
!e || e.isDisposed() || requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function JS(e) {
+function ZS(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 tre(e) {
+function $ne(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 YS = 3e3;
-function XS(e, t) {
+var QS = 3e3;
+function $S(e, t) {
let n = Number(e) || 0, r = we(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function nre(e) {
+function ere(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -23309,10 +23309,10 @@ function nre(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = tre(e), s = e.currentTime || 0;
+ let a = performance.now(), o = $ne(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 > YS * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > QS * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -23321,56 +23321,56 @@ function nre(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > YS;) t.shift();
+ }); t.length > 2 && a - t[0].at > QS;) 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 ZS = 24;
-function QS(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > ZS && e.splice(0, e.length - ZS);
+var eC = 24;
+function tC(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > eC && e.splice(0, e.length - eC);
}
-var $S = "peach-player-panel";
-function eC(e, t, n, r) {
- let i = [...Array(Math.max(0, ZS - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var nC = "peach-player-panel";
+function rC(e, t, n, r) {
+ let i = [...Array(Math.max(0, eC - 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="${ge(r)}">${o}</span>`;
}
-function rre() {
+function tre() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${L("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function tC(e, t = "") {
+function iC(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 nC(e, t = "") {
- let n = tC(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 aC(e, t = "") {
+ let n = iC(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 rC(e, t, n = "", r = null) {
+function oC(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 : nC(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : aC(t, n);
}
-function iC(e) {
+function sC(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 ire(e, t) {
- return e > 0 ? iC(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : iC(0);
+function nre(e, t) {
+ return e > 0 ? sC(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : sC(0);
}
//#endregion
//#region src/player/controls.ts
-function aC(e, t, n = "") {
+function cC(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));
@@ -23381,24 +23381,24 @@ function aC(e, t, n = "") {
};
return o(), o;
}
-function are(e, t = !0) {
- let n = zS(), r = n.settings();
+function rre(e, t = !0) {
+ let n = HS(), 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 oC = /* @__PURE__ */ new WeakMap();
-function sC(e) {
+var lC = /* @__PURE__ */ new WeakMap();
+function uC(e) {
if (!e) return;
- let t = zS().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), oC.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = HS().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), lC.get(e)?.(t ? "默认视图" : "影院模式");
}
-function cC(e, t = !0) {
- let n = zS(), r = n.settings();
+function dC(e, t = !0) {
+ let n = HS(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), sC(i?.querySelector("[data-player-theater]")), qS(GS());
+ i?.toggleAttribute("data-theater", r.theaterMode), uC(i?.querySelector("[data-player-theater]")), XS(JS());
}
-function ore(e) {
- let t = zS().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function ire(e) {
+ let t = HS().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -23415,14 +23415,14 @@ function ore(e) {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => u(t, e)) : requestAnimationFrame((e) => u(t, e));
}, u = (t, n) => {
if (!(i || t !== o)) {
- if (!zS().settings().ambientMode) {
+ if (!HS().settings().ambientMode) {
s();
return;
}
e.paused || (!document.hidden && n - a > 480 && (a = n, c()), l(t));
}
}, d = () => {
- i || !zS().settings().ambientMode || (c(), e.paused || l(++o));
+ i || !HS().settings().ambientMode || (c(), e.paused || l(++o));
}, f = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? d() : (o++, s());
@@ -23431,7 +23431,7 @@ function ore(e) {
i = !0, o++, document.removeEventListener("peachambientchange", f), e.removeEventListener("play", d), e.removeEventListener("loadeddata", d), s();
};
}
-function sre(e, t, n = 0, r = null) {
+function are(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");
@@ -23441,7 +23441,7 @@ function sre(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]");
- aC(s, "设置");
+ cC(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;
@@ -23483,11 +23483,11 @@ function sre(e, t, n = 0, r = null) {
active: t
};
}, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent($S, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(nC, { detail: "settings" }));
}, v = () => _(!1), y = (e) => {
e.detail !== "settings" && v();
};
- document.addEventListener($S, y);
+ document.addEventListener(nC, 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;
@@ -23501,12 +23501,12 @@ function sre(e, t, n = 0, r = null) {
}, 250);
}), r;
}, S = (e, t) => e.querySelector(t), C = (t = 0) => {
- let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${zS().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="${HS().settings().ambientMode}">
${L("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${L("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${L("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${L("player-quality")}<span>清晰度</span><b>${ge(n.label)}</b>${L("player-menu-next")}</button></div>`, t);
S(i, "[data-player-ambient]").onclick = () => {
- are(!zS().settings().ambientMode), C();
+ rre(!HS().settings().ambientMode), C();
}, S(i, "[data-player-speed]").onclick = () => D(), S(i, "[data-player-quality-view]").onclick = () => O();
}, w = .05, T = [
1,
@@ -23563,22 +23563,22 @@ function sre(e, t, n = 0, r = null) {
}), u?.on?.(["addqualitylevel", "removequalitylevel"], () => {
g() ? C() : h();
}), e.on("dispose", () => {
- document.removeEventListener("pointerdown", k), document.removeEventListener($S, y), b && clearTimeout(b);
- }), h(), cre(e, a), lre(e), (e) => {
+ document.removeEventListener("pointerdown", k), document.removeEventListener(nC, y), b && clearTimeout(b);
+ }), h(), ore(e, a), sre(e), (e) => {
d = e?.length ? e : null, g() ? C() : h();
};
}
-function cre(e, t) {
+function ore(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = zS().settings().theaterMode, i = document.createElement("div");
+ let r = HS().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${L(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- oC.set(a, aC(a, "影院模式", "T")), sC(a), a.onclick = (e) => {
- e.stopPropagation(), cC(!zS().settings().theaterMode);
+ lC.set(a, cC(a, "影院模式", "T")), uC(a), a.onclick = (e) => {
+ e.stopPropagation(), dC(!HS().settings().theaterMode);
};
}
-function lre(e) {
+function sre(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -23590,7 +23590,7 @@ function lre(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 = aC(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 = cC(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 ? "播放" : "暂停");
};
@@ -23601,7 +23601,7 @@ function lre(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 = aC(p, "静音", "M"), g = () => {
+ let h = cC(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 ? "取消静音" : "静音");
};
@@ -23627,7 +23627,7 @@ function lre(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 = aC(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = cC(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = _e(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : _e(t)} / ${_e(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${_e(n)};点击显示已播放时间` : `已播放 ${_e(t)},总时长 ${_e(n)};点击显示剩余时间`);
};
@@ -23640,11 +23640,11 @@ function lre(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 = aC(E, "画中画");
+ let D = cC(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = aC(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = cC(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 ? "退出全屏" : "全屏"), qS(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), XS(e);
};
e.on([
"fullscreenchange",
@@ -23664,7 +23664,7 @@ function lre(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${L("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(ee);
- let te = ee.querySelector("button"), P = aC(te, "展开控件"), F = (t) => {
+ let te = ee.querySelector("button"), P = cC(te, "展开控件"), F = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), te.setAttribute("aria-expanded", String(t)), P(t ? "收起控件" : "展开控件");
};
te.onclick = (t) => {
@@ -23676,7 +23676,7 @@ function lre(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), F(!1), ne();
}
-function ure(e, t, n = {}) {
+function cre(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");
@@ -23709,13 +23709,13 @@ function ure(e, t, n = {}) {
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
-function dre(e, t) {
+function lre(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => we(e.duration()) || we(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(zS().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(HS().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -23756,11 +23756,11 @@ function dre(e, t) {
} catch {}
});
}
-function fre(e) {
+function ure(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 pre(e, t) {
+function dre(e, t) {
pe(`/api/assets/${t}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -23775,7 +23775,7 @@ function pre(e, t) {
}
//#endregion
//#region src/player/dispose.ts
-function lC(e) {
+function fC(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -23793,23 +23793,23 @@ function lC(e) {
}
//#endregion
//#region src/player/stream.ts
-function uC() {
+function pC() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function dC(e, t) {
+function mC(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function mre(e) {
+function fre(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function fC(e, t) {
- let n = mre(e);
+async function hC(e, t) {
+ let n = fre(e);
if (n) return n;
try {
let n = await pe(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -23818,9 +23818,9 @@ async function fC(e, t) {
type: n.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return dC(e, t);
+ return mC(e, t);
}
-function pC(e) {
+function gC(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -23829,21 +23829,21 @@ function pC(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var mC = "";
-function hC() {
- return mC;
+var _C = "";
+function vC() {
+ return _C;
}
-function gC() {
- return mC ||= uC(), mC;
+function yC() {
+ return _C ||= pC(), _C;
}
-var hre = (e) => dC(e, gC()), gre = (e) => fC(e, gC());
-function _C() {
- let e = mC;
- e && (mC = "", pC(e));
+var pre = (e) => mC(e, yC()), mre = (e) => hC(e, yC());
+function bC() {
+ let e = _C;
+ e && (_C = "", gC(e));
}
//#endregion
//#region src/player/telemetry.ts
-function vC(e, t, n = {}) {
+function xC(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null;
t.addEventListener("seeking", () => {
@@ -23891,7 +23891,7 @@ function vC(e, t, n = {}) {
u(), l(!1);
}, { once: !0 }), c();
}
-function yC(e, t) {
+function hre(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = we(e.duration) || we(t.duration);
!r && !n || (pe("/api/follow/activity", {
@@ -23927,7 +23927,7 @@ function yC(e, t) {
}
//#endregion
//#region src/player/videojs.ts
-var bC = "/vendor/videojs/8.24.1/", xC = (e) => new Promise((t, n) => {
+var SC = "/vendor/videojs/8.24.1/", CC = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -23939,20 +23939,20 @@ var bC = "/vendor/videojs/8.24.1/", xC = (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));
-}), SC = () => globalThis.videojs, CC = null;
-function wC() {
- let e = SC();
- return e ? Promise.resolve(e) : (CC ??= xC(`${bC}video.min.js`).then(() => xC(`${bC}lang/zh-CN.js`)).then(() => {
- let e = SC();
+}), wC = () => globalThis.videojs, TC = null;
+function EC() {
+ let e = wC();
+ return e ? Promise.resolve(e) : (TC ??= CC(`${SC}video.min.js`).then(() => CC(`${SC}lang/zh-CN.js`)).then(() => {
+ let e = wC();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw CC = null, e;
- }), CC);
+ throw TC = null, e;
+ }), TC);
}
//#endregion
//#region src/player/immerse-player.ts
-var _re = {
+var gre = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -23964,37 +23964,37 @@ var _re = {
errorDisplay: !1,
textTrackSettings: !1
};
-function vre(e, t) {
+function _re(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([fC(n, r), wC().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([hC(n, r), EC().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = dC(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = mC(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, _re);
+ let t = s(e, gre);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- vC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ xC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, pC(r), i ? lC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, gC(r), i ? fC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var TC = /* @__PURE__ */ new WeakMap(), EC = null, DC = null, OC = null;
-function kC() {
- EC &&= (clearInterval(EC), null), DC &&= (clearInterval(DC), null), OC &&= (clearTimeout(OC), null);
+var DC = /* @__PURE__ */ new WeakMap(), OC = null, kC = null, AC = null;
+function jC() {
+ OC &&= (clearInterval(OC), null), kC &&= (clearInterval(kC), null), AC &&= (clearTimeout(AC), null);
}
-async function yre(e, t, n, r = {}) {
- let i = GS();
+async function vre(e, t, n, r = {}) {
+ let i = JS();
if (i && !i.isDisposed()) return i;
- let a = zS(), o = r.resume ?? null;
+ let a = HS(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : gre(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : mre(e), c;
try {
- c = await wC();
+ c = await EC();
} catch {
return t.controls = !0, s().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -24014,7 +24014,7 @@ async function yre(e, t, n, r = {}) {
remainingTimeDisplay: !1
}
});
- KS(l), l.peachItem = e, ere(l), l.on("loadedmetadata", () => {
+ YS(l), l.peachItem = e, Qne(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}`);
});
@@ -24022,7 +24022,7 @@ async function yre(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = nre(XS(f, e.duration)), m = 0, h = !1, g = () => GS() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = ere($S(f, e.duration)), m = 0, h = !1, g = () => JS() === 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(() => {
@@ -24033,15 +24033,15 @@ async function yre(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- TC.set(l, y), y.updateStats = () => {
+ DC.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 = hC(), h = s ? tC(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 = vC(), h = s ? iC(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 = rC(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 = oC(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 = JS(t);
- QS(d.speed, x), QS(d.activity, C), QS(d.buffer, w);
+ let w = ZS(t);
+ tC(d.speed, x), tC(d.activity, C), tC(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 ? [
"网络活动",
`${_ ? ye(_) : "—"} · ${h.length} 请求`,
@@ -24059,17 +24059,17 @@ async function yre(e, t, n, r = {}) {
[
"连接速度",
D,
- eC(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ rC(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- eC(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ rC(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- eC(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ rC(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${_e(t.currentTime)} / ${_e(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -24085,15 +24085,15 @@ async function yre(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = rC(l, e.id, hC(), r ? null : p), a = r ? iC(i) : ire(i, JS(t));
+ let i = oC(l, e.id, vC(), r ? null : p), a = r ? sC(i) : nre(i, ZS(t));
n.innerHTML = `${L("gauge")}<span class="sr-only">加载速度</span><span>${ge(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- !e || !e.isConnected || (e.hidden = !1, S(), DC && clearInterval(DC), DC = setInterval(S, 500));
+ !e || !e.isConnected || (e.hidden = !1, S(), kC && clearInterval(kC), kC = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (OC && clearTimeout(OC), OC = setTimeout(() => {
- e.hidden = !0, DC &&= (clearInterval(DC), null);
+ e && (AC && clearTimeout(AC), AC = setTimeout(() => {
+ e.hidden = !0, kC &&= (clearInterval(kC), null);
}, 1400));
};
return l.on([
@@ -24105,7 +24105,7 @@ async function yre(e, t, n, r = {}) {
S(), w();
}), l.on("error", () => {
if (b && !x && !l.isDisposed()) {
- x = !0, b = !1, l.src(hre(e)), n && l.play()?.catch(() => {});
+ x = !0, b = !1, l.src(pre(e)), n && l.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
@@ -24116,27 +24116,27 @@ async function yre(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = sre(l, t, e.height, r.qualities ?? null);
+ let n = are(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 = XS(r, e.duration));
- }).catch(() => {}), ure(l, e, { thumbnail: !r.source }), dre(l, e), fre(l), r.source || pre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = $S(r, e.duration));
+ }).catch(() => {}), cre(l, e, { thumbnail: !r.source }), lre(l, e), ure(l), r.source || dre(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 bre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function AC(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", bre), e.querySelector(":scope > #playerStatsBtn")) return;
+var yre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function MC(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", yre), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = rre(), e.insertBefore(n.content, t);
+ n.innerHTML = tre(), e.insertBefore(n.content, t);
}
-function jC(e, t) {
- let n = TC.get(e);
+function NC(e, t) {
+ let n = DC.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -24148,29 +24148,29 @@ function jC(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), EC &&= (clearInterval(EC), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), OC &&= (clearInterval(OC), null));
};
a.onclick = () => {
if (!o.hidden) {
e();
return;
}
- document.dispatchEvent(new CustomEvent($S, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), EC && clearInterval(EC), EC = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent(nC, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), OC && clearInterval(OC), OC = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener($S, t), s = () => document.removeEventListener($S, t);
+ document.addEventListener(nC, t), s = () => document.removeEventListener(nC, t);
}
- let c = e.el().querySelector("video"), l = c ? ore(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, kC()));
+ let c = e.el().querySelector("video"), l = c ? ire(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, jC()));
};
return e.one("dispose", d), d;
}
-function MC(e, t) {
- if (t.kind === "immerse") return vre(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = zS(), c = t.chrome === !1 ? null : e.parentElement;
- c && AC(c, e);
+function PC(e, t) {
+ if (t.kind === "immerse") return _re(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = HS(), c = t.chrome === !1 ? null : e.parentElement;
+ c && MC(c, e);
let l = { resume: t.resume ?? null };
if (n === "follow") l = {
...l,
@@ -24190,16 +24190,16 @@ function MC(e, t) {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), vC(r, e, {
+ }, { once: !0 }), xC(r, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let u = null, d = !1, f = () => {}, p = () => {
- f(), !(!u || a?.(u)) && (GS() === u && (KS(null), kC()), lC(u));
+ f(), !(!u || a?.(u)) && (JS() === u && (YS(null), jC()), fC(u));
};
- return yre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
+ return vre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
if (u = t, d) {
p();
return;
@@ -24208,45 +24208,45 @@ function MC(e, t) {
o?.(null);
return;
}
- c && (f = jC(t, c)), n === "follow" && yC(r, e), o?.(t);
+ c && (f = NC(t, c)), n === "follow" && hre(r, e), o?.(t);
}), () => {
d = !0, p();
};
}
//#endregion
//#region src/player/playback.ts
-function NC(e) {
+function FC(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function xre(e, t) {
+function bre(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 PC(e) {
+function IC(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function Sre(e, t) {
- return e.is_jav && e.code && e.has_cover && (PC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function xre(e, t) {
+ return e.is_jav && e.code && e.has_cover && (IC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-var FC = .704;
-function IC(e, t) {
+var LC = .704;
+function RC(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Cre = (e, t) => [
+var Sre = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], wre = (e, t) => [
+], Cre = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Tre(e, t, n, r, i) {
+async function wre(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 W(`/api/items?${a}`, i), s = {
@@ -24256,22 +24256,22 @@ async function Tre(e, t, n, r, i) {
};
return !t && !s.items.length && !r && (s.libraryEmpty = (await W("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Ere = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Dre = (e, t) => {
+var Tre = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Ere = (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 LC(e) {
- let t = IC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function zC(e) {
+ let t = RC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Cre(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Tre(t, e, n, r, i),
+ queryKey: Sre(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => wre(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Ere(n)
+ getNextPageParam: Tre(n)
};
}
-function Ore(e) {
+function Dre(e) {
return {
- queryKey: wre(e.entityKey || "", e.revision || 0),
+ queryKey: Cre(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -24286,12 +24286,12 @@ function Ore(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Dre
+ getNextPageParam: Ere
};
}
-async function kre(e, t) {
+async function Ore(e, t) {
if (e.mode !== "catalog") return;
- let n = LC(e);
+ let n = zC(e);
await p.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -24300,7 +24300,7 @@ async function kre(e, t) {
})
});
}
-function Are(e, t, n) {
+function kre(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -24315,24 +24315,24 @@ function Are(e, t, n) {
return !0;
}) : [...e];
}
-var RC = (e, t) => !!e && !!Sre(e, t);
-function jre(e, t) {
- let n = (e) => RC(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) => RC(e, t)) || e[e.length - 1];
+var BC = (e, t) => !!e && !!xre(e, t);
+function Are(e, t) {
+ let n = (e) => BC(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) => BC(e, t)) || e[e.length - 1];
}
-function Mre(e, { collapse: t, mix: n, javImage: r }) {
+function jre(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 = Are(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = kre(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 = jre(e, r);
+ let t = Are(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -24345,16 +24345,16 @@ function Mre(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Nre(e, t, n) {
+function Mre(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 Pre(e, t) {
+function Nre(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 Fre(e, t) {
+function Pre(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -24367,10 +24367,10 @@ function Fre(e, t) {
strip: null
}), r;
}
-function zC(e, t) {
- BC((t) => t.id === e, t);
+function VC(e, t) {
+ HC((t) => t.id === e, t);
}
-function BC(e, t) {
+function HC(e, t) {
p.setQueriesData({
queryKey: ["catalog-grid"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -24387,31 +24387,31 @@ function BC(e, t) {
}
//#endregion
//#region src/react/item-detail/item-detail.ts
-var VC = (e) => ["item", e], HC = (e) => [
+var UC = (e) => ["item", e], WC = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Ire = (e, t) => [
+], Fre = (e, t) => [
"item-related",
e,
t
-], Lre = (e) => `/api/item?id=${e}`, Rre = (e, t) => `/api/related?id=${e}&limit=${t}`, UC = "/api/playlist", WC = "/api/feedback", GC = "/api/item-tag", KC = "/api/watch-later", qC = "/api/quality-goal", JC = "/api/preference", YC = class extends Error {};
-async function XC(e, t) {
- let n = await W(Lre(e), t);
- if (n.error) throw new YC(n.error);
+], Ire = (e) => `/api/item?id=${e}`, Lre = (e, t) => `/api/related?id=${e}&limit=${t}`, GC = "/api/playlist", KC = "/api/feedback", qC = "/api/item-tag", JC = "/api/watch-later", YC = "/api/quality-goal", XC = "/api/preference", ZC = class extends Error {};
+async function QC(e, t) {
+ let n = await W(Ire(e), t);
+ if (n.error) throw new ZC(n.error);
return n;
}
-async function ZC(e, t, n) {
+async function $C(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([XC(r, n), t.mixRelated(r)]);
- return p.setQueryData(VC(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([QC(r, n), t.mixRelated(r)]);
+ return p.setQueryData(UC(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${re(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return QC(await W(`${UC}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return ew(await W(`${GC}?id=${e.playlistId}`, n));
let r = await W(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -24421,19 +24421,19 @@ async function ZC(e, t, n) {
items: r.items
};
}
-var QC = (e) => ({
+var ew = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), $C = (e) => e.disposal === "vanished";
-function ew(e, t) {
+}), tw = (e) => e.disposal === "vanished";
+function nw(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !$C(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !tw(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 zre(e, t) {
+function Rre(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 : {
@@ -24441,15 +24441,15 @@ function zre(e, t) {
part_label: n
};
}
-async function Bre(e, t) {
+async function zre(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = HC(n);
+ let o = WC(n);
try {
let r = n.fresh ? void 0 : p.getQueryData(o);
a = !r && n.kind === "mix", i = r || await p.fetchQuery({
queryKey: o,
- queryFn: () => ZC(n, e.helpers, t),
+ queryFn: () => $C(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -24461,20 +24461,20 @@ async function Bre(e, t) {
return;
}
}
- let o = i ? ew(i, e.id) : e.id;
+ let o = i ? nw(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 ? p.getQueryData(VC(o)) : void 0;
+ let s, c = a && o === i?.seedId ? p.getQueryData(UC(o)) : void 0;
try {
s = c || await p.fetchQuery({
- queryKey: VC(o),
- queryFn: () => XC(o, t),
+ queryKey: UC(o),
+ queryFn: () => QC(o, t),
staleTime: 0
});
} catch (e) {
- if (e instanceof YC) {
+ if (e instanceof ZC) {
r.redirect({ kind: "gone" });
return;
}
@@ -24485,7 +24485,7 @@ async function Bre(e, t) {
id: Number(s.follow_item_id)
});
}
-function Vre(e) {
+function Bre(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = be(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -24507,42 +24507,42 @@ function Vre(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-var tw = (e) => Math.min(Math.max(e || 0, 0), 100), nw = (e) => Math.round(tw(e) / 20), Hre = (e) => {
- let t = nw(e);
+var rw = (e) => Math.min(Math.max(e || 0, 0), 100), iw = (e) => Math.round(rw(e) / 20), Vre = (e) => {
+ let t = iw(e);
return t ? `${t} 星` : "未评分";
-}, Ure = (e, t) => {
+}, Hre = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function Wre(e, t) {
+function Ure(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = be(t.tagLabel(e.k)), i = n.get(r);
(!i || be(e.k) === r && be(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var rw = (e, t) => (e.tags || []).some((e) => be(e.k) === be(t)), iw = (e, t) => ({
+var aw = (e, t) => (e.tags || []).some((e) => be(e.k) === be(t)), ow = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => be(e.k) !== be(t))
-}), aw = (e, t) => rw(e, t.k) ? e : {
+}), sw = (e, t) => aw(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, ow = "peach.recentTags";
-function sw() {
+}, cw = "peach.recentTags";
+function lw() {
try {
- let e = JSON.parse(localStorage.getItem(ow) || "[]");
+ let e = JSON.parse(localStorage.getItem(cw) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function Gre(e) {
+function Wre(e) {
try {
- let t = sw().filter((t) => be(t) !== be(e));
- localStorage.setItem(ow, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = lw().filter((t) => be(t) !== be(e));
+ localStorage.setItem(cw, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Kre(e, t, n) {
+function Gre(e, t, n) {
let r = be(e), i = new Map(t.map((e) => [be(e.k), e])), a = t.filter((e) => !r || be(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(be(e)) || {
k: e,
n: 0
@@ -24553,73 +24553,73 @@ function Kre(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var qre = {
+var Kre = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Jre = {
+}, qre = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Yre(e) {
+function Jre(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Jre[e.kind],
+ title: qre[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var cw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Xre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${ge(cw(e.part_label))}</small>` : "";
-function Zre(e, t, n, r) {
+var uw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Yre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${ge(uw(e.part_label))}</small>` : "";
+function Xre(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Qre = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function $re(e, t) {
+var Zre = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function Qre(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function eie(e) {
+function $re(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 lw(e, t) {
+function dw(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 tie = (e, t, n) => [
+var eie = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function nie(e) {
+function tie(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 rie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
-function iie(e, t = Math.random) {
+var nie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
+function rie(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 aie(e, t) {
- return iie(((await W(`/api/items?${e}`)).items || []).filter((e) => rie(e, t)));
+async function iie(e, t) {
+ return rie(((await W(`/api/items?${e}`)).items || []).filter((e) => nie(e, t)));
}
-var uw = (e) => p.ensureQueryData({
- queryKey: VC(e),
- queryFn: ({ signal: t }) => XC(e, t)
+var fw = (e) => p.ensureQueryData({
+ queryKey: UC(e),
+ queryFn: ({ signal: t }) => QC(e, t)
});
-function oie(e, t) {
+function aie(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function sie(e) {
+function oie(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,
@@ -24628,314 +24628,314 @@ function sie(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function cie(e, t, n) {
+function sie(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 lie(e, t) {
+function cie(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 uie = 15e3, dw = {
+var lie = 15e3, pw = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, fw = null, pw = null, mw = null, hw = null, gw = dw, _w = 0, vw = 0, yw = 0, bw = "", xw = [], Sw = 0, Cw = !1, ww = !1, Tw = null, Ew = /* @__PURE__ */ new Set(), Dw = "", Ow = null, kw = 0, Aw = null, jw = !1;
-function Mw() {
- if (!fw) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
- return fw;
+}, mw = null, hw = null, gw = null, _w = null, vw = pw, yw = 0, bw = 0, xw = 0, Sw = "", Cw = [], ww = 0, Tw = !1, Ew = !1, Dw = null, Ow = /* @__PURE__ */ new Set(), kw = "", Aw = null, jw = 0, Mw = null, Nw = !1;
+function Pw() {
+ if (!mw) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
+ return mw;
}
-function die() {
- return (!pw || !mw?.isConnected) && (pw?.unmount(), mw = document.createElement("div"), mw.dataset.immerseHost = "", document.body.append(mw), pw = (0, rp.createRoot)(mw)), pw;
+function uie() {
+ return (!hw || !gw?.isConnected) && (hw?.unmount(), gw = document.createElement("div"), gw.dataset.immerseHost = "", document.body.append(gw), hw = (0, ip.createRoot)(gw)), hw;
}
-function Nw() {
- let e = die();
- (0, np.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(kS, { children: /* @__PURE__ */ (0, B.jsx)(kie, { view: gw }) })));
+function Fw() {
+ let e = uie();
+ (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(Oie, { view: vw }) })));
}
-function Pw() {
- let e = Ow ? nC(Ow.id) : 0;
- return e ? `${Dw} · ${iC(e)}` : Dw;
+function Iw() {
+ let e = Aw ? aC(Aw.id) : 0;
+ return e ? `${kw} · ${sC(e)}` : kw;
}
-function Fw(e, t = null) {
- if (clearInterval(kw), kw = 0, e === null) {
- gw = {
- ...gw,
+function Lw(e, t = null) {
+ if (clearInterval(jw), jw = 0, e === null) {
+ vw = {
+ ...vw,
loading: null
- }, Nw();
+ }, Fw();
return;
}
- Dw = e, Ow = t, gw = {
- ...gw,
- loading: Pw()
- }, Nw(), kw = window.setInterval(() => {
- Ow = xw[Sw] ?? null, gw = {
- ...gw,
- loading: Pw()
- }, Nw();
+ kw = e, Aw = t, vw = {
+ ...vw,
+ loading: Iw()
+ }, Fw(), jw = window.setInterval(() => {
+ Aw = Cw[ww] ?? null, vw = {
+ ...vw,
+ loading: Iw()
+ }, Fw();
}, 500);
}
-function fie(e) {
+function die(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), hw.track.append(t);
- let r = uC(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), _w.track.append(t);
+ let r = pC(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => pC(r),
+ release: () => gC(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return Ew.add(a), a;
+ return Ow.add(a), a;
}
-function pie(e, t) {
+function fie(e, t) {
return new Promise((n) => {
- e.release = MC(e.video, {
+ e.release = PC(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- gw.open && Hw(1);
+ vw.open && Ww(1);
}
}), e.gone.then(n);
});
}
-function Iw(e) {
- !e || e.disposed || (e.disposed = !0, Ew.delete(e), e.leave(), e.release(), e.el.remove(), Tw === e && (Tw = null));
+function Rw(e) {
+ !e || e.disposed || (e.disposed = !0, Ow.delete(e), e.leave(), e.release(), e.el.remove(), Dw === e && (Dw = null));
}
-var Lw = [
+var zw = [
"loadeddata",
"canplay",
"error"
];
-function mie(e) {
+function pie(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), Lw.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), zw.forEach((e) => t.removeEventListener(e, i)), n());
};
- Lw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, uie);
+ zw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, lie);
e.gone.then(i);
});
}
-function Rw(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = cie(e.videoWidth, e.videoHeight, n);
+function Bw(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = sie(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var zw = () => hw?.track.querySelectorAll("video").forEach(Rw);
-function hie(e) {
- delete e.dataset.fit, e.readyState >= 1 ? Rw(e) : e.addEventListener("loadedmetadata", () => Rw(e), { once: !0 });
+var Vw = () => _w?.track.querySelectorAll("video").forEach(Bw);
+function mie(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? Bw(e) : e.addEventListener("loadedmetadata", () => Bw(e), { once: !0 });
}
-function gie(e) {
- gw = {
- ...gw,
+function hie(e) {
+ vw = {
+ ...vw,
wide: e
- }, Nw(), zw();
+ }, Fw(), Vw();
}
-var Bw = () => {
- let e = bw;
+var Hw = () => {
+ let e = Sw;
return p.fetchQuery({
- queryKey: tie(e, vw, yw),
- queryFn: () => aie(e, Mw().sourceOffline),
+ queryKey: eie(e, bw, xw),
+ queryFn: () => iie(e, Pw().sourceOffline),
staleTime: Infinity
});
};
-function _ie(e, t) {
+function gie(e, t) {
let n = () => we(e.duration) || we(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && hw && (hw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), Aw = {
+ t && _w && (_w.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), Mw = {
video: e,
duration: n
};
}
-async function Vw(e = 0) {
- let t = xw[Sw];
- if (!t || Cw) return;
- let n = _w;
- Mw().route(t.id), Cw = !0, Fw(e ? "切换中…" : "加载中…", t);
+async function Uw(e = 0) {
+ let t = Cw[ww];
+ if (!t || Tw) return;
+ let n = yw;
+ Pw().route(t.id), Tw = !0, Lw(e ? "切换中…" : "加载中…", t);
let r = null;
try {
- if (await uw(t.id).catch((e) => {
- if (!(e instanceof YC)) throw e;
- }), n !== _w) return;
- let i = Tw, a = !!(e && i);
- a || Iw(i);
- let o = fie(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, hie(o.video), await pie(o, t), await mie(o), o.disposed || (gie(lie(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await fw(t.id).catch((e) => {
+ if (!(e instanceof ZC)) throw e;
+ }), n !== yw) return;
+ let i = Dw, a = !!(e && i);
+ a || Rw(i);
+ let o = die(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, mie(o.video), await fie(o, t), await pie(o), o.disposed || (hie(cie(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)), Iw(i), o.el.style.transform = ""), o.disposed)) return;
- Tw = o, r = null, o.video.play()?.catch(() => {}), gw = {
- ...gw,
+ })), await new Promise((e) => setTimeout(e, 210)), Rw(i), o.el.style.transform = ""), o.disposed)) return;
+ Dw = o, r = null, o.video.play()?.catch(() => {}), vw = {
+ ...vw,
idle: !1,
shown: {
item: t,
- index: Sw,
- length: xw.length
+ index: ww,
+ length: Cw.length
}
- }, _ie(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), Fw(null);
+ }, gie(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), Lw(null);
} catch {
- Iw(r), n === _w && Fw(null);
+ Rw(r), n === yw && Lw(null);
} finally {
- n === _w && (Cw = !1);
+ n === yw && (Tw = !1);
}
}
-async function Hw(e) {
- if (Cw || !gw.open) return;
- let t = _w;
- if (Sw += e, Fw("切换中…", xw[Sw] ?? null), Sw >= xw.length - 3 && !ww) {
- ww = !0;
+async function Ww(e) {
+ if (Tw || !vw.open) return;
+ let t = yw;
+ if (ww += e, Lw("切换中…", Cw[ww] ?? null), ww >= Cw.length - 3 && !Ew) {
+ Ew = !0;
try {
- yw += 1;
- let e = await Bw();
- t === _w && (xw = oie(xw, e));
+ xw += 1;
+ let e = await Hw();
+ t === yw && (Cw = aie(Cw, e));
} catch {} finally {
- ww = !1;
+ Ew = !1;
}
}
- t === _w && (Sw >= xw.length && (Sw = 0), Sw < 0 && (Sw = xw.length - 1), await Vw(e));
+ t === yw && (ww >= Cw.length && (ww = 0), ww < 0 && (ww = Cw.length - 1), await Uw(e));
}
-async function vie(e) {
- let t = ++_w;
- Uw(), vw += 1, yw = 0, bw = nie(Mw().filters()), p.removeQueries({ queryKey: ["immerse-list"] }), gw = {
- ...gw,
+async function _ie(e) {
+ let t = ++yw;
+ Gw(), bw += 1, xw = 0, Sw = tie(Pw().filters()), p.removeQueries({ queryKey: ["immerse-list"] }), vw = {
+ ...vw,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), Fw("加载内容…");
+ }, document.body.setAttribute("data-immerse-open", ""), Lw("加载内容…");
try {
- let n = await Bw();
+ let n = await Hw();
if (e && !n.some((t) => t.id === e)) {
- let t = await uw(e).catch((e) => {
- if (e instanceof YC) return null;
+ let t = await fw(e).catch((e) => {
+ if (e instanceof ZC) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== _w) return;
- if (xw = n, !xw.length) {
- Ww(), Mw().warn("当前筛选下没有可直接播放的内容");
+ if (t !== yw) return;
+ if (Cw = n, !Cw.length) {
+ Kw(), Pw().warn("当前筛选下没有可直接播放的内容");
return;
}
- Sw = Math.max(0, xw.findIndex((t) => t.id === e)), await Vw();
+ ww = Math.max(0, Cw.findIndex((t) => t.id === e)), await Uw();
} catch {
- if (t !== _w) return;
- Fw(null), Ww();
+ if (t !== yw) return;
+ Lw(null), Kw();
}
}
-function Uw() {
- clearInterval(kw), kw = 0, Xw(), Jw = null, Aw = null, jw = !1, [...Ew].forEach(Iw), Cw = !1;
+function Gw() {
+ clearInterval(jw), jw = 0, Qw(), Xw = null, Mw = null, Nw = !1, [...Ow].forEach(Rw), Tw = !1;
}
-function Ww() {
- gw.open && (_w++, Uw(), gw = dw, document.body.removeAttribute("data-immerse-open"), Nw(), Mw().closed());
+function Kw() {
+ vw.open && (yw++, Gw(), vw = pw, document.body.removeAttribute("data-immerse-open"), Fw(), Pw().closed());
}
-var Gw = 0, Kw = null, qw = 0, Jw = null, Yw = 0;
-function Xw() {
- clearTimeout(Gw), Gw = 0, Kw = null;
+var qw = 0, Jw = null, Yw = 0, Xw = null, Zw = 0;
+function Qw() {
+ clearTimeout(qw), qw = 0, Jw = null;
}
-function yie(e) {
- let t = Tw?.video;
+function vie(e) {
+ let t = Dw?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- if (Kw && Kw.side === n && r - Kw.at <= 280) {
- Xw(), xre(t, Mw().seekSeconds() * n);
+ if (Jw && Jw.side === n && r - Jw.at <= 280) {
+ Qw(), bre(t, Pw().seekSeconds() * n);
return;
}
- Gw && (clearTimeout(Gw), Gw = 0, NC(t)), Kw = {
+ qw && (clearTimeout(qw), qw = 0, FC(t)), Jw = {
side: n,
at: r
- }, Gw = window.setTimeout(() => {
- Gw = 0, Kw = null, gw.open && NC(Tw?.video);
+ }, qw = window.setTimeout(() => {
+ qw = 0, Jw = null, vw.open && FC(Dw?.video);
}, 280);
}
-function bie() {
- Date.now() < qw || NC(Tw?.video);
+function yie() {
+ Date.now() < Yw || FC(Dw?.video);
}
-var Zw = (e) => hw?.bar.toggleAttribute("data-scrubbing", e);
-function Qw(e) {
- hw && (hw.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var $w = (e) => _w?.bar.toggleAttribute("data-scrubbing", e);
+function eT(e) {
+ _w && (_w.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function $w(e) {
+function tT(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- Jw = null;
+ Xw = null;
return;
}
- let n = Tw?.video;
- Jw = {
+ let n = Dw?.video;
+ Xw = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function eT(e) {
- if (!Jw || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - Jw.x, n = e.touches[0].clientY - Jw.y;
- if (!Jw.axis) {
+function nT(e) {
+ if (!Xw || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - Xw.x, n = e.touches[0].clientY - Xw.y;
+ if (!Xw.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- Jw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Jw.axis === "x" && Zw(!0);
+ Xw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Xw.axis === "x" && $w(!0);
}
- if (Jw.axis !== "x") return;
- let r = Tw?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), Jw.to = Math.min(i, Math.max(0, Jw.from + t / window.innerWidth * i)), Qw(Jw.to / i));
+ if (Xw.axis !== "x") return;
+ let r = Dw?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), Xw.to = Math.min(i, Math.max(0, Xw.from + t / window.innerWidth * i)), eT(Xw.to / i));
}
-function tT(e) {
- if (!Jw) return;
- let t = Jw;
- if (Jw = null, qw = Date.now() + 700, Zw(!1), t.axis === "x") {
- let e = Tw?.video;
+function rT(e) {
+ if (!Xw) return;
+ let t = Xw;
+ if (Xw = null, Yw = Date.now() + 700, $w(!1), t.axis === "x") {
+ let e = Dw?.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) {
- Xw(), Hw(i > 0 ? 1 : -1);
+ Qw(), Ww(i > 0 ? 1 : -1);
return;
}
- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), yie(n.clientX));
+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), vie(n.clientX));
}
-function nT() {
- Jw = null, Zw(!1);
+function iT() {
+ Xw = null, $w(!1);
}
-function rT(e) {
+function aT(e) {
let t = Date.now();
- t - Yw < 260 || (Yw = t, Hw(e.deltaY > 0 ? 1 : -1));
+ t - Zw < 260 || (Zw = t, Ww(e.deltaY > 0 ? 1 : -1));
}
-function iT(e) {
- let t = hw.bar.getBoundingClientRect();
+function oT(e) {
+ let t = _w.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
+function bie(e) {
+ Mw?.duration() && (Nw = !0, $w(!0), e.currentTarget.setPointerCapture(e.pointerId), eT(oT(e)), e.preventDefault());
+}
function xie(e) {
- Aw?.duration() && (jw = !0, Zw(!0), e.currentTarget.setPointerCapture(e.pointerId), Qw(iT(e)), e.preventDefault());
+ Nw && eT(oT(e));
}
function Sie(e) {
- jw && Qw(iT(e));
-}
-function Cie(e) {
- if (!jw) return;
- jw = !1, Zw(!1);
- let t = Aw?.duration();
- Aw && t && (Aw.video.currentTime = t * iT(e));
+ if (!Nw) return;
+ Nw = !1, $w(!1);
+ let t = Mw?.duration();
+ Mw && t && (Mw.video.currentTime = t * oT(e));
}
-function wie() {
- jw = !1, Zw(!1);
+function Cie() {
+ Nw = !1, $w(!1);
}
-async function aT(e, t) {
- let n = await G(WC, {
+async function sT(e, t) {
+ let n = await G(KC, {
id: e,
kind: t
- }), r = p.getQueryData(VC(e));
- if (!r) return zC(e, {
+ }), r = p.getQueryData(UC(e));
+ if (!r) return VC(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -24944,7 +24944,7 @@ async function aT(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return p.setQueryData(VC(e), i), zC(e, {
+ return p.setQueryData(UC(e), i), VC(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -24952,7 +24952,7 @@ async function aT(e, t) {
o_count: i.o_count
}), n;
}
-var Tie = [
+var wie = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -24969,31 +24969,31 @@ var Tie = [
label: "记一次高潮"
}
];
-function oT(e) {
- return SS({
- queryKey: VC(e ?? 0),
- queryFn: ({ signal: t }) => XC(e, t),
+function cT(e) {
+ return TS({
+ queryKey: UC(e ?? 0),
+ queryFn: ({ signal: t }) => QC(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Eie({ kind: e, glyph: t, label: n, id: r }) {
- let i = oT(r), a = TS({
+function Tie({ kind: e, glyph: t, label: n, id: r }) {
+ let i = cT(r), a = OS({
mutationFn: async (t) => {
- let n = p.getQueryData(VC(t))?.feedback || null;
+ let n = p.getQueryData(UC(t))?.feedback || null;
return {
- result: await aT(t, e),
+ result: await sT(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- Mw().toast(lw(e, t), { undo: async () => {
- e === "o" ? await aT(r, "o-undo") : (t.feedback && await aT(r, t.feedback), n && await aT(r, n));
+ Pw().toast(dw(e, t), { undo: async () => {
+ e === "o" ? await sT(r, "o-undo") : (t.feedback && await sT(r, t.feedback), n && await sT(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- Hw(1);
+ Ww(1);
}, 260);
},
- onError: (e) => Mw().failure("更新反馈", e)
+ onError: (e) => Pw().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-immerse-action": "",
@@ -25024,11 +25024,11 @@ function Eie({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function Die({ shown: e }) {
- let t = e?.item ?? null, n = oT(t?.id ?? null), r = n ? sie(n) : null, i = Mw(), a = (e) => {
- e.preventDefault(), n && (Ww(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Eie({ shown: e }) {
+ let t = e?.item ?? null, n = cT(t?.id ?? null), r = n ? oie(n) : null, i = Pw(), a = (e) => {
+ e.preventDefault(), n && (Kw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (Ww(), i.openItem(t.id));
+ t && (Kw(), i.openItem(t.id));
}, s = r ? k(r.name, r.ref, de(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-immerse-ui": "",
@@ -25057,18 +25057,18 @@ function Die({ shown: e }) {
})]
});
}
-var Oie = { __html: Qe("媒体加载中") };
-function kie({ view: e }) {
+var Die = { __html: Qe("媒体加载中") };
+function Oie({ view: e }) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current;
- return hw = {
+ return _w = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", $w, { passive: !0 }), e.addEventListener("touchmove", eT, { passive: !1 }), e.addEventListener("touchend", tT, { passive: !1 }), e.addEventListener("touchcancel", nT, { passive: !0 }), e.addEventListener("wheel", rT, { passive: !0 }), () => {
- e.removeEventListener("touchstart", $w), e.removeEventListener("touchmove", eT), e.removeEventListener("touchend", tT), e.removeEventListener("touchcancel", nT), e.removeEventListener("wheel", rT), hw = null;
+ }, e.addEventListener("touchstart", tT, { passive: !0 }), e.addEventListener("touchmove", nT, { passive: !1 }), e.addEventListener("touchend", rT, { passive: !1 }), e.addEventListener("touchcancel", iT, { passive: !0 }), e.addEventListener("wheel", aT, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", tT), e.removeEventListener("touchmove", nT), e.removeEventListener("touchend", rT), e.removeEventListener("touchcancel", iT), e.removeEventListener("wheel", aT), _w = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -25085,10 +25085,10 @@ function kie({ view: e }) {
children: [/* @__PURE__ */ (0, B.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: bie
+ onClick: yie
}), /* @__PURE__ */ (0, B.jsx)("div", {
"data-immerse-actions": "",
- children: Tie.map((e) => /* @__PURE__ */ (0, B.jsx)(Eie, {
+ children: wie.map((e) => /* @__PURE__ */ (0, B.jsx)(Tie, {
...e,
id: a
}, e.kind))
@@ -25101,7 +25101,7 @@ function kie({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, B.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Oie
+ dangerouslySetInnerHTML: Die
}), /* @__PURE__ */ (0, B.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, B.jsx)("button", {
@@ -25109,7 +25109,7 @@ function kie({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: Ww,
+ onClick: Kw,
children: /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-x" })
@@ -25118,71 +25118,71 @@ function kie({ view: e }) {
/* @__PURE__ */ (0, B.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: xie,
- onPointerMove: Sie,
- onPointerUp: Cie,
- onPointerCancel: wie,
+ onPointerDown: bie,
+ onPointerMove: xie,
+ onPointerUp: Sie,
+ onPointerCancel: Cie,
children: /* @__PURE__ */ (0, B.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, B.jsx)(Die, { shown: e.shown })
+ /* @__PURE__ */ (0, B.jsx)(Eie, { shown: e.shown })
]
});
}
-var Aie = {
- open: vie,
- close: Ww,
- isOpen: () => gw.open,
- activeVideo: () => gw.open ? Tw?.video ?? null : null
+var kie = {
+ open: _ie,
+ close: Kw,
+ isOpen: () => vw.open,
+ activeVideo: () => vw.open ? Dw?.video ?? null : null
};
-function jie(e) {
- if (!gw.open) return;
+function Aie(e) {
+ if (!vw.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Hw(1), e.key === "ArrowUp" && Hw(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Ww(1), e.key === "ArrowUp" && Ww(-1));
}
-function Mie(e) {
- let t = !fw;
- return fw = e, Nw(), t && (document.addEventListener("keydown", jie), addEventListener("resize", () => {
- gw.open && zw();
+function jie(e) {
+ let t = !mw;
+ return mw = e, Fw(), t && (document.addEventListener("keydown", Aie), addEventListener("resize", () => {
+ vw.open && Vw();
}), addEventListener("pagehide", () => {
- Ew.forEach((e) => pC(e.session));
- })), Aie;
+ Ow.forEach((e) => gC(e.session));
+ })), kie;
}
//#endregion
//#region src/manage-header.ts
-var Nie = {
+var Mie = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/scraping": "来源和凭证"
-}, Pie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Fie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
-function Iie(e) {
+}, Nie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Pie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function Fie(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = Nie[e.path] ?? "";
+ let n = Mie[e.path] ?? "";
return {
title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],
crumb: n,
- compact: Pie.has(e.path) || e.section === "configuration",
+ compact: Nie.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Fie(e.trash),
+ text: Pie(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var Lie = "<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 Iie = "<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 sT({ name: e }) {
+function lT({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-function Rie({ name: e }) {
+function Lie({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -25191,29 +25191,29 @@ function Rie({ name: e }) {
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var cT = null, lT = null, uT = null;
-function zie() {
- let e = cT, t = uT;
- !e || !lT || !t || (0, np.flushSync)(() => lT.render(/* @__PURE__ */ (0, B.jsx)(Hie, {
+var uT = null, dT = null, fT = null;
+function Rie() {
+ let e = uT, t = fT;
+ !e || !dT || !t || (0, rp.flushSync)(() => dT.render(/* @__PURE__ */ (0, B.jsx)(Vie, {
host: e,
props: t
})));
}
-var Bie = { render(e) {
- uT = e, zie();
+var zie = { render(e) {
+ fT = e, Rie();
} };
-function Vie(e) {
- return cT = e, uT = null, e.root.replaceChildren(), lT = (0, rp.createRoot)(e.root), Bie;
+function Bie(e) {
+ return uT = e, fT = null, e.root.replaceChildren(), dT = (0, ip.createRoot)(e.root), zie;
}
-function Hie({ host: e, props: t }) {
- let n = Iie(t);
+function Vie({ host: e, props: t }) {
+ let n = Fie(t);
return n ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(Uie, {
+ /* @__PURE__ */ (0, B.jsx)(Hie, {
host: e,
section: t.section,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, B.jsx)(Wie, {
+ n.crumb ? /* @__PURE__ */ (0, B.jsx)(Uie, {
host: e,
label: n.crumb
}) : null,
@@ -25222,29 +25222,29 @@ function Hie({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, B.jsx)(Gie, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, B.jsx)(Wie, {
host: e,
lede: n.lede
})
] }) : null;
}
-var dT = null;
-function fT(e, t, n) {
+var pT = null;
+function mT(e, t, n) {
e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);
}
-function Uie({ host: e, section: t, menu: n }) {
+function Hie({ host: e, section: t, menu: n }) {
let r = (0, R.useRef)(null), i = (0, R.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 || (fT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (dT = {
+ n && !n.offsetWidth || (mT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (pT = {
x: n.offsetLeft,
width: n.offsetWidth
}));
};
return (0, R.useLayoutEffect)(() => {
let e = r.current, t = i.current;
- dT ? fT(t, dT.x, dT.width) : a();
+ pT ? mT(t, pT.x, pT.width) : a();
let n = 0, o = requestAnimationFrame(() => {
t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);
}), s = new ResizeObserver(a);
@@ -25267,7 +25267,7 @@ function Uie({ host: e, section: t, menu: n }) {
"aria-pressed": a,
"aria-current": a ? "page" : void 0,
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, B.jsx)(sT, { name: i }), /* @__PURE__ */ (0, B.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: i }), /* @__PURE__ */ (0, B.jsx)("span", { children: r })]
}, n);
}), /* @__PURE__ */ (0, B.jsx)("span", {
ref: i,
@@ -25277,7 +25277,7 @@ function Uie({ host: e, section: t, menu: n }) {
})
});
}
-function Wie({ host: e, label: t }) {
+function Uie({ host: e, label: t }) {
return /* @__PURE__ */ (0, B.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "Breadcrumb",
@@ -25287,20 +25287,20 @@ function Wie({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, B.jsx)(sT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, B.jsx)("li", {
+ }), /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, B.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, B.jsx)("span", { children: t })
})] })
});
}
-function Gie({ host: e, lede: t }) {
+function Wie({ host: e, lede: t }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: Lie }
- }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Kie, { text: t.text }), t.total ? /* @__PURE__ */ (0, B.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: Iie }
+ }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Gie, { text: t.text }), t.total ? /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -25310,7 +25310,7 @@ function Gie({ host: e, lede: t }) {
}) : null] })
});
}
-function Kie({ text: e }) {
+function Gie({ text: e }) {
let t = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
$e(t.current, e);
@@ -25321,7 +25321,7 @@ function Kie({ text: e }) {
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25329,7 +25329,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Jie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25337,7 +25337,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25345,7 +25345,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25353,7 +25353,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25361,7 +25361,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), Yie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), Jie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25369,7 +25369,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25377,7 +25377,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Xie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Yie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25385,7 +25385,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25393,7 +25393,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), Xie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25401,7 +25401,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25409,7 +25409,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25417,7 +25417,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25425,7 +25425,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25433,7 +25433,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25441,7 +25441,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25449,7 +25449,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25457,7 +25457,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25465,7 +25465,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25473,7 +25473,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25481,7 +25481,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25489,7 +25489,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25497,7 +25497,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25505,7 +25505,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25513,7 +25513,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), DT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25521,7 +25521,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), OT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25529,7 +25529,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25537,7 +25537,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25545,7 +25545,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25553,7 +25553,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25561,7 +25561,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25569,7 +25569,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), DT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), kT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25577,7 +25577,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25585,7 +25585,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), OT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), AT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25593,7 +25593,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), kT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), jT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25601,7 +25601,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), AT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), MT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25609,7 +25609,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), jT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), NT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25617,7 +25617,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25625,7 +25625,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25633,7 +25633,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25641,7 +25641,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25649,7 +25649,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), MT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), PT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25657,7 +25657,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), NT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), FT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25665,7 +25665,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25673,7 +25673,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25681,7 +25681,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
+}, R.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" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -25689,100 +25689,100 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
fill: e,
...r,
className: "remixicon " + (n || "")
-}, R.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" })), vae = (e, t) => {
+}, R.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" })), _ae = (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;
-}, yae = (e, t) => ({
+}, vae = (e, t) => ({
classGroupId: e,
validator: t
-}), PT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), IT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), FT = "-", IT = [], bae = "arbitrary..", xae = (e) => {
- let t = Cae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), LT = "-", RT = [], yae = "arbitrary..", bae = (e) => {
+ let t = Sae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Sae(e);
- let n = e.split(FT);
- return LT(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return xae(e);
+ let n = e.split(LT);
+ return zT(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? vae(i, t) : t : i || IT;
+ return t ? i ? _ae(i, t) : t : i || RT;
}
- return n[e] || IT;
+ return n[e] || RT;
}
};
-}, LT = (e, t, n) => {
+}, zT = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = LT(e, t + 1, i);
+ let n = zT(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(FT) : e.slice(t).join(FT), s = a.length;
+ let o = t === 0 ? e.join(LT) : e.slice(t).join(LT), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Sae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, xae = (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 ? bae + r : void 0;
-})(), Cae = (e) => {
+ return r ? yae + r : void 0;
+})(), Sae = (e) => {
let { theme: t, classGroups: n } = e;
- return wae(n, t);
-}, wae = (e, t) => {
- let n = PT();
+ return Cae(n, t);
+}, Cae = (e, t) => {
+ let n = IT();
for (let r in e) {
let i = e[r];
- RT(i, n, r, t);
+ BT(i, n, r, t);
}
return n;
-}, RT = (e, t, n, r) => {
+}, BT = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Tae(i, t, n, r);
+ wae(i, t, n, r);
}
-}, Tae = (e, t, n, r) => {
+}, wae = (e, t, n, r) => {
if (typeof e == "string") {
- Eae(e, t, n);
+ Tae(e, t, n);
return;
}
if (typeof e == "function") {
- Dae(e, t, n, r);
+ Eae(e, t, n, r);
return;
}
- Oae(e, t, n, r);
-}, Eae = (e, t, n) => {
- let r = e === "" ? t : zT(t, e);
+ Dae(e, t, n, r);
+}, Tae = (e, t, n) => {
+ let r = e === "" ? t : VT(t, e);
r.classGroupId = n;
-}, Dae = (e, t, n, r) => {
- if (kae(e)) {
- RT(e(r), t, n, r);
+}, Eae = (e, t, n, r) => {
+ if (Oae(e)) {
+ BT(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(yae(n, e));
-}, Oae = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(vae(n, e));
+}, Dae = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- RT(o, zT(t, a), n, r);
+ BT(o, VT(t, a), n, r);
}
-}, zT = (e, t) => {
- let n = e, r = t.split(FT), i = r.length;
+}, VT = (e, t) => {
+ let n = e, r = t.split(LT), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = PT(), n.nextPart.set(t, i)), n = i;
+ i || (i = IT(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, kae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Aae = (e) => {
+}, Oae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kae = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -25800,19 +25800,19 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
e in n ? n[e] = t : i(e, t);
}
};
-}, BT = "!", VT = ":", jae = [], HT = (e, t, n, r, i) => ({
+}, HT = "!", UT = ":", Aae = [], WT = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Mae = (e) => {
+}), jae = (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 === VT) {
+ if (o === UT) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -25824,13 +25824,13 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(BT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(BT) && (c = s.slice(1), l = !0);
+ s.endsWith(HT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(HT) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return HT(t, l, c, u);
+ return WT(t, l, c, u);
};
if (t) {
- let e = t + VT, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : HT(jae, !1, t, void 0, !0);
+ let e = t + UT, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : WT(Aae, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -25840,7 +25840,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
});
}
return r;
-}, Nae = (e) => {
+}, Mae = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -25852,18 +25852,18 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Pae = (e) => ({
- cache: Aae(e.cacheSize),
- parseClassName: Mae(e),
- sortModifiers: Nae(e),
- postfixLookupClassGroupIds: Fae(e),
- ...xae(e)
-}), Fae = (e) => {
+}, Nae = (e) => ({
+ cache: kae(e.cacheSize),
+ parseClassName: jae(e),
+ sortModifiers: Mae(e),
+ postfixLookupClassGroupIds: Pae(e),
+ ...bae(e)
+}), Pae = (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;
-}, Iae = /\s+/, Lae = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Iae), l = "";
+}, Fae = /\s+/, Iae = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Fae), 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) {
@@ -25887,7 +25887,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + BT : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + HT : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -25898,34 +25898,34 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Rae = (...e) => {
+}, Lae = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = UT(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = GT(n)) && (i && (i += " "), i += r);
return i;
-}, UT = (e) => {
+}, GT = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = UT(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = GT(e[r])) && (n && (n += " "), n += t);
return n;
-}, WT = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Pae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, KT = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Nae(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 = Lae(e, n);
+ let a = Iae(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Rae(...e));
-}, zae = [], GT = (e) => {
- let t = (t) => t[e] || zae;
+ return a = o, (...e) => a(Lae(...e));
+}, Rae = [], qT = (e) => {
+ let t = (t) => t[e] || Rae;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, KT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Bae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Vae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hae = /\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$/, Uae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Wae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Gae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, JT = (e) => Bae.test(e), YT = (e) => !!e && !Number.isNaN(Number(e)), XT = (e) => !!e && Number.isInteger(Number(e)), ZT = (e) => e.endsWith("%") && YT(e.slice(0, -1)), QT = (e) => Vae.test(e), $T = () => !0, Kae = (e) => Hae.test(e) && !Uae.test(e), eE = () => !1, qae = (e) => Wae.test(e), Jae = (e) => Gae.test(e), Yae = (e) => !K(e) && !q(e), Xae = (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)), Zae = (e) => cE(e, fE, eE), K = (e) => KT.test(e), tE = (e) => cE(e, pE, Kae), nE = (e) => cE(e, aoe, YT), Qae = (e) => cE(e, hE, $T), $ae = (e) => cE(e, mE, eE), rE = (e) => cE(e, uE, eE), eoe = (e) => cE(e, dE, Jae), iE = (e) => cE(e, gE, qae), q = (e) => qT.test(e), aE = (e) => lE(e, pE), toe = (e) => lE(e, mE), oE = (e) => lE(e, uE), noe = (e) => lE(e, fE), roe = (e) => lE(e, dE), sE = (e) => lE(e, gE, !0), ioe = (e) => lE(e, hE, !0), cE = (e, t, n) => {
- let r = KT.exec(e);
+}, JT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, YT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Bae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vae = /\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$/, Hae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Uae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, XT = (e) => zae.test(e), ZT = (e) => !!e && !Number.isNaN(Number(e)), QT = (e) => !!e && Number.isInteger(Number(e)), $T = (e) => e.endsWith("%") && ZT(e.slice(0, -1)), eE = (e) => Bae.test(e), tE = () => !0, Gae = (e) => Vae.test(e) && !Hae.test(e), nE = () => !1, Kae = (e) => Uae.test(e), qae = (e) => Wae.test(e), Jae = (e) => !K(e) && !q(e), Yae = (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)), Xae = (e) => uE(e, mE, nE), K = (e) => JT.test(e), rE = (e) => uE(e, hE, Gae), iE = (e) => uE(e, ioe, ZT), Zae = (e) => uE(e, _E, tE), Qae = (e) => uE(e, gE, nE), aE = (e) => uE(e, fE, nE), $ae = (e) => uE(e, pE, qae), oE = (e) => uE(e, vE, Kae), q = (e) => YT.test(e), sE = (e) => dE(e, hE), eoe = (e) => dE(e, gE), cE = (e) => dE(e, fE), toe = (e) => dE(e, mE), noe = (e) => dE(e, pE), lE = (e) => dE(e, vE, !0), roe = (e) => dE(e, _E, !0), uE = (e, t, n) => {
+ let r = JT.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, lE = (e, t, n = !1) => {
- let r = qT.exec(e);
+}, dE = (e, t, n = !1) => {
+ let r = YT.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, uE = (e) => e === "position" || e === "percentage", dE = (e) => e === "image" || e === "url", fE = (e) => e === "length" || e === "size" || e === "bg-size", pE = (e) => e === "length", aoe = (e) => e === "number", mE = (e) => e === "family-name", hE = (e) => e === "number" || e === "weight", gE = (e) => e === "shadow", _E = () => {
- let e = GT("color"), t = GT("font"), n = GT("text"), r = GT("font-weight"), i = GT("tracking"), a = GT("leading"), o = GT("breakpoint"), s = GT("container"), c = GT("spacing"), l = GT("radius"), u = GT("shadow"), d = GT("inset-shadow"), f = GT("text-shadow"), p = GT("drop-shadow"), m = GT("blur"), h = GT("perspective"), g = GT("aspect"), _ = GT("ease"), v = GT("animate"), y = () => [
+}, fE = (e) => e === "position" || e === "percentage", pE = (e) => e === "image" || e === "url", mE = (e) => e === "length" || e === "size" || e === "bg-size", hE = (e) => e === "length", ioe = (e) => e === "number", gE = (e) => e === "family-name", _E = (e) => e === "number" || e === "weight", vE = (e) => e === "shadow", yE = () => {
+ let e = qT("color"), t = qT("font"), n = qT("text"), r = qT("font-weight"), i = qT("tracking"), a = qT("leading"), o = qT("breakpoint"), s = qT("container"), c = qT("spacing"), l = qT("radius"), u = qT("shadow"), d = qT("inset-shadow"), f = qT("text-shadow"), p = qT("drop-shadow"), m = qT("blur"), h = qT("perspective"), g = qT("aspect"), _ = qT("ease"), v = qT("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -25967,12 +25967,12 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K,
c
], T = () => [
- JT,
+ XT,
"full",
"auto",
...w()
], E = () => [
- XT,
+ QT,
"none",
"subgrid",
q,
@@ -25981,15 +25981,15 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"auto",
{ span: [
"full",
- XT,
+ QT,
q,
K
] },
- XT,
+ QT,
q,
K
], O = () => [
- XT,
+ QT,
"auto",
q,
K
@@ -26019,7 +26019,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- JT,
+ XT,
"auto",
"full",
"dvw",
@@ -26034,7 +26034,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
...w()
], ee = () => [
s,
- JT,
+ XT,
"screen",
"full",
"dvw",
@@ -26045,7 +26045,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"fit",
...w()
], te = () => [
- JT,
+ XT,
"screen",
"full",
"lh",
@@ -26062,8 +26062,8 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
], F = () => [
...b(),
- oE,
- rE,
+ cE,
+ aE,
{ position: [q, K] }
], ne = () => ["no-repeat", { repeat: [
"",
@@ -26075,13 +26075,13 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"auto",
"cover",
"contain",
- noe,
- Zae,
+ toe,
+ Xae,
{ size: [q, K] }
], ie = () => [
- ZT,
- aE,
- tE
+ $T,
+ sE,
+ rE
], ae = () => [
"",
"none",
@@ -26091,9 +26091,9 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
], oe = () => [
"",
- YT,
- aE,
- tE
+ ZT,
+ sE,
+ rE
], se = () => [
"solid",
"dashed",
@@ -26117,10 +26117,10 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"color",
"luminosity"
], le = () => [
- YT,
ZT,
- oE,
- rE
+ $T,
+ cE,
+ aE
], ue = () => [
"",
"none",
@@ -26129,20 +26129,20 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
], de = () => [
"none",
- YT,
+ ZT,
q,
K
], fe = () => [
"none",
- YT,
+ ZT,
q,
K
], I = () => [
- YT,
+ ZT,
q,
K
], pe = () => [
- JT,
+ XT,
"full",
...w()
];
@@ -26156,17 +26156,17 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"bounce"
],
aspect: ["video"],
- blur: [QT],
- breakpoint: [QT],
- color: [$T],
- container: [QT],
- "drop-shadow": [QT],
+ blur: [eE],
+ breakpoint: [eE],
+ color: [tE],
+ container: [eE],
+ "drop-shadow": [eE],
ease: [
"in",
"out",
"in-out"
],
- font: [Yae],
+ font: [Jae],
"font-weight": [
"thin",
"extralight",
@@ -26178,7 +26178,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"extrabold",
"black"
],
- "inset-shadow": [QT],
+ "inset-shadow": [eE],
leading: [
"none",
"tight",
@@ -26195,11 +26195,11 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"distant",
"none"
],
- radius: [QT],
- shadow: [QT],
- spacing: ["px", YT],
- text: [QT],
- "text-shadow": [QT],
+ radius: [eE],
+ shadow: [eE],
+ spacing: ["px", ZT],
+ text: [eE],
+ "text-shadow": [eE],
tracking: [
"tighter",
"tight",
@@ -26213,7 +26213,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
aspect: [{ aspect: [
"auto",
"square",
- JT,
+ XT,
K,
q,
g
@@ -26226,9 +26226,9 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
q,
K
] }],
- "container-named": [Xae],
+ "container-named": [Yae],
columns: [{ columns: [
- YT,
+ ZT,
"auto",
K,
q,
@@ -26328,13 +26328,13 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"collapse"
],
z: [{ z: [
- XT,
+ QT,
"auto",
q,
K
] }],
basis: [{ basis: [
- JT,
+ XT,
"full",
"auto",
s,
@@ -26352,8 +26352,8 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"wrap-reverse"
] }],
flex: [{ flex: [
- YT,
- JT,
+ ZT,
+ XT,
"auto",
"initial",
"none",
@@ -26361,18 +26361,18 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
grow: [{ grow: [
"",
- YT,
+ ZT,
q,
K
] }],
shrink: [{ shrink: [
"",
- YT,
+ ZT,
q,
K
] }],
order: [{ order: [
- XT,
+ QT,
"first",
"last",
"none",
@@ -26484,15 +26484,15 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"font-size": [{ text: [
"base",
n,
- aE,
- tE
+ sE,
+ rE
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- ioe,
- Qae
+ roe,
+ Zae
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -26504,12 +26504,12 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"expanded",
"extra-expanded",
"ultra-expanded",
- ZT,
+ $T,
K
] }],
"font-family": [{ font: [
- toe,
- $ae,
+ eoe,
+ Qae,
t
] }],
"font-features": [{ "font-features": [K] }],
@@ -26525,10 +26525,10 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
] }],
"line-clamp": [{ "line-clamp": [
- YT,
+ ZT,
"none",
q,
- nE
+ iE
] }],
leading: [{ leading: [
"none",
@@ -26566,15 +26566,15 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
],
"text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- YT,
+ ZT,
"from-font",
"auto",
q,
- tE
+ rE
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- YT,
+ ZT,
"auto",
q,
K
@@ -26598,7 +26598,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- XT,
+ QT,
q,
K
] }],
@@ -26676,7 +26676,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"l",
"tl"
] },
- XT,
+ QT,
q,
K
],
@@ -26687,13 +26687,13 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
],
conic: [
"",
- XT,
+ QT,
q,
K
]
},
- roe,
- eoe
+ noe,
+ $ae
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: ie() }],
@@ -26760,15 +26760,15 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- YT,
+ ZT,
q,
K
] }],
"outline-w": [{ outline: [
"",
- YT,
- aE,
- tE
+ ZT,
+ sE,
+ rE
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -26776,33 +26776,33 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"inner",
"none",
u,
- sE,
- iE
+ lE,
+ oE
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- sE,
- iE
+ lE,
+ oE
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [YT, tE] }],
+ "ring-offset-w": [{ "ring-offset": [ZT, rE] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": oe() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- sE,
- iE
+ lE,
+ oE
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- YT,
+ ZT,
q,
K
] }],
@@ -26826,7 +26826,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [YT] }],
+ "mask-image-linear-pos": [{ "mask-linear": [ZT] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": le() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": le() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -26866,7 +26866,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [YT] }],
+ "mask-image-conic-pos": [{ "mask-conic": [ZT] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": le() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": le() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -26901,12 +26901,12 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
blur: [{ blur: ue() }],
brightness: [{ brightness: [
- YT,
+ ZT,
q,
K
] }],
contrast: [{ contrast: [
- YT,
+ ZT,
q,
K
] }],
@@ -26914,35 +26914,35 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"",
"none",
p,
- sE,
- iE
+ lE,
+ oE
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- YT,
+ ZT,
q,
K
] }],
"hue-rotate": [{ "hue-rotate": [
- YT,
+ ZT,
q,
K
] }],
invert: [{ invert: [
"",
- YT,
+ ZT,
q,
K
] }],
saturate: [{ saturate: [
- YT,
+ ZT,
q,
K
] }],
sepia: [{ sepia: [
"",
- YT,
+ ZT,
q,
K
] }],
@@ -26954,45 +26954,45 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
"backdrop-blur": [{ "backdrop-blur": ue() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- YT,
+ ZT,
q,
K
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- YT,
+ ZT,
q,
K
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- YT,
+ ZT,
q,
K
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- YT,
+ ZT,
q,
K
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- YT,
+ ZT,
q,
K
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- YT,
+ ZT,
q,
K
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- YT,
+ ZT,
q,
K
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- YT,
+ ZT,
q,
K
] }],
@@ -27015,7 +27015,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- YT,
+ ZT,
"initial",
q,
K
@@ -27028,7 +27028,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
K
] }],
delay: [{ delay: [
- YT,
+ ZT,
q,
K
] }],
@@ -27073,7 +27073,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- XT,
+ QT,
q,
K
] }],
@@ -27217,10 +27217,10 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- YT,
- aE,
- tE,
- nE
+ ZT,
+ sE,
+ rE,
+ iE
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -27478,16 +27478,16 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"selection"
]
};
-}, ooe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (vE(e, "cacheSize", t), vE(e, "prefix", n), vE(e, "experimentalParseClassName", r), yE(e.theme, a.theme), yE(e.classGroups, a.classGroups), yE(e.conflictingClassGroups, a.conflictingClassGroups), yE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), vE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), vE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), bE(e.theme, i.theme), bE(e.classGroups, i.classGroups), bE(e.conflictingClassGroups, i.conflictingClassGroups), bE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), xE(e, i, "postfixLookupClassGroups"), xE(e, i, "orderSensitiveModifiers"), e), vE = (e, t, n) => {
+}, aoe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (bE(e, "cacheSize", t), bE(e, "prefix", n), bE(e, "experimentalParseClassName", r), xE(e.theme, a.theme), xE(e.classGroups, a.classGroups), xE(e.conflictingClassGroups, a.conflictingClassGroups), xE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), bE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), bE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), SE(e.theme, i.theme), SE(e.classGroups, i.classGroups), SE(e.conflictingClassGroups, i.conflictingClassGroups), SE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), CE(e, i, "postfixLookupClassGroups"), CE(e, i, "orderSensitiveModifiers"), e), bE = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, yE = (e, t) => {
- if (t) for (let n in t) vE(e, n, t[n]);
-}, bE = (e, t) => {
- if (t) for (let n in t) xE(e, t, n);
-}, xE = (e, t, n) => {
+}, xE = (e, t) => {
+ if (t) for (let n in t) bE(e, n, t[n]);
+}, SE = (e, t) => {
+ if (t) for (let n in t) CE(e, t, n);
+}, CE = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, soe = (e, ...t) => typeof e == "function" ? WT(_E, e, ...t) : WT(() => ooe(_E(), e), ...t), coe = [
+}, ooe = (e, ...t) => typeof e == "function" ? KT(yE, e, ...t) : KT(() => aoe(yE(), e), ...t), soe = [
"large-title",
"display-1",
"display-2",
@@ -27501,18 +27501,18 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R
"body-2",
"caption-1",
"caption-2"
-], loe = [
+], coe = [
"regular",
"medium",
"semibold",
"bold"
-], SE = soe({ extend: { classGroups: { "font-size": [{ text: coe.flatMap((e) => loe.map((t) => `${e}-${t}`)) }] } } });
-function CE(e) {
+], wE = ooe({ extend: { classGroups: { "font-size": [{ text: soe.flatMap((e) => coe.map((t) => `${e}-${t}`)) }] } } });
+function TE(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var wE = CE({
+var EE = TE({
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",
@@ -27531,16 +27531,16 @@ var wE = CE({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function TE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function DE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
ref: r,
- className: SE(wE.base, wE.variant[e], wE.color[t], n),
+ className: wE(EE.base, EE.variant[e], EE.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var EE = CE({
+var OE = TE({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -27599,40 +27599,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, B.jsxs)("button", {
ref: c,
type: s,
- className: SE(EE.base, EE.size[t], EE.variant[e], n && EE.iconOnlySize[t], o),
+ className: wE(OE.base, OE.size[t], OE.variant[e], n && OE.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, B.jsx)(r, {
- className: EE.icon[t],
+ className: OE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, B.jsx)("span", {
- className: EE.label[t],
+ className: OE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, B.jsx)(i, {
- className: EE.icon[t],
+ className: OE.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function DE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function kE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, B.jsxs)("a", {
ref: s,
- className: SE(EE.base, EE.size[t], EE.variant[e], n && EE.iconOnlySize[t], o),
+ className: wE(OE.base, OE.size[t], OE.variant[e], n && OE.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, B.jsx)(r, {
- className: EE.icon[t],
+ className: OE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, B.jsx)("span", {
- className: EE.label[t],
+ className: OE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, B.jsx)(i, {
- className: EE.icon[t],
+ className: OE.icon[t],
"aria-hidden": !0
}) : null
]
@@ -27640,47 +27640,47 @@ function DE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/components/card.tsx
-var uoe = "min-w-0", doe = {
+var loe = "min-w-0", uoe = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, foe = {
+}, doe = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, poe = {
+}, foe = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, moe = {
+}, poe = {
none: "",
default: "p-5"
-}, hoe = "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", goe = "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 OE(e = {}) {
+}, moe = "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", hoe = "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 AE(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 [
- uoe,
- doe[t],
- foe[s],
- moe[n],
- a ? poe[a] : "",
- r ? hoe : "",
- i ? goe : "",
+ loe,
+ uoe[t],
+ doe[s],
+ poe[n],
+ a ? foe[a] : "",
+ r ? moe : "",
+ i ? hoe : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var _oe = {
+var goe = {
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 kE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function jE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${_oe[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${goe[i]}`,
children: [
a ? /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
@@ -27710,7 +27710,7 @@ function kE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function AE({ label: e, inline: t = !1 }) {
+function ME({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, B.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -27776,7 +27776,7 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function jE({ children: e }) {
+function NE({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -27784,21 +27784,21 @@ function jE({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var ME = 100, voe = .4;
-function NE({ 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 * ME;
+var PE = 100, _oe = .4;
+function FE({ 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 * PE;
return /* @__PURE__ */ (0, B.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${ME} 1`,
+ viewBox: `0 0 ${PE} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, B.jsx)("rect", {
- width: ME,
+ width: PE,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -27809,7 +27809,7 @@ function NE({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, B.jsx)("rect", {
x: a(e),
- width: voe,
+ width: _oe,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -27826,7 +27826,7 @@ function X(e) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function PE(e = "") {
+function IE(e = "") {
let t = (0, R.useRef)(null), [n, r] = (0, R.useState)(""), [i, a] = (0, R.useState)(e);
(0, R.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -27852,12 +27852,12 @@ function PE(e = "") {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var FE = Symbol("default");
-function IE({ values: e, children: t }) {
+var LE = Symbol("default");
+function RE({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ R.createElement(n.Provider, { value: r }, t);
return t;
}
-function LE(e) {
+function zE(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, R.useMemo)(() => {
let e, l, u;
@@ -27891,11 +27891,11 @@ function LE(e) {
c
]);
}
-function RE(e, t) {
+function BE(e, t) {
let n = (0, R.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || FE;
+ let e = t || LE;
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}.`);
@@ -27904,8 +27904,8 @@ function RE(e, t) {
}
return n;
}
-function zE(e, t, n) {
- let { ref: r, ...i } = RE(n, e.slot) || {}, a = Lh((0, R.useMemo)(() => vh(t, r), [t, r])), o = H(i, e);
+function VE(e, t, n) {
+ let { ref: r, ...i } = BE(n, e.slot) || {}, a = Rh((0, R.useMemo)(() => yh(t, r), [t, r])), o = H(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,
@@ -27923,42 +27923,42 @@ function zE(e, t, n) {
...e.style
}), [o, a];
}
-function BE(e = !0) {
+function HE(e = !0) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return Kp(() => {
+ return qp(() => {
r.current || n(!1);
}, []), [i, t];
}
-function VE(e) {
+function UE(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function yoe(e, t, n) {
- let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => vh(n, a), [n, a]);
- Kp(() => {}, [e, r]);
+function voe(e, t, n) {
+ let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => yh(n, a), [n, a]);
+ qp(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ R.createElement(e, s);
}
-var HE = {}, UE = new Proxy({}, { get(e, t) {
+var WE = {}, GE = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = HE[t];
- return n || (n = /*#__PURE__*/ (0, R.forwardRef)(yoe.bind(null, t)), HE[t] = n), n;
-} }), WE = /*#__PURE__*/ (0, R.createContext)(null), GE = /*#__PURE__*/ (0, R.createContext)(null), KE = /*#__PURE__*/ (0, R.createContext)(null), qE = {
+ let n = WE[t];
+ return n || (n = /*#__PURE__*/ (0, R.forwardRef)(voe.bind(null, t)), WE[t] = n), n;
+} }), KE = /*#__PURE__*/ (0, R.createContext)(null), qE = /*#__PURE__*/ (0, R.createContext)(null), JE = /*#__PURE__*/ (0, R.createContext)(null), YE = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return JE(e, null, t);
+ return XE(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return JE(e, t, n);
+ return XE(e, t, n);
}
};
-function JE(e, t, n) {
- return hp({
+function XE(e, t, n) {
+ return gp({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -27968,11 +27968,11 @@ function JE(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, boe(e, t, n));
+ }), r, yoe(e, t, n));
}
});
}
-function boe(e, t, n) {
+function yoe(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);
@@ -27991,25 +27991,25 @@ function boe(e, t, n) {
}
return s;
}
-var YE = /*#__PURE__*/ (0, R.createContext)(qE);
-function XE(e) {
+var ZE = /*#__PURE__*/ (0, R.createContext)(YE);
+function QE(e) {
return (0, R.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var ZE = /*#__PURE__*/ (0, R.createContext)({}), xoe = /*#__PURE__*/ Wh(function(e, t) {
- [e, t] = zE(e, t, ZE);
- let { elementType: n = "label", ...r } = e, i = UE[n];
+var $E = /*#__PURE__*/ (0, R.createContext)({}), boe = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = VE(e, t, $E);
+ let { elementType: n = "label", ...r } = e, i = GE[n];
return /*#__PURE__*/ R.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Soe = /*#__PURE__*/ (0, R.createContext)(null), QE = /*#__PURE__*/ (0, R.createContext)({}), $E = /*#__PURE__*/ Wh(function(e, t) {
- [e, t] = zE(e, t, QE);
+}), xoe = /*#__PURE__*/ (0, R.createContext)(null), eD = /*#__PURE__*/ (0, R.createContext)({}), tD = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = VE(e, t, eD);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = jee(e, t);
- i = woe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = sy(e), { hoverProps: l, isHovered: u } = dy({
+ i = Coe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = cy(e), { hoverProps: l, isHovered: u } = fy({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -28019,24 +28019,24 @@ var ZE = /*#__PURE__*/ (0, R.createContext)({}), xoe = /*#__PURE__*/ Wh(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = LE({
+ }, f = zE({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = hh(i.id), m = hh(), h = i["aria-labelledby"];
+ }), p = gh(i.id), m = gh(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, R.useRef)(r);
(0, R.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && g_(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && __(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Ag(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ R.createElement(UE.button, {
+ let _ = jg(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ R.createElement(GE.button, {
...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -28050,62 +28050,62 @@ var ZE = /*#__PURE__*/ (0, R.createContext)({}), xoe = /*#__PURE__*/ Wh(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ R.createElement(Soe.Provider, { value: { id: m } }, f.children));
-}), Coe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function woe(e, t) {
+ }, /*#__PURE__*/ R.createElement(xoe.Provider, { value: { id: m } }, f.children));
+}), Soe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Coe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Coe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Soe.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 eD = /*#__PURE__*/ (0, R.createContext)({}), tD = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = zE(e, t, eD);
- let { children: n, level: r = 3, className: i, ...a } = e, o = UE[`h${r}`];
+var nD = /*#__PURE__*/ (0, R.createContext)({}), rD = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = VE(e, t, nD);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = GE[`h${r}`];
return /*#__PURE__*/ R.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), nD = /*#__PURE__*/ (0, R.createContext)({}), Toe = /*#__PURE__*/ Wh(function(e, t) {
- [e, t] = zE(e, t, nD);
- let { elementType: n = "span", ...r } = e, i = UE[n];
+}), iD = /*#__PURE__*/ (0, R.createContext)({}), woe = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = VE(e, t, iD);
+ let { elementType: n = "span", ...r } = e, i = GE[n];
return /*#__PURE__*/ R.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), rD = /*#__PURE__*/ (0, R.createContext)(null), iD = /*#__PURE__*/ (0, R.createContext)(null), aD = /*#__PURE__*/ (0, R.createContext)(null), oD = /*#__PURE__*/ (0, R.createContext)(null), Eoe = /*#__PURE__*/ (0, R.createContext)(null), sD = /*#__PURE__*/ (0, R.createContext)(null);
-function Doe(e, t) {
- let { validationBehavior: n } = RE(iD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(Eoe), a = Lh((0, R.useMemo)(() => vh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...VE(e),
+}), aD = /*#__PURE__*/ (0, R.createContext)(null), oD = /*#__PURE__*/ (0, R.createContext)(null), sD = /*#__PURE__*/ (0, R.createContext)(null), cD = /*#__PURE__*/ (0, R.createContext)(null), Toe = /*#__PURE__*/ (0, R.createContext)(null), lD = /*#__PURE__*/ (0, R.createContext)(null);
+function Eoe(e, t) {
+ let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(Toe), a = Rh((0, R.useMemo)(() => yh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...UE(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? ete(o, i, a) : L_(o, H_(e), a), a];
+ return [i ? ete(o, i, a) : R_(o, U_(e), a), a];
}
-var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var Doe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = zE(r, t, aD);
- let [i, a] = Doe(e, n);
- return /*#__PURE__*/ R.createElement(sD.Provider, { value: {
+ [e, t] = VE(r, t, sD);
+ let [i, a] = Eoe(e, n);
+ return /*#__PURE__*/ R.createElement(lD.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ R.createElement(koe, {
+ } }, /*#__PURE__*/ R.createElement(Ooe, {
...e,
ref: t
}));
-}), koe = /*#__PURE__*/ (0, R.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, R.useContext)(sD), { isFocused: p, isFocusVisible: m, focusProps: h } = sy(), g = a || o, { hoverProps: _, isHovered: v } = dy({
+}), Ooe = /*#__PURE__*/ (0, R.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, R.useContext)(lD), { isFocused: p, isFocusVisible: m, focusProps: h } = cy(), g = a || o, { hoverProps: _, isHovered: v } = fy({
...e,
isDisabled: g
- }), y = LE({
+ }), y = zE({
...e,
defaultClassName: u,
values: {
@@ -28120,8 +28120,8 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Ag(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(UE.label, {
+ }), b = jg(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(GE.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -28135,20 +28135,20 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ R.createElement(K_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ }, /*#__PURE__*/ R.createElement(q_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
...H(r, h),
ref: l
})), y.children);
-}), cD = /*#__PURE__*/ (0, R.createContext)({}), Aoe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = zE(e, t, cD);
+}), uD = /*#__PURE__*/ (0, R.createContext)({}), koe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = VE(e, t, uD);
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 } = dy({
+ let { hoverProps: l, isHovered: u } = fy({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = sy({ within: !0 }), m = LE({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = cy({ within: !0 }), m = zE({
...e,
values: {
isHovered: u,
@@ -28159,7 +28159,7 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ R.createElement(UE.div, {
+ return /*#__PURE__*/ R.createElement(GE.div, {
...H(c, p, l),
...m,
ref: t,
@@ -28172,18 +28172,18 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), lD = /*#__PURE__*/ (0, R.createContext)({}), joe = (e) => {
+}), dD = /*#__PURE__*/ (0, R.createContext)({}), Aoe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Moe = /*#__PURE__*/ Wh(function(e, t) {
- [e, t] = zE(e, t, lD);
- let { hoverProps: n, isHovered: r } = dy({
+}, joe = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = VE(e, t, dD);
+ let { hoverProps: n, isHovered: r } = fy({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = sy({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = cy({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = LE({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = zE({
...e,
values: {
isHovered: r,
@@ -28194,8 +28194,8 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ R.createElement(UE.input, {
- ...H(joe(e), o, n),
+ return /*#__PURE__*/ R.createElement(GE.input, {
+ ...H(Aoe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -28204,8 +28204,8 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), uD = {};
-uD = {
+}), fD = {};
+fD = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -28213,8 +28213,8 @@ uD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var dD = {};
-dD = {
+var pD = {};
+pD = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -28222,8 +28222,8 @@ dD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var fD = {};
-fD = {
+var mD = {};
+mD = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -28231,8 +28231,8 @@ fD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var pD = {};
-pD = {
+var hD = {};
+hD = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -28240,8 +28240,8 @@ pD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var mD = {};
-mD = {
+var gD = {};
+gD = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -28249,8 +28249,8 @@ mD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var hD = {};
-hD = {
+var _D = {};
+_D = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -28258,8 +28258,8 @@ hD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var gD = {};
-gD = {
+var vD = {};
+vD = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -28267,8 +28267,8 @@ gD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var _D = {};
-_D = {
+var yD = {};
+yD = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -28276,8 +28276,8 @@ _D = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var vD = {};
-vD = {
+var bD = {};
+bD = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -28285,8 +28285,8 @@ vD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var yD = {};
-yD = {
+var xD = {};
+xD = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -28294,8 +28294,8 @@ yD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var bD = {};
-bD = {
+var SD = {};
+SD = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -28303,8 +28303,8 @@ bD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var xD = {};
-xD = {
+var CD = {};
+CD = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -28312,8 +28312,8 @@ xD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var SD = {};
-SD = {
+var wD = {};
+wD = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -28321,8 +28321,8 @@ SD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var CD = {};
-CD = {
+var TD = {};
+TD = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -28330,8 +28330,8 @@ CD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var wD = {};
-wD = {
+var ED = {};
+ED = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -28339,8 +28339,8 @@ wD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var TD = {};
-TD = {
+var DD = {};
+DD = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -28348,8 +28348,8 @@ TD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var ED = {};
-ED = {
+var OD = {};
+OD = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -28357,8 +28357,8 @@ ED = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var DD = {};
-DD = {
+var kD = {};
+kD = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -28366,8 +28366,8 @@ DD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var OD = {};
-OD = {
+var AD = {};
+AD = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -28375,8 +28375,8 @@ OD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var kD = {};
-kD = {
+var jD = {};
+jD = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -28384,8 +28384,8 @@ kD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var AD = {};
-AD = {
+var MD = {};
+MD = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -28393,8 +28393,8 @@ AD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var jD = {};
-jD = {
+var ND = {};
+ND = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -28402,8 +28402,8 @@ jD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var MD = {};
-MD = {
+var PD = {};
+PD = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28411,8 +28411,8 @@ MD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var ND = {};
-ND = {
+var FD = {};
+FD = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28420,8 +28420,8 @@ ND = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var PD = {};
-PD = {
+var ID = {};
+ID = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -28429,8 +28429,8 @@ PD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var FD = {};
-FD = {
+var LD = {};
+LD = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -28438,8 +28438,8 @@ FD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var ID = {};
-ID = {
+var RD = {};
+RD = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -28447,8 +28447,8 @@ ID = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var LD = {};
-LD = {
+var zD = {};
+zD = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -28456,8 +28456,8 @@ LD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var RD = {};
-RD = {
+var BD = {};
+BD = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -28465,8 +28465,8 @@ RD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var zD = {};
-zD = {
+var VD = {};
+VD = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -28474,8 +28474,8 @@ zD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var BD = {};
-BD = {
+var HD = {};
+HD = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -28483,8 +28483,8 @@ BD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var VD = {};
-VD = {
+var UD = {};
+UD = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -28492,8 +28492,8 @@ VD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var HD = {};
-HD = {
+var WD = {};
+WD = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -28501,8 +28501,8 @@ HD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var UD = {};
-UD = {
+var GD = {};
+GD = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -28510,52 +28510,52 @@ UD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var WD = {};
-WD = {
- "ar-AE": uD,
- "bg-BG": dD,
- "cs-CZ": fD,
- "da-DK": pD,
- "de-DE": mD,
- "el-GR": hD,
- "en-US": gD,
- "es-ES": _D,
- "et-EE": vD,
- "fi-FI": yD,
- "fr-FR": bD,
- "he-IL": xD,
- "hr-HR": SD,
- "hu-HU": CD,
- "it-IT": wD,
- "ja-JP": TD,
- "ko-KR": ED,
- "lt-LT": DD,
- "lv-LV": OD,
- "nb-NO": kD,
- "nl-NL": AD,
- "pl-PL": jD,
- "pt-BR": MD,
- "pt-PT": ND,
- "ro-RO": PD,
- "ru-RU": FD,
- "sk-SK": ID,
- "sl-SI": LD,
- "sr-SP": RD,
- "sv-SE": zD,
- "tr-TR": BD,
- "uk-UA": VD,
- "zh-CN": HD,
- "zh-TW": UD
+var KD = {};
+KD = {
+ "ar-AE": fD,
+ "bg-BG": pD,
+ "cs-CZ": mD,
+ "da-DK": hD,
+ "de-DE": gD,
+ "el-GR": _D,
+ "en-US": vD,
+ "es-ES": yD,
+ "et-EE": bD,
+ "fi-FI": xD,
+ "fr-FR": SD,
+ "he-IL": CD,
+ "hr-HR": wD,
+ "hu-HU": TD,
+ "it-IT": ED,
+ "ja-JP": DD,
+ "ko-KR": OD,
+ "lt-LT": kD,
+ "lv-LV": AD,
+ "nb-NO": jD,
+ "nl-NL": MD,
+ "pl-PL": ND,
+ "pt-BR": PD,
+ "pt-PT": FD,
+ "ro-RO": ID,
+ "ru-RU": LD,
+ "sk-SK": RD,
+ "sl-SI": zD,
+ "sr-SP": BD,
+ "sv-SE": VD,
+ "tr-TR": HD,
+ "uk-UA": UD,
+ "zh-CN": WD,
+ "zh-TW": GD
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var GD = /*#__PURE__*/ (0, R.createContext)({}), KD = /*#__PURE__*/ (0, R.createContext)(null), Noe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { render: n } = (0, R.useContext)(KD);
+var qD = /*#__PURE__*/ (0, R.createContext)({}), JD = /*#__PURE__*/ (0, R.createContext)(null), Moe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { render: n } = (0, R.useContext)(JD);
return /*#__PURE__*/ R.createElement(R.Fragment, null, n(e, t));
});
-function qD(e, t) {
+function YD(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, R.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(Noe, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(Moe, { target: e });
}, [
t?.target,
r,
@@ -28563,7 +28563,7 @@ function qD(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function JD(e, t, n) {
+function XD(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;
@@ -28586,14 +28586,14 @@ function JD(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var YD = /*#__PURE__*/ (0, R.createContext)({}), Poe = /*#__PURE__*/ (0, R.createContext)(null);
-function XD(e) {
+var ZD = /*#__PURE__*/ (0, R.createContext)({}), Noe = /*#__PURE__*/ (0, R.createContext)(null);
+function QD(e) {
let t = (0, R.useRef)({});
- return /*#__PURE__*/ R.createElement(Poe.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ R.createElement(Noe.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var ZD = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), QD = /*#__PURE__*/ (0, R.createContext)({}), Foe = /*#__PURE__*/ ag(class extends ap {
+var $D = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), eO = /*#__PURE__*/ (0, R.createContext)({}), Poe = /*#__PURE__*/ og(class extends op {
static {
this.type = "separator";
}
@@ -28606,14 +28606,14 @@ var ZD = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), QD = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = zE(e, t, QD);
+ [e, t] = VE(e, t, eO);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = UE[c], { separatorProps: u } = tne({
+ let l = GE[c], { separatorProps: u } = dx({
...s,
elementType: n,
orientation: r
- }), d = Ag(e, { global: !0 });
+ }), d = jg(e, { global: !0 });
return /*#__PURE__*/ R.createElement(l, {
render: e.render,
...H(d, u),
@@ -28625,13 +28625,13 @@ var ZD = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), QD = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function $D(e) {
+function tO(e) {
let t = R.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 eO = class {
+var nO = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -28675,20 +28675,20 @@ var eO = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, tO = class e extends Set {
+}, rO = 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 Ioe(e, t) {
+function Foe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function nO(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = V_((0, R.useMemo)(() => rO(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => rO(e.defaultSelectedKeys, new tO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
+function iO(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = H_((0, R.useMemo)(() => aO(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => aO(e.defaultSelectedKeys, new rO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
@@ -28715,18 +28715,18 @@ function nO(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Ioe(e, d)) && f(e);
+ (r || !Foe(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function rO(e, t) {
- return e ? e === "all" ? "all" : new tO(e) : t;
+function aO(e, t) {
+ return e ? e === "all" ? "all" : new rO(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var iO = class e {
+var oO = 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;
}
@@ -28782,7 +28782,7 @@ var iO = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Yv(this.collection, n, e) < 0) && (e = n);
+ (!e || n && Xv(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28790,7 +28790,7 @@ var iO = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Yv(this.collection, n, e) > 0) && (e = n);
+ (!e || n && Xv(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28809,10 +28809,10 @@ var iO = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new tO([t], t, t);
+ if (this.state.selectedKeys === "all") n = new rO([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new tO(e, r, t);
+ n = new rO(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);
}
@@ -28820,7 +28820,7 @@ var iO = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? Yv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? Xv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -28846,19 +28846,19 @@ var iO = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new tO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new rO(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 tO([t], t, t) : new tO();
+ let n = this.canSelectItem(t) ? new rO([t], t, t) : new rO();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new tO();
+ let t = new rO();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -28870,7 +28870,7 @@ var iO = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Kv(Gv(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(qv(Kv(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -28881,7 +28881,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 tO());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new rO());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -28922,9 +28922,9 @@ var iO = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Loe = class {
+}, Ioe = class {
build(e, t) {
- return this.context = t, aO(() => this.iterateCollection(e));
+ return this.context = t, sO(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -29006,10 +29006,10 @@ var iO = class e {
...a,
key: l,
index: s,
- wrapper: Roe(e.wrapper, a.wrapper)
+ wrapper: Loe(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 <${oO(t.type)}> in <${oO(r?.type ?? "unknown parent type")}>. Only <${oO(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 <${cO(t.type)}> in <${cO(r?.type ?? "unknown parent type")}>. Only <${cO(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -29031,7 +29031,7 @@ var iO = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: aO(function* () {
+ childNodes: sO(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -29050,7 +29050,7 @@ var iO = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function aO(e) {
+function sO(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -29058,18 +29058,18 @@ function aO(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Roe(e, t) {
+function Loe(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function oO(e) {
+function cO(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function sO(e, t, n) {
- let r = (0, R.useMemo)(() => new Loe(), []), { children: i, items: a, collection: o } = e;
+function lO(e, t, n) {
+ let r = (0, R.useMemo)(() => new Ioe(), []), { children: i, items: a, collection: o } = e;
return (0, R.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -29084,27 +29084,27 @@ function sO(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function cO(e) {
- let { filter: t, layoutDelegate: n } = e, r = nO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = sO(e, (0, R.useCallback)((e) => t ? new eO(t(e)) : new eO(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new iO(a, r, { layoutDelegate: n }), [
+function uO(e) {
+ let { filter: t, layoutDelegate: n } = e, r = iO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = lO(e, (0, R.useCallback)((e) => t ? new nO(t(e)) : new nO(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new oO(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return lO(a, o), {
+ return dO(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function zoe(e, t) {
+function Roe(e, t) {
let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return lO(n, r), {
+ return dO(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function lO(e, t) {
+function dO(e, t) {
let n = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -29132,15 +29132,15 @@ function lO(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function uO(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = mg((e) => {
+function fO(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = hg((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- Kp(() => {
+ qp(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: y_(t?.current),
+ root: b_(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -29156,42 +29156,42 @@ function uO(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var dO = /*#__PURE__*/ (0, R.createContext)(null), fO = /*#__PURE__*/ (0, R.createContext)(null), Boe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = zE(e, t, dO);
- let n = (0, R.useContext)(fO);
- return n ? /*#__PURE__*/ R.createElement(pO, {
+var pO = /*#__PURE__*/ (0, R.createContext)(null), mO = /*#__PURE__*/ (0, R.createContext)(null), zoe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = VE(e, t, pO);
+ let n = (0, R.useContext)(mO);
+ return n ? /*#__PURE__*/ R.createElement(hO, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ R.createElement(Zh, { content: /*#__PURE__*/ R.createElement(lg, e) }, (n) => /*#__PURE__*/ R.createElement(Voe, {
+ }) : /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(Boe, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Voe({ props: e, listBoxRef: t, collection: n }) {
+function Boe({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, R.useContext)(YE), i = cO({
+ let { layoutDelegate: r } = (0, R.useContext)(ZE), i = uO({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ R.createElement(pO, {
+ return /*#__PURE__*/ R.createElement(hO, {
state: i,
props: e,
listBoxRef: t
});
}
-function pO({ state: e, props: t, listBoxRef: n }) {
- [t, n] = zE(t, n, WE);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = zoe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Sg(), { disabledBehavior: p, disabledKeys: m } = l, h = ey({
+function hO({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = VE(t, n, KE);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Roe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Cg(), { disabledBehavior: p, disabledKeys: m } = l, h = ty({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(YE), b = (0, R.useMemo)(() => t.keyboardDelegate || new nv({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(ZE), b = (0, R.useMemo)(() => t.keyboardDelegate || new rv({
collection: c,
collator: h,
ref: n,
@@ -29244,7 +29244,7 @@ function pO({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = sy(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = cy(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -29252,7 +29252,7 @@ function pO({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = LE({
+ }, N = zE({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -29262,8 +29262,8 @@ function pO({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = Ag(t, { global: !0 });
- return /*#__PURE__*/ R.createElement($g, null, /*#__PURE__*/ R.createElement(UE.div, {
+ let te = jg(t, { global: !0 });
+ return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(GE.div, {
...H(te, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -29274,60 +29274,60 @@ function pO({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ R.createElement(IE, { values: [
- [dO, t],
- [fO, s],
- [GD, {
+ }, /*#__PURE__*/ R.createElement(RE, { values: [
+ [pO, t],
+ [mO, s],
+ [qD, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [QD, { elementType: "div" }],
- [KD, { render: Woe }],
- [KE, {
+ [eO, { elementType: "div" }],
+ [JD, { render: Uoe }],
+ [JE, {
name: "ListBoxSection",
- render: Hoe
+ render: Voe
}]
- ] }, /*#__PURE__*/ R.createElement(XD, null, /*#__PURE__*/ R.createElement(y, {
+ ] }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: JD(l, r, C),
- renderDropIndicator: qD(r, C)
+ persistedKeys: XD(l, r, C),
+ renderDropIndicator: YD(r, C)
}))), ee, E));
}
-function Hoe(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, R.useContext)(fO), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(GD), { CollectionBranch: s } = (0, R.useContext)(YE), [c, l] = BE(), { headingProps: u, groupProps: d } = Ote({
+function Voe(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, R.useContext)(mO), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(qD), { CollectionBranch: s } = (0, R.useContext)(ZE), [c, l] = HE(), { headingProps: u, groupProps: d } = Ote({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = LE({
+ }), f = zE({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Ag(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ R.createElement(UE.section, {
+ }), p = jg(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ R.createElement(GE.section, {
...H(p, f, d),
ref: t
- }, /*#__PURE__*/ R.createElement(YD.Provider, { value: {
+ }, /*#__PURE__*/ R.createElement(ZD.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ R.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: qD(a, o)
+ renderDropIndicator: YD(a, o)
})));
}
-var Uoe = /*#__PURE__*/ ag(cp, function(e, t, n) {
- let r = Lh(t), i = (0, R.useContext)(fO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(GD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = kte({
+var Hoe = /*#__PURE__*/ og(lp, function(e, t, n) {
+ let r = Rh(t), i = (0, R.useContext)(mO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = kte({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = dy({
+ }, i, r), { hoverProps: p, isHovered: m } = fy({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Ih(e), { focusProps: g } = Sh(e), _ = null;
+ }), { keyboardProps: h } = Lh(e), { focusProps: g } = Ch(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -29338,7 +29338,7 @@ var Uoe = /*#__PURE__*/ ag(cp, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = LE({
+ let y = o && o.isDragging(n.key), b = zE({
...e,
id: void 0,
children: e.children,
@@ -29356,7 +29356,7 @@ var Uoe = /*#__PURE__*/ ag(cp, function(e, t, n) {
(0, R.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? UE.a : UE.div, S = Ag(e, { global: !0 });
+ let x = e.href ? GE.a : GE.div, S = jg(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ R.createElement(x, {
...H(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -29370,29 +29370,29 @@ var Uoe = /*#__PURE__*/ ag(cp, 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__*/ R.createElement(IE, { values: [[nD, { slots: {
- [FE]: u,
+ }, /*#__PURE__*/ R.createElement(RE, { values: [[iD, { slots: {
+ [LE]: u,
label: u,
description: d
- } }], [ZD, { isSelected: f.isSelected }]] }, b.children));
+ } }], [$D, { isSelected: f.isSelected }]] }, b.children));
});
-function Woe(e, t) {
- t = Lh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(GD), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ R.createElement(Koe, {
+function Uoe(e, t) {
+ t = Rh(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(qD), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ R.createElement(Goe, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Goe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = LE({
+function Woe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = zE({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(UE.div, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GE.div, {
...n,
...a,
role: "option",
@@ -29400,10 +29400,10 @@ function Goe(e, t) {
"data-drop-target": r || void 0
}));
}
-var Koe = /*#__PURE__*/ (0, R.forwardRef)(Goe);
-ag(sp, function(e, t, n) {
- let r = (0, R.useContext)(fO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- uO((0, R.useMemo)(() => ({
+var Goe = /*#__PURE__*/ (0, R.forwardRef)(Woe);
+og(cp, function(e, t, n) {
+ let r = (0, R.useContext)(mO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ fO((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -29413,7 +29413,7 @@ ag(sp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = LE({
+ let l = zE({
...s,
id: void 0,
children: n.rendered,
@@ -29426,7 +29426,7 @@ ag(sp, function(e, t, n) {
width: 0,
height: 0
},
- inert: $D(!0)
+ inert: tO(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -29435,8 +29435,8 @@ ag(sp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(UE.div, {
- ...H(Ag(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GE.div, {
+ ...H(jg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -29444,11 +29444,11 @@ ag(sp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var qoe = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" });
+var Koe = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function mO(e) {
- let [t, n] = V_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
+function gO(e) {
+ let [t, n] = H_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -29467,13 +29467,13 @@ function mO(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function hO(e, t = !0) {
+function _O(e, t = !0) {
let [n, r] = (0, R.useState)(!0), i = n && t;
- return Kp(() => {
+ return qp(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), _O(e, i, (0, R.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), yO(e, i, (0, R.useCallback)(() => r(!1), [])), i;
}
-function gO(e, t) {
+function vO(e, t) {
let [n, r] = (0, R.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -29483,12 +29483,12 @@ function gO(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return _O(e, i, (0, R.useCallback)(() => {
+ return yO(e, i, (0, R.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function _O(e, t, n) {
- Kp(() => {
+function yO(e, t, n) {
+ qp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -29501,7 +29501,7 @@ function _O(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, np.flushSync)(() => {
+ r || (0, rp.flushSync)(() => {
n();
});
}), () => {
@@ -29516,9 +29516,9 @@ function _O(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var vO = /*#__PURE__*/ (0, R.createContext)(null), yO = /*#__PURE__*/ (0, R.createContext)(null), bO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = zE(e, t, vO);
- let n = (0, R.useContext)(AO), r = mO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = gO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Gh(), { direction: c } = Sg();
+var bO = /*#__PURE__*/ (0, R.createContext)(null), xO = /*#__PURE__*/ (0, R.createContext)(null), SO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = VE(e, t, bO);
+ let n = (0, R.useContext)(MO), r = gO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = vO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kh(), { direction: c } = Cg();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -29529,7 +29529,7 @@ var vO = /*#__PURE__*/ (0, R.createContext)(null), yO = /*#__PURE__*/ (0, R.crea
defaultChildren: null
})), /*#__PURE__*/ R.createElement(R.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(Joe, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(qoe, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -29538,13 +29538,13 @@ var vO = /*#__PURE__*/ (0, R.createContext)(null), yO = /*#__PURE__*/ (0, R.crea
dir: c
});
});
-function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(yO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Yte({
+function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(xO), 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 = hO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = LE({
+ }, e), m = i.popoverRef, h = _O(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = zE({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -29554,10 +29554,10 @@ function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, R.useState)(i.trigger === "PreviewTrigger");
- Kp(() => {
+ qp(() => {
m.current && b(v && !m.current.querySelector("[role=dialog]"));
}, [m, v]), (0, R.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Xm() !== "pointer") && m.current && !Fp(m.current) && ch(m.current);
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Zm() !== "pointer") && m.current && !Ip(m.current) && lh(m.current);
}, [
y,
m,
@@ -29570,7 +29570,7 @@ function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, R.useState)(null), w = (0, R.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- Kp(w, [w]), tb({
+ qp(w, [w]), nb({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -29579,8 +29579,8 @@ function Joe({ 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__*/ R.createElement(UE.div, {
- ...H(Ag(i, { global: !0 }), l),
+ }, E = /*#__PURE__*/ R.createElement(GE.div, {
+ ...H(jg(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -29595,17 +29595,17 @@ function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ R.createElement(Lb, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(qoe.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ R.createElement(Rb, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Koe.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ R.createElement(Lb, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ R.createElement(ay, {
+ } }, x), /*#__PURE__*/ R.createElement(Rb, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ R.createElement(oy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ R.createElement(ay, {
+ }, E) : /*#__PURE__*/ R.createElement(oy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -29620,15 +29620,15 @@ function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ R.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ R.createElement(yO.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ R.createElement(xO.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Yoe = /*#__PURE__*/ (0, R.createContext)({});
+var Joe = /*#__PURE__*/ (0, R.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function xO(e) {
- let t = mO(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
+function CO(e) {
+ let t = gO(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -29654,7 +29654,7 @@ function xO(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Xoe = class {
+var Yoe = 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) => {
@@ -29698,8 +29698,8 @@ var Xoe = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Zoe(e) {
- let { onExpandedChange: t } = e, [n, r] = V_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = nO(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = sO(e, (0, R.useCallback)((e) => new Xoe(e, { expandedKeys: n }), [n]), null);
+function Xoe(e) {
+ let { onExpandedChange: t } = e, [n, r] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = iO(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = lO(e, (0, R.useCallback)((e) => new Yoe(e, { expandedKeys: n }), [n]), null);
return (0, R.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -29707,32 +29707,32 @@ function Zoe(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Qoe(n, e));
+ r(Zoe(n, e));
},
setExpandedKeys: r,
- selectionManager: new iO(o, i)
+ selectionManager: new oO(o, i)
};
}
-function Qoe(e, t) {
+function Zoe(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 SO = /*#__PURE__*/ (0, R.createContext)(null), CO = /*#__PURE__*/ (0, R.createContext)(null), wO = /*#__PURE__*/ (0, R.createContext)(null), TO = /*#__PURE__*/ (0, R.createContext)(null);
-function $oe(e) {
- let t = xO(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = Bv({
+var wO = /*#__PURE__*/ (0, R.createContext)(null), TO = /*#__PURE__*/ (0, R.createContext)(null), EO = /*#__PURE__*/ (0, R.createContext)(null), DO = /*#__PURE__*/ (0, R.createContext)(null);
+function Qoe(e) {
+ let t = CO(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = Vv({
...e,
type: "menu"
}, t, n), a = (0, R.useRef)(null);
- return Gh() ? null : /*#__PURE__*/ R.createElement(IE, { values: [
- [SO, {
+ return Kh() ? null : /*#__PURE__*/ R.createElement(RE, { values: [
+ [wO, {
...i,
ref: a
}],
- [AO, t],
- [wO, t],
- [vO, {
+ [MO, t],
+ [EO, t],
+ [bO, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -29746,8 +29746,8 @@ function $oe(e) {
isPressed: t.isOpen
}, e.children));
}
-var ese = /*#__PURE__*/ (0, R.createContext)(null);
-(class extends ap {
+var $oe = /*#__PURE__*/ (0, R.createContext)(null);
+(class extends op {
static {
this.type = "submenutrigger";
}
@@ -29760,24 +29760,24 @@ var ese = /*#__PURE__*/ (0, R.createContext)(null);
return null;
}
});
-var tse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return [e, t] = zE(e, t, SO), /*#__PURE__*/ R.createElement(Zh, { content: /*#__PURE__*/ R.createElement(lg, e) }, (n) => /*#__PURE__*/ R.createElement(nse, {
+var ese = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ return [e, t] = VE(e, t, wO), /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(tse, {
props: e,
collection: n,
menuRef: t
}));
});
-function nse({ props: e, collection: t, menuRef: n }) {
- [e, n] = zE(e, n, WE);
- let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Zoe({
+function tse({ props: e, collection: t, menuRef: n }) {
+ [e, n] = VE(e, n, KE);
+ let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Xoe({
...e,
collection: a,
children: void 0
- }), s = (0, R.useContext)(wO), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(YE), { menuProps: u } = Ate({
+ }), s = (0, R.useContext)(EO), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(ZE), { menuProps: u } = Ate({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = LE({
+ }, o, n), d = zE({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -29787,36 +29787,36 @@ function nse({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Ag(e, { global: !0 });
- return /*#__PURE__*/ R.createElement($g, null, /*#__PURE__*/ R.createElement(UE.div, {
+ let p = jg(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(GE.div, {
...H(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ R.createElement(IE, { values: [
- [CO, o],
- [QD, { elementType: "div" }],
- [KE, {
+ }, /*#__PURE__*/ R.createElement(RE, { values: [
+ [TO, o],
+ [eO, { elementType: "div" }],
+ [JE, {
name: "MenuSection",
- render: EO
+ render: OO
}],
- [ese, {
+ [$oe, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [OO, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [WE, null],
- [GE, null],
- [TO, o.selectionManager],
- [wO, s ?? xO({})]
- ] }, /*#__PURE__*/ R.createElement(XD, null, /*#__PURE__*/ R.createElement(l, {
+ [AO, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [KE, null],
+ [qE, null],
+ [DO, o.selectionManager],
+ [EO, s ?? CO({})]
+ ] }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(l, {
collection: o.collection,
- persistedKeys: XE(o.selectionManager.focusedKey),
+ persistedKeys: QE(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var rse = class extends iO {
+var nse = class extends oO {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -29836,11 +29836,11 @@ var rse = class extends iO {
return this.parent.childFocusStrategy;
}
};
-function EO(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, R.useContext)(CO), { CollectionBranch: a } = (0, R.useContext)(YE), [o, s] = BE(), { headingProps: c, groupProps: l } = Mte({
+function OO(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, R.useContext)(TO), { CollectionBranch: a } = (0, R.useContext)(ZE), [o, s] = HE(), { headingProps: c, groupProps: l } = Mte({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = LE({
+ }), u = zE({
...e,
id: void 0,
children: void 0,
@@ -29848,31 +29848,31 @@ function EO(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, R.useContext)(TO), f = nO(e), p = e.selectionMode == null ? d : new rse(d, f), m = RE(OO)?.shouldCloseOnSelect, h = Ag(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ R.createElement(UE.section, {
+ }), d = (0, R.useContext)(DO), f = iO(e), p = e.selectionMode == null ? d : new nse(d, f), m = BE(AO)?.shouldCloseOnSelect, h = jg(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ R.createElement(GE.section, {
...H(h, u, l),
ref: t
- }, /*#__PURE__*/ R.createElement(IE, { values: [
- [YD, {
+ }, /*#__PURE__*/ R.createElement(RE, { values: [
+ [ZD, {
...c,
ref: o
}],
- [TO, p],
- [OO, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [DO, p],
+ [AO, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ R.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var DO = /*#__PURE__*/ og(lp, EO), OO = /*#__PURE__*/ (0, R.createContext)(null), kO = /*#__PURE__*/ ag(cp, function(e, t, n) {
- [e, t] = zE(e, t, OO);
- let r = RE(OO)?.id, i = (0, R.useContext)(CO), a = Lh(t), o = (0, R.useContext)(TO), { isVirtualized: s } = (0, R.useContext)(YE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = jte({
+var kO = /*#__PURE__*/ sg(up, OO), AO = /*#__PURE__*/ (0, R.createContext)(null), jO = /*#__PURE__*/ og(lp, function(e, t, n) {
+ [e, t] = VE(e, t, AO);
+ let r = BE(AO)?.id, i = (0, R.useContext)(TO), a = Rh(t), o = (0, R.useContext)(DO), { isVirtualized: s } = (0, R.useContext)(ZE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = jte({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = dy({ isDisabled: f.isDisabled }), h = LE({
+ }, i, a), { hoverProps: p, isHovered: m } = fy({ isDisabled: f.isDisabled }), h = zE({
...e,
id: void 0,
children: n.rendered,
@@ -29886,7 +29886,7 @@ var DO = /*#__PURE__*/ og(lp, EO), OO = /*#__PURE__*/ (0, R.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? UE.a : UE.div, _ = Ag(e, { global: !0 });
+ }), g = e.href ? GE.a : GE.div, _ = jg(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(g, {
...H(_, h, c, p),
ref: a,
@@ -29899,19 +29899,19 @@ var DO = /*#__PURE__*/ og(lp, EO), OO = /*#__PURE__*/ (0, R.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__*/ R.createElement(IE, { values: [
- [nD, { slots: {
- [FE]: l,
+ }, /*#__PURE__*/ R.createElement(RE, { values: [
+ [iD, { slots: {
+ [LE]: l,
label: l,
description: u
} }],
- [Yoe, d],
- [ZD, { isSelected: f.isSelected }]
+ [Joe, d],
+ [$D, { isSelected: f.isSelected }]
] }, h.children));
});
-ag(sp, function(e, t, n) {
- let r = (0, R.useContext)(CO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- uO((0, R.useMemo)(() => ({
+og(cp, function(e, t, n) {
+ let r = (0, R.useContext)(TO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ fO((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -29921,7 +29921,7 @@ ag(sp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = LE({
+ let l = zE({
...s,
id: void 0,
children: n.rendered,
@@ -29934,7 +29934,7 @@ ag(sp, function(e, t, n) {
width: 0,
height: 0
},
- inert: $D(!0)
+ inert: tO(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -29943,8 +29943,8 @@ ag(sp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(UE.div, {
- ...H(Ag(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GE.div, {
+ ...H(jg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -29952,83 +29952,83 @@ ag(sp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var ise = /*#__PURE__*/ (0, R.createContext)(null), AO = /*#__PURE__*/ (0, R.createContext)(null), jO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var rse = /*#__PURE__*/ (0, R.createContext)(null), MO = /*#__PURE__*/ (0, R.createContext)(null), NO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = zE(e, t, ise);
+ [e, t] = VE(e, t, rse);
let { dialogProps: r, titleProps: i, contentProps: a } = gte({
...e,
"aria-labelledby": n
- }, t), o = (0, R.useContext)(AO);
+ }, t), o = (0, R.useContext)(MO);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = LE({
+ let s = zE({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Ag(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(UE.section, {
+ }), c = jg(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(GE.section, {
...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ R.createElement(IE, { values: [
- [eD, { slots: {
- [FE]: {},
+ }, /*#__PURE__*/ R.createElement(RE, { values: [
+ [nD, { slots: {
+ [LE]: {},
title: {
...i,
level: 2
}
} }],
- [nD, { slots: {
- [FE]: {},
+ [iD, { slots: {
+ [LE]: {},
description: a
} }],
- [QE, { slots: {
- [FE]: {},
+ [eD, { slots: {
+ [LE]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), MO = typeof document < "u" && window.visualViewport;
-function ase() {
- let e = Mm(), [t, n] = (0, R.useState)(() => e ? {
+}), PO = typeof document < "u" && window.visualViewport;
+function ise() {
+ let e = Nm(), [t, n] = (0, R.useState)(() => e ? {
width: 0,
height: 0
- } : NO());
+ } : FO());
return (0, R.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- MO && MO.scale > 1 || e(NO());
+ PO && PO.scale > 1 || e(FO());
}, r, i = (t) => {
- MO && MO.scale > 1 || pg(V(t)) && (r = requestAnimationFrame(() => {
- let t = Np();
- (!t || !pg(t)) && e({
+ PO && PO.scale > 1 || mg(V(t)) && (r = requestAnimationFrame(() => {
+ let t = Pp();
+ (!t || !mg(t)) && e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(NO()), im() && om() && window.addEventListener("blur", i, !0), MO ? MO.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), im() && om() && window.removeEventListener("blur", i, !0), MO ? MO.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(FO()), am() && sm() && window.addEventListener("blur", i, !0), PO ? PO.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), am() && sm() && window.removeEventListener("blur", i, !0), PO ? PO.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function NO() {
+function FO() {
return {
- width: MO ? Math.min(MO.width * MO.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: MO ? MO.height * MO.scale : document.documentElement.clientHeight
+ width: PO ? Math.min(PO.width * PO.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: PO ? PO.height * PO.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var ose = /*#__PURE__*/ (0, R.createContext)(null), PO = /*#__PURE__*/ (0, R.createContext)(null), sse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- if ((0, R.useContext)(PO)) return /*#__PURE__*/ R.createElement(IO, {
+var ase = /*#__PURE__*/ (0, R.createContext)(null), IO = /*#__PURE__*/ (0, R.createContext)(null), ose = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ if ((0, R.useContext)(IO)) return /*#__PURE__*/ R.createElement(RO, {
...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__*/ R.createElement(FO, {
+ return /*#__PURE__*/ R.createElement(LO, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -30038,15 +30038,15 @@ var ose = /*#__PURE__*/ (0, R.createContext)(null), PO = /*#__PURE__*/ (0, R.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ R.createElement(IO, {
+ }, /*#__PURE__*/ R.createElement(RO, {
...f,
modalRef: t
}, s));
});
-function cse(e, t) {
- [e, t] = zE(e, t, ose);
- let n = (0, R.useContext)(AO), r = mO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Lh(t), o = (0, R.useRef)(null), s = gO(a, i.isOpen), c = gO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Mm();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(lse, {
+function sse(e, t) {
+ [e, t] = VE(e, t, ase);
+ let n = (0, R.useContext)(MO), r = gO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Rh(t), o = (0, R.useRef)(null), s = vO(a, i.isOpen), c = vO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Nm();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(cse, {
...e,
state: i,
isExiting: l,
@@ -30054,9 +30054,9 @@ function cse(e, t) {
modalRef: o
});
}
-var FO = /*#__PURE__*/ (0, R.forwardRef)(cse);
-function lse({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Lte(t, r, n), o = hO(t.overlayRef) || t.isEntering || !1, s = LE({
+var LO = /*#__PURE__*/ (0, R.forwardRef)(sse);
+function cse({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Lte(t, r, n), o = _O(t.overlayRef) || t.isEntering || !1, s = zE({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -30064,9 +30064,9 @@ function lse({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = ase(), l, u;
+ }), c = ise(), l, u;
if (typeof document < "u") {
- let e = v_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = y_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
}
let d = {
@@ -30076,25 +30076,25 @@ function lse({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ R.createElement(ay, {
+ return /*#__PURE__*/ R.createElement(oy, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ R.createElement(UE.div, {
- ...H(Ag(t, { global: !0 }), a),
+ }, /*#__PURE__*/ R.createElement(GE.div, {
+ ...H(jg(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ R.createElement(IE, { values: [[PO, {
+ }, /*#__PURE__*/ R.createElement(RE, { values: [[IO, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [AO, r]] }, s.children)));
+ }], [MO, r]] }, s.children)));
}
-function IO(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(PO), a = (0, R.useContext)(AO), o = Lh((0, R.useMemo)(() => vh(e.modalRef, n), [e.modalRef, n])), s = hO(o), c = LE({
+function RO(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(IO), a = (0, R.useContext)(MO), o = Rh((0, R.useMemo)(() => yh(e.modalRef, n), [e.modalRef, n])), s = _O(o), c = zE({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -30103,19 +30103,19 @@ function IO(e) {
state: a
}
});
- return /*#__PURE__*/ R.createElement(UE.div, {
- ...H(Ag(e, { global: !0 }), t),
+ return /*#__PURE__*/ R.createElement(GE.div, {
+ ...H(jg(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ R.createElement(Lb, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ R.createElement(Rb, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var use = Math.round(Math.random() * 1e10), dse = 0;
-function fse(e) {
- let t = (0, R.useMemo)(() => e.name || `radio-group-${use}-${++dse}`, [e.name]), [n, r] = V_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = M_({
+var lse = Math.round(Math.random() * 1e10), use = 0;
+function dse(e) {
+ let t = (0, R.useMemo)(() => e.name || `radio-group-${lse}-${++use}`, [e.name]), [n, r] = H_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = N_({
...e,
value: n
}), c = (t) => {
@@ -30138,16 +30138,16 @@ function fse(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.createContext)(null), LO = /*#__PURE__*/ (0, R.createContext)(null), RO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = zE(e, t, pse);
- let { validationBehavior: n } = RE(iD) || {}, r = e.validationBehavior ?? n ?? "native", i = fse({
+var fse = /*#__PURE__*/ (0, R.createContext)(null), pse = /*#__PURE__*/ (0, R.createContext)(null), zO = /*#__PURE__*/ (0, R.createContext)(null), BO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = VE(e, t, fse);
+ let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = dse({
...e,
validationBehavior: r
- }), [a, o] = BE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Zte({
+ }), [a, o] = HE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({
...e,
label: o,
validationBehavior: r
- }, i), f = LE({
+ }, i), f = zE({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -30158,8 +30158,8 @@ var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Ag(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(UE.div, {
+ }), p = jg(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(GE.div, {
...H(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -30168,39 +30168,39 @@ var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(IE, { values: [
- [LO, i],
- [ZE, {
+ }, /*#__PURE__*/ R.createElement(RE, { values: [
+ [zO, i],
+ [$E, {
...c,
ref: a,
elementType: "span"
}],
- [nD, { slots: {
+ [iD, { slots: {
description: l,
errorMessage: u
} }],
- [rD, d]
- ] }, /*#__PURE__*/ R.createElement(XD, null, f.children)));
-}), zO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [aD, d]
+ ] }, /*#__PURE__*/ R.createElement(QD, null, f.children)));
+}), VO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = zE(r, t, mse);
- let i = R.useContext(LO), a = Lh((0, R.useMemo)(() => vh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Xte({
- ...VE(e),
+ [e, t] = VE(r, t, pse);
+ let i = R.useContext(zO), a = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({
+ ...UE(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ R.createElement(BO.Provider, { value: {
+ return /*#__PURE__*/ R.createElement(HO.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ R.createElement(hse, {
+ } }, /*#__PURE__*/ R.createElement(mse, {
...e,
ref: t
}));
-}), BO = /*#__PURE__*/ (0, R.createContext)(null), hse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(BO), l = R.useContext(LO), { isFocused: u, isFocusVisible: d, focusProps: f } = sy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = dy({
+}), HO = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(HO), l = R.useContext(zO), { isFocused: u, isFocusVisible: d, focusProps: f } = cy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = fy({
...e,
isDisabled: p
- }), g = LE({
+ }), g = zE({
...e,
defaultClassName: s,
values: {
@@ -30214,8 +30214,8 @@ var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Ag(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(UE.label, {
+ }), _ = jg(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(GE.label, {
...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -30227,19 +30227,19 @@ var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(K_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ }, /*#__PURE__*/ R.createElement(q_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
...H(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function gse(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = mO(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function hse(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = gO(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = V_((0, R.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = H_((0, R.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -30251,12 +30251,12 @@ function gse(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = cO({
+ }, d = uO({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, R.useMemo)(() => _se(l), [l]),
+ selectedKeys: (0, R.useMemo)(() => gse(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -30266,7 +30266,7 @@ function gse(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, R.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = M_({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, R.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = N_({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, R.useState)(!1), [_] = (0, R.useState)(l);
@@ -30293,16 +30293,16 @@ function gse(e) {
setFocused: g
};
}
-function _se(e) {
+function gse(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 vse(e) {
+function _se(e) {
return e && e.__esModule ? e.default : e;
}
-var VO = /*#__PURE__*/ (0, R.createContext)(null), HO = /*#__PURE__*/ (0, R.createContext)(null), yse = /*#__PURE__*/ Wh(function(e, t) {
- [e, t] = zE(e, t, VO);
+var UO = /*#__PURE__*/ (0, R.createContext)(null), WO = /*#__PURE__*/ (0, R.createContext)(null), vse = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = VE(e, t, UO);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, R.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -30317,24 +30317,24 @@ var VO = /*#__PURE__*/ (0, R.createContext)(null), HO = /*#__PURE__*/ (0, R.crea
i,
a
]);
- return /*#__PURE__*/ R.createElement(Zh, { content: o }, (n) => /*#__PURE__*/ R.createElement(xse, {
+ return /*#__PURE__*/ R.createElement(Qh, { content: o }, (n) => /*#__PURE__*/ R.createElement(bse, {
props: e,
collection: n,
selectRef: t
}));
-}), bse = [
- ZE,
- QE,
- nD
+}), yse = [
+ $E,
+ eD,
+ iD
];
-function xse({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = RE(iD) || {}, i = e.validationBehavior ?? r ?? "native", a = gse({
+function bse({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = BE(oD) || {}, i = e.validationBehavior ?? r ?? "native", a = hse({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = sy({ within: !0 }), c = (0, R.useRef)(null), [l, u] = BE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Qte({
- ...VE(e),
+ }), { isFocusVisible: o, focusProps: s } = cy({ within: !0 }), c = (0, R.useRef)(null), [l, u] = HE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({
+ ...UE(e),
label: u,
validationBehavior: i
}, a, c), y = (0, R.useMemo)(() => ({
@@ -30351,48 +30351,48 @@ function xse({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = LE({
+ ]), b = zE({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Ag(e, { global: !0 });
+ }), x = jg(e, { global: !0 });
delete x.id;
let S = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(IE, { values: [
- [VO, e],
- [HO, a],
- [UO, p],
- [ZE, {
+ return /*#__PURE__*/ R.createElement(RE, { values: [
+ [UO, e],
+ [WO, a],
+ [GO, p],
+ [$E, {
...d,
ref: l,
elementType: "span"
}],
- [QE, {
+ [eD, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [AO, a],
- [vO, {
+ [MO, a],
+ [bO, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: bse
+ clearContexts: yse
}],
- [dO, {
+ [pO, {
...m,
ref: S
}],
- [fO, a],
- [nD, { slots: {
+ [mO, a],
+ [iD, { slots: {
description: h,
errorMessage: g
} }],
- [rD, v]
- ] }, /*#__PURE__*/ R.createElement(UE.div, {
+ [aD, v]
+ ] }, /*#__PURE__*/ R.createElement(GE.div, {
...H(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -30402,14 +30402,14 @@ function xse({ 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__*/ R.createElement(ene, {
+ }, b.children, /*#__PURE__*/ R.createElement($te, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var UO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Wh(function(e, t) {
- [e, t] = zE(e, t, UO);
- let n = (0, R.useContext)(HO), { placeholder: r } = RE(VO), i = n.selectedItems.map((e) => {
+for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = VE(e, t, GO);
+ let n = (0, R.useContext)(WO), { placeholder: r } = BE(UO), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -30436,7 +30436,7 @@ for (var UO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Wh(f
a,
o,
i
- ]), u = Og(vse(WD), "react-aria-components"), d = LE({
+ ]), u = kg(_se(KD), "react-aria-components"), d = zE({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -30447,33 +30447,33 @@ for (var UO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Wh(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Ag(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(UE.span, {
+ }), f = jg(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(GE.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ R.createElement(nD.Provider, { value: void 0 }, d.children));
-}), Cse = /*#__PURE__*/ (0, R.createContext)(null), WO = /*#__PURE__*/ (0, R.createContext)(null), wse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ R.createElement(iD.Provider, { value: void 0 }, d.children));
+}), Sse = /*#__PURE__*/ (0, R.createContext)(null), KO = /*#__PURE__*/ (0, R.createContext)(null), Cse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = zE(r, t, Cse);
- let i = Lh((0, R.useMemo)(() => vh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = H_(e), o = nne({
- ...VE(e),
+ [e, t] = VE(r, t, Sse);
+ let i = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = U_(e), o = ene({
+ ...UE(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ R.createElement(IE, { values: [[WO, a], [GO, {
+ return /*#__PURE__*/ R.createElement(RE, { values: [[KO, a], [qO, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ R.createElement(Tse, {
+ }]] }, /*#__PURE__*/ R.createElement(wse, {
...e,
ref: t
}));
-}), GO = /*#__PURE__*/ (0, R.createContext)(null), Tse = /*#__PURE__*/ (0, R.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, R.useContext)(GO), { isFocused: f, isFocusVisible: p, focusProps: m } = sy(), h = a || o, g = (0, R.useContext)(WO), { hoverProps: _, isHovered: v } = dy({
+}), qO = /*#__PURE__*/ (0, R.createContext)(null), wse = /*#__PURE__*/ (0, R.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, R.useContext)(qO), { isFocused: f, isFocusVisible: p, focusProps: m } = cy(), h = a || o, g = (0, R.useContext)(KO), { hoverProps: _, isHovered: v } = fy({
...e,
isDisabled: h
- }), y = LE({
+ }), y = zE({
...e,
defaultClassName: u,
values: {
@@ -30488,8 +30488,8 @@ for (var UO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Wh(f
isRequired: d || !1,
state: g
}
- }), b = Ag(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(UE.label, {
+ }), b = jg(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(GE.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -30502,11 +30502,11 @@ for (var UO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Wh(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ R.createElement(K_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ }, /*#__PURE__*/ R.createElement(q_, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
...H(r, m),
ref: l
})), y.children);
-}), KO = 10, qO = 5, Ese = class {
+}), JO = 10, YO = 5, Tse = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -30516,7 +30516,7 @@ for (var UO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Wh(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) > qO && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > KO && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > YO && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > JO && (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);
@@ -30595,11 +30595,11 @@ for (var UO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Wh(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > qO && i) {
+ if (Math.abs(r - c.lastSwitchY) > YO && 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 > KO && a) {
+ if (l > JO && 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;
}
@@ -30614,7 +30614,7 @@ for (var UO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Wh(f
boundaryContext: null
};
}
-}, Dse = class {
+}, Ese = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -30684,8 +30684,8 @@ for (var UO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Wh(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, JO = "row-header-column-" + Math.random().toString(36).slice(2), YO = "row-header-column-" + Math.random().toString(36).slice(2); JO === YO;) YO = "row-header-column-" + Math.random().toString(36).slice(2);
-function XO(e, t) {
+}, XO = "row-header-column-" + Math.random().toString(36).slice(2), ZO = "row-header-column-" + Math.random().toString(36).slice(2); XO === ZO;) ZO = "row-header-column-" + Math.random().toString(36).slice(2);
+function QO(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -30769,13 +30769,13 @@ function XO(e, t) {
textValue: ""
}));
}
-var Ose = class extends Dse {
+var Dse = class extends Ese {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: JO,
+ key: XO,
value: null,
textValue: "",
level: 0,
@@ -30790,7 +30790,7 @@ var Ose = class extends Dse {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: YO,
+ key: ZO,
value: null,
textValue: "",
level: 0,
@@ -30817,7 +30817,7 @@ var Ose = class extends Dse {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = XO(s, a);
+ let l = QO(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -30843,10 +30843,10 @@ var Ose = class extends Dse {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return Kv(this.body.childNodes)?.key ?? null;
+ return qv(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return Jv(this.body.childNodes)?.key ?? null;
+ return Yv(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -30878,19 +30878,19 @@ var Ose = class extends Dse {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function kse(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || nO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Ose(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || iO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = Gv(n, t);
- e = r === "last" ? Jv(i)?.key ?? null : Kv(i)?.key ?? null;
+ let i = Kv(n, t);
+ e = r === "last" ? Yv(i)?.key ?? null : qv(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, R.useMemo)(() => new iO(t, r), [t, r]), s = (0, R.useRef)(null);
+ let o = (0, R.useMemo)(() => new oO(t, r), [t, r]), s = (0, R.useRef)(null);
return (0, R.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;
@@ -30910,7 +30910,7 @@ function kse(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...Gv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...Kv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -30929,11 +30929,11 @@ function kse(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var Ase = {
+var kse = {
ascending: "descending",
descending: "ascending"
};
-function jse(e) {
+function Ase(e) {
let [t, n] = (0, R.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, R.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -30944,11 +30944,11 @@ function jse(e) {
i,
r,
a
- ]), c = sO(e, (0, R.useCallback)((e) => new Ose(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = kse({
+ ]), c = lO(e, (0, R.useCallback)((e) => new Dse(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Ose({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = V_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -30960,7 +30960,7 @@ function jse(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Ase[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? kse[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -30973,7 +30973,7 @@ function jse(e) {
treeColumn: o
};
}
-function Mse(e, t) {
+function jse(e, t) {
let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -30983,7 +30983,7 @@ function Mse(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var Nse = class extends up {
+var Mse = class extends dp {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -30998,7 +30998,7 @@ var Nse = class extends up {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new rk(-2);
+ return new ak(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -31024,7 +31024,7 @@ var Nse = class extends up {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = XO(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 = QO(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;
@@ -31105,11 +31105,11 @@ var Nse = class extends up {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new ek(-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();
}
-}, Pse = /*#__PURE__*/ (0, R.createContext)(null), Fse = /*#__PURE__*/ (0, R.createContext)(null), ZO = /*#__PURE__*/ (0, R.createContext)(null), QO = /*#__PURE__*/ (0, R.createContext)(null), Ise = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = zE(e, t, Fse);
- let n = nO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
+}, Nse = /*#__PURE__*/ (0, R.createContext)(null), Pse = /*#__PURE__*/ (0, R.createContext)(null), $O = /*#__PURE__*/ (0, R.createContext)(null), ek = /*#__PURE__*/ (0, R.createContext)(null), Fse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = VE(e, t, Pse);
+ let n = iO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -31119,26 +31119,26 @@ var Nse = class extends up {
i,
a,
o
- ]), c = /*#__PURE__*/ R.createElement(zse.Provider, { value: s }, /*#__PURE__*/ R.createElement(lg, e));
- return /*#__PURE__*/ R.createElement(Zh, {
+ ]), c = /*#__PURE__*/ R.createElement(Rse.Provider, { value: s }, /*#__PURE__*/ R.createElement(ug, e));
+ return /*#__PURE__*/ R.createElement(Qh, {
content: c,
- createCollection: () => new Nse()
- }, (r) => /*#__PURE__*/ R.createElement(Rse, {
+ createCollection: () => new Mse()
+ }, (r) => /*#__PURE__*/ R.createElement(Lse, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Lse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(YE);
- return n ? /*#__PURE__*/ R.createElement(UE.div, {
+}), Ise = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(ZE);
+ return n ? /*#__PURE__*/ R.createElement(GE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(UE.table, {
+ }) : /*#__PURE__*/ R.createElement(GE.table, {
...e,
ref: t
});
-}), $O = {
+}), tk = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -31148,26 +31148,26 @@ var Nse = class extends up {
rtl: "ArrowRight"
}
};
-function Rse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = zE(e, t, WE);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(Pse);
- t = Lh((0, R.useMemo)(() => vh(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = V_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function Lse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = VE(e, t, KE);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(Nse);
+ t = Rh((0, R.useMemo)(() => yh(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, R.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = jse({
+ let d = Ase({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Mse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(YE), { dragAndDropHooks: _ } = e, { gridProps: v } = cne({
+ }), f = jse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(ZE), { dragAndDropHooks: _ } = e, { gridProps: v } = one({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, R.useRef)(b), (0, R.useRef)(x), (0, R.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Sg(), [k] = (0, R.useState)(() => new Ese());
+ let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Cg(), [k] = (0, R.useState)(() => new Tse());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -31182,7 +31182,7 @@ function Rse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new nv({
+ let e = new rv({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -31202,12 +31202,12 @@ function Rse({ 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 === $O.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === $O.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === tk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === tk.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 } = sy(), N = LE({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = cy(), N = zE({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -31223,19 +31223,19 @@ function Rse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let F = Ag(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(IE, { values: [
- [ZO, f],
- [QO, P],
- [GD, {
+ let F = jg(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(RE, { values: [
+ [$O, f],
+ [ek, P],
+ [qD, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [KD, { render: Yse }],
- [WE, null],
- [GE, null]
- ] }, /*#__PURE__*/ R.createElement($g, null, /*#__PURE__*/ R.createElement(Lse, {
+ [JD, { render: Jse }],
+ [KE, null],
+ [qE, null]
+ ] }, /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(Ise, {
...H(F, N, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -31245,55 +31245,55 @@ function Rse({ 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__*/ R.createElement(XD, null, /*#__PURE__*/ R.createElement(g, {
+ }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: JD(y, _, C)
+ persistedKeys: XD(y, _, C)
})))), E);
}
-var zse = /*#__PURE__*/ (0, R.createContext)(null), ek = class extends ap {
+var Rse = /*#__PURE__*/ (0, R.createContext)(null), nk = class extends op {
static {
this.type = "tableheader";
}
-}, Bse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(YE);
- return n ? /*#__PURE__*/ R.createElement(UE.div, {
+}, zse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(ZE);
+ return n ? /*#__PURE__*/ R.createElement(GE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(UE.thead, {
+ }) : /*#__PURE__*/ R.createElement(GE.thead, {
...e,
ref: t
});
-}), tk = /*#__PURE__*/ og(ek, (e, t) => {
- let n = (0, R.useContext)(ZO).collection, r = hp({
+}), rk = /*#__PURE__*/ sg(nk, (e, t) => {
+ let n = (0, R.useContext)($O).collection, r = gp({
items: n.headerRows,
children: (0, R.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ R.createElement(Hse, { item: e });
+ case "headerrow": return /*#__PURE__*/ R.createElement(Vse, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = eS(), { hoverProps: a, isHovered: o } = dy({
+ }), { rowGroupProps: i } = rS(), { hoverProps: a, isHovered: o } = fy({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = LE({
+ }), s = zE({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ R.createElement(Bse, {
- ...H(Ag(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ R.createElement(zse, {
+ ...H(jg(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ R.createElement(lg, {
+}, (e) => /*#__PURE__*/ R.createElement(ug, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Vse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(YE);
+}, e.children)), Bse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(ZE);
return n ? /*#__PURE__*/ R.createElement("div", {
...e,
ref: t
@@ -31302,41 +31302,41 @@ var zse = /*#__PURE__*/ (0, R.createContext)(null), ek = class extends ap {
ref: t
});
});
-function Hse({ item: e }) {
- let t = (0, R.useRef)(null), n = (0, R.useContext)(ZO), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(YE), { rowProps: a } = fne({
+function Vse({ item: e }) {
+ let t = (0, R.useRef)(null), n = (0, R.useContext)($O), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(ZE), { rowProps: a } = une({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = yne(n);
- return /*#__PURE__*/ R.createElement(Vse, {
+ }, n, t), { checkboxProps: o } = _ne(n);
+ return /*#__PURE__*/ R.createElement(Bse, {
...a,
ref: t
- }, /*#__PURE__*/ R.createElement(IE, { values: [[aD, { slots: { selection: o } }], [oD, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
+ }, /*#__PURE__*/ R.createElement(RE, { values: [[sD, { slots: { selection: o } }], [cD, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Use = class extends ap {
+var Hse = class extends op {
static {
this.type = "column";
}
-}, Wse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(YE);
- return n ? /*#__PURE__*/ R.createElement(UE.div, {
+}, Use = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(ZE);
+ return n ? /*#__PURE__*/ R.createElement(GE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(UE.th, {
+ }) : /*#__PURE__*/ R.createElement(GE.th, {
...e,
ref: t
});
-}), nk = /*#__PURE__*/ ag(Use, (e, t, n) => {
- let r = Lh(t), i = (0, R.useContext)(ZO), { isVirtualized: a } = (0, R.useContext)(YE), { columnHeaderProps: o, isPressed: s } = dne({
+}), ik = /*#__PURE__*/ og(Hse, (e, t, n) => {
+ let r = Rh(t), i = (0, R.useContext)($O), { isVirtualized: a } = (0, R.useContext)(ZE), { columnHeaderProps: o, isPressed: s } = lne({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = sy(), d = (0, R.useContext)(QO), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = cy(), d = (0, R.useContext)(ek), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = dy({ isDisabled: !e.allowsSorting }), h = LE({
+ let { hoverProps: p, isHovered: m } = fy({ isDisabled: !e.allowsSorting }), h = zE({
...e,
id: void 0,
children: n.rendered,
@@ -31362,8 +31362,8 @@ var Use = class extends ap {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Ag(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ R.createElement(Wse, {
+ let _ = jg(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ R.createElement(Use, {
...H(_, o, u, p),
...h,
style: g,
@@ -31375,28 +31375,28 @@ var Use = class extends ap {
"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__*/ R.createElement(IE, { values: [[Gse, {
+ }, /*#__PURE__*/ R.createElement(RE, { values: [[Wse, {
column: n,
triggerRef: r
- }], [YE, qE]] }, h.children));
-}), Gse = /*#__PURE__*/ (0, R.createContext)(null), rk = class extends op {
+ }], [ZE, YE]] }, h.children));
+}), Wse = /*#__PURE__*/ (0, R.createContext)(null), ak = class extends sp {
static {
this.type = "tablebody";
}
-}, Kse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(YE);
- return n ? /*#__PURE__*/ R.createElement(UE.div, {
+}, Gse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(ZE);
+ return n ? /*#__PURE__*/ R.createElement(GE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(UE.tbody, {
+ }) : /*#__PURE__*/ R.createElement(GE.tbody, {
...e,
ref: t
});
-}), ik = /*#__PURE__*/ og(rk, (e, t, n) => {
- let r = (0, R.useContext)(ZO), { isVirtualized: i } = (0, R.useContext)(YE), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(YE), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(GD), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), ok = /*#__PURE__*/ sg(ak, (e, t, n) => {
+ let r = (0, R.useContext)($O), { isVirtualized: i } = (0, R.useContext)(ZE), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(ZE), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(qD), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = LE({
+ }, p = zE({
...e,
id: void 0,
children: void 0,
@@ -31405,33 +31405,33 @@ var Use = class extends ap {
}), 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__*/ R.createElement(ok, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ R.createElement(ck, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ R.createElement(ck, {
+ }, /*#__PURE__*/ R.createElement(uk, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = eS(), _ = Ag(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Kse, {
+ let { rowGroupProps: g } = rS(), _ = jg(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(Gse, {
...H(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ R.createElement(ece, null), /*#__PURE__*/ R.createElement(o, {
+ }, l && /*#__PURE__*/ R.createElement($se, null), /*#__PURE__*/ R.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: qD(s, c)
+ renderDropIndicator: YD(s, c)
}), m);
});
-(class extends op {
+(class extends sp {
static {
this.type = "tablefooter";
}
});
-var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qse = class extends ap {
+var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Kse = class extends op {
static {
this.type = "item";
}
@@ -31443,31 +31443,31 @@ var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs
}
return null;
}
-}, ok = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(YE);
- return n ? /*#__PURE__*/ R.createElement(UE.div, {
+}, ck = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(ZE);
+ return n ? /*#__PURE__*/ R.createElement(GE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(UE.tr, {
+ }) : /*#__PURE__*/ R.createElement(GE.tr, {
...e,
ref: t
});
-}), sk = /*#__PURE__*/ og(qse, (e, t, n) => {
- let r = Lh(t), i = (0, R.useContext)(ZO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(GD), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(YE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = hne({
+}), lk = /*#__PURE__*/ sg(Kse, (e, t, n) => {
+ let r = Rh(t), i = (0, R.useContext)($O), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(ZE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = pne({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = sy(), { isFocusVisible: _, focusProps: v } = sy({ within: !0 }), { hoverProps: y, isHovered: b } = dy({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = cy(), { isFocusVisible: _, focusProps: v } = cy({ within: !0 }), { hoverProps: y, isHovered: b } = fy({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = vne({ key: n.key }, i), S;
+ }), { checkboxProps: x } = gne({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, R.useRef)(null), { visuallyHiddenProps: T } = G_();
+ let C, w = (0, R.useRef)(null), { visuallyHiddenProps: T } = K_();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -31477,7 +31477,7 @@ var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs
(0, R.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 = LE({
+ 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 = zE({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -31498,11 +31498,11 @@ var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs
isExpanded: j,
level: n.level + 1
}
- }), N = Ag(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(ok, {
+ }), N = jg(e, { global: !0 });
+ return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(ck, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(ck, {
+ }, /*#__PURE__*/ R.createElement(uk, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -31511,7 +31511,7 @@ var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ R.createElement(ok, {
+ }))), /*#__PURE__*/ R.createElement(ck, {
...H(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -31527,17 +31527,17 @@ var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(IE, { values: [
- [aD, { slots: {
- [FE]: {},
+ }, /*#__PURE__*/ R.createElement(RE, { values: [
+ [sD, { slots: {
+ [LE]: {},
selection: x
} }],
- [oD, { slots: {
- [FE]: {},
+ [cD, { slots: {
+ [LE]: {},
selection: x
} }],
- [QE, { slots: {
- [FE]: {},
+ [eD, { slots: {
+ [LE]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -31545,8 +31545,8 @@ var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs
style: { pointerEvents: "none" }
}
} }],
- [ZD, { isSelected: p.isSelected }],
- [ak, { isFocusVisibleWithinRow: _ }]
+ [$D, { isSelected: p.isSelected }],
+ [sk, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ R.createElement(l, {
collection: i.collection,
parent: n
@@ -31554,34 +31554,34 @@ var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ R.createElement(lg, {
+ return /*#__PURE__*/ R.createElement(ug, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Jse = class extends ap {
+}), qse = class extends op {
static {
this.type = "cell";
}
-}, ck = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(YE);
- return n ? /*#__PURE__*/ R.createElement(UE.div, {
+}, uk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(ZE);
+ return n ? /*#__PURE__*/ R.createElement(GE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(UE.td, {
+ }) : /*#__PURE__*/ R.createElement(GE.td, {
...e,
ref: t
});
-}), lk = /*#__PURE__*/ ag(Jse, (e, t, n) => {
- let r = Lh(t), i = (0, R.useContext)(ZO), { dragState: a } = (0, R.useContext)(GD), { isVirtualized: o } = (0, R.useContext)(YE);
+}), dk = /*#__PURE__*/ og(qse, (e, t, n) => {
+ let r = Rh(t), i = (0, R.useContext)($O), { dragState: a } = (0, R.useContext)(qD), { isVirtualized: o } = (0, R.useContext)(ZE);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = lne({
+ 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 } = sy(), { hoverProps: f, isHovered: p } = dy({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(ak), 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 = LE({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = cy(), { hoverProps: f, isHovered: p } = fy({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(sk), 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 = zE({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -31600,8 +31600,8 @@ var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Ag(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ R.createElement(ck, {
+ }), S = jg(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ R.createElement(uk, {
...H(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -31615,14 +31615,14 @@ var ak = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ R.createElement(YE.Provider, { value: qE }, x.children));
+ }, /*#__PURE__*/ R.createElement(ZE.Provider, { value: YE }, x.children));
});
-function Yse(e, t) {
- t = Lh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(GD), i = (0, R.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Jse(e, t) {
+ t = Rh(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(qD), i = (0, R.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__*/ R.createElement($se, {
+ return /*#__PURE__*/ R.createElement(Qse, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -31631,40 +31631,40 @@ function Yse(e, t) {
ref: t
});
}
-var Xse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(YE);
- return n ? /*#__PURE__*/ R.createElement(UE.div, {
+var Yse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(ZE);
+ return n ? /*#__PURE__*/ R.createElement(GE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(UE.tr, {
+ }) : /*#__PURE__*/ R.createElement(GE.tr, {
...e,
ref: t
});
-}), Zse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(YE);
- return n ? /*#__PURE__*/ R.createElement(UE.div, {
+}), Xse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(ZE);
+ return n ? /*#__PURE__*/ R.createElement(GE.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(UE.td, {
+ }) : /*#__PURE__*/ R.createElement(GE.td, {
...e,
ref: t
});
});
-function Qse(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(ZO), { visuallyHiddenProps: c } = G_(), l = LE({
+function Zse(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)($O), { visuallyHiddenProps: c } = K_(), l = zE({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(Xse, {
- ...Ag(e, { global: !0 }),
+ return /*#__PURE__*/ R.createElement(Yse, {
+ ...jg(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ R.createElement(Zse, {
+ }, /*#__PURE__*/ R.createElement(Xse, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -31675,14 +31675,14 @@ function Qse(e, t) {
ref: i
}), l.children));
}
-var $se = /*#__PURE__*/ (0, R.forwardRef)(Qse);
-function ece() {
- let e = (0, R.useContext)(ZO), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(GD), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = G_();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(ok, {
+var Qse = /*#__PURE__*/ (0, R.forwardRef)(Zse);
+function $se() {
+ let e = (0, R.useContext)($O), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(qD), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = K_();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(ck, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(ck, {
+ }, /*#__PURE__*/ R.createElement(uk, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -31693,9 +31693,9 @@ function ece() {
ref: r
})));
}
-ag(sp, function(e, t, n) {
- let r = (0, R.useContext)(ZO), { isVirtualized: i } = (0, R.useContext)(YE), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
- uO((0, R.useMemo)(() => ({
+og(cp, function(e, t, n) {
+ let r = (0, R.useContext)($O), { isVirtualized: i } = (0, R.useContext)(ZE), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
+ fO((0, R.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -31705,7 +31705,7 @@ ag(sp, function(e, t, n) {
s,
r?.collection
]), u);
- let d = LE({
+ let d = zE({
...c,
id: void 0,
children: n.rendered,
@@ -31713,10 +31713,10 @@ ag(sp, 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__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ok, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ck, {
style: { height: 0 },
- inert: $D(!0)
- }, /*#__PURE__*/ R.createElement(ck, { style: {
+ inert: tO(!0)
+ }, /*#__PURE__*/ R.createElement(uk, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ R.createElement("div", {
@@ -31727,14 +31727,14 @@ ag(sp, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ R.createElement(ok, {
- ...H(Ag(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ R.createElement(ck, {
+ ...H(jg(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(ck, {
+ }, /*#__PURE__*/ R.createElement(uk, {
role: "rowheader",
...p,
style: m
@@ -31742,8 +31742,8 @@ ag(sp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function tce(e) {
- let [t, n] = V_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = cO({
+function ece(e) {
+ let [t, n] = H_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = uO({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -31766,24 +31766,24 @@ function tce(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function nce(e) {
- let t = tce({
+function tce(e) {
+ let t = ece({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? uk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? fk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
let o = i;
- 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;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = fk(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 uk(e, t) {
+function fk(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);
@@ -31793,24 +31793,24 @@ function uk(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var dk = /*#__PURE__*/ (0, R.createContext)(null), fk = /*#__PURE__*/ (0, R.createContext)(null), pk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = zE(e, t, dk);
+var pk = /*#__PURE__*/ (0, R.createContext)(null), mk = /*#__PURE__*/ (0, R.createContext)(null), hk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = VE(e, t, pk);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, R.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ R.createElement(Zh, { content: n }, (n) => /*#__PURE__*/ R.createElement(rce, {
+ }) : n, [n, r]), /*#__PURE__*/ R.createElement(Qh, { content: n }, (n) => /*#__PURE__*/ R.createElement(nce, {
props: e,
collection: n,
tabsRef: t
}));
});
-function rce({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = nce({
+function nce({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = tce({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = sy({ within: !0 }), c = (0, R.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = cy({ within: !0 }), c = (0, R.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -31818,12 +31818,12 @@ function rce({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = LE({
+ ]), l = zE({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Ag(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(UE.div, {
+ }), u = jg(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(GE.div, {
...H(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -31831,20 +31831,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__*/ R.createElement(IE, { values: [[dk, e], [fk, i]] }, l.children));
+ }, /*#__PURE__*/ R.createElement(RE, { values: [[pk, e], [mk, i]] }, l.children));
}
-var mk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return (0, R.useContext)(fk) ? /*#__PURE__*/ R.createElement(ice, {
+var gk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ return (0, R.useContext)(mk) ? /*#__PURE__*/ R.createElement(rce, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ R.createElement(lg, e);
+ }) : /*#__PURE__*/ R.createElement(ug, e);
});
-function ice({ props: e, forwardedRef: t }) {
- let n = (0, R.useContext)(fk), { CollectionRoot: r } = (0, R.useContext)(YE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = RE(dk), o = Lh(t), { tabListProps: s } = Sne({
+function rce({ props: e, forwardedRef: t }) {
+ let n = (0, R.useContext)(mk), { CollectionRoot: r } = (0, R.useContext)(ZE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = BE(pk), o = Rh(t), { tabListProps: s } = bne({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = LE({
+ }, n, o), c = zE({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -31852,30 +31852,30 @@ function ice({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Ag(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ R.createElement(UE.div, {
+ }), l = jg(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ R.createElement(GE.div, {
...H(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ R.createElement(XD, null, /*#__PURE__*/ R.createElement(r, {
+ }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(r, {
collection: n.collection,
- persistedKeys: XE(n.selectionManager.focusedKey)
+ persistedKeys: QE(n.selectionManager.focusedKey)
})));
}
-var hk = /*#__PURE__*/ ag(class extends ap {
+var _k = /*#__PURE__*/ og(class extends op {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, R.useContext)(fk), i = Lh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = bne({
+ let r = (0, R.useContext)(mk), i = Rh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = vne({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = sy(), { hoverProps: f, isHovered: p } = dy({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = cy(), { hoverProps: f, isHovered: p } = fy({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = LE({
+ }), m = zE({
...e,
id: void 0,
children: n.rendered,
@@ -31888,7 +31888,7 @@ var hk = /*#__PURE__*/ ag(class extends ap {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? UE.a : UE.div, g = Ag(e, { global: !0 });
+ }), h = n.props.href ? GE.a : GE.div, g = jg(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ R.createElement(h, {
...H(g, m, a, l, f),
ref: i,
@@ -31898,58 +31898,58 @@ var hk = /*#__PURE__*/ ag(class extends ap {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ R.createElement(ZD.Provider, { value: { isSelected: o } }, m.children));
-}), gk = /*#__PURE__*/ Wh(function(e, t) {
- let n = (0, R.useContext)(fk), r = Lh(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ R.createElement($D.Provider, { value: { isSelected: o } }, m.children));
+}), vk = /*#__PURE__*/ Gh(function(e, t) {
+ let n = (0, R.useContext)(mk), r = Rh(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = gO(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(ace, {
+ let s = vO(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(ice, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function ace(e) {
- let t = (0, R.useContext)(fk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Cne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = sy(), d = t.selectedKey === e.id, f = hO(r) && !i, p = LE({
+function ice(e) {
+ let t = (0, R.useContext)(mk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = cy(), d = t.selectedKey === e.id, f = _O(r) && !i, p = zE({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: $D(!d),
+ isInert: tO(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = Ag(o, { global: !0 });
+ }), m = jg(o, { global: !0 });
delete m.id;
let h = d ? H(m, s, c, p) : H(m, p);
- return /*#__PURE__*/ R.createElement(UE.div, {
+ return /*#__PURE__*/ R.createElement(GE.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: $D(!d || e.inert),
+ inert: tO(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ R.createElement(IE, { values: [[dk, null], [fk, null]] }, /*#__PURE__*/ R.createElement(YE.Provider, { value: qE }, p.children)));
+ }, /*#__PURE__*/ R.createElement(RE, { values: [[pk, null], [mk, null]] }, /*#__PURE__*/ R.createElement(ZE.Provider, { value: YE }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var oce = /*#__PURE__*/ (0, R.createContext)({}), sce = /*#__PURE__*/ (0, R.createContext)(null), cce = /*#__PURE__*/ Wh(function(e, t) {
- [e, t] = zE(e, t, sce);
- let { validationBehavior: n } = RE(iD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
- [e, i] = zE(e, i, GE);
- let [a, o] = BE(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = tte({
- ...VE(e),
+var ace = /*#__PURE__*/ (0, R.createContext)({}), oce = /*#__PURE__*/ (0, R.createContext)(null), sce = /*#__PURE__*/ Gh(function(e, t) {
+ [e, t] = VE(e, t, oce);
+ let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
+ [e, i] = VE(e, i, qE);
+ let [a, o] = HE(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = tte({
+ ...UE(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, R.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = LE({
+ }, [i]), h = zE({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -31958,8 +31958,8 @@ var oce = /*#__PURE__*/ (0, R.createContext)({}), sce = /*#__PURE__*/ (0, R.crea
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Ag(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ R.createElement(UE.div, {
+ }), g = jg(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ R.createElement(GE.div, {
...g,
...h,
ref: t,
@@ -31968,38 +31968,38 @@ var oce = /*#__PURE__*/ (0, R.createContext)({}), sce = /*#__PURE__*/ (0, R.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(IE, { values: [
- [ZE, {
+ }, /*#__PURE__*/ R.createElement(RE, { values: [
+ [$E, {
...l,
ref: a
}],
- [lD, {
+ [dD, {
...u,
ref: m
}],
- [oce, {
+ [ace, {
...u,
ref: m
}],
- [cD, {
+ [uD, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [nD, { slots: {
+ [iD, { slots: {
description: d,
errorMessage: f
} }],
- [rD, p]
+ [aD, p]
] }, h.children));
});
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function lce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, B.jsxs)(xoe, {
+function cce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, B.jsxs)(boe, {
"data-label": "true",
...a,
- className: SE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: wE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, B.jsx)("span", {
@@ -32007,7 +32007,7 @@ function lce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, B.jsx)(oae, {
+ n && /* @__PURE__ */ (0, B.jsx)(aae, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -32016,33 +32016,33 @@ function lce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function uce({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, B.jsx)(Toe, {
+function lce({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, B.jsx)(woe, {
slot: e ? "errorMessage" : "description",
...n,
- className: SE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: wE("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 _k = (0, R.createContext)({});
-function vk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, B.jsx)(_k.Provider, {
+var yk = (0, R.createContext)({});
+function bk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, B.jsx)(yk.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, B.jsx)(cce, {
+ children: /* @__PURE__ */ (0, B.jsx)(sce, {
...a,
"data-input-size": e,
- className: SE("group flex h-max w-full flex-col items-start gap-1", r),
+ className: wE("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-vk.displayName = "TextField";
-var yk = CE({
+bk.displayName = "TextField";
+var xk = TE({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -32071,44 +32071,44 @@ var yk = CE({
].join(" "),
icon: "size-5 shrink-0"
});
-function bk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, R.useContext)(_k), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, B.jsx)(Aoe, {
+function Sk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, R.useContext)(yk), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, B.jsx)(koe, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => SE(yk.field, d ? yk.fieldWithAddonSize[u] : yk.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 }) => wE(xk.field, d ? xk.fieldWithAddonSize[u] : xk.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, B.jsxs)("div", {
- className: yk.content,
+ className: xk.content,
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
- className: yk.leftSection,
+ className: xk.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, B.jsx)(t, {
- className: yk.icon,
+ className: xk.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, B.jsx)(Moe, {
+ }) : null, /* @__PURE__ */ (0, B.jsx)(joe, {
ref: o,
...c,
- className: SE(yk.input, l.inputClassName, a)
+ className: wE(xk.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, B.jsx)(n, {
- className: yk.icon,
+ className: xk.icon,
"aria-hidden": !0
}) : null]
})
});
}
-bk.displayName = "InputBase";
-function xk({ 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, B.jsx)(vk, {
+Sk.displayName = "InputBase";
+function Ck({ 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, B.jsx)(bk, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- e && /* @__PURE__ */ (0, B.jsx)(lce, {
+ e && /* @__PURE__ */ (0, B.jsx)(cce, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, B.jsx)(bk, {
+ /* @__PURE__ */ (0, B.jsx)(Sk, {
ref: c,
groupRef: l,
placeholder: r,
@@ -32117,17 +32117,17 @@ function xk({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, B.jsx)(uce, {
+ t && /* @__PURE__ */ (0, B.jsx)(lce, {
isInvalid: d,
children: t
})
] })
});
}
-xk.displayName = "Input";
+Ck.displayName = "Input";
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var Sk = [
+var wk = [
"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",
@@ -32135,10 +32135,10 @@ var Sk = [
"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(" "), dce = "w-[266px]", fce = "flex w-full flex-col gap-1 outline-none", Ck = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), wk = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), uce = "w-[266px]", dce = "flex w-full flex-col gap-1 outline-none", Tk = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Ek = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function pce(e) {
+function fce(e) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -32152,7 +32152,7 @@ function pce(e) {
})
});
}
-function mce(e) {
+function pce(e) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -32166,7 +32166,7 @@ function mce(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function hce(e, t, n) {
+function mce(e, t, n) {
(0, R.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -32180,7 +32180,7 @@ function hce(e, t, n) {
n
]);
}
-function gce(e, t) {
+function hce(e, t) {
let n = (0, R.useRef)(!1);
return (0, R.useEffect)(() => {
if (!e) return;
@@ -32194,33 +32194,33 @@ function gce(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var Tk = (0, R.createContext)("md");
-function Ek({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var Dk = (0, R.createContext)("md");
+function Ok({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, R.useRef)(null), u = (0, R.useRef)(null), [d, f] = (0, R.useState)(!1);
- hce(d, () => f(!1), [l, u]);
- let p = gce(d, l);
- return /* @__PURE__ */ (0, B.jsx)(yse, {
+ mce(d, () => f(!1), [l, u]);
+ let p = hce(d, l);
+ return /* @__PURE__ */ (0, B.jsx)(vse, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: SE("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)($E, {
+ className: wE("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(tD, {
ref: l,
- className: SE("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, B.jsx)(Sse, {
- className: SE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: wE("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, B.jsx)(xse, {
+ className: wE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, B.jsx)(pce, { className: SE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, B.jsx)(bO, {
+ }), /* @__PURE__ */ (0, B.jsx)(fce, { className: wE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, B.jsx)(SO, {
ref: u,
isNonModal: !0,
offset: 4,
- className: SE(dce, Sk, "p-2", n),
- children: /* @__PURE__ */ (0, B.jsx)(Boe, {
+ className: wE(uce, wk, "p-2", n),
+ children: /* @__PURE__ */ (0, B.jsx)(zoe, {
items: a,
- className: SE(fce, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, B.jsx)(Tk.Provider, {
+ className: wE(dce, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, B.jsx)(Dk.Provider, {
value: r,
children: i
})
@@ -32228,31 +32228,31 @@ function Ek({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function Dk({ className: e, children: t, ...n }) {
- let r = (0, R.useContext)(Tk);
- return /* @__PURE__ */ (0, B.jsx)(Uoe, {
+function kk({ className: e, children: t, ...n }) {
+ let r = (0, R.useContext)(Dk);
+ return /* @__PURE__ */ (0, B.jsx)(Hoe, {
...n,
- className: (t) => SE(Ck, 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) => wE(Tk, 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/boardui/components/application/settings/settings-rows.tsx
-function Ok({ className: e, children: t }) {
+function Ak({ className: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: SE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: wE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function kk({ className: e, children: t }) {
+function jk({ className: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
- className: SE("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: wE("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function Ak({ label: e, description: t, children: n }) {
+function Mk({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: SE("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: wE("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, B.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, B.jsx)("p", {
@@ -32267,7 +32267,7 @@ function Ak({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var jk = CE({
+var Nk = TE({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -32291,15 +32291,15 @@ var jk = CE({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function Mk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = SE(jk.base, jk.size[t], jk.variant[e], a), l = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
+function Pk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = wE(Nk.base, Nk.size[t], Nk.variant[e], a), l = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
n ? /* @__PURE__ */ (0, B.jsx)(n, {
- className: jk.icon[t],
+ className: Nk.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, B.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, B.jsx)(r, {
- className: jk.icon[t],
+ className: Nk.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -32326,14 +32326,14 @@ function Mk({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function Nk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function Fk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(kk, { children: e })
+ children: /* @__PURE__ */ (0, B.jsx)(jk, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, B.jsx)(kk, { children: e }), /* @__PURE__ */ (0, B.jsx)(Ok, { children: i })] });
+ }) : /* @__PURE__ */ (0, B.jsx)(jk, { children: e }), /* @__PURE__ */ (0, B.jsx)(Ak, { children: i })] });
return r ? /* @__PURE__ */ (0, B.jsx)("form", {
id: t,
"aria-label": e,
@@ -32348,13 +32348,13 @@ function Nk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function Pk({ children: e }) {
+function Ik({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function Fk({ divided: e = !1, children: t }) {
+function Lk({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -32363,7 +32363,7 @@ function Fk({ divided: e = !1, children: t }) {
children: t
});
}
-function Ik({ status: e, children: t }) {
+function Rk({ status: e, children: t }) {
return /* @__PURE__ */ (0, B.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, B.jsx)("div", {
@@ -32372,34 +32372,34 @@ function Ik({ status: e, children: t }) {
}) : null, t]
});
}
-function Lk({ role: e, children: t }) {
+function zk({ role: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function Rk({ children: e }) {
+function Bk({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function zk({ children: e }) {
+function Vk({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function Bk({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, B.jsx)(Mk, {
+function Hk({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, B.jsx)(Pk, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: CT,
+ trailingIcon: TT,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -32407,13 +32407,13 @@ function Bk({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function Vk({ children: e }) {
+function Uk({ children: e }) {
return /* @__PURE__ */ (0, B.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function Hk({ term: e, children: t }) {
+function Wk({ term: e, children: t }) {
return /* @__PURE__ */ (0, B.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, B.jsx)("dt", {
@@ -32425,7 +32425,7 @@ function Hk({ term: e, children: t }) {
})]
});
}
-function Uk({ summary: e, defaultOpen: t = !1, children: n }) {
+function Gk({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, R.useId)(), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(t);
return /* @__PURE__ */ (0, B.jsxs)("details", {
ref: (e) => {
@@ -32438,7 +32438,7 @@ function Uk({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (Xe(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, B.jsx)(hT, {
+ children: [/* @__PURE__ */ (0, B.jsx)(_T, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -32453,7 +32453,7 @@ function Uk({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function _ce({ name: e }) {
+function gce({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32462,22 +32462,22 @@ function _ce({ name: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-function Wk({ mark: e }) {
+function Kk({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, B.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, B.jsx)(_ce, { name: e });
+ }) : /* @__PURE__ */ (0, B.jsx)(gce, { name: e });
}
//#endregion
//#region src/react/activity/tasks.ts
-var Gk = "/api/tasks", Kk = ["tasks"], vce = (e, t) => W(`${Gk}?${new URLSearchParams({
+var qk = "/api/tasks", Jk = ["tasks"], _ce = (e, t) => W(`${qk}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function qk(...e) {
+function Yk(...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) => {
@@ -32485,26 +32485,26 @@ function qk(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var yce = 2e3, bce = 1e4, xce = (e) => e?.running.length ? yce : bce, Jk = (e) => W(Gk, e);
-async function Sce(e) {
+var vce = 2e3, yce = 1e4, bce = (e) => e?.running.length ? vce : yce, Xk = (e) => W(qk, e);
+async function xce(e) {
await p.fetchQuery({
- queryKey: Kk,
- queryFn: () => Jk(e)
+ queryKey: Jk,
+ queryFn: () => Xk(e)
});
}
-var Yk = {
+var Zk = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Cce = {
+}, Sce = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, wce = (e) => Cce[e] || e, Tce = {
+}, Cce = (e) => Sce[e] || e, wce = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -32534,7 +32534,7 @@ var Yk = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function Ece(e) {
+function Tce(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -32543,7 +32543,7 @@ function Ece(e) {
}
return t;
}
-function Dce(e, t) {
+function Ece(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -32565,19 +32565,19 @@ function Dce(e, t) {
}
return n;
}
-var Oce = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Xk = (e) => e.status === "pending" || e.status === "running";
-function kce(e) {
+var Dce = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Qk = (e) => e.status === "pending" || e.status === "running";
+function Oce(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 || $k(e.result_summary) || (Xk(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || tA(e.result_summary) || (Qk(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function Zk(e) {
+function $k(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 Qk(e) {
+function eA(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -32587,7 +32587,7 @@ function Qk(e) {
minute: "2-digit"
});
}
-var Ace = /* @__PURE__ */ new Set([
+var kce = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -32596,23 +32596,23 @@ var Ace = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function $k(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Ace.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Tce[e] || e} ${t}`).join(" · ");
+function tA(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !kce.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${wce[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/resource-search.tsx
-function jce({ className: e }) {
+function Ace({ className: e }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Qe("") }
});
}
-function Mce(e) {
+function jce(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Nce({ initialCode: e, reason: t, choose: n }) {
- let [r, i] = (0, R.useState)(e), [a, o] = (0, R.useState)(() => Mce(t)), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(""), [h, g] = (0, R.useState)(""), _ = PE(), v = () => {
+function nA({ initialCode: e, reason: t, choose: n }) {
+ let [r, i] = (0, R.useState)(e), [a, o] = (0, R.useState)(() => jce(t)), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(""), [h, g] = (0, R.useState)(""), _ = IE(), v = () => {
if (!r.trim() || _.busy) return;
let e = new URLSearchParams({
code: r.trim(),
@@ -32629,17 +32629,17 @@ function Nce({ initialCode: e, reason: t, choose: n }) {
"aria-busy": !!_.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ t ? /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "搜索资源",
value: r,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
- leadingIcon: _.busy ? jce : jT,
+ leadingIcon: _.busy ? Ace : NT,
isReadOnly: !!_.busy,
"aria-busy": !!_.busy,
onChange: i,
@@ -32649,7 +32649,7 @@ function Nce({ initialCode: e, reason: t, choose: n }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "优先寻找" }), /* @__PURE__ */ (0, B.jsxs)(Ek, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "优先寻找" }), /* @__PURE__ */ (0, B.jsxs)(Ok, {
"aria-label": "优先寻找",
selectedKey: a,
isDisabled: !!_.busy,
@@ -32657,15 +32657,15 @@ function Nce({ initialCode: e, reason: t, choose: n }) {
e !== null && o(String(e));
},
children: [
- /* @__PURE__ */ (0, B.jsx)(Dk, {
+ /* @__PURE__ */ (0, B.jsx)(kk, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, B.jsx)(Dk, {
+ /* @__PURE__ */ (0, B.jsx)(kk, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, B.jsx)(Dk, {
+ /* @__PURE__ */ (0, B.jsx)(kk, {
id: "uncensored",
children: "无码"
})
@@ -32674,33 +32674,33 @@ function Nce({ initialCode: e, reason: t, choose: n }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, B.jsx)(xk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: s,
onChange: c
- }), /* @__PURE__ */ (0, B.jsx)(xk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "只查询已启用的自配索引器;最多显示 5 个有做种的候选。清晰度、字幕与无码标记取自来源标题。" }),
- _.busy ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "只查询已启用的自配索引器;最多显示 5 个有做种的候选。清晰度、字幕与无码标记取自来源标题。" }),
+ _.busy ? /* @__PURE__ */ (0, B.jsx)(zk, {
role: "status",
children: "正在搜索资源"
}) : null,
- _.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: _.error }) : null,
- d?.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ _.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: _.error }) : null,
+ d?.error ? /* @__PURE__ */ (0, B.jsx)(zk, {
role: "status",
children: d.error
}) : null,
- d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, B.jsx)(zk, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- d?.warnings.map((e) => /* @__PURE__ */ (0, B.jsx)(Lk, { children: e }, e)),
+ d?.warnings.map((e) => /* @__PURE__ */ (0, B.jsx)(zk, { children: e }, e)),
d?.items.length ? /* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: d.items.map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
@@ -32710,7 +32710,7 @@ function Nce({ initialCode: e, reason: t, choose: n }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: [
`${(e.size / 1024 ** 3).toFixed(2)} GiB`,
`${e.seeders} 个做种`,
e.resolution ? `${e.resolution}p` : "",
@@ -32736,23 +32736,23 @@ function Nce({ initialCode: e, reason: t, choose: n }) {
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var eA = "/api/downloads", tA = ["downloads"], Pce = "/api/downloads/cancel", Fce = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Ice = {
+var rA = "/api/downloads", iA = ["downloads"], Mce = "/api/downloads/cancel", Nce = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Pce = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
stalled: "yellow"
-}, Lce = {
+}, Fce = {
submitted: "已提交,远端开始下载后这里会显示进度。",
adopted: "这个磁力已经有任务了,接着跟进那一条,没有重复提交。",
adopted_remote: "远端已经有同一个任务,已接管,没有再扣配额。",
refused: "这个资源被判为违规,不再提交。",
failed: "提交没有成功。"
-}, Rce = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, nA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
-function zce({ prefill: e }) {
- let t = SS({
- queryKey: tA,
- queryFn: ({ signal: e }) => W(`${eA}?limit=50`, e),
- refetchInterval: (e) => Fce(e.state.data)
+}, Ice = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, aA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
+function Lce({ prefill: e }) {
+ let t = TS({
+ queryKey: iA,
+ queryFn: ({ signal: e }) => W(`${rA}?limit=50`, e),
+ refetchInterval: (e) => Nce(e.state.data)
}), n = t.data;
if (!n) return t.error ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -32764,7 +32764,7 @@ function zce({ prefill: e }) {
tone: "error",
children: U(t.error)
}) : null,
- n.available ? r.length ? /* @__PURE__ */ (0, B.jsx)(Bce, {
+ n.available ? r.length ? /* @__PURE__ */ (0, B.jsx)(Rce, {
snapshot: n,
prefill: e
}) : /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -32777,15 +32777,15 @@ function zce({ prefill: e }) {
n.tasks.length ? /* @__PURE__ */ (0, B.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: n.tasks.map((e) => /* @__PURE__ */ (0, B.jsx)(Hce, {
+ children: n.tasks.map((e) => /* @__PURE__ */ (0, B.jsx)(Bce, {
task: e,
writable: n.available
}, e.id))
}) : null
] });
}
-function Bce({ snapshot: e, prefill: t }) {
- let n = oS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, R.useState)(r[0].key), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(t?.code ?? ""), [u, d] = (0, R.useState)(r[0].target), [f, p] = (0, R.useState)(null), m = PE(), h = (0, R.useRef)(null);
+function Rce({ snapshot: e, prefill: t }) {
+ let n = lS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, R.useState)(r[0].key), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(t?.code ?? ""), [u, d] = (0, R.useState)(r[0].target), [f, p] = (0, R.useState)(null), m = IE(), h = (0, R.useRef)(null);
(0, R.useEffect)(() => {
t && h.current?.focus();
}, [t]);
@@ -32805,21 +32805,21 @@ function Bce({ snapshot: e, prefill: t }) {
title: t?.title,
origin: t?.origin
};
- p(null), m.run("submit", (e) => G(eA, r, "POST", e), (e) => {
- p(e), e.ok && s(""), n.invalidateQueries({ queryKey: tA });
+ p(null), m.run("submit", (e) => G(rA, r, "POST", e), (e) => {
+ p(e), e.ok && s(""), n.invalidateQueries({ queryKey: iA });
});
},
- children: /* @__PURE__ */ (0, B.jsxs)(Ok, { children: [
- /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Nce, {
+ children: /* @__PURE__ */ (0, B.jsxs)(Ak, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(nA, {
initialCode: t?.code ?? "",
reason: t?.searchReason,
choose: (e, t) => {
s(e), l(t), h.current?.focus();
}
}),
- t?.title ? /* @__PURE__ */ (0, B.jsx)(Lk, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ t?.title ? /* @__PURE__ */ (0, B.jsx)(zk, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
ref: h,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -32830,19 +32830,19 @@ function Bce({ snapshot: e, prefill: t }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "下载到" }), /* @__PURE__ */ (0, B.jsx)(Ek, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "下载到" }), /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "下载到",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && _(String(e));
},
- children: r.map((e) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: r.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e.key,
children: e.label
}, e.key))
})]
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "目标目录",
placeholder: g.target || "/云下载",
autoComplete: "off",
@@ -32851,7 +32851,7 @@ function Bce({ snapshot: e, prefill: t }) {
value: u,
onChange: d
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
@@ -32860,15 +32860,15 @@ function Bce({ snapshot: e, prefill: t }) {
onChange: l
})
] }),
- f ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ f ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Vce, { result: f })
+ children: /* @__PURE__ */ (0, B.jsx)(zce, { result: f })
}) : null,
- m.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ m.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Rk, { children: m.error })
+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: m.error })
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Ik, {
+ /* @__PURE__ */ (0, B.jsx)(Rk, {
status: i === "115" ? "115 每提交一次扣一条离线配额,重新提交也算。" : void 0,
children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
@@ -32880,23 +32880,23 @@ function Bce({ snapshot: e, prefill: t }) {
] })
});
}
-function Vce({ result: e }) {
- let t = nA(e.task), n = Lce[e.outcome];
- return e.outcome === "failed" ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: n }) : /* @__PURE__ */ (0, B.jsx)(Lk, {
+function zce({ result: e }) {
+ let t = aA(e.task), n = Fce[e.outcome];
+ return e.outcome === "failed" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: n }) : /* @__PURE__ */ (0, B.jsx)(zk, {
role: "status",
children: n
});
}
-function Hce({ task: e, writable: t }) {
- let n = oS(), r = PE(), [i, a] = (0, R.useState)(!1), o = nA(e), s = e.state === "failed", c = [
+function Bce({ task: e, writable: t }) {
+ let n = lS(), r = IE(), [i, a] = (0, R.useState)(!1), o = aA(e), s = e.state === "failed", c = [
e.provider_label,
e.code,
e.target,
- Qk(e.submitted_at)
+ eA(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
- n.invalidateQueries({ queryKey: tA });
+ n.invalidateQueries({ queryKey: iA });
}, u = () => {
- r.run("cancel", (t) => G(Pce, { id: e.id }, "POST", t), l);
+ r.run("cancel", (t) => G(Mce, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@ -32906,14 +32906,14 @@ function Hce({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => G(eA, t, "POST", e), l);
+ r.run("resubmit", (e) => G(rA, t, "POST", e), l);
}, f = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
};
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: OE({
+ className: AE({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -32925,9 +32925,9 @@ function Hce({ task: e, writable: t }) {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
- children: Rce(e)
- }), /* @__PURE__ */ (0, B.jsx)(TE, {
- color: Ice[e.state] ?? "neutral",
+ children: Ice(e)
+ }), /* @__PURE__ */ (0, B.jsx)(DE, {
+ color: Pce[e.state] ?? "neutral",
children: e.state_label
})]
}),
@@ -32935,7 +32935,7 @@ function Hce({ 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, B.jsx)(NE, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, B.jsx)(FE, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -32944,7 +32944,7 @@ function Hce({ 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, B.jsx)(Rk, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null,
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
@@ -32982,23 +32982,23 @@ function Hce({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Uce = {
+var Vce = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function rA({ status: e }) {
- return /* @__PURE__ */ (0, B.jsx)(TE, {
- color: Uce[e] ?? "neutral",
- children: wce(e)
+function oA({ status: e }) {
+ return /* @__PURE__ */ (0, B.jsx)(DE, {
+ color: Vce[e] ?? "neutral",
+ children: Cce(e)
});
}
-function Wce({ rows: e }) {
+function Hce({ rows: e }) {
return /* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = kce(e);
+ let t = Oce(e);
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -33008,7 +33008,7 @@ function Wce({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, B.jsx)(rA, { status: e.status }),
+ /* @__PURE__ */ (0, B.jsx)(oA, { status: e.status }),
t ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -33018,12 +33018,12 @@ function Wce({ rows: e }) {
})
});
}
-function iA({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function sA({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: OE({
+ className: AE({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -33037,7 +33037,7 @@ function iA({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, B.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, B.jsx)(rA, { status: e.status })]
+ }), /* @__PURE__ */ (0, B.jsx)(oA, { status: e.status })]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -33046,7 +33046,7 @@ function iA({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, B.jsx)(Wce, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, B.jsx)(Hce, { rows: i }) : null,
r ? /* @__PURE__ */ (0, B.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, B.jsx)("p", {
@@ -33057,15 +33057,15 @@ function iA({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function Gce({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Zk(e.elapsed_seconds), o = [Yk[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, B.jsx)(iA, {
+function Uce({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = $k(e.elapsed_seconds), o = [Zk[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, B.jsx)(sA, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(NE, {
+ children: [/* @__PURE__ */ (0, B.jsx)(FE, {
label: i,
value: r,
max: n
@@ -33080,20 +33080,20 @@ function Gce({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, B.jsx)(AE, { label: i })
+ }) : /* @__PURE__ */ (0, B.jsx)(ME, { label: i })
});
}
-function aA({ run: e, followups: t, runs: n }) {
- let r = $k(e.result_summary), i = Zk(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- Yk[e.trigger] || e.trigger,
+function cA({ run: e, followups: t, runs: n }) {
+ let r = tA(e.result_summary), i = $k(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ Zk[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${Qk(a.finished_at)} – ${Qk(e.finished_at)}`
+ `${eA(a.finished_at)} – ${eA(e.finished_at)}`
] : [
- Yk[e.trigger] || e.trigger,
- Qk(e.finished_at),
+ Zk[e.trigger] || e.trigger,
+ eA(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, B.jsx)(iA, {
+ return /* @__PURE__ */ (0, B.jsx)(sA, {
run: e,
meta: o,
footer: e.error,
@@ -33104,7 +33104,7 @@ function aA({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function oA({ title: e, children: t }) {
+function lA({ title: e, children: t }) {
let n = (0, R.useId)();
return /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-labelledby": n,
@@ -33116,41 +33116,41 @@ function oA({ title: e, children: t }) {
}), t]
});
}
-function sA({ live: e = !1, children: t }) {
+function uA({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Kce({ prefill: e }) {
- let t = SS({
- queryKey: Kk,
- queryFn: ({ signal: e }) => Jk(e),
- refetchInterval: (e) => xce(e.state.data)
+function Wce({ prefill: e }) {
+ let t = TS({
+ queryKey: Jk,
+ queryFn: ({ signal: e }) => Xk(e),
+ refetchInterval: (e) => bce(e.state.data)
}), n = t.data, r = n?.finished, [i, a] = (0, R.useState)([]), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(r);
- r !== c && (l(r), i.length && c && a(qk(i, c)));
- let u = TS({
- mutationFn: ({ oldest: e }) => vce(e),
+ r !== c && (l(r), i.length && c && a(Yk(i, c)));
+ let u = OS({
+ mutationFn: ({ oldest: e }) => _ce(e),
onSuccess: (e, { shown: t }) => {
- a((n) => qk(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => Yk(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? U(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, B.jsx)(jE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = qk(n.finished || [], i), p = [
+ let f = Yk(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = Ece(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
+ ], m = Tce(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
!u.isPending && v && u.mutate({
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(Xk)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Dce(w, (e) => Oce(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, B.jsxs)(jE, { children: [
+ }, x = _.filter((e) => m.get(e.id)?.some(Qk)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Ece(w, (e) => Dce(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
d ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: d
@@ -33159,20 +33159,20 @@ function Kce({ prefill: e }) {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, B.jsx)(kE, {
+ E ? /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: ET,
+ icon: OT,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(oA, {
+ /* @__PURE__ */ (0, B.jsx)(lA, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, B.jsxs)(sA, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, B.jsxs)(uA, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(Gce, {
+ children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(Uce, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, B.jsx)(aA, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, B.jsx)(cA, {
run: e,
followups: m.get(e.id)
}, e.id))]
@@ -33181,17 +33181,17 @@ function Kce({ prefill: e }) {
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, B.jsx)(oA, {
+ C.length ? /* @__PURE__ */ (0, B.jsx)(lA, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, B.jsx)(sA, { children: C.map((e) => /* @__PURE__ */ (0, B.jsx)(aA, {
+ children: /* @__PURE__ */ (0, B.jsx)(uA, { children: C.map((e) => /* @__PURE__ */ (0, B.jsx)(cA, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, B.jsxs)(oA, {
+ w.length || y ? /* @__PURE__ */ (0, B.jsxs)(lA, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, B.jsx)(sA, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, B.jsx)(aA, {
+ w.length ? /* @__PURE__ */ (0, B.jsx)(uA, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, B.jsx)(cA, {
run: e,
runs: t,
followups: m.get(e.id)
@@ -33203,7 +33203,7 @@ function Kce({ prefill: e }) {
y ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: pT,
+ leadingIcon: hT,
className: "self-start",
...X(u.isPending),
onClick: b,
@@ -33212,15 +33212,15 @@ function Kce({ prefill: e }) {
]
}) : null
] }),
- /* @__PURE__ */ (0, B.jsx)(oA, {
+ /* @__PURE__ */ (0, B.jsx)(lA, {
title: "云下载",
- children: /* @__PURE__ */ (0, B.jsx)(zce, { prefill: e })
+ children: /* @__PURE__ */ (0, B.jsx)(Lce, { prefill: e })
})
] });
}
//#endregion
//#region src/react/components/use-stuck.ts
-function cA(e) {
+function dA(e) {
(0, R.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -33238,9 +33238,9 @@ function cA(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function qce({ title: e, children: t }) {
+function Gce({ title: e, children: t }) {
let n = (0, R.useRef)(null);
- return cA(n), /* @__PURE__ */ (0, B.jsxs)("div", {
+ return dA(n), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -33253,52 +33253,52 @@ function qce({ title: e, children: t }) {
}), t]
});
}
-function lA({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function fA({ 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, R.useRef)(null);
- return cA(d), /* @__PURE__ */ (0, B.jsxs)("div", {
+ return dA(d), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: SE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: wE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
/* @__PURE__ */ (0, B.jsx)("div", {
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: SE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: wE("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, B.jsx)("div", {
ref: u,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: SE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: wE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
-var Jce = "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 uA({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Kce = "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 pA({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: SE(Jce, r),
+ className: wE(Kce, r),
onClick: n,
children: e
});
}
-var Yce = "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 dA({ children: e, onPress: t, busy: n = !1 }) {
+var qce = "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 mA({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Yce,
+ className: qce,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -33309,7 +33309,7 @@ function dA({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-function Xce(e, t, n) {
+function Jce(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;
@@ -33333,11 +33333,11 @@ function Xce(e, t, n) {
h: e.offsetHeight
};
}
-function fA(e, t, n, r, { axis: i = "x" } = {}) {
+function hA(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, R.useRef)(null), o = (0, R.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 ? Xce(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? Jce(u, l, i) : null;
if (!d || !d.w) {
s.hidden = !0;
return;
@@ -33379,19 +33379,19 @@ function fA(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var Zce = {
+var Yce = {
selection: {
- type: ai,
+ type: oi,
duration: .16,
bounce: 0
},
hover: {
- type: ai,
+ type: oi,
duration: .08,
bounce: 0
}
};
-function pA(e) {
+function gA(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!t) return;
@@ -33412,7 +33412,7 @@ function pA(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 = tp(n, { transform: [r, E] }, Zce[e]);
+ l = np(n, { transform: [r, E] }, Yce[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -33449,25 +33449,25 @@ function pA(e) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function mA(e) {
- let t = pA("selection");
- return /* @__PURE__ */ (0, B.jsx)(mk, {
+function _A(e) {
+ let t = gA("selection");
+ return /* @__PURE__ */ (0, B.jsx)(gk, {
...e,
ref: t
});
}
-function hA(e) {
- let t = pA("selection");
- return /* @__PURE__ */ (0, B.jsx)(RO, {
+function vA(e) {
+ let t = gA("selection");
+ return /* @__PURE__ */ (0, B.jsx)(BO, {
...e,
ref: t
});
}
-var gA = "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", _A = "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", Qce = "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", vA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", yA = "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)", $ce = { "text-aa": 1.435 }, bA = /* @__PURE__ */ new Map();
-function xA(e) {
- let t = bA.get(e);
+var yA = "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", bA = "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", Xce = "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", xA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", SA = "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)", Zce = { "text-aa": 1.435 }, CA = /* @__PURE__ */ new Map();
+function wA(e) {
+ let t = CA.get(e);
if (t) return t;
- let n = $ce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, B.jsx)("svg", {
+ let n = Zce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -33481,23 +33481,23 @@ function xA(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, bA.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, CA.set(e, r), r;
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var ele = (e) => e === "videos", SA = () => /* @__PURE__ */ (0, B.jsx)("span", {
+var Qce = (e) => e === "videos", TA = () => /* @__PURE__ */ (0, B.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function tle(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = ele(t), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = fA(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = fA(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function $ce(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Qce(t), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = hA(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = hA(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, R.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(CA, {
+ }, [c]), /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(EA, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, B.jsx)(lA, {
+ }), /* @__PURE__ */ (0, B.jsx)(fA, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -33517,13 +33517,13 @@ function tle(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(nle, {
+ top: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(ele, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, B.jsx)(SA, {}) : null] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, B.jsx)(TA, {}) : null] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -33543,11 +33543,11 @@ function tle(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, B.jsx)(SA, {})]
+ }, e.k)), /* @__PURE__ */ (0, B.jsx)(TA, {})]
}), /* @__PURE__ */ (0, B.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, B.jsxs)(uA, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, B.jsxs)(pA, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -33559,10 +33559,10 @@ function tle(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, B.jsx)(rle, { ...e })
+ bottom: /* @__PURE__ */ (0, B.jsx)(tle, { ...e })
})] });
}
-function nle({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function ele({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -33604,7 +33604,7 @@ function nle({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function CA({ items: e, hidden: t, actions: n }) {
+function EA({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -33624,7 +33624,7 @@ function CA({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function rle(e) {
+function tle(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, B.jsxs)("button", {
@@ -33636,22 +33636,22 @@ function rle(e) {
dangerouslySetInnerHTML: { __html: L("chevron-left") }
}), /* @__PURE__ */ (0, B.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, B.jsx)(ile, {
+ /* @__PURE__ */ (0, B.jsx)(nle, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, B.jsx)(ale, {
+ t === "videos" && i ? /* @__PURE__ */ (0, B.jsx)(rle, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, B.jsx)(ole, {
+ t === "photos" && a ? /* @__PURE__ */ (0, B.jsx)(ile, {
head: a,
actions: o,
helpers: s
}) : null
] });
}
-function ile({ text: e, busy: t }) {
+function nle({ text: e, busy: t }) {
return /* @__PURE__ */ (0, B.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, B.jsx)("span", {
@@ -33661,22 +33661,22 @@ function ile({ text: e, busy: t }) {
}) : e
});
}
-function wA({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, B.jsx)(RO, {
+function DA({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, B.jsx)(BO, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: vA,
+ className: xA,
children: r.map(([e, t, n]) => {
- let r = xA(n);
- return /* @__PURE__ */ (0, B.jsx)(zO, {
+ let r = wA(n);
+ return /* @__PURE__ */ (0, B.jsx)(VO, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: yA,
+ className: SA,
children: /* @__PURE__ */ (0, B.jsx)("span", {
title: t,
className: "contents",
@@ -33686,7 +33686,7 @@ function wA({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function TA({ onPress: e, busy: t = !1 }) {
+function OA({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -33700,27 +33700,27 @@ function TA({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? Qe("正在换一批") : L("shuffle") }
});
}
-function ale({ head: e, actions: t }) {
+function rle({ head: e, actions: t }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(TA, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, B.jsx)(wA, {
+ /* @__PURE__ */ (0, B.jsx)(OA, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, B.jsx)(DA, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, B.jsx)(EA, {
+ /* @__PURE__ */ (0, B.jsx)(kA, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function EA({ sorts: e, onSort: t }) {
+function kA({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: e.map((e) => {
- let n = xA(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = wA(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -33732,20 +33732,20 @@ function EA({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function ole({ head: e, actions: t, helpers: n }) {
+function ile({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, R.useState)(!1), a = (0, R.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, R.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, B.jsx)(TA, {
+ e.shuffle ? /* @__PURE__ */ (0, B.jsx)(OA, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, B.jsx)(wA, {
+ /* @__PURE__ */ (0, B.jsx)(DA, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -33761,34 +33761,34 @@ function ole({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var DA = "";
-function sle(e) {
- let t = !e.tiers, n = mle(e.comboHost);
+var AA = "";
+function ale(e) {
+ let t = !e.tiers, n = fle(e.comboHost);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, np.createPortal)(/* @__PURE__ */ (0, B.jsx)(CA, {
+ n ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(EA, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, B.jsx)(ule, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, B.jsx)(cle, { ...e })
+ /* @__PURE__ */ (0, B.jsx)(cle, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, B.jsx)(ole, { ...e })
]
});
}
-function cle(e) {
- let { actions: t, helpers: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = fA(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function ole(e) {
+ let { actions: t, helpers: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = hA(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, R.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = kA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = MA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, R.useLayoutEffect)(() => {
Ue(o.current, "tagbar");
- }, [u]), /* @__PURE__ */ (0, B.jsx)(lA, {
+ }, [u]), /* @__PURE__ */ (0, B.jsx)(fA, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -33831,17 +33831,17 @@ function cle(e) {
}), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, B.jsx)(OA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, B.jsx)(lle, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, B.jsx)(jA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, B.jsx)(sle, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, B.jsx)(fle, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, B.jsx)(ule, { ...e })
});
}
-function lle({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, B.jsxs)(uA, {
+function sle({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, B.jsxs)(pA, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -33852,12 +33852,12 @@ function lle({ tag: e, onPress: t }) {
})]
});
}
-function ule(e) {
+function cle(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useCallback)((e) => () => t.moreTops(e), [t]), c = kA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = kA(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, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useCallback)((e) => () => t.moreTops(e), [t]), c = MA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = MA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
return (0, R.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -33870,7 +33870,7 @@ function ule(e) {
children: [u ? /* @__PURE__ */ (0, B.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, B.jsx)(OA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, B.jsx)(jA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -33887,18 +33887,18 @@ function ule(e) {
}) : null, d ? /* @__PURE__ */ (0, B.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, B.jsx)(OA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, B.jsx)(jA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, B.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, B.jsx)(dle, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, B.jsx)(lle, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function dle({ studio: e }) {
+function lle({ studio: e }) {
let [t, n] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsx)("span", {
"data-tier-mark": "",
@@ -33912,7 +33912,7 @@ function dle({ studio: e }) {
}) : e.fallback
});
}
-function OA({ kind: e }) {
+function jA({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -33928,32 +33928,32 @@ function OA({ kind: e }) {
children: [/* @__PURE__ */ (0, B.jsx)("span", {}), /* @__PURE__ */ (0, B.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function fle({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function ule({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, R.useState)(!1);
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(ple, { count: e }), /* @__PURE__ */ (0, B.jsxs)("span", {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(dle, { count: e }), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(TA, {
+ /* @__PURE__ */ (0, B.jsx)(OA, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, B.jsx)(wA, {
+ n ? /* @__PURE__ */ (0, B.jsx)(DA, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, B.jsx)(EA, {
+ /* @__PURE__ */ (0, B.jsx)(kA, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function ple({ count: e }) {
+function dle({ count: e }) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
return (0, R.useLayoutEffect)(() => {
if (!e) {
@@ -33961,7 +33961,7 @@ function ple({ count: e }) {
return;
}
let i = t.current;
- i && (DA && i.dataset.popCount === void 0 && (i.dataset.popCount = DA), DA = r, We(i, r));
+ i && (AA && i.dataset.popCount === void 0 && (i.dataset.popCount = AA), AA = r, We(i, r));
}, [e, r]), e ? /* @__PURE__ */ (0, B.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -33977,7 +33977,7 @@ function ple({ count: e }) {
})
}, "skeleton");
}
-function mle(e) {
+function fle(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!e) return;
@@ -33987,7 +33987,7 @@ function mle(e) {
};
}, [e]), t;
}
-function kA(e, t, n, r, i) {
+function MA(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -34033,7 +34033,7 @@ function kA(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function AA(e, t) {
+function NA(e, t) {
let [n, r] = (0, R.useState)(e ? "skeleton" : "none"), [i] = (0, R.useState)(() => e ? t() : ""), a = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
a.current && Fe(a.current);
@@ -34059,7 +34059,7 @@ function AA(e, t) {
fading: n === "fade"
};
}
-function jA({ message: e, onRetry: t }) {
+function PA({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -34073,7 +34073,7 @@ function jA({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/components/art-slot.tsx
-function MA({ artwork: e, identity: t = e.html, relayout: n }) {
+function FA({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, R.useState)({
identity: t,
artwork: e
@@ -34093,24 +34093,24 @@ function MA({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/media-card.tsx
-var hle = 9 / 16;
-function NA({ name: e }) {
+var ple = 9 / 16;
+function IA({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-var gle = {
+var mle = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
};
-function PA(e, t, n) {
- return t === "short" ? hle : b(n);
+function LA(e, t, n) {
+ return t === "short" ? ple : b(n);
}
-function _le(e) {
+function hle(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = j(e), s = i[0] || "", c = ie(e);
return {
avatar: r ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -34157,7 +34157,7 @@ function _le(e) {
})
};
}
-function vle() {
+function gle() {
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -34176,7 +34176,7 @@ function vle() {
})]
});
}
-function yle({ item: e, actions: t }) {
+function _le({ item: e, actions: t }) {
let [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-media-later": "",
@@ -34194,21 +34194,21 @@ function yle({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, B.jsx)(NA, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, B.jsx)(IA, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function FA(e, t) {
+function RA(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 ble({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
+function vle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
let l = (0, R.useRef)(null), u = (0, R.useRef)(e);
u.current = e;
let d = (0, R.useCallback)((e) => {
let t = u.current;
l.current && l.current !== e && le(l.current), l.current = e, e && (!t.medium || t.medium === "video") && fe(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 = A(e, h, !1, n.javImage), _ = h === "small" ? g.html : A(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 } = _le(e), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
+ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = A(e, h, !1, n.javImage), _ = h === "small" ? g.html : A(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 } = hle(e), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -34242,9 +34242,9 @@ function ble({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
c(e, r);
}, O = /* @__PURE__ */ (0, B.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(PA(e, t, n)) },
+ style: { "--card-ratio": String(LA(e, t, n)) },
children: [
- g.html ? /* @__PURE__ */ (0, B.jsx)(MA, {
+ g.html ? /* @__PURE__ */ (0, B.jsx)(FA, {
artwork: g,
identity: _,
relayout: (e) => ce(e, h)
@@ -34258,11 +34258,11 @@ function ble({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, B.jsx)(NA, { name: "check" })
+ children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "check" })
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, B.jsx)(NA, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, B.jsx)(IA, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("b", { children: "回收站" })]
}),
f ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-media-group": "",
@@ -34289,8 +34289,8 @@ function ble({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, B.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, B.jsx)(vle, {}),
- /* @__PURE__ */ (0, B.jsx)(yle, {
+ /* @__PURE__ */ (0, B.jsx)(gle, {}),
+ /* @__PURE__ */ (0, B.jsx)(_le, {
item: e,
actions: s
}),
@@ -34300,27 +34300,27 @@ function ble({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), FA(l.current, -a);
+ e.stopPropagation(), RA(l.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, B.jsx)(NA, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), FA(l.current, a);
+ e.stopPropagation(), RA(l.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, B.jsx)(NA, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, B.jsx)(NA, { name: "expand" })
+ children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "expand" })
})
]
})
@@ -34396,8 +34396,8 @@ function ble({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
]
});
}
-function xle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : gle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
+function yle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : mle[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) {
@@ -34423,7 +34423,7 @@ function xle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, B.jsx)(NA, { name: f }), /* @__PURE__ */ (0, B.jsx)("b", { children: d })]
+ children: [/* @__PURE__ */ (0, B.jsx)(IA, { name: f }), /* @__PURE__ */ (0, B.jsx)("b", { children: d })]
}),
l ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-media-art": "thumb",
@@ -34435,11 +34435,11 @@ function xle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, B.jsx)(NA, { name: "check" })
+ children: /* @__PURE__ */ (0, B.jsx)(IA, { name: "check" })
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, B.jsx)(NA, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, B.jsx)(IA, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -34449,7 +34449,7 @@ function xle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: h,
"aria-busy": s || void 0,
"aria-disabled": s || void 0,
- children: s ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { dangerouslySetInnerHTML: { __html: Qe(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, B.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(NA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, B.jsx)("span", { children: m })] })
+ children: s ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { dangerouslySetInnerHTML: { __html: Qe(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, B.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(IA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, B.jsx)("span", { children: m })] })
})
]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -34458,7 +34458,7 @@ function xle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, B.jsx)(NA, { name: f })
+ children: /* @__PURE__ */ (0, B.jsx)(IA, { name: f })
}), /* @__PURE__ */ (0, B.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, B.jsx)("span", {
@@ -34487,17 +34487,17 @@ function xle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
})]
});
}
-function Sle(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, B.jsx)(xle, { ...e }) : /* @__PURE__ */ (0, B.jsx)(ble, { ...e });
+function ble(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, B.jsx)(yle, { ...e }) : /* @__PURE__ */ (0, B.jsx)(vle, { ...e });
}
-var IA = (0, R.memo)(Sle), Cle = 1100, wle = 340, Tle = 5e3;
-function Ele(e, t, n) {
+var zA = (0, R.memo)(ble), xle = 1100, Sle = 340, Cle = 5e3;
+function wle(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, Tle);
+ }, s = () => o(!1), c = setTimeout(s, Cle);
t.cancels.add(s), i.onerror = s, i.onload = () => {
if (!i.naturalWidth) {
o(!1);
@@ -34507,7 +34507,7 @@ function Ele(e, t, n) {
}, i.src = e;
});
}
-function LA({ load: e, canFlip: t, referrerPolicy: n }) {
+function BA({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, R.useState)([]), [a, o] = (0, R.useState)(0), [s, c] = (0, R.useState)(null), l = (0, R.useRef)({
live: !1,
generation: 0,
@@ -34549,11 +34549,11 @@ function LA({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => Ele(t, e, n)));
+ let s = await Promise.all(a.map((t) => wle(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, Cle);
+ p(), e.cycle = setInterval(p, xle);
}));
};
return (0, R.useEffect)(() => d, [d]), {
@@ -34562,7 +34562,7 @@ function LA({ 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(wle, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Sle, () => {
e.armed = null, m();
});
},
@@ -34573,8 +34573,8 @@ function LA({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var RA = xA("play");
-function Dle({ src: e }) {
+var VA = wA("play");
+function Tle({ src: e }) {
let [t, n] = (0, R.useState)(!1);
return t ? null : /* @__PURE__ */ (0, B.jsx)("img", {
"data-mix-poster": "",
@@ -34585,8 +34585,8 @@ function Dle({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var zA = "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 Ole({ faces: e, fallback: t, onOpenEntity: n }) {
+var HA = "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 Ele({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, B.jsx)("button", {
@@ -34594,18 +34594,18 @@ function Ole({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${zA} cursor-pointer outline-none`,
+ className: `${HA} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: k(e.name, e, de(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, B.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${zA} mt-0.5`,
+ className: `${HA} mt-0.5`,
children: t
});
}
-function BA({ 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 = LA({
+function UA({ 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, R.useRef)(b.onPointerLeave);
@@ -34632,11 +34632,11 @@ function BA({ 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, B.jsx)(MA, {
+ f?.html ? /* @__PURE__ */ (0, B.jsx)(FA, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, B.jsx)(Dle, { src: r }, r) : /* @__PURE__ */ (0, B.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, B.jsx)(Tle, { src: r }, r) : /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -34666,7 +34666,7 @@ function BA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, B.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, B.jsx)(RA, {
+ children: [/* @__PURE__ */ (0, B.jsx)(VA, {
"aria-hidden": !0,
className: "size-3.75"
}), g ?? `${n} 个视频`]
@@ -34679,8 +34679,8 @@ function BA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, B.jsx)(RA, {})
- }) : /* @__PURE__ */ (0, B.jsx)(Ole, {
+ children: /* @__PURE__ */ (0, B.jsx)(VA, {})
+ }) : /* @__PURE__ */ (0, B.jsx)(Ele, {
faces: o,
fallback: e.slice(0, 1),
onOpenEntity: s
@@ -34704,20 +34704,20 @@ function BA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function VA(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, B.jsx)(Ale, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${IC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, B.jsx)(jle, { ...e }, t);
+function WA(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, B.jsx)(Ole, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${RC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, B.jsx)(kle, { ...e }, t);
}
-function kle({ name: e }) {
+function Dle({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-function Ale(e) {
- let { actions: t } = e, n = (0, R.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, B.jsx)(IA, {
+function Ole(e) {
+ let { actions: t } = e, n = (0, R.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, B.jsx)(zA, {
item: i,
variant: r,
layout: e.layout,
@@ -34737,15 +34737,15 @@ function Ale(e) {
children: i
});
}
-function jle(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Ore(e) : LC(e), s = i && e.initial ? {
+function kle(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Dre(e) : zC(e), s = i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
offset: 0
}],
pageParams: [0]
- } : void 0, c = ES({
+ } : void 0, c = kS({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
@@ -34758,7 +34758,7 @@ function jle(e) {
(0, R.useEffect)(() => {
c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));
}, [c.isPending]);
- let { tiles: u, pageStarts: d } = (0, R.useMemo)(() => Mre(c.data?.pages || [], {
+ let { tiles: u, pageStarts: d } = (0, R.useMemo)(() => jre(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -34768,7 +34768,7 @@ function jle(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 = AA(c.isPending, e.skeletonHtml), h = (0, R.useRef)(null), g = Mle(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 = NA(c.isPending, e.skeletonHtml), h = (0, R.useRef)(null), g = Ale(e, c.data, u, d, h);
(0, R.useLayoutEffect)(() => {
c.data && e.onCount?.(p, f);
}, [
@@ -34779,12 +34779,12 @@ function jle(e) {
let _ = (0, R.useCallback)((e, t) => n.open(e, t), [n]), v = (0, R.useCallback)((e, t) => n.openResource(e, t), [n]), y = (0, R.useCallback)((e) => n.openShort(e), [n]), b = (0, R.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)(Ple, {
+ }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)(Mle, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, B.jsx)(IA, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, B.jsx)(zA, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -34801,7 +34801,7 @@ function jle(e) {
"data-grid-reveal": m.fading ? "" : void 0,
children: [m.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, B.jsx)(jA, {
+ if (!c.data) return /* @__PURE__ */ (0, B.jsx)(PA, {
message: Te(c.error),
onRetry: () => void c.refetch()
});
@@ -34818,15 +34818,15 @@ function jle(e) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Fre(u, g).map((t) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {
+ children: Pre(u, g).map((t) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(x)
- }), t.strip ? /* @__PURE__ */ (0, B.jsx)(Nle, {
+ }), t.strip ? /* @__PURE__ */ (0, B.jsx)(jle, {
cut: t.strip,
props: e,
onOpen: y
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, B.jsx)(HA, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, B.jsx)(GA, {
entity: i,
load: b,
enabled: () => e.canLoadMore?.() !== !1
@@ -34834,7 +34834,7 @@ function jle(e) {
})()]
});
}
-function HA({ entity: e, load: t, enabled: n, children: r }) {
+function GA({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(!1), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)({
busy: !1,
error: ""
@@ -34895,12 +34895,12 @@ function HA({ entity: e, load: t, enabled: n, children: r }) {
...f,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: Be("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, B.jsx)(jA, {
+ }), s.error ? /* @__PURE__ */ (0, B.jsx)(PA, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function Mle(e, t, n, r, i) {
+function Ale(e, t, n, r, i) {
let [a, o] = (0, R.useState)([]), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(0), u = (0, R.useRef)(0), d = (0, R.useRef)([]);
return (0, R.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, R.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -34909,7 +34909,7 @@ function Mle(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- W(`/api/items?${Pre(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ W(`/api/items?${Nre(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
if (!t.length) {
l.current = 0;
@@ -34925,7 +34925,7 @@ function Mle(e, t, n, r, i) {
}, [t]), (0, R.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 = Nre(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 = Mre(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, {
@@ -34935,7 +34935,7 @@ function Mle(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function Nle({ cut: e, props: t, onOpen: n }) {
+function jle({ cut: e, props: t, onOpen: n }) {
let r = (0, R.useRef)(null), { wireDrag: i } = t;
return (0, R.useEffect)(() => {
r.current && i(r.current);
@@ -34951,12 +34951,12 @@ function Nle({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, B.jsx)(kle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, B.jsx)(Dle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, B.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, B.jsx)(IA, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, B.jsx)(zA, {
item: e,
variant: "short",
layout: t.layout,
@@ -34970,17 +34970,17 @@ function Nle({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function UA(e, t, n) {
+function KA(e, t, n) {
return ne(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Ple({ seed: e, layout: t, helpers: n, actions: r }) {
+function Mle({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, R.useRef)(/* @__PURE__ */ new Map()), a = (0, R.useRef)(t);
a.current = t;
let o = re(e, n.tagLabel), s = (0, R.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => RC(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), UA(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = UA(e, t, !1);
- return /* @__PURE__ */ (0, B.jsx)(BA, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => BC(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), KA(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = KA(e, t, !1);
+ return /* @__PURE__ */ (0, B.jsx)(UA, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -34990,12 +34990,12 @@ function Ple({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : UA(e, {
+ artworkIdentity: c === "small" ? l.html : KA(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => ce(e, c),
- ratio: PA(e, "grid", t),
+ ratio: LA(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -35007,31 +35007,31 @@ function Ple({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-async function WA(e) {
+async function qA(e) {
await p.fetchQuery({
queryKey: l,
queryFn: () => d(e)
});
}
-var Fle = [
+var Nle = [
"local",
"115",
"pikpak"
-], Ile = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Lle = "/api/duplicates?limit=120", GA = ["duplicates"], KA = "/api/batch", qA = (e) => W(Lle, e);
-async function Rle(e) {
+], Ple = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Fle = "/api/duplicates?limit=120", JA = ["duplicates"], YA = "/api/batch", XA = (e) => W(Fle, e);
+async function Ile(e) {
await Promise.all([p.fetchQuery({
- queryKey: GA,
- queryFn: () => qA(e)
- }), WA(e)]);
+ queryKey: JA,
+ queryFn: () => XA(e)
+ }), qA(e)]);
}
-var JA = {
+var ZA = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, zle = (e, t) => t.filter((t) => e.some((e) => e.location === t)), YA = (e, t) => zle(e, t).filter((t) => e.some((e) => e.location !== t)), Ble = (e, t) => t.filter((t) => e.some((e) => YA(e.files, [t]).length));
-function Vle(e, t) {
+}, Lle = (e, t) => t.filter((t) => e.some((e) => e.location === t)), QA = (e, t) => Lle(e, t).filter((t) => e.some((e) => e.location !== t)), Rle = (e, t) => t.filter((t) => e.some((e) => QA(e.files, [t]).length));
+function zle(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -35050,47 +35050,47 @@ function Vle(e, t) {
}
return n;
}
-function Hle(e, t) {
+function Ble(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 XA(e, t) {
- for (let n = 0; n < e.length; n += 200) await G(KA, {
+async function $A(e, t) {
+ for (let n = 0; n < e.length; n += 200) await G(YA, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var ZA = "/api/library-processing", QA = ["library-processing"], $A = (e) => W(ZA, e);
-async function ej(e) {
+var ej = "/api/library-processing", tj = ["library-processing"], nj = (e) => W(ej, e);
+async function rj(e) {
await p.fetchQuery({
- queryKey: QA,
- queryFn: () => $A(e)
+ queryKey: tj,
+ queryFn: () => nj(e)
});
}
-var Ule = 2e3, Wle = 1e4, tj = "连接中断,正在重新读取处理进度";
-function Gle(e, t) {
- return e?.status === "running" ? Ule : t ? Wle : !1;
+var Vle = 2e3, Hle = 1e4, ij = "连接中断,正在重新读取处理进度";
+function Ule(e, t) {
+ return e?.status === "running" ? Vle : t ? Hle : !1;
}
-var Kle = {
+var Wle = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, nj = {
+}, aj = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function qle(e) {
- let t = Object.entries(e).filter(([e, t]) => nj[e] && t > 0).map(([e, t]) => `${nj[e]} ${t} 部`);
+function Gle(e) {
+ let t = Object.entries(e).filter(([e, t]) => aj[e] && t > 0).map(([e, t]) => `${aj[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function rj(e) {
- let t = Kle[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function oj(e) {
+ let t = Wle[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 Jle(e) {
+function Kle(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -35104,21 +35104,21 @@ function Jle(e) {
log: e.issues_log || ""
} : null;
}
-var ij = "peach.library-processing.announced", Yle = 120;
-function Xle(e, t, n) {
+var sj = "peach.library-processing.announced", qle = 120;
+function Jle(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Yle;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < qle;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(ij) === e.job_id) return;
- e.job_id && localStorage.setItem(ij, e.job_id);
+ if (e.job_id && localStorage.getItem(sj) === e.job_id) return;
+ e.job_id && localStorage.setItem(sj, 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 aj = "/api/media-repair", oj = ["media-repair"], sj = ["media-repair", "libraries"], Zle = {
+var cj = "/api/media-repair", lj = ["media-repair"], uj = ["media-repair", "libraries"], Yle = {
status: "idle",
library: "",
stage: "",
@@ -35130,33 +35130,33 @@ var aj = "/api/media-repair", oj = ["media-repair"], sj = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, cj = (e) => W(aj, e), lj = async (e) => (await W("/api/libraries", e)).libraries || [];
-async function Qle(e) {
+}, dj = (e) => W(cj, e), fj = async (e) => (await W("/api/libraries", e)).libraries || [];
+async function Xle(e) {
await Promise.all([p.fetchQuery({
- queryKey: oj,
- queryFn: () => cj(e)
+ queryKey: lj,
+ queryFn: () => dj(e)
}), p.fetchQuery({
- queryKey: sj,
- queryFn: () => lj(e)
+ queryKey: uj,
+ queryFn: () => fj(e)
})]);
}
-var uj = (e) => Number(e).toLocaleString();
-function $le(e) {
+var pj = (e) => Number(e).toLocaleString();
+function Zle(e) {
if (e.status === "running") {
- let t = e.total ? `${uj(e.checked)} / ${uj(e.total)}` : "准备中";
+ let t = e.total ? `${pj(e.checked)} / ${pj(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${uj(e.repaired)} 部,${uj(e.failed)} 部修不了` : `修好 ${uj(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${pj(e.repaired)} 部,${pj(e.failed)} 部修不了` : `修好 ${pj(e.repaired)} 部` : "";
}
-var eue = (e) => `${uj(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, tue = "/api/quality-goals?limit=200", dj = ["quality-goals"], fj = (e) => W(tue, e);
-async function nue(e) {
+var Qle = (e) => `${pj(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, $le = "/api/quality-goals?limit=200", mj = ["quality-goals"], hj = (e) => W($le, e);
+async function eue(e) {
await p.fetchQuery({
- queryKey: dj,
- queryFn: () => fj(e)
+ queryKey: mj,
+ queryFn: () => hj(e)
});
}
-var rue = (e) => e.has_cover ? M(e) : `/poster?id=${e.id}&c=4`;
-function pj(e, t, n = 1) {
+var tue = (e) => e.has_cover ? M(e) : `/poster?id=${e.id}&c=4`;
+function gj(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;
@@ -35176,21 +35176,21 @@ function pj(e, t, n = 1) {
t
];
}
-function mj(e, t) {
+function _j(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function hj(e, t) {
+function vj(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function iue(e, t, n, r, i, a = i || !e.has(r)) {
+function nue(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 gj(e) {
+function yj(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);
@@ -35199,7 +35199,7 @@ function gj(e) {
}
//#endregion
//#region src/react/review/review.ts
-var aue = "/api/review", oue = "/api/review/decision", sue = "/api/review/genre", _j = ["review"], vj = {
+var rue = "/api/review", iue = "/api/review/decision", aue = "/api/review/genre", bj = ["review"], xj = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -35209,15 +35209,15 @@ var aue = "/api/review", oue = "/api/review/decision", sue = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, cue = Object.keys(vj), lue = "metadata_fields", yj = (e) => typeof e == "string" && Object.hasOwn(vj, e), uue = {
+}, oue = Object.keys(xj), sue = "metadata_fields", Sj = (e) => typeof e == "string" && Object.hasOwn(xj, e), cue = {
creator_tags: "creator",
western_identity: "creator"
};
-function due(e, t) {
+function lue(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 bj(e, t) {
+function Cj(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -35234,43 +35234,43 @@ function bj(e, t) {
}
return [...n.values()];
}
-function fue(e, t, n) {
- return n && bj(e, t).find((e) => e.key === n)?.rows || e;
+function uue(e, t, n) {
+ return n && Cj(e, t).find((e) => e.key === n)?.rows || e;
}
-function pue(e, t) {
- let n = mj(e.length, 20), r = hj(t, n);
+function due(e, t) {
+ let n = _j(e.length, 20), r = vj(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function mue(e) {
+function fue(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 hue(e, t, n, r, i, a) {
- return iue(e, t, n, r, i, a);
+function pue(e, t, n, r, i, a) {
+ return nue(e, t, n, r, i, a);
}
-function xj(e, t) {
+function wj(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function Sj(e, t) {
+function Tj(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var Cj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function gue(e, t) {
- let n = Sj(e, t), r = Cj(e, t);
+var Ej = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function mue(e, t) {
+ let n = Tj(e, t), r = Ej(e, t);
return r ? `${n} · ${r}` : n;
}
-var _ue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", vue = (e) => String(e.tags || "").split("|").filter(Boolean), yue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function bue(e) {
+var hue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", gue = (e) => String(e.tags || "").split("|").filter(Boolean), _ue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function vue(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function wj(e, t, n, r) {
+function Dj(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -35286,19 +35286,19 @@ function wj(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var xue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Tj = (e) => W(aue, e), Ej = (e) => G(oue, e), Sue = (e, t) => G(sue, {
+var yue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Oj = (e) => W(rue, e), kj = (e) => G(iue, e), Aj = (e, t) => G(aue, {
genre: e,
tag: t
});
-async function Cue(e) {
+async function jj(e) {
await p.fetchQuery({
- queryKey: _j,
- queryFn: () => Tj(e)
+ queryKey: bj,
+ queryFn: () => Oj(e)
});
}
-function Dj(e, t) {
+function Mj(e, t) {
let n = new Set(t);
- n.size && p.setQueryData(_j, (t) => {
+ n.size && p.setQueryData(bj, (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 : {
@@ -35314,207 +35314,207 @@ function Dj(e, t) {
};
});
}
-var wue = () => p.invalidateQueries({
- queryKey: _j,
+var bue = () => p.invalidateQueries({
+ queryKey: bj,
exact: !0
});
-function Tue(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${gj(e.fetched_at)} 的缓存` : e?.error || t;
+function xue(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${yj(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Eue = "/api/links", Oj = "/api/links/check", kj = "/api/links/prune", Aj = ["links"], jj = ["links", "check"], Mj = ["links", "prune"], Nj = {
+var Sue = "/api/links", Nj = "/api/links/check", Pj = "/api/links/prune", Fj = ["links"], Ij = ["links", "check"], Lj = ["links", "prune"], Rj = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function Pj(e) {
+async function zj(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var Fj = (e) => W(Eue, e), Ij = (e) => G(Oj, { status_only: !0 }, "POST", e), Due = ({ retry: e, checkId: t }) => Pj(G(Oj, e ? {
+var Bj = (e) => W(Sue, e), Vj = (e) => G(Nj, { status_only: !0 }, "POST", e), Cue = ({ retry: e, checkId: t }) => zj(G(Nj, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), Lj = (e) => W(kj, e), Oue = (e) => Pj(G(kj, {
+} : { restart: !0 })), Hj = (e) => W(Pj, e), wue = (e) => zj(G(Pj, {
confirm: !0,
check_id: e,
background: !0
-})), Rj = (e) => Number(e || 0).toLocaleString(), kue = (e) => `已删除 ${Rj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Rj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Rj(e.recovered)} 条未确认失效的链接。`;
-function Aue(e) {
+})), Uj = (e) => Number(e || 0).toLocaleString(), Tue = (e) => `已删除 ${Uj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Uj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Uj(e.recovered)} 条未确认失效的链接。`;
+function Eue(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Rj(e.checked)} / ${Rj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${Uj(e.checked)} / ${Uj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var zj = "/api/settings", Bj = "/api/follow/schedule", Vj = "/api/thumbnail-jobs", Hj = ["settings"], Uj = ["follow-schedule"], Wj = ["thumbnail-jobs"], jue = (e) => W(zj, e), Gj = (e) => W(Bj, e), Kj = (e) => W(Vj, e);
-function Mue(e = p) {
+var Wj = "/api/settings", Gj = "/api/follow/schedule", Kj = "/api/thumbnail-jobs", qj = ["settings"], Jj = ["follow-schedule"], Yj = ["thumbnail-jobs"], Due = (e) => W(Wj, e), Xj = (e) => W(Gj, e), Zj = (e) => W(Kj, e);
+function Oue(e = p) {
return e.fetchQuery({
- queryKey: Uj,
- queryFn: ({ signal: e }) => Gj(e),
+ queryKey: Jj,
+ queryFn: ({ signal: e }) => Xj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Wj,
- queryFn: ({ signal: e }) => Kj(e),
+ queryKey: Yj,
+ queryFn: ({ signal: e }) => Zj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Hj,
- queryFn: ({ signal: e }) => jue(e),
+ queryKey: qj,
+ queryFn: ({ signal: e }) => Due(e),
staleTime: 0
}).catch(() => null);
}
-function qj() {
- return TS({
- mutationFn: (e) => G(zj, e),
- onSuccess: (e) => p.setQueryData(Hj, e)
+function Qj() {
+ return OS({
+ mutationFn: (e) => G(Wj, e),
+ onSuccess: (e) => p.setQueryData(qj, e)
});
}
-function Nue() {
- return TS({
- mutationFn: (e) => G(Bj, {
+function kue() {
+ return OS({
+ mutationFn: (e) => G(Gj, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => p.setQueryData(Uj, e)
+ onSuccess: (e) => p.setQueryData(Jj, e)
});
}
-function Pue() {
- return TS({
- mutationFn: (e) => G(Vj, { mode: e }),
- onSuccess: (e) => p.setQueryData(Wj, e)
+function Aue() {
+ return OS({
+ mutationFn: (e) => G(Kj, { mode: e }),
+ onSuccess: (e) => p.setQueryData(Yj, e)
});
}
-function Fue(e) {
- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${gj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${gj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
+function jue(e) {
+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${yj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${yj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
}
-function Iue(e) {
+function Mue(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 Lue = "/api/organize", Rue = "/api/organize/preview", zue = "/api/organize/apply", Bue = "/api/organize/rollback", Jj = ["organize"], Yj = (e) => W(Lue, e);
-async function Vue(e) {
+var Nue = "/api/organize", Pue = "/api/organize/preview", Fue = "/api/organize/apply", Iue = "/api/organize/rollback", $j = ["organize"], eM = (e) => W(Nue, e);
+async function Lue(e) {
await p.fetchQuery({
- queryKey: Jj,
- queryFn: () => Yj(e)
+ queryKey: $j,
+ queryFn: () => eM(e)
});
}
-var Hue = (e) => G(Rue, e), Uue = (e) => e.kind === "apply" ? G(zue, {
+var Rue = (e) => G(Pue, e), zue = (e) => e.kind === "apply" ? G(Fue, {
...e.request,
confirm: !0
-}) : G(Bue, { confirm: !0 });
-async function Wue(e) {
- p.setQueryData(Jj, (t) => t && {
+}) : G(Iue, { confirm: !0 });
+async function Bue(e) {
+ p.setQueryData($j, (t) => t && {
...t,
templates: e
});
try {
- await G(zj, { organizeTemplates: e });
+ await G(Wj, { organizeTemplates: e });
} catch {}
}
-var Gue = (e, t) => e && {
+var Vue = (e, t) => e && {
...e,
...t
-}, Kue = /目录模板|分隔符|盘符|`\.`/;
-function Xj(e) {
+}, Hue = /目录模板|分隔符|盘符|`\.`/;
+function tM(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var Zj = (e) => Number(e || 0).toLocaleString();
-function que(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Zj(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${Zj(e.counts.change)} 个文件会改名或移动,${Zj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var nM = (e) => Number(e || 0).toLocaleString();
+function Uue(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${nM(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${nM(e.counts.change)} 个文件会改名或移动,${nM(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function Qj(e) {
+function rM(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${Zj(r)} 个文件${n ? `,${Zj(n)} 行未能退回` : ""}。` : `已整理 ${Zj(r)} 个文件${n ? `,${Zj(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${nM(r)} 个文件${n ? `,${nM(n)} 行未能退回` : ""}。` : `已整理 ${nM(r)} 个文件${n ? `,${nM(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var $j = "/api/resource-sync/scan", eM = "/api/resource-sync/apply", tM = ["resource-sync", "scan"], nM = ["resource-sync", "apply"], rM = (e) => G($j, {
+var iM = "/api/resource-sync/scan", aM = "/api/resource-sync/apply", oM = ["resource-sync", "scan"], sM = ["resource-sync", "apply"], cM = (e) => G(iM, {
background: !0,
status_only: !0
-}, "POST", e), Jue = () => G($j, {
+}, "POST", e), Wue = () => G(iM, {
background: !0,
restart: !0
-}), iM = (e) => W(eM, e), Yue = (e) => G(eM, {
+}), lM = (e) => W(aM, e), Gue = (e) => G(aM, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), aM = (e) => (e?.sources ?? []).some((e) => Fle.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Xue(e) {
- aM(p.getQueryData(u)) && await Promise.all([p.fetchQuery({
- queryKey: tM,
- queryFn: () => rM(e)
+}), uM = (e) => (e?.sources ?? []).some((e) => Nle.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Kue(e) {
+ uM(p.getQueryData(u)) && await Promise.all([p.fetchQuery({
+ queryKey: oM,
+ queryFn: () => cM(e)
}), p.fetchQuery({
- queryKey: nM,
- queryFn: () => iM(e)
+ queryKey: sM,
+ queryFn: () => lM(e)
})]);
}
-var Zue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Que = {
+var que = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Jue = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, oM = (e) => Number(e || 0).toLocaleString(), $ue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", sM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), cM = (e) => e.vanish ? `${oM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", lM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", ede = (e) => `将永久删除文件已不在盘上的 ${oM(sM(e))} 条记录和 ${oM(e.empty)} 个空文件夹,并清理 ${oM(e.cache?.files)} 个闲置缓存。${lM(e)}${cM(e)}`, tde = (e) => `将永久删除文件已不在盘上的 ${oM(sM(e))} 条记录(含回收站里的)、${oM(e.empty)} 个空文件夹,并清理 ${oM(e.cache?.files)} 个闲置缓存。来源根目录保留。${lM(e)}${cM(e)}`, nde = (e) => e.online ? [
- `找不到文件 · 共 ${oM(e.total)} 项`,
- e.vanish ? `${oM(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${oM(e.empty)} 个` : "",
- e.unreadable ? `${oM(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${oM(e.total)} 项`;
-function uM(e) {
+}, dM = (e) => Number(e || 0).toLocaleString(), Yue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", fM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), pM = (e) => e.vanish ? `${dM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", mM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Xue = (e) => `将永久删除文件已不在盘上的 ${dM(fM(e))} 条记录和 ${dM(e.empty)} 个空文件夹,并清理 ${dM(e.cache?.files)} 个闲置缓存。${mM(e)}${pM(e)}`, Zue = (e) => `将永久删除文件已不在盘上的 ${dM(fM(e))} 条记录(含回收站里的)、${dM(e.empty)} 个空文件夹,并清理 ${dM(e.cache?.files)} 个闲置缓存。来源根目录保留。${mM(e)}${pM(e)}`, Que = (e) => e.online ? [
+ `找不到文件 · 共 ${dM(e.total)} 项`,
+ e.vanish ? `${dM(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${dM(e.empty)} 个` : "",
+ e.unreadable ? `${dM(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${dM(e.total)} 项`;
+function hM(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 ? `${oM(t.length)} 条记录没有删除(${o})` : "",
- n ? `${oM(n)} 个文件夹没有删除` : "",
- r.length ? `${oM(r.length)} 个缓存没有清理` : ""
+ t.length ? `${dM(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${dM(n)} 个文件夹没有删除` : "",
+ r.length ? `${dM(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var rde = (e, t) => {
- let { rest: n } = uM(e), r = `已永久删除 ${oM(e.purged)} 条失效记录和 ${oM(e.dirs_removed)} 个空文件夹,清理 ${oM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${oM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${oM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var $ue = (e, t) => {
+ let { rest: n } = hM(e), r = `已永久删除 ${dM(e.purged)} 条失效记录和 ${dM(e.dirs_removed)} 个空文件夹,清理 ${dM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${dM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${dM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, ide = "/api/review?counts=1", dM = ["review", "counts"], ade = "/api/ads?limit=1", fM = ["junk-summary"], pM = "/api/items?state=trash&limit=1", mM = ["trash-summary"], ode = [
+}, ede = "/api/review?counts=1", gM = ["review", "counts"], tde = "/api/ads?limit=1", _M = ["junk-summary"], vM = "/api/items?state=trash&limit=1", yM = ["trash-summary"], nde = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], hM = (e) => W(ide, e), gM = (e) => W(ade, e), _M = (e) => {
+], bM = (e) => W(ede, e), xM = (e) => W(tde, e), SM = (e) => {
let t = sessionStorage.getItem("peach.library");
- return W(t ? `${pM}&library=${encodeURIComponent(t)}` : pM, e);
-}, vM = (e) => Number(e || 0).toLocaleString();
-function sde(e) {
- let t = vj, 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 W(t ? `${vM}&library=${encodeURIComponent(t)}` : vM, e);
+}, CM = (e) => Number(e || 0).toLocaleString();
+function rde(e) {
+ let t = xj, 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 cde(e) {
+function ide(e) {
if (!e) return "";
- let t = ode.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${vM(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${vM(e.dismissed_total)}`), t.join(" · ");
-}
-var lde = [
- [dM, ({ signal: e }) => hM(e)],
- [dj, ({ signal: e }) => fj(e)],
- [mM, ({ signal: e }) => _M(e)],
- [Aj, ({ signal: e }) => Fj(e)],
- [jj, ({ signal: e }) => Ij(e)],
- [Mj, ({ signal: e }) => Lj(e)]
+ let t = nde.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${CM(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${CM(e.dismissed_total)}`), t.join(" · ");
+}
+var ade = [
+ [gM, ({ signal: e }) => bM(e)],
+ [mj, ({ signal: e }) => hj(e)],
+ [yM, ({ signal: e }) => SM(e)],
+ [Fj, ({ signal: e }) => Bj(e)],
+ [Ij, ({ signal: e }) => Vj(e)],
+ [Lj, ({ signal: e }) => Hj(e)]
];
-async function ude(e) {
- let t = location.hash === "#resource-sync", n = lde.map(([n, r]) => {
+async function ode(e) {
+ let t = location.hash === "#resource-sync", n = ade.map(([n, r]) => {
if (t) return p.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -35527,49 +35527,49 @@ async function ude(e) {
await Promise.all([
...n,
p.fetchQuery({
- queryKey: fM,
- queryFn: () => gM(e)
+ queryKey: _M,
+ queryFn: () => xM(e)
}),
p.fetchQuery({
- queryKey: GA,
- queryFn: () => qA(e)
+ queryKey: JA,
+ queryFn: () => XA(e)
}),
- WA(e).then(() => Xue(e)),
- ej(e),
- Qle(e),
- Vue(e)
+ qA(e).then(() => Kue(e)),
+ rj(e),
+ Xle(e),
+ Lue(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var dde = [
+var sde = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], fde = [
+], cde = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function yM(e = {}) {
- return `${OE({
+function wM(e = {}) {
+ return `${AE({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var bM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", pde = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function xM({ interactive: e = !1 } = {}) {
- return OE({
+var TM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", lde = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function EM({ interactive: e = !1 } = {}) {
+ return AE({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var mde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function SM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var ude = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function DM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -35602,13 +35602,13 @@ function SM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function CM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function OM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.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, B.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${dde[n % 4]} ${fde[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${sde[n % 4]} ${cde[n % 4]}`,
children: /* @__PURE__ */ (0, B.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -35630,9 +35630,9 @@ function CM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function wM(e) {
- let t = pA("hover");
- return /* @__PURE__ */ (0, B.jsx)(jO, {
+function kM(e) {
+ let t = gA("hover");
+ return /* @__PURE__ */ (0, B.jsx)(NO, {
...e,
ref: t
});
@@ -35643,67 +35643,67 @@ function wM(e) {
}).medium;
//#endregion
//#region src/management.ts
-var hde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", gde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", _de = OE({
+var dde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", fde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", pde = AE({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), vde = {
+}), mde = {
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"
-}, yde = {
+}, hde = {
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"
-}, bde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", xde = {
+}, gde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", _de = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, Sde = OE({
+}, vde = AE({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), TM = "border-t border-border-button-default p-4 first:border-t-0";
-function EM({ tone: e = "neutral", status: t, children: n }) {
+}), AM = "border-t border-border-button-default p-4 first:border-t-0";
+function jM({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `${bde} ${xde[e]}`,
+ className: `${gde} ${_de[e]}`,
children: [t ? /* @__PURE__ */ (0, B.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 DM({ id: e, children: t }) {
+function MM({ id: e, children: t }) {
return /* @__PURE__ */ (0, B.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function OM({ id: e, gap: t = "none", children: n }) {
+function NM({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, B.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function kM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function PM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, B.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${_de} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${pde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
- className: vde[e],
+ className: mde[e],
children: a
}), i ? /* @__PURE__ */ (0, B.jsx)("footer", {
- className: yde[e],
+ className: hde[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function AM() {
+function FM() {
let e = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
ke(e.current);
@@ -35711,7 +35711,7 @@ function AM() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var jM = CE({
+var IM = TE({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -35732,21 +35732,21 @@ var jM = CE({
small: "size-4 shrink-0"
}
});
-function MM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function LM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
ref: i,
type: r,
- className: SE(jM.base, jM.size[t], n),
+ className: wE(IM.base, IM.size[t], n),
...a,
children: /* @__PURE__ */ (0, B.jsx)(e, {
- className: jM.icon[t],
+ className: IM.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function Cde({ className: e }) {
+function yde({ className: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -35759,8 +35759,8 @@ function Cde({ className: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-folder-open" })
});
}
-var wde = "打开文件管理器失败,请重试";
-function NM({ path: e, prefix: t, className: n, onRevealed: r }) {
+var bde = "打开文件管理器失败,请重试";
+function RM({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(""), c = (0, R.useRef)(!0);
(0, R.useEffect)(() => () => {
c.current = !1;
@@ -35771,7 +35771,7 @@ function NM({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await G("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof IS ? e.message : wde);
+ c.current && s(e instanceof zS ? e.message : bde);
} finally {
c.current && a(!1);
}
@@ -35782,10 +35782,10 @@ function NM({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, B.jsxs)("p", {
- className: SE("min-w-0 break-all", n),
+ className: wE("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, B.jsx)(MM, {
- icon: Cde,
+ }), /* @__PURE__ */ (0, B.jsx)(LM, {
+ icon: yde,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -35800,38 +35800,38 @@ function NM({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function PM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function zM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : OE({
+ className: r ? "flex flex-col gap-1.5" : AE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(NE, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(FE, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, B.jsx)(AE, { label: e })
+ })] }) : /* @__PURE__ */ (0, B.jsx)(ME, { label: e })
});
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function FM({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = SS({
- queryKey: QA,
- queryFn: ({ signal: e }) => $A(e),
- refetchInterval: (e) => Gle(e.state.data, r)
+function BM({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = TS({
+ queryKey: tj,
+ queryFn: ({ signal: e }) => nj(e),
+ refetchInterval: (e) => Ule(e.state.data, r)
}), [a, o] = (0, R.useState)(null), s = (0, R.useRef)(void 0), c = i.data;
return (0, R.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") && Xle(c, e, r);
+ r && o(c), (r || t === "notice") && Jle(c, e, r);
}, [
c,
t,
@@ -35844,29 +35844,29 @@ function FM({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var Tde = [
+var xde = [
{
label: "扫描并补全资料",
- icon: xT,
+ icon: CT,
command: {}
},
{
label: "只扫描",
- icon: TT,
+ icon: DT,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: iae,
+ icon: rae,
command: { stage: "collect" }
}
-], Ede = SE(Ck, wk, "text-body-2-medium"), Dde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Ode = (e) => {
+], Sde = wE(Tk, Ek, "text-body-2-medium"), Cde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", wde = (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(",")}。`;
-}, kde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Ode(e);
-function Ade({ busy: e, onRun: t }) {
+}, Tde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + wde(e);
+function Ede({ busy: e, onRun: t }) {
let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -35875,14 +35875,14 @@ function Ade({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: xT,
+ leadingIcon: CT,
onClick: () => a({}),
...X(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, B.jsx)(J, {
ref: n,
iconOnly: !0,
- leadingIcon: pT,
+ leadingIcon: hT,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -35891,19 +35891,19 @@ function Ade({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, B.jsx)(bO, {
+ }), /* @__PURE__ */ (0, B.jsx)(SO, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: Sk,
- children: /* @__PURE__ */ (0, B.jsx)(wM, {
+ className: wk,
+ children: /* @__PURE__ */ (0, B.jsx)(kM, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: Tde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ children: xde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: Ede,
+ className: Sde,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, B.jsx)(t, {
"aria-hidden": !0,
@@ -35913,8 +35913,8 @@ function Ade({ busy: e, onRun: t }) {
})
})] });
}
-function jde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Jle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = qle(e.notes || {}), c = AM();
+function Dde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Kle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Gle(e.notes || {}), c = FM();
return /* @__PURE__ */ (0, B.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -35922,7 +35922,7 @@ function jde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
title: "处理较慢",
- children: Dde
+ children: Cde
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -35934,7 +35934,7 @@ function jde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, B.jsxs)(Uk, {
+ children: /* @__PURE__ */ (0, B.jsxs)(Gk, {
summary: a.label,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "relative",
@@ -35965,7 +35965,7 @@ function jde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, B.jsx)(NM, {
+ children: /* @__PURE__ */ (0, B.jsx)(RM, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -35979,13 +35979,13 @@ function jde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "success",
title: "处理完成",
- children: kde(n)
+ children: Tde(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, B.jsx)(NM, {
+ children: /* @__PURE__ */ (0, B.jsx)(RM, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -35997,38 +35997,38 @@ function jde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function IM(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = FM(e), o = TS({
- mutationFn: (e) => G(ZA, e),
+function VM(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = BM(e), o = OS({
+ mutationFn: (e) => G(ej, e),
onSuccess: (e) => {
- a(), p.setQueryData(QA, e), p.invalidateQueries({ queryKey: QA });
+ a(), p.setQueryData(tj, e), p.invalidateQueries({ queryKey: tj });
}
});
(0, R.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? U(o.error) : r.isError ? r.data ? tj : U(r.error) : "", l = o.isPending || s.status === "running", u = rj(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? U(o.error) : r.isError ? r.data ? ij : U(r.error) : "", l = o.isPending || s.status === "running", u = oj(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, B.jsx)(kM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(PM, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsx)(Pk, {
href: "/scraping",
size: "small",
- trailingIcon: mT,
+ trailingIcon: gT,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, B.jsx)(Mk, {
+ s.candidates ? /* @__PURE__ */ (0, B.jsx)(Pk, {
href: "/review",
size: "small",
- trailingIcon: mT,
+ trailingIcon: gT,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Ade, {
+ /* @__PURE__ */ (0, B.jsx)(Ede, {
busy: l,
onRun: d
})
@@ -36036,12 +36036,12 @@ function IM(e) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(OM, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, B.jsx)(NM, { children: "扫描与采集" }),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: hde
+ children: dde
}),
- s.status === "running" ? /* @__PURE__ */ (0, B.jsx)(PM, {
+ s.status === "running" ? /* @__PURE__ */ (0, B.jsx)(zM, {
embedded: !0,
label: u,
value: s.checked,
@@ -36049,7 +36049,7 @@ function IM(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, B.jsx)(jde, {
+ }), /* @__PURE__ */ (0, B.jsx)(Dde, {
state: s,
problem: c,
settled: i,
@@ -36065,20 +36065,20 @@ function IM(e) {
}
//#endregion
//#region src/react/background-job.ts
-var LM = 2e3, Mde = (e) => e, Nde = (e, t) => t;
-function RM(e) {
- let { queryKey: t, jobOf: n = Mde, withJob: r = Nde, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
+var HM = 2e3, Ode = (e) => e, kde = (e, t) => t;
+function UM(e) {
+ let { queryKey: t, jobOf: n = Ode, withJob: r = kde, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
(0, R.useEffect)(() => {
l.current = e;
});
- let u = SS({
+ 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" ? LM : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? HM : i ?? !1;
}
- }), d = TS({
+ }), d = OS({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
o(!0), c(null), l.current.onStarted?.(e), p.setQueryData(t, (t) => r(t, e)), p.invalidateQueries({
@@ -36107,32 +36107,32 @@ function RM(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Pde = (e) => Oe[e] || e, zM = (e) => p.setQueryData(oj, e);
-function Fde() {
- let e = SS({
- queryKey: oj,
- queryFn: ({ signal: e }) => cj(e),
- refetchInterval: (e) => e.state.data?.status === "running" && LM
- }), t = SS({
- queryKey: sj,
- queryFn: ({ signal: e }) => lj(e)
- }), [n, r] = (0, R.useState)(""), i = PE(), a = e.data ?? Zle, 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 Ade = (e) => Oe[e] || e, WM = (e) => p.setQueryData(lj, e);
+function jde() {
+ let e = TS({
+ queryKey: lj,
+ queryFn: ({ signal: e }) => dj(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && HM
+ }), t = TS({
+ queryKey: uj,
+ queryFn: ({ signal: e }) => fj(e)
+ }), [n, r] = (0, R.useState)(""), i = IE(), a = e.data ?? Yle, 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 && je({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => zM(await G(aj, {
+ onConfirm: async () => WM(await G(cj, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => G(aj, { stop: !0 }, "POST", e), zM), d = $le(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => G(cj, { stop: !0 }, "POST", e), WM), d = Zle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, B.jsx)(kM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(PM, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ek, {
+ footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -36140,10 +36140,10 @@ function Fde() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, B.jsxs)(Dk, {
+ children: o.map((e) => /* @__PURE__ */ (0, B.jsxs)(kk, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, B.jsx)(Wk, { mark: Pde(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Ade(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, B.jsx)(J, {
onClick: u,
@@ -36157,12 +36157,12 @@ function Fde() {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(OM, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, B.jsx)(NM, { children: "媒体修复" }),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: gde
+ children: fde
}),
- s && a.total ? /* @__PURE__ */ (0, B.jsx)(NE, {
+ s && a.total ? /* @__PURE__ */ (0, B.jsx)(FE, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -36186,7 +36186,7 @@ function Fde() {
f && a.missing_tool ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
title: "缺少 untrunc",
- children: eue(a)
+ children: Qle(a)
}) : null,
p ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -36198,7 +36198,7 @@ function Fde() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var BM = {
+var GM = {
md: {
box: "size-4",
glyph: "size-4",
@@ -36212,11 +36212,11 @@ var BM = {
gap: "gap-1.5"
}
};
-function VM({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = BM[t], c = n || r, l = o && !a;
+function KM({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = GM[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
- className: SE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? SE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : SE("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: wE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? wE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : wE("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, B.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -36240,36 +36240,36 @@ function VM({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function HM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = BM[n];
- return /* @__PURE__ */ (0, B.jsx)(Ooe, {
+function qM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = GM[n];
+ return /* @__PURE__ */ (0, B.jsx)(Doe, {
ref: r,
...i,
- className: (t) => SE("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, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(VM, {
+ className: (t) => wE("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, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(KM, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, B.jsx)("span", {
- className: SE(a.label, "text-text-primary"),
+ className: wE(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function UM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function JM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: SE("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, B.jsx)(Ise, {
+ className: wE("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, B.jsx)(Fse, {
ref: r,
...i,
- className: SE("bui-table", e === "sm" && "bui-table-sm", t)
+ className: wE("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/row-click.ts
-var Ide = [
+var Mde = [
"a",
"button",
"input",
@@ -36282,15 +36282,15 @@ var Ide = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function WM(e, t) {
+function YM(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Ide);
+ let r = n.closest(Mde);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function GM({ children: e, follow: t = !1, onRowClick: n }) {
+function XM({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -36298,15 +36298,15 @@ function GM({ 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 && WM(e, r) && n(r.dataset.key);
+ r && YM(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Lde = xA("unlink"), KM = xA("rotate-cw"), Rde = "站点返回 404 或 410,确认这个地址不存在。", zde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Bde = "删除前会逐条重验一次;此操作不可撤销。", Vde = "暂时无法读取进度,正在重新连接…", qM = (e) => Number(e || 0).toLocaleString();
-function JM({ label: e, value: t, note: n }) {
+var Nde = wA("unlink"), ZM = wA("rotate-cw"), Pde = "站点返回 404 或 410,确认这个地址不存在。", Fde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Ide = "删除前会逐条重验一次;此操作不可撤销。", Lde = "暂时无法读取进度,正在重新连接…", QM = (e) => Number(e || 0).toLocaleString();
+function $M({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -36325,11 +36325,11 @@ function JM({ label: e, value: t, note: n }) {
]
});
}
-function YM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function eN({ 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, B.jsxs)("div", {
- className: TM,
+ className: AM,
children: [
/* @__PURE__ */ (0, B.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -36342,13 +36342,13 @@ function YM({ 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, B.jsx)(GM, { children: /* @__PURE__ */ (0, B.jsxs)(UM, {
+ /* @__PURE__ */ (0, B.jsx)(XM, { children: /* @__PURE__ */ (0, B.jsxs)(JM, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsxs)(tk, { children: [
- i ? /* @__PURE__ */ (0, B.jsx)(nk, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [
+ i ? /* @__PURE__ */ (0, B.jsx)(ik, {
id: "pick",
- children: /* @__PURE__ */ (0, B.jsx)(HM, {
+ children: /* @__PURE__ */ (0, B.jsx)(qM, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -36356,44 +36356,44 @@ function YM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, B.jsx)(ik, { children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(sk, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(lk, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsx)(HM, {
+ i ? /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(qM, {
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, B.jsx)(lk, { children: e.entity }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: Nj[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: e.label || "" }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: e.entity }),
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: Rj[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: e.label || "" }),
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsxs)("a", {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -36403,7 +36403,7 @@ function YM({ 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, B.jsx)(CT, {
+ }), /* @__PURE__ */ (0, B.jsx)(TT, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -36415,27 +36415,27 @@ function YM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function Hde() {
- let e = SS({
- queryKey: Aj,
- queryFn: ({ signal: e }) => Fj(e)
- }), [t, n] = (0, R.useState)([]), r = RM({
- queryKey: Mj,
- queryFn: ({ signal: e }) => Lj(e),
- start: Oue,
+function Rde() {
+ let e = TS({
+ queryKey: Fj,
+ queryFn: ({ signal: e }) => Bj(e)
+ }), [t, n] = (0, R.useState)([]), r = UM({
+ queryKey: Lj,
+ queryFn: ({ signal: e }) => Hj(e),
+ start: wue,
onFinish: () => {
p.invalidateQueries({
- queryKey: Aj,
+ queryKey: Fj,
exact: !0
}), p.invalidateQueries({
- queryKey: jj,
+ queryKey: Ij,
exact: !0
});
}
- }), i = RM({
- queryKey: jj,
- queryFn: ({ signal: e }) => Ij(e),
- start: Due,
+ }), i = UM({
+ queryKey: Ij,
+ queryFn: ({ signal: e }) => Vj(e),
+ start: Cue,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -36465,7 +36465,7 @@ function Hde() {
else if (v) x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "success",
title: "完成",
- children: kue(v)
+ children: Tue(v)
});
else if (y) x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -36475,7 +36475,7 @@ function Hde() {
else if (i.query.isError && a) x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: Vde
+ children: Lde
});
else if (a?.status === "failed") x = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
@@ -36483,12 +36483,12 @@ function Hde() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- b = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, B.jsx)(PM, {
+ b = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, B.jsx)(zM, {
embedded: !0,
- label: Aue(a),
+ label: Eue(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, B.jsx)(PM, {
+ }) : null, c ? /* @__PURE__ */ (0, B.jsx)(zM, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
@@ -36496,38 +36496,38 @@ function Hde() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
x = l || u.length || d.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
- className: Sde,
+ className: vde,
children: [
- /* @__PURE__ */ (0, B.jsx)(YM, {
+ /* @__PURE__ */ (0, B.jsx)(eN, {
title: "地址已失效",
items: u,
- hint: Rde
+ hint: Pde
}),
- /* @__PURE__ */ (0, B.jsx)(YM, {
+ /* @__PURE__ */ (0, B.jsx)(eN, {
title: "本次未访问成功",
items: d,
- hint: zde,
+ hint: Fde,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, B.jsxs)(EM, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: KM,
+ children: /* @__PURE__ */ (0, B.jsxs)(jM, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
+ leadingIcon: ZM,
disabled: !t.length,
...X(s),
onClick: () => g(t),
children: e
}), /* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: KM,
+ leadingIcon: ZM,
...X(s),
onClick: () => g(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, B.jsx)(EM, {
+ l && u.length ? /* @__PURE__ */ (0, B.jsx)(jM, {
tone: "error",
- status: Bde,
+ status: Ide,
children: /* @__PURE__ */ (0, B.jsx)(J, {
variant: "danger",
...X(c),
@@ -36536,7 +36536,7 @@ function Hde() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, B.jsx)("p", {
- className: `${TM} text-body-regular text-notification-success-foreground`,
+ className: `${AM} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -36547,21 +36547,21 @@ function Hde() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(DM, {
+ /* @__PURE__ */ (0, B.jsx)(MM, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, B.jsxs)(kM, {
+ /* @__PURE__ */ (0, B.jsxs)(PM, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: Lde,
+ leadingIcon: Nde,
...X(s),
onClick: () => g(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, B.jsx)(OM, {
+ /* @__PURE__ */ (0, B.jsx)(NM, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -36572,13 +36572,13 @@ function Hde() {
children: U(e.error)
}) : m ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, B.jsx)(JM, {
+ children: [/* @__PURE__ */ (0, B.jsx)($M, {
label: "链接总数",
- value: qM(m.total),
- note: `分布在 ${qM(m.entities)} 个女优、厂牌与系列`
- }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(JM, {
- label: Nj[e] || e,
- value: qM(t)
+ value: QM(m.total),
+ note: `分布在 ${QM(m.entities)} 个女优、厂牌与系列`
+ }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)($M, {
+ label: Rj[e] || e,
+ value: QM(t)
}, e))]
}), h ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -36607,18 +36607,18 @@ function Hde() {
}
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var Ude = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Wde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Gde = 8;
-function Kde({ plan: e }) {
+var zde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Bde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Vde = 8;
+function Hde({ plan: e }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, Gde).map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
+ children: e.rows.slice(0, Vde).map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, B.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: Xj(e.current_path)
+ children: tM(e.current_path)
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
@@ -36628,7 +36628,7 @@ function Kde({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: Xj(e.target_path)
+ children: tM(e.target_path)
})
]
}, e.current_path))
@@ -36637,10 +36637,10 @@ function Kde({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function qde({ toast: e, failure: t }) {
- let n = SS({
- queryKey: Jj,
- queryFn: ({ signal: e }) => Yj(e)
+function Ude({ toast: e, failure: t }) {
+ let n = TS({
+ queryKey: $j,
+ queryFn: ({ signal: e }) => eM(e)
}), r = n.data, i = r?.locations ?? [], [a, o] = (0, R.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, R.useState)(null), d = l?.location === s ? l : {
location: s,
file: c?.file ?? "",
@@ -36652,9 +36652,9 @@ function qde({ toast: e, failure: t }) {
location: s,
file_template: d.file.trim(),
dir_template: d.dir.trim()
- }), y = TS({
- mutationFn: Hue,
- onSuccess: (e, t) => void Wue({
+ }), y = OS({
+ mutationFn: Rue,
+ onSuccess: (e, t) => void Bue({
...r?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -36662,29 +36662,29 @@ function qde({ toast: e, failure: t }) {
}
}),
onError: (e) => {
- let t = Kue.test(U(e)) ? "dir" : "file";
+ let t = Hue.test(U(e)) ? "dir" : "file";
h(t), (t === "dir" ? _ : g).current?.focus();
}
- }), b = RM({
- queryKey: Jj,
- queryFn: ({ signal: e }) => Yj(e),
- start: Uue,
+ }), b = UM({
+ queryKey: $j,
+ queryFn: ({ signal: e }) => eM(e),
+ start: zue,
jobOf: (e) => e,
- withJob: Gue,
+ withJob: Vue,
onStarted: () => y.reset(),
onFinish: (n) => {
if (p.invalidateQueries({
- queryKey: Jj,
+ queryKey: $j,
exact: !0
}), n.status !== "complete") return;
- let { text: r, failed: i } = Qj(n);
+ let { text: r, failed: i } = rM(n);
i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));
}
}), x = b.running || b.start.isPending, S = y.data, C = Number(S?.counts?.change || 0), w = I[s] || s, T = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), E = () => {
y.isPending || !s || (h(null), y.mutate(v()));
}, D = () => void je({
title: "按模板整理文件",
- body: Ude(w),
+ body: zde(w),
confirmLabel: "整理文件",
onConfirm: () => b.start.mutateAsync({
kind: "apply",
@@ -36692,13 +36692,13 @@ function qde({ toast: e, failure: t }) {
})
}), O = () => void je({
title: "回滚上一批整理",
- body: Wde,
+ body: Bde,
confirmLabel: "回滚整理",
onConfirm: () => b.start.mutateAsync({ kind: "rollback" })
}), k = null, A = b.job, j = b.outcome;
if (A?.status === "running") {
let e = A.message || A.stage || "正在整理文件…";
- k = /* @__PURE__ */ (0, B.jsx)(PM, {
+ k = /* @__PURE__ */ (0, B.jsx)(zM, {
embedded: !0,
label: e,
value: A.checked,
@@ -36710,7 +36710,7 @@ function qde({ toast: e, failure: t }) {
children: j.error || "请查看任务记录,核对已处理的文件。"
});
else if (j) {
- let { text: e, failed: t } = Qj(j);
+ let { text: e, failed: t } = rM(j);
k = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -36720,7 +36720,7 @@ function qde({ toast: e, failure: t }) {
tone: "error",
title: "整理失败",
children: U(b.start.error)
- }) : y.isPending ? k = /* @__PURE__ */ (0, B.jsx)(PM, {
+ }) : y.isPending ? k = /* @__PURE__ */ (0, B.jsx)(zM, {
embedded: !0,
label: "正在按模板算计划…"
}) : y.isError ? k = /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -36730,9 +36730,9 @@ function qde({ toast: e, failure: t }) {
}) : S && (k = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "预览结果",
- children: que(S)
- }), C ? /* @__PURE__ */ (0, B.jsx)(Kde, { plan: S }) : null] }));
- return /* @__PURE__ */ (0, B.jsxs)(kM, {
+ children: Uue(S)
+ }), C ? /* @__PURE__ */ (0, B.jsx)(Hde, { plan: S }) : null] }));
+ return /* @__PURE__ */ (0, B.jsxs)(PM, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -36756,7 +36756,7 @@ function qde({ toast: e, failure: t }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, B.jsx)(OM, {
+ /* @__PURE__ */ (0, B.jsx)(NM, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -36776,20 +36776,20 @@ function qde({ toast: e, failure: t }) {
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- i.length ? /* @__PURE__ */ (0, B.jsx)(Ek, {
+ i.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: s || null,
onSelectionChange: (e) => {
e !== null && (o(String(e)), h(null), y.reset());
},
- children: i.map((e) => /* @__PURE__ */ (0, B.jsxs)(Dk, {
+ children: i.map((e) => /* @__PURE__ */ (0, B.jsxs)(kk, {
id: e.location,
textValue: I[e.location] || e.location,
- children: [/* @__PURE__ */ (0, B.jsx)(Wk, { mark: Oe[e.location] || "database" }), I[e.location] || e.location]
+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] || "database" }), I[e.location] || e.location]
}, e.location))
}) : null,
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: d.file,
@@ -36800,7 +36800,7 @@ function qde({ toast: e, failure: t }) {
f({ file: e }), h(null);
}
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: d.dir,
@@ -36840,56 +36840,56 @@ function qde({ toast: e, failure: t }) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var Jde = "/api/orphan-records", Yde = "/api/orphan-records/attach", XM = ["orphan-records"], Xde = [
+var Wde = "/api/orphan-records", Gde = "/api/orphan-records/attach", tN = ["orphan-records"], Kde = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], Zde = (e) => W(Jde, e), Qde = (e, t) => G(Yde, {
+], qde = (e) => W(Wde, e), Jde = (e, t) => G(Gde, {
id: e,
target: t
-}), $de = (e) => G(KA, {
+}), Yde = (e) => G(YA, {
ids: [e],
operation: "delete"
-}), efe = (e) => [
+}), Xde = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], ZM = (e) => [...Xde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...efe(e)].filter(Boolean).join(" · "), tfe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", QM = (e) => [e.name, tfe(e.duration)].filter(Boolean).join(" · "), nfe = xA("play"), $M = () => p.invalidateQueries({
- queryKey: XM,
+], nN = (e) => [...Kde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Xde(e)].filter(Boolean).join(" · "), Zde = (e) => e ? `${Math.round(e / 60)} 分钟` : "", rN = (e) => [e.name, Zde(e.duration)].filter(Boolean).join(" · "), Qde = wA("play"), iN = () => p.invalidateQueries({
+ queryKey: tN,
exact: !0
});
-function rfe({ item: e, toast: t }) {
- let [n, r] = (0, R.useState)(e.candidates[0]?.id ?? null), i = TS({
- mutationFn: () => Qde(e.id, Number(n)),
+function $de({ item: e, toast: t }) {
+ let [n, r] = (0, R.useState)(e.candidates[0]?.id ?? null), i = OS({
+ mutationFn: () => Jde(e.id, Number(n)),
onSuccess: (e) => {
- t(`记录已接到新文件,批次 ${e.batch}`), $M();
+ t(`记录已接到新文件,批次 ${e.batch}`), iN();
},
onError: (e) => t(U(e))
- }), a = TS({
- mutationFn: () => $de(e.id),
+ }), a = OS({
+ mutationFn: () => Yde(e.id),
onSuccess: (n) => {
- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), $M();
+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), iN();
}
}), o = () => {
je({
title: "彻底删除",
- body: `将删除「${e.name}」这一条和它带的记录(${ZM(e.records)})。此操作不可撤销。`,
+ body: `将删除「${e.name}」这一条和它带的记录(${nN(e.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => a.mutateAsync()
});
}, s = i.isPending || a.isPending;
- return /* @__PURE__ */ (0, B.jsxs)(sk, {
+ return /* @__PURE__ */ (0, B.jsxs)(lk, {
id: e.id,
children: [
- /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, B.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, B.jsx)(nfe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Qde, {
"aria-hidden": !0,
className: "size-5"
}), e.has_thumb ? /* @__PURE__ */ (0, B.jsx)("img", {
@@ -36911,27 +36911,27 @@ function rfe({ item: e, toast: t }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "block min-w-44",
- children: ZM(e.records)
+ children: nN(e.records)
}) }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Ek, {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(Number(e));
},
- children: e.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: e.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e.id,
- textValue: QM(e),
- children: QM(e)
+ textValue: rN(e),
+ children: rN(e)
}, e.id))
}) : /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
@@ -36951,23 +36951,23 @@ function rfe({ item: e, toast: t }) {
]
});
}
-function ife({ toast: e }) {
- let t = SS({
- queryKey: XM,
- queryFn: ({ signal: e }) => Zde(e)
+function efe({ toast: e }) {
+ let t = TS({
+ queryKey: tN,
+ queryFn: ({ signal: e }) => qde(e)
}), n = t.data?.items ?? [];
return !t.isError && !n.length ? null : /* @__PURE__ */ (0, B.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, B.jsx)(DM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(MM, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, B.jsxs)(kM, {
+ }), /* @__PURE__ */ (0, B.jsxs)(PM, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, B.jsx)(OM, {
+ /* @__PURE__ */ (0, B.jsx)(NM, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -36980,28 +36980,28 @@ function ife({ toast: e }) {
tone: "error",
title: "孤儿记录读取失败",
children: U(t.error)
- }) : /* @__PURE__ */ (0, B.jsx)(GM, { children: /* @__PURE__ */ (0, B.jsxs)(UM, {
+ }) : /* @__PURE__ */ (0, B.jsx)(XM, { children: /* @__PURE__ */ (0, B.jsxs)(JM, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsxs)(tk, { children: [
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, B.jsx)(ik, { children: n.map((t) => /* @__PURE__ */ (0, B.jsx)(rfe, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: n.map((t) => /* @__PURE__ */ (0, B.jsx)($de, {
item: t,
toast: e
}, t.id)) })]
@@ -37012,99 +37012,99 @@ function ife({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var afe = xA("git-compare"), ofe = xA("rotate-cw"), sfe = "暂时无法读取进度,正在重新连接…", eN = "清理失效条目", tN = "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", nN = (e) => Number(e || 0).toLocaleString();
-function cfe({ scan: e }) {
+var tfe = wA("git-compare"), nfe = wA("rotate-cw"), rfe = "暂时无法读取进度,正在重新连接…", aN = "清理失效条目", oN = "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", sN = (e) => Number(e || 0).toLocaleString();
+function ife({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {
- className: tN,
+ className: oN,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, B.jsx)("article", {
- className: xM(),
- children: /* @__PURE__ */ (0, B.jsx)(SM, {
- label: Que[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, B.jsx)(Wk, { mark: Oe[e.location] ?? "database" }),
+ className: EM(),
+ children: /* @__PURE__ */ (0, B.jsx)(DM, {
+ label: Jue[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, B.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${nN(e.missing)} 项` : "—",
- meta: nde(e),
+ figure: e.online ? `${sN(e.missing)} 项` : "—",
+ meta: Que(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, B.jsxs)("div", {
- className: tN,
+ className: oN,
children: [
/* @__PURE__ */ (0, B.jsx)("article", {
- className: xM(),
- children: /* @__PURE__ */ (0, B.jsx)(SM, {
+ className: EM(),
+ children: /* @__PURE__ */ (0, B.jsx)(DM, {
label: "待永久删除",
- figure: `${nN(sM(e))} 项`,
+ figure: `${sN(fM(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, B.jsx)("article", {
- className: xM(),
- children: /* @__PURE__ */ (0, B.jsx)(SM, {
+ className: EM(),
+ children: /* @__PURE__ */ (0, B.jsx)(DM, {
label: "将标为已消失",
- figure: `${nN(e.vanish)} 项`,
+ figure: `${sN(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, B.jsx)("article", {
- className: xM(),
- children: /* @__PURE__ */ (0, B.jsx)(SM, {
+ className: EM(),
+ children: /* @__PURE__ */ (0, B.jsx)(DM, {
label: "空文件夹",
- figure: `${nN(e.empty)} 个`,
+ figure: `${sN(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, B.jsx)("article", {
- className: xM(),
- children: /* @__PURE__ */ (0, B.jsx)(SM, {
+ className: EM(),
+ children: /* @__PURE__ */ (0, B.jsx)(DM, {
label: "可清理的缓存",
- figure: `${nN(t.files)} 个`,
+ figure: `${sN(t.files)} 个`,
meta: t.files ? ye(t.bytes) : ""
})
})
]
})] });
}
-function lfe({ toast: e }) {
- let t = RM({
- queryKey: nM,
- queryFn: ({ signal: e }) => iM(e),
- start: Yue,
+function afe({ toast: e }) {
+ let t = UM({
+ queryKey: sM,
+ queryFn: ({ signal: e }) => lM(e),
+ start: Gue,
onFinish: (t) => {
if (p.invalidateQueries({
- queryKey: mM,
+ queryKey: yM,
exact: !0
}), p.invalidateQueries({
- queryKey: tM,
+ queryKey: oM,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = uM(t);
- r ? e(`已完成 ${nN(n)} 项,${nN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = hM(t);
+ r ? e(`已完成 ${sN(n)} 项,${sN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = RM({
- queryKey: tM,
- queryFn: ({ signal: e }) => rM(e),
- start: Jue,
+ }), n = UM({
+ queryKey: oM,
+ queryFn: ({ signal: e }) => cM(e),
+ start: Wue,
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 je({
- title: eN,
- body: tde(e),
- confirmLabel: eN,
+ title: aN,
+ body: Zue(e),
+ confirmLabel: aN,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), l = t.outcome, u = (e) => {
- let t = uM(e).left > 0;
+ let t = hM(e).left > 0;
return /* @__PURE__ */ (0, B.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: rde(e, ye)
+ children: $ue(e, ye)
});
}, d = null, f = null;
if (l?.status === "failed") f = /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -37113,7 +37113,7 @@ function lfe({ toast: e }) {
children: l.error || "请查看任务记录,核对已处理的文件。"
});
else if (l) f = u(l);
- else if (t.running) d = /* @__PURE__ */ (0, B.jsx)(PM, {
+ else if (t.running) d = /* @__PURE__ */ (0, B.jsx)(zM, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -37125,11 +37125,11 @@ function lfe({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: sfe
+ children: rfe
});
else if (r?.status === "running") {
- let e = $ue(r);
- d = /* @__PURE__ */ (0, B.jsx)(PM, {
+ let e = Yue(r);
+ d = /* @__PURE__ */ (0, B.jsx)(zM, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -37146,13 +37146,13 @@ function lfe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Zue(r);
+ let e = que(r);
f = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(cfe, { scan: r }),
+ /* @__PURE__ */ (0, B.jsx)(ife, { scan: r }),
e ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
title: "清理内容",
- children: ede(r)
+ children: Xue(r)
}) : null,
/* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -37160,7 +37160,7 @@ function lfe({ toast: e }) {
variant: "danger",
...X(a),
onClick: () => c(r),
- children: a ? "正在复核并清理…" : eN
+ children: a ? "正在复核并清理…" : aN
}) : /* @__PURE__ */ (0, B.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -37177,16 +37177,16 @@ function lfe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(DM, {
+ /* @__PURE__ */ (0, B.jsx)(MM, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, B.jsxs)(kM, {
+ /* @__PURE__ */ (0, B.jsxs)(PM, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, B.jsx)(J, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? ofe : afe,
+ leadingIcon: o && !i ? nfe : tfe,
...X(i),
onClick: () => {
i || n.start.mutate();
@@ -37194,7 +37194,7 @@ function lfe({ toast: e }) {
children: s
}),
children: [
- /* @__PURE__ */ (0, B.jsx)(OM, {
+ /* @__PURE__ */ (0, B.jsx)(NM, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -37220,16 +37220,16 @@ function lfe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function rN(e, t) {
+function cN(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function iN({ section: e, label: t, icon: n, value: r, open: i }) {
+function lN({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
- className: xM({ interactive: !0 }),
+ className: EM({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, B.jsx)(SM, {
+ children: /* @__PURE__ */ (0, B.jsx)(DM, {
label: t,
icon: n,
figure: r.figure,
@@ -37237,80 +37237,80 @@ function iN({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var ufe = xA("square-check-big"), dfe = xA("sparkles"), ffe = xA("file-stack"), pfe = xA("file-archive"), mfe = xA("trash"), hfe = [
- dM,
- dj,
- GA
-], gfe = () => {
- for (let e of hfe) p.invalidateQueries({
+var ofe = wA("square-check-big"), sfe = wA("sparkles"), cfe = wA("file-stack"), lfe = wA("file-archive"), ufe = wA("trash"), dfe = [
+ gM,
+ mj,
+ JA
+], ffe = () => {
+ for (let e of dfe) p.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function _fe({ toast: e, failure: t, open: n }) {
- let r = SS({
- queryKey: dM,
- queryFn: ({ signal: e }) => hM(e)
- }), i = SS({
- queryKey: dj,
- queryFn: ({ signal: e }) => fj(e)
- }), a = SS({
- queryKey: GA,
- queryFn: ({ signal: e }) => qA(e)
- }), o = SS({
- queryKey: fM,
- queryFn: ({ signal: e }) => gM(e)
- }), s = SS({
- queryKey: mM,
- queryFn: ({ signal: e }) => _M(e)
- }), c = SS({
+function pfe({ toast: e, failure: t, open: n }) {
+ let r = TS({
+ queryKey: gM,
+ queryFn: ({ signal: e }) => bM(e)
+ }), i = TS({
+ queryKey: mj,
+ queryFn: ({ signal: e }) => hj(e)
+ }), a = TS({
+ queryKey: JA,
+ queryFn: ({ signal: e }) => XA(e)
+ }), o = TS({
+ queryKey: _M,
+ queryFn: ({ signal: e }) => xM(e)
+ }), s = TS({
+ queryKey: yM,
+ queryFn: ({ signal: e }) => SM(e)
+ }), c = TS({
queryKey: u,
queryFn: ({ signal: e }) => f(e)
}), l = (t) => e(t);
- return /* @__PURE__ */ (0, B.jsxs)(jE, { children: [
+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: mde,
+ className: ude,
children: [
- /* @__PURE__ */ (0, B.jsx)(iN, {
+ /* @__PURE__ */ (0, B.jsx)(lN, {
section: "review",
label: "人工复核",
- icon: ufe,
+ icon: ofe,
open: n,
- value: rN(r, sde)
+ value: cN(r, rde)
}),
- /* @__PURE__ */ (0, B.jsx)(iN, {
+ /* @__PURE__ */ (0, B.jsx)(lN, {
section: "quality",
label: "高清版",
- icon: dfe,
+ icon: sfe,
open: n,
- value: rN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: cN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, B.jsx)(iN, {
+ /* @__PURE__ */ (0, B.jsx)(lN, {
section: "duplicates",
label: "重复文件",
- icon: ffe,
+ icon: cfe,
open: n,
- value: rN(a, (e) => Number(e.total || 0) ? {
+ value: cN(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${ye(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, B.jsx)(iN, {
+ /* @__PURE__ */ (0, B.jsx)(lN, {
section: "ads",
label: "垃圾文件",
- icon: pfe,
+ icon: lfe,
open: n,
- value: rN(o, (e) => ({
+ value: cN(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: cde(e)
+ meta: ide(e)
}))
}),
- /* @__PURE__ */ (0, B.jsx)(iN, {
+ /* @__PURE__ */ (0, B.jsx)(lN, {
section: "trash",
label: "回收站",
- icon: mfe,
+ icon: ufe,
open: n,
- value: rN(s, (e) => ({
+ value: cN(s, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${ye(e.bytes || 0)}` : ""
}))
@@ -37323,31 +37323,31 @@ function _fe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, B.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, B.jsx)(IM, {
+ children: /* @__PURE__ */ (0, B.jsx)(VM, {
toast: l,
monitor: !0,
- onComplete: gfe
+ onComplete: ffe
})
}),
/* @__PURE__ */ (0, B.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, B.jsx)(Fde, {})
+ children: /* @__PURE__ */ (0, B.jsx)(jde, {})
}),
- /* @__PURE__ */ (0, B.jsx)(qde, {
+ /* @__PURE__ */ (0, B.jsx)(Ude, {
toast: l,
failure: t
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(Hde, {}),
- /* @__PURE__ */ (0, B.jsx)(ife, { toast: l }),
- aM(c.data) ? /* @__PURE__ */ (0, B.jsx)(lfe, { toast: e }) : null
+ /* @__PURE__ */ (0, B.jsx)(Rde, {}),
+ /* @__PURE__ */ (0, B.jsx)(efe, { toast: l }),
+ uM(c.data) ? /* @__PURE__ */ (0, B.jsx)(afe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var aN = (e) => ["feed-new", e ?? "home"], vfe = 8, yfe = 1500;
-function bfe(e, t, n) {
+var uN = (e) => ["feed-new", e ?? "home"], mfe = 8, hfe = 1500;
+function gfe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -37358,32 +37358,32 @@ function bfe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function xfe(e, t, n) {
+async function _fe(e, t, n) {
let r = new URLSearchParams({ limit: "12" });
e && r.set("entity", String(e));
let i = await pe(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await bfe(s, vfe, yfe), {
+ return n && o.length && await gfe(s, mfe, hfe), {
items: o,
html: s
};
}
-var oN = (e, t, n = !1) => ({
- queryKey: aN(e),
- queryFn: () => xfe(e, t, n),
+var dN = (e, t, n = !1) => ({
+ queryKey: uN(e),
+ queryFn: () => _fe(e, t, n),
staleTime: Infinity
-}), sN = (e, t) => pe("/api/feeds/discovery", {
+}), fN = (e, t) => pe("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function Sfe(e) {
- p.removeQueries({ queryKey: aN(null) }), await p.fetchQuery(oN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function vfe(e) {
+ p.removeQueries({ queryKey: uN(null) }), await p.fetchQuery(dN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var Cfe = [
+var yfe = [
"loc",
"creator",
"tag",
@@ -37393,51 +37393,51 @@ var Cfe = [
"orient",
"sort",
"dir"
-], cN = {
+], pN = {
media: "videos",
set: 0
-}, lN = (e, t) => [
+}, mN = (e, t) => [
"entity",
e,
t
-], wfe = (e, t, n, r) => [
+], bfe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], uN = (e, t, n, r) => [
+], hN = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], dN = (e) => String(e || "").split(",").filter(Boolean), Tfe = (e, t) => dN(e).includes(t);
-function fN(e, t, n, r, i = 0) {
+], gN = (e) => String(e || "").split(",").filter(Boolean), xfe = (e, t) => gN(e).includes(t);
+function _N(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 Cfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of yfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function pN(e, t, n, r, i, a) {
- return await pe(`/api/items?${fN(e, t, n, r, i)}`, a ? { signal: a } : {});
+async function vN(e, t, n, r, i, a) {
+ return await pe(`/api/items?${_N(e, t, n, r, i)}`, a ? { signal: a } : {});
}
-var mN = (e) => {
+var yN = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = fN(e.kind, e.name, e.filters, t).toString();
+ }, n = _N(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: wfe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => pN(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: bfe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => vN(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, hN = (e, t) => ({
- queryKey: lN(e, t),
+}, bN = (e, t) => ({
+ queryKey: mN(e, t),
queryFn: ({ signal: n }) => pe(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function Efe(e, t, n, r, i, a) {
+function Sfe(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)}` : ""}`;
@@ -37446,10 +37446,10 @@ function Efe(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 gN = (e, t, n, r) => ({
- queryKey: uN(e, t, n, r),
+var xN = (e, t, n, r) => ({
+ queryKey: hN(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await pe(Efe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await pe(Sfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -37462,8 +37462,8 @@ var gN = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), _N = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function Dfe(e) {
+}), SN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function Cfe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -37475,51 +37475,51 @@ async function Dfe(e) {
n
] });
await Promise.all([
- p.fetchQuery(hN(t, n)).then((t) => !t || t.error || !t.id ? null : (p.removeQueries({ queryKey: aN(Number(t.id)) }), p.fetchQuery(oN(Number(t.id), e.helpers.feedRowHtml, !0)))),
- p.fetchQuery(mN(e)),
- p.fetchInfiniteQuery(gN(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? p.fetchInfiniteQuery(gN(t, n, e.media.set, "")) : null
+ p.fetchQuery(bN(t, n)).then((t) => !t || t.error || !t.id ? null : (p.removeQueries({ queryKey: uN(Number(t.id)) }), p.fetchQuery(dN(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ p.fetchQuery(yN(e)),
+ p.fetchInfiniteQuery(xN(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? p.fetchInfiniteQuery(xN(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var Ofe = "/api/follow/authors", kfe = "/api/follow/tags", Afe = (e) => [
+var wfe = "/api/follow/authors", Tfe = "/api/follow/tags", Efe = (e) => [
"follow",
"authors",
e
-], jfe = (e, t) => [
+], Dfe = (e, t) => [
"follow",
"tags",
e,
t
];
-function Mfe(e, t, n) {
+function Ofe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${Ofe}?${r}`;
+ return e && r.set("q", e), `${wfe}?${r}`;
}
-function Nfe(e, t, n, r) {
+function kfe(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), `${kfe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Tfe}?${i}`;
}
-var Pfe = (e, t, n, r) => W(Mfe(e, t, n), r), Ffe = (e, t, n, r, i) => W(Nfe(e, t, n, r), i), Ife = "/api/index", vN = {
+var Afe = (e, t, n, r) => W(Ofe(e, t, n), r), jfe = (e, t, n, r, i) => W(kfe(e, t, n, r), i), Mfe = "/api/index", CN = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Lfe = {
+}, Nfe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, yN = [
+}, wN = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -37529,26 +37529,26 @@ var Pfe = (e, t, n, r) => W(Mfe(e, t, n), r), Ffe = (e, t, n, r, i) => W(Nfe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], bN = [
+], TN = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], xN = {
+], EN = {
people: 120,
tags: 180
-}, SN = (e) => e !== "tags", CN = (e) => e === "studios" || e === "agencies";
-function wN(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? bN : yN).some(([t]) => t === e.category);
+}, DN = (e) => e !== "tags", ON = (e) => e === "studios" || e === "agencies";
+function kN(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? TN : wN).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function TN(e) {
+function AN(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -37567,50 +37567,50 @@ function TN(e) {
q: n
};
}
-var EN = (e, t, n = "all") => [
+var jN = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function DN(e, t, n, r, i) {
+function MN(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${Ife}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${Mfe}?${a}`;
}
-function ON(e) {
- let t = e.what === "people" || e.what === "online-authors" ? xN.people : xN.tags, n = {
+function NN(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? EN.people : EN.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: EN(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => W(DN(e.kind, e.q, "all", t, n), r)
+ queryKey: jN(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => W(MN(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: EN("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => W(DN("tags", e.q, e.category, t, n), r)
+ queryKey: jN("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => W(MN("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: Afe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => Pfe(e.q, t, n, r)
+ queryKey: Efe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Afe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: jfe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Ffe(e.q, e.category, t, n, r)
+ queryKey: Dfe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => jfe(e.q, e.category, t, n, r)
};
}
}
-async function Rfe(e, t) {
- let n = ON(TN(wN(e)));
+async function Pfe(e, t) {
+ let n = NN(AN(kN(e)));
p.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -37624,13 +37624,13 @@ async function Rfe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var zfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Bfe = (e, t) => `${e}${t ? "+" : ""} 项`, kN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Vfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Hfe = {
+var Ffe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Ife = (e, t) => `${e}${t ? "+" : ""} 项`, PN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Lfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Rfe = {
numeric: !0,
sensitivity: "base"
};
-function Ufe(e, t) {
+function zfe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Hfe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Rfe))) {
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]);
}
@@ -37638,7 +37638,7 @@ function Ufe(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function AN({ html: e, face: t, company: n, big: r }) {
+function FN({ html: e, face: t, company: n, big: r }) {
let i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -37650,18 +37650,18 @@ function AN({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Wfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function jN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var Bfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function IN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
...a,
"data-index-cell": "",
onClick: i,
- className: OE({
+ className: AE({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Wfe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Bfe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -37678,8 +37678,8 @@ function jN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function MN({ kind: e, items: t, layout: n, props: r }) {
- let i = Lfe[e], a = CN(e), o = n === "big";
+function LN({ kind: e, items: t, layout: n, props: r }) {
+ let i = Nfe[e], a = ON(e), o = n === "big";
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -37687,14 +37687,14 @@ function MN({ kind: e, items: t, layout: n, props: r }) {
className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, B.jsx)(jN, {
+ return /* @__PURE__ */ (0, B.jsx)(IN, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: Vfe(e, t),
+ readout: Lfe(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, B.jsx)(AN, {
+ children: /* @__PURE__ */ (0, B.jsx)(FN, {
html: n.html,
face: n.face,
company: a,
@@ -37704,21 +37704,21 @@ function MN({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Gfe({ items: e, layout: t, props: n }) {
+function Vfe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(jN, {
+ children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(IN, {
"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, B.jsx)(AN, {
+ children: /* @__PURE__ */ (0, B.jsx)(FN, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -37728,14 +37728,14 @@ function Gfe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function Kfe(e) {
+function Hfe(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 NN = "/vendor/swiper/14.2.0/", PN = null, qfe = () => PN ??= Promise.all([new Promise((e, t) => {
- let n = `${NN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var RN = "/vendor/swiper/14.2.0/", zN = null, Ufe = () => zN ??= Promise.all([new Promise((e, t) => {
+ let n = `${RN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -37749,11 +37749,11 @@ var NN = "/vendor/swiper/14.2.0/", PN = null, qfe = () => PN ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${NN}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${RN}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 PN = null, e;
+ throw zN = null, e;
});
-function Jfe(e, t, n) {
+function Wfe(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);
@@ -37774,48 +37774,48 @@ function Jfe(e, t, n) {
}
};
}
-var FN = (e) => {
+var BN = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : ye(t)).replace(" ", "\xA0") : "大小未知";
-}, Yfe = (e) => e.asset?.name || e.name || "未命名图片";
-function Xfe(e, t) {
+}, Gfe = (e) => e.asset?.name || e.name || "未命名图片";
+function Kfe(e, t) {
let n = e.asset;
- if (n) return [I[n.location ?? ""] || n.location || "来源未知", FN(n.size)].join(" · ");
+ if (n) return [I[n.location ?? ""] || n.location || "来源未知", BN(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 ? FN(e.size) : ""
+ e.size ? BN(e.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var IN = null, LN = null, Zfe = 0;
-function Qfe() {
- return (!LN || !IN?.isConnected) && (LN?.unmount(), IN = document.createElement("div"), IN.className = "peach-react", IN.dataset.photoLightboxHost = "", document.body.append(IN), LN = (0, rp.createRoot)(IN)), LN;
+var VN = null, HN = null, qfe = 0;
+function Jfe() {
+ return (!HN || !VN?.isConnected) && (HN?.unmount(), VN = document.createElement("div"), VN.className = "peach-react", VN.dataset.photoLightboxHost = "", document.body.append(VN), HN = (0, ip.createRoot)(VN)), HN;
}
-async function RN(e, t, n) {
+async function UN(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await qfe();
+ r = await Ufe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = Qfe();
- (0, np.flushSync)(() => i.render(/* @__PURE__ */ (0, B.jsx)($fe, {
+ let i = Jfe();
+ (0, rp.flushSync)(() => i.render(/* @__PURE__ */ (0, B.jsx)(Yfe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++Zfe)));
+ }, ++qfe)));
}
-function zN() {
- LN && (0, np.flushSync)(() => LN.render(null));
+function WN() {
+ HN && (0, rp.flushSync)(() => HN.render(null));
}
-function $fe({ slides: e, index: t, Swiper: n, host: r }) {
+function Yfe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, R.useId)(), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), [_, v] = (0, R.useState)(t), [y, b] = (0, R.useState)(100), [x, S] = (0, R.useState)({}), [C, w] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, R.useState)(!1), [D, O] = (0, R.useState)({
at: t,
text: ""
@@ -37858,7 +37858,7 @@ function $fe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = Jfe(e, a, b);
+ i(t, 0), h.current = Wfe(e, a, b);
let m = tt(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();
};
@@ -37875,13 +37875,13 @@ function $fe({ 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) : zN());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : WN());
};
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, R.useLayoutEffect)(() => {
- m.current && Kfe(m.current);
+ m.current && Hfe(m.current);
}, [y]);
let k = e[_], A = k.asset ?? null, j = async (e) => {
if (!A || !r || e.getAttribute("aria-busy") === "true") return;
@@ -37912,18 +37912,18 @@ function $fe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), zN();
+ e.preventDefault(), WN();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && zN();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && WN();
},
children: [
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: zN,
+ onClick: WN,
dangerouslySetInnerHTML: { __html: L("x") }
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -38056,10 +38056,10 @@ function $fe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Yfe(k)
+ children: Gfe(k)
}, _), /* @__PURE__ */ (0, B.jsx)("span", {
"data-photo-detail-meta": "",
- children: Xfe(k, x[_])
+ children: Kfe(k, x[_])
})]
}),
/* @__PURE__ */ (0, B.jsx)("button", {
@@ -38098,33 +38098,33 @@ function $fe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function epe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, B.jsx)(tpe, {
+function Xfe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, B.jsx)(Zfe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, B.jsx)(npe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, B.jsx)(ape, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, B.jsx)(Qfe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, B.jsx)(tpe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function tpe({ roster: e, props: t }) {
+function Zfe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, R.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, B.jsx)(MN, {
+ return /* @__PURE__ */ (0, B.jsx)(LN, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function npe(e) {
- let t = AA(!e.items, e.skeletonHtml);
+function Qfe(e) {
+ let t = NA(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, B.jsx)(VA, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, B.jsx)(WA, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -38143,16 +38143,16 @@ function npe(e) {
}) : null]
});
}
-var rpe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var $fe = (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 || "官方样张"
-})), BN = (e) => e.sample === !0, VN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, HN = (e) => BN(e) ? `/sample-thumb?${VN(e)}` : `/photo-thumb?id=${e.id}`, ipe = (e) => BN(e) ? {
- src: `/sample-image?${VN(e)}`,
- thumb: HN(e),
+})), GN = (e) => e.sample === !0, KN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, qN = (e) => GN(e) ? `/sample-thumb?${KN(e)}` : `/photo-thumb?id=${e.id}`, epe = (e) => GN(e) ? {
+ src: `/sample-image?${KN(e)}`,
+ thumb: qN(e),
name: e.name,
asset: null,
source: e.source,
@@ -38160,18 +38160,18 @@ var rpe = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: HN(e),
+ thumb: qN(e),
name: e.name || "",
asset: e
};
-function ape({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(rpe), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
+function tpe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap($fe), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, R.useCallback)((e) => {
- RN(e, o.map(ipe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, B.jsx)(ope, {
+ UN(e, o.map(epe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, B.jsx)(npe, {
item: e,
index: t,
lost: s.has(t),
@@ -38189,7 +38189,7 @@ function ape({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(UN, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(JN, {
label: e.code,
title: e.name,
meta: [
@@ -38201,7 +38201,7 @@ function ape({ 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, B.jsx)(UN, {
+ m.length && e.total ? /* @__PURE__ */ (0, B.jsx)(JN, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -38210,14 +38210,14 @@ function ape({ 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, B.jsx)(HA, {
+ e.hasMore ? /* @__PURE__ */ (0, B.jsx)(GA, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function UN({ label: e, title: t, meta: n }) {
+function JN({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -38234,7 +38234,7 @@ function UN({ label: e, title: t, meta: n }) {
]
});
}
-function ope({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function npe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -38243,7 +38243,7 @@ function ope({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, B.jsx)("img", {
- src: HN(e),
+ src: qN(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -38252,7 +38252,7 @@ function ope({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
})
});
}
-function WN(e) {
+function YN(e) {
return {
x0: 0,
y0: 0,
@@ -38260,7 +38260,7 @@ function WN(e) {
y1: e.height
};
}
-function GN(e) {
+function XN(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -38268,40 +38268,40 @@ function GN(e) {
y1: Math.round(e.y1)
};
}
-function KN(e) {
+function ZN(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function qN(e, t) {
- if (!KN(e)) return {
+function QN(e, t) {
+ if (!ZN(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return WN(e);
+ if (t == null || !(t > 0)) return YN(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 GN({
+ return XN({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function spe(e, t) {
- if (!KN(e) || !(t > 0)) return WN(e);
+function rpe(e, t) {
+ if (!ZN(e) || !(t > 0)) return YN(e);
let n = Math.min(e.width, e.height * t);
- return GN({
+ return XN({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function cpe(e, t, n) {
- if (!KN(t) || !(n > 0)) return WN(t);
- let r = JN(e, t), i = qN({
+function ipe(e, t, n) {
+ if (!ZN(t) || !(n > 0)) return YN(t);
+ let r = $N(e, t), i = QN({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -38312,8 +38312,8 @@ function cpe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function JN(e, t, n = null, r = "width") {
- if (!KN(t)) return {
+function $N(e, t, n = null, r = "width") {
+ if (!ZN(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -38322,43 +38322,43 @@ function JN(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 GN({
+ return XN({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function YN(e, t, n, r) {
+function eP(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 GN({
+ return XN({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function XN(e, t, n, r = null) {
- if (!KN(n) || !(t > 0)) return e;
+function tP(e, t, n, r = null) {
+ if (!ZN(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 JN({
+ return $N({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function lpe(e, t, n, r, i = null) {
+function ape(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return JN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return $N(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function upe(e, t) {
- return KN(t) ? {
+function ope(e, t) {
+ return ZN(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -38370,8 +38370,8 @@ function upe(e, t) {
height: 0
};
}
-function dpe(e, t) {
- if (!KN(t)) return {
+function spe(e, t) {
+ if (!ZN(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -38381,7 +38381,7 @@ function dpe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function fpe(e, t) {
+function cpe(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}%`,
@@ -38390,29 +38390,29 @@ function fpe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function ZN(e, t, n) {
+function nP(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var ppe = {
+var lpe = {
"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 }) {
- let { isFocusVisible: a } = th();
- return /* @__PURE__ */ (0, B.jsx)(FO, {
+function rP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ let { isFocusVisible: a } = nh();
+ return /* @__PURE__ */ (0, B.jsx)(LO, {
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, B.jsx)(sse, {
+ children: /* @__PURE__ */ (0, B.jsx)(ose, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${ppe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, B.jsx)(jO, {
+ className: `flex max-h-full w-full ${lpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, B.jsx)(NO, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -38420,7 +38420,7 @@ function QN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function $N({ children: e }) {
+function iP({ children: e }) {
return /* @__PURE__ */ (0, B.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",
@@ -38429,8 +38429,8 @@ function $N({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var mpe = .02, eP = 1.08;
-function tP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var upe = .02, aP = 1.08;
+function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, R.useRef)(null), c = (0, R.useRef)(null), [l, u] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
u(!1);
@@ -38441,8 +38441,8 @@ function tP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: ZN(e, n.clientWidth, r.width),
- dy: ZN(t, n.clientHeight, r.height)
+ dx: nP(e, n.clientWidth, r.width),
+ dy: nP(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -38460,29 +38460,29 @@ function tP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
if (!n || !a || !r) return;
let o = d(e.clientX - n.x, e.clientY - n.y);
if (n.mode === "move") {
- i(YN(n.box, o.dx, o.dy, r));
+ i(eP(n.box, o.dx, o.dy, r));
return;
}
- i(lpe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ i(ape(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function m(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function h(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * mpe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * upe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(YN(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(eP(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(XN(n, e.key === "-" ? 1 / eP : eP, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(tP(n, e.key === "-" ? 1 / aP : aP, r, t)));
}
- let g = n && r ? upe(JN(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? ope($N(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -38501,7 +38501,7 @@ function tP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- KN({
+ ZN({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -38540,7 +38540,7 @@ function tP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(XN(n, e.deltaY > 0 ? eP : 1 / eP, r, t));
+ !n || !r || i(tP(n, e.deltaY > 0 ? aP : 1 / aP, 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, B.jsx)("span", {
@@ -38562,47 +38562,47 @@ function tP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var hpe = "/api/avatar-choices", nP = "/api/avatar-pick", gpe = "/api/avatar-code-cover", _pe = "/avatar-choice", rP = (e, t) => [
+var dpe = "/api/avatar-choices", sP = "/api/avatar-pick", fpe = "/api/avatar-code-cover", ppe = "/avatar-choice", cP = (e, t) => [
"avatar-choices",
e,
t
-], iP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, aP = (e, t, n, r = "") => `${_pe}${iP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), oP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", vpe = (e, t, n) => W(hpe + iP(e, t), n), ype = (e) => G(gpe, { code: e });
-function sP(e, t, n) {
+], lP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, uP = (e, t, n, r = "") => `${ppe}${lP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), dP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", fP = (e, t, n) => W(dpe + lP(e, t), n), mpe = (e) => G(fpe, { code: e });
+function pP(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? cpe(e.focus, t, n) : qN(t, n);
+ return e.focus && r ? ipe(e.focus, t, n) : QN(t, n);
}
-var cP = (e) => e.crop && KN({
+var hpe = (e) => e.crop && ZN({
width: e.width,
height: e.height
});
-async function lP(e, t, n) {
+async function gpe(e, t, n) {
if (!("file" in n)) {
- await G(nP, {
+ await G(sP, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${nP}${iP(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${sP}${lP(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 IS(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new zS(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function uP(e, t) {
+function _pe(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 dP = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function fP(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${dP(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var vpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function ype(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${vpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var pP = (e) => e.cast > 1, bpe = (e) => pP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, xpe = {
+var mP = (e) => e.cast > 1, bpe = (e) => mP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, xpe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -38615,7 +38615,7 @@ function Spe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var Cpe = (e) => `${xpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (pP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), wpe = 8, Tpe = 3 / 4;
+var Cpe = (e) => `${xpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (mP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), wpe = 8, Tpe = 3 / 4;
function Epe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", {
@@ -38626,12 +38626,12 @@ function Epe({ 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, B.jsx)(qie, {
+ children: /* @__PURE__ */ (0, B.jsx)(Kie, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, B.jsx)(QN, {
+ }), /* @__PURE__ */ (0, B.jsx)(rP, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
@@ -38646,49 +38646,49 @@ function Epe({ kind: e, entityId: t, name: n, onPicked: r }) {
})] });
}
function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, R.useRef)(null), o = AM(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), g = rP(e, t), _ = (0, R.useRef)(!1), v = SS({
+ let a = (0, R.useRef)(null), o = FM(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), g = cP(e, t), _ = (0, R.useRef)(!1), v = TS({
queryKey: g,
- queryFn: ({ signal: n }) => vpe(e, t, n),
+ queryFn: ({ signal: n }) => fP(e, t, n),
retryOnMount: !0
});
(0, R.useEffect)(() => () => {
- _.current && p.removeQueries({ queryKey: rP(e, t) });
+ _.current && p.removeQueries({ queryKey: cP(e, t) });
}, [e, t]);
- let y = TS({
- mutationFn: (n) => lP(e, t, n),
+ let y = OS({
+ mutationFn: (n) => gpe(e, t, n),
onSuccess: () => {
_.current = !0, i(), r();
}
- }), b = TS({
- mutationFn: (e) => ype(e),
+ }), b = OS({
+ mutationFn: (e) => mpe(e),
onSuccess: (e) => h(e)
});
function x(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && y.mutate({ file: n });
}
- let S = v.data, C = S?.choices ?? [], w = d || (y.error ? U(y.error) : "") || (!m && b.error ? U(b.error) : "") || (v.error ? U(v.error) : ""), T = y.isPending || b.isPending, E = m ? "" : fP(S);
+ let S = v.data, C = S?.choices ?? [], w = d || (y.error ? U(y.error) : "") || (!m && b.error ? U(b.error) : "") || (v.error ? U(v.error) : ""), T = y.isPending || b.isPending, E = m ? "" : ype(S);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, B.jsx)($N, { children: /* @__PURE__ */ (0, B.jsx)(NT, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, B.jsx)(iP, { children: /* @__PURE__ */ (0, B.jsx)(FT, { className: "size-6" }) }),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(tD, {
+ children: [/* @__PURE__ */ (0, B.jsx)(rD, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: m ? "框出头像那一块" : "更换头像"
- }), !m && C.length ? /* @__PURE__ */ (0, B.jsxs)(TE, {
+ }), !m && C.length ? /* @__PURE__ */ (0, B.jsxs)(DE, {
color: "soft",
children: [C.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: m ? bpe(m) : uP(n, S)
+ children: m ? bpe(m) : _pe(n, S)
}),
E ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
@@ -38700,8 +38700,8 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(MM, {
- icon: vT,
+ /* @__PURE__ */ (0, B.jsx)(LM, {
+ icon: bT,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -38752,7 +38752,7 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
/* @__PURE__ */ (0, B.jsx)(Ope, {
- src: aP(e, t, n.ref, oP(n, n.ref)),
+ src: uP(e, t, n.ref, dP(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, B.jsx)("span", {
@@ -38761,15 +38761,15 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, B.jsx)(TE, {
+ children: /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- pP(n) ? /* @__PURE__ */ (0, B.jsx)("span", {
+ mP(n) ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, B.jsxs)(TE, {
+ children: /* @__PURE__ */ (0, B.jsxs)(DE, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -38788,7 +38788,7 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(xk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -38823,7 +38823,7 @@ function Dpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(xk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -38851,7 +38851,7 @@ function Ope({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = cP(t) ? fpe(sP(t, a, Tpe), a) : null, s = r ? !0 : void 0;
+ }, o = hpe(t) ? cpe(pP(t, a, Tpe), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, B.jsx)("img", {
@@ -38877,22 +38877,22 @@ function Ope({ src: e, choice: t }) {
});
}
function kpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = oP(n, s), m = aP(e, t, s, p), h = AM();
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = dP(n, s), m = uP(e, t, s, p), h = FM();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? dpe(d, l) : null;
+ let _ = d && l ? spe(d, l) : null;
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [/* @__PURE__ */ (0, B.jsx)(tP, {
+ children: [/* @__PURE__ */ (0, B.jsx)(oP, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), KN(e) && f(s === n.ref ? sP(n, e, 1) : qN(e, 1));
+ u(e), ZN(e) && f(s === n.ref ? pP(n, e, 1) : QN(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -38940,7 +38940,7 @@ function kpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function mP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+function hP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
let a = (0, R.useRef)(null), o = e?.items.length ? e.html : "";
(0, R.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);
@@ -38978,7 +38978,7 @@ var Ape = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function hP({ name: e }) {
+function gP({ name: e }) {
let t = Ape[e];
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
@@ -38989,19 +38989,19 @@ function hP({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function gP(e, t) {
+function _P(e, t) {
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8;
t.style.top = `${i + r.height <= innerHeight - 8 ? i : Math.max(8, n.top - r.height - 8)}px`;
}
-var _P = (e) => !!e?.isConnected && e.matches(":popover-open");
-function vP(e, t, n, r) {
+var vP = (e) => !!e?.isConnected && e.matches(":popover-open");
+function yP(e, t, n, r) {
let i = (0, R.useRef)(r);
i.current = r, (0, R.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && _P(n.current) ? gP(t.current, n.current) : i.current();
+ t.current && vP(n.current) ? _P(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -39015,17 +39015,17 @@ function vP(e, t, n, r) {
n
]);
}
-function yP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function bP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(!1), u = (0, R.useRef)(!1), d = (0, R.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, _P(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, vP(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || _P(s.current)) && (s.current.showPopover(), gP(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || vP(s.current)) && (s.current.showPopover(), _P(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
!u.current && !o.current?.matches(":hover,:focus-visible") && !s.current?.matches(":hover") && f();
}, 150);
};
- return vP(c, o, s, f), (0, R.useEffect)(() => {
+ return yP(c, o, s, f), (0, R.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -39051,7 +39051,7 @@ function yP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && _P(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && vP(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -39071,14 +39071,14 @@ function yP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}
function jpe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = (0, R.useRef)(!1), u = () => {
- _P(o.current) && o.current.hidePopover(), c(!1);
+ vP(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || _P(o.current) || (o.current.showPopover(), gP(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || vP(o.current) || (o.current.showPopover(), _P(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return vP(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
- i.current && _P(o.current) && gP(i.current, o.current);
+ return yP(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
+ i.current && vP(o.current) && _P(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, B.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -39087,7 +39087,7 @@ function jpe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, B.jsx)(hP, { name: "rss" }),
+ /* @__PURE__ */ (0, B.jsx)(gP, { name: "rss" }),
/* @__PURE__ */ (0, B.jsx)("input", {
ref: a,
type: "checkbox",
@@ -39126,25 +39126,25 @@ function Mpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, B.jsxs)($oe, {
+ }, []), /* @__PURE__ */ (0, B.jsxs)(Qoe, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, B.jsx)($E, {
+ children: [/* @__PURE__ */ (0, B.jsx)(tD, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, B.jsx)(hP, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, B.jsx)(bO, {
+ children: /* @__PURE__ */ (0, B.jsx)(gP, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, B.jsx)(SO, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: Sk,
+ className: wk,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, B.jsxs)(tse, {
+ children: /* @__PURE__ */ (0, B.jsxs)(ese, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(DO, {
+ /* @__PURE__ */ (0, B.jsx)(kO, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -39152,20 +39152,20 @@ function Mpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(kO, {
+ children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(jO, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(Foe, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, B.jsx)(DO, { children: /* @__PURE__ */ (0, B.jsxs)(kO, {
+ /* @__PURE__ */ (0, B.jsx)(Poe, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, B.jsx)(kO, { children: /* @__PURE__ */ (0, B.jsxs)(jO, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "plus" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: "plus" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "添加别名…" })]
}) })
]
})
@@ -39176,7 +39176,7 @@ var Npe = (e) => e === "studio" || e === "agency", Ppe = (e) => e === "performer
function Ipe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function bP(e) {
+function xP(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -39187,13 +39187,13 @@ function bP(e) {
linked: !1
} : null;
}
-function xP(e, t) {
+function SP(e, t) {
let n = Ce(e, "performer"), r = be(t);
return r && [e.label, n].map(be).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var SP = (e) => ({ site: xe(e) });
+var CP = (e) => ({ site: xe(e) });
function Lpe(e, t) {
- let n = bP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+ let n = xP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -39203,7 +39203,7 @@ function Lpe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${xP(e, n)} · ${t}`
+ title: `${SP(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -39214,8 +39214,8 @@ function Lpe(e, t) {
if (t === "performer" && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: xP(e, n),
- mark: SP(e)
+ title: SP(e, n),
+ mark: CP(e)
};
if (e.link_kind === "social") {
let t = me(r);
@@ -39223,7 +39223,7 @@ function Lpe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : SP(e)
+ mark: t ? { brand: t } : CP(e)
};
}
return {
@@ -39231,12 +39231,12 @@ function Lpe(e, t) {
url: r,
title: e.label || "",
text: Ce(e, t, i),
- mark: SP(e)
+ mark: CP(e)
};
});
return [...r, ...a];
}
-var CP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+var wP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
function Rpe(e) {
if (!e) return [];
let t = [];
@@ -39323,7 +39323,7 @@ function Vpe(e) {
});
}
function Hpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = Ppe(e), c = Npe(e), l = e === "performer" ? Rpe(n.profile) : [], u = Lpe(n, e), d = CP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, R.useRef)(null), m = (0, R.useRef)(null);
+ let s = Ppe(e), c = Npe(e), l = e === "performer" ? Rpe(n.profile) : [], u = Lpe(n, e), d = wP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, R.useRef)(null), m = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, R.useEffect)(() => {
@@ -39414,7 +39414,7 @@ function Hpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, np.createPortal)(/* @__PURE__ */ (0, B.jsx)(mP, {
+ }), i ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(hP, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
@@ -39431,7 +39431,7 @@ function Upe({ kind: e, name: t, helpers: n, people: r, company: i }) {
});
}
function Wpe({ kind: e, entity: t, actions: n }) {
- let r = bP(t), i = (e, t) => (r) => {
+ let r = xP(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, B.jsx)("a", {
href: he("agency", r.name),
@@ -39447,23 +39447,23 @@ function Wpe({ kind: e, entity: t, actions: n }) {
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "film" }), /* @__PURE__ */ (0, B.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: "film" }), /* @__PURE__ */ (0, B.jsx)("span", { children: o })]
}),
a ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]
}) : null,
e ? /* @__PURE__ */ (0, B.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, B.jsx)(hP, { name: "id-card" }),
+ /* @__PURE__ */ (0, B.jsx)(gP, { name: "id-card" }),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, B.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, B.jsx)(yP, {
+ e.rest > 0 ? /* @__PURE__ */ (0, B.jsx)(bP, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
@@ -39511,7 +39511,7 @@ function Gpe({ label: e, names: t }) {
})] });
}
function Kpe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("dt", { children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: e }), t] }), /* @__PURE__ */ (0, B.jsx)("dd", {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("dt", { children: [/* @__PURE__ */ (0, B.jsx)(gP, { name: e }), t] }), /* @__PURE__ */ (0, B.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
@@ -39522,7 +39522,7 @@ function qpe({ tags: e }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, B.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, B.jsx)(yP, {
+ }, e)), n ? /* @__PURE__ */ (0, B.jsx)(bP, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -39537,10 +39537,10 @@ function qpe({ tags: e }) {
})
}) : null] });
}
-function wP({ mark: e }) {
+function TP({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, B.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, B.jsx)(hP, { name: e.brand })
+ children: /* @__PURE__ */ (0, B.jsx)(gP, { name: e.brand })
});
let t = L("globe") + ("site" in e ? `<img src="${ge(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, B.jsx)("span", {
@@ -39557,19 +39557,19 @@ function Jpe({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, B.jsx)(wP, { mark: e.mark })
+ children: /* @__PURE__ */ (0, B.jsx)(TP, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, B.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, B.jsx)(wP, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, B.jsx)(TP, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, B.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, B.jsx)(wP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(TP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -39580,7 +39580,7 @@ function Jpe({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, B.jsx)(wP, { mark: e.mark }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(TP, { mark: e.mark }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-link-label": "",
children: e.text
})]
@@ -39605,14 +39605,14 @@ function Ype({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-entry-marks": "",
- children: [CP(e).map((e, t) => /* @__PURE__ */ (0, B.jsxs)("a", {
+ children: [wP(e).map((e, t) => /* @__PURE__ */ (0, B.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, B.jsx)(hP, { name: e.mark }) : /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, B.jsx)(gP, { name: e.mark }) : /* @__PURE__ */ (0, B.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, B.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, B.jsx)("span", {
@@ -39632,10 +39632,10 @@ function Ype({ entity: e, actions: t, helpers: n }) {
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
function Xpe(e) {
- let { kind: t, name: n } = e, r = SS(hN(t, n)), i = !!r.data?.error, { actions: a } = e;
+ let { kind: t, name: n } = e, r = TS(bN(t, n)), i = !!r.data?.error, { actions: a } = e;
return (0, R.useLayoutEffect)(() => {
i && a.missing();
- }, [a, i]), r.isError ? /* @__PURE__ */ (0, B.jsx)(jA, {
+ }, [a, i]), r.isError ? /* @__PURE__ */ (0, B.jsx)(PA, {
message: U(r.error),
onRetry: () => {
r.refetch();
@@ -39645,7 +39645,7 @@ function Xpe(e) {
entity: r.data
});
}
-function TP(e) {
+function EP(e) {
let [t, n] = (0, R.useState)({
key: e,
n: 1
@@ -39662,9 +39662,9 @@ function Qpe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
function $pe(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 = ES(gN(t, n, 0, "")).data?.pages[0], m = f && !f.error ? f : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || _N(m).length > 0, _ = a.media === "photos" && g ? a : cN, [v, y] = (0, R.useState)("people"), b = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [x, S] = (0, R.useState)(b);
+ 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(xN(t, n, 0, "")).data?.pages[0], m = f && !f.error ? f : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || SN(m).length > 0, _ = a.media === "photos" && g ? a : pN, [v, y] = (0, R.useState)("people"), b = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [x, S] = (0, R.useState)(b);
x !== b && (S(b), y("videos"));
- let C = l && v === "people" && u.length ? "people" : _.media, [w, T] = (0, R.useState)(0), E = mN(e), D = SS(E), O = TP(JSON.stringify([E.queryKey, w])), [k] = (0, R.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));
+ let C = l && v === "people" && u.length ? "people" : _.media, [w, T] = (0, R.useState)(0), E = yN(e), D = TS(E), O = EP(JSON.stringify([E.queryKey, w])), [k] = (0, R.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));
(0, R.useLayoutEffect)(() => {
s.javContext(k);
}, [s, k]);
@@ -39674,26 +39674,26 @@ function $pe(e) {
}, [e.layout, k]), j = {
jav: e.jav,
seed: e.seed
- }, M = (0, R.useCallback)((e, r) => pN(t, n, i, j, e, r), [O]), [N, ee] = (0, R.useState)({}), te = _.set, P = N[te] || "", F = ES({
- ...gN(t, n, te, P),
+ }, M = (0, R.useCallback)((e, r) => vN(t, n, i, j, e, r), [O]), [N, ee] = (0, R.useState)({}), te = _.set, P = N[te] || "", F = kS({
+ ...xN(t, n, te, P),
enabled: C === "photos"
- }), ne = F.data?.pages[0], re = TP(JSON.stringify(uN(t, n, te, P))), ie = (0, R.useMemo)(() => {
+ }), ne = F.data?.pages[0], re = EP(JSON.stringify(hN(t, n, te, P))), ie = (0, R.useMemo)(() => {
let e = F.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: re,
- codeSets: t.id ? [] : _N(t),
+ codeSets: t.id ? [] : SN(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
- }, [F.data, re]), ae = F.refetch, oe = F.fetchNextPage, se = SS({
- ...oN(d, o.feedRowHtml),
+ }, [F.data, re]), ae = F.refetch, oe = F.fetchNextPage, se = TS({
+ ...dN(d, o.feedRowHtml),
enabled: !!d
}), ce = (0, R.useRef)(e.feedRevision);
(0, R.useEffect)(() => {
- ce.current !== e.feedRevision && (ce.current = e.feedRevision, p.invalidateQueries({ queryKey: aN(d) }));
+ ce.current !== e.feedRevision && (ce.current = e.feedRevision, p.invalidateQueries({ queryKey: uN(d) }));
}, [d, e.feedRevision]);
let le = !!D.data;
(0, R.useEffect)(() => {
@@ -39710,12 +39710,12 @@ function $pe(e) {
ue.current = !1;
}, []);
let de = (0, R.useCallback)(async () => {
- await p.invalidateQueries({ queryKey: lN(t, n) }), await p.invalidateQueries({ queryKey: [
+ await p.invalidateQueries({ queryKey: mN(t, n) }), await p.invalidateQueries({ queryKey: [
"entity-items",
t,
n
] });
- }, [t, n]), fe = TS({
+ }, [t, n]), fe = OS({
mutationFn: (e) => pe("/api/entity-alias", {
method: "POST",
body: JSON.stringify({
@@ -39725,14 +39725,14 @@ function $pe(e) {
})
}),
onSuccess: () => de()
- }), I = TS({ mutationFn: ({ from: e, to: n }) => pe("/api/entity-name", {
+ }), I = OS({ mutationFn: ({ from: e, to: n }) => pe("/api/entity-name", {
method: "POST",
body: JSON.stringify({
kind: t,
name: e,
canonical: n
})
- }) }), me = TS({
+ }) }), me = OS({
mutationFn: (e) => pe("/api/feeds/source", {
method: "POST",
body: JSON.stringify({
@@ -39741,7 +39741,7 @@ function $pe(e) {
enabled: e
})
}),
- onSuccess: (e, r) => p.setQueryData(lN(t, n), (e) => e && {
+ onSuccess: (e, r) => p.setQueryData(mN(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -39789,10 +39789,10 @@ function $pe(e) {
let e = await pe("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- ue.current && await p.invalidateQueries({ queryKey: aN(d) });
+ ue.current && await p.invalidateQueries({ queryKey: uN(d) });
})();
},
- feedAction: sN,
+ feedAction: fN,
avatarPicked: () => {
s.avatarChanged(), de().then(() => {
ue.current && T((e) => e + 1);
@@ -39823,19 +39823,19 @@ function $pe(e) {
e === C && !_.set || (y(e === "people" ? "people" : "videos"), s.route(i, e === "photos" ? {
media: "photos",
set: 0
- } : cN));
+ } : pN));
},
setState: (e) => s.route({
...i,
state: e
- }, cN),
+ }, pN),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (C !== "photos") {
- let r = s.reshuffleVideos(), a = mN({
+ let r = s.reshuffleVideos(), a = yN({
kind: t,
name: n,
filters: {
@@ -39849,7 +39849,7 @@ function $pe(e) {
await p.fetchQuery(a).catch(() => null);
return;
}
- let r = Zpe(), a = await p.fetchInfiniteQuery(gN(t, n, te, r)).catch(() => null);
+ let r = Zpe(), a = await p.fetchInfiniteQuery(xN(t, n, te, r)).catch(() => null);
!ue.current || !a?.pages[0] || a.pages[0].error || ee((e) => ({
...e,
[te]: r
@@ -39882,7 +39882,7 @@ function $pe(e) {
k: e.k,
label: ct(e.k),
n: e.n,
- selected: Tfe(i.tag, e.k)
+ selected: xfe(i.tag, e.k)
})), be = h || u.length ? {
label: u.length ? "页面视图" : "媒体类型",
people: u.length ? {
@@ -39908,9 +39908,9 @@ function $pe(e) {
if (C === "people") Ce = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (C === "videos") {
we = !D.data;
- let e = dN(i.tag).map((e) => ct(e));
+ let e = gN(i.tag).map((e) => ct(e));
Ce = `视频 · ${(D.data?.total || 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else ne && !ne.error ? Ce = xe ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : Qpe(ne, _N(ne).length) : we = F.isPending;
+ } else ne && !ne.error ? Ce = xe ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : Qpe(ne, SN(ne).length) : we = F.isPending;
let Te = (0, R.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -39937,7 +39937,7 @@ function $pe(e) {
actions: he,
helpers: ge
}, w),
- (0, np.createPortal)(/* @__PURE__ */ (0, B.jsx)(tle, {
+ (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)($ce, {
kind: t,
name: n,
view: C,
@@ -39953,12 +39953,12 @@ function $pe(e) {
actions: _e,
helpers: ve
}), c.filter),
- (0, np.createPortal)(C === "videos" && D.isError ? /* @__PURE__ */ (0, B.jsx)(jA, {
+ (0, rp.createPortal)(C === "videos" && D.isError ? /* @__PURE__ */ (0, B.jsx)(PA, {
message: U(D.error),
onRetry: () => {
D.refetch();
}
- }) : /* @__PURE__ */ (0, B.jsx)(epe, {
+ }) : /* @__PURE__ */ (0, B.jsx)(Xfe, {
kind: t,
name: n,
view: C,
@@ -39984,7 +39984,7 @@ function $pe(e) {
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function EP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function DP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -40011,25 +40011,25 @@ function EP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var eme = xA("play"), tme = xA("file-stack"), nme = OE({
+var eme = wA("play"), tme = wA("file-stack"), nme = AE({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), DP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", OP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", kP = "font-mono text-caption-1-regular leading-5 text-text-secondary", AP = () => {
+}), OP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", kP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", AP = "font-mono text-caption-1-regular leading-5 text-text-secondary", jP = () => {
p.invalidateQueries({
- queryKey: GA,
+ queryKey: JA,
exact: !0
}), p.invalidateQueries({
- queryKey: mM,
+ queryKey: yM,
exact: !0
});
};
function rme(e) {
return e.identical ? /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${OP} text-(--keep)`,
+ className: `${kP} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${OP} text-text-secondary`,
+ className: `${kP} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
@@ -40067,55 +40067,55 @@ function ime({ file: e, openItem: t }) {
}), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex flex-none gap-1",
children: [e.is_largest ? /* @__PURE__ */ (0, B.jsx)("i", {
- className: `${DP} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${OP} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, e.is_longest ? /* @__PURE__ */ (0, B.jsx)("i", {
- className: `${DP} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${OP} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
- className: `${kP} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, B.jsx)(Wk, { mark: Oe[e.location] || "database" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ className: `${AP} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] || "database" }), /* @__PURE__ */ (0, B.jsx)("span", {
className: "whitespace-nowrap",
children: I[e.location] || e.location || e.drive
})]
}),
/* @__PURE__ */ (0, B.jsx)("span", {
- className: kP,
+ className: AP,
children: ye(e.size || 0)
}),
/* @__PURE__ */ (0, B.jsx)("span", {
- className: kP,
+ className: AP,
children: ve(e.duration)
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-middle-truncate": !0,
title: e.path ?? "",
- className: `${kP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${AP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: e.path ?? ""
})
]
});
}
function ame({ openItem: e, toast: t, failure: n }) {
- let r = SS({
- queryKey: GA,
- queryFn: ({ signal: e }) => qA(e)
- }), i = SS({
+ let r = TS({
+ queryKey: JA,
+ queryFn: ({ signal: e }) => XA(e)
+ }), i = TS({
queryKey: u,
queryFn: ({ signal: e }) => f(e)
- }), [a, o] = (0, R.useState)(""), s = TS({
- mutationFn: (e) => XA(e, "dispose"),
+ }), [a, o] = (0, R.useState)(""), s = OS({
+ mutationFn: (e) => $A(e, "dispose"),
onSuccess: (e, r) => {
- AP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
+ jP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
- await XA(r, "restore");
+ await $A(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
- AP();
+ jP();
}
} });
},
@@ -40129,12 +40129,12 @@ function ame({ openItem: e, toast: t, failure: n }) {
children: r.error ? U(r.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let l = c.groups ?? [], d = Ile(i.data), p = ({ groups: e, keep: t, key: n }) => {
+ let l = c.groups ?? [], d = Ple(i.data), p = ({ groups: e, keep: t, key: n }) => {
if (s.isPending) return;
- let r = Vle(e, t);
+ let r = zle(e, t);
r.length && je({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${JA[t] ?? JA.largest}。文件共 ${ye(Hle(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${ZA[t] ?? ZA.largest}。文件共 ${ye(Ble(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (o(n), s.mutateAsync(r))
});
@@ -40142,15 +40142,15 @@ function ame({ openItem: e, toast: t, failure: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(EP, {
+ /* @__PURE__ */ (0, B.jsx)(DP, {
label: "重复内容",
figure: `${Number(c.total || 0).toLocaleString()} 组`,
detail: `${c.files} 个文件 · 可回收 ${ye(c.reclaimable)}`
}),
- l.length ? /* @__PURE__ */ (0, B.jsxs)(qce, {
+ l.length ? /* @__PURE__ */ (0, B.jsxs)(Gce, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, B.jsx)(dA, {
+ /* @__PURE__ */ (0, B.jsx)(mA, {
busy: a === "all:largest",
onPress: () => p({
groups: l,
@@ -40159,7 +40159,7 @@ function ame({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, B.jsx)(dA, {
+ /* @__PURE__ */ (0, B.jsx)(mA, {
busy: a === "all:longest",
onPress: () => p({
groups: l,
@@ -40168,7 +40168,7 @@ function ame({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最长"
}),
- Ble(l, d).map((e) => /* @__PURE__ */ (0, B.jsx)(dA, {
+ Rle(l, d).map((e) => /* @__PURE__ */ (0, B.jsx)(mA, {
busy: a === `all:${e}`,
onPress: () => p({
groups: l,
@@ -40205,7 +40205,7 @@ function ame({ openItem: e, toast: t, failure: n }) {
}),
rme(t),
t.cross_drive ? /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${OP} text-text-secondary`,
+ className: `${kP} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, B.jsxs)("span", {
@@ -40233,7 +40233,7 @@ function ame({ openItem: e, toast: t, failure: n }) {
}),
children: "留最长"
}),
- YA(t.files, d).map((e) => /* @__PURE__ */ (0, B.jsx)(J, {
+ QA(t.files, d).map((e) => /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
...m(i(e)),
@@ -40263,7 +40263,7 @@ function ame({ openItem: e, toast: t, failure: n }) {
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
icon: tme,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
@@ -40273,17 +40273,17 @@ function ame({ openItem: e, toast: t, failure: n }) {
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
-var jP = ["diagnostics"], MP = (e) => W("/api/diagnostics", e);
+var MP = ["diagnostics"], NP = (e) => W("/api/diagnostics", e);
async function ome(e) {
await p.fetchQuery({
- queryKey: jP,
- queryFn: () => MP(e),
+ queryKey: MP,
+ queryFn: () => NP(e),
staleTime: 1e4
});
}
//#endregion
//#region src/react/diagnostics/diagnostics-page.tsx
-var NP = {
+var PP = {
ok: "正常",
warning: "需检查",
failed: "需处理",
@@ -40300,7 +40300,7 @@ var NP = {
"version"
]],
["后台任务", ["tasks"]]
-], PP = (e) => new Date(e).toLocaleString();
+], FP = (e) => new Date(e).toLocaleString();
function cme({ name: e, check: t, navigate: n, configure: r }) {
let i = e === "security" ? "网络与访问" : e === "configured" ? "通用" : "媒体";
return /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -40313,7 +40313,7 @@ function cme({ name: e, check: t, navigate: n, configure: r }) {
children: t.label
}), /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: NP[t.status] ?? "未取得"
+ children: PP[t.status] ?? "未取得"
})]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
@@ -40334,13 +40334,13 @@ function cme({ name: e, check: t, navigate: n, configure: r }) {
});
}
function lme({ group: e, openItem: t, receipt: n }) {
- let r = PE(), i = AM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
- return /* @__PURE__ */ (0, B.jsx)(Uk, {
+ let r = IE(), i = FM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
+ return /* @__PURE__ */ (0, B.jsx)(Gk, {
summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count} 项`}`,
children: e.count === null ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "neutral",
children: "清单未取得,请重新检查。"
- }) : e.items.length ? /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
+ }) : e.items.length ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
children: [e.truncated ? /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -40375,8 +40375,8 @@ function lme({ group: e, openItem: t, receipt: n }) {
}) }, e.id))
})
})
- ] }) : /* @__PURE__ */ (0, B.jsx)(kE, {
- icon: nae,
+ ] }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ icon: tae,
title: "清单为空",
shell: "plain",
children: "没有需要处理的作品。"
@@ -40384,11 +40384,11 @@ function lme({ group: e, openItem: t, receipt: n }) {
});
}
function ume(e) {
- let t = SS({
- queryKey: jP,
- queryFn: ({ signal: e }) => MP(e),
+ let t = TS({
+ queryKey: MP,
+ queryFn: ({ signal: e }) => NP(e),
staleTime: 1e4
- }), n = PE(), [r, i] = (0, R.useState)(""), a = () => void n.run("refresh", async () => {
+ }), n = IE(), [r, i] = (0, R.useState)(""), a = () => void n.run("refresh", async () => {
let e = await t.refetch();
if (e.error) throw e.error;
return e.data;
@@ -40409,17 +40409,17 @@ function ume(e) {
tone: "error",
children: r
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Nk, {
+ /* @__PURE__ */ (0, B.jsx)(Fk, {
title: "库健康",
- children: /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, B.jsxs)("p", {
+ children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, B.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ["处理记录 · ", PP(o.library.issue_at)]
+ children: ["处理记录 · ", FP(o.library.issue_at)]
}) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(lme, {
group: n,
...e
}, t))] })
}),
- sme.map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(Nk, {
+ sme.map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(Fk, {
title: t,
children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, B.jsx)(cme, {
name: t,
@@ -40427,9 +40427,9 @@ function ume(e) {
...e
}, t) : null)
}, t)),
- /* @__PURE__ */ (0, B.jsx)(Nk, {
+ /* @__PURE__ */ (0, B.jsx)(Fk, {
title: "来源会话",
- children: /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [o.sources.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
+ children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [o.sources.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
/* @__PURE__ */ (0, B.jsxs)("h3", {
@@ -40437,19 +40437,19 @@ function ume(e) {
children: [
e.label,
" · ",
- NP[e.status]
+ PP[e.status]
]
}),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-regular text-text-primary",
children: e.reason
}),
- /* @__PURE__ */ (0, B.jsxs)(Vk, { children: [/* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, {
term: "上次解析成功",
- children: e.last_success_at ? PP(e.last_success_at) : "未取得"
- }), /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: e.last_success_at ? FP(e.last_success_at) : "未取得"
+ }), /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "冷却截止",
- children: e.cooldown_until ? PP(e.cooldown_until) : "未在冷却"
+ children: e.cooldown_until ? FP(e.cooldown_until) : "未在冷却"
})] })
]
}, e.source)), /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(J, {
@@ -40478,20 +40478,20 @@ function ume(e) {
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
function dme({ host: e, revision: t, helpers: n, actions: r }) {
- let i = SS(oN(null, n.feedRowHtml)), a = (0, R.useRef)(t);
+ let i = TS(dN(null, n.feedRowHtml)), a = (0, R.useRef)(t);
return (0, R.useEffect)(() => {
- a.current !== t && (a.current = t, p.invalidateQueries({ queryKey: aN(null) }));
- }, [t]), (0, np.createPortal)(/* @__PURE__ */ (0, B.jsx)(mP, {
+ a.current !== t && (a.current = t, p.invalidateQueries({ queryKey: uN(null) }));
+ }, [t]), (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(hP, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: sN,
+ act: fN,
settled: r.settled
}), e);
}
//#endregion
//#region src/follow-sort.ts
-var FP = [
+var IP = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -40499,7 +40499,7 @@ var FP = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], fme = "checked", IP = {
+], fme = "checked", LP = {
checked: "desc",
added: "desc",
name: "asc",
@@ -40507,32 +40507,32 @@ var FP = [
source: "asc",
provider: "asc",
status: "asc"
-}, pme = (e) => FP.some(([t]) => t === e);
-function LP(e, t) {
+}, pme = (e) => IP.some(([t]) => t === e);
+function RP(e, t) {
let n = pme(e) ? e : fme;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : IP[n]
+ dir: t === "asc" || t === "desc" ? t : LP[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var RP = "/api/follow", zP = "/api/follow/credentials", BP = "/api/follow/check", VP = "/api/follow/source", HP = "/api/follow/resolve", mme = "/api/follow/suggest", UP = "/api/follow/author-alias", hme = "/api/follow/credential", WP = "/api/follow/status", gme = "/api/feeds", GP = "/api/feeds/source", _me = "/api/feeds/check", vme = "/api/feeds/lookup", KP = ["follow-manage"], qP = ["follow-manage", "credentials"], yme = ["follow-manage", "check"], bme = ["follow-manage", "resolve"], JP = ["follow-manage", "feeds"], xme = (e) => [
+var zP = "/api/follow", BP = "/api/follow/credentials", VP = "/api/follow/check", HP = "/api/follow/source", UP = "/api/follow/resolve", mme = "/api/follow/suggest", WP = "/api/follow/author-alias", hme = "/api/follow/credential", GP = "/api/follow/status", gme = "/api/feeds", KP = "/api/feeds/source", _me = "/api/feeds/check", vme = "/api/feeds/lookup", qP = ["follow-manage"], JP = ["follow-manage", "credentials"], yme = ["follow-manage", "check"], bme = ["follow-manage", "resolve"], YP = ["follow-manage", "feeds"], xme = (e) => [
"follow-manage",
"suggest",
e
-], YP = [["default", "默认视图"], ["table", "表格视图"]], XP = [
+], XP = [["default", "默认视图"], ["table", "表格视图"]], ZP = [
10,
20,
50,
100
-], Sme = Object.fromEntries(FP), ZP = {
+], Sme = Object.fromEntries(IP), QP = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Cme = (e) => YP.some(([t]) => t === e), wme = (e) => XP.includes(Number(e)) ? Number(e) : 20, Tme = {
+}, Cme = (e) => XP.some(([t]) => t === e), wme = (e) => ZP.includes(Number(e)) ? Number(e) : 20, Tme = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -40541,24 +40541,24 @@ var RP = "/api/follow", zP = "/api/follow/credentials", BP = "/api/follow/check"
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
}, Eme = (e, t) => `按${Sme[e]}${Tme[e][t === "asc" ? 0 : 1]}排序`;
-function QP(e) {
+function $P(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
function Dme(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var $P = (e) => e.last_status === "error" || e.last_status === "unauthorized", eF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), tF = {
- source: eF,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || eF(e, t),
- status: (e, t) => QP(e) - QP(t) || eF(e, t)
-}, nF = (e) => Date.parse(e || "") || 0, rF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function iF(e, t = []) {
+var eF = (e) => e.last_status === "error" || e.last_status === "unauthorized", tF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), nF = {
+ source: tF,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || tF(e, t),
+ status: (e, t) => $P(e) - $P(t) || tF(e, t)
+}, rF = (e) => Date.parse(e || "") || 0, iF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function aF(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || rF(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || iF(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return rF(i.canonical_name);
+ if (i) return iF(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -40566,18 +40566,18 @@ function iF(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function aF(e) {
+function oF(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function oF(e) {
+function sF(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function sF(e) {
+function cF(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -40586,31 +40586,31 @@ function sF(e) {
return t.map((e) => n.get(e));
}
function Ome(e, t, n, r = []) {
- let i = sF(e), a = n === IP[t] ? 1 : -1, o = (e) => iF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = tF[t];
+ let i = cF(e), a = n === LP[t] ? 1 : -1, o = (e) => aF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = nF[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => nF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => nF(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => rF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => rF(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 kme(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = iF(e, r);
+ let t = aF(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = tF[t];
+ }), a = nF[t];
if (a) {
- let e = n === IP[t] ? 1 : -1;
+ let e = n === LP[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function cF(e, t, n) {
- let r = mj(e, t), i = hj(n, r), a = (i - 1) * t;
+function lF(e, t, n) {
+ let r = _j(e, t), i = vj(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -40623,87 +40623,87 @@ function Ame(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function lF(e, t) {
+function uF(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function uF(e, t, n) {
+function dF(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var dF = (e) => W(`${RP}?summary=1`, e), fF = (e) => W(zP, e), jme = (e) => W(BP, e), Mme = (e) => W(HP, e), Nme = (e, t) => W(`${mme}?q=${encodeURIComponent(e)}`, t), pF = (e) => G(BP, {
+var fF = (e) => W(`${zP}?summary=1`, e), pF = (e) => W(BP, e), jme = (e) => W(VP, e), Mme = (e) => W(UP, e), Nme = (e, t) => W(`${mme}?q=${encodeURIComponent(e)}`, t), mF = (e) => G(VP, {
...e?.length ? { sources: e } : {},
background: !0
-}), Pme = (e) => G(HP, {
+}), Pme = (e) => G(UP, {
lines: e,
background: !0
-}), mF = (e, t) => G(VP, {
+}), hF = (e, t) => G(HP, {
action: "enabled",
id: e,
enabled: t
-}), hF = (e) => G(VP, {
+}), gF = (e) => G(HP, {
action: "remove",
id: e
-}), Fme = (e) => G(VP, {
+}), Fme = (e) => G(HP, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), gF = (e, t) => G(UP, {
+}), _F = (e, t) => G(WP, {
action: "add",
canonical: e,
alias: t
-}), Ime = (e) => G(UP, {
+}), Ime = (e) => G(WP, {
action: "remove",
alias: e
}), Lme = (e, t) => G(hme, {
provider: e,
values: t
-}), Rme = (e, t) => G(WP, {
+}), Rme = (e, t) => G(GP, {
item: e,
to: t
-}), zme = () => W(`${RP}?status=new&limit=1000`);
-async function _F(e) {
+}), zme = () => W(`${zP}?status=new&limit=1000`);
+async function vF(e) {
let t = await W(gme, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var vF = (e, t, n) => G(GP, {
+var yF = (e, t, n) => G(KP, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), yF = (e, t) => G(GP, {
+}, "POST", n), bF = (e, t) => G(KP, {
action: "remove",
id: e
-}, "POST", t), bF = (e, t) => G(_me, t?.length ? { sources: t } : { all: !0 }, "POST", e), Bme = (e, t) => W(`${vme}?q=${encodeURIComponent(e)}`, t), Vme = (e, t, n) => G(GP, {
+}, "POST", t), xF = (e, t) => G(_me, t?.length ? { sources: t } : { all: !0 }, "POST", e), Bme = (e, t) => W(`${vme}?q=${encodeURIComponent(e)}`, t), Vme = (e, t, n) => G(KP, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
async function Hme(e, t = "") {
await Promise.all([
- p.fetchQuery({
- queryKey: KP,
- queryFn: () => dF(e)
- }),
p.fetchQuery({
queryKey: qP,
queryFn: () => fF(e)
}),
- t === "feeds" ? p.fetchQuery({
+ p.fetchQuery({
queryKey: JP,
- queryFn: () => _F(e)
+ queryFn: () => pF(e)
+ }),
+ t === "feeds" ? p.fetchQuery({
+ queryKey: YP,
+ queryFn: () => vF(e)
}) : null
]);
}
-function xF(e, t) {
- p.setQueryData(KP, (n) => n && {
+function SF(e, t) {
+ p.setQueryData(qP, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -40711,15 +40711,15 @@ function xF(e, t) {
} : n)
});
}
-function SF(e) {
+function CF(e) {
let t = new Set(e);
- p.setQueryData(KP, (e) => e && {
+ p.setQueryData(qP, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var CF = () => p.invalidateQueries({
- queryKey: KP,
+var wF = () => p.invalidateQueries({
+ queryKey: qP,
exact: !0
});
function Ume(e) {
@@ -40728,7 +40728,7 @@ function Ume(e) {
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Wme = (e) => (e?.results || []).filter((e) => !e.ok), Gme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", wF = (e) => e.last_checked_at ? gj(e.last_checked_at) : "未检查", Kme = /* @__PURE__ */ new Set([
+var Wme = (e) => (e?.results || []).filter((e) => !e.ok), Gme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", TF = (e) => e.last_checked_at ? yj(e.last_checked_at) : "未检查", Kme = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -40741,12 +40741,12 @@ var Wme = (e) => (e?.results || []).filter((e) => !e.ok), Gme = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), TF = (e) => Kme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", qme = {
+]), EF = (e) => Kme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", qme = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, EF = (e) => !!e.present && !e.missing.length, Jme = [
+}, DF = (e) => !!e.present && !e.missing.length, Jme = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
@@ -40755,36 +40755,36 @@ var Wme = (e) => (e?.results || []).filter((e) => !e.ok), Gme = (e) => (e?.resul
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], DF = {
+], OF = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function OF(e, t) {
+function kF(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-function kF(e, t) {
+function AF(e, t) {
return {
queryKey: [
"follow-feed",
- OF(e, 0),
+ kF(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => W(OF(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => W(kF(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
- placeholderData: DS.keepPreviousData
+ placeholderData: AS.keepPreviousData
};
}
-var AF = ["follow-feed", "credentials"], jF = (e) => W(zP, e).catch(() => ({ providers: [] }));
+var jF = ["follow-feed", "credentials"], MF = (e) => W(BP, e).catch(() => ({ providers: [] }));
async function Xme(e, t) {
- let n = kF(e.view, e.revision);
+ let n = AF(e.view, e.revision);
p.removeQueries({
queryKey: n.queryKey,
exact: !0
}), p.removeQueries({
- queryKey: AF,
+ queryKey: jF,
exact: !0
}), await Promise.all([p.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -40795,11 +40795,11 @@ async function Xme(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), p.fetchQuery({
- queryKey: AF,
- queryFn: () => jF(t)
+ queryKey: jF,
+ queryFn: () => MF(t)
})]);
}
-function MF(e) {
+function NF(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -40808,10 +40808,10 @@ function MF(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function NF(e, t, n) {
+function PF(e, t, n) {
return [...e].sort((e, r) => Ee(n, t(e)) - Ee(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function PF(e) {
+function FF(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -40826,7 +40826,7 @@ function Zme(e) {
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let r = t.pages[t.pages.length - 1];
for (let n of t.pages) for (let t of n.groups || []) {
- let n = PF(t).find((t) => t.id === e);
+ let n = FF(t).find((t) => t.id === e);
if (n) return {
item: n,
group: t,
@@ -40847,7 +40847,7 @@ function Qme(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return PF(t).some((t) => t.id === e.id) ? {
+ return FF(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -40861,35 +40861,35 @@ function $me(e, t) {
p.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && HF(n, null, e, t));
-}
-function FF(e) {
- return PF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+ }, (n) => n && UF(n, null, e, t));
}
function IF(e) {
+ return FF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+}
+function LF(e) {
let t = /* @__PURE__ */ new Set(), n = e.media_items || [];
return n.length ? n.forEach((e) => {
(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);
}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;
}
-function LF(e) {
+function RF(e) {
let t = /* @__PURE__ */ new Set();
- return PF(e).forEach((e) => IF(e).forEach((e) => t.add(e))), t;
+ return FF(e).forEach((e) => LF(e).forEach((e) => t.add(e))), t;
}
-function RF(e, t) {
+function zF(e, t) {
let n = t === "images" ? "image" : "video";
- return FF(e).find((e) => IF(e).has(n)) || e.primary;
+ return IF(e).find((e) => LF(e).has(n)) || e.primary;
}
-function zF(e) {
- return FF(e).filter((e) => e.playable && e.media_kind === "video");
+function BF(e) {
+ return IF(e).filter((e) => e.playable && e.media_kind === "video");
}
-var BF = {
+var VF = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
function ehe({ 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} ${BF[s] || BF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${VF[s] || VF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));
return {
isMix: !!c,
@@ -40904,8 +40904,8 @@ function the(e) {
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function VF(e, t, n) {
- return e === t ? DF[e] ? {
+function HF(e, t, n) {
+ return e === t ? OF[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -40914,12 +40914,12 @@ function VF(e, t, n) {
};
}
function nhe(e, t, n, r) {
- let i = VF(e, n, r);
+ let i = HF(e, n, r);
if (!i) return "";
- let a = DF[i.sort];
+ let a = OF[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function HF(e, t, n, r) {
+function UF(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -41020,69 +41020,69 @@ function che(e) {
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var UF = (e) => typeof e == "string" ? e : "", WF = (e) => e.aliases;
-function GF(e, t = "") {
- let n = TF(e);
+var WF = (e) => typeof e == "string" ? e : "", GF = (e) => e.aliases;
+function KF(e, t = "") {
+ let n = EF(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${ge(t)}"${t ? ` title="${ge(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-var KF = (e, t) => iF(e, WF(t));
-function qF(e, t) {
- let { src: n, fallback: r } = oF(e), i = aF(t);
+var qF = (e, t) => aF(e, GF(t));
+function JF(e, t) {
+ let { src: n, fallback: r } = sF(e), i = oF(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${ge(i)}</span>`;
let a = r ? ` data-fallbacks="${ge(r)}"` : "";
return `<img class="favatar" src="${ge(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${ge(i)}" data-drop-class="favatar none">`;
}
-function JF(e, t, n) {
- let r = WF(n), i = e.credit, a = i?.poster;
+function YF(e, t, n) {
+ let r = GF(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = iF(t, r);
+ let n = aF(t, r);
return {
- author: n || UF(e.author) || UF(e.source_label) || "创作者未取得",
- avatar: qF(t, n),
+ author: n || WF(e.author) || WF(e.source_label) || "创作者未取得",
+ avatar: JF(t, n),
credited: ""
};
}
- let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && iF(c, r) || a;
+ let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && aF(c, r) || a;
return {
author: l,
- avatar: qF(c, l),
+ avatar: JF(c, l),
credited: i.credited || ""
};
}
-function YF(e, t = e.primary) {
+function XF(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = UF(e.primary.version);
+ let i = WF(e.primary.version);
i && n.push(r("version", ge(i)));
- let a = UF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = WF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function XF(e, t = e.primary) {
+function ZF(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => GF(e, t) || `<span>${ge(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => KF(e, t) || `<span>${ge(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${ge([...n.values()].join("、"))}">另见 ${r}</span>`;
}
-function ZF(e, t) {
- let n = UF(e.media_error);
+function QF(e, t) {
+ let n = WF(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 ? gj(e.published_at) : "时间未取得", $F = /* @__PURE__ */ new Set(), eI = [], tI = null;
-function nI() {
- if (tI = null, !eI.length) return;
- let e = eI.splice(0, 200);
+var $F = (e) => e.published_at ? yj(e.published_at) : "时间未取得", eI = /* @__PURE__ */ new Set(), tI = [], nI = null;
+function rI() {
+ if (nI = null, !tI.length) return;
+ let e = tI.splice(0, 200);
pe("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), eI.length && (tI = setTimeout(nI, 800));
+ }).catch(() => {}), tI.length && (nI = setTimeout(rI, 800));
}
function lhe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- $F.has(i) || ($F.add(i), eI.push(t === null ? {
+ eI.has(i) || (eI.add(i), tI.push(t === null ? {
item: e,
width: n,
height: r
@@ -41091,7 +41091,7 @@ function lhe(e, t, n, r) {
width: n,
height: r,
media: t
- }), tI ||= setTimeout(nI, 800));
+ }), nI ||= setTimeout(rI, 800));
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
@@ -41116,7 +41116,7 @@ function fhe({ src: e, width: t, height: n, onLearn: r }) {
});
}
function phe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = RF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = f && f.thumb_url === p ? f : null, h = !m || p === u.thumb_url, g = d ? [m, h ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, _ = d && !g && p ? (e, t) => lhe(u.id, m ? m.index : null, e, t) : void 0, v = r === "videos" ? zF(t) : [], y = (u.media_items || []).length > 1 ? u.id : v[0]?.id || u.id, b = ehe({
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = zF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = f && f.thumb_url === p ? f : null, h = !m || p === u.thumb_url, g = d ? [m, h ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, _ = d && !g && p ? (e, t) => lhe(u.id, m ? m.index : null, e, t) : void 0, v = r === "videos" ? BF(t) : [], y = (u.media_items || []).length > 1 ? u.id : v[0]?.id || u.id, b = ehe({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -41124,7 +41124,7 @@ function phe(e) {
limit: 9
}), x = (0, R.useRef)(b.faces);
x.current = b.faces;
- let S = LA({
+ let S = BA({
load: async () => x.current,
canFlip: () => x.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -41132,7 +41132,7 @@ function phe(e) {
C.current = S.onPointerLeave;
let w = (0, R.useCallback)((e) => {
e && (e._stopHover = () => C.current());
- }, []), T = JF(u, n, i), E = QF(u), D = (u.tags || []).slice(0, 3), O = ZF(u, i), k = XF(t, u), A = u.status === "saved", j = (e) => {
+ }, []), T = YF(u, n, i), E = $F(u), D = (u.tags || []).slice(0, 3), O = QF(u, i), k = ZF(t, u), A = u.status === "saved", j = (e) => {
if (!e.target.closest("[data-media-tag]")) {
if (o || e.shiftKey || e.ctrlKey || e.metaKey) {
e.preventDefault(), l.toggleSelection(u.id, e.shiftKey);
@@ -41173,7 +41173,7 @@ function phe(e) {
onLearn: _
}, p) : /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: GF(u.resource_provider || u.provider) }
+ dangerouslySetInnerHTML: { __html: KF(u.resource_provider || u.provider) }
}),
b.faces.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
"data-mix-faces": "",
@@ -41192,7 +41192,7 @@ function phe(e) {
"data-media-badge": "",
title: u.provider_label,
"aria-label": `来源:${u.provider_label || ""}`,
- dangerouslySetInnerHTML: { __html: GF(u.provider) }
+ dangerouslySetInnerHTML: { __html: KF(u.provider) }
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
@@ -41283,7 +41283,7 @@ function phe(e) {
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: YF(t, u) + ge(u.title) }
+ dangerouslySetInnerHTML: { __html: XF(t, u) + ge(u.title) }
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-follow-byline": "",
@@ -41330,10 +41330,10 @@ function phe(e) {
]
});
}
-var mhe = (0, R.memo)(phe), rI = () => /* @__PURE__ */ (0, B.jsx)("span", {
+var mhe = (0, R.memo)(phe), iI = () => /* @__PURE__ */ (0, B.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), hhe = xA("settings"), ghe = xA("chevron-down"), _he = xA("history"), vhe = [[
+}), hhe = wA("settings"), ghe = wA("chevron-down"), _he = wA("history"), vhe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -41348,13 +41348,13 @@ function yhe(e, t, n) {
a.forEach((e) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = NF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = NF(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = PF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = PF(o.works || [], (e) => e[0], n).slice(0, 24);
t.work && !p.some((e) => e[0] === t.work) && p.push([
t.work,
t.work,
0
]);
- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = NF([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = PF([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -41362,7 +41362,7 @@ function yhe(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => LF(e).forEach((e) => {
+ r.forEach((e) => RF(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -41377,7 +41377,7 @@ function yhe(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => LF(e).has(_)),
+ visible: r.filter((e) => RF(e).has(_)),
author: d.has(t.author) && s.has(t.author) ? t.author : "",
provider: l.has(t.provider) ? t.provider : "",
workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),
@@ -41391,14 +41391,14 @@ function yhe(e, t, n) {
]);
}
function bhe(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = kF(t, r), o = ES(a), s = SS({
- queryKey: AF,
- queryFn: ({ signal: e }) => jF(e)
- }), c = (0, R.useMemo)(() => MF(o.data), [o.data]), l = (0, R.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, R.useMemo)(() => ({
+ let { view: t, seed: n, revision: r, actions: i } = e, a = AF(t, r), o = kS(a), s = TS({
+ queryKey: jF,
+ queryFn: ({ signal: e }) => MF(e)
+ }), c = (0, R.useMemo)(() => NF(o.data), [o.data]), l = (0, R.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, R.useMemo)(() => ({
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = yhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, R.useMemo)(() => che(d.visible.flatMap(PF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
+ }), [c, l]), d = yhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, R.useMemo)(() => che(d.visible.flatMap(FF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
(0, R.useEffect)(() => {
p && i.loaded(m);
}, [
@@ -41407,7 +41407,7 @@ function bhe(e) {
i
]);
let h = xhe(e, !!c);
- if (!c) return o.isError ? /* @__PURE__ */ (0, B.jsx)(jA, {
+ if (!c) return o.isError ? /* @__PURE__ */ (0, B.jsx)(PA, {
message: Te(o.error),
onRetry: () => void o.refetch()
}) : null;
@@ -41419,7 +41419,7 @@ function bhe(e) {
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, KF(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, qF(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
@@ -41502,7 +41502,7 @@ function bhe(e) {
"data-follow-pagination": "",
children: [c.has_more ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, B.jsxs)(HA, {
+ children: /* @__PURE__ */ (0, B.jsxs)(GA, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
@@ -41546,7 +41546,7 @@ function xhe(e, t) {
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => W(BP, e),
+ read: (e) => W(VP, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -41571,7 +41571,7 @@ function xhe(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await G(BP, e ? {
+ let n = await G(VP, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -41606,10 +41606,10 @@ function She({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
onClick: () => i(r),
children: [/* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: qF(a, KF(a, n)) }
+ dangerouslySetInnerHTML: { __html: JF(a, qF(a, n)) }
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-name": "",
- children: KF(a, n)
+ children: qF(a, n)
})]
}, r);
})
@@ -41637,12 +41637,12 @@ function Che({ rows: e, pressed: t, props: n, onPick: r }) {
}) : null;
}
function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = fA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = fA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+ let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = hA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = hA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, R.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, B.jsx)(lA, {
+ return /* @__PURE__ */ (0, B.jsx)(fA, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -41694,7 +41694,7 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: L(i) }
}, e);
})
- }), /* @__PURE__ */ (0, B.jsx)(rI, {})] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
+ }), /* @__PURE__ */ (0, B.jsx)(iI, {})] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -41714,7 +41714,7 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, B.jsx)(rI, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, B.jsx)(iI, {}) : null]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -41727,10 +41727,10 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: GF(t) }
+ dangerouslySetInnerHTML: { __html: KF(t) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, B.jsx)(rI, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, B.jsxs)(uA, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, B.jsx)(iI, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, B.jsxs)(pA, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${ahe(e.groups, n)}`,
@@ -41751,8 +41751,8 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(TA, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(wA, {
+ /* @__PURE__ */ (0, B.jsx)(OA, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(DA, {
label: "图片布局",
value: i.photoLayout,
options: vhe,
@@ -41773,7 +41773,7 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})]
})] }) : null,
Yme.map(([e, n]) => {
- let r = t.sort === e, i = xA(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ let r = t.sort === e, i = wA(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-entity-sort": e,
@@ -41782,7 +41782,7 @@ function whe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-pressed": r,
"aria-label": nhe(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = VF(e, t.sort, t.dir);
+ let n = HF(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, B.jsx)(i, { className: "size-3.5" }) : null]
@@ -41827,7 +41827,7 @@ function Ehe({ count: e, onManage: t }) {
});
}
function Dhe({ pending: e, facets: t, data: n, context: r, props: i }) {
- let { view: a, helpers: o } = i, s = a.media === "images", c = AA(e, () => o.listSkeletonHtml(a.media));
+ let { view: a, helpers: o } = i, s = a.media === "images", c = NA(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
@@ -41853,10 +41853,10 @@ function Ohe({ facets: e, data: t, context: n, props: r, images: i }) {
authorSources: c,
media: a.media,
context: n,
- selected: r.selected.has(iI(t, a)),
+ selected: r.selected.has(aI(t, a)),
selectMode: r.selectMode,
- busy: s.busy.get(iI(t, a)) || "",
- failure: s.failures.get(iI(t, a)) || "",
+ busy: s.busy.get(aI(t, a)) || "",
+ failure: s.failures.get(aI(t, a)) || "",
actions: o,
onStatus: s.status,
onSave: s.save
@@ -41868,8 +41868,8 @@ function Ohe({ facets: e, data: t, context: n, props: r, images: i }) {
children: l
});
}
-function iI(e, t) {
- return RF(e, t.media).id;
+function aI(e, t) {
+ return zF(e, t.media).id;
}
function khe({ data: e }) {
let t = (e.groups || []).length ? Pe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? Pe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Pe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
@@ -41885,30 +41885,30 @@ var Ahe = {
ignored: "已忽略"
};
function jhe(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = kF(t, n).queryKey, l = (e, t, n) => n((n) => {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = AF(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- p.setQueryData(c, (r) => r && HF(r, t, e, n));
+ p.setQueryData(c, (r) => r && UF(r, t, e, n));
}, d = () => void p.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = MF(p.getQueryData(c));
+ let t = NF(p.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
...n.duplicates
]) if (t.id === e) return t.status;
return "new";
- }, m = TS({
- mutationFn: ({ id: e, to: t }) => G(WP, {
+ }, m = OS({
+ mutationFn: ({ id: e, to: t }) => G(GP, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
u(t, n), d(), r.toast(Ahe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await G(WP, {
+ await G(GP, {
item: t,
to: i
}), u(t, i), d();
@@ -41918,7 +41918,7 @@ function jhe(e) {
l(t, Te(e), s), r.failure("更新关注状态", e);
},
onSettled: (e, t, { id: n }) => l(n, "", a)
- }), h = TS({
+ }), h = OS({
mutationFn: (e) => G("/api/follow/save", { item: e }),
onSuccess: (e, t) => {
u(t, "saved"), d(), r.toast("已保存到账本");
@@ -41953,8 +41953,8 @@ function jhe(e) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function aI({ provider: e, label: t }) {
- let n = TF(e), [r, i] = (0, R.useState)(!1);
+function oI({ provider: e, label: t }) {
+ let n = EF(e), [r, i] = (0, R.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: t }) : null : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("img", {
src: n,
alt: "",
@@ -41963,10 +41963,10 @@ function aI({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, B.jsx)(K_, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : null] });
}
-function oI({ group: e, name: t }) {
- let { src: n, fallback: r } = oF(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
+function sI({ group: e, name: t }) {
+ let { src: n, fallback: r } = sF(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, B.jsx)("img", {
src: o,
alt: "",
@@ -41979,18 +41979,18 @@ function oI({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, B.jsx)("span", {
title: "没有可用头像",
className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
- children: aF(t)
+ children: oF(t)
});
}
-function sI({ source: e }) {
- let t = $P(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, B.jsx)(TE, {
+function cI({ source: e }) {
+ let t = eF(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: t,
children: Dme(e)
});
}
-function cI({ source: e }) {
+function lI({ source: e }) {
return /* @__PURE__ */ (0, B.jsxs)("a", {
href: e.url,
target: "_blank",
@@ -42005,11 +42005,11 @@ function cI({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var lI = SE(Ck, wk, "text-body-2-medium"), Mhe = "粘贴来源链接,或输入创作者名、id…", Nhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Phe = "识别中…", Fhe = "站内没有查到来源", uI = (e, t) => `${e}:${t.url}`;
+var uI = wE(Tk, Ek, "text-body-2-medium"), Mhe = "粘贴来源链接,或输入创作者名、id…", Nhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Phe = "识别中…", Fhe = "站内没有查到来源", dI = (e, t) => `${e}:${t.url}`;
function Ihe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, R.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, B.jsxs)(bO, {
+ }, [t, r]), /* @__PURE__ */ (0, B.jsxs)(SO, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -42021,17 +42021,17 @@ function Ihe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: SE(Sk, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: wE(wk, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, B.jsx)(AE, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, B.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? SE(lI, "bg-background-secondary-default") : lI,
+ className: t === r ? wE(uI, "bg-background-secondary-default") : uI,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -42059,20 +42059,20 @@ function Lhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
ref: i,
variant: "secondary",
- leadingIcon: rae,
+ leadingIcon: nae,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, B.jsx)(bO, {
+ }), /* @__PURE__ */ (0, B.jsx)(SO, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: Sk,
- children: /* @__PURE__ */ (0, B.jsxs)(jO, {
+ className: wk,
+ children: /* @__PURE__ */ (0, B.jsxs)(NO, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -42088,16 +42088,16 @@ function Lhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, B.jsx)(Lk, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(HM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(aI, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "ghost",
@@ -42121,7 +42121,7 @@ function Rhe({ 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, B.jsxs)("div", {
- className: OE({
+ className: AE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -42132,15 +42132,15 @@ function Rhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = uI(t, e);
- return /* @__PURE__ */ (0, B.jsx)(HM, {
+ let n = dI(t, e);
+ return /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(aI, { provider: e.provider }),
+ /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }),
/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -42156,18 +42156,18 @@ function Rhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, B.jsx)(Lk, { children: Fhe }),
+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: Fhe }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, B.jsx)(Bk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Hk, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, B.jsx)(Lk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, B.jsx)(zk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
@@ -42182,7 +42182,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = setTimeout(() => u(e), 250);
return () => clearTimeout(t);
}, [a]);
- let D = SS({
+ let D = TS({
queryKey: xme(l),
queryFn: ({ signal: e }) => Nme(l, e),
enabled: l.length > 0 && d
@@ -42191,7 +42191,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = RM({
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = UM({
queryKey: bme,
queryFn: ({ signal: e }) => Mme(e),
start: (e) => Pme([e]),
@@ -42228,8 +42228,8 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
}, re = j?.results || [], ie = re.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: uI(t, e)
- })).filter((e) => !x.has(e.key))), ae = TS({
+ key: dI(t, e)
+ })).filter((e) => !x.has(e.key))), ae = OS({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
@@ -42243,7 +42243,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await pF(n);
+ await mF(n);
} catch (e) {
t.push(U(e));
}
@@ -42253,7 +42253,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (CF(), e.failures.length) {
+ if (wF(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -42262,7 +42262,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onError: (e) => w(U(e))
}), oe = e.suggestions || [], se = !s.includes("/");
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: OE({
+ className: AE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42282,11 +42282,11 @@ function zhe({ 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, B.jsx)(xk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
"aria-label": "来源链接、名字或 id",
placeholder: Mhe,
value: a,
- leadingIcon: jT,
+ leadingIcon: NT,
isDisabled: n,
onChange: o,
onKeyDown: ne
@@ -42318,7 +42318,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, B.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, B.jsx)(PM, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, B.jsx)(zM, {
embedded: !0,
label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? Nhe : Phe),
value: k?.checked,
@@ -42332,7 +42332,7 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
re.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "查找结果" }),
+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "查找结果" }),
re.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Rhe, {
row: e,
at: t,
@@ -42388,15 +42388,15 @@ function zhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var Bhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, dI = (e) => e.alias;
+var Bhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, fI = (e) => e.alias;
function Vhe(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function fI({ sources: e, name: t, canonicalKey: n }) {
+function pI({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(oI, {
+ children: [/* @__PURE__ */ (0, B.jsx)(sI, {
group: Vhe(e, t, n),
name: t
}), /* @__PURE__ */ (0, B.jsx)("b", {
@@ -42406,14 +42406,14 @@ function fI({ sources: e, name: t, canonicalKey: n }) {
});
}
function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
- let [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = TS({
+ let [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = OS({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await gF(n.canonical, n.alias);
+ await _F(n.canonical, n.alias);
} catch (n) {
- throw t && CF(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && wF(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -42423,19 +42423,19 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), CF(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), wF(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(U(e))
- }), m = TS({
- mutationFn: (e) => gF(e.canonical, e.alias),
+ }), m = OS({
+ mutationFn: (e) => _F(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), CF(), i("已保存创作者别名");
+ c(""), u(""), f(""), wF(), i("已保存创作者别名");
},
onError: (e) => c(U(e))
- }), h = TS({
+ }), h = OS({
mutationFn: (e) => Ime(e),
onSuccess: () => {
- c(""), CF(), i("已移除创作者别名");
+ c(""), wF(), i("已移除创作者别名");
},
onError: (e) => c(U(e))
}), g = (e, t) => {
@@ -42445,9 +42445,9 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(dI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
+ }, _ = t.filter((e) => a.has(fI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: OE({
+ className: AE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42458,10 +42458,10 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "手动添加别名" }), /* @__PURE__ */ (0, B.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "手动添加别名" }), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -42469,7 +42469,7 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -42490,13 +42490,13 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "待合并" }),
+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "待合并" }),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -42518,44 +42518,44 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, B.jsx)(GM, { children: /* @__PURE__ */ (0, B.jsxs)(UM, {
+ }), /* @__PURE__ */ (0, B.jsx)(XM, { children: /* @__PURE__ */ (0, B.jsxs)(JM, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsxs)(tk, { children: [
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "select",
- children: /* @__PURE__ */ (0, B.jsx)(HM, {
+ children: /* @__PURE__ */ (0, B.jsx)(qM, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(dI)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(fI)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, B.jsx)(nk, {
+ /* @__PURE__ */ (0, B.jsx)(ik, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, B.jsx)(ik, { children: t.map((e) => {
- let t = dI(e);
- return /* @__PURE__ */ (0, B.jsxs)(sk, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: t.map((e) => {
+ let t = fI(e);
+ return /* @__PURE__ */ (0, B.jsxs)(lk, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsx)(HM, {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(qM, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -42564,16 +42564,16 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsx)(fI, {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(pI, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: e.alias }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: e.alias }),
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
disabled: r,
@@ -42590,27 +42590,27 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "已保存别名" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "已保存别名" }), /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, B.jsx)(GM, { children: /* @__PURE__ */ (0, B.jsxs)(UM, {
+ }), e.length ? /* @__PURE__ */ (0, B.jsx)(XM, { children: /* @__PURE__ */ (0, B.jsxs)(JM, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsxs)(tk, { children: [/* @__PURE__ */ (0, B.jsx)(nk, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [/* @__PURE__ */ (0, B.jsx)(ik, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, B.jsx)(nk, {
+ }), /* @__PURE__ */ (0, B.jsx)(ik, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, B.jsx)(ik, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(sk, {
+ })] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(lk, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsx)(fI, {
+ children: [/* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(pI, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, B.jsx)(lk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, B.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",
@@ -42618,7 +42618,7 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: vT,
+ leadingIcon: bT,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...X(h.isPending),
@@ -42632,9 +42632,9 @@ function Hhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: NT,
+ icon: FT,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -42649,20 +42649,20 @@ function qhe(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
function Jhe({ row: e }) {
- if (EF(e)) return /* @__PURE__ */ (0, B.jsx)(TE, {
+ if (DF(e)) return /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, B.jsx)(TE, {
+ return /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: t,
children: qme[e.requirement] || ""
});
}
function Yhe({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = EF(e), c = TS({
+ let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = DF(e), c = OS({
mutationFn: (t) => Lme(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
@@ -42670,7 +42670,7 @@ function Yhe({ row: e, readOnly: t, toast: n }) {
return;
}
o(""), i({}), p.invalidateQueries({
- queryKey: qP,
+ queryKey: JP,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -42686,14 +42686,14 @@ function Yhe({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [e.why, e.where ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)(Bk, {
+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: [e.why, e.where ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)(Hk, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, B.jsx)(Lk, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.howto }) : null,
/* @__PURE__ */ (0, B.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, B.jsx)(xk, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, B.jsx)(Ck, {
type: "password",
label: n,
placeholder: qhe(e, n),
@@ -42732,9 +42732,9 @@ function Yhe({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, B.jsx)(Lk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, B.jsx)(NM, {
+ a ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, B.jsx)(zk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, B.jsx)(RM, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -42753,7 +42753,7 @@ function Xhe({ row: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, B.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, B.jsx)(aI, { provider: e.provider })
+ children: /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider })
}),
/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-body-medium text-text-primary",
@@ -42764,7 +42764,7 @@ function Xhe({ row: e, readOnly: t, toast: n }) {
children: e.nature
}) : null,
/* @__PURE__ */ (0, B.jsx)(Jhe, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, B.jsx)(TE, {
+ e.missing.length ? /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -42773,12 +42773,12 @@ function Xhe({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, B.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, B.jsx)(Lk, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, B.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, B.jsx)(Uk, {
- summary: EF(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !EF(e),
+ children: [r, /* @__PURE__ */ (0, B.jsx)(Gk, {
+ summary: DF(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !DF(e),
children: /* @__PURE__ */ (0, B.jsx)(Yhe, {
row: e,
readOnly: t,
@@ -42788,9 +42788,9 @@ function Xhe({ row: e, readOnly: t, toast: n }) {
});
}
function Zhe({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !EF(e));
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !DF(e));
return r.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
- className: OE({
+ className: AE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42825,7 +42825,7 @@ function Zhe({ data: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, B.jsx)("div", {
- className: OE({
+ className: AE({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
@@ -42848,7 +42848,7 @@ function Zhe({ data: e, readOnly: t, toast: n }) {
className: "text-body-2-regular text-text-secondary",
children: Whe
}),
- /* @__PURE__ */ (0, B.jsx)(NM, {
+ /* @__PURE__ */ (0, B.jsx)(RM, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -42857,16 +42857,16 @@ function Zhe({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: cae,
+ icon: sae,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function pI() {
+function mI() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -42879,18 +42879,18 @@ function pI() {
group: (e) => e
};
}
-function mI(e, t) {
+function hI(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function hI(e, t) {
+function gI(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: mI(n, t[e])
+ [e]: hI(n, t[e])
}));
};
}
-function gI(e) {
+function _I(e) {
return e instanceof Function;
}
function Qhe(e) {
@@ -42906,7 +42906,7 @@ function $he(e, t) {
};
return r(e), n;
}
-function _I(e, t, n) {
+function vI(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -42928,7 +42928,7 @@ function _I(e, t, n) {
return i;
};
}
-function vI(e, t, n, r) {
+function yI(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
@@ -42942,7 +42942,7 @@ function ege(e, t, n, r) {
column: n,
getValue: () => t.getValue(r),
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
- getContext: _I(() => [
+ getContext: vI(() => [
e,
n,
t,
@@ -42954,7 +42954,7 @@ function ege(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), vI(e.options, "debugCells", "cell.getContext"))
+ }), yI(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
@@ -42977,17 +42977,17 @@ function tge(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: _I(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], vI(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: _I(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: vI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], yI(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: vI(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, vI(e.options, "debugColumns", "column.getLeafColumns"))
+ }, yI(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var yI = "debugHeaders";
-function bI(e, t, n) {
+var bI = "debugHeaders";
+function xI(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -43016,41 +43016,41 @@ function bI(e, t, n) {
}), r;
}
var nge = { createTable: (e) => {
- e.getHeaderGroups = _I(() => [
+ e.getHeaderGroups = vI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return xI(t, [
+ return SI(t, [
...a,
...s,
...o
], e);
- }, vI(e.options, yI, "getHeaderGroups")), e.getCenterHeaderGroups = _I(() => [
+ }, yI(e.options, bI, "getHeaderGroups")), e.getCenterHeaderGroups = vI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), xI(t, n, e, "center")), vI(e.options, yI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = _I(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), SI(t, n, e, "center")), yI(e.options, bI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = vI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => xI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), vI(e.options, yI, "getLeftHeaderGroups")), e.getRightHeaderGroups = _I(() => [
+ ], (t, n, r) => SI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), yI(e.options, bI, "getLeftHeaderGroups")), e.getRightHeaderGroups = vI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => xI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), vI(e.options, yI, "getRightHeaderGroups")), e.getFooterGroups = _I(() => [e.getHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getFooterGroups")), e.getLeftFooterGroups = _I(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getLeftFooterGroups")), e.getCenterFooterGroups = _I(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getCenterFooterGroups")), e.getRightFooterGroups = _I(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getRightFooterGroups")), e.getFlatHeaders = _I(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getFlatHeaders")), e.getLeftFlatHeaders = _I(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = _I(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getCenterFlatHeaders")), e.getRightFlatHeaders = _I(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getRightFlatHeaders")), e.getCenterLeafHeaders = _I(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => SI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), yI(e.options, bI, "getRightHeaderGroups")), e.getFooterGroups = vI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getFooterGroups")), e.getLeftFooterGroups = vI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getLeftFooterGroups")), e.getCenterFooterGroups = vI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getCenterFooterGroups")), e.getRightFooterGroups = vI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getRightFooterGroups")), e.getFlatHeaders = vI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getFlatHeaders")), e.getLeftFlatHeaders = vI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = vI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getCenterFlatHeaders")), e.getRightFlatHeaders = vI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getRightFlatHeaders")), e.getCenterLeafHeaders = vI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), vI(e.options, yI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = _I(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), yI(e.options, bI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = vI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), vI(e.options, yI, "getLeftLeafHeaders")), e.getRightLeafHeaders = _I(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), yI(e.options, bI, "getLeftLeafHeaders")), e.getRightLeafHeaders = vI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), vI(e.options, yI, "getRightLeafHeaders")), e.getLeafHeaders = _I(() => [
+ }), yI(e.options, bI, "getRightLeafHeaders")), e.getLeafHeaders = vI(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -43058,9 +43058,9 @@ var nge = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), vI(e.options, yI, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), yI(e.options, bI, "getLeafHeaders"));
} };
-function xI(e, t, n, r) {
+function SI(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -43078,7 +43078,7 @@ function xI(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = bI(n, c, {
+ let i = xI(n, c, {
id: [
r,
t,
@@ -43095,7 +43095,7 @@ function xI(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => bI(n, e, {
+ s(t.map((e, t) => xI(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -43145,8 +43145,8 @@ var rge = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: _I(() => [e.getAllLeafColumns()], (t) => t.map((t) => ege(e, s, t, t.id)), vI(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: _I(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), vI(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: vI(() => [e.getAllLeafColumns()], (t) => t.map((t) => ege(e, s, t, t.id)), yI(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: vI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), yI(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
let n = e._features[t];
@@ -43157,59 +43157,59 @@ var rge = (e, t, n, r, i, a, o) => {
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();
};
-} }, SI = (e, t, n) => {
+} }, CI = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-SI.autoRemove = (e) => MI(e);
-var CI = (e, t, n) => {
+CI.autoRemove = (e) => NI(e);
+var wI = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-CI.autoRemove = (e) => MI(e);
-var wI = (e, t, n) => {
+wI.autoRemove = (e) => NI(e);
+var TI = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-wI.autoRemove = (e) => MI(e);
-var TI = (e, t, n) => e.getValue(t)?.includes(n);
-TI.autoRemove = (e) => MI(e);
-var EI = (e, t, n) => !n.some((n) => {
+TI.autoRemove = (e) => NI(e);
+var EI = (e, t, n) => e.getValue(t)?.includes(n);
+EI.autoRemove = (e) => NI(e);
+var DI = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-EI.autoRemove = (e) => MI(e) || !(e != null && e.length);
-var DI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-DI.autoRemove = (e) => MI(e) || !(e != null && e.length);
-var OI = (e, t, n) => e.getValue(t) === n;
-OI.autoRemove = (e) => MI(e);
-var kI = (e, t, n) => e.getValue(t) == n;
-kI.autoRemove = (e) => MI(e);
-var AI = (e, t, n) => {
+DI.autoRemove = (e) => NI(e) || !(e != null && e.length);
+var OI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+OI.autoRemove = (e) => NI(e) || !(e != null && e.length);
+var kI = (e, t, n) => e.getValue(t) === n;
+kI.autoRemove = (e) => NI(e);
+var AI = (e, t, n) => e.getValue(t) == n;
+AI.autoRemove = (e) => NI(e);
+var jI = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-AI.resolveFilterValue = (e) => {
+jI.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, AI.autoRemove = (e) => MI(e) || MI(e[0]) && MI(e[1]);
-var jI = {
- includesString: SI,
- includesStringSensitive: CI,
- equalsString: wI,
- arrIncludes: TI,
- arrIncludesAll: EI,
- arrIncludesSome: DI,
- equals: OI,
- weakEquals: kI,
- inNumberRange: AI
+}, jI.autoRemove = (e) => NI(e) || NI(e[0]) && NI(e[1]);
+var MI = {
+ includesString: CI,
+ includesStringSensitive: wI,
+ equalsString: TI,
+ arrIncludes: EI,
+ arrIncludesAll: DI,
+ arrIncludesSome: OI,
+ equals: kI,
+ weakEquals: AI,
+ inNumberRange: jI
};
-function MI(e) {
+function NI(e) {
return e == null || e === "";
}
var age = {
@@ -43219,21 +43219,21 @@ var age = {
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: hI("columnFilters", e),
+ onColumnFiltersChange: gI("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? jI.includesString : typeof n == "number" ? jI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? jI.equals : Array.isArray(n) ? jI.arrIncludes : jI.weakEquals;
- }, e.getFilterFn = () => gI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? jI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? MI.includesString : typeof n == "number" ? MI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? MI.equals : Array.isArray(n) ? MI.arrIncludes : MI.weakEquals;
+ }, e.getFilterFn = () => _I(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? MI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = mI(n, i ? i.value : void 0);
- if (NI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = hI(n, i ? i.value : void 0);
+ if (PI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -43248,19 +43248,19 @@ var age = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => mI(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => hI(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && NI(t.getFilterFn(), e.value, t));
+ return !(t && PI(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function NI(e, t, n) {
+function PI(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var PI = {
+var FI = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -43317,7 +43317,7 @@ var PI = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: hI("grouping", e),
+ onGroupingChange: gI("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -43330,11 +43330,11 @@ var PI = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return PI.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return PI.extent;
+ if (typeof n == "number") return FI.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return FI.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return gI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? PI[e.columnDef.aggregationFn];
+ return _I(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? FI[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -43366,17 +43366,17 @@ var cge = {
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: hI("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: gI("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = _I((e) => [BI(t, e)], (t) => t.findIndex((t) => t.id === e.id), vI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => BI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = BI(t, n);
+ e.getIndex = vI((e) => [VI(t, e)], (t) => t.findIndex((t) => t.id === e.id), yI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => VI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = VI(t, n);
return r[r.length - 1]?.id === e.id;
};
},
createTable: (e) => {
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
- }, e._getOrderColumnsFn = _I(() => [
+ }, e._getOrderColumnsFn = vI(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -43392,17 +43392,17 @@ var cge = {
i = [...i, ...n];
}
return sge(i, t, n);
- }, vI(e.options, "debugTable", "_getOrderColumnsFn"));
+ }, yI(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, FI = () => ({
+}, II = () => ({
left: [],
right: []
}), lge = {
getInitialState: (e) => ({
- columnPinning: FI(),
+ columnPinning: II(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: hI("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: gI("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -43426,43 +43426,43 @@ var cge = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = _I(() => [
+ e.getCenterVisibleCells = vI(() => [
e._getAllVisibleCells(),
t.getState().columnPinning.left,
t.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.column.id));
- }, vI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = _I(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, yI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = vI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "left"
- })), vI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = _I(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), yI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = vI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "right"
- })), vI(t.options, "debugRows", "getRightVisibleCells"));
+ })), yI(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? FI() : e.initialState?.columnPinning ?? FI()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? II() : e.initialState?.columnPinning ?? II()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = _I(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), vI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = _I(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), vI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = _I(() => [
+ }, e.getLeftLeafColumns = vI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = vI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = vI(() => [
e.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, vI(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, yI(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
function uge(e) {
return e || (typeof document < "u" ? document : null);
}
-var II = {
+var LI = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, LI = () => ({
+}, RI = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
@@ -43470,31 +43470,31 @@ var II = {
isResizingColumn: !1,
columnSizingStart: []
}), dge = {
- getDefaultColumnDef: () => II,
+ getDefaultColumnDef: () => LI,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: LI(),
+ columnSizingInfo: RI(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: hI("columnSizing", e),
- onColumnSizingInfoChange: hI("columnSizingInfo", e)
+ onColumnSizingChange: gI("columnSizing", e),
+ onColumnSizingInfoChange: gI("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? II.minSize, n ?? e.columnDef.size ?? II.size), e.columnDef.maxSize ?? II.maxSize);
- }, e.getStart = _I((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? LI.minSize, n ?? e.columnDef.size ?? LI.size), e.columnDef.maxSize ?? LI.maxSize);
+ }, e.getStart = vI((e) => [
e,
- BI(t, e),
+ VI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), vI(t.options, "debugColumns", "getStart")), e.getAfter = _I((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), yI(t.options, "debugColumns", "getStart")), e.getAfter = vI((e) => [
e,
- BI(t, e),
+ VI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), vI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), yI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -43516,8 +43516,8 @@ var II = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), zI(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = zI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), BI(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = BI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -43553,7 +43553,7 @@ var II = {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
}, g = fge() ? { passive: !1 } : !1;
- zI(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) => ({
+ BI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -43569,12 +43569,12 @@ var II = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? LI() : e.initialState.columnSizingInfo ?? LI());
+ e.setColumnSizingInfo(t ? RI() : e.initialState.columnSizingInfo ?? RI());
}, 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;
}
-}, RI = null;
+}, zI = null;
function fge() {
- if (typeof RI == "boolean") return RI;
+ if (typeof zI == "boolean") return zI;
let e = !1;
try {
let t = { get passive() {
@@ -43584,9 +43584,9 @@ function fge() {
} catch {
e = !1;
}
- return RI = e, RI;
+ return zI = e, zI;
}
-function zI(e) {
+function BI(e) {
return e.type === "touchstart";
}
var pge = {
@@ -43594,7 +43594,7 @@ var pge = {
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: hI("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: gI("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -43609,7 +43609,7 @@ var pge = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = _I(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), vI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = _I(() => [
+ e._getAllVisibleCells = vI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), yI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = vI(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -43617,10 +43617,10 @@ var pge = {
...e,
...t,
...n
- ], vI(t.options, "debugRows", "getVisibleCells"));
+ ], yI(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => _I(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), vI(e.options, "debugColumns", t));
+ let t = (t, n) => vI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), yI(e.options, "debugColumns", t));
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
}, e.toggleAllColumnsVisible = (t) => {
@@ -43633,7 +43633,7 @@ var pge = {
};
}
};
-function BI(e, t) {
+function VI(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
var mge = { createTable: (e) => {
@@ -43646,7 +43646,7 @@ var mge = { createTable: (e) => {
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: hI("globalFilter", e),
+ onGlobalFilterChange: gI("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -43658,9 +43658,9 @@ var mge = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => jI.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => MI.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return gI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? jI[t];
+ return _I(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? MI[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
@@ -43673,7 +43673,7 @@ var mge = { createTable: (e) => {
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: hI("expanded", e),
+ onExpandedChange: gI("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -43744,18 +43744,18 @@ var mge = { createTable: (e) => {
};
};
}
-}, VI = 0, HI = 10, UI = () => ({
- pageIndex: VI,
- pageSize: HI
+}, HI = 0, UI = 10, WI = () => ({
+ pageIndex: HI,
+ pageSize: UI
}), _ge = {
getInitialState: (e) => ({
...e,
pagination: {
- ...UI(),
+ ...WI(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: hI("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: gI("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -43771,11 +43771,11 @@ var mge = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => mI(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? UI() : e.initialState.pagination ?? UI());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => hI(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? WI() : e.initialState.pagination ?? WI());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = mI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = hI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
@@ -43783,13 +43783,13 @@ var mge = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? VI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? VI);
+ e.setPageIndex(t ? HI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? HI);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? HI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? HI);
+ e.setPageSize(t ? UI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? UI);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, mI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, hI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -43797,28 +43797,28 @@ var mge = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = mI(t, e.options.pageCount ?? -1);
+ let r = hI(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = _I(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = vI(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, vI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, yI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, WI = () => ({
+}, GI = () => ({
top: [],
bottom: []
}), vge = {
getInitialState: (e) => ({
- rowPinning: WI(),
+ rowPinning: GI(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: hI("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: gI("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -43857,7 +43857,7 @@ var mge = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? WI() : e.initialState?.rowPinning ?? WI()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? GI() : e.initialState?.rowPinning ?? GI()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -43866,14 +43866,14 @@ var mge = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = _I(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), vI(e.options, "debugRows", "getTopRows")), e.getBottomRows = _I(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), vI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = _I(() => [
+ })), e.getTopRows = vI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), yI(e.options, "debugRows", "getTopRows")), e.getBottomRows = vI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), yI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = vI(() => [
e.getRowModel().rows,
e.getState().rowPinning.top,
e.getState().rowPinning.bottom
], (e, t, n) => {
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
return e.filter((e) => !r.has(e.id));
- }, vI(e.options, "debugRows", "getCenterRows"));
+ }, yI(e.options, "debugRows", "getCenterRows"));
}
}, yge = {
getInitialState: (e) => ({
@@ -43881,7 +43881,7 @@ var mge = { createTable: (e) => {
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: hI("rowSelection", e),
+ onRowSelectionChange: gI("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -43900,21 +43900,21 @@ var mge = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- GI(i, t.id, r, !0, e);
+ KI(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = _I(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? KI(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = vI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, vI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = _I(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? KI(e, n) : {
+ }, yI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = vI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, vI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = _I(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? KI(e, n) : {
+ }, yI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = vI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, vI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, yI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
}, e.getIsAllPageRowsSelected = () => {
@@ -43938,17 +43938,17 @@ var mge = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return GI(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return KI(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return qI(e, n);
+ return JI(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return JI(e, n) === "some";
+ return YI(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return JI(e, n) === "all";
+ return YI(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -43956,16 +43956,16 @@ var mge = { createTable: (e) => {
};
};
}
-}, GI = (e, t, n, r, i) => {
+}, KI = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => GI(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => KI(e, t.id, n, r, i));
};
-function KI(e, t) {
+function qI(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = qI(e, n);
+ let o = JI(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -43978,32 +43978,32 @@ function KI(e, t) {
rowsById: i
};
}
-function qI(e, t) {
+function JI(e, t) {
return t[e.id] ?? !1;
}
-function JI(e, t, n) {
+function YI(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if (!(a && !i) && (e.getCanSelect() && (qI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = JI(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (JI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = YI(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var YI = /([0-9]+)/gm, bge = (e, t, n) => QI(ZI(e.getValue(n)).toLowerCase(), ZI(t.getValue(n)).toLowerCase()), xge = (e, t, n) => QI(ZI(e.getValue(n)), ZI(t.getValue(n))), Sge = (e, t, n) => XI(ZI(e.getValue(n)).toLowerCase(), ZI(t.getValue(n)).toLowerCase()), Cge = (e, t, n) => XI(ZI(e.getValue(n)), ZI(t.getValue(n))), wge = (e, t, n) => {
+var XI = /([0-9]+)/gm, bge = (e, t, n) => $I(QI(e.getValue(n)).toLowerCase(), QI(t.getValue(n)).toLowerCase()), xge = (e, t, n) => $I(QI(e.getValue(n)), QI(t.getValue(n))), Sge = (e, t, n) => ZI(QI(e.getValue(n)).toLowerCase(), QI(t.getValue(n)).toLowerCase()), Cge = (e, t, n) => ZI(QI(e.getValue(n)), QI(t.getValue(n))), wge = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, Tge = (e, t, n) => XI(e.getValue(n), t.getValue(n));
-function XI(e, t) {
+}, Tge = (e, t, n) => ZI(e.getValue(n), t.getValue(n));
+function ZI(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function ZI(e) {
+function QI(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function QI(e, t) {
- let n = e.split(YI).filter(Boolean), r = t.split(YI).filter(Boolean);
+function $I(e, t) {
+ let n = e.split(XI).filter(Boolean), r = t.split(XI).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -44017,7 +44017,7 @@ function QI(e, t) {
}
return n.length - r.length;
}
-var $I = {
+var eL = {
alphanumeric: bge,
alphanumericCaseSensitive: xge,
text: Sge,
@@ -44043,7 +44043,7 @@ var $I = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: hI("sorting", e),
+ onSortingChange: gI("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -44051,13 +44051,13 @@ var $I = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return $I.datetime;
- if (typeof n == "string" && (r = !0, n.split(YI).length > 1)) return $I.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return eL.datetime;
+ if (typeof n == "string" && (r = !0, n.split(XI).length > 1)) return eL.alphanumeric;
}
- return r ? $I.text : $I.basic;
+ return r ? eL.text : eL.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return gI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? $I[e.columnDef.sortingFn];
+ return _I(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? eL[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -44128,7 +44128,7 @@ function Dge(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = mI(e, n.options);
+ let t = hI(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -44143,7 +44143,7 @@ function Dge(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: _I(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: vI(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -44154,9 +44154,9 @@ function Dge(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), vI(e, "debugColumns", "_getDefaultColumnDef")),
+ }), yI(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: _I(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: vI(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
let a = tge(n, e, i, r), o = e;
@@ -44164,10 +44164,10 @@ function Dge(e) {
});
};
return t(e);
- }, vI(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: _I(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), vI(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: _I(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), vI(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: _I(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), vI(e, "debugColumns", "getAllLeafColumns")),
+ }, yI(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: vI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), yI(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: vI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), yI(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: vI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), yI(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -44177,8 +44177,8 @@ function Dge(e) {
}
return n;
}
-function eL() {
- return (e) => _I(() => [e.options.data], (t) => {
+function tL() {
+ return (e) => vI(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -44196,7 +44196,7 @@ function eL() {
return o;
};
return n.rows = r(t), n;
- }, vI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, yI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
function Oge(e) {
let t = [], n = (e) => {
@@ -44209,8 +44209,8 @@ function Oge(e) {
rowsById: e.rowsById
};
}
-function tL(e) {
- return (e) => _I(() => [
+function nL(e) {
+ return (e) => vI(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -44232,11 +44232,11 @@ function tL(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, vI(e.options, "debugTable", "getPaginationRowModel"));
+ }, yI(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function nL(e, t) {
+function rL(e, t) {
return e ? kge(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
}
function kge(e) {
@@ -44251,7 +44251,7 @@ function Age(e) {
function jge(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function rL(e) {
+function iL(e) {
let t = {
state: {},
onStateChange: () => {},
@@ -44272,7 +44272,7 @@ function rL(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Mge = CE({
+var Mge = TE({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -44338,18 +44338,18 @@ function Nge({ state: e, size: t = "md", shape: n = "pill" }) {
let r = Mge[t];
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
- className: SE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? SE("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: wE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? wE("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, B.jsx)("span", {
- className: SE("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, B.jsx)("span", { className: SE("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: wE("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, B.jsx)("span", { className: wE("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 iL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, B.jsx)(wse, {
+function aL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, B.jsx)(Cse, {
ref: i,
...a,
- className: (t) => SE("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ className: (t) => wE("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, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Nge, {
state: e,
size: n,
@@ -44362,7 +44362,7 @@ function iL({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var aL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Pge = "输入女优名,到 JavDB 找她的演员页";
+var oL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Pge = "输入女优名,到 JavDB 找她的演员页";
function Fge(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);
@@ -44385,7 +44385,7 @@ function Fge(e, t) {
function Ige({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(HM, {
+ children: [/* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -44395,7 +44395,7 @@ function Ige({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, B.jsx)(TE, {
+ e.record ? /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "neutral",
children: e.record
@@ -44406,14 +44406,14 @@ function Ige({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, B.jsx)(Bk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Hk, {
href: e.url,
children: e.id
})]
});
}
function Lge({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = PE(), u = () => {
+ let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = IE(), u = () => {
let t = r.trim();
!t || e || l.run("lookup", (e) => Bme(t, e), (e) => {
o(e), c(new Set(e.suggested));
@@ -44428,7 +44428,7 @@ function Lge({ readOnly: e, toast: t, onAdded: n }) {
});
}, m = a ? Fge(a, s) : null;
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: OE({
+ className: AE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44441,11 +44441,11 @@ function Lge({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, B.jsx)(xk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {
"aria-label": "女优名",
placeholder: Pge,
value: r,
- leadingIcon: jT,
+ leadingIcon: NT,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -44466,7 +44466,7 @@ function Lge({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "JavDB 上的演员卡" }),
+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "JavDB 上的演员卡" }),
a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(Ige, {
card: e,
picked: s.has(e.id),
@@ -44474,8 +44474,8 @@ function Lge({ readOnly: e, toast: t, onAdded: n }) {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, B.jsx)(Lk, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ }, e.id)) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, B.jsx)(zk, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -44502,15 +44502,15 @@ function Lge({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var Rge = Object.fromEntries(Object.entries(ZP).map(([e, t]) => [t, e])), oL = 740;
+var Rge = Object.fromEntries(Object.entries(QP).map(([e, t]) => [t, e])), sL = 740;
function zge() {
let [e, t] = (0, R.useState)(!1), n = (0, R.useRef)(null), r = (0, R.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < oL));
- r.observe(e), n.current = r, t(e.clientWidth < oL);
+ let r = new ResizeObserver(() => t(e.clientWidth < sL));
+ r.observe(e), n.current = r, t(e.clientWidth < sL);
}, []);
return (0, R.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
@@ -44523,7 +44523,7 @@ var Bge = {
checked: "上次检查",
actions: "操作"
};
-function sL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function cL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, B.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -44537,7 +44537,7 @@ function sL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
}),
/* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: pj(e, t).map((t, r) => /* @__PURE__ */ (0, B.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, B.jsx)("span", {
+ children: gj(e, t).map((t, r) => /* @__PURE__ */ (0, B.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -44565,17 +44565,17 @@ function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- WM(e, e.currentTarget) && n(!t);
+ YM(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, B.jsx)(HM, {
+ /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, B.jsx)(cI, { source: e }), e.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
+ children: [/* @__PURE__ */ (0, B.jsx)(lI, { source: e }), e.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -44583,17 +44583,17 @@ function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, B.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, B.jsx)(aI, {
+ children: /* @__PURE__ */ (0, B.jsx)(oI, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, B.jsx)(sI, { source: e }),
+ /* @__PURE__ */ (0, B.jsx)(cI, { source: e }),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: wF(e)
+ children: TF(e)
}),
- /* @__PURE__ */ (0, B.jsx)(iL, {
+ /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -44605,7 +44605,7 @@ function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: kT,
+ leadingIcon: jT,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...X(r.busy),
@@ -44614,7 +44614,7 @@ function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: wT,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -44624,10 +44624,10 @@ function Vge({ source: e, selected: t, onToggle: n, handlers: r }) {
});
}
function Hge({ 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($P).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = lF(r, c);
+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(eF).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = uF(r, c);
return /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: OE({
+ className: AE({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -44637,7 +44637,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, B.jsx)(oI, {
+ /* @__PURE__ */ (0, B.jsx)(sI, {
group: e,
name: t
}),
@@ -44649,7 +44649,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: kT,
+ leadingIcon: jT,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...X(i.busy),
@@ -44658,7 +44658,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, B.jsx)(aI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, B.jsx)(K_, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, B.jsx)(q_, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -44667,7 +44667,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: _T,
+ leadingIcon: yT,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -44678,7 +44678,7 @@ function Hge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? gT : pT,
+ leadingIcon: n ? vT : hT,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -44708,26 +44708,26 @@ function Uge(e) {
n,
r,
_
- ]), { job: D, running: O, outcome: k, start: A } = RM({
+ ]), { job: D, running: O, outcome: k, start: A } = UM({
queryKey: yme,
queryFn: ({ signal: e }) => jme(e),
- start: (e) => pF(e),
+ start: (e) => mF(e),
onError: (e) => w(U(e)),
onFinish: (e) => {
- CF(), m(e.status === "failed" ? e.error || "检查失败" : Ume(e));
+ wF(), m(e.status === "failed" ? e.error || "检查失败" : Ume(e));
}
}), j = (e) => {
O || A.isPending || (w(""), A.mutate(e));
- }, M = (e, t) => p(uF(s, [e], t)), N = (e, t) => p(uF(s, e, t)), ee = TS({
- mutationFn: (e) => hF(e),
+ }, M = (e, t) => p(dF(s, [e], t)), N = (e, t) => p(dF(s, e, t)), ee = OS({
+ mutationFn: (e) => gF(e),
onSuccess: (e, t) => {
- SF([t]), p(uF(s, [t], !1)), m("已取消关注来源");
+ CF([t]), p(dF(s, [t], !1)), m("已取消关注来源");
},
onError: (e) => w(U(e))
- }), te = TS({
- mutationFn: (e) => mF(e.id, e.enabled),
+ }), te = OS({
+ mutationFn: (e) => hF(e.id, e.enabled),
onSuccess: (e, t) => {
- xF(t.id, { enabled: t.enabled }), w("");
+ SF(t.id, { enabled: t.enabled }), w("");
},
onError: (e) => w(U(e))
}), P = (e) => void je({
@@ -44736,10 +44736,10 @@ function Uge(e) {
confirmLabel: "取消关注来源",
danger: !0,
onConfirm: () => ee.mutateAsync(e.id)
- }), F = TS({
+ }), F = OS({
mutationFn: async (e) => {
let t = await Se(e.ids, 4, async (t) => {
- e.action === "remove" ? await hF(t) : await mF(t, e.action === "enabled");
+ e.action === "remove" ? await gF(t) : await hF(t, e.action === "enabled");
});
return {
...e,
@@ -44748,9 +44748,9 @@ function Uge(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") SF(e.done);
- else for (let t of e.done) xF(t, { enabled: e.action === "enabled" });
- p(uF(s, e.done, !1));
+ if (e.action === "remove") CF(e.done);
+ else for (let t of e.done) SF(t, { enabled: e.action === "enabled" });
+ p(dF(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
w(`${t.length}/${e.ids.length} 个来源未更新:${U(t[0]?.error)}`);
@@ -44761,7 +44761,7 @@ function Uge(e) {
m(`已${n} ${e.done.length} 个关注来源`);
},
onError: (e) => w(U(e))
- }), ne = TS({
+ }), ne = OS({
mutationFn: async (e) => {
let t = ((await zme()).groups || []).flatMap((e) => [
e.primary,
@@ -44774,7 +44774,7 @@ function Uge(e) {
};
},
onSuccess: (e) => {
- if (CF(), e.failed.length) {
+ if (wF(), e.failed.length) {
w(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -44799,12 +44799,12 @@ function Uge(e) {
readOnly: c
};
let ae = ie.current, oe = (0, R.useMemo)(() => {
- let e = pI(), t = (e) => () => Bge[e] || e;
+ let e = mI(), t = (e) => () => Bge[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(HM, {
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(qM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -44816,7 +44816,7 @@ function Uge(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(oI, {
+ children: [/* @__PURE__ */ (0, B.jsx)(sI, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, B.jsx)("span", {
@@ -44830,7 +44830,7 @@ function Uge(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, B.jsx)(cI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
+ children: [/* @__PURE__ */ (0, B.jsx)(lI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -44841,18 +44841,18 @@ function Uge(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(aI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, B.jsx)(oI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(sI, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(cI, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => wF(e.row.original.source)
+ cell: (e) => TF(e.row.original.source)
}),
e.display({
id: "actions",
@@ -44860,7 +44860,7 @@ function Uge(e) {
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, B.jsx)(iL, {
+ /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: ae.readOnly,
@@ -44870,7 +44870,7 @@ function Uge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: kT,
+ leadingIcon: jT,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ae.readOnly,
...X(ae.busy),
@@ -44880,7 +44880,7 @@ function Uge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: wT,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ae.readOnly,
onClick: () => ie.current.remove(e.row.original.source)
@@ -44895,7 +44895,7 @@ function Uge(e) {
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), ce = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = cF(le ? E.length : T.length, o, i), de = rL({
+ }, [n, r]), ce = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = lF(le ? E.length : T.length, o, i), de = iL({
data: E,
columns: oe,
getRowId: (e) => String(e.source.id),
@@ -44912,7 +44912,7 @@ function Uge(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(se) : e)[0];
if (!t) return;
- let n = ZP[t.id];
+ let n = QP[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -44926,11 +44926,11 @@ function Uge(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : f(n.pageSize);
},
- getCoreRowModel: eL(),
- getPaginationRowModel: tL()
- }), fe = de.getRowModel().rows, I = le ? fe.map((e) => e.original.source.id) : T.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), pe = lF(s, I), me = [...s], he = Wme(k), ge = Gme(k), _e = T.length > 0 && y.size >= T.length;
+ getCoreRowModel: tL(),
+ getPaginationRowModel: nL()
+ }), fe = de.getRowModel().rows, I = le ? fe.map((e) => e.original.source.id) : T.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), pe = uF(s, I), me = [...s], he = Wme(k), ge = Gme(k), _e = T.length > 0 && y.size >= T.length;
return g.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
- className: OE({
+ className: AE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44949,7 +44949,7 @@ function Uge(e) {
}),
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "primary",
- leadingIcon: kT,
+ leadingIcon: jT,
disabled: c,
"aria-label": "检查全部",
iconOnly: S,
@@ -44964,28 +44964,28 @@ function Uge(e) {
children: [/* @__PURE__ */ (0, B.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: lae,
- "aria-label": YP[0][1],
+ leadingIcon: cae,
+ "aria-label": XP[0][1],
"aria-pressed": !le,
onClick: () => d("default")
}), /* @__PURE__ */ (0, B.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: fae,
- "aria-label": YP[1][1],
+ leadingIcon: dae,
+ "aria-label": XP[1][1],
"aria-pressed": le,
onClick: () => d("table")
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Ek, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- l(t, IP[t]);
+ l(t, LP[t]);
},
- children: FP.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: IP.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
@@ -44993,14 +44993,14 @@ function Uge(e) {
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? Yie : Jie,
+ leadingIcon: r === "asc" ? Jie : qie,
"aria-label": Eme(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
le ? null : /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
iconOnly: S,
- leadingIcon: _e ? pT : gT,
+ leadingIcon: _e ? hT : vT,
"aria-label": _e ? "全部展开" : "全部收起",
onClick: () => b(_e ? /* @__PURE__ */ new Set() : new Set(T.map((e) => String(e[0].author_key || e[0].id)))),
children: _e ? "全部展开" : "全部收起"
@@ -45011,7 +45011,7 @@ function Uge(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- O ? /* @__PURE__ */ (0, B.jsx)(PM, {
+ O ? /* @__PURE__ */ (0, B.jsx)(zM, {
embedded: !0,
label: D?.message || (D?.total ? `${D.older ? "抓取历史" : "检查更新"}:已完成 ${D.checked || 0}/${D.total} 个来源` : "正在准备检查任务"),
value: D?.checked,
@@ -45037,7 +45037,7 @@ function Uge(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsxs)(iS, {
+ /* @__PURE__ */ (0, B.jsxs)(sS, {
label: "关注来源批量操作",
visible: me.length > 0,
count: `已选 ${me.length} 个来源`,
@@ -45097,10 +45097,10 @@ function Uge(e) {
})
]
}),
- le ? /* @__PURE__ */ (0, B.jsx)(GM, {
+ le ? /* @__PURE__ */ (0, B.jsx)(XM, {
follow: !0,
onRowClick: (e) => M(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, B.jsxs)(UM, {
+ children: /* @__PURE__ */ (0, B.jsxs)(JM, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: se[0] ? {
@@ -45111,9 +45111,9 @@ function Uge(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, B.jsx)(tk, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in ZP, n = nL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, B.jsx)(nk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(rk, { children: de.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in QP, n = rL(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, B.jsx)(ik, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -45122,20 +45122,20 @@ function Uge(e) {
children: [n, /* @__PURE__ */ (0, B.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, B.jsx)(mce, {})
+ children: /* @__PURE__ */ (0, B.jsx)(pce, {})
})]
- }) : /* @__PURE__ */ (0, B.jsx)(K_, { children: n })
+ }) : /* @__PURE__ */ (0, B.jsx)(q_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, B.jsx)(ik, {
+ }) }), /* @__PURE__ */ (0, B.jsx)(ok, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, B.jsx)(sk, {
+ children: fe.map((e) => /* @__PURE__ */ (0, B.jsx)(lk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(lk, { children: nL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: rL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(HM, {
+ }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: pe.all,
isIndeterminate: pe.some,
onChange: (e) => N(I, e),
@@ -45147,7 +45147,7 @@ function Uge(e) {
let t = String(e[0].author_key || e[0].id);
return /* @__PURE__ */ (0, B.jsx)(Hge, {
group: e,
- name: iF(e, _),
+ name: aF(e, _),
handlers: ae,
selected: s,
open: !y.has(t),
@@ -45167,19 +45167,19 @@ function Uge(e) {
className: "text-body-2-regular text-text-secondary",
children: `${ue.start + 1}–${ue.end} / ${ue.total} ${le ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, B.jsx)(Ek, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: XP.map((e) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: ZP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: String(e),
children: `每页 ${e} ${le ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(sL, {
+ /* @__PURE__ */ (0, B.jsx)(cL, {
page: ue.page,
pages: ue.pages,
onPage: (e) => de.setPageIndex(e - 1)
@@ -45228,11 +45228,11 @@ function Uge(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: AT,
+ icon: MT,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, B.jsx)(DE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -45253,10 +45253,10 @@ var Wge = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, Gge = /* @__PURE__ */ new Set(["select", "actions"]), cL = () => p.invalidateQueries({
- queryKey: JP,
+}, Gge = /* @__PURE__ */ new Set(["select", "actions"]), lL = () => p.invalidateQueries({
+ queryKey: YP,
exact: !0
-}), lL = (e) => e.name || e.url, Kge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+}), uL = (e) => e.name || e.url, Kge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
function qge(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
@@ -45265,15 +45265,15 @@ function qge(e) {
}
}
function Jge({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, B.jsx)(TE, {
+ return e.last_error ? /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, B.jsx)(TE, {
+ }) : e.enabled ? /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, B.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "neutral",
children: "已暂停"
@@ -45288,8 +45288,8 @@ function Yge({ source: e }) {
} : null;
return /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${aL}`,
- dangerouslySetInnerHTML: { __html: k(lL(e), t, null, "performer") }
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${oL}`,
+ dangerouslySetInnerHTML: { __html: k(uL(e), t, null, "performer") }
});
}
var Xge = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
@@ -45298,21 +45298,21 @@ function Zge(e) {
for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
return n;
}
-function uL(e, t) {
+function dL(e, t) {
let n = e.length === 1 ? e[0] : null;
return je({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${lL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${uL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
function Qge({ readOnly: e, toast: t }) {
- let n = SS({
- queryKey: JP,
- queryFn: ({ signal: e }) => _F(e)
- }), r = PE(), i = n.data, a = (0, R.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, R.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(1), [u, d] = (0, R.useState)(20), f = cF(a.length, u, c);
+ let n = TS({
+ queryKey: YP,
+ queryFn: ({ signal: e }) => vF(e)
+ }), r = IE(), i = n.data, a = (0, R.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, R.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(1), [u, d] = (0, R.useState)(20), f = lF(a.length, u, c);
(0, R.useEffect)(() => {
l((e) => Math.min(e, f.pages));
}, [f.pages]), (0, R.useEffect)(() => {
@@ -45321,10 +45321,10 @@ function Qge({ readOnly: e, toast: t }) {
return n.size === e.size ? e : n;
});
}, [a]);
- let p = TS({
+ let p = OS({
mutationFn: async (e) => {
let t = await Se(e.ids, 4, async (t) => {
- e.action === "remove" ? await yF(t) : await vF(t, e.action === "enabled");
+ e.action === "remove" ? await bF(t) : await yF(t, e.action === "enabled");
});
return {
...e,
@@ -45333,7 +45333,7 @@ function Qge({ readOnly: e, toast: t }) {
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;
- if (s(/* @__PURE__ */ new Set()), cL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
+ if (s(/* @__PURE__ */ new Set()), lL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
let e = n[0];
r.setError(`${n.length} 条没有写入:${e.ok ? "" : U(e.error)}`);
}
@@ -45351,26 +45351,26 @@ function Qge({ readOnly: e, toast: t }) {
readOnly: e,
shared: m,
busy: r.busy,
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => vF(e.id, t, n), () => void cL()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => bF(t, [e.id]), () => void cL()),
- remove: (e) => void uL([e], async () => {
- await yF(e.id), t(`已移除订阅源「${lL(e)}」`), cL();
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => yF(e.id, t, n), () => void lL()),
+ fetch: (e) => void r.run(`check-${e.id}`, (t) => xF(t, [e.id]), () => void lL()),
+ remove: (e) => void dL([e], async () => {
+ await bF(e.id), t(`已移除订阅源「${uL(e)}」`), lL();
})
};
let g = (0, R.useMemo)(() => {
- let e = pI(), t = (e) => () => Wge[e] || e;
+ let e = mI(), t = (e) => () => Wge[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, B.jsx)(HM, {
+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(qM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${lL(e.row.original)}`
+ "aria-label": `选择 ${uL(e.row.original)}`
})
}),
- e.accessor(lL, {
+ e.accessor(uL, {
id: "name",
header: t("name"),
cell: (e) => {
@@ -45422,7 +45422,7 @@ function Qge({ readOnly: e, toast: t }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? gj(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? yj(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, B.jsx)("span", {
@@ -45444,8 +45444,8 @@ function Qge({ readOnly: e, toast: t }) {
cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, B.jsx)(iL, {
- "aria-label": `启用 ${lL(e.row.original)}`,
+ /* @__PURE__ */ (0, B.jsx)(aL, {
+ "aria-label": `启用 ${uL(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: h.current.readOnly,
onChange: (t) => h.current.toggle(e.row.original, t)
@@ -45454,8 +45454,8 @@ function Qge({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: kT,
- "aria-label": `拉取 ${lL(e.row.original)}`,
+ leadingIcon: jT,
+ "aria-label": `拉取 ${uL(e.row.original)}`,
disabled: h.current.readOnly,
...X(h.current.busy === `check-${e.row.original.id}`),
onClick: () => h.current.fetch(e.row.original)
@@ -45464,8 +45464,8 @@ function Qge({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: ST,
- "aria-label": `移除 ${lL(e.row.original)}`,
+ leadingIcon: wT,
+ "aria-label": `移除 ${uL(e.row.original)}`,
disabled: h.current.readOnly,
onClick: () => h.current.remove(e.row.original)
})
@@ -45473,7 +45473,7 @@ function Qge({ readOnly: e, toast: t }) {
})
})
];
- }, []), _ = (0, R.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = rL({
+ }, []), _ = (0, R.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = iL({
data: a,
columns: g,
getRowId: (e) => String(e.id),
@@ -45489,15 +45489,15 @@ function Qge({ readOnly: e, toast: t }) {
let t = typeof e == "function" ? e(_) : e;
s(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: eL(),
- getPaginationRowModel: tL()
+ getCoreRowModel: tL(),
+ getPaginationRowModel: nL()
});
if (!i) return n.error ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "打不开订阅源",
children: U(n.error)
- }) : /* @__PURE__ */ (0, B.jsx)(Lk, { children: "正在读订阅源。" });
- let y = () => void r.run("check", (e) => bF(e), () => void cL()), b = (e) => s((t) => {
+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "正在读订阅源。" });
+ let y = () => void r.run("check", (e) => xF(e), () => void lL()), 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);
@@ -45506,10 +45506,10 @@ function Qge({ readOnly: e, toast: t }) {
children: [/* @__PURE__ */ (0, B.jsx)(Lge, {
readOnly: e,
toast: t,
- onAdded: () => void cL()
+ onAdded: () => void lL()
}), /* @__PURE__ */ (0, B.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: OE({
+ className: AE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -45537,11 +45537,11 @@ function Qge({ readOnly: e, toast: t }) {
className: "flex flex-col gap-3",
children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
- title: `${lL(e)} 拉取失败`,
+ title: `${uL(e)} 拉取失败`,
children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: r.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(iS, {
+ /* @__PURE__ */ (0, B.jsxs)(sS, {
visible: x.length > 0,
label: "订阅源批量操作",
count: `已选 ${x.length} 条订阅源`,
@@ -45573,7 +45573,7 @@ function Qge({ readOnly: e, toast: t }) {
size: "small",
disabled: e,
...X(p.isPending),
- onClick: () => void uL(x, () => p.mutateAsync({
+ onClick: () => void dL(x, () => p.mutateAsync({
ids: x.map((e) => e.id),
action: "remove"
})),
@@ -45587,26 +45587,26 @@ function Qge({ readOnly: e, toast: t }) {
})
]
}),
- a.length ? /* @__PURE__ */ (0, B.jsx)(GM, {
+ a.length ? /* @__PURE__ */ (0, B.jsx)(XM, {
onRowClick: (e) => b(Number(e)),
- children: /* @__PURE__ */ (0, B.jsxs)(UM, {
+ children: /* @__PURE__ */ (0, B.jsxs)(JM, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, B.jsx)(tk, { children: v.getHeaderGroups()[0].headers.map((e) => {
- let t = nL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, B.jsx)(nk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(rk, { children: v.getHeaderGroups()[0].headers.map((e) => {
+ let t = rL(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, B.jsx)(ik, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: Gge.has(e.column.id) ? /* @__PURE__ */ (0, B.jsx)(K_, { children: t }) : t
+ children: Gge.has(e.column.id) ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, B.jsx)(ik, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, B.jsx)(sk, {
+ }) }), /* @__PURE__ */ (0, B.jsx)(ok, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, B.jsx)(lk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(lk, { children: nL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: rL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
- icon: AT,
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ icon: MT,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -45618,19 +45618,19 @@ function Qge({ readOnly: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: `${f.start + 1}–${f.end} / ${f.total} 个订阅源`
}),
- /* @__PURE__ */ (0, B.jsx)(Ek, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(u),
onSelectionChange: (e) => {
e !== null && (d(Number(e)), l(1));
},
- children: XP.map((e) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: ZP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(sL, {
+ /* @__PURE__ */ (0, B.jsx)(cL, {
label: "JAV 订阅分页",
page: f.page,
pages: f.pages,
@@ -45652,29 +45652,29 @@ function Qge({ readOnly: e, toast: t }) {
}
//#endregion
//#region src/react/wants/resource-cache.ts
-var dL = "peach.want-resources.v1", fL = 864e5;
-function pL(e, t = Date.now()) {
+var fL = "peach.want-resources.v1", pL = 864e5;
+function mL(e, t = Date.now()) {
let n = Date.parse(e || ""), r = new Date(t), i = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate())), a = i.getUTCDate();
i.setUTCHours(0, 0, 0, 0), i.setUTCDate(1), i.setUTCMonth(i.getUTCMonth() - 3);
let o = new Date(Date.UTC(i.getUTCFullYear(), i.getUTCMonth() + 1, 0)).getUTCDate();
- return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * fL : 7 * fL;
+ return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * pL : 7 * pL;
}
-function mL() {
+function hL() {
try {
- let e = JSON.parse(localStorage.getItem(dL) || "[]");
+ let e = JSON.parse(localStorage.getItem(fL) || "[]");
return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items)) : [];
} catch {
return [];
}
}
function $ge(e, t) {
- let n = mL().find((t) => t.code === e);
- return n && Date.now() - n.saved < pL(t) ? n : void 0;
+ let n = hL().find((t) => t.code === e);
+ return n && Date.now() - n.saved < mL(t) ? n : void 0;
}
function e_e(e, t) {
if (t.state === "ready") try {
- let n = mL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(dL, JSON.stringify([{
+ let n = hL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(fL, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -45683,7 +45683,7 @@ function e_e(e, t) {
}
//#endregion
//#region src/react/wants/want-magnets.tsx
-function hL({ icon: e, children: t }) {
+function gL({ icon: e, children: t }) {
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "inline-flex items-center gap-1",
children: [/* @__PURE__ */ (0, B.jsx)(e, {
@@ -45693,7 +45693,7 @@ function hL({ icon: e, children: t }) {
});
}
function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {
- let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, R.useState)([]), d = PE(), f = oS(), p = (0, R.useRef)(!1), m = (0, R.useMemo)(() => $ge(e.code || "", e.release_date), [e.code, e.release_date]);
+ let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, R.useState)([]), d = IE(), f = lS(), p = (0, R.useRef)(!1), m = (0, R.useMemo)(() => $ge(e.code || "", e.release_date), [e.code, e.release_date]);
(0, R.useEffect)(() => {
if (!o.current || s) return;
let e = new IntersectionObserver((t) => {
@@ -45701,7 +45701,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}, { rootMargin: "100px" });
return e.observe(o.current), () => e.disconnect();
}, [s]);
- let h = SS({
+ let h = TS({
queryKey: [
"want-magnets",
e.id,
@@ -45715,9 +45715,9 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
initialDataUpdatedAt: m?.saved,
enabled: s,
retry: !1,
- staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : pL(e.release_date)) ? Infinity : 0,
+ staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : mL(e.release_date)) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : pL(e.release_date)) && "always",
+ refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : mL(e.release_date)) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
@@ -45726,7 +45726,7 @@ function t_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 G(eA, {
+ let n = await G(rA, {
magnet: r.uri,
provider: g.key,
target: g.target,
@@ -45737,7 +45737,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: tA });
+ u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: iA });
});
}, v = (e) => {
d.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -45755,7 +45755,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: kT,
+ leadingIcon: jT,
...X(y),
onClick: () => {
y || (p.current = !0, h.refetch());
@@ -45763,7 +45763,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
children: "重新查询"
})]
}),
- y ? /* @__PURE__ */ (0, B.jsx)(AE, { label: "正在查找资源链接…" }) : null,
+ y ? /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在查找资源链接…" }) : null,
b ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "资源链接未取得",
@@ -45792,18 +45792,18 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(TE, {
+ children: [/* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "inline-flex items-center gap-1",
- children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, B.jsx)(gae, {
+ children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, B.jsx)(hae, {
"aria-hidden": !0,
className: "size-3.5"
- }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, B.jsx)(eae, {
+ }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, B.jsx)($ie, {
"aria-hidden": !0,
className: "size-3.5"
- }) : /* @__PURE__ */ (0, B.jsx)(DT, {
+ }) : /* @__PURE__ */ (0, B.jsx)(kT, {
"aria-hidden": !0,
className: "size-3.5"
}), e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ed2k" : "网页链接"]
@@ -45815,24 +45815,24 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(hL, {
- icon: DT,
+ /* @__PURE__ */ (0, B.jsx)(gL, {
+ icon: kT,
children: e.source
}),
- /* @__PURE__ */ (0, B.jsx)(hL, {
- icon: TT,
+ /* @__PURE__ */ (0, B.jsx)(gL, {
+ icon: DT,
children: e.size || "大小未知"
}),
- e.files ? /* @__PURE__ */ (0, B.jsx)(hL, {
- icon: tae,
+ e.files ? /* @__PURE__ */ (0, B.jsx)(gL, {
+ icon: eae,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, B.jsx)(hL, {
- icon: Xie,
+ /* @__PURE__ */ (0, B.jsx)(gL, {
+ icon: Yie,
children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"
}),
- e.attributes.map((e) => /* @__PURE__ */ (0, B.jsx)(hL, {
- icon: OT,
+ e.attributes.map((e) => /* @__PURE__ */ (0, B.jsx)(gL, {
+ icon: AT,
children: e
}, e))
]
@@ -45840,11 +45840,11 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(DE, {
+ /* @__PURE__ */ (0, B.jsx)(kE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: CT,
+ trailingIcon: TT,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -45853,7 +45853,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: $ie,
+ leadingIcon: Qie,
...X(d.busy === `copy:${e.id}`),
onClick: () => v(e),
children: "复制链接"
@@ -45861,7 +45861,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
e.protocol === "magnet" ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: yT,
+ leadingIcon: xT,
disabled: t || !n?.available || !g || r,
...X(d.busy === e.id),
onClick: () => _(e),
@@ -45874,7 +45874,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, B.jsx)(Uk, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, B.jsx)(Gk, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -45887,7 +45887,7 @@ function t_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}
//#endregion
//#region src/react/wants/wants.ts
-var gL = "/api/wants", _L = ["wants"], n_e = (e) => [
+var _L = "/api/wants", vL = ["wants"], n_e = (e) => [
"wants",
"follow",
e
@@ -45896,16 +45896,16 @@ var gL = "/api/wants", _L = ["wants"], n_e = (e) => [
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], i_e = (e) => W(gL, e), a_e = (e, t) => W(`${gL}?follow=${encodeURIComponent(e)}`, t), vL = (e, t) => G(gL, {
+], i_e = (e) => W(_L, e), a_e = (e, t) => W(`${_L}?follow=${encodeURIComponent(e)}`, t), yL = (e, t) => G(_L, {
action: "add",
...e
-}, "POST", t), yL = (e, t) => G(gL, {
+}, "POST", t), bL = (e, t) => G(_L, {
action: "remove",
ids: e
-}, "POST", t), o_e = (e, t) => G(gL, {
+}, "POST", t), o_e = (e, t) => G(_L, {
action: "reset",
ids: e
-}, "POST", t), bL = () => p.invalidateQueries({ queryKey: _L }), xL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+}, "POST", t), xL = () => p.invalidateQueries({ queryKey: vL }), SL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
function s_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} 次` : "还没查过";
}
@@ -45915,7 +45915,7 @@ var c_e = {
code: "手动添加",
feed: "Feed 新作",
follow: "关注"
-}, SL = (e) => [
+}, CL = (e) => [
e.release_date,
e.studio,
e.performers,
@@ -45941,7 +45941,7 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
let [l, u] = (0, R.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-want-id": e.id,
- className: OE({
+ className: AE({
bordered: "soft",
className: "flex flex-col gap-4 max-sm:p-4"
}),
@@ -45954,15 +45954,15 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
className: "flex min-w-0 flex-wrap items-baseline gap-x-2",
children: [/* @__PURE__ */ (0, B.jsx)("b", {
className: "text-headline-medium text-text-primary",
- children: xL(e)
+ children: SL(e)
}), e.code && e.title ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
children: e.title
}) : null]
}),
- SL(e) ? /* @__PURE__ */ (0, B.jsx)("p", {
+ CL(e) ? /* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: SL(e)
+ children: CL(e)
}) : null,
!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, B.jsx)("p", {
"data-want-note": "",
@@ -45976,11 +45976,11 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "mt-1 flex flex-wrap items-center gap-2",
children: [
- d ? /* @__PURE__ */ (0, B.jsx)(DE, {
+ d ? /* @__PURE__ */ (0, B.jsx)(kE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: CT,
+ trailingIcon: TT,
href: d,
target: "_blank",
rel: "noopener noreferrer",
@@ -45989,7 +45989,7 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
e.phase === "searching" || e.phase === "given_up" ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: yT,
+ leadingIcon: xT,
disabled: t,
onClick: a,
children: "云下载"
@@ -46005,7 +46005,7 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: ST,
+ leadingIcon: wT,
disabled: t,
...X(n === `remove:${e.id}`),
onClick: i,
@@ -46026,35 +46026,35 @@ function u_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
});
}
function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
- let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = PE(), c = SS({
- queryKey: _L,
+ let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = IE(), c = TS({
+ queryKey: vL,
queryFn: ({ signal: e }) => i_e(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), l = () => {
let n = r.trim();
- !n || e || s.run("add", (e) => vL({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${xL(e.want)}` : `${xL(e.want)} 已经在想要里`), i(""), bL();
+ !n || e || s.run("add", (e) => yL({ code: n }, e), (e) => {
+ t(e.created ? `已加入想要:${SL(e.want)}` : `${SL(e.want)} 已经在想要里`), i(""), xL();
});
}, u = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), l());
}, d = (e) => {
- s.run(`remove:${e.id}`, (t) => yL([e.id], t), () => {
- t(`已移除:${xL(e)}`), bL();
+ s.run(`remove:${e.id}`, (t) => bL([e.id], t), () => {
+ t(`已移除:${SL(e)}`), xL();
});
}, f = (e) => {
s.run(`reset:${e.id}`, (t) => o_e([e.id], t), () => {
- t(`${xL(e)} 回到待找`), bL();
+ t(`${SL(e)} 回到待找`), xL();
});
- }, p = c.data, m = p?.items || [], h = SS({
- queryKey: tA,
- queryFn: ({ signal: e }) => W(`${eA}?limit=100`, e),
+ }, p = c.data, m = p?.items || [], h = TS({
+ queryKey: iA,
+ queryFn: ({ signal: e }) => W(`${rA}?limit=100`, e),
enabled: m.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
}), g = h.data?.providers.filter((e) => e.configured) || [], _ = g.find((e) => e.key === a)?.key || g[0]?.key || "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: OE({
+ className: AE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -46067,7 +46067,7 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, B.jsx)(xk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: r,
@@ -46083,7 +46083,7 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
children: "添加"
})]
}),
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
s.error ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "这一次没有完成",
@@ -46096,7 +46096,7 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
title: "想要清单读取失败",
children: U(c.error)
}) : null,
- p?.scraping ? /* @__PURE__ */ (0, B.jsx)(Lk, {
+ p?.scraping ? /* @__PURE__ */ (0, B.jsx)(zk, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
@@ -46107,16 +46107,16 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
className: "text-body-medium text-text-primary",
children: "下载到"
}),
- /* @__PURE__ */ (0, B.jsx)(Ek, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "下载到",
selectedKey: _,
onSelectionChange: (e) => o(String(e)),
- children: g.map((e) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: g.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e.key,
children: e.label
}, e.key))
}),
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: g.find((e) => e.key === _)?.target || "使用已配置的目标目录" })
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: g.find((e) => e.key === _)?.target || "使用已配置的目标目录" })
]
}) : null,
h.error ? /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -46132,9 +46132,9 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
tone: "neutral",
children: "云下载只在账本写入端可用。"
}) : null,
- p && !m.length ? /* @__PURE__ */ (0, B.jsx)(kE, {
+ p && !m.length ? /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: dae,
+ icon: uae,
title: "还没有想要的作品",
children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
}) : null,
@@ -46175,16 +46175,16 @@ function d_e({ readOnly: e, toast: t, cloudDownload: n }) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var CL = [
+var wL = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["wants", "JAV 入库"],
["source", "来源和凭证"]
-], wL = (e) => CL.some(([t]) => t === e);
-function TL({ term: e, figure: t, unit: n }) {
+], TL = (e) => wL.some(([t]) => t === e);
+function EL({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: OE({
+ className: AE({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -46201,15 +46201,15 @@ function TL({ term: e, figure: t, unit: n }) {
});
}
function f_e(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(wL(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => LP(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => LP(e.sort, e.dir).dir), [_, v] = (0, R.useState)(Cme(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(wme(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = SS({
- queryKey: KP,
- queryFn: ({ signal: e }) => dF(e)
- }), w = SS({
+ let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(TL(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => RP(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => RP(e.sort, e.dir).dir), [_, v] = (0, R.useState)(Cme(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(wme(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = TS({
queryKey: qP,
queryFn: ({ signal: e }) => fF(e)
- }), T = SS({
+ }), w = TS({
queryKey: JP,
- queryFn: ({ signal: e }) => _F(e)
+ queryFn: ({ signal: e }) => pF(e)
+ }), T = TS({
+ queryKey: YP,
+ queryFn: ({ signal: e }) => vF(e)
}), E = C.data || { sources: [] }, D = w.data || {
root: "",
providers: []
@@ -46226,10 +46226,10 @@ function f_e(e) {
tab: e.tab ?? l,
page: e.page ?? d,
sort: n === "checked" ? "" : n,
- dir: r === IP[n] ? "" : r
+ dir: r === LP[n] ? "" : r
});
- }, A = sF(O), j = O.filter($P).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !EF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, B.jsxs)(jE, { children: [
+ }, A = cF(O), j = O.filter(eF).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !DF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
o ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
title: "本机只能浏览",
@@ -46244,61 +46244,61 @@ function f_e(e) {
children: s
}) : null,
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: pde,
+ className: lde,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, B.jsx)(TL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "关注创作者",
figure: A.length,
unit: "位"
}),
- /* @__PURE__ */ (0, B.jsx)(TL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "启用来源",
figure: M,
unit: `/ ${O.length}`
}),
- /* @__PURE__ */ (0, B.jsx)(TL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "检查失败",
figure: j,
unit: "个来源"
}),
- /* @__PURE__ */ (0, B.jsx)(TL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "未看更新",
figure: E.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, B.jsx)(TL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "JAV 订阅",
figure: ee,
unit: "位"
}),
- /* @__PURE__ */ (0, B.jsx)(TL, {
+ /* @__PURE__ */ (0, B.jsx)(EL, {
term: "未看新作",
figure: T.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, B.jsxs)(pk, {
+ /* @__PURE__ */ (0, B.jsxs)(hk, {
selectedKey: l,
onSelectionChange: (e) => {
let t = String(e);
- wL(t) && (u(t), k({ tab: t }));
+ TL(t) && (u(t), k({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, B.jsx)(mk, {
+ /* @__PURE__ */ (0, B.jsx)(gk, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: CL.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(hk, {
+ children: wL.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(_k, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && N ? `${t}(${N})` : t
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "list",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, B.jsx)(Uge, {
@@ -46331,7 +46331,7 @@ function f_e(e) {
}
})
}),
- /* @__PURE__ */ (0, B.jsxs)(gk, {
+ /* @__PURE__ */ (0, B.jsxs)(vk, {
id: "add",
className: "flex flex-col gap-8",
children: [/* @__PURE__ */ (0, B.jsx)(zhe, {
@@ -46350,7 +46350,7 @@ function f_e(e) {
sources: E.sources
})]
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "feeds",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, B.jsx)(Qge, {
@@ -46358,7 +46358,7 @@ function f_e(e) {
toast: r
})
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "wants",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, B.jsx)(d_e, {
@@ -46367,7 +46367,7 @@ function f_e(e) {
cloudDownload: a
})
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "source",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, B.jsx)(Zhe, {
@@ -46382,7 +46382,7 @@ function f_e(e) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function EL({ value: e }) {
+function DL({ value: e }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
@@ -46390,7 +46390,7 @@ function EL({ value: e }) {
});
}
var p_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 DL({ tabs: e, value: t, label: n, onChange: r }) {
+function OL({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -46418,7 +46418,7 @@ function DL({ 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 ? xA(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? wA(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
role: "tab",
@@ -46441,7 +46441,7 @@ function DL({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var OL = () => /* @__PURE__ */ (0, B.jsx)("span", {
+var kL = () => /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
@@ -46452,12 +46452,12 @@ function m_e({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": kN(t.online, e.cat),
+ "data-tag-cat": PN(t.online, e.cat),
"aria-pressed": n,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, B.jsx)(OL, {}),
+ /* @__PURE__ */ (0, B.jsx)(kL, {}),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -46475,14 +46475,14 @@ function h_e({ groups: e, actions: t }) {
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, B.jsxs)("section", {
"data-alpha-group": r,
- className: OE({
+ className: AE({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, B.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, B.jsx)(EL, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, B.jsx)(DL, { value: n.length })]
}), /* @__PURE__ */ (0, B.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
children: n.map((e) => /* @__PURE__ */ (0, B.jsx)(m_e, {
@@ -46502,7 +46502,7 @@ function __e({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": kN(t.online, e.cat),
+ "data-tag-cat": PN(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",
@@ -46524,15 +46524,15 @@ var v_e = [[
"text-aa"
]];
function y_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, B.jsx)(lA, {
+ return /* @__PURE__ */ (0, B.jsx)(fA, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, B.jsxs)(uA, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, B.jsxs)(pA, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : kN(n, e),
+ "data-tag-cat": e === "all" ? "all" : PN(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, B.jsx)(OL, {}), r]
+ children: [/* @__PURE__ */ (0, B.jsx)(kL, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsx)("span", {
@@ -46551,19 +46551,19 @@ function y_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, B.jsx)(RO, {
+ /* @__PURE__ */ (0, B.jsx)(BO, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${vA}`,
+ className: `ml-auto ${xA}`,
children: v_e.map(([e, t, n]) => {
- let r = xA(n);
- return /* @__PURE__ */ (0, B.jsx)(zO, {
+ let r = wA(n);
+ return /* @__PURE__ */ (0, B.jsx)(VO, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: yA,
+ className: SA,
children: /* @__PURE__ */ (0, B.jsx)("span", {
title: t,
className: "contents",
@@ -46576,12 +46576,12 @@ function y_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, B.jsxs)(iS, {
+ return /* @__PURE__ */ (0, B.jsxs)(sS, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, B.jsx)(HM, {
+ /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -46621,7 +46621,7 @@ var x_e = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], kL = [{
+}], AL = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -46650,19 +46650,19 @@ var x_e = [{
]]
};
function C_e({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, B.jsx)(hA, {
- "aria-label": `${vN[e]}索引版式`,
+ return /* @__PURE__ */ (0, B.jsx)(vA, {
+ "aria-label": `${CN[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${gA}`,
- children: S_e[CN(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = xA(n);
- return /* @__PURE__ */ (0, B.jsx)(zO, {
+ className: `flex-none max-board-narrow:order-3 ${yA}`,
+ children: S_e[ON(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = wA(n);
+ return /* @__PURE__ */ (0, B.jsx)(VO, {
value: e,
"aria-label": t,
- className: Qce,
+ className: Xce,
children: /* @__PURE__ */ (0, B.jsx)("span", {
title: t,
className: "contents",
@@ -46672,7 +46672,7 @@ function C_e({ kind: e, layout: t, onChange: n }) {
})
});
}
-var w_e = xA("search");
+var w_e = wA("search");
function T_e({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, R.useState)(t), a = (0, R.useRef)(!1), o = (0, R.useRef)(void 0);
(0, R.useEffect)(() => () => clearTimeout(o.current), []);
@@ -46688,13 +46688,13 @@ function T_e({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, B.jsx)(vk, {
+ children: /* @__PURE__ */ (0, B.jsx)(bk, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, B.jsx)(bk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {
type: "search",
leadingIcon: w_e,
spellCheck: !1,
@@ -46707,13 +46707,13 @@ function T_e({ label: e, value: t, onQuery: n }) {
});
}
function E_e(e) {
- let [t, n] = (0, R.useState)(() => wN({
+ let [t, n] = (0, R.useState)(() => kN({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = vN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
+ })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = CN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
(0, R.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -46723,7 +46723,7 @@ function E_e(e) {
...r
};
y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, x = ON(TN(t)), S = ES({
+ }, x = NN(AN(t)), S = kS({
queryKey: x.queryKey,
queryFn: ({ pageParam: e, signal: t }) => x.queryFn({
pageParam: e,
@@ -46731,22 +46731,22 @@ function E_e(e) {
}),
initialPageParam: 0,
getNextPageParam: x.getNextPageParam,
- placeholderData: v ? DS.keepPreviousData : void 0
- }), C = zfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Bfe(C.length, !!S.hasNextPage);
+ placeholderData: v ? AS.keepPreviousData : void 0
+ }), C = Ffe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Ife(C.length, !!S.hasNextPage);
(0, R.useLayoutEffect)(() => {
l.current && se(l.current);
}, [r]);
let E = (0, R.useMemo)(() => u === "tags" ? C.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [C, u]), D = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? Ufe(E, (t) => e.tagLabel(t)) : [], [
+ })) : [], [C, u]), D = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? zfe(E, (t) => e.tagLabel(t)) : [], [
E,
p,
u
]), O = (t) => {
i(t), e.savePreference({ layout: t });
- }, k = u === "tags" ? /* @__PURE__ */ (0, B.jsx)(DL, {
- tabs: kL,
+ }, k = u === "tags" ? /* @__PURE__ */ (0, B.jsx)(OL, {
+ tabs: AL,
value: f,
label: "词表",
onChange: (e) => {
@@ -46756,14 +46756,14 @@ function E_e(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, B.jsx)(DL, {
- tabs: kL,
+ }) : u === "performers" ? /* @__PURE__ */ (0, B.jsx)(OL, {
+ tabs: AL,
value: f,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), b({ scope: t });
}
- }) : CN(u) ? /* @__PURE__ */ (0, B.jsx)(DL, {
+ }) : ON(u) ? /* @__PURE__ */ (0, B.jsx)(OL, {
tabs: x_e,
value: u,
label: "公司类型",
@@ -46781,7 +46781,7 @@ function E_e(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, j = (g ? bN : yN).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, j = (g ? TN : wN).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, B.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -46796,12 +46796,12 @@ function E_e(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: h
}),
- SN(u) ? /* @__PURE__ */ (0, B.jsx)("span", {
+ DN(u) ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: S.isPending ? "" : T
}) : null,
- SN(u) ? /* @__PURE__ */ (0, B.jsx)(C_e, {
+ DN(u) ? /* @__PURE__ */ (0, B.jsx)(C_e, {
kind: u,
layout: r,
onChange: O
@@ -46845,8 +46845,8 @@ function E_e(e) {
mode: p
}) }
});
- if (S.isError) return /* @__PURE__ */ (0, B.jsx)(kE, {
- icon: xA("search"),
+ if (S.isError) return /* @__PURE__ */ (0, B.jsx)(jE, {
+ icon: wA("search"),
title: `没能读取${h}`,
actions: /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
@@ -46861,12 +46861,12 @@ function E_e(e) {
online: g || _,
configurable: e.configurable
});
- if (_) return /* @__PURE__ */ (0, B.jsx)(Gfe, {
+ if (_) return /* @__PURE__ */ (0, B.jsx)(Vfe, {
items: C,
layout: r,
props: e
});
- if (SN(u)) return /* @__PURE__ */ (0, B.jsx)(MN, {
+ if (DN(u)) return /* @__PURE__ */ (0, B.jsx)(LN, {
kind: u,
items: C,
layout: r,
@@ -46895,7 +46895,7 @@ function E_e(e) {
disabled: S.isFetchingNextPage,
"aria-busy": S.isFetchingNextPage || void 0,
onClick: () => void S.fetchNextPage(),
- children: S.isFetchingNextPage ? /* @__PURE__ */ (0, B.jsx)(AE, {
+ children: S.isFetchingNextPage ? /* @__PURE__ */ (0, B.jsx)(ME, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
@@ -46922,23 +46922,23 @@ var D_e = {
agencies: "事务所"
};
function O_e({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, B.jsx)(kE, {
- icon: xA("search"),
+ if (t) return /* @__PURE__ */ (0, B.jsx)(jE, {
+ icon: wA("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, B.jsx)(DE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : D_e[e], a = /* @__PURE__ */ (0, B.jsx)(DE, {
+ let i = n && e === "performers" ? "创作者" : D_e[e], a = /* @__PURE__ */ (0, B.jsx)(kE, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, B.jsx)(kE, {
- icon: xA(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, B.jsx)(jE, {
+ icon: wA(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [r ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "primary",
@@ -46948,14 +46948,14 @@ function O_e({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var AL = {
+var jL = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, k_e = (e) => AL[e.junk_kind || "other"] || AL.other;
+}, k_e = (e) => jL[e.junk_kind || "other"] || jL.other;
function A_e(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
@@ -46967,7 +46967,7 @@ function A_e(e) {
glyph: "check"
};
}
-var jL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), j_e = (e, t) => [
+var ML = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), j_e = (e, t) => [
"junk-queue",
e.view,
e.kind,
@@ -46989,19 +46989,19 @@ async function N_e(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function ML({ name: e }) {
+function NL({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-var NL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+var PL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = e.junk_kind || "other", [f, p] = k_e(e), m = String(e.name || ""), h = A_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]") || NL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+ t.target.closest("[data-junk-actions]") || PL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- if (t.stopPropagation(), NL(r, t)) {
+ if (t.stopPropagation(), PL(r, t)) {
t.preventDefault(), a.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -47043,7 +47043,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, B.jsx)(ML, { name: p }), /* @__PURE__ */ (0, B.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, B.jsx)(NL, { name: p }), /* @__PURE__ */ (0, B.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-media-art": "thumb",
@@ -47055,7 +47055,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, B.jsx)(ML, { name: "check" })
+ children: /* @__PURE__ */ (0, B.jsx)(NL, { name: "check" })
})
]
}),
@@ -47092,7 +47092,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Qe("正在定位") }
- }) : /* @__PURE__ */ (0, B.jsx)(ML, { name: "folder-open" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ }) : /* @__PURE__ */ (0, B.jsx)(NL, { name: "folder-open" }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -47104,7 +47104,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, B.jsx)(ML, { name: h.glyph }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(NL, { name: h.glyph }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -47116,7 +47116,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, B.jsx)(ML, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(NL, { name: "trash" }), /* @__PURE__ */ (0, B.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -47131,7 +47131,7 @@ function P_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var F_e = (0, R.memo)(P_e), PL = [
+var F_e = (0, R.memo)(P_e), FL = [
[
"",
"全部",
@@ -47168,7 +47168,7 @@ var F_e = (0, R.memo)(P_e), PL = [
"hard-drive"
]
];
-function FL(e = "", t = "pending") {
+function IL(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
@@ -47179,41 +47179,41 @@ function I_e(e) {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: FL("", "pending")
+ href: IL("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: FL("", "dismissed")
+ href: IL("", "dismissed")
};
}
var L_e = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function IL({ name: e }) {
+function LL({ name: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
});
}
-function LL({ scope: e, count: t }) {
+function RL({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
function R_e({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = AM(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = fA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? PL.map(([e]) => jL(t, e)).join(",") : ""}`), l = I_e(s), u = (e) => {
+ let i = FM(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = hA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? FL.map(([e]) => ML(t, e)).join(",") : ""}`), l = I_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") || FL()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || IL()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, B.jsx)(EP, {
+ children: /* @__PURE__ */ (0, B.jsx)(DP, {
label: L_e(s),
figure: d,
pending: !t && !n,
@@ -47234,17 +47234,17 @@ function R_e({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- PL.map(([e, n, r]) => /* @__PURE__ */ (0, B.jsxs)("a", {
- href: FL(e, s),
+ FL.map(([e, n, r]) => /* @__PURE__ */ (0, B.jsxs)("a", {
+ href: IL(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, B.jsx)(IL, { name: r }),
+ /* @__PURE__ */ (0, B.jsx)(LL, { name: r }),
n,
- /* @__PURE__ */ (0, B.jsx)(LL, {
+ /* @__PURE__ */ (0, B.jsx)(RL, {
scope: e,
- count: t ? jL(t, e) : 0
+ count: t ? ML(t, e) : 0
})
]
}, e || "all")),
@@ -47258,9 +47258,9 @@ function R_e({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, B.jsx)(IL, { name: l.glyph }),
+ /* @__PURE__ */ (0, B.jsx)(LL, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, B.jsx)(LL, {
+ /* @__PURE__ */ (0, B.jsx)(RL, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -47273,12 +47273,12 @@ function R_e({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var z_e = xA("check"), B_e = (e, t) => e[1] === t.view && e[2] === t.kind;
+var z_e = wA("check"), B_e = (e, t) => e[1] === t.view && e[2] === t.kind;
function V_e(e) {
let t = {
kind: e.kind,
view: e.view
- }, n = SS({
+ }, n = TS({
queryKey: j_e(t, e.revision),
queryFn: ({ signal: e }) => N_e(t, e),
placeholderData: (e, n) => n && B_e(n.queryKey, t) ? e : void 0
@@ -47293,7 +47293,7 @@ function V_e(e) {
}, [e.countRow, i]), (0, R.useLayoutEffect)(() => {
r && n.data && Ue(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, np.createPortal)(/* @__PURE__ */ (0, B.jsx)(R_e, {
+ let { navigate: a } = e.actions, o = r ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(R_e, {
route: t,
page: n.data,
failed: n.isError && !n.data,
@@ -47318,7 +47318,7 @@ function H_e(e) {
}, [e]), t;
}
function U_e({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = AA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, R.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, R.useCallback)(() => {
+ let a = NA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, R.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, R.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -47326,13 +47326,13 @@ function U_e({ 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, B.jsx)(jA, {
+ if (!t) return /* @__PURE__ */ (0, B.jsx)(PA, {
message: Te(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, B.jsx)(kE, {
+ return /* @__PURE__ */ (0, B.jsx)(jE, {
icon: z_e,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
@@ -47372,10 +47372,10 @@ function W_e({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var RL = "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", G_e = {
- gray: `${RL} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${RL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${RL} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var zL = "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", G_e = {
+ gray: `${zL} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${zL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${zL} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
function K_e({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
@@ -47406,9 +47406,9 @@ function K_e({ value: e, max: t }) {
});
}
function q_e(e) {
- let { job: t } = FM(e), n = t.data, r = t.isError ? n ? tj : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+ let { job: t } = BM(e), n = t.data, r = t.isError ? n ? ij : U(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 ? "扫描与资料采集未完成" : rj(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? sae : Qie;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : oj(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? oae : Zie;
return /* @__PURE__ */ (0, B.jsxs)("aside", {
role: a ? "alert" : "status",
className: G_e[s],
@@ -47424,42 +47424,42 @@ function q_e(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, B.jsx)(Mk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Pk, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: mT,
+ trailingIcon: gT,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var J_e = "/api/playlists", zL = "/api/playlist", BL = ["playlists"], VL = (e) => W(J_e, e);
+var J_e = "/api/playlists", BL = "/api/playlist", VL = ["playlists"], HL = (e) => W(J_e, e);
async function Y_e(e) {
await p.fetchQuery({
- queryKey: BL,
- queryFn: () => VL(e),
+ queryKey: VL,
+ queryFn: () => HL(e),
staleTime: 0
});
}
-var HL = () => p.invalidateQueries({
- queryKey: BL,
+var UL = () => p.invalidateQueries({
+ queryKey: VL,
exact: !0
-}), X_e = (e) => e.current_asset_id || e.preview_asset_id || null, UL = (e) => `/poster?id=${e}&c=4`, Z_e = (e) => G(zL, {
+}), X_e = (e) => e.current_asset_id || e.preview_asset_id || null, WL = (e) => `/poster?id=${e}&c=4`, Z_e = (e) => G(BL, {
action: "create",
name: e,
asset_ids: []
-}), WL = (e, t) => G(zL, {
+}), GL = (e, t) => G(BL, {
action: "rename",
id: e,
name: t
-}), GL = (e) => G(zL, {
+}), KL = (e) => G(BL, {
action: "delete",
id: e
-}), Q_e = (e) => W(`${zL}?id=${e}`).catch(() => null);
+}), Q_e = (e) => W(`${BL}?id=${e}`).catch(() => null);
function $_e(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return G(zL, {
+ return G(BL, {
action: "create",
name: e.name,
asset_ids: t,
@@ -47469,18 +47469,18 @@ function $_e(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var eve = xA("ellipsis"), tve = xA("pencil"), nve = xA("trash"), rve = xA("playlist"), KL = SE(Ck, wk, "text-body-2-medium"), qL = "播放列表名称不能为空", JL = (e) => async () => {
+var eve = wA("ellipsis"), tve = wA("pencil"), nve = wA("trash"), rve = wA("playlist"), qL = wE(Tk, Ek, "text-body-2-medium"), JL = "播放列表名称不能为空", YL = (e) => async () => {
try {
await e();
} finally {
- HL();
+ UL();
}
};
function ive({ toast: e }) {
- let [t, n] = (0, R.useState)(""), [r, i] = (0, R.useState)(""), a = TS({
+ let [t, n] = (0, R.useState)(""), [r, i] = (0, R.useState)(""), a = OS({
mutationFn: (e) => Z_e(e),
onSuccess: (t) => {
- n(""), i(""), HL(), e("已新建播放列表", { undo: JL(() => GL(t.playlist.id)) });
+ n(""), i(""), UL(), e("已新建播放列表", { undo: YL(() => KL(t.playlist.id)) });
},
onError: (e) => i(U(e) || "新建失败")
});
@@ -47490,7 +47490,7 @@ function ive({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(qL);
+ i(JL);
return;
}
a.mutate(t);
@@ -47499,7 +47499,7 @@ function ive({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, B.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, B.jsx)(xk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -47528,14 +47528,14 @@ function ave({ target: e, close: t, toast: n }) {
});
return () => cancelAnimationFrame(t);
}, [e]);
- let c = TS({
- mutationFn: ({ row: e, value: t }) => WL(e.id, t),
+ let c = OS({
+ mutationFn: ({ row: e, value: t }) => GL(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), HL(), n("已重命名播放列表", { undo: JL(() => WL(r.id, r.name)) });
+ t(), UL(), n("已重命名播放列表", { undo: YL(() => GL(r.id, r.name)) });
},
onError: (e) => o(U(e))
});
- return /* @__PURE__ */ (0, B.jsx)(QN, {
+ return /* @__PURE__ */ (0, B.jsx)(rP, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -47547,7 +47547,7 @@ function ave({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(qL);
+ o(JL);
return;
}
c.mutate({
@@ -47558,11 +47558,11 @@ function ave({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, B.jsx)(tD, {
+ children: [/* @__PURE__ */ (0, B.jsx)(rD, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, B.jsx)(xk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Ck, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -47608,19 +47608,19 @@ function ove({ name: e, onRename: t, onDelete: n }) {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, B.jsx)(bO, {
+ }), /* @__PURE__ */ (0, B.jsx)(SO, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: Sk,
- children: /* @__PURE__ */ (0, B.jsxs)(wM, {
+ className: wk,
+ children: /* @__PURE__ */ (0, B.jsxs)(kM, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: KL,
+ className: qL,
onClick: () => o(t),
children: [/* @__PURE__ */ (0, B.jsx)(tve, {
"aria-hidden": !0,
@@ -47628,7 +47628,7 @@ function ove({ name: e, onRename: t, onDelete: n }) {
}), "编辑名称"]
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: KL,
+ className: qL,
onClick: () => o(n),
children: [/* @__PURE__ */ (0, B.jsx)(nve, {
"aria-hidden": !0,
@@ -47639,12 +47639,12 @@ function ove({ name: e, onRename: t, onDelete: n }) {
})] });
}
function sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
- let a = SS({
- queryKey: BL,
- queryFn: ({ signal: e }) => VL(e)
+ let a = TS({
+ queryKey: VL,
+ queryFn: ({ signal: e }) => HL(e)
}), [o, s] = (0, R.useState)(null), c = (0, R.useRef)(i);
(0, R.useEffect)(() => {
- c.current !== i && (c.current = i, HL());
+ c.current !== i && (c.current = i, UL());
}, [i]);
let l = a.data;
if (!l) return /* @__PURE__ */ (0, B.jsx)("div", {
@@ -47663,7 +47663,7 @@ function sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
danger: !0,
onConfirm: async () => {
let t = await Q_e(e.id);
- await GL(e.id), HL(), r("已删除播放列表", t ? { undo: JL(() => $_e(t)) } : void 0);
+ await KL(e.id), UL(), r("已删除播放列表", t ? { undo: YL(() => $_e(t)) } : void 0);
}
});
};
@@ -47685,13 +47685,13 @@ function sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
className: "card-grid-cover gap-4.5",
children: u.map((r) => {
let i = X_e(r);
- return /* @__PURE__ */ (0, B.jsx)(BA, {
+ return /* @__PURE__ */ (0, B.jsx)(UA, {
"data-playlist-card": String(r.id),
name: r.name,
caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: r.item_count,
- poster: r.preview_asset_id ? UL(r.preview_asset_id) : null,
- flipImages: async () => (r.preview_ids || []).map(UL),
+ poster: r.preview_asset_id ? WL(r.preview_asset_id) : null,
+ flipImages: async () => (r.preview_ids || []).map(WL),
canFlip: n,
faces: r.faces || [],
onOpenEntity: t,
@@ -47704,7 +47704,7 @@ function sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
})
}, r.id);
})
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
icon: rve,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
@@ -47723,7 +47723,7 @@ function cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
let o = () => t(e.id);
return /* @__PURE__ */ (0, B.jsxs)("li", {
"data-goal-id": e.id,
- className: OE({
+ className: AE({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -47739,7 +47739,7 @@ function cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, B.jsx)("img", {
- src: rue(e),
+ src: tue(e),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -47798,17 +47798,17 @@ function cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
});
}
function lve(e) {
- let t = SS({
- queryKey: dj,
- queryFn: ({ signal: e }) => fj(e)
+ let t = TS({
+ queryKey: mj,
+ queryFn: ({ signal: e }) => hj(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, B.jsx)(jE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "高清版目标读取失败",
children: t.error ? U(t.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, B.jsxs)(jE, { children: [/* @__PURE__ */ (0, B.jsx)(EP, {
+ return r.length ? /* @__PURE__ */ (0, B.jsxs)(NE, { children: [/* @__PURE__ */ (0, B.jsx)(DP, {
label: "待升级",
figure: `${n.total} 部作品`,
flush: !0
@@ -47818,9 +47818,9 @@ function lve(e) {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, B.jsx)(jE, { children: /* @__PURE__ */ (0, B.jsx)(kE, {
+ })] }) : /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: _ae,
+ icon: gae,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
@@ -47828,7 +47828,7 @@ function lve(e) {
//#endregion
//#region src/react/review/bulk-toolbar.tsx
function uve(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 = mue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+ 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 = fue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -47836,29 +47836,29 @@ function uve(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(Ek, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, B.jsxs)(Ek, {
+ i.length > 1 ? /* @__PURE__ */ (0, B.jsxs)(Ok, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(kk, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -47866,7 +47866,7 @@ function uve(e) {
/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: _T,
+ leadingIcon: yT,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -47877,12 +47877,12 @@ function uve(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, B.jsxs)(iS, {
+ }), /* @__PURE__ */ (0, B.jsxs)(sS, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, B.jsxs)(Ek, {
+ b ? /* @__PURE__ */ (0, B.jsxs)(Ok, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -47890,10 +47890,10 @@ function uve(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(kk, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ }), y.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: e
}, e))]
@@ -47939,14 +47939,14 @@ var dve = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, YL = "reviewgenretags";
+}, XL = "reviewgenretags";
function fve({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("datalist", {
- id: YL,
+ id: XL,
children: e.map((e) => /* @__PURE__ */ (0, B.jsx)("option", { value: e }, e))
}) : null;
}
-function XL({ candidate: e, selectable: t = !1 }) {
+function ZL({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -48002,17 +48002,17 @@ function pve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, B.jsx)(XL, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, B.jsx)(RO, {
+ children: /* @__PURE__ */ (0, B.jsx)(ZL, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, B.jsx)(BO, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, B.jsx)(zO, {
+ children: a.map((e) => /* @__PURE__ */ (0, B.jsx)(VO, {
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, B.jsx)(XL, {
+ children: /* @__PURE__ */ (0, B.jsx)(ZL, {
candidate: e,
selectable: !0
})
@@ -48020,14 +48020,14 @@ function pve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}) : null;
}
function mve({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = TS({
- mutationFn: (t) => Sue(e, t),
+ let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = OS({
+ mutationFn: (t) => Aj(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await wue();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await bue();
},
onError: (e) => s(U(e))
}), l = () => {
@@ -48046,16 +48046,16 @@ function mve({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, B.jsx)(vk, {
+ /* @__PURE__ */ (0, B.jsx)(bk, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(bk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {
size: "small",
- list: t.length ? YL : void 0,
+ list: t.length ? XL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -48088,7 +48088,7 @@ function mve({ genre: e, tags: t, locked: n, toast: r }) {
});
}
function hve({ row: e, tags: t, locked: n, toast: r }) {
- let i = yue(e);
+ let i = _ue(e);
return i.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -48106,8 +48106,8 @@ function hve({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var ZL = (e = "") => /^https?:\/\//i.test(e) ? e : "", gve = (e = "") => ZL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function QL({ url: e }) {
+var QL = (e = "") => /^https?:\/\//i.test(e) ? e : "", gve = (e = "") => QL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function $L({ url: e }) {
let t = gve(e || ""), [n, r] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
@@ -48123,7 +48123,7 @@ function QL({ url: e }) {
})
});
}
-function $L({ asset: e, openItem: t }) {
+function eR({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -48139,7 +48139,7 @@ function $L({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, B.jsx)(K_, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, B.jsx)(q_, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, B.jsx)("b", {
@@ -48149,7 +48149,7 @@ function $L({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: uae,
+ leadingIcon: lae,
onClick: () => t(e.id),
children: "打开原视频"
})]
@@ -48163,7 +48163,7 @@ function _ve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${aL}`,
+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${oL}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -48180,7 +48180,7 @@ function _ve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
});
}
function vve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = ZL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+ let o = QL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, B.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -48190,10 +48190,10 @@ function vve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, B.jsx)(DE, {
+ children: [o ? /* @__PURE__ */ (0, B.jsx)(kE, {
variant: "secondary",
size: "small",
- trailingIcon: CT,
+ trailingIcon: TT,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -48205,7 +48205,7 @@ function vve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, B.jsx)(QL, { url: e.preview_url }),
+ /* @__PURE__ */ (0, B.jsx)($L, { url: e.preview_url }),
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -48304,7 +48304,7 @@ function yve({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, B.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, B.jsx)(VM, {
+ children: /* @__PURE__ */ (0, B.jsx)(KM, {
size: "sm",
state: {
isSelected: n,
@@ -48315,7 +48315,7 @@ function yve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, B.jsx)(K_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, B.jsx)(q_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -48324,15 +48324,15 @@ function yve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var bve = OE({
+var bve = AE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), eR = "flex min-h-6 min-w-0 items-center", xve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+}), tR = "flex min-h-6 min-w-0 items-center", xve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
function Sve(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, R.useRef)(!1), m = AM(), h = AM(), g = t === "metadata_fields", _ = uue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = gue(t, n), x = Cj(t, n), S = Sj(t, n), C = _ue(n), w = vue(n), T = xj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
+ 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, R.useRef)(!1), m = FM(), h = FM(), g = t === "metadata_fields", _ = cue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = mue(t, n), x = Ej(t, n), S = Tj(t, n), C = hue(n), w = gue(n), T = wj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, B.jsx)($L, {
+ children: E.map((e) => /* @__PURE__ */ (0, B.jsx)(eR, {
asset: e,
openItem: f.openItem
}, e.id))
@@ -48347,7 +48347,7 @@ function Sve(e) {
image_version: n.image_version,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, B.jsx)($L, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, B.jsx)(eR, {
openItem: f.openItem,
asset: {
id: n.asset_id,
@@ -48371,9 +48371,9 @@ function Sve(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "inset",
- icon: aae,
+ icon: iae,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
}) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, B.jsx)(vve, {
@@ -48383,9 +48383,9 @@ function Sve(e) {
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, B.jsx)(QL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, B.jsxs)("h4", {
- className: `${eR} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, B.jsx)(TE, {
+ }) : /* @__PURE__ */ (0, B.jsx)($L, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, B.jsxs)("h4", {
+ className: `${tR} flex-wrap gap-2`,
+ children: [/* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "blue",
children: x
@@ -48395,7 +48395,7 @@ function Sve(e) {
children: S
})]
}) : /* @__PURE__ */ (0, B.jsx)("h4", {
- className: eR,
+ className: tR,
children: /* @__PURE__ */ (0, B.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -48411,14 +48411,14 @@ function Sve(e) {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, B.jsx)("span", {
- className: `${eR} shrink-0`,
+ className: `${tR} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, B.jsx)(HM, {
+ children: /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -48428,7 +48428,7 @@ function Sve(e) {
className: "min-w-0 flex-1",
children: M
}),
- O ? /* @__PURE__ */ (0, B.jsx)(TE, {
+ O ? /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -48452,7 +48452,7 @@ function Sve(e) {
!y && A ? A : null,
w.length || t === "creator_tags" ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: w.length ? w.map((e) => /* @__PURE__ */ (0, B.jsx)(TE, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, B.jsx)(DE, {
variant: "caption",
color: "soft",
children: e
@@ -48539,7 +48539,7 @@ function wve({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, B.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: pj(e, t).map((t, r) => /* @__PURE__ */ (0, B.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, B.jsx)("span", {
+ children: gj(e, t).map((t, r) => /* @__PURE__ */ (0, B.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, B.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -48568,42 +48568,42 @@ function Tve(e) {
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, R.useState)(yj(e.category) ? e.category : lue), [p, m] = (0, R.useState)("candidates"), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(1), [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, R.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, R.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, R.useState)(""), D = (0, R.useRef)(null), [O, k] = (0, R.useState)(0), [A, j] = (0, R.useState)(""), M = (0, R.useRef)(!0);
+ let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, R.useState)(Sj(e.category) ? e.category : sue), [p, m] = (0, R.useState)("candidates"), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(1), [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, R.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, R.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, R.useState)(""), D = (0, R.useRef)(null), [O, k] = (0, R.useState)(0), [A, j] = (0, R.useState)(""), M = (0, R.useRef)(!0);
(0, R.useEffect)(() => () => {
M.current = !1;
}, []);
- let N = SS({
- queryKey: _j,
- queryFn: ({ signal: e }) => Tj(e)
+ let N = TS({
+ queryKey: bj,
+ queryFn: ({ signal: e }) => Oj(e)
}).data || {
sections: {},
counts: {}
- }, ee = N.sections[d] || [], te = d === "metadata_fields", P = c, F = due(ee, te), ne = F.some(([e]) => e === p) ? p : "candidates", re = bj(ee, ne), ie = re.some((e) => e.key === h) ? h : "", ae = pue(fue(ee, ne, ie), _), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
+ }, ee = N.sections[d] || [], te = d === "metadata_fields", P = c, F = lue(ee, te), ne = F.some(([e]) => e === p) ? p : "candidates", re = Cj(ee, ne), ie = re.some((e) => e.key === h) ? h : "", ae = due(uue(ee, ne, ie), _), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
...e,
rows: e.rows.filter((e) => se.has(e.item_key))
- })).filter((e) => e.rows.length), le = (e) => x.get(e.item_key) || bue(e), ue = ee.filter((e) => y.has(e.item_key)), de = (e) => {
+ })).filter((e) => e.rows.length), le = (e) => x.get(e.item_key) || vue(e), ue = ee.filter((e) => y.has(e.item_key)), de = (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))));
}, fe = (e, t) => w((n) => new Map(n).set(e, t)), I = (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 });
- }, pe = TS({
- mutationFn: ({ row: e, status: t }) => Ej(wj(d, e, t, le(e))),
+ }, pe = OS({
+ mutationFn: ({ row: e, status: t }) => kj(Dj(d, e, t, le(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
fe(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- Dj(d, [t.item_key]), de([t.item_key]), s(xue(n));
+ Mj(d, [t.item_key]), de([t.item_key]), s(yue(n));
},
onError: (e, { row: t }) => fe(t.item_key, U(e))
- }), me = TS({
+ }), me = OS({
mutationFn: async (e) => {
let t = ue, n = [], r = [];
for (let [i, a] of t.entries()) {
if (!M.current) break;
E(`正在处理 ${i} / ${t.length}`);
try {
- let t = await Ej(wj(d, a, e, le(a)));
+ let t = await kj(Dj(d, a, e, le(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -48617,7 +48617,7 @@ function Tve(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- Dj(d, t), de(t), n.forEach(([e, t]) => fe(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ Mj(d, t), de(t), n.forEach(([e, t]) => fe(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
E(U(e));
@@ -48647,7 +48647,7 @@ function Tve(e) {
k(e), j("");
let t = await o(e);
M.current && (k(0), j(t));
- }, ve = Tue(N.mirror, l), ye = N.genre_tags || [], be = {
+ }, ve = xue(N.mirror, l), ye = N.genre_tags || [], be = {
openItem: i,
openEntity: a,
onReveal: _e,
@@ -48655,7 +48655,7 @@ function Tve(e) {
revealNote: A,
toast: s
};
- return /* @__PURE__ */ (0, B.jsx)(jE, { children: /* @__PURE__ */ (0, B.jsxs)("div", {
+ return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
P ? /* @__PURE__ */ (0, B.jsx)(Y, {
@@ -48672,12 +48672,12 @@ function Tve(e) {
children: ve
}) : null,
/* @__PURE__ */ (0, B.jsx)(fve, { tags: ye }),
- /* @__PURE__ */ (0, B.jsxs)(pk, {
+ /* @__PURE__ */ (0, B.jsxs)(hk, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
onSelectionChange: (e) => {
let t = String(e);
- yj(t) && I(t);
+ Sj(t) && I(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -48686,23 +48686,23 @@ function Tve(e) {
children: [/* @__PURE__ */ (0, B.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, B.jsx)(mk, {
+ }), /* @__PURE__ */ (0, B.jsx)(gk, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: cue.map((e) => {
+ children: oue.map((e) => {
let t = Number(N.counts[e] || 0);
- return /* @__PURE__ */ (0, B.jsxs)(hk, {
+ return /* @__PURE__ */ (0, B.jsxs)(_k, {
id: e,
className: Cve,
- children: [vj[e], t ? /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [xj[e], t ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, B.jsxs)(gk, {
+ }), /* @__PURE__ */ (0, B.jsxs)(vk, {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
@@ -48722,7 +48722,7 @@ function Tve(e) {
onSelected: b,
selectedRows: ue,
metadata: te,
- approvable: ue.every((e) => xj(d, e)),
+ approvable: ue.every((e) => wj(d, e)),
busy: me.isPending,
feedback: T,
onUnifySource: ge,
@@ -48755,7 +48755,7 @@ function Tve(e) {
selected: y.has(e.item_key),
onSelect: (t, n) => b((r) => {
let i = new Set(r);
- return D.current = hue(i, oe, D.current, e.item_key, t, n), i;
+ return D.current = pue(i, oe, D.current, e.item_key, t, n), i;
}),
locked: P,
busy: pe.isPending && pe.variables?.row.item_key === e.item_key,
@@ -48770,8 +48770,8 @@ function Tve(e) {
handlers: be
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, B.jsx)(kE, {
- icon: Zie,
+ }, e.key)) : /* @__PURE__ */ (0, B.jsx)(jE, {
+ icon: Xie,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
@@ -48788,13 +48788,9 @@ function Tve(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Eve = "/api/scraping", Dve = "/api/scraping/settings", Ove = "/api/scraping/check", tR = "/api/scraping/cover", kve = "/api/scraping/amane-bridge", Ave = "/api/scraping/amane-bridge/check", jve = "/api/scraping/amane-bridge/rebuild", nR = ["scraping"], rR = ["scraping", "cover"], iR = ["scraping", "amane-bridge"], aR = (e) => W(Eve, e), oR = (e) => W(tR, e), sR = (e) => W(kve, e);
+var Eve = "/api/scraping", Dve = "/api/scraping/settings", Ove = "/api/scraping/check", nR = "/api/scraping/cover", kve = "/api/scraping/amane-bridge", Ave = "/api/scraping/amane-bridge/check", jve = "/api/scraping/amane-bridge/rebuild", rR = ["scraping"], iR = ["scraping", "cover"], aR = ["scraping", "amane-bridge"], oR = (e) => W(Eve, e), sR = (e) => W(nR, e), cR = (e) => W(kve, e);
async function Mve(e) {
await Promise.all([
- p.fetchQuery({
- queryKey: nR,
- queryFn: () => aR(e)
- }),
p.fetchQuery({
queryKey: rR,
queryFn: () => oR(e)
@@ -48802,6 +48798,10 @@ async function Mve(e) {
p.fetchQuery({
queryKey: iR,
queryFn: () => sR(e)
+ }),
+ p.fetchQuery({
+ queryKey: aR,
+ queryFn: () => cR(e)
})
]);
}
@@ -48810,8 +48810,8 @@ function Nve(e, t) {
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var Pve = [["peach", "Peach 代理"], ["direct", "直接连接"]], cR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function lR({ source: e }) {
+var Pve = [["peach", "Peach 代理"], ["direct", "直接连接"]], lR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function uR({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -48830,14 +48830,14 @@ function lR({ source: e }) {
});
}
function Fve() {
- return /* @__PURE__ */ (0, B.jsx)(lR, { source: "github" });
+ return /* @__PURE__ */ (0, B.jsx)(uR, { source: "github" });
}
function Ive({ source: e, toast: t }) {
- let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(cR[0][0]), [u, d] = (0, R.useState)(""), [f, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
+ let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(lR[0][0]), [u, d] = (0, R.useState)(""), [f, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
function g() {
a(""), s(""), d(""), m(""), h.current && (h.current.value = "");
}
- let _ = TS({
+ let _ = OS({
mutationFn: (t) => G(Dve, {
source: e.source,
network: n,
@@ -48846,12 +48846,12 @@ function Ive({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- p.setQueryData(nR, (t) => t && {
+ p.setQueryData(rR, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), g(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), v = TS({ mutationFn: () => G(Ove, { source: e.source }) }), y = _.isPending || v.isPending, b = (e) => {
+ }), v = OS({ mutationFn: () => G(Ove, { source: e.source }) }), y = _.isPending || v.isPending, b = (e) => {
e.preventDefault(), !y && (v.reset(), _.mutate(!1));
}, x = () => {
y || (v.reset(), _.mutate(!0));
@@ -48876,43 +48876,43 @@ function Ive({ source: e, toast: t }) {
}
}
let w = f || (_.error ? U(_.error) : "") || (v.error ? U(v.error) : ""), T = v.data?.results ?? [], E = n === "peach" || e.accepts_cookie || e.browser || !!w || T.length > 0;
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: e.label,
onSubmit: b,
aside: /* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(lR, { source: e.source }), /* @__PURE__ */ (0, B.jsx)(Bk, {
+ children: [/* @__PURE__ */ (0, B.jsx)(uR, { source: e.source }), /* @__PURE__ */ (0, B.jsx)(Hk, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, B.jsxs)(Pk, { children: [/* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [/* @__PURE__ */ (0, B.jsx)(Mk, {
label: "来源性质",
children: e.nature || "公开页面"
- }), /* @__PURE__ */ (0, B.jsx)(Ak, {
+ }), /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "连接方式",
- children: /* @__PURE__ */ (0, B.jsx)(Ek, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Pve.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: Pve.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
})
})] }),
- E ? /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ E ? /* @__PURE__ */ (0, B.jsxs)(Lk, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, B.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, B.jsx)(Mk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Pk, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: mT,
+ trailingIcon: gT,
children: "配置 Peach 代理"
})
}) : null,
@@ -48925,20 +48925,20 @@ function Ive({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, B.jsx)(hA, {
+ /* @__PURE__ */ (0, B.jsx)(vA, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), g();
},
- className: gA,
- children: cR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(zO, {
+ className: yA,
+ children: lR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
value: e,
- className: _A,
+ className: bA,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, B.jsx)(xk, {
+ c === "paste" ? /* @__PURE__ */ (0, B.jsx)(Ck, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -48947,7 +48947,7 @@ function Ive({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
@@ -48973,14 +48973,14 @@ function Ive({ source: e, toast: t }) {
]
})
] }) : null,
- w ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: w }) : null,
+ w ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: w }) : null,
T.map((t) => /* @__PURE__ */ (0, B.jsx)(Y, {
tone: t.ok ? "success" : "error",
children: Nve(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
onClick: x,
@@ -49003,25 +49003,25 @@ function Ive({ source: e, toast: t }) {
});
}
function Lve({ toast: e }) {
- let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = RM({
- queryKey: rR,
- queryFn: ({ signal: e }) => oR(e),
- start: () => G(tR, { code: t }),
+ let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = UM({
+ queryKey: iR,
+ queryFn: ({ signal: e }) => sR(e),
+ start: () => G(nR, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? U(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, B.jsx)(Nk, {
+ return /* @__PURE__ */ (0, B.jsx)(Fk, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
+ children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, B.jsx)(xk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -49036,7 +49036,7 @@ function Lve({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, B.jsx)(AE, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: s
@@ -49049,9 +49049,9 @@ function Lve({ toast: e }) {
});
}
function Rve({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = RM({
- queryKey: iR,
- queryFn: ({ signal: e }) => sR(e),
+ let { query: t, running: n, outcome: r, start: i } = UM({
+ queryKey: aR,
+ queryFn: ({ signal: e }) => cR(e),
start: () => G(jve, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
@@ -49061,45 +49061,45 @@ function Rve({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = TS({ mutationFn: () => G(Ave, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, B.jsx)(Nk, {
+ }), a = OS({ mutationFn: () => G(Ave, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {
title: "amane",
- children: /* @__PURE__ */ (0, B.jsx)(Fk, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: U(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? U(i.error) : a.error ? U(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "amane",
- aside: /* @__PURE__ */ (0, B.jsx)(Bk, {
+ aside: /* @__PURE__ */ (0, B.jsx)(Hk, {
href: o.repository,
leadingIcon: Fve,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, B.jsxs)(Vk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ /* @__PURE__ */ (0, B.jsxs)(Lk, {
divided: !0,
children: [
- /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -49108,7 +49108,7 @@ function Rve({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, B.jsx)(AE, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: c
@@ -49119,7 +49119,7 @@ function Rve({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -49137,11 +49137,11 @@ function Rve({ toast: e }) {
});
}
function zve({ toast: e }) {
- let t = SS({
- queryKey: nR,
- queryFn: ({ signal: e }) => aR(e)
+ let t = TS({
+ queryKey: rR,
+ queryFn: ({ signal: e }) => oR(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, B.jsxs)(jE, { children: [
+ return n ? /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
@@ -49152,7 +49152,7 @@ function zve({ toast: e }) {
toast: e
}, t.source)),
/* @__PURE__ */ (0, B.jsx)(Rve, { toast: e })
- ] }) : /* @__PURE__ */ (0, B.jsx)(jE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ ] }) : /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? U(t.error) : "读取采集来源失败"
@@ -49160,13 +49160,13 @@ function zve({ toast: e }) {
}
//#endregion
//#region src/react/search/search.ts
-var uR = /* @__PURE__ */ new Set([
+var dR = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), dR = /* @__PURE__ */ new Set(["asset"]), fR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+]), fR = /* @__PURE__ */ new Set(["asset"]), pR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
function Bve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
@@ -49174,7 +49174,7 @@ function Bve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
index: s++
};
return c.push(t), t;
- }, u = t.filter((t) => !e || fR(t).includes(fR(e)));
+ }, u = t.filter((t) => !e || pR(t).includes(pR(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -49212,7 +49212,7 @@ function Bve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: e.kind,
item: t
}))
- }), h = p.filter((e) => !dR.has(e.kind)).map(m), g = p.filter((e) => dR.has(e.kind)).map(m);
+ }), h = p.filter((e) => !fR.has(e.kind)).map(m), g = p.filter((e) => fR.has(e.kind)).map(m);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -49227,7 +49227,7 @@ function Vve(e, t, n = Math.random) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => fR(t) === fR(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => pR(t) === pR(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
@@ -49246,7 +49246,7 @@ var Hve = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), pR = (e) => Bve({
+}), mR = (e) => Bve({
query: e.query,
history: e.history,
picks: e.picks,
@@ -49254,7 +49254,7 @@ var Hve = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), Uve = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), mR = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
+}), Uve = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), hR = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
@@ -49278,7 +49278,7 @@ function Wve(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 = pR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, B.jsx)(qve, {
+ let c = mR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, B.jsx)(qve, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -49333,7 +49333,7 @@ function Gve(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- !t || !e().historyLimit || (s([t, ...o().filter((e) => fR(e) !== fR(t))]), G("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => pR(e) !== pR(t))]), G("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -49368,7 +49368,7 @@ function Gve(e, t, n, r) {
}, m = () => {
t.query = i().value.trim(), t.picks = t.query ? [] : Vve(t.pool, o()), t.active = -1;
let a = n();
- a && (Uve(pR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (Uve(mR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -49380,7 +49380,7 @@ function Gve(e, t, n, r) {
!n || e === t.kind || (t.kind = e, clearTimeout(t.timer), m(), t.rewind = !0, d(n, e).then(() => {
a() && t.kind === e && m();
}));
- }, _ = () => f() ? pR(t).options : [], v = (e) => {
+ }, _ = () => f() ? mR(t).options : [], v = (e) => {
let n = _();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, y = (t, n) => {
@@ -49393,7 +49393,7 @@ function Gve(e, t, n, r) {
i().blur(), e().actions.openItem(t.item.id);
return;
}
- if (t.type === "suggest" && uR.has(t.kind)) {
+ if (t.type === "suggest" && dR.has(t.kind)) {
b(t.kind, t.value);
return;
}
@@ -49445,7 +49445,7 @@ function Gve(e, t, n, r) {
await G("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => fR(t) !== fR(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => pR(t) !== pR(e))), t.active = -1, r();
},
pickKind: g
};
@@ -49462,7 +49462,7 @@ function Kve({ tabs: e, kind: t, onPick: n, wire: r }) {
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, B.jsx)(EL, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, B.jsx)(DL, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, B.jsxs)("div", {
ref: i,
@@ -49472,7 +49472,7 @@ function Kve({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var hR = (e) => e.preventDefault();
+var gR = (e) => e.preventDefault();
function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
@@ -49485,28 +49485,28 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, B.jsx)(mR, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, B.jsx)(hR, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, B.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: hR,
+ onMouseDown: gR,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, B.jsx)(mR, { name: "x" })
+ children: /* @__PURE__ */ (0, B.jsx)(hR, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = uR.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = dR.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, B.jsx)(gR, {
+ children: [/* @__PURE__ */ (0, B.jsx)(_R, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -49532,7 +49532,7 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, B.jsx)(_R, {
+ /* @__PURE__ */ (0, B.jsx)(vR, {
item: s,
kind: c
}),
@@ -49552,11 +49552,11 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: hR,
+ onMouseDown: gR,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, B.jsx)(gR, {
+ children: /* @__PURE__ */ (0, B.jsx)(_R, {
card: e,
helpers: n
})
@@ -49570,7 +49570,7 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, B.jsx)(_R, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, B.jsx)(vR, {
item: s,
kind: c
}) : null,
@@ -49583,13 +49583,13 @@ function qve({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function gR({ card: e, helpers: t }) {
+function _R({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, B.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function _R({ item: e, kind: t }) {
+function vR({ item: e, kind: t }) {
let n = {
id: e.entity_id,
has_image: e.has_image,
@@ -49604,11 +49604,11 @@ function _R({ item: e, kind: t }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var vR = "/api/configuration", Jve = "/api/pick-folder", yR = ["configuration"], bR = (e) => W(vR, e);
-async function xR(e) {
+var yR = "/api/configuration", Jve = "/api/pick-folder", bR = ["configuration"], xR = (e) => W(yR, e);
+async function SR(e) {
await p.fetchQuery({
- queryKey: yR,
- queryFn: () => bR(e)
+ queryKey: bR,
+ queryFn: () => xR(e)
});
}
//#endregion
@@ -49617,11 +49617,11 @@ var Yve = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名
//#endregion
//#region src/react/settings/entry-links-settings.tsx
function Zve({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.sites), i = PE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ let [n, r] = (0, R.useState)(e.sites), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -49630,9 +49630,9 @@ function Zve({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: Yve }),
- n.map((e) => /* @__PURE__ */ (0, B.jsx)(xk, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: Yve }),
+ n.map((e) => /* @__PURE__ */ (0, B.jsx)(Ck, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -49643,8 +49643,8 @@ function Zve({ initial: e, receipt: t }) {
validationBehavior: "aria",
hint: Xve
}, e.key)),
- i.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
...X(i.busy === "save"),
children: "保存配置"
@@ -49666,8 +49666,8 @@ function Qve({ data: e, receipt: t }) {
});
}
function $ve({ startup: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = PE(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = IE(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => G("/api/configuration/startup", {
@@ -49677,30 +49677,30 @@ function $ve({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, B.jsxs)(Pk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, B.jsx)(iL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, B.jsx)(iL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, B.jsx)(iL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -49708,11 +49708,11 @@ function $ve({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ e.message || c.error ? /* @__PURE__ */ (0, B.jsxs)(Lk, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, B.jsx)(Lk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(c.busy === "save"),
@@ -49723,7 +49723,7 @@ function $ve({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var SR = /* @__PURE__ */ new Set([
+var CR = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
@@ -49734,12 +49734,12 @@ var SR = /* @__PURE__ */ new Set([
65,
67,
90
-], CR = 120;
+], wR = 120;
function tye({ initial: e, initialJob: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, R.useState)(""), c = PE(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = SR.has(i.state);
+ }), [o, s] = (0, R.useState)(""), c = IE(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = CR.has(i.state);
(0, R.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -49756,7 +49756,7 @@ function tye({ initial: e, initialJob: t }) {
(0, R.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, R.useEffect)(() => {
- let e = new AbortController(), t = SR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = CR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await W("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -49769,9 +49769,9 @@ function tye({ initial: e, initialJob: t }) {
let n = await W("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= CR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= wR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < CR && (n = setTimeout(c, t));
+ !e.signal.aborted && o < wR && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -49785,57 +49785,57 @@ function tye({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(U(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, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, B.jsxs)(Vk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ /* @__PURE__ */ (0, B.jsxs)(Lk, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: g || n.message }) : /* @__PURE__ */ (0, B.jsx)(Lk, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || n.message }) : /* @__PURE__ */ (0, B.jsx)(zk, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, B.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(NE, {
+ /* @__PURE__ */ (0, B.jsx)(FE, {
label: "更新准备进度",
value: i.progress,
stops: eye
}),
- /* @__PURE__ */ (0, B.jsxs)(Lk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: _ })
+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsxs)(Ik, {
- status: /* @__PURE__ */ (0, B.jsx)(Bk, {
+ /* @__PURE__ */ (0, B.jsxs)(Rk, {
+ status: /* @__PURE__ */ (0, B.jsx)(Hk, {
href: n.release_url,
children: "查看发布页"
}),
@@ -49880,9 +49880,9 @@ function rye({ data: e, receipt: t, reopenTutorial: n }) {
initialJob: e.update_job
}) : null,
/* @__PURE__ */ (0, B.jsx)(oye, { facts: e.facts }),
- /* @__PURE__ */ (0, B.jsx)(Nk, {
+ /* @__PURE__ */ (0, B.jsx)(Fk, {
title: "系统诊断",
- children: /* @__PURE__ */ (0, B.jsx)(Fk, { children: /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(Mk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(Pk, {
href: "/diagnostics",
children: "打开系统诊断"
}) }) })
@@ -49899,10 +49899,10 @@ function rye({ data: e, receipt: t, reopenTutorial: n }) {
});
}
function iye({ receipt: e, reopenTutorial: t }) {
- let n = PE();
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ let n = IE();
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, B.jsxs)(Fk, { children: [/* @__PURE__ */ (0, B.jsx)(Lk, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: n.error }) : null] }), /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: n.error }) : null] }), /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...X(n.busy === "reopen"),
children: "重新打开教程"
@@ -49910,57 +49910,57 @@ function iye({ receipt: e, reopenTutorial: t }) {
});
}
function aye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = PE(e.error), s = (r) => {
+ let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = IE(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, B.jsxs)(Pk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, B.jsx)(iL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, B.jsx)(iL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, B.jsx)(Ek, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: nye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: nye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ o.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Rk, { children: o.error })
+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(o.busy === "save"),
@@ -49970,11 +49970,11 @@ function aye({ initial: e, receipt: t }) {
});
}
function oye({ facts: e }) {
- return /* @__PURE__ */ (0, B.jsx)(Nk, {
+ return /* @__PURE__ */ (0, B.jsx)(Fk, {
title: "运行信息",
- children: /* @__PURE__ */ (0, B.jsx)(Vk, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(Hk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Uk, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(Wk, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, B.jsx)(Bk, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, B.jsx)(Hk, {
href: e.download_url,
children: e.download_label
}) : null]
@@ -49995,26 +49995,26 @@ function sye({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
- e.available ? /* @__PURE__ */ (0, B.jsx)(Lk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, B.jsx)(HM, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ e.available ? /* @__PURE__ */ (0, B.jsx)(zk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, B.jsx)(Uk, {
+ /* @__PURE__ */ (0, B.jsx)(Gk, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, B.jsx)(NM, {
+ children: c.map((e) => /* @__PURE__ */ (0, B.jsx)(RM, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, B.jsx)(Ik, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(Rk, {
status: s ? /* @__PURE__ */ (0, B.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -50057,13 +50057,13 @@ var cye = 8e3, lye = [
function dye() {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, B.jsx)(Bk, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(zk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, B.jsx)(Hk, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, B.jsxs)(Uk, {
+ })] }), /* @__PURE__ */ (0, B.jsxs)(Gk, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, B.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
@@ -50095,9 +50095,9 @@ function dye() {
/* @__PURE__ */ (0, B.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, B.jsx)(Bk, {
+ /* @__PURE__ */ (0, B.jsx)(Hk, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -50109,7 +50109,7 @@ function dye() {
}
//#endregion
//#region src/react/settings/download-settings.tsx
-var fye = "/api/configuration/downloads", wR = "/api/configuration/downloads/check", pye = "/api/configuration/downloads/folder", mye = "/api/configuration/downloads/pikpak/login", hye = "/api/configuration/downloads/pikpak/logout", TR = "/api/configuration/downloads/pikpak/browser-login", ER = 2e3;
+var fye = "/api/configuration/downloads", TR = "/api/configuration/downloads/check", pye = "/api/configuration/downloads/folder", mye = "/api/configuration/downloads/pikpak/login", hye = "/api/configuration/downloads/pikpak/logout", ER = "/api/configuration/downloads/pikpak/browser-login", DR = 2e3;
function gye({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), o = n.pikpak.logged_in || !!i.trim();
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(_ye, {
@@ -50126,7 +50126,7 @@ function gye({ initial: e, receipt: t }) {
})] });
}
function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, R.useState)(e.config), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(String(e.config.wait_hours)), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(DR), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(!1), b = PE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
+ let [i, a] = (0, R.useState)(e.config), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(String(e.config.wait_hours)), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(OR), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(!1), b = IE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -50155,8 +50155,8 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
target: !e.config.targets[115],
root: !e.config.pikpak_root
};
- b.run("auto", (e) => W(wR, e), (e) => w(e, t), (e) => _(U(e)));
- }, []), /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ b.run("auto", (e) => W(TR, e), (e) => w(e, t), (e) => _(U(e)));
+ }, []), /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), C) {
@@ -50175,13 +50175,13 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
address: !i.config.clouddrive_address,
target: u,
root: !i.config.pikpak_root
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(DR), y(!1), _("")), n("已保存配置");
+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(OR), y(!1), _("")), n("已保存配置");
}, (e) => _(U(e)));
},
children: [
- /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "CloudDrive2 地址",
placeholder: "留空自动探测本机 19798 / 29798",
autoComplete: "off",
@@ -50193,7 +50193,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@ -50204,7 +50204,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "115 目标目录",
placeholder: "留空时按推送发现自动填写",
autoComplete: "off",
@@ -50216,7 +50216,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => S("115", e)
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "PikPak 目标目录",
placeholder: "以 / 开头的网盘路径",
autoComplete: "off",
@@ -50228,7 +50228,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, B.jsx)(Ek, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@ -50237,13 +50237,13 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
...i,
pikpak_root: e === null ? "" : String(e)
}),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, B.jsx)(Lk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@ -50254,9 +50254,9 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: l
})
] }),
- b.busy === "auto" ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ b.busy === "auto" ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(AE, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在检查 CloudDrive2" })
}) : null,
u ? /* @__PURE__ */ (0, B.jsx)(vye, {
report: u,
@@ -50282,11 +50282,11 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
} : void 0,
creating: b.busy === "folder"
}) : null,
- g || b.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ g || b.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Rk, { children: g || b.error })
+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || b.error })
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(Ik, {
+ /* @__PURE__ */ (0, B.jsxs)(Rk, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => {
@@ -50301,7 +50301,7 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("check", (e) => G(wR, t, "POST", e), (t) => w(t, e), (e) => _(U(e)));
+ b.run("check", (e) => G(TR, t, "POST", e), (t) => w(t, e), (e) => _(U(e)));
},
disabled: !e.available,
...X(b.busy === "check"),
@@ -50316,25 +50316,25 @@ function _ye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
]
});
}
-var DR = {
+var OR = {
target: null,
root: "",
saved: !1
};
function vye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Lk, {
divided: !0,
- children: [/* @__PURE__ */ (0, B.jsxs)(Vk, { children: [
- t ? /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
+ t ? /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, B.jsx)(Hk, {
+ a?.exists ? /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "115 目标目录",
children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, B.jsxs)(Hk, {
+ a && !a.exists ? /* @__PURE__ */ (0, B.jsxs)(Wk, {
term: "115 目标目录",
children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
@@ -50343,49 +50343,49 @@ function vye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, B.jsx)(Hk, {
+ n.root ? /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "PikPak 根目录",
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, B.jsx)(Hk, {
+ e.permissions.length ? /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "离线权限",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
}) : null,
- e.folder ? /* @__PURE__ */ (0, B.jsx)(Hk, {
+ e.folder ? /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, B.jsx)(Hk, {
+ e.quota ? /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "115 离线配额",
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, B.jsx)(Rk, { children: e }, e))]
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, B.jsx)(Bk, { children: e }, e))]
});
}
function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = PE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+ let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = IE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, R.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
try {
- let r = await W(TR, e.signal);
+ let r = await W(ER, e.signal);
if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
} catch (t) {
if (e.signal.aborted) return;
f(U(t));
}
- r = setTimeout(i, ER);
+ r = setTimeout(i, DR);
};
- return r = setTimeout(i, ER), () => {
+ return r = setTimeout(i, DR), () => {
e.abort(), clearTimeout(r);
};
}, [v]);
let y = () => {
- m(""), h.run("browser", (e) => G(TR, {}, "POST", e), (e) => {
+ m(""), h.run("browser", (e) => G(ER, {}, "POST", e), (e) => {
t(e), f("");
}, (e) => f(U(e)));
}, b = () => {
- h.run("cancel", (e) => G(`${TR}/cancel`, {}, "POST", e), (e) => {
+ h.run("cancel", (e) => G(`${ER}/cancel`, {}, "POST", e), (e) => {
t(e), f(""), m(e.pikpak_browser.message);
}, (e) => f(U(e)));
}, x = (e) => {
@@ -50407,7 +50407,7 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(U(e)));
}, C = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@ -50416,7 +50416,7 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@ -50425,7 +50425,7 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: o
}),
- /* @__PURE__ */ (0, B.jsx)(HM, {
+ /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: s,
isDisabled: !e.available,
onChange: c,
@@ -50436,7 +50436,7 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
title: "需要人机验证",
extra: /* @__PURE__ */ (0, B.jsx)("div", {
className: "pt-2",
- children: /* @__PURE__ */ (0, B.jsx)(Bk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Hk, {
href: l,
children: "打开 PikPak 验证页"
})
@@ -50449,32 +50449,32 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
...X(h.busy === "login"),
children: "登录"
}), T = _.state === "timeout" || _.state === "failed";
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "PikPak 账号",
onSubmit: x,
children: [
- g.logged_in ? /* @__PURE__ */ (0, B.jsxs)(Vk, { children: [/* @__PURE__ */ (0, B.jsx)(Hk, {
+ g.logged_in ? /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, {
term: "账号",
children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, B.jsx)(Hk, {
+ }), g.method === "browser" ? /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "登录方式",
children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, B.jsx)(Hk, {
+ }) : /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "密码",
children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : _.available ? /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),
- p ? T ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: p }) : /* @__PURE__ */ (0, B.jsx)(Lk, {
+ })] }) : _.available ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),
+ p ? T ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: p }) : /* @__PURE__ */ (0, B.jsx)(zk, {
role: "status",
children: p
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Uk, {
+ /* @__PURE__ */ (0, B.jsx)(Gk, {
summary: "用账号密码登录",
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
C,
/* @__PURE__ */ (0, B.jsx)("div", {
className: "flex justify-end",
@@ -50483,13 +50483,13 @@ function yye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
]
})
})
- ] }) : /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [/* @__PURE__ */ (0, B.jsx)(Lk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
- d || h.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ ] }) : /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
+ d || h.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Rk, { children: d || h.error })
+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: d || h.error })
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Ik, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, B.jsx)(AE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ /* @__PURE__ */ (0, B.jsx)(Rk, {
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, B.jsx)(ME, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, B.jsx)(J, {
onClick: S,
disabled: !e.available,
@@ -50526,11 +50526,11 @@ function bye({ className: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-folder-search" })
});
}
-var OR = [
+var kR = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], kR = (e) => Oe[e] || "database", xye = (e) => e === "115" || e === "pikpak";
+], AR = (e) => Oe[e] || "database", xye = (e) => e === "115" || e === "pikpak";
function Sye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
let [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)([]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = (0, R.useRef)(!1), m = (0, R.useRef)([]);
(0, R.useLayoutEffect)(() => {
@@ -50581,7 +50581,7 @@ function Cye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
className: "min-w-0 flex-1",
"aria-label": e,
placeholder: "本机文件夹路径",
@@ -50592,14 +50592,14 @@ function Cye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
isInvalid: !!r,
hint: r || void 0
}),
- /* @__PURE__ */ (0, B.jsx)(MM, {
+ /* @__PURE__ */ (0, B.jsx)(LM, {
icon: bye,
"aria-label": "选择文件夹",
onClick: o,
...X(a)
}),
- s ? /* @__PURE__ */ (0, B.jsx)(MM, {
- icon: vT,
+ s ? /* @__PURE__ */ (0, B.jsx)(LM, {
+ icon: bT,
"aria-label": "移除这个文件夹",
onClick: s
}) : null
@@ -50610,25 +50610,25 @@ function Cye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
})]
});
}
-function wye({ index: e, value: t, onChange: n, options: r = OR }) {
+function wye({ index: e, value: t, onChange: n, options: r = kR }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "媒体来源" }), /* @__PURE__ */ (0, B.jsx)(Ek, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体来源" }), /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": `媒体来源 ${e + 1}`,
selectedKey: t,
onSelectionChange: (e) => {
e !== null && n(String(e));
},
- children: r.map(([e, t]) => /* @__PURE__ */ (0, B.jsxs)(Dk, {
+ children: r.map(([e, t]) => /* @__PURE__ */ (0, B.jsxs)(kk, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, B.jsx)(Wk, { mark: kR(e) }), t]
+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: AR(e) }), t]
}, e))
})]
});
}
function Tye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
- return /* @__PURE__ */ (0, B.jsx)(xk, {
+ return /* @__PURE__ */ (0, B.jsx)(Ck, {
label: n,
placeholder: r,
value: e,
@@ -50637,42 +50637,42 @@ function Tye({ value: e, onChange: t, label: n = "Windows 中的对应路径", p
}
//#endregion
//#region src/react/settings/indexer-settings.tsx
-var AR = "/api/configuration/indexers";
+var jR = "/api/configuration/indexers";
function Eye({ receipt: e }) {
- let t = SS({
+ let t = TS({
queryKey: ["indexers"],
- queryFn: ({ signal: e }) => W(AR, e)
+ queryFn: ({ signal: e }) => W(jR, e)
});
- return t.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: U(t.error) }) : t.data ? /* @__PURE__ */ (0, B.jsx)(Dye, {
+ return t.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: U(t.error) }) : t.data ? /* @__PURE__ */ (0, B.jsx)(Dye, {
initial: t.data,
receipt: e
}) : null;
}
function Dye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.indexers), i = PE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ let [n, r] = (0, R.useState)(e.indexers), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "资源索引器",
onSubmit: (e) => {
- e.preventDefault(), i.run("save", (e) => G(AR, { indexers: n }, "POST", e), (e) => {
+ e.preventDefault(), i.run("save", (e) => G(jR, { indexers: n }, "POST", e), (e) => {
r(e.indexers), t("已保存索引器");
});
},
- children: [/* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "用户自配索引器。填写 Prowlarr 或 Jackett 提供的 Torznab API 地址,在活动页「云下载」中按番号搜索。" }),
+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "用户自配索引器。填写 Prowlarr 或 Jackett 提供的 Torznab API 地址,在活动页「云下载」中按番号搜索。" }),
n.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: `索引器 ${t + 1} 名称`,
value: e.name,
maxLength: 80,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { name: t })
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: `索引器 ${t + 1} API 地址`,
value: e.url,
type: "url",
@@ -50681,7 +50681,7 @@ function Dye({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { url: t })
}),
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: `索引器 ${t + 1} API key`,
type: "password",
autoComplete: "new-password",
@@ -50690,13 +50690,13 @@ function Dye({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { api_key: t })
}),
- /* @__PURE__ */ (0, B.jsx)(HM, {
+ /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: e.enabled,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { enabled: t }),
children: "启用 · 用户自配索引器"
}),
- e.api_key_set ? /* @__PURE__ */ (0, B.jsx)(HM, {
+ e.api_key_set ? /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: !!e.clear_api_key,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { clear_api_key: t }),
@@ -50710,8 +50710,8 @@ function Dye({ initial: e, receipt: t }) {
}) })
]
}, e.key)),
- i.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, B.jsxs)(Ik, {
+ i.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, B.jsxs)(Rk, {
status: "保存后生效;关闭或移除索引器会停止向它查询。",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
type: "button",
@@ -50734,7 +50734,7 @@ function Dye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var jR = [
+var MR = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -50782,7 +50782,7 @@ function Oye(e) {
let t = e === "local" ? "" : Oe[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var MR = "auto";
+var NR = "auto";
function kye({ value: e, label: t, kind: n = "local", onChange: r }) {
let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(e), [l, u] = Oye(n);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(J, {
@@ -50798,35 +50798,35 @@ function kye({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, B.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, B.jsx)(Wk, { mark: e || l }), ((e) => e && jR.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: e || l }), ((e) => e && MR.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, B.jsx)(bO, {
+ }), /* @__PURE__ */ (0, B.jsx)(SO, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: Sk,
- children: /* @__PURE__ */ (0, B.jsxs)(jO, {
+ className: wk,
+ children: /* @__PURE__ */ (0, B.jsxs)(NO, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, B.jsx)(tD, {
+ /* @__PURE__ */ (0, B.jsx)(rD, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, B.jsx)(RO, {
+ /* @__PURE__ */ (0, B.jsx)(BO, {
"aria-label": "候选图标",
- value: s || MR,
- onChange: (e) => c(e === MR ? "" : e),
+ value: s || NR,
+ onChange: (e) => c(e === NR ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: jR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(zO, {
- value: e || MR,
+ children: MR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
+ value: e || NR,
"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, B.jsx)(Wk, { mark: e || l })
- }, e || MR))
+ children: /* @__PURE__ */ (0, B.jsx)(Kk, { mark: e || l })
+ }, e || NR))
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -50850,13 +50850,13 @@ function kye({ value: e, label: t, kind: n = "local", onChange: r }) {
//#region src/react/settings/push-discovery-settings.tsx
var Aye = "/api/configuration/push-discovery", jye = "/api/configuration/push-discovery/secret";
function Mye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = PE(), l = AM(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = IE(), l = FM(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -50869,11 +50869,11 @@ function Mye({ initial: e, receipt: t }) {
c.run("save", (e) => G(Aye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
},
children: [
- /* @__PURE__ */ (0, B.jsxs)(Pk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, B.jsx)(iL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -50883,10 +50883,10 @@ function Mye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, B.jsx)(iL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -50896,10 +50896,10 @@ function Mye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, B.jsx)(iL, {
+ children: /* @__PURE__ */ (0, B.jsx)(aL, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -50910,30 +50910,30 @@ function Mye({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ d.enabled ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsxs)(Vk, { children: [d.watch_local ? /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [d.watch_local ? /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, B.jsx)(Hk, {
+ }) : null, /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, B.jsx)(Uk, {
+ }) }), /* @__PURE__ */ (0, B.jsx)(Gk, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, B.jsx)("div", {
className: "relative",
@@ -50944,17 +50944,17 @@ function Mye({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, B.jsx)(Lk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
+ })] }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
/* @__PURE__ */ (0, B.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -50962,7 +50962,7 @@ function Mye({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -50971,19 +50971,19 @@ function Mye({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, B.jsx)(Ek, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: u.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, B.jsx)(MM, {
- icon: vT,
+ /* @__PURE__ */ (0, B.jsx)(LM, {
+ icon: bT,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -51001,11 +51001,11 @@ function Mye({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ o || c.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Rk, { children: o || c.error })
+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, B.jsxs)(Ik, {
+ /* @__PURE__ */ (0, B.jsxs)(Rk, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => {
@@ -51026,7 +51026,7 @@ function Mye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Nye = (e) => OR.find(([t]) => t === e)?.[1] ?? e, Pye = async (e) => (await G(Jve, { initial: e })).path, NR = (e = "") => ({
+var Nye = (e) => kR.find(([t]) => t === e)?.[1] ?? e, Pye = async (e) => (await G(Jve, { initial: e })).path, PR = (e = "") => ({
path: e,
location: "local",
root: "",
@@ -51034,16 +51034,16 @@ var Nye = (e) => OR.find(([t]) => t === e)?.[1] ?? e, Pye = async (e) => (await
library_icon: ""
});
function Fye(e) {
- let t = e.media_sources?.filter((e) => OR.some(([t]) => t === e.location));
+ let t = e.media_sources?.filter((e) => kR.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
location: e.location,
root: e.root,
library: e.library || "",
library_icon: e.library_icon || ""
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => NR(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => PR(e));
}
-var Iye = (e) => !(e instanceof IS) || e.status !== 400 ? null : e.body?.errors ?? null;
+var Iye = (e) => !(e instanceof zS) || e.status !== 400 ? null : e.body?.errors ?? null;
function Lye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-6",
@@ -51072,17 +51072,17 @@ function Lye({ data: e, receipt: t }) {
function Rye({ data: e, receipt: t }) {
let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Sye({
initial: () => Fye(e),
- blank: () => NR(),
+ blank: () => PR(),
pickFolder: Pye,
describe: U
- }), [d, f] = (0, R.useState)(String(e.port)), [p, m] = (0, R.useState)(!1), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(""), [y, b] = (0, R.useState)(null), x = (0, R.useRef)(e.revision), S = PE();
+ }), [d, f] = (0, R.useState)(String(e.port)), [p, m] = (0, R.useState)(!1), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(""), [y, b] = (0, R.useState)(null), x = (0, R.useRef)(e.revision), S = IE();
(0, R.useEffect)(() => {
if (!y) return;
let e = setTimeout(() => location.assign(y.url), cye);
return () => clearTimeout(e);
}, [y]);
let C = (r) => {
- r.preventDefault(), v(""), S.run("save", (t) => G(vR, {
+ r.preventDefault(), v(""), S.run("save", (t) => G(yR, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -51095,14 +51095,14 @@ function Rye({ data: e, receipt: t }) {
s(t?.media_dirs ?? []), g(t?.port ?? ""), t || v(U(e));
});
};
- if (y) return /* @__PURE__ */ (0, B.jsx)(Nk, {
+ if (y) return /* @__PURE__ */ (0, B.jsx)(Fk, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, B.jsx)(Fk, { children: /* @__PURE__ */ (0, B.jsxs)(Y, {
+ children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsxs)(Y, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, B.jsx)(Mk, {
+ /* @__PURE__ */ (0, B.jsx)(Pk, {
href: y.url,
size: "small",
children: "进入馆藏"
@@ -51112,14 +51112,14 @@ function Rye({ data: e, receipt: t }) {
}) })
});
let w = n.some((e) => xye(e.location)), T = w ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "这台电脑",
onSubmit: C,
- children: [/* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(zk, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, B.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -51134,7 +51134,7 @@ function Rye({ data: e, receipt: t }) {
onPick: () => void l(i),
onRemove: n.length > 1 ? () => a(i) : void 0,
children: [
- /* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(Ck, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -51143,7 +51143,7 @@ function Rye({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "媒体库图标" }), /* @__PURE__ */ (0, B.jsx)(kye, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体库图标" }), /* @__PURE__ */ (0, B.jsx)(kye, {
label: `媒体库图标 ${i + 1}`,
value: t.library_icon,
kind: t.location,
@@ -51170,17 +51170,17 @@ function Rye({ data: e, receipt: t }) {
]
}),
w ? /* @__PURE__ */ (0, B.jsx)(dye, {}) : null,
- T.map((e) => /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ T.map((e) => /* @__PURE__ */ (0, B.jsxs)(zk, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, B.jsxs)(Bk, {
+ /* @__PURE__ */ (0, B.jsxs)(Hk, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(Lk, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, B.jsx)(xk, {
+ e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(zk, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, B.jsx)(Ck, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -51190,7 +51190,7 @@ function Rye({ data: e, receipt: t }) {
isInvalid: !!h,
hint: h || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, B.jsx)(HM, {
+ /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: p,
onChange: m,
children: "保存后扫描并补全资料"
@@ -51200,7 +51200,7 @@ function Rye({ data: e, receipt: t }) {
title: "没有保存",
children: _
}) : null
- ] }), /* @__PURE__ */ (0, B.jsx)(Ik, {
+ ] }), /* @__PURE__ */ (0, B.jsx)(Rk, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
@@ -51235,20 +51235,20 @@ function zye({ online: e }) {
});
}
function Bye({ data: e }) {
- let t = e.media_sources, n = PE();
- return t ? /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ let t = e.media_sources, n = IE();
+ return t ? /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, B.jsx)(Vk, { children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(Hk, {
- term: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, { mark: kR(e.location) }), Nye(e.location)] }),
+ /* @__PURE__ */ (0, B.jsx)(Uk, { children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(Wk, {
+ term: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: AR(e.location) }), Nye(e.location)] }),
children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, B.jsx)(zye, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {
+ n.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {
divided: !0,
- children: /* @__PURE__ */ (0, B.jsx)(Rk, { children: n.error })
+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(J, {
- onClick: () => void n.run("refresh", (e) => bR(e), (e) => p.setQueryData(yR, e)),
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ onClick: () => void n.run("refresh", (e) => xR(e), (e) => p.setQueryData(bR, e)),
...X(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -51258,7 +51258,7 @@ function Bye({ data: e }) {
//#endregion
//#region src/react/settings/password-pair.tsx
function Vye({ 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, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(xk, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
id: "access-password",
type: "password",
label: e,
@@ -51271,7 +51271,7 @@ function Vye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
validationBehavior: "aria",
isInvalid: !a && !!o,
hint: a ? s : o || s
- }), /* @__PURE__ */ (0, B.jsx)(xk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Ck, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -51294,7 +51294,7 @@ var Hye = {
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
function Uye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = PE(), g = (e) => {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = IE(), 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) {
@@ -51311,28 +51311,28 @@ function Uye({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof IS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof zS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(U(e));
});
}, _ = Hye[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
- _ ? /* @__PURE__ */ (0, B.jsx)(Lk, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ _ ? /* @__PURE__ */ (0, B.jsx)(zk, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, B.jsx)(HM, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, B.jsx)(qM, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, B.jsx)(xk, {
+ n.mode === "password" ? /* @__PURE__ */ (0, B.jsx)(Ck, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -51361,9 +51361,9 @@ function Uye({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, B.jsx)(Ik, {
+ }), v ? /* @__PURE__ */ (0, B.jsx)(Rk, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
@@ -51380,12 +51380,12 @@ var Wye = 2e3, Gye = [["quick", "临时链接"], ["named", "命名隧道"]], Kye
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
function qye({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)({}), g = PE(), _ = r.state === "starting" || r.state === "running", v = r.named_available && s === "named";
+ let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)({}), g = IE(), _ = r.state === "starting" || r.state === "running", v = r.named_available && s === "named";
(0, R.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- bR(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (p.setQueryData(yR, t), i(t.tunnel), o(t.revision));
+ xR(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (p.setQueryData(bR, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
}, Wye);
return () => {
@@ -51402,30 +51402,30 @@ function qye({ 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 IS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof zS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? h(n) : g.setError(U(e));
});
};
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), y("save", _, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, B.jsxs)(Fk, { children: [
- r.named_available ? /* @__PURE__ */ (0, B.jsx)(hA, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [
+ r.named_available ? /* @__PURE__ */ (0, B.jsx)(vA, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: _,
onChange: (e) => c(e),
- className: gA,
- children: Gye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(zO, {
+ className: yA,
+ children: Gye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {
value: e,
- className: _A,
+ className: bA,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Lk, { children: Kye[v ? "named" : "quick"] }),
- v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(xk, {
+ /* @__PURE__ */ (0, B.jsx)(zk, { children: Kye[v ? "named" : "quick"] }),
+ v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ck, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -51436,7 +51436,7 @@ function qye({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!m.hostname,
hint: m.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, B.jsx)(xk, {
+ }), /* @__PURE__ */ (0, B.jsx)(Ck, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -51456,7 +51456,7 @@ function qye({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, B.jsx)(Bk, {
+ children: /* @__PURE__ */ (0, B.jsx)(Hk, {
href: r.url,
children: r.url
})
@@ -51466,9 +51466,9 @@ function qye({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: r.error }) : null,
- g.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: g.error }) : null
- ] }), /* @__PURE__ */ (0, B.jsxs)(Ik, {
+ r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null,
+ g.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: g.error }) : null
+ ] }), /* @__PURE__ */ (0, B.jsxs)(Rk, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
onClick: () => y("toggle", !_, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -51510,8 +51510,8 @@ function Yye({ data: e, receipt: t }) {
});
}
function Xye({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = PE();
- return /* @__PURE__ */ (0, B.jsxs)(Nk, {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = IE();
+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -51523,25 +51523,25 @@ function Xye({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, B.jsx)(Pk, { children: /* @__PURE__ */ (0, B.jsx)(Ak, {
+ /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(Mk, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, B.jsx)(Ek, {
+ children: /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Jye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: Jye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, B.jsxs)(Fk, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, B.jsxs)(Lk, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, B.jsx)(xk, {
+ i === "proxy" ? /* @__PURE__ */ (0, B.jsx)(Ck, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -51555,10 +51555,10 @@ function Xye({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(J, {
+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {
type: "submit",
...X(c.busy === "save"),
children: "保存配置"
@@ -51569,9 +51569,9 @@ function Xye({ initial: e, receipt: t }) {
//#endregion
//#region src/react/settings/configuration-page.tsx
function Zye({ receipt: e, reopenTutorial: t }) {
- let n = SS({
- queryKey: yR,
- queryFn: ({ signal: e }) => bR(e)
+ let n = TS({
+ queryKey: bR,
+ queryFn: ({ signal: e }) => xR(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, B.jsx)("div", {
className: "configpage",
@@ -51616,14 +51616,14 @@ function Zye({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Qye = "/api/stats", PR = ["stats"], FR = (e) => W(Qye, e);
+var Qye = "/api/stats", FR = ["stats"], IR = (e) => W(Qye, e);
async function $ye(e) {
await p.fetchQuery({
- queryKey: PR,
- queryFn: () => FR(e)
+ queryKey: FR,
+ queryFn: () => IR(e)
});
}
-var IR = (e, t) => t ? Math.round(e / t * 100) : 0, ebe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, LR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, RR = (e) => (e.max_reached || 0) * 100, tbe = (e) => e.kind === "online" ? "在线直接观看" : LR(e) < RR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", nbe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, rbe = (e) => Math.max(1, ...e) * 1.1, ibe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), abe = {
+var LR = (e, t) => t ? Math.round(e / t * 100) : 0, ebe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, RR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, zR = (e) => (e.max_reached || 0) * 100, tbe = (e) => e.kind === "online" ? "在线直接观看" : RR(e) < zR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", nbe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, rbe = (e) => Math.max(1, ...e) * 1.1, ibe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), abe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -51639,10 +51639,10 @@ var IR = (e, t) => t ? Math.round(e / t * 100) : 0, ebe = (e) => e >= 3600 ? `${
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, zR = (e, t = {}) => e.map((e) => ({
+}, BR = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), cbe = (e) => zR(e, sbe), lbe = [
+})), cbe = (e) => BR(e, sbe), lbe = [
[
1,
1,
@@ -51682,41 +51682,41 @@ var IR = (e, t) => t ? Math.round(e / t * 100) : 0, ebe = (e) => e >= 3600 ? `${
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
})), dbe = /* @__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 BR(e) {
+function VR(e) {
return typeof e == "string" && dbe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
var fbe = /* @__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 VR(e) {
+function HR(e) {
return typeof e == "string" && fbe.has(e);
}
-function HR(e) {
+function UR(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function UR(e) {
+function WR(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VR(n) || HR(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HR(n) || UR(n)) && (t[n] = e[n]);
return t;
}
-function WR(e) {
+function GR(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, R.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return UR(t);
+ return WR(t);
}
- return typeof e == "object" && !Array.isArray(e) ? UR(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? WR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function GR(e) {
+function KR(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VR(n) || HR(n) || BR(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HR(n) || UR(n) || VR(n)) && (t[n] = e[n]);
return t;
}
function pbe(e) {
- return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? GR(e.props) : typeof e == "object" && !Array.isArray(e) ? GR(e) : null;
+ return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? KR(e.props) : typeof e == "object" && !Array.isArray(e) ? KR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
@@ -51730,14 +51730,14 @@ var mbe = [
"title",
"desc"
];
-function KR() {
- return KR = Object.assign ? Object.assign.bind() : function(e) {
+function qR() {
+ return qR = 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;
- }, KR.apply(null, arguments);
+ }, qR.apply(null, arguments);
}
function hbe(e, t) {
if (e == null) return {};
@@ -51757,14 +51757,14 @@ function gbe(e, t) {
}
return n;
}
-var qR = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var JR = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = hbe(e, mbe), d = a || {
width: r,
height: i,
x: 0,
y: 0
- }, f = xh("recharts-surface", o);
- return /*#__PURE__*/ R.createElement("svg", KR({}, GR(u), {
+ }, f = Sh("recharts-surface", o);
+ return /*#__PURE__*/ R.createElement("svg", qR({}, KR(u), {
className: f,
width: r,
height: i,
@@ -51773,14 +51773,14 @@ var qR = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
ref: t
}), /*#__PURE__*/ R.createElement("title", null, c), /*#__PURE__*/ R.createElement("desc", null, l), n);
}), _be = ["children", "className"];
-function JR() {
- return JR = Object.assign ? Object.assign.bind() : function(e) {
+function YR() {
+ return YR = 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;
- }, JR.apply(null, arguments);
+ }, YR.apply(null, arguments);
}
function vbe(e, t) {
if (e == null) return {};
@@ -51800,39 +51800,39 @@ function ybe(e, t) {
}
return n;
}
-var YR = /*#__PURE__*/ R.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = vbe(e, _be), a = xh("recharts-layer", r);
- return /*#__PURE__*/ R.createElement("g", JR({ className: a }, GR(i), { ref: t }), n);
-}), XR = /*#__PURE__*/ (0, R.createContext)(null), bbe = () => (0, R.useContext)(XR);
+var XR = /*#__PURE__*/ R.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = vbe(e, _be), a = Sh("recharts-layer", r);
+ return /*#__PURE__*/ R.createElement("g", YR({ className: a }, KR(i), { ref: t }), n);
+}), ZR = /*#__PURE__*/ (0, R.createContext)(null), bbe = () => (0, R.useContext)(ZR);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function ZR(e) {
+function QR(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var QR = Math.cos, $R = Math.sin, ez = Math.sqrt, tz = Math.PI;
-tz / 2;
-var nz = 2 * tz, rz = Math.PI, iz = 2 * rz, az = 1e-6, xbe = iz - az;
-function oz(e) {
+var $R = Math.cos, ez = Math.sin, tz = Math.sqrt, nz = Math.PI;
+nz / 2;
+var rz = 2 * nz, iz = Math.PI, az = 2 * iz, oz = 1e-6, xbe = az - oz;
+function sz(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
function Sbe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return oz;
+ if (t > 15) return sz;
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 = class {
+var cz = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? oz : Sbe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sz : Sbe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -51853,18 +51853,18 @@ var sz = class {
if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
- else if (d > az) {
- if (!(Math.abs(u * s - c * l) > az) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > oz) {
+ if (!(Math.abs(u * s - c * l) > oz) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
else {
- 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((rz - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > az && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
+ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((iz - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > oz && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
}
}
}
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) > az || Math.abs(this._y1 - l) > az) && this._append`L${c},${l}`, n && (d < 0 && (d = d % iz + iz), d > xbe ? 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 > az && this._append`A${n},${n},0,${+(d >= rz)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > oz || Math.abs(this._y1 - l) > oz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % az + az), d > xbe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > oz && this._append`A${n},${n},0,${+(d >= iz)},${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`;
@@ -51873,10 +51873,10 @@ var sz = class {
return this._;
}
};
-sz.prototype;
+cz.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function cz(e) {
+function lz(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -51887,18 +51887,18 @@ function cz(e) {
t = e;
}
return e;
- }, () => new sz(t);
+ }, () => new cz(t);
}
Array.prototype.slice;
-function lz(e) {
+function uz(e) {
return typeof e == "object" && "length" in e ? e : Array.from(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js
-function uz(e) {
+function dz(e) {
this._context = e;
}
-uz.prototype = {
+dz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51921,33 +51921,33 @@ uz.prototype = {
}
}
};
-function dz(e) {
- return new uz(e);
+function fz(e) {
+ return new dz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function fz(e) {
+function pz(e) {
return e[0];
}
-function pz(e) {
+function mz(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function mz(e, t) {
- var n = ZR(!0), r = null, i = dz, a = null, o = cz(s);
- e = typeof e == "function" ? e : e === void 0 ? fz : ZR(e), t = typeof t == "function" ? t : t === void 0 ? pz : ZR(t);
+function hz(e, t) {
+ var n = QR(!0), r = null, i = fz, a = null, o = lz(s);
+ e = typeof e == "function" ? e : e === void 0 ? pz : QR(e), t = typeof t == "function" ? t : t === void 0 ? mz : QR(t);
function s(s) {
- var c, l = (s = lz(s)).length, u, d = !1, f;
+ var c, l = (s = uz(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 : ZR(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QR(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : QR(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : ZR(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : QR(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -51956,11 +51956,11 @@ function mz(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function hz(e, t, n) {
- var r = null, i = ZR(!0), a = null, o = dz, s = null, c = cz(l);
- e = typeof e == "function" ? e : e === void 0 ? fz : ZR(+e), t = typeof t == "function" ? t : ZR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? pz : ZR(+n);
+function gz(e, t, n) {
+ var r = null, i = QR(!0), a = null, o = fz, s = null, c = lz(l);
+ e = typeof e == "function" ? e : e === void 0 ? pz : QR(+e), t = typeof t == "function" ? t : QR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? mz : QR(+n);
function l(l) {
- var u, d, f, p = (l = lz(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = uz(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();
@@ -51974,20 +51974,20 @@ function hz(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return mz().defined(i).curve(o).context(a);
+ return hz().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : ZR(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QR(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : ZR(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QR(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : ZR(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : QR(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : QR(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : QR(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : ZR(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : QR(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -51995,7 +51995,7 @@ function hz(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : ZR(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : QR(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -52004,7 +52004,7 @@ function hz(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var gz = class {
+var _z = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -52032,69 +52032,69 @@ var gz = class {
}
};
function Cbe(e) {
- return new gz(e, !0);
+ return new _z(e, !0);
}
function wbe(e) {
- return new gz(e, !1);
+ return new _z(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var _z = { draw(e, t) {
- let n = ez(t / tz);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, nz);
+var vz = { draw(e, t) {
+ let n = tz(t / nz);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, rz);
} }, Tbe = { draw(e, t) {
- let n = ez(t / 5) / 2;
+ let n = tz(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
-} }, vz = ez(1 / 3), Ebe = vz * 2, Dbe = { draw(e, t) {
- let n = ez(t / Ebe), r = n * vz;
+} }, yz = tz(1 / 3), Ebe = yz * 2, Dbe = { draw(e, t) {
+ let n = tz(t / Ebe), r = n * yz;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
} }, Obe = { draw(e, t) {
- let n = ez(t), r = -n / 2;
+ let n = tz(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, kbe = .8908130915292852, yz = $R(tz / 10) / $R(7 * tz / 10), Abe = $R(nz / 10) * yz, jbe = -QR(nz / 10) * yz, Mbe = { draw(e, t) {
- let n = ez(t * kbe), r = Abe * n, i = jbe * n;
+} }, kbe = .8908130915292852, bz = ez(nz / 10) / ez(7 * nz / 10), Abe = ez(rz / 10) * bz, jbe = -$R(rz / 10) * bz, Mbe = { draw(e, t) {
+ let n = tz(t * kbe), r = Abe * n, i = jbe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = nz * t / 5, o = QR(a), s = $R(a);
+ let a = rz * t / 5, o = $R(a), s = ez(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, bz = ez(3), Nbe = { draw(e, t) {
- let n = -ez(t / (bz * 3));
- e.moveTo(0, n * 2), e.lineTo(-bz * n, -n), e.lineTo(bz * n, -n), e.closePath();
-} }, xz = -.5, Sz = ez(3) / 2, Cz = 1 / ez(12), Pbe = (Cz / 2 + 1) * 3, Fbe = { draw(e, t) {
- let n = ez(t / Pbe), r = n / 2, i = n * Cz, a = r, o = n * Cz + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(xz * r - Sz * i, Sz * r + xz * i), e.lineTo(xz * a - Sz * o, Sz * a + xz * o), e.lineTo(xz * s - Sz * c, Sz * s + xz * c), e.lineTo(xz * r + Sz * i, xz * i - Sz * r), e.lineTo(xz * a + Sz * o, xz * o - Sz * a), e.lineTo(xz * s + Sz * c, xz * c - Sz * s), e.closePath();
+} }, xz = tz(3), Nbe = { draw(e, t) {
+ let n = -tz(t / (xz * 3));
+ e.moveTo(0, n * 2), e.lineTo(-xz * n, -n), e.lineTo(xz * n, -n), e.closePath();
+} }, Sz = -.5, Cz = tz(3) / 2, wz = 1 / tz(12), Pbe = (wz / 2 + 1) * 3, Fbe = { draw(e, t) {
+ let n = tz(t / Pbe), r = n / 2, i = n * wz, a = r, o = n * wz + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(Sz * r - Cz * i, Cz * r + Sz * i), e.lineTo(Sz * a - Cz * o, Cz * a + Sz * o), e.lineTo(Sz * s - Cz * c, Cz * s + Sz * c), e.lineTo(Sz * r + Cz * i, Sz * i - Cz * r), e.lineTo(Sz * a + Cz * o, Sz * o - Cz * a), e.lineTo(Sz * s + Cz * c, Sz * c - Cz * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
function Ibe(e, t) {
- let n = null, r = cz(i);
- e = typeof e == "function" ? e : ZR(e || _z), t = typeof t == "function" ? t : ZR(t === void 0 ? 64 : +t);
+ let n = null, r = lz(i);
+ e = typeof e == "function" ? e : QR(e || vz), t = typeof t == "function" ? t : QR(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 : ZR(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QR(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : QR(+e), i) : t;
}, i.context = function(e) {
return arguments.length ? (n = e ?? null, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js
-function wz() {}
+function Tz() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function Tz(e, t, n) {
+function Ez(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 Ez(e) {
+function Dz(e) {
this._context = e;
}
-Ez.prototype = {
+Dz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52106,7 +52106,7 @@ Ez.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: Tz(this, this._x1, this._y1);
+ case 3: Ez(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;
@@ -52120,22 +52120,22 @@ Ez.prototype = {
this._point = 2;
break;
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
- default: Tz(this, e, t);
+ default: Ez(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
function Lbe(e) {
- return new Ez(e);
+ return new Dz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function Dz(e) {
+function Oz(e) {
this._context = e;
}
-Dz.prototype = {
- areaStart: wz,
- areaEnd: wz,
+Oz.prototype = {
+ areaStart: Tz,
+ areaEnd: Tz,
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;
},
@@ -52161,20 +52161,20 @@ Dz.prototype = {
case 2:
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
break;
- default: Tz(this, e, t);
+ default: Ez(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
function Rbe(e) {
- return new Dz(e);
+ return new Oz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function Oz(e) {
+function kz(e) {
this._context = e;
}
-Oz.prototype = {
+kz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52201,22 +52201,22 @@ Oz.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: Tz(this, e, t);
+ default: Ez(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
function zbe(e) {
- return new Oz(e);
+ return new kz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function kz(e) {
+function Az(e) {
this._context = e;
}
-kz.prototype = {
- areaStart: wz,
- areaEnd: wz,
+Az.prototype = {
+ areaStart: Tz,
+ areaEnd: Tz,
lineStart: function() {
this._point = 0;
},
@@ -52228,29 +52228,29 @@ kz.prototype = {
}
};
function Bbe(e) {
- return new kz(e);
+ return new Az(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function Az(e) {
+function jz(e) {
return e < 0 ? -1 : 1;
}
-function jz(e, t, n) {
+function Mz(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 (Az(a) + Az(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (jz(a) + jz(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function Mz(e, t) {
+function Nz(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function Nz(e, t, n) {
+function Pz(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 Pz(e) {
+function Fz(e) {
this._context = e;
}
-Pz.prototype = {
+Fz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52265,7 +52265,7 @@ Pz.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: Nz(this, this._t0, Mz(this, this._t0));
+ case 3: Pz(this, this._t0, Nz(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -52280,24 +52280,24 @@ Pz.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, Nz(this, Mz(this, n = jz(this, e, t)), n);
+ this._point = 3, Pz(this, Nz(this, n = Mz(this, e, t)), n);
break;
- default: Nz(this, this._t0, n = jz(this, e, t));
+ default: Pz(this, this._t0, n = Mz(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function Fz(e) {
- this._context = new Iz(e);
+function Iz(e) {
+ this._context = new Lz(e);
}
-(Fz.prototype = Object.create(Pz.prototype)).point = function(e, t) {
- Pz.prototype.point.call(this, t, e);
+(Iz.prototype = Object.create(Fz.prototype)).point = function(e, t) {
+ Fz.prototype.point.call(this, t, e);
};
-function Iz(e) {
+function Lz(e) {
this._context = e;
}
-Iz.prototype = {
+Lz.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -52312,17 +52312,17 @@ Iz.prototype = {
}
};
function Vbe(e) {
- return new Pz(e);
+ return new Fz(e);
}
function Hbe(e) {
- return new Fz(e);
+ return new Iz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function Lz(e) {
+function Rz(e) {
this._context = e;
}
-Lz.prototype = {
+Rz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52336,7 +52336,7 @@ Lz.prototype = {
var e = this._x, t = this._y, n = e.length;
if (n) {
if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
- else for (var r = Rz(e), i = Rz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
+ else for (var r = zz(e), i = zz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
}
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
},
@@ -52344,7 +52344,7 @@ Lz.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function Rz(e) {
+function zz(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];
@@ -52353,14 +52353,14 @@ function Rz(e) {
return [i, a];
}
function Ube(e) {
- return new Lz(e);
+ return new Rz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function zz(e, t) {
+function Bz(e, t) {
this._context = e, this._t = t;
}
-zz.prototype = {
+Bz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -52389,22 +52389,22 @@ zz.prototype = {
}
};
function Wbe(e) {
- return new zz(e, .5);
+ return new Bz(e, .5);
}
function Gbe(e) {
- return new zz(e, 0);
+ return new Bz(e, 0);
}
function Kbe(e) {
- return new zz(e, 1);
+ return new Bz(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function Bz(e, t) {
+function Vz(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 Vz(e) {
+function Hz(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
@@ -52418,21 +52418,21 @@ function Jbe(e) {
return t.key = e, t;
}
function Ybe() {
- var e = ZR([]), t = Vz, n = Bz, r = qbe;
+ var e = QR([]), t = Hz, n = Vz, r = qbe;
function i(i) {
var a = Array.from(e.apply(this, arguments), Jbe), 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 = lz(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = uz(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 : ZR(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QR(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : ZR(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : QR(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? Vz : typeof e == "function" ? e : ZR(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? Hz : typeof e == "function" ? e : QR(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? Bz, i) : n;
+ return arguments.length ? (n = e ?? Vz, i) : n;
}, i;
}
//#endregion
@@ -52443,7 +52443,7 @@ function Xbe(e, t) {
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;
}
- Bz(e, t);
+ Vz(e, t);
}
}
//#endregion
@@ -52454,7 +52454,7 @@ function Zbe(e, t) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- Bz(e, t);
+ Vz(e, t);
}
}
//#endregion
@@ -52471,18 +52471,18 @@ function Qbe(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, Bz(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, Vz(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function Hz(e) {
+function Uz(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
var $be = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function Uz(e) {
+function Wz(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
@@ -52492,30 +52492,30 @@ function Uz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function Wz(e) {
+function Gz(e) {
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
-function Gz(e) {
+function Kz(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
function exe(e) {
- return e == null ? "" : Kz(e);
+ return e == null ? "" : qz(e);
}
-function Kz(e) {
+function qz(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(Kz).join(",");
- if (Gz(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(qz).join(",");
+ if (Kz(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 qz(e) {
- if (Array.isArray(e)) return e.map(Wz);
+function Jz(e) {
+ if (Array.isArray(e)) return e.map(Gz);
if (typeof e == "symbol") return [e];
e = exe(e);
let t = [], n = e.length;
@@ -52545,23 +52545,23 @@ function qz(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function Jz(e, t, n) {
+function Yz(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (Hz(t)) return n;
+ if (Uz(t)) return n;
let r = e[t];
- return r === void 0 ? Uz(t) && !Object.hasOwn(e, t) ? Jz(e, qz(t), n) : n : r;
+ return r === void 0 ? Wz(t) && !Object.hasOwn(e, t) ? Yz(e, Jz(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = Wz(t));
+ typeof t == "number" && (t = Gz(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
if (Array.isArray(t)) return txe(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Hz(t)) return n;
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Uz(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
@@ -52571,7 +52571,7 @@ function txe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || Hz(t[e])) return n;
+ if (r == null || Uz(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
@@ -52579,49 +52579,49 @@ function txe(e, t, n) {
//#endregion
//#region node_modules/recharts/es6/util/round.js
var nxe = 4;
-function Yz(e) {
+function Xz(e) {
var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : nxe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function Xz(e) {
+function Zz(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 + Yz(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + Xz(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var Zz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, Qz = (e) => typeof e == "number" && e != +e, $z = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !Qz(e), eB = (e) => Z(e) || typeof e == "string", rxe = 0, tB = (e) => {
+var Qz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $z = (e) => typeof e == "number" && e != +e, eB = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$z(e), tB = (e) => Z(e) || typeof e == "string", rxe = 0, nB = (e) => {
var t = ++rxe;
return `${e || ""}${t}`;
-}, nB = function(e, t) {
+}, rB = 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 ($z(e)) {
+ if (eB(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return Qz(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, rB = (e) => {
+ return $z(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, iB = (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 iB(e, t, n) {
- return Z(e) && Z(t) ? Yz(e + n * (t - e)) : t;
-}
function aB(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : Jz(e, t)) === n);
+ return Z(e) && Z(t) ? Xz(e + n * (t - e)) : t;
+}
+function oB(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : Yz(e, t)) === n);
}
-var oB = (e) => e == null, sB = (e) => oB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function cB(e) {
+var sB = (e) => e == null, cB = (e) => sB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function lB(e) {
return e != null;
}
-function lB() {}
+function uB() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
var ixe = [
@@ -52629,16 +52629,16 @@ var ixe = [
"size",
"sizeType"
];
-function uB() {
- return uB = Object.assign ? Object.assign.bind() : function(e) {
+function dB() {
+ return dB = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, uB.apply(null, arguments);
+ }, dB.apply(null, arguments);
}
-function dB(e, t) {
+function fB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52648,12 +52648,12 @@ function dB(e, t) {
}
return n;
}
-function fB(e) {
+function pB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dB(Object(n), !0).forEach(function(t) {
+ t % 2 ? fB(Object(n), !0).forEach(function(t) {
axe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dB(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -52699,15 +52699,15 @@ function lxe(e, t) {
}
return n;
}
-var pB = {
- symbolCircle: _z,
+var mB = {
+ symbolCircle: vz,
symbolCross: Tbe,
symbolDiamond: Dbe,
symbolSquare: Obe,
symbolStar: Mbe,
symbolTriangle: Nbe,
symbolWye: Fbe
-}, uxe = Math.PI / 180, dxe = (e) => pB[`symbol${sB(e)}`] || _z, fxe = (e, t, n) => {
+}, uxe = Math.PI / 180, dxe = (e) => mB[`symbol${cB(e)}`] || vz, fxe = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
@@ -52721,9 +52721,9 @@ var pB = {
default: return Math.PI * e * e / 4;
}
}, pxe = (e, t) => {
- pB[`symbol${sB(e)}`] = t;
-}, mB = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = fB(fB({}, cxe(e, ixe)), {}, {
+ mB[`symbol${cB(e)}`] = t;
+}, hB = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pB(pB({}, cxe(e, ixe)), {}, {
type: t,
size: n,
sizeType: r
@@ -52732,35 +52732,35 @@ var pB = {
var o = () => {
var e = dxe(a), t = Ibe().type(e).size(fxe(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = GR(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", uB({}, u, {
- className: xh("recharts-symbols", s),
+ }, { className: s, cx: c, cy: l } = i, u = KR(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", dB({}, u, {
+ className: Sh("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-mB.registerSymbol = pxe;
+hB.registerSymbol = pxe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var hB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, gB = (e, t) => {
+var gB = (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, R.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- BR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ VR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, mxe = (e, t, n) => (r) => (e(t, n, r), null), _B = (e, t, n) => {
+}, mxe = (e, t, n) => (r) => (e(t, n, r), null), vB = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- BR(i) && typeof a == "function" && (r ||= {}, r[i] = mxe(a, t, n));
+ VR(i) && typeof a == "function" && (r ||= {}, r[i] = mxe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function vB(e, t) {
+function yB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52773,9 +52773,9 @@ function vB(e, t) {
function hxe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? vB(Object(n), !0).forEach(function(t) {
+ t % 2 ? yB(Object(n), !0).forEach(function(t) {
gxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vB(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -52803,22 +52803,22 @@ function vxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function yB(e, t) {
+function bB(e, t) {
var n = hxe({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
//#region node_modules/recharts/es6/component/DefaultLegendContent.js
-function bB() {
- return bB = Object.assign ? Object.assign.bind() : function(e) {
+function xB() {
+ return xB = 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;
- }, bB.apply(null, arguments);
+ }, xB.apply(null, arguments);
}
-function xB(e, t) {
+function SB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52828,12 +52828,12 @@ function xB(e, t) {
}
return n;
}
-function SB(e) {
+function CB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? xB(Object(n), !0).forEach(function(t) {
+ t % 2 ? SB(Object(n), !0).forEach(function(t) {
yxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xB(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -52861,7 +52861,7 @@ function xxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var CB = 32, Sxe = {
+var wB = 32, Sxe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -52873,7 +52873,7 @@ function Cxe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
function wxe(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = CB / 2, a = CB / 6, o = CB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+ var { data: t, iconType: n, inactiveColor: r } = e, i = wB / 2, a = wB / 6, o = wB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ R.createElement("line", {
strokeWidth: 4,
@@ -52882,7 +52882,7 @@ function wxe(e) {
strokeDasharray: Cxe(t.payload),
x1: 0,
y1: i,
- x2: CB,
+ x2: wB,
y2: i,
className: "recharts-legend-icon"
});
@@ -52892,25 +52892,25 @@ function wxe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${CB}M${2 * o},${i}
+ H${wB}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ R.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${CB / 8}h${CB}v${CB * 3 / 4}h${-CB}z`,
+ d: `M0,${wB / 8}h${wB}v${wB * 3 / 4}h${-wB}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ R.isValidElement(t.legendIcon)) {
- var l = SB({}, t);
+ var l = CB({}, t);
return delete l.legendIcon, /*#__PURE__*/ R.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ R.createElement(mB, {
+ return /*#__PURE__*/ R.createElement(hB, {
fill: s,
cx: i,
cy: i,
- size: CB,
+ size: wB,
sizeType: "diameter",
type: c
});
@@ -52919,8 +52919,8 @@ function Txe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: CB,
- height: CB
+ width: wB,
+ height: wB
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -52930,20 +52930,20 @@ function Txe(e) {
marginRight: 4
};
return t.map((t, r) => {
- var d = t.formatter || i, f = xh({
+ var d = t.formatter || i, f = Sh({
"recharts-legend-item": !0,
[`legend-item-${r}`]: !0,
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? SB({}, s) : {};
+ var p = typeof s == "object" ? CB({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ R.createElement("li", bB({
+ return /*#__PURE__*/ R.createElement("li", xB({
className: f,
style: l,
key: `legend-item-${r}`
- }, _B(e, t, r)), /*#__PURE__*/ R.createElement(qR, {
+ }, vB(e, t, r)), /*#__PURE__*/ R.createElement(JR, {
width: n,
height: n,
viewBox: c,
@@ -52960,7 +52960,7 @@ function Txe(e) {
});
}
var Exe = (e) => {
- var t = yB(e, Sxe), { payload: n, layout: r, align: i } = t;
+ var t = bB(e, Sxe), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -52970,7 +52970,7 @@ var Exe = (e) => {
return /*#__PURE__*/ R.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ R.createElement(Txe, bB({}, t, { payload: n })));
+ }, /*#__PURE__*/ R.createElement(Txe, xB({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
@@ -52991,7 +52991,7 @@ function Oxe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function wB(e) {
+function TB(e) {
return e;
}
//#endregion
@@ -53001,19 +53001,19 @@ function kxe(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function TB(e) {
+function EB(e) {
return e != null && typeof e != "function" && kxe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
function Axe(e) {
return function(t) {
- return Jz(t, e);
+ return Yz(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function EB(e) {
+function DB(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
@@ -53028,33 +53028,33 @@ function Mxe(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function DB(e) {
+function OB(e) {
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var Nxe = "[object RegExp]", OB = "[object String]", kB = "[object Number]", AB = "[object Boolean]", jB = "[object Arguments]", Pxe = "[object Symbol]", Fxe = "[object Date]", Ixe = "[object Map]", Lxe = "[object Set]", Rxe = "[object Array]", zxe = "[object ArrayBuffer]", Bxe = "[object Object]", Vxe = "[object DataView]", Hxe = "[object Uint8Array]", Uxe = "[object Uint8ClampedArray]", Wxe = "[object Uint16Array]", Gxe = "[object Uint32Array]", Kxe = "[object Int8Array]", qxe = "[object Int16Array]", Jxe = "[object Int32Array]", Yxe = "[object Float32Array]", Xxe = "[object Float64Array]", MB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var Nxe = "[object RegExp]", kB = "[object String]", AB = "[object Number]", jB = "[object Boolean]", MB = "[object Arguments]", Pxe = "[object Symbol]", Fxe = "[object Date]", Ixe = "[object Map]", Lxe = "[object Set]", Rxe = "[object Array]", zxe = "[object ArrayBuffer]", Bxe = "[object Object]", Vxe = "[object DataView]", Hxe = "[object Uint8Array]", Uxe = "[object Uint8ClampedArray]", Wxe = "[object Uint16Array]", Gxe = "[object Uint32Array]", Kxe = "[object Int8Array]", qxe = "[object Int16Array]", Jxe = "[object Int32Array]", Yxe = "[object Float32Array]", Xxe = "[object Float64Array]", NB = 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 Zxe(e) {
- return MB.Buffer !== void 0 && MB.Buffer.isBuffer(e);
+ return NB.Buffer !== void 0 && NB.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
function Qxe(e, t) {
- return NB(e, void 0, e, /* @__PURE__ */ new Map(), t);
+ return PB(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function NB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function PB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (EB(e)) return e;
+ if (DB(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] = NB(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = PB(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());
@@ -53065,71 +53065,71 @@ function NB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
if (e instanceof Map) {
let t = /* @__PURE__ */ new Map();
r.set(e, t);
- for (let [a, o] of e) t.set(a, NB(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, PB(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(NB(a, void 0, n, r, i));
+ for (let a of e) t.add(PB(a, void 0, n, r, i));
return t;
}
if (Zxe(e)) return e.subarray();
if (jxe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = NB(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = PB(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), PB(t, e, n, r, i), t;
+ return r.set(e, t), FB(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), PB(t, e, n, r, i), t;
+ return r.set(e, t), FB(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), PB(t, e, n, r, i), t;
+ return r.set(e, t), FB(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, PB(t, e, n, r, i), t;
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, FB(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), PB(t, e, n, r, i), t;
+ return r.set(e, t), FB(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), PB(t, e, n, r, i), t;
+ return r.set(e, t), FB(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), PB(t, e, n, r, i), t;
+ return r.set(e, t), FB(t, e, n, r, i), t;
}
if (typeof e == "object" && $xe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), PB(t, e, n, r, i), t;
+ return r.set(e, t), FB(t, e, n, r, i), t;
}
return e;
}
-function PB(e, t, n = e, r, i) {
+function FB(e, t, n = e, r, i) {
let a = [...Object.keys(t), ...Mxe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = NB(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = PB(t[s], s, n, r, i));
}
}
function $xe(e) {
- switch (DB(e)) {
- case jB:
+ switch (OB(e)) {
+ case MB:
case Rxe:
case zxe:
case Vxe:
- case AB:
+ case jB:
case Fxe:
case Yxe:
case Xxe:
@@ -53137,11 +53137,11 @@ function $xe(e) {
case qxe:
case Jxe:
case Ixe:
- case kB:
+ case AB:
case Bxe:
case Nxe:
case Lxe:
- case OB:
+ case kB:
case Pxe:
case Hxe:
case Uxe:
@@ -53153,44 +53153,44 @@ function $xe(e) {
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
function eSe(e) {
- return NB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+ return PB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function FB(e, t) {
+function IB(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function IB(e) {
+function LB(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function LB(e, t, n) {
- return typeof n == "function" ? RB(e, t, function e(t, r, i, a, o, s) {
+function RB(e, t, n) {
+ return typeof n == "function" ? zB(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? RB(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : LB(e, t, () => void 0);
+ return c === void 0 ? zB(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : RB(e, t, () => void 0);
}
-function RB(e, t, n, r, i = !1) {
+function zB(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
case "object": return tSe(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? RB(e, { ...t }, n, r, i) : FB(e, t);
- default: return IB(e) && i ? typeof t != "string" || t === "" : FB(e, t);
+ case "function": return Object.keys(t).length > 0 ? zB(e, { ...t }, n, r, i) : IB(e, t);
+ default: return LB(e) && i ? typeof t != "string" || t === "" : IB(e, t);
}
}
function tSe(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return zB(e, t, n, r);
+ if (Array.isArray(t)) return BB(e, t, n, r);
if (t instanceof Map) return nSe(e, t, n, r);
if (t instanceof Set) return rSe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) EB(e) && (e = Object(e));
+ if (i) DB(e) && (e = Object(e));
else {
- let t = DB(e);
+ let t = OB(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -53212,7 +53212,7 @@ function nSe(e, t, n, r) {
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function zB(e, t, n, r) {
+function BB(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -53231,17 +53231,17 @@ function zB(e, t, n, r) {
return !0;
}
function rSe(e, t, n, r) {
- return t.size === 0 || e instanceof Set && zB([...e], [...t], n, r);
+ return t.size === 0 || e instanceof Set && BB([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function BB(e, t) {
- return LB(e, t, () => void 0);
+function VB(e, t) {
+ return RB(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
function iSe(e) {
- return e = eSe(e), (t) => BB(t, e);
+ return e = eSe(e), (t) => VB(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
@@ -53250,20 +53250,20 @@ function aSe(e, t) {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (DB(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (OB(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), PB(t, e, i, a), t;
+ return a.set(e, t), FB(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
+ case AB:
case kB:
- case OB:
- case AB: {
+ case jB: {
let t = new e.constructor(e?.valueOf());
- return PB(t, e), t;
+ return FB(t, e), t;
}
- case jB: {
+ case MB: {
let t = {};
- return PB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return FB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -53278,7 +53278,7 @@ function oSe(e) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
var sSe = /^(?:0|[1-9]\d*)$/;
-function VB(e, t = 2 ** 53 - 1) {
+function HB(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
@@ -53288,17 +53288,17 @@ function VB(e, t = 2 ** 53 - 1) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
function cSe(e) {
- return typeof e == "object" && !!e && DB(e) === "[object Arguments]";
+ return typeof e == "object" && !!e && OB(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
function lSe(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && Uz(t) && !(t in Object(e)) ? qz(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && Wz(t) && !(t in Object(e)) ? Jz(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = Wz(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || cSe(r)) && VB(t) && Number(t) < r.length)) return !1;
+ let t = Gz(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || cSe(r)) && HB(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
@@ -53310,17 +53310,17 @@ function uSe(e, t) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = Wz(e);
+ case "number": e = Gz(e);
}
return t = oSe(t), function(n) {
- let r = Jz(n, e);
- return r === void 0 ? lSe(n, e) : t === void 0 ? r === void 0 : BB(r, t);
+ let r = Yz(n, e);
+ return r === void 0 ? lSe(n, e) : t === void 0 ? r === void 0 : VB(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function HB(e) {
- if (e == null) return wB;
+function UB(e) {
+ if (e == null) return TB;
switch (typeof e) {
case "function": return e;
case "object": return Array.isArray(e) && e.length === 2 ? uSe(e[0], e[1]) : iSe(e);
@@ -53334,18 +53334,18 @@ function dSe(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function UB(e, t = wB) {
- return TB(e) ? Dxe(Array.from(e), Oxe(HB(t), 1)).map(dSe) : [];
+function WB(e, t = TB) {
+ return EB(e) ? Dxe(Array.from(e), Oxe(UB(t), 1)).map(dSe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function WB(e, t, n) {
- return t === !0 ? UB(e, n) : typeof t == "function" ? UB(e, t) : e;
+function GB(e, t, n) {
+ return t === !0 ? WB(e, n) : typeof t == "function" ? WB(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var fSe = /* @__PURE__ */ St(((e) => {
- var t = kt(), n = qh();
+var fSe = /* @__PURE__ */ Ct(((e) => {
+ var t = At(), n = Jh();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -53389,17 +53389,17 @@ var fSe = /* @__PURE__ */ St(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), pSe = /* @__PURE__ */ St(((e, t) => {
+})), pSe = /* @__PURE__ */ Ct(((e, t) => {
t.exports = fSe();
-})), GB = /*#__PURE__*/ (0, R.createContext)(null), mSe = pSe(), hSe = (e) => e, KB = () => {
- var e = (0, R.useContext)(GB);
+})), KB = /*#__PURE__*/ (0, R.createContext)(null), mSe = pSe(), hSe = (e) => e, qB = () => {
+ var e = (0, R.useContext)(KB);
return e ? e.store.dispatch : hSe;
-}, qB = () => {}, gSe = () => qB, _Se = (e, t) => e === t;
+}, JB = () => {}, gSe = () => JB, _Se = (e, t) => e === t;
function Q(e) {
- var t = (0, R.useContext)(GB), n = (0, R.useMemo)(() => t ? (t) => {
+ var t = (0, R.useContext)(KB), n = (0, R.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : qB, [t, e]);
- return (0, mSe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : gSe, t ? t.store.getState : qB, t ? t.store.getState : qB, n, _Se);
+ } : JB, [t, e]);
+ return (0, mSe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : gSe, t ? t.store.getState : JB, t ? t.store.getState : JB, n, _Se);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
@@ -53415,7 +53415,7 @@ function bSe(e, t = "expected all items to be functions, instead received the fo
throw TypeError(`${t}[${n}]`);
}
}
-var JB = (e) => Array.isArray(e) ? e : [e];
+var YB = (e) => Array.isArray(e) ? e : [e];
function xSe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
return bSe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
@@ -53432,8 +53432,8 @@ var CSe = class {
deref() {
return this.value;
}
-}, wSe = typeof WeakRef < "u" ? WeakRef : CSe, TSe = 0, YB = 1;
-function XB() {
+}, wSe = typeof WeakRef < "u" ? WeakRef : CSe, TSe = 0, XB = 1;
+function ZB() {
return {
s: TSe,
v: void 0,
@@ -53441,8 +53441,8 @@ function XB() {
p: null
};
}
-function ZB(e, t = {}) {
- let n = XB(), { resultEqualityCheck: r } = t, i, a = 0;
+function QB(e, t = {}) {
+ let n = ZB(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -53451,24 +53451,24 @@ function ZB(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = XB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = ZB(), 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 = XB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = ZB(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === YB) c = t.v;
+ if (t.s === XB) 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 wSe(c) : c;
}
- return s.s = YB, s.v = c, c;
+ return s.s = XB, s.v = c, c;
}
return o.clearCache = () => {
- n = XB(), o.resetResultsCount();
+ n = ZB(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
@@ -53480,10 +53480,10 @@ function ESe(e, ...t) {
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
typeof o == "object" && (a = o, o = e.pop()), vSe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = ZB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = QB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = JB(c), p = JB(u), m = xSe(e), h = s(function() {
+ }, f = YB(c), p = YB(u), m = xSe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
@@ -53509,7 +53509,7 @@ function ESe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ ESe(ZB), DSe = Object.assign((e, t = $) => {
+var $ = /* @__PURE__ */ ESe(QB), DSe = Object.assign((e, t = $) => {
ySe(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), {}));
@@ -53527,17 +53527,17 @@ function OSe(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function QB(e, t, n) {
- return IB(n) && (typeof t == "number" && TB(n) && VB(t) && t < n.length || typeof t == "string" && t in n) ? FB(n[t], e) : !1;
+function $B(e, t, n) {
+ return LB(n) && (typeof t == "number" && EB(n) && HB(t) && t < n.length || typeof t == "string" && t in n) ? IB(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function $B(e) {
+function eV(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
var kSe = (e, t, n) => {
if (e !== t) {
- let r = $B(e), i = $B(t);
+ let r = eV(e), i = eV(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -53547,13 +53547,13 @@ var kSe = (e, t, n) => {
return 0;
}, ASe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, jSe = /^\w*$/;
function MSe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Gz(e) ? !0 : typeof e == "string" && (jSe.test(e) || !ASe.test(e)) || t != null && Object.hasOwn(t, e);
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Kz(e) ? !0 : typeof e == "string" && (jSe.test(e) || !ASe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
function NSe(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = TB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
+ n = r ? void 0 : n, Array.isArray(e) || (e = EB(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]];
@@ -53563,7 +53563,7 @@ function NSe(e, t, n, r) {
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) || MSe(e) ? e : {
key: e,
- path: qz(e)
+ path: Jz(e)
}));
return e.map((e) => ({
original: e,
@@ -53578,15 +53578,15 @@ function NSe(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function eV(e, ...t) {
+function tV(e, ...t) {
let n = t.length;
- return n > 1 && QB(e, t[0], t[1]) ? t = [] : n > 2 && QB(t[0], t[1], t[2]) && (t = [t[0]]), NSe(e, OSe(t), ["asc"]);
+ return n > 1 && $B(e, t[0], t[1]) ? t = [] : n > 2 && $B(t[0], t[1], t[2]) && (t = [t[0]]), NSe(e, OSe(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var tV = (e) => e.legend.settings, PSe = (e) => e.legend.size, FSe = $([(e) => e.legend.payload, tV], (e, t) => {
+var nV = (e) => e.legend.settings, PSe = (e) => e.legend.size, FSe = $([(e) => e.legend.payload, nV], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? eV(r, n) : r;
+ return n ? tV(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
@@ -53595,8 +53595,8 @@ function ISe() {
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var nV = 1;
-function rV() {
+var rV = 1;
+function iV() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, R.useState)({
height: 0,
left: 0,
@@ -53611,7 +53611,7 @@ function rV() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > nV || Math.abs(i.left - t.left) > nV || Math.abs(i.top - t.top) > nV || Math.abs(i.width - t.width) > nV) && n({
+ (Math.abs(i.height - t.height) > rV || Math.abs(i.left - t.left) > rV || Math.abs(i.top - t.top) > rV || Math.abs(i.width - t.width) > rV) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -53628,26 +53628,26 @@ function rV() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function iV(e) {
+function aV(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 aV = typeof Symbol == "function" && Symbol.observable || "@@observable", oV = () => Math.random().toString(36).substring(7).split("").join("."), sV = {
- INIT: `@@redux/INIT${/* @__PURE__ */ oV()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ oV()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${oV()}`
+var oV = typeof Symbol == "function" && Symbol.observable || "@@observable", sV = () => Math.random().toString(36).substring(7).split("").join("."), cV = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ sV()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ sV()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${sV()}`
};
-function cV(e) {
+function lV(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 lV(e, t, n) {
- if (typeof e != "function") throw Error(iV(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(iV(0));
+function uV(e, t, n) {
+ if (typeof e != "function") throw Error(aV(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(aV(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(iV(1));
- return n(lV)(e, t);
+ if (typeof n != "function") throw Error(aV(1));
+ return n(uV)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -53656,27 +53656,27 @@ function lV(e, t, n) {
}));
}
function u() {
- if (c) throw Error(iV(3));
+ if (c) throw Error(aV(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(iV(4));
- if (c) throw Error(iV(5));
+ if (typeof e != "function") throw Error(aV(4));
+ if (c) throw Error(aV(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(iV(6));
+ if (c) throw Error(aV(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!cV(e)) throw Error(iV(7));
- if (e.type === void 0) throw Error(iV(8));
- if (typeof e.type != "string") throw Error(iV(17));
- if (c) throw Error(iV(9));
+ if (!lV(e)) throw Error(aV(7));
+ if (e.type === void 0) throw Error(aV(8));
+ if (typeof e.type != "string") throw Error(aV(17));
+ if (c) throw Error(aV(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -53687,41 +53687,41 @@ function lV(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(iV(10));
- r = e, f({ type: sV.REPLACE });
+ if (typeof e != "function") throw Error(aV(10));
+ r = e, f({ type: cV.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(iV(11));
+ if (typeof t != "object" || !t) throw Error(aV(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [aV]() {
+ [oV]() {
return this;
}
};
}
- return f({ type: sV.INIT }), {
+ return f({ type: cV.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [aV]: m
+ [oV]: m
};
}
-function uV(e) {
+function dV(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: sV.INIT }) === void 0) throw Error(iV(12));
- if (n(void 0, { type: sV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(iV(13));
+ if (n(void 0, { type: cV.INIT }) === void 0) throw Error(aV(12));
+ if (n(void 0, { type: cV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(aV(13));
});
}
-function dV(e) {
+function fV(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -53729,7 +53729,7 @@ function dV(e) {
}
let r = Object.keys(n), i;
try {
- uV(n);
+ dV(n);
} catch (e) {
i = e;
}
@@ -53738,124 +53738,124 @@ function dV(e) {
let a = !1, o = {};
for (let i = 0; i < r.length; i++) {
let s = r[i], c = n[s], l = e[s], u = c(l, t);
- if (u === void 0) throw t && t.type, Error(iV(14));
+ if (u === void 0) throw t && t.type, Error(aV(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function fV(...e) {
+function pV(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function pV(...e) {
+function mV(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(iV(15));
+ throw Error(aV(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = fV(...e.map((e) => e(o)))(i.dispatch), {
+ return a = pV(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function mV(e) {
- return cV(e) && "type" in e && typeof e.type == "string";
+function hV(e) {
+ return lV(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var hV = Symbol.for("immer-nothing"), gV = Symbol.for("immer-draftable"), _V = Symbol.for("immer-state");
-function vV(e, ...t) {
+var gV = Symbol.for("immer-nothing"), _V = Symbol.for("immer-draftable"), vV = Symbol.for("immer-state");
+function yV(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var yV = Object, bV = yV.getPrototypeOf, xV = "constructor", SV = "prototype", CV = "configurable", wV = "enumerable", TV = "writable", EV = "value", DV = (e) => !!e && !!e[_V];
-function OV(e) {
- return e ? AV(e) || IV(e) || !!e[gV] || !!e[xV]?.[gV] || LV(e) || RV(e) : !1;
+var bV = Object, xV = bV.getPrototypeOf, SV = "constructor", CV = "prototype", wV = "configurable", TV = "enumerable", EV = "writable", DV = "value", OV = (e) => !!e && !!e[vV];
+function kV(e) {
+ return e ? jV(e) || LV(e) || !!e[_V] || !!e[SV]?.[_V] || RV(e) || zV(e) : !1;
}
-var LSe = yV[SV][xV].toString(), kV = /* @__PURE__ */ new WeakMap();
-function AV(e) {
- if (!e || !zV(e)) return !1;
- let t = bV(e);
- if (t === null || t === yV[SV]) return !0;
- let n = yV.hasOwnProperty.call(t, xV) && t[xV];
+var LSe = bV[CV][SV].toString(), AV = /* @__PURE__ */ new WeakMap();
+function jV(e) {
+ if (!e || !BV(e)) return !1;
+ let t = xV(e);
+ if (t === null || t === bV[CV]) return !0;
+ let n = bV.hasOwnProperty.call(t, SV) && t[SV];
if (n === Object) return !0;
- if (!BV(n)) return !1;
- let r = kV.get(n);
- return r === void 0 && (r = Function.toString.call(n), kV.set(n, r)), r === LSe;
+ if (!VV(n)) return !1;
+ let r = AV.get(n);
+ return r === void 0 && (r = Function.toString.call(n), AV.set(n, r)), r === LSe;
}
-function jV(e, t, n = !0) {
- MV(e) === 0 ? (n ? Reflect.ownKeys(e) : yV.keys(e)).forEach((n) => {
+function MV(e, t, n = !0) {
+ NV(e) === 0 ? (n ? Reflect.ownKeys(e) : bV.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function MV(e) {
- let t = e[_V];
- return t ? t.type_ : IV(e) ? 1 : LV(e) ? 2 : RV(e) ? 3 : 0;
+function NV(e) {
+ let t = e[vV];
+ return t ? t.type_ : LV(e) ? 1 : RV(e) ? 2 : zV(e) ? 3 : 0;
}
-var NV = (e, t, n = MV(e)) => n === 2 ? e.has(t) : yV[SV].hasOwnProperty.call(e, t), PV = (e, t, n = MV(e)) => n === 2 ? e.get(t) : e[t], FV = (e, t, n, r = MV(e)) => {
+var PV = (e, t, n = NV(e)) => n === 2 ? e.has(t) : bV[CV].hasOwnProperty.call(e, t), FV = (e, t, n = NV(e)) => n === 2 ? e.get(t) : e[t], IV = (e, t, n, r = NV(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
function RSe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var IV = Array.isArray, LV = (e) => e instanceof Map, RV = (e) => e instanceof Set, zV = (e) => typeof e == "object", BV = (e) => typeof e == "function", VV = (e) => typeof e == "boolean";
+var LV = Array.isArray, RV = (e) => e instanceof Map, zV = (e) => e instanceof Set, BV = (e) => typeof e == "object", VV = (e) => typeof e == "function", HV = (e) => typeof e == "boolean";
function zSe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var HV = (e) => e.copy_ || e.base_, UV = (e) => e.modified_ ? e.copy_ : e.base_;
-function WV(e, t) {
- if (LV(e)) return new Map(e);
- if (RV(e)) return new Set(e);
- if (IV(e)) return Array[SV].slice.call(e);
- let n = AV(e);
+var UV = (e) => e.copy_ || e.base_, WV = (e) => e.modified_ ? e.copy_ : e.base_;
+function GV(e, t) {
+ if (RV(e)) return new Map(e);
+ if (zV(e)) return new Set(e);
+ if (LV(e)) return Array[CV].slice.call(e);
+ let n = jV(e);
if (t === !0 || t === "class_only" && !n) {
- let t = yV.getOwnPropertyDescriptors(e);
- delete t[_V];
+ let t = bV.getOwnPropertyDescriptors(e);
+ delete t[vV];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[TV] === !1 && (a[TV] = !0, a[CV] = !0), (a.get || a.set) && (t[i] = {
- [CV]: !0,
- [TV]: !0,
- [wV]: a[wV],
- [EV]: e[i]
+ a[EV] === !1 && (a[EV] = !0, a[wV] = !0), (a.get || a.set) && (t[i] = {
+ [wV]: !0,
+ [EV]: !0,
+ [TV]: a[TV],
+ [DV]: e[i]
});
}
- return yV.create(bV(e), t);
+ return bV.create(xV(e), t);
}
{
- let t = bV(e);
+ let t = xV(e);
if (t !== null && n) return { ...e };
- let r = yV.create(t);
- return yV.assign(r, e);
- }
-}
-function GV(e, t = !1) {
- return qV(e) || DV(e) || !OV(e) ? e : (MV(e) > 1 && yV.defineProperties(e, {
- set: KV,
- add: KV,
- clear: KV,
- delete: KV
- }), yV.freeze(e), t && jV(e, (e, t) => {
- GV(t, !0);
+ let r = bV.create(t);
+ return bV.assign(r, e);
+ }
+}
+function KV(e, t = !1) {
+ return JV(e) || OV(e) || !kV(e) ? e : (NV(e) > 1 && bV.defineProperties(e, {
+ set: qV,
+ add: qV,
+ clear: qV,
+ delete: qV
+ }), bV.freeze(e), t && MV(e, (e, t) => {
+ KV(t, !0);
}, !1), e);
}
function BSe() {
- vV(2);
+ yV(2);
}
-var KV = { [EV]: BSe };
-function qV(e) {
- return e === null || !zV(e) || yV.isFrozen(e);
+var qV = { [DV]: BSe };
+function JV(e) {
+ return e === null || !BV(e) || bV.isFrozen(e);
}
-var JV = "MapSet", YV = "Patches", XV = "ArrayMethods", ZV = {};
-function QV(e) {
- let t = ZV[e];
- return t || vV(0, e), t;
+var YV = "MapSet", XV = "Patches", ZV = "ArrayMethods", QV = {};
+function $V(e) {
+ let t = QV[e];
+ return t || yV(0, e), t;
}
-var $V = (e) => !!ZV[e], eH, tH = () => eH, VSe = (e, t) => ({
+var eH = (e) => !!QV[e], tH, nH = () => tH, VSe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -53863,114 +53863,114 @@ var $V = (e) => !!ZV[e], eH, tH = () => eH, VSe = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: $V(JV) ? QV(JV) : void 0,
- arrayMethodsPlugin_: $V(XV) ? QV(XV) : void 0
+ mapSetPlugin_: eH(YV) ? $V(YV) : void 0,
+ arrayMethodsPlugin_: eH(ZV) ? $V(ZV) : void 0
});
-function nH(e, t) {
- t && (e.patchPlugin_ = QV(YV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
-}
-function rH(e) {
- iH(e), e.drafts_.forEach(HSe), e.drafts_ = null;
+function rH(e, t) {
+ t && (e.patchPlugin_ = $V(XV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function iH(e) {
- e === eH && (eH = e.parent_);
+ aH(e), e.drafts_.forEach(HSe), e.drafts_ = null;
+}
+function aH(e) {
+ e === tH && (tH = e.parent_);
}
-var aH = (e) => eH = VSe(eH, e);
+var oH = (e) => tH = VSe(tH, e);
function HSe(e) {
- let t = e[_V];
+ let t = e[vV];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function oH(e, t) {
+function sH(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[_V].modified_ && (rH(t), vV(4)), OV(e) && (e = sH(t, e));
+ n[vV].modified_ && (iH(t), yV(4)), kV(e) && (e = cH(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[_V].base_, e, t);
- } else e = sH(t, n);
- return USe(t, e, !0), rH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === hV ? void 0 : e;
-}
-function sH(e, t) {
- if (qV(t)) return t;
- let n = t[_V];
- if (!n) return fH(t, e.handledSet_, e);
- if (!lH(n, e)) return t;
+ r && r.generateReplacementPatches_(n[vV].base_, e, t);
+ } else e = cH(t, n);
+ return USe(t, e, !0), iH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === gV ? void 0 : e;
+}
+function cH(e, t) {
+ if (JV(t)) return t;
+ let n = t[vV];
+ if (!n) return pH(t, e.handledSet_, e);
+ if (!uH(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);
- dH(n, e);
+ fH(n, e);
}
return n.copy_;
}
function USe(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && GV(t, n);
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && KV(t, n);
}
-function cH(e) {
+function lH(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var lH = (e, t) => e.scope_ === t, WSe = [];
-function uH(e, t, n, r) {
- let i = HV(e), a = e.type_;
- if (r !== void 0 && PV(i, r, a) === t) {
- FV(i, r, n, a);
+var uH = (e, t) => e.scope_ === t, WSe = [];
+function dH(e, t, n, r) {
+ let i = UV(e), a = e.type_;
+ if (r !== void 0 && FV(i, r, a) === t) {
+ IV(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- jV(i, (e, n) => {
- if (DV(n)) {
+ MV(i, (e, n) => {
+ if (OV(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
let o = e.draftLocations_.get(t) ?? WSe;
- for (let e of o) FV(i, e, n, a);
+ for (let e of o) IV(i, e, n, a);
}
function GSe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !lH(i, r)) return;
+ if (!i || !uH(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = UV(i);
- uH(e, i.draft_ ?? i, a, n), dH(i, r);
+ let a = WV(i);
+ dH(e, i.draft_ ?? i, a, n), fH(i, r);
});
}
-function dH(e, t) {
+function fH(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);
}
- cH(e);
+ lH(e);
}
}
function KSe(e, t, n) {
let { scope_: r } = e;
- if (DV(n)) {
- let i = n[_V];
- lH(i, r) && i.callbacks_.push(function() {
- vH(e), uH(e, n, UV(i), t);
+ if (OV(n)) {
+ let i = n[vV];
+ uH(i, r) && i.callbacks_.push(function() {
+ yH(e), dH(e, n, WV(i), t);
});
- } else OV(n) && e.callbacks_.push(function() {
- let i = HV(e);
- e.type_ === 3 ? i.has(n) && fH(n, r.handledSet_, r) : PV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && fH(PV(e.copy_, t, e.type_), r.handledSet_, r);
+ } else kV(n) && e.callbacks_.push(function() {
+ let i = UV(e);
+ e.type_ === 3 ? i.has(n) && pH(n, r.handledSet_, r) : FV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && pH(FV(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function fH(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || DV(e) || t.has(e) || !OV(e) || qV(e) ? e : (t.add(e), jV(e, (r, i) => {
- if (DV(i)) {
- let t = i[_V];
- lH(t, n) && (FV(e, r, UV(t), e.type_), cH(t));
- } else OV(i) && fH(i, t, n);
+function pH(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || OV(e) || t.has(e) || !kV(e) || JV(e) ? e : (t.add(e), MV(e, (r, i) => {
+ if (OV(i)) {
+ let t = i[vV];
+ uH(t, n) && (IV(e, r, WV(t), e.type_), lH(t));
+ } else kV(i) && pH(i, t, n);
}), e);
}
function qSe(e, t) {
- let n = IV(e), r = {
+ let n = LV(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : tH(),
+ scope_: t ? t.scope_ : nH(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -53981,108 +53981,108 @@ function qSe(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = pH;
- n && (i = [r], a = mH);
+ }, i = r, a = mH;
+ n && (i = [r], a = hH);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var pH = {
+var mH = {
get(e, t) {
- if (t === _V) return e;
+ if (t === vV) 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 = HV(e);
- if (!NV(i, t, e.type_)) return YSe(e, i, t);
+ let i = UV(e);
+ if (!PV(i, t, e.type_)) return YSe(e, i, t);
let a = i[t];
- if (e.finalized_ || !OV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && zSe(t)) return a;
- if (a === hH(e.base_, t) || JSe(e, t, a)) {
- vH(e);
- let n = e.type_ === 1 ? +t : t, r = yH(e.scope_, a, e, n);
+ if (e.finalized_ || !kV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && zSe(t)) return a;
+ if (a === gH(e.base_, t) || JSe(e, t, a)) {
+ yH(e);
+ let n = e.type_ === 1 ? +t : t, r = bH(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in HV(e);
+ return t in UV(e);
},
ownKeys(e) {
- return Reflect.ownKeys(HV(e));
+ return Reflect.ownKeys(UV(e));
},
set(e, t, n) {
- let r = gH(HV(e), t);
+ let r = _H(UV(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = hH(HV(e), t), i = r?.[_V];
+ let r = gH(UV(e), t), i = r?.[vV];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (RSe(n, r) && (n !== void 0 || NV(e.base_, t, e.type_))) return !0;
- vH(e), _H(e);
+ if (RSe(n, r) && (n !== void 0 || PV(e.base_, t, e.type_))) return !0;
+ yH(e), vH(e);
}
- return e.copy_[t] === n && (n !== void 0 || NV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), KSe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || PV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), KSe(e, t, n), !0);
},
deleteProperty(e, t) {
- return vH(e), hH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), _H(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return yH(e), gH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), vH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = HV(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = UV(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [TV]: !0,
- [CV]: e.type_ !== 1 || t !== "length",
- [wV]: r[wV],
- [EV]: n[t]
+ [EV]: !0,
+ [wV]: e.type_ !== 1 || t !== "length",
+ [TV]: r[TV],
+ [DV]: n[t]
};
},
defineProperty() {
- vV(11);
+ yV(11);
},
getPrototypeOf(e) {
- return bV(e.base_);
+ return xV(e.base_);
},
setPrototypeOf() {
- vV(12);
+ yV(12);
}
-}, mH = {};
-for (let e in pH) {
- let t = pH[e];
- mH[e] = function() {
+}, hH = {};
+for (let e in mH) {
+ let t = mH[e];
+ hH[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-mH.deleteProperty = function(e, t) {
- return mH.set.call(this, e, t, void 0);
-}, mH.set = function(e, t, n) {
- return pH.set.call(this, e[0], t, n, e[0]);
+hH.deleteProperty = function(e, t) {
+ return hH.set.call(this, e, t, void 0);
+}, hH.set = function(e, t, n) {
+ return mH.set.call(this, e[0], t, n, e[0]);
};
-function hH(e, t) {
- let n = e[_V];
- return (n ? HV(n) : e)[t];
+function gH(e, t) {
+ let n = e[vV];
+ return (n ? UV(n) : e)[t];
}
function JSe(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !OV(n) || n[_V] ? !1 : e.baseRefs_.has(n);
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !kV(n) || n[vV] ? !1 : e.baseRefs_.has(n);
}
function YSe(e, t, n) {
- let r = gH(t, n);
- return r ? EV in r ? r[EV] : r.get?.call(e.draft_) : void 0;
+ let r = _H(t, n);
+ return r ? DV in r ? r[DV] : r.get?.call(e.draft_) : void 0;
}
-function gH(e, t) {
+function _H(e, t) {
if (!(t in e)) return;
- let n = bV(e);
+ let n = xV(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = bV(n);
+ n = xV(n);
}
}
-function _H(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && _H(e.parent_));
-}
function vH(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), WV(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+ e.modified_ || (e.modified_ = !0, e.parent_ && vH(e.parent_));
+}
+function yH(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), GV(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
var XSe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (BV(e) && !BV(t)) {
+ if (VV(e) && !VV(t)) {
let n = t;
t = e;
let r = this;
@@ -54090,30 +54090,30 @@ var XSe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- BV(t) || vV(6), n !== void 0 && !BV(n) && vV(7);
+ VV(t) || yV(6), n !== void 0 && !VV(n) && yV(7);
let r;
- if (OV(e)) {
- let i = aH(this), a = yH(i, e, void 0), o = !0;
+ if (kV(e)) {
+ let i = oH(this), a = bH(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? rH(i) : iH(i);
+ o ? iH(i) : aH(i);
}
- return nH(i, n), oH(r, i);
+ return rH(i, n), sH(r, i);
}
- if (!e || !zV(e)) {
- if (r = t(e), r === void 0 && (r = e), r === hV && (r = void 0), this.autoFreeze_ && GV(r, !0), n) {
+ if (!e || !BV(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === gV && (r = void 0), this.autoFreeze_ && KV(r, !0), n) {
let t = [], i = [];
- QV(YV).generateReplacementPatches_(e, r, {
+ $V(XV).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- vV(1, e);
+ yV(1, e);
}, this.produceWithPatches = (e, t) => {
- if (BV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (VV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -54122,18 +54122,18 @@ var XSe = class {
n,
r
];
- }, VV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), VV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), VV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, HV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), HV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), HV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- OV(e) || vV(8), DV(e) && (e = bH(e));
- let t = aH(this), n = yH(t, e, void 0);
- return n[_V].isManual_ = !0, iH(t), n;
+ kV(e) || yV(8), OV(e) && (e = xH(e));
+ let t = oH(this), n = bH(t, e, void 0);
+ return n[vV].isManual_ = !0, aH(t), n;
}
finishDraft(e, t) {
- let n = e && e[_V];
- (!n || !n.isManual_) && vV(9);
+ let n = e && e[vV];
+ (!n || !n.isManual_) && yV(9);
let { scope_: r } = n;
- return nH(r, t), oH(void 0, r);
+ return rH(r, t), sH(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -54157,48 +54157,48 @@ var XSe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = QV(YV).applyPatches_;
- return DV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = $V(XV).applyPatches_;
+ return OV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function yH(e, t, n, r) {
- let [i, a] = LV(t) ? QV(JV).proxyMap_(t, n) : RV(t) ? QV(JV).proxySet_(t, n) : qSe(t, n);
- return (n?.scope_ ?? tH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? GSe(n, a, r) : a.callbacks_.push(function(e) {
+function bH(e, t, n, r) {
+ let [i, a] = RV(t) ? $V(YV).proxyMap_(t, n) : zV(t) ? $V(YV).proxySet_(t, n) : qSe(t, n);
+ return (n?.scope_ ?? nH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? GSe(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 bH(e) {
- return DV(e) || vV(10, e), xH(e);
-}
function xH(e) {
- if (!OV(e) || qV(e)) return e;
- let t = e[_V], n, r = !0;
+ return OV(e) || yV(10, e), SH(e);
+}
+function SH(e) {
+ if (!kV(e) || JV(e)) return e;
+ let t = e[vV], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = WV(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = WV(e, !0);
- return jV(n, (e, t) => {
- FV(n, e, xH(t));
+ t.finalized_ = !0, n = GV(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = GV(e, !0);
+ return MV(n, (e, t) => {
+ IV(n, e, SH(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var SH = new XSe().produce;
+var CH = new XSe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function CH(e) {
+function wH(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var ZSe = CH(), QSe = CH, $Se = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? fV : fV.apply(null, arguments);
+var ZSe = wH(), QSe = wH, $Se = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? pV : pV.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function wH(e, t) {
+function TH(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(aU(0));
+ if (!r) throw Error(oU(0));
return {
type: e,
payload: r.payload,
@@ -54211,9 +54211,9 @@ function wH(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => mV(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => hV(t) && t.type === e, n;
}
-var TH = class e extends Array {
+var EH = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -54227,29 +54227,29 @@ var TH = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function EH(e) {
- return OV(e) ? SH(e, () => {}) : e;
+function DH(e) {
+ return kV(e) ? CH(e, () => {}) : e;
}
-function DH(e, t, n) {
+function OH(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
function eCe(e) {
return typeof e == "boolean";
}
var tCe = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new TH();
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new EH();
return t && (eCe(t) ? a.push(ZSe) : a.push(QSe(t.extraArgument))), a;
-}, OH = "RTK_autoBatch", kH = () => (e) => ({
+}, kH = "RTK_autoBatch", AH = () => (e) => ({
payload: e,
- meta: { [OH]: !0 }
-}), AH = (e) => (t) => {
+ meta: { [kH]: !0 }
+}), jH = (e) => (t) => {
setTimeout(t, e);
}, nCe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, jH = (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 ? nCe(window.requestAnimationFrame, 100) : AH(10) : e.type === "callback" ? e.queueNotification : AH(e.timeout), l = () => {
+}, MH = (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 ? nCe(window.requestAnimationFrame, 100) : jH(10) : e.type === "callback" ? e.queueNotification : jH(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -54261,37 +54261,37 @@ var tCe = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[OH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[kH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
}, rCe = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new TH(e);
- return n && r.push(jH(typeof n == "object" ? n : void 0)), r;
+ let { autoBatch: n = !0 } = t ?? {}, r = new EH(e);
+ return n && r.push(MH(typeof n == "object" ? n : void 0)), r;
};
function iCe(e) {
let t = tCe(), { 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 (cV(n)) c = dV(n);
- else throw Error(aU(1));
+ else if (lV(n)) c = fV(n);
+ else throw Error(oU(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = fV;
+ let u = pV;
i && (u = $Se({
trace: !1,
...typeof i == "object" && i
}));
- let d = rCe(pV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return lV(c, o, p);
+ let d = rCe(mV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return uV(c, o, p);
}
-function MH(e) {
+function NH(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(aU(28));
- if (r in t) throw Error(aU(29));
+ if (!r) throw Error(oU(28));
+ if (r in t) throw Error(oU(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -54320,21 +54320,21 @@ function aCe(e) {
return typeof e == "function";
}
function oCe(e, t) {
- let [n, r, i] = MH(t), a;
- if (aCe(e)) a = () => EH(e());
+ let [n, r, i] = NH(t), a;
+ if (aCe(e)) a = () => DH(e());
else {
- let t = EH(e);
+ let t = DH(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 (DV(e)) {
+ if (OV(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (OV(e)) return SH(e, (e) => n(e, t));
+ if (kV(e)) return CH(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -54361,7 +54361,7 @@ function dCe({ creators: e } = {}) {
let t = e?.asyncThunk?.[lCe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(aU(11));
+ if (!n) throw Error(oU(11));
let i = (typeof e.reducers == "function" ? e.reducers(pCe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
@@ -54370,8 +54370,8 @@ function dCe({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(aU(12));
- if (n in o.sliceCaseReducersByType) throw Error(aU(13));
+ if (!n) throw Error(oU(12));
+ if (n in o.sliceCaseReducersByType) throw Error(oU(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -54396,7 +54396,7 @@ function dCe({ creators: e } = {}) {
hCe(a) ? _Ce(o, a, s, t) : mCe(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? MH(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? NH(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
@@ -54417,12 +54417,12 @@ function dCe({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = DH(d, r, m)), i;
+ return i === void 0 && n && (i = OH(d, r, m)), i;
}
function i(t = l) {
- return DH(DH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return OH(OH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = fCe(a, t, () => DH(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = fCe(a, t, () => OH(d, t, m), n);
return r;
});
}
@@ -54463,7 +54463,7 @@ function fCe(e, t, n, r) {
}
return i.unwrapped = e, i;
}
-var NH = /* @__PURE__ */ dCe();
+var PH = /* @__PURE__ */ dCe();
function pCe() {
function e(e, t) {
return {
@@ -54491,10 +54491,10 @@ function pCe() {
function mCe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !gCe(r)) throw Error(aU(17));
+ if (n && !gCe(r)) throw Error(oU(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? wH(e, o) : wH(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? TH(e, o) : TH(e));
}
function hCe(e) {
return e._reducerDefinitionType === "asyncThunk";
@@ -54503,39 +54503,39 @@ function gCe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
function _Ce({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(aU(18));
+ if (!i) throw Error(oU(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 || PH,
- pending: s || PH,
- rejected: c || PH,
- settled: l || PH
+ fulfilled: o || FH,
+ pending: s || FH,
+ rejected: c || FH,
+ settled: l || FH
});
}
-function PH() {}
-var vCe = "task", FH = "listener", IH = "completed", LH = "cancelled", yCe = `task-${LH}`, bCe = `task-${IH}`, RH = `${FH}-${LH}`, xCe = `${FH}-${IH}`, zH = class {
+function FH() {}
+var vCe = "task", IH = "listener", LH = "completed", RH = "cancelled", yCe = `task-${RH}`, bCe = `task-${LH}`, zH = `${IH}-${RH}`, xCe = `${IH}-${LH}`, BH = class {
constructor(e) {
- this.code = e, this.message = `${vCe} ${LH} (reason: ${e})`;
+ this.code = e, this.message = `${vCe} ${RH} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, BH = (e, t) => {
- if (typeof e != "function") throw TypeError(aU(32));
-}, VH = () => {}, HH = (e, t = VH) => (e.catch(t), e), UH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), WH = (e) => {
- if (e.aborted) throw new zH(e.reason);
+}, VH = (e, t) => {
+ if (typeof e != "function") throw TypeError(oU(32));
+}, HH = () => {}, UH = (e, t = HH) => (e.catch(t), e), WH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), GH = (e) => {
+ if (e.aborted) throw new BH(e.reason);
};
-function GH(e, t) {
- let n = VH;
+function KH(e, t) {
+ let n = HH;
return new Promise((r, i) => {
- let a = () => i(new zH(e.reason));
+ let a = () => i(new BH(e.reason));
if (e.aborted) {
a();
return;
}
- n = UH(e, a), t.finally(() => n()).then(r, i);
+ n = WH(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = VH;
+ n = HH;
});
}
var SCe = async (e, t) => {
@@ -54546,32 +54546,32 @@ var SCe = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof zH ? "cancelled" : "rejected",
+ status: e instanceof BH ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, KH = (e) => (t) => HH(GH(e, t).then((t) => (WH(e), t))), qH = (e) => {
- let t = KH(e);
+}, qH = (e) => (t) => UH(KH(e, t).then((t) => (GH(e), t))), JH = (e) => {
+ let t = qH(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: JH } = Object, YH = {}, XH = "listenerMiddleware", CCe = (e, t) => {
- let n = (t) => UH(e, () => t.abort(e.reason));
+}, { assign: YH } = Object, XH = {}, ZH = "listenerMiddleware", CCe = (e, t) => {
+ let n = (t) => WH(e, () => t.abort(e.reason));
return (r, i) => {
- BH(r, "taskExecutor");
+ VH(r, "taskExecutor");
let a = new AbortController();
n(a);
let o = SCe(async () => {
- WH(e), WH(a.signal);
+ GH(e), GH(a.signal);
let t = await r({
- pause: KH(a.signal),
- delay: qH(a.signal),
+ pause: qH(a.signal),
+ delay: JH(a.signal),
signal: a.signal
});
- return WH(a.signal), t;
+ return GH(a.signal), t;
}, () => a.abort(bCe));
- return i?.autoJoin && t.push(o.catch(VH)), {
- result: KH(e)(o),
+ return i?.autoJoin && t.push(o.catch(HH)), {
+ result: qH(e)(o),
cancel() {
a.abort(yCe);
}
@@ -54579,7 +54579,7 @@ var SCe = async (e, t) => {
};
}, wCe = (e, t) => {
let n = async (n, r) => {
- WH(t);
+ GH(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -54597,26 +54597,26 @@ var SCe = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await GH(t, Promise.race(a));
- return WH(t), e;
+ let e = await KH(t, Promise.race(a));
+ return GH(t), e;
} finally {
i();
}
};
- return ((e, t) => HH(n(e, t)));
-}, ZH = (e) => {
+ return ((e, t) => UH(n(e, t)));
+}, QH = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = wH(t).match;
+ if (t) i = TH(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(aU(21));
- return BH(a, "options.listener"), {
+ else if (!i) throw Error(oU(21));
+ return VH(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, QH = /* @__PURE__ */ JH((e) => {
- let { type: t, predicate: n, effect: r } = ZH(e);
+}, $H = /* @__PURE__ */ YH((e) => {
+ let { type: t, predicate: n, effect: r } = QH(e);
return {
id: cCe(),
effect: r,
@@ -54624,20 +54624,20 @@ var SCe = async (e, t) => {
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(aU(22));
+ throw Error(oU(22));
}
};
-}, { withTypes: () => QH }), $H = (e, t) => {
- let { type: n, effect: r, predicate: i } = ZH(t);
+}, { withTypes: () => $H }), eU = (e, t) => {
+ let { type: n, effect: r, predicate: i } = QH(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, eU = (e) => {
+}, tU = (e) => {
e.pending.forEach((e) => {
- e.abort(RH);
+ e.abort(zH);
});
}, TCe = (e, t) => () => {
- for (let e of t.keys()) eU(e);
+ for (let e of t.keys()) tU(e);
e.clear();
-}, tU = (e, t, n) => {
+}, nU = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -54645,9 +54645,9 @@ var SCe = async (e, t) => {
throw e;
}, 0);
}
-}, nU = /* @__PURE__ */ JH(/* @__PURE__ */ wH(`${XH}/add`), { withTypes: () => nU }), ECe = /* @__PURE__ */ wH(`${XH}/removeAll`), rU = /* @__PURE__ */ JH(/* @__PURE__ */ wH(`${XH}/remove`), { withTypes: () => rU }), DCe = (...e) => {
- console.error(`${XH}/error`, ...e);
-}, iU = (e = {}) => {
+}, rU = /* @__PURE__ */ YH(/* @__PURE__ */ TH(`${ZH}/add`), { withTypes: () => rU }), ECe = /* @__PURE__ */ TH(`${ZH}/removeAll`), iU = /* @__PURE__ */ YH(/* @__PURE__ */ TH(`${ZH}/remove`), { withTypes: () => iU }), DCe = (...e) => {
+ console.error(`${ZH}/error`, ...e);
+}, aU = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
let t = n.get(e) ?? 0;
n.set(e, t + 1);
@@ -54655,28 +54655,28 @@ var SCe = async (e, t) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
}, { extra: a, onError: o = DCe } = e;
- BH(o, "onError");
+ VH(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && eU(e);
+ e.unsubscribe(), t?.cancelActive && tU(e);
}), c = ((e) => {
- let n = $H(t, e) ?? QH(e);
+ let n = eU(t, e) ?? $H(e);
return s(n);
});
- JH(c, { withTypes: () => c });
+ YH(c, { withTypes: () => c });
let l = (e) => {
- let n = $H(t, e);
- return n && (n.unsubscribe(), e.cancelActive && eU(n)), !!n;
+ let n = eU(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && tU(n)), !!n;
};
- JH(l, { withTypes: () => l });
+ YH(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
let u = new AbortController(), d = wCe(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, JH({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, YH({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: qH(u.signal),
- pause: KH(u.signal),
+ delay: JH(u.signal),
+ pause: qH(u.signal),
extra: a,
signal: u.signal,
fork: CCe(u.signal, f),
@@ -54686,33 +54686,33 @@ var SCe = async (e, t) => {
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(RH), n.delete(e));
+ e !== u && (e.abort(zH), n.delete(e));
});
},
cancel: () => {
- u.abort(RH), e.pending.delete(u);
+ u.abort(zH), e.pending.delete(u);
},
throwIfCancelled: () => {
- WH(u.signal);
+ GH(u.signal);
}
})));
} catch (e) {
- e instanceof zH || tU(o, e, { raisedBy: "effect" });
+ e instanceof BH || nU(o, e, { raisedBy: "effect" });
} finally {
await Promise.all(f), u.abort(xCe), i(e), e.pending.delete(u);
}
}, d = TCe(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!mV(r)) return n(r);
- if (nU.match(r)) return c(r.payload);
+ if (!hV(r)) return n(r);
+ if (rU.match(r)) return c(r.payload);
if (ECe.match(r)) {
d();
return;
}
- if (rU.match(r)) return l(r.payload);
+ if (iU.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === YH) throw Error(aU(23));
+ if (i === XH) throw Error(oU(23));
return i;
}, s;
try {
@@ -54723,13 +54723,13 @@ var SCe = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, tU(o, e, { raisedBy: "predicate" });
+ s = !1, nU(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = YH;
+ i = XH;
}
return s;
},
@@ -54738,12 +54738,12 @@ var SCe = async (e, t) => {
clearListeners: d
};
};
-function aU(e) {
+function oU(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 oU = NH({
+var sU = PH({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -54771,23 +54771,23 @@ var oU = NH({
e.scale = t.payload;
}
}
-}), { setMargin: OCe, setLayout: kCe, setChartSize: ACe, setScale: jCe } = oU.actions, MCe = oU.reducer;
+}), { setMargin: OCe, setLayout: kCe, setChartSize: ACe, setScale: jCe } = sU.actions, MCe = sU.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function sU(e, t, n) {
+function cU(e, t, n) {
return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;
}
//#endregion
//#region node_modules/recharts/es6/util/isWellBehavedNumber.js
-function cU(e) {
+function lU(e) {
return Number.isFinite(e);
}
-function lU(e) {
+function uU(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function uU(e, t) {
+function dU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54797,12 +54797,12 @@ function uU(e, t) {
}
return n;
}
-function dU(e) {
+function fU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? uU(Object(n), !0).forEach(function(t) {
+ t % 2 ? dU(Object(n), !0).forEach(function(t) {
NCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uU(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -54830,59 +54830,59 @@ function FCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function fU(e, t, n) {
- return oB(e) || oB(t) ? n : eB(t) ? Jz(e, t, n) : typeof t == "function" ? t(e) : n;
+function pU(e, t, n) {
+ return sB(e) || sB(t) ? n : tB(t) ? Yz(e, t, n) : typeof t == "function" ? t(e) : n;
}
var ICe = (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 dU(dU({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return dU(dU({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return fU(fU({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return fU(fU({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, pU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", mU = (e, t, n, r) => {
+}, mU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", hU = (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;
-}, hU = (e, t, n) => {
+}, gU = (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 ? Zz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? Qz(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 cU(i) ? {
+ return lU(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(cB) : c && l ? l.map((e, t) => {
+ }).filter(lB) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return cU(n) ? {
+ return lU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(cB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(lB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return cU(n) ? {
+ return lU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(cB) : o.domain().map((e, t) => {
+ }).filter(lB) : o.domain().map((e, t) => {
var n = o.map(e);
- return cU(n) ? {
+ return lU(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(cB);
-}, gU = (e, t) => {
+ }).filter(lB);
+}, _U = (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;
@@ -54894,14 +54894,14 @@ var ICe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0, o = 0; o < t; ++o) {
var s = e[o]?.[r];
if (s != null) {
- var c = s[1], l = s[0], u = Qz(c) ? l : c;
+ var c = s[1], l = s[0], u = $z(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
expand: Xbe,
- none: Bz,
+ none: Vz,
silhouette: Zbe,
wiggle: Qbe,
positive: (e) => {
@@ -54911,44 +54911,44 @@ var ICe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0; a < t; ++a) {
var o = e[a]?.[r];
if (o != null) {
- var s = Qz(o[1]) ? o[0] : o[1];
+ var s = $z(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
}, RCe = (e, t, n) => {
- var r = LCe[n] ?? Bz, i = Ybe().keys(t).value((e, t) => Number(fU(e, t, 0))).order(Vz).offset(r)(e);
+ var r = LCe[n] ?? Vz, i = Ybe().keys(t).value((e, t) => Number(pU(e, t, 0))).order(Hz).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = fU(e[i], t[r], 0);
+ var a = pU(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 _U(e) {
+function vU(e) {
return e == null ? void 0 : String(e);
}
-function vU(e) {
+function yU(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !oB(i[t.dataKey])) {
- var s = aB(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !sB(i[t.dataKey])) {
+ var s = oB(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 = fU(i, oB(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = pU(i, sB(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var yU = (e) => {
+var bU = (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 = fU(a, t.dataKey, t.scale.domain()[o]);
- if (oB(s)) return null;
+ var s = pU(a, t.dataKey, t.scale.domain()[o]);
+ if (sB(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, bU = (e) => {
+}, xU = (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]);
@@ -54963,18 +54963,18 @@ var yU = (e) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = zCe(sU(r, t, n));
- return !cU(i[0]) || !cU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = zCe(cU(r, t, n));
+ return !lU(i[0]) || !lU(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]));
-}, xU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, SU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, CU = (e, t, n) => {
+}, SU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, CU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, wU = (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 = eV(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = tV(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);
}
@@ -54982,26 +54982,26 @@ var yU = (e) => {
}
return n ? void 0 : 0;
};
-function wU(e) {
+function TU(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return dU(dU({}, t), {}, {
+ return fU(fU({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function TU(e, t) {
+function EU(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
var HCe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, UCe = (e, t) => t === "centric" ? e.angle : e.radius, EU = (e) => e.layout.width, DU = (e) => e.layout.height, WCe = (e) => e.layout.scale, OU = (e) => e.layout.margin, kU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), AU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), GCe = "data-recharts-item-index";
+}, UCe = (e, t) => t === "centric" ? e.angle : e.radius, DU = (e) => e.layout.width, OU = (e) => e.layout.height, WCe = (e) => e.layout.scale, kU = (e) => e.layout.margin, AU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), jU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), GCe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function jU(e, t) {
+function MU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55011,12 +55011,12 @@ function jU(e, t) {
}
return n;
}
-function MU(e) {
+function NU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? jU(Object(n), !0).forEach(function(t) {
+ t % 2 ? MU(Object(n), !0).forEach(function(t) {
KCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jU(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -55046,56 +55046,56 @@ function JCe(e, t) {
}
var YCe = (e) => e.brush.height;
function XCe(e) {
- return AU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return jU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function ZCe(e) {
- return AU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return jU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function QCe(e) {
- return kU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return AU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
function $Ce(e) {
- return kU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return AU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-var NU = $([
- EU,
+var PU = $([
DU,
OU,
+ kU,
YCe,
XCe,
ZCe,
QCe,
$Ce,
- tV,
+ nV,
PSe
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = MU(MU({}, {
+ }, d = NU(NU({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
d.bottom += r, d = ICe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return MU(MU({ brushBottom: f }, d), {}, {
+ return NU(NU({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), ewe = $(NU, (e) => ({
+}), ewe = $(PU, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), PU = $(EU, DU, (e, t) => ({
+})), FU = $(DU, OU, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), twe = /*#__PURE__*/ (0, R.createContext)(null), FU = () => (0, R.useContext)(twe) != null, IU = (e) => e.brush, LU = $([
- IU,
- NU,
- OU
+})), twe = /*#__PURE__*/ (0, R.createContext)(null), IU = () => (0, R.useContext)(twe) != null, LU = (e) => e.brush, RU = $([
+ LU,
+ PU,
+ kU
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -55152,7 +55152,7 @@ function iwe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var RU = function(e, t) {
+var zU = 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.");
@@ -55161,7 +55161,7 @@ var RU = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, zU = {
+}, BU = {
width: "100%",
height: "100%",
debounce: 0,
@@ -55170,8 +55170,8 @@ var RU = function(e, t) {
width: -1,
height: -1
}
-}, BU = (e, t, n) => {
- var { width: r = zU.width, height: i = zU.height, aspect: a, maxHeight: o } = n, s = $z(r) ? e : Number(r), c = $z(i) ? t : Number(i);
+}, VU = (e, t, n) => {
+ var { width: r = BU.width, height: i = BU.height, aspect: a, maxHeight: o } = n, s = eB(r) ? e : Number(r), c = eB(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
@@ -55187,28 +55187,28 @@ var RU = function(e, t) {
height: 0,
overflowY: "visible"
}, cwe = {}, lwe = (e) => {
- var { width: t, height: n } = e, r = $z(t), i = $z(n);
+ var { width: t, height: n } = e, r = eB(t), i = eB(n);
return r && i ? awe : r ? owe : i ? swe : cwe;
};
function uwe(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = zU.width, a = zU.height) : i === void 0 ? i = r && r > 0 ? void 0 : zU.width : a === void 0 && (a = r && r > 0 ? void 0 : zU.height), {
+ return i === void 0 && a === void 0 ? (i = BU.width, a = BU.height) : i === void 0 ? i = r && r > 0 ? void 0 : BU.width : a === void 0 && (a = r && r > 0 ? void 0 : BU.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function VU() {
- return VU = Object.assign ? Object.assign.bind() : function(e) {
+function HU() {
+ return HU = 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;
- }, VU.apply(null, arguments);
+ }, HU.apply(null, arguments);
}
-function HU(e, t) {
+function UU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55218,12 +55218,12 @@ function HU(e, t) {
}
return n;
}
-function UU(e) {
+function WU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? HU(Object(n), !0).forEach(function(t) {
+ t % 2 ? UU(Object(n), !0).forEach(function(t) {
dwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HU(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -55251,19 +55251,19 @@ function pwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var WU = /*#__PURE__*/ (0, R.createContext)(zU.initialDimension);
+var GU = /*#__PURE__*/ (0, R.createContext)(BU.initialDimension);
function mwe(e) {
- return lU(e.width) && lU(e.height);
+ return uU(e.width) && uU(e.height);
}
-function GU(e) {
+function KU(e) {
var { children: t, width: n, height: r } = e, i = (0, R.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return mwe(i) ? /*#__PURE__*/ R.createElement(WU.Provider, { value: i }, t) : null;
+ return mwe(i) ? /*#__PURE__*/ R.createElement(GU.Provider, { value: i }, t) : null;
}
-var KU = () => (0, R.useContext)(WU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = zU.initialDimension, width: i, height: a, minWidth: o = zU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = zU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
+var qU = () => (0, R.useContext)(GU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = BU.initialDimension, width: i, height: a, minWidth: o = BU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = BU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
g.current = p, (0, R.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, R.useState)({
containerWidth: r.width,
@@ -55278,7 +55278,7 @@ var KU = () => (0, R.useContext)(WU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e,
});
}, []);
(0, R.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return lB;
+ if (h.current == null || typeof ResizeObserver > "u") return uB;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -55296,17 +55296,17 @@ var KU = () => (0, R.useContext)(WU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e,
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- RU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = BU(b, x, {
+ zU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = VU(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return RU(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__*/ R.createElement("div", {
+ return zU(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__*/ R.createElement("div", {
id: d ? `${d}` : void 0,
- className: xh("recharts-responsive-container", f),
- style: UU(UU({}, m), {}, {
+ className: Sh("recharts-responsive-container", f),
+ style: WU(WU({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -55317,27 +55317,27 @@ var KU = () => (0, R.useContext)(WU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e,
}, /*#__PURE__*/ R.createElement("div", { style: lwe({
width: i,
height: a
- }) }, /*#__PURE__*/ R.createElement(GU, {
+ }) }, /*#__PURE__*/ R.createElement(KU, {
width: S,
height: C
}, l)));
-}), qU = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = KU();
- if (lU(n.width) && lU(n.height)) return e.children;
+}), JU = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = qU();
+ if (uU(n.width) && uU(n.height)) return e.children;
var { width: r, height: i } = uwe({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = BU(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = VU(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(GU, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(KU, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ R.createElement(hwe, VU({}, e, {
+ }, e.children) : /*#__PURE__*/ R.createElement(hwe, HU({}, e, {
width: r,
height: i,
ref: t
@@ -55345,7 +55345,7 @@ var KU = () => (0, R.useContext)(WU), hwe = /*#__PURE__*/ (0, R.forwardRef)((e,
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function JU(e) {
+function YU(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -55355,8 +55355,8 @@ function JU(e) {
height: e.height
};
}
-var YU = () => {
- var e = FU(), t = Q(ewe), n = Q(LU), r = Q(IU)?.padding;
+var XU = () => {
+ var e = IU(), t = Q(ewe), n = Q(RU), r = Q(LU)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
height: n.height - r.top - r.bottom,
@@ -55371,16 +55371,16 @@ var YU = () => {
width: 0,
height: 0,
brushBottom: 0
-}, XU = () => Q(NU) ?? gwe, ZU = () => Q(EU), QU = () => Q(DU), _we = () => Q((e) => e.layout.margin), $U = (e) => e.layout.layoutType, eW = () => Q($U), tW = () => {
- var e = eW();
+}, ZU = () => Q(PU) ?? gwe, QU = () => Q(DU), $U = () => Q(OU), _we = () => Q((e) => e.layout.margin), eW = (e) => e.layout.layoutType, tW = () => Q(eW), nW = () => {
+ var e = tW();
if (e === "horizontal" || e === "vertical") return e;
-}, nW = (e) => {
+}, rW = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, rW = () => Q(nW), vwe = () => eW() !== void 0, iW = (e) => {
- var t = KB(), n = FU(), { width: r, height: i } = e, a = KU(), o = r, s = i;
+}, iW = () => Q(rW), vwe = () => tW() !== void 0, aW = (e) => {
+ var t = qB(), n = IU(), { width: r, height: i } = e, a = qU(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, R.useEffect)(() => {
- !n && lU(o) && lU(s) && t(ACe({
+ !n && uU(o) && uU(s) && t(ACe({
width: o,
height: s
}));
@@ -55390,64 +55390,64 @@ var YU = () => {
o,
s
]), null;
-}, aW = Symbol.for("immer-nothing"), oW = Symbol.for("immer-draftable"), sW = Symbol.for("immer-state");
-function cW(e, ...t) {
+}, oW = Symbol.for("immer-nothing"), sW = Symbol.for("immer-draftable"), cW = Symbol.for("immer-state");
+function lW(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var lW = Object.getPrototypeOf;
-function uW(e) {
- return !!e && !!e[sW];
-}
+var uW = Object.getPrototypeOf;
function dW(e) {
- return e ? pW(e) || Array.isArray(e) || !!e[oW] || !!e.constructor?.[oW] || vW(e) || yW(e) : !1;
+ return !!e && !!e[cW];
}
-var ywe = Object.prototype.constructor.toString(), fW = /* @__PURE__ */ new WeakMap();
-function pW(e) {
+function fW(e) {
+ return e ? mW(e) || Array.isArray(e) || !!e[sW] || !!e.constructor?.[sW] || yW(e) || bW(e) : !1;
+}
+var ywe = Object.prototype.constructor.toString(), pW = /* @__PURE__ */ new WeakMap();
+function mW(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 = fW.get(n);
- return r === void 0 && (r = Function.toString.call(n), fW.set(n, r)), r === ywe;
+ let r = pW.get(n);
+ return r === void 0 && (r = Function.toString.call(n), pW.set(n, r)), r === ywe;
}
-function mW(e, t, n = !0) {
- hW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function hW(e, t, n = !0) {
+ gW(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 hW(e) {
- let t = e[sW];
- return t ? t.type_ : Array.isArray(e) ? 1 : vW(e) ? 2 : yW(e) ? 3 : 0;
+function gW(e) {
+ let t = e[cW];
+ return t ? t.type_ : Array.isArray(e) ? 1 : yW(e) ? 2 : bW(e) ? 3 : 0;
}
-function gW(e, t) {
- return hW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function _W(e, t) {
+ return gW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function _W(e, t, n) {
- let r = hW(e);
+function vW(e, t, n) {
+ let r = gW(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
function bwe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function vW(e) {
+function yW(e) {
return e instanceof Map;
}
-function yW(e) {
+function bW(e) {
return e instanceof Set;
}
-function bW(e) {
+function xW(e) {
return e.copy_ || e.base_;
}
-function xW(e, t) {
- if (vW(e)) return new Map(e);
- if (yW(e)) return new Set(e);
+function SW(e, t) {
+ if (yW(e)) return new Map(e);
+ if (bW(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = pW(e);
+ let n = mW(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[sW];
+ delete t[cW];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -55458,38 +55458,38 @@ function xW(e, t) {
value: e[i]
});
}
- return Object.create(lW(e), t);
+ return Object.create(uW(e), t);
}
{
- let t = lW(e);
+ let t = uW(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function SW(e, t = !1) {
- return wW(e) || uW(e) || !dW(e) ? e : (hW(e) > 1 && Object.defineProperties(e, {
- set: CW,
- add: CW,
- clear: CW,
- delete: CW
- }), Object.freeze(e), t && Object.values(e).forEach((e) => SW(e, !0)), e);
+function CW(e, t = !1) {
+ return TW(e) || dW(e) || !fW(e) ? e : (gW(e) > 1 && Object.defineProperties(e, {
+ set: wW,
+ add: wW,
+ clear: wW,
+ delete: wW
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => CW(e, !0)), e);
}
function xwe() {
- cW(2);
+ lW(2);
}
-var CW = { value: xwe };
-function wW(e) {
+var wW = { value: xwe };
+function TW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
var Swe = {};
-function TW(e) {
+function EW(e) {
let t = Swe[e];
- return t || cW(0, e), t;
+ return t || lW(0, e), t;
}
-var EW;
-function DW() {
- return EW;
+var DW;
+function OW() {
+ return DW;
}
function Cwe(e, t) {
return {
@@ -55500,62 +55500,62 @@ function Cwe(e, t) {
unfinalizedDrafts_: 0
};
}
-function OW(e, t) {
- t && (TW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
-}
-function kW(e) {
- AW(e), e.drafts_.forEach(wwe), e.drafts_ = null;
+function kW(e, t) {
+ t && (EW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function AW(e) {
- e === EW && (EW = e.parent_);
+ jW(e), e.drafts_.forEach(wwe), e.drafts_ = null;
}
function jW(e) {
- return EW = Cwe(EW, e);
+ e === DW && (DW = e.parent_);
+}
+function MW(e) {
+ return DW = Cwe(DW, e);
}
function wwe(e) {
- let t = e[sW];
+ let t = e[cW];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function MW(e, t) {
+function NW(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[sW].modified_ && (kW(t), cW(4)), dW(e) && (e = NW(t, e), t.parent_ || FW(t, e)), t.patches_ && TW("Patches").generateReplacementPatches_(n[sW].base_, e, t.patches_, t.inversePatches_)) : e = NW(t, n, []), kW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === aW ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[cW].modified_ && (AW(t), lW(4)), fW(e) && (e = PW(t, e), t.parent_ || IW(t, e)), t.patches_ && EW("Patches").generateReplacementPatches_(n[cW].base_, e, t.patches_, t.inversePatches_)) : e = PW(t, n, []), AW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === oW ? void 0 : e;
}
-function NW(e, t, n) {
- if (wW(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[sW];
- if (!i) return mW(t, (r, a) => PW(e, i, t, r, a, n), r), t;
+function PW(e, t, n) {
+ if (TW(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[cW];
+ if (!i) return hW(t, (r, a) => FW(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return FW(e, i.base_, !0), i.base_;
+ if (!i.modified_) return IW(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), mW(a, (r, a) => PW(e, i, t, r, a, n, o), r), FW(e, t, !1), n && e.patches_ && TW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), hW(a, (r, a) => FW(e, i, t, r, a, n, o), r), IW(e, t, !1), n && e.patches_ && EW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function PW(e, t, n, r, i, a, o) {
+function FW(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = wW(i);
+ let s = TW(i);
if (!(s && !o)) {
- if (uW(i)) {
- let o = NW(e, i, a && t && t.type_ !== 3 && !gW(t.assigned_, r) ? a.concat(r) : void 0);
- if (_W(n, r, o), uW(o)) e.canAutoFreeze_ = !1;
+ if (dW(i)) {
+ let o = PW(e, i, a && t && t.type_ !== 3 && !_W(t.assigned_, r) ? a.concat(r) : void 0);
+ if (vW(n, r, o), dW(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (dW(i) && !s) {
+ if (fW(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- NW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (vW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && FW(e, i);
+ PW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (yW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && IW(e, i);
}
}
}
-function FW(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && SW(t, n);
+function IW(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && CW(t, n);
}
function Twe(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : DW(),
+ scope_: t ? t.scope_ : OW(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -55565,41 +55565,41 @@ function Twe(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = IW;
- n && (i = [r], a = LW);
+ }, i = r, a = LW;
+ n && (i = [r], a = RW);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var IW = {
+var LW = {
get(e, t) {
- if (t === sW) return e;
- let n = bW(e);
- if (!gW(n, t)) return Ewe(e, n, t);
+ if (t === cW) return e;
+ let n = xW(e);
+ if (!_W(n, t)) return Ewe(e, n, t);
let r = n[t];
- return e.finalized_ || !dW(r) ? r : r === RW(e.base_, t) ? (VW(e), e.copy_[t] = HW(r, e)) : r;
+ return e.finalized_ || !fW(r) ? r : r === zW(e.base_, t) ? (HW(e), e.copy_[t] = UW(r, e)) : r;
},
has(e, t) {
- return t in bW(e);
+ return t in xW(e);
},
ownKeys(e) {
- return Reflect.ownKeys(bW(e));
+ return Reflect.ownKeys(xW(e));
},
set(e, t, n) {
- let r = zW(bW(e), t);
+ let r = BW(xW(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = RW(bW(e), t), i = r?.[sW];
+ let r = zW(xW(e), t), i = r?.[cW];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (bwe(n, r) && (n !== void 0 || gW(e.base_, t))) return !0;
- VW(e), BW(e);
+ if (bwe(n, r) && (n !== void 0 || _W(e.base_, t))) return !0;
+ HW(e), VW(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 RW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, VW(e), BW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return zW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, HW(e), VW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = bW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = xW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -55608,46 +55608,46 @@ var IW = {
};
},
defineProperty() {
- cW(11);
+ lW(11);
},
getPrototypeOf(e) {
- return lW(e.base_);
+ return uW(e.base_);
},
setPrototypeOf() {
- cW(12);
+ lW(12);
}
-}, LW = {};
-mW(IW, (e, t) => {
- LW[e] = function() {
+}, RW = {};
+hW(LW, (e, t) => {
+ RW[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), LW.deleteProperty = function(e, t) {
- return LW.set.call(this, e, t, void 0);
-}, LW.set = function(e, t, n) {
- return IW.set.call(this, e[0], t, n, e[0]);
+}), RW.deleteProperty = function(e, t) {
+ return RW.set.call(this, e, t, void 0);
+}, RW.set = function(e, t, n) {
+ return LW.set.call(this, e[0], t, n, e[0]);
};
-function RW(e, t) {
- let n = e[sW];
- return (n ? bW(n) : e)[t];
+function zW(e, t) {
+ let n = e[cW];
+ return (n ? xW(n) : e)[t];
}
function Ewe(e, t, n) {
- let r = zW(t, n);
+ let r = BW(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function zW(e, t) {
+function BW(e, t) {
if (!(t in e)) return;
- let n = lW(e);
+ let n = uW(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = lW(n);
+ n = uW(n);
}
}
-function BW(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && BW(e.parent_));
-}
function VW(e) {
- e.copy_ ||= xW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+ e.modified_ || (e.modified_ = !0, e.parent_ && VW(e.parent_));
+}
+function HW(e) {
+ e.copy_ ||= SW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
var Dwe = class {
constructor(e) {
@@ -55660,25 +55660,25 @@ var Dwe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && cW(6), n !== void 0 && typeof n != "function" && cW(7);
+ typeof t != "function" && lW(6), n !== void 0 && typeof n != "function" && lW(7);
let r;
- if (dW(e)) {
- let i = jW(this), a = HW(e, void 0), o = !0;
+ if (fW(e)) {
+ let i = MW(this), a = UW(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? kW(i) : AW(i);
+ o ? AW(i) : jW(i);
}
- return OW(i, n), MW(r, i);
+ return kW(i, n), NW(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === aW && (r = void 0), this.autoFreeze_ && SW(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === oW && (r = void 0), this.autoFreeze_ && CW(r, !0), n) {
let t = [], i = [];
- TW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ EW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- cW(1, e);
+ lW(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -55692,15 +55692,15 @@ var Dwe = class {
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- dW(e) || cW(8), uW(e) && (e = Owe(e));
- let t = jW(this), n = HW(e, void 0);
- return n[sW].isManual_ = !0, AW(t), n;
+ fW(e) || lW(8), dW(e) && (e = Owe(e));
+ let t = MW(this), n = UW(e, void 0);
+ return n[cW].isManual_ = !0, jW(t), n;
}
finishDraft(e, t) {
- let n = e && e[sW];
- (!n || !n.isManual_) && cW(9);
+ let n = e && e[cW];
+ (!n || !n.isManual_) && lW(9);
let { scope_: r } = n;
- return OW(r, t), MW(void 0, r);
+ return kW(r, t), NW(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -55724,35 +55724,35 @@ var Dwe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = TW("Patches").applyPatches_;
- return uW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = EW("Patches").applyPatches_;
+ return dW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function HW(e, t) {
- let n = vW(e) ? TW("MapSet").proxyMap_(e, t) : yW(e) ? TW("MapSet").proxySet_(e, t) : Twe(e, t);
- return (t ? t.scope_ : DW()).drafts_.push(n), n;
+function UW(e, t) {
+ let n = yW(e) ? EW("MapSet").proxyMap_(e, t) : bW(e) ? EW("MapSet").proxySet_(e, t) : Twe(e, t);
+ return (t ? t.scope_ : OW()).drafts_.push(n), n;
}
function Owe(e) {
- return uW(e) || cW(10, e), UW(e);
+ return dW(e) || lW(10, e), WW(e);
}
-function UW(e) {
- if (!dW(e) || wW(e)) return e;
- let t = e[sW], n, r = !0;
+function WW(e) {
+ if (!fW(e) || TW(e)) return e;
+ let t = e[cW], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = xW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = xW(e, !0);
- return mW(n, (e, t) => {
- _W(n, e, UW(t));
+ t.finalized_ = !0, n = SW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = SW(e, !0);
+ return hW(n, (e, t) => {
+ vW(n, e, WW(t));
}, r), t && (t.finalized_ = !1), n;
}
new Dwe().produce;
-function WW(e) {
+function GW(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var GW = NH({
+var KW = PH({
name: "legend",
initialState: {
settings: {
@@ -55776,30 +55776,30 @@ var GW = NH({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(WW(t.payload));
+ e.payload.push(GW(t.payload));
},
- prepare: kH()
+ prepare: AH()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = bH(e).payload.indexOf(WW(n));
- i > -1 && (e.payload[i] = WW(r));
+ var { prev: n, next: r } = t.payload, i = xH(e).payload.indexOf(GW(n));
+ i > -1 && (e.payload[i] = GW(r));
},
- prepare: kH()
+ prepare: AH()
},
removeLegendPayload: {
reducer(e, t) {
- var n = bH(e).payload.indexOf(WW(t.payload));
+ var n = xH(e).payload.indexOf(GW(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: kH()
+ prepare: AH()
}
}
-}), { setLegendSize: KW, setLegendSettings: kwe, addLegendPayload: qW, replaceLegendPayload: JW, removeLegendPayload: YW } = GW.actions, Awe = GW.reducer, jwe = /* @__PURE__ */ St(((e) => {
- var t = kt();
+}), { setLegendSize: qW, setLegendSettings: kwe, addLegendPayload: JW, replaceLegendPayload: YW, removeLegendPayload: XW } = KW.actions, Awe = KW.reducer, jwe = /* @__PURE__ */ Ct(((e) => {
+ var t = At();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
-(/* @__PURE__ */ St(((e, t) => {
+(/* @__PURE__ */ Ct(((e, t) => {
t.exports = jwe();
})))();
function Mwe(e) {
@@ -55834,12 +55834,12 @@ function Nwe() {
}
};
}
-var XW = {
+var ZW = {
notify() {},
get: () => []
};
function Pwe(e, t) {
- let n, r = XW, i = 0, a = !1;
+ let n, r = ZW, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -55860,7 +55860,7 @@ function Pwe(e, t) {
i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = Nwe());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = XW);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = ZW);
}
function f() {
a || (a = !0, u());
@@ -55880,15 +55880,15 @@ function Pwe(e, t) {
return m;
}
var Fwe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Iwe = typeof navigator < "u" && navigator.product === "ReactNative", Lwe = Fwe || Iwe ? R.useLayoutEffect : R.useEffect;
-function ZW(e, t) {
+function QW(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
function Rwe(e, t) {
- if (ZW(e, t)) return !0;
+ if (QW(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]) || !ZW(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !QW(e[n[r]], t[n[r]])) return !1;
return !0;
}
var zwe = /* @__PURE__ */ Symbol.for("react-redux-context"), Bwe = typeof globalThis < "u" ? globalThis : {};
@@ -55942,7 +55942,7 @@ var Wwe = Uwe, Gwe = /* @__PURE__ */ new Set([
function Kwe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function QW(e, t) {
+function $W(e, t) {
for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (Gwe.has(n)) {
if (e[n] == null && t[n] == null) continue;
if (!Rwe(e[n], t[n])) return !1;
@@ -55952,16 +55952,16 @@ function QW(e, t) {
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
var qwe = ["contextPayload"];
-function $W() {
- return $W = Object.assign ? Object.assign.bind() : function(e) {
+function eG() {
+ return eG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, $W.apply(null, arguments);
+ }, eG.apply(null, arguments);
}
-function eG(e, t) {
+function tG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55971,12 +55971,12 @@ function eG(e, t) {
}
return n;
}
-function tG(e) {
+function nG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? eG(Object(n), !0).forEach(function(t) {
+ t % 2 ? tG(Object(n), !0).forEach(function(t) {
Jwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eG(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -56026,23 +56026,23 @@ function $we(e) {
return e.value;
}
function eTe(e) {
- var { contextPayload: t } = e, n = Zwe(e, qwe), r = WB(t, e.payloadUniqBy, $we), i = tG(tG({}, n), {}, { payload: r });
+ var { contextPayload: t } = e, n = Zwe(e, qwe), r = GB(t, e.payloadUniqBy, $we), i = nG(nG({}, n), {}, { payload: r });
return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(Exe, i);
}
function tTe(e, t, n, r, i, a) {
var { layout: o, align: s, verticalAlign: c } = t, l, u;
- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), tG(tG({}, l), u);
+ 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 }), nG(nG({}, l), u);
}
function nTe(e) {
- var t = KB();
+ var t = qB();
return (0, R.useEffect)(() => {
t(kwe(e));
}, [t, e]), null;
}
function rTe(e) {
- var t = KB();
- return (0, R.useEffect)(() => (t(KW(e)), () => {
- t(KW({
+ var t = qB();
+ return (0, R.useEffect)(() => (t(qW(e)), () => {
+ t(qW({
width: 0,
height: 0
}));
@@ -56060,9 +56060,9 @@ var aTe = {
verticalAlign: "bottom"
};
function oTe(e) {
- var t = yB(e, aTe), n = ISe(), r = bbe(), i = _we(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = rV([n]), d = ZU(), f = QU();
+ var t = bB(e, aTe), n = ISe(), r = bbe(), i = _we(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iV([n]), d = QU(), f = $U();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = iTe(t.layout, o, a, p), h = c ? s : tG(tG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = iTe(t.layout, o, a, p), h = c ? s : nG(nG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
@@ -56080,28 +56080,28 @@ function oTe(e) {
}), !c && /*#__PURE__*/ R.createElement(rTe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ R.createElement(eTe, $W({}, t, m, {
+ }), /*#__PURE__*/ R.createElement(eTe, eG({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
contextPayload: n
})));
- return /*#__PURE__*/ (0, np.createPortal)(_, g);
+ return /*#__PURE__*/ (0, rp.createPortal)(_, g);
}
-var nG = /*#__PURE__*/ R.memo(oTe, QW);
-nG.displayName = "Legend";
+var rG = /*#__PURE__*/ R.memo(oTe, $W);
+rG.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function rG() {
- return rG = Object.assign ? Object.assign.bind() : function(e) {
+function iG() {
+ return iG = 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);
+ }, iG.apply(null, arguments);
}
-function iG(e, t) {
+function aG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56111,12 +56111,12 @@ function iG(e, t) {
}
return n;
}
-function aG(e) {
+function oG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? iG(Object(n), !0).forEach(function(t) {
+ t % 2 ? aG(Object(n), !0).forEach(function(t) {
sTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iG(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -56145,9 +56145,9 @@ function lTe(e, t) {
return (t === "string" ? String : Number)(e);
}
function uTe(e) {
- return Array.isArray(e) && eB(e[0]) && eB(e[1]) ? e.join(" ~ ") : e;
+ return Array.isArray(e) && tB(e[0]) && tB(e[1]) ? e.join(" ~ ") : e;
}
-var oG = {
+var sG = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -56166,10 +56166,10 @@ var oG = {
accessibilityLayer: !1
};
function dTe(e, t) {
- return t == null ? e : eV(e, t);
+ return t == null ? e : tV(e, t);
}
var fTe = (e) => {
- var { separator: t = oG.separator, contentStyle: n, itemStyle: r, labelStyle: i = oG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = oG.accessibilityLayer } = e, p = () => {
+ var { separator: t = sG.separator, contentStyle: n, itemStyle: r, labelStyle: i = sG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = sG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
@@ -56183,12 +56183,12 @@ var fTe = (e) => {
else if (d != null) l = d;
else return null;
}
- var f = aG(aG({}, oG.itemStyle), {}, { color: e.color || oG.itemStyle.color }, r);
+ var f = oG(oG({}, sG.itemStyle), {}, { color: e.color || sG.itemStyle.color }, r);
return /*#__PURE__*/ R.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, eB(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, eB(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, tB(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, tB(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ R.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -56196,30 +56196,30 @@ var fTe = (e) => {
}, n);
}
return null;
- }, m = aG(aG({}, oG.contentStyle), n), h = aG({ margin: 0 }, i), g = !oB(u), _ = g ? u : "", v = xh("recharts-default-tooltip", c), y = xh("recharts-tooltip-label", l);
+ }, m = oG(oG({}, sG.contentStyle), n), h = oG({ margin: 0 }, i), g = !sB(u), _ = g ? u : "", v = Sh("recharts-default-tooltip", c), y = Sh("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ R.createElement("div", rG({
+ return /*#__PURE__*/ R.createElement("div", iG({
className: v,
style: m
}, b), /*#__PURE__*/ R.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ R.isValidElement(_) ? _ : `${_}`), p());
-}, sG = "recharts-tooltip-wrapper", pTe = { visibility: "hidden" };
+}, cG = "recharts-tooltip-wrapper", pTe = { visibility: "hidden" };
function mTe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return xh(sG, {
- [`${sG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${sG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${sG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${sG}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return Sh(cG, {
+ [`${cG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${cG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${cG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${cG}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function cG(e) {
+function lG(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;
@@ -56233,7 +56233,7 @@ function hTe(e) {
}
function gTe(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 = cG({
+ return s.height > 0 && s.width > 0 && n ? (d = lG({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -56243,7 +56243,7 @@ function gTe(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = cG({
+ }), f = lG({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -56266,14 +56266,14 @@ function gTe(e) {
})
};
}
-var lG = {
+var uG = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function uG() {
- var [e, t] = (0, R.useState)(() => lG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function dG() {
+ var [e, t] = (0, R.useState)(() => uG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, R.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -56287,7 +56287,7 @@ function uG() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function dG(e, t) {
+function fG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56297,12 +56297,12 @@ function dG(e, t) {
}
return n;
}
-function fG(e) {
+function pG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dG(Object(n), !0).forEach(function(t) {
+ t % 2 ? fG(Object(n), !0).forEach(function(t) {
_Te(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dG(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -56334,7 +56334,7 @@ function bTe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
function xTe(e) {
- var t = uG(), [n, r] = R.useState(() => ({
+ var t = dG(), [n, r] = R.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -56354,7 +56354,7 @@ function xTe(e) {
return document.addEventListener("keydown", t), () => {
document.removeEventListener("keydown", t);
};
- }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(fG(fG({}, n), {}, { dismissed: !1 }));
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(pG(pG({}, n), {}, { dismissed: !1 }));
var { cssClasses: i, cssProperties: a } = gTe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
@@ -56368,7 +56368,7 @@ function xTe(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = fG(fG({}, e.hasPortalFromProps ? {} : fG(fG({ transition: bTe({
+ }), o = pG(pG({}, e.hasPortalFromProps ? {} : pG(pG({ transition: bTe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -56388,19 +56388,19 @@ function xTe(e) {
ref: e.innerRef
}, e.children);
}
-var STe = /*#__PURE__*/ R.memo(xTe), pG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var STe = /*#__PURE__*/ R.memo(xTe), mG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function mG() {
- return mG = Object.assign ? Object.assign.bind() : function(e) {
+function hG() {
+ return hG = 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;
- }, mG.apply(null, arguments);
+ }, hG.apply(null, arguments);
}
-function hG(e, t) {
+function gG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56410,12 +56410,12 @@ function hG(e, t) {
}
return n;
}
-function gG(e) {
+function _G(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? hG(Object(n), !0).forEach(function(t) {
+ t % 2 ? gG(Object(n), !0).forEach(function(t) {
CTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hG(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -56443,40 +56443,40 @@ function TTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var _G = {
+var vG = {
curveBasisClosed: Rbe,
curveBasisOpen: zbe,
curveBasis: Lbe,
curveBumpX: Cbe,
curveBumpY: wbe,
curveLinearClosed: Bbe,
- curveLinear: dz,
+ curveLinear: fz,
curveMonotoneX: Vbe,
curveMonotoneY: Hbe,
curveNatural: Ube,
curveStep: Wbe,
curveStepAfter: Kbe,
curveStepBefore: Gbe
-}, vG = (e) => cU(e.x) && cU(e.y), yG = (e) => e.base != null && vG(e.base) && vG(e), bG = (e) => e.x, xG = (e) => e.y, ETe = (e, t) => {
+}, yG = (e) => lU(e.x) && lU(e.y), bG = (e) => e.base != null && yG(e.base) && yG(e), xG = (e) => e.x, SG = (e) => e.y, ETe = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${sB(e)}`;
+ var n = `curve${cB(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = _G[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = vG[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return _G[n] || dz;
-}, SG = {
+ return vG[n] || fz;
+}, CG = {
connectNulls: !1,
type: "linear"
}, DTe = (e) => {
- var { type: t = SG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = SG.connectNulls } = e, o = ETe(t, i), s = a ? n.filter(vG) : n;
+ var { type: t = CG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = CG.connectNulls } = e, o = ETe(t, i), s = a ? n.filter(yG) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => gG(gG({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? hz().y(xG).x1(bG).x0((e) => e.base.x) : hz().x(bG).y1(xG).y0((e) => e.base.y), c.defined(yG).curve(o)(a ? l.filter(yG) : l);
+ var c, l = n.map((e, t) => _G(_G({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? gz().y(SG).x1(xG).x0((e) => e.base.x) : gz().x(xG).y1(SG).y0((e) => e.base.y), c.defined(bG).curve(o)(a ? l.filter(bG) : l);
}
- return (i === "vertical" && Z(r) ? hz().y(xG).x1(bG).x0(r) : Z(r) ? hz().x(bG).y1(xG).y0(r) : mz().x(bG).y(xG)).defined(vG).curve(o)(s);
-}, CG = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = eW();
+ return (i === "vertical" && Z(r) ? gz().y(SG).x1(xG).x0(r) : Z(r) ? gz().x(xG).y1(SG).y0(r) : hz().x(xG).y(SG)).defined(yG).curve(o)(s);
+}, wG = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = tW();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -56485,8 +56485,8 @@ var _G = {
layout: e.layout || a,
connectNulls: e.connectNulls
}, s = n && n.length ? DTe(o) : r;
- return /*#__PURE__*/ R.createElement("path", mG({}, UR(e), gB(e), {
- className: xh("recharts-curve", t),
+ return /*#__PURE__*/ R.createElement("path", hG({}, WR(e), _B(e), {
+ className: Sh("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
@@ -56499,16 +56499,16 @@ var _G = {
"height",
"className"
];
-function wG() {
- return wG = Object.assign ? Object.assign.bind() : function(e) {
+function TG() {
+ return TG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, wG.apply(null, arguments);
+ }, TG.apply(null, arguments);
}
-function TG(e, t) {
+function EG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56521,9 +56521,9 @@ function TG(e, t) {
function kTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? TG(Object(n), !0).forEach(function(t) {
+ t % 2 ? EG(Object(n), !0).forEach(function(t) {
ATe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TG(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -56578,8 +56578,8 @@ var FTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, ITe = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", wG({}, GR(l), {
- className: xh("recharts-cross", s),
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", TG({}, KR(l), {
+ className: Sh("recharts-cross", s),
d: FTe(t, n, a, o, r, i)
}));
};
@@ -56598,7 +56598,7 @@ function LTe(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function EG(e, t) {
+function DG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56608,12 +56608,12 @@ function EG(e, t) {
}
return n;
}
-function DG(e) {
+function OG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? EG(Object(n), !0).forEach(function(t) {
+ t % 2 ? DG(Object(n), !0).forEach(function(t) {
RTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EG(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -56641,10 +56641,10 @@ function BTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var VTe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), OG = (e, t, n) => e.map((e) => `${VTe(e)} ${t}ms ${n}`).join(","), HTe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), kG = (e, t) => Object.keys(t).reduce((n, r) => DG(DG({}, n), {}, { [r]: e(r, t[r]) }), {});
+var VTe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), kG = (e, t, n) => e.map((e) => `${VTe(e)} ${t}ms ${n}`).join(","), HTe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), AG = (e, t) => Object.keys(t).reduce((n, r) => OG(OG({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function AG(e, t) {
+function jG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56654,12 +56654,12 @@ function AG(e, t) {
}
return n;
}
-function jG(e) {
+function MG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? AG(Object(n), !0).forEach(function(t) {
+ t % 2 ? jG(Object(n), !0).forEach(function(t) {
UTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AG(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -56687,34 +56687,34 @@ function GTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var MG = (e, t, n) => e + (t - e) * n, NG = (e) => {
+var NG = (e, t, n) => e + (t - e) * n, PG = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, PG = (e, t, n) => {
- var r = kG((t, n) => {
- if (NG(n)) {
+}, FG = (e, t, n) => {
+ var r = AG((t, n) => {
+ if (PG(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return jG(jG({}, n), {}, {
+ return MG(MG({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? kG((e, t) => NG(t) && r[e] != null ? jG(jG({}, t), {}, {
- velocity: MG(t.velocity, r[e].velocity, n),
- from: MG(t.from, r[e].from, n)
- }) : t, t) : PG(e, r, n - 1);
+ return n < 1 ? AG((e, t) => PG(t) && r[e] != null ? MG(MG({}, t), {}, {
+ velocity: NG(t.velocity, r[e].velocity, n),
+ from: NG(t.from, r[e].from, n)
+ }) : t, t) : FG(e, r, n - 1);
};
function KTe(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => jG(jG({}, n), {}, { [r]: {
+ var o, s = r.reduce((n, r) => MG(MG({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => kG((e, t) => t.from, s), l = () => !Object.values(s).filter(NG).length, u = null, d = (r) => {
+ } }), {}), c = () => AG((e, t) => t.from, s), l = () => !Object.values(s).filter(PG).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = PG(n, s, f), i(jG(jG(jG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = FG(n, s, f), i(MG(MG(MG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
@@ -56724,14 +56724,14 @@ function KTe(e, t, n, r, i, a) {
function qTe(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 : jG(jG({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : MG(MG({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = kG((e, t) => MG(...t, n(d)), c);
- if (a(jG(jG(jG({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = AG((e, t) => NG(...t, n(d)), c);
+ if (a(MG(MG(MG({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = kG((e, t) => MG(...t, n(1)), c);
- a(jG(jG(jG({}, e), t), p));
+ var p = AG((e, t) => NG(...t, n(1)), c);
+ a(MG(MG(MG({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -56741,13 +56741,13 @@ function qTe(e, t, n, r, i, a, o) {
}
var JTe = (e, t, n, r, i, a) => {
var o = HTe(e, t);
- return n == null ? () => (i(jG(jG({}, e), t)), () => {}) : n.isStepper === !0 ? KTe(e, t, n, o, i, a) : qTe(e, t, n, r, o, i, a);
-}, FG = (e, t) => [
+ return n == null ? () => (i(MG(MG({}, e), t)), () => {}) : n.isStepper === !0 ? KTe(e, t, n, o, i, a) : qTe(e, t, n, r, o, i, a);
+}, IG = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], IG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), LG = (e, t) => (n) => IG(FG(e, t), n), YTe = (e, t) => (n) => IG([...FG(e, t).map((e, t) => e * t).slice(1), 0], n), XTe = (e) => {
+], LG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), RG = (e, t) => (n) => LG(IG(e, t), n), YTe = (e, t) => (n) => LG([...IG(e, t).map((e, t) => e * t).slice(1), 0], n), XTe = (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(",");
@@ -56803,7 +56803,7 @@ var JTe = (e, t, n, r, i, a) => {
1
];
}, QTe = (e, t, n, r) => {
- var i = LG(e, n), a = LG(t, r), o = YTe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+ var i = RG(e, n), a = RG(t, r), o = YTe(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);
@@ -56812,7 +56812,7 @@ var JTe = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
-}, RG = function() {
+}, zG = function() {
return QTe(...ZTe(...arguments));
}, $Te = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
@@ -56826,9 +56826,9 @@ var JTe = (e, t, n, r, i, a) => {
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return RG(e);
+ case "linear": return zG(e);
case "spring": return $Te();
- default: if (e.split("(")[0] === "cubic-bezier") return RG(e);
+ default: if (e.split("(")[0] === "cubic-bezier") return zG(e);
}
return typeof e == "function" ? e : null;
};
@@ -56901,14 +56901,14 @@ var oEe = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, zG = { t: 0 }, BG = { t: 1 };
-function VG(e) {
- var t = yB(e, oEe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = uG(), d = n === "auto" ? !lG.isSsr && !u : n, f = aEe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? zG : BG), h = (0, R.useRef)(null);
+}, BG = { t: 0 }, VG = { t: 1 };
+function HG(e) {
+ var t = bB(e, oEe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = dG(), d = n === "auto" ? !uG.isSsr && !u : n, f = aEe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? BG : VG), h = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
- d || m(BG);
+ d || m(VG);
}, [d]), (0, R.useEffect)(() => {
- if (!d || !r) return lB;
- var e = JTe(zG, BG, eEe(a), i, m, f.getTimeoutController());
+ if (!d || !r) return uB;
+ var e = JTe(BG, VG, eEe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -56933,14 +56933,14 @@ function VG(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function HG(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(tB(t)), r = (0, R.useRef)(e);
- return r.current !== e && (n.current = tB(t), r.current = e), n.current;
+function UG(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(nB(t)), r = (0, R.useRef)(e);
+ return r.current !== e && (n.current = nB(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
var sEe = ["radius"], cEe = ["radius"], lEe, uEe, dEe, fEe, pEe, mEe, hEe, gEe, _Ee, vEe;
-function UG(e, t) {
+function WG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56950,12 +56950,12 @@ function UG(e, t) {
}
return n;
}
-function WG(e) {
+function GG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? UG(Object(n), !0).forEach(function(t) {
+ t % 2 ? WG(Object(n), !0).forEach(function(t) {
yEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UG(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -56983,16 +56983,16 @@ function xEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function GG() {
- return GG = Object.assign ? Object.assign.bind() : function(e) {
+function KG() {
+ return KG = 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;
- }, GG.apply(null, arguments);
+ }, KG.apply(null, arguments);
}
-function KG(e, t) {
+function qG(e, t) {
if (e == null) return {};
var n, r, i = SEe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -57010,11 +57010,11 @@ function SEe(e, t) {
}
return n;
}
-function qG(e, t) {
+function JG(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var JG = (e, t, n, r, i) => {
- var a = Yz(n), o = Yz(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 YG = (e, t, n, r, i) => {
+ var a = Xz(n), o = Xz(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,
@@ -57025,44 +57025,44 @@ var JG = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = Xz(lEe ||= qG([
+ d = Zz(lEe ||= JG([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += Xz(uEe ||= qG([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += Zz(uEe ||= JG([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += Xz(dEe ||= qG([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += Zz(dEe ||= JG([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += Xz(fEe ||= qG([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += Zz(fEe ||= JG([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += Xz(pEe ||= qG([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += Zz(pEe ||= JG([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Xz(mEe ||= qG([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Zz(mEe ||= JG([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Xz(hEe ||= qG([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Zz(hEe ||= JG([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += Xz(gEe ||= qG([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += Zz(gEe ||= JG([
"A ",
",",
",0,0,",
@@ -57072,8 +57072,8 @@ var JG = (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 = Xz(_Ee ||= qG(/* @__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 = Xz(vEe ||= qG([
+ d = Zz(_Ee ||= JG(/* @__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 = Zz(vEe ||= JG([
"M ",
",",
" h ",
@@ -57082,7 +57082,7 @@ var JG = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, YG = {
+}, XG = {
x: 0,
y: 0,
width: 0,
@@ -57093,15 +57093,15 @@ var JG = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, XG = (e) => {
- var t = yB(e, YG), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
+}, ZG = (e) => {
+ var t = bB(e, XG), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
(0, R.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, R.useRef)(s), _ = (0, R.useRef)(c), v = (0, R.useRef)(a), y = (0, R.useRef)(o), b = HG((0, R.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, R.useRef)(s), _ = (0, R.useRef)(c), v = (0, R.useRef)(a), y = (0, R.useRef)(o), b = UG((0, R.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -57115,21 +57115,21 @@ var JG = (e, t, n, r, i) => {
l
]), "rectangle-");
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
- var x = xh("recharts-rectangle", u);
+ var x = Sh("recharts-rectangle", u);
if (!h) {
- var S = GR(t), { radius: C } = S, w = KG(S, sEe);
- return /*#__PURE__*/ R.createElement("path", GG({}, w, {
- x: Yz(a),
- y: Yz(o),
- width: Yz(s),
- height: Yz(c),
+ var S = KR(t), { radius: C } = S, w = qG(S, sEe);
+ return /*#__PURE__*/ R.createElement("path", KG({}, w, {
+ x: Xz(a),
+ y: Xz(o),
+ width: Xz(s),
+ height: Xz(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: JG(a, o, s, c, l)
+ d: YG(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 = OG(["strokeDasharray"], f, typeof d == "string" ? d : YG.animationEasing);
- return /*#__PURE__*/ R.createElement(VG, {
+ 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 = kG(["strokeDasharray"], f, typeof d == "string" ? d : XG.animationEasing);
+ return /*#__PURE__*/ R.createElement(HG, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -57138,24 +57138,24 @@ var JG = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = iB(T, s, e), i = iB(E, c, e), u = iB(D, a, e), d = iB(O, o, e);
+ var r = aB(T, s, e), i = aB(E, c, e), u = aB(D, a, e), d = aB(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 = GR(t), { radius: h } = p, b = KG(p, cEe);
- return /*#__PURE__*/ R.createElement("path", GG({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = KR(t), { radius: h } = p, b = qG(p, cEe);
+ return /*#__PURE__*/ R.createElement("path", KG({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: JG(u, d, r, i, l),
+ d: YG(u, d, r, i, l),
ref: n,
- style: WG(WG({}, f), t.style)
+ style: GG(GG({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function ZG(e, t) {
+function QG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -57165,12 +57165,12 @@ function ZG(e, t) {
}
return n;
}
-function QG(e) {
+function $G(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) {
+ t % 2 ? QG(Object(n), !0).forEach(function(t) {
CEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZG(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -57198,9 +57198,9 @@ function TEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var $G = Math.PI / 180, eK = (e) => e * Math.PI / 180, EEe = (e) => e * 180 / Math.PI, tK = (e, t, n, r) => ({
- x: e + Math.cos(-$G * r) * n,
- y: t + Math.sin(-$G * r) * n
+var eK = Math.PI / 180, tK = (e) => e * Math.PI / 180, EEe = (e) => e * 180 / Math.PI, nK = (e, t, n, r) => ({
+ x: e + Math.cos(-eK * r) * n,
+ y: t + Math.sin(-eK * r) * n
}), DEe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
@@ -57258,17 +57258,17 @@ var $G = Math.PI / 180, eK = (e) => e * Math.PI / 180, EEe = (e) => e * 180 / Ma
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? QG(QG({}, t), {}, {
+ return d ? $G($G({}, t), {}, {
radius: i,
angle: jEe(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function nK(e) {
+function rK(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [tK(t, n, r, i), tK(t, n, r, a)],
+ points: [nK(t, n, r, i), nK(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -57279,28 +57279,28 @@ function nK(e) {
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
var NEe, PEe, FEe, IEe, LEe, REe, zEe;
-function rK() {
- return rK = Object.assign ? Object.assign.bind() : function(e) {
+function iK() {
+ return iK = 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);
+ }, iK.apply(null, arguments);
}
-function iK(e, t) {
+function aK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (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) / $G, d = c ? i : i + a * u, f = tK(t, n, l, d), p = tK(t, n, r, d), m = c ? i - a * u : i;
+var BEe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 359.999), oK = (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) / eK, d = c ? i : i + a * u, f = nK(t, n, l, d), p = nK(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: tK(t, n, l * Math.cos(u * $G), m),
+ lineTangency: nK(t, n, l * Math.cos(u * eK), m),
theta: u
};
-}, oK = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = BEe(a, o), c = a + s, l = tK(t, n, i, a), u = tK(t, n, i, c), d = Xz(NEe ||= iK([
+}, sK = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = BEe(a, o), c = a + s, l = nK(t, n, i, a), u = nK(t, n, i, c), d = Zz(NEe ||= aK([
"M ",
",",
"\n A ",
@@ -57312,8 +57312,8 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = tK(t, n, r, a), p = tK(t, n, r, c);
- d += Xz(PEe ||= iK([
+ var f = nK(t, n, r, a), p = nK(t, n, r, c);
+ d += Zz(PEe ||= aK([
"L ",
",",
"\n A ",
@@ -57324,14 +57324,14 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += Xz(FEe ||= iK([
+ } else d += Zz(FEe ||= aK([
"L ",
",",
" Z"
]), t, n);
return d;
}, VEe = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Zz(l - c), { circleTangency: d, lineTangency: f, theta: p } = aK({
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Qz(l - c), { circleTangency: d, lineTangency: f, theta: p } = oK({
cx: t,
cy: n,
radius: i,
@@ -57339,7 +57339,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = aK({
+ }), { circleTangency: m, lineTangency: h, theta: g } = oK({
cx: t,
cy: n,
radius: i,
@@ -57348,7 +57348,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? Xz(IEe ||= iK([
+ if (_ < 0) return o ? Zz(IEe ||= aK([
"M ",
",",
"\n a",
@@ -57358,7 +57358,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : oK({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : sK({
cx: t,
cy: n,
innerRadius: r,
@@ -57366,7 +57366,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
startAngle: c,
endAngle: l
});
- var v = Xz(LEe ||= iK([
+ var v = Zz(LEe ||= aK([
"M ",
",",
"\n A",
@@ -57388,7 +57388,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (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 } = aK({
+ var { circleTangency: y, lineTangency: b, theta: x } = oK({
cx: t,
cy: n,
radius: r,
@@ -57397,7 +57397,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = aK({
+ }), { circleTangency: S, lineTangency: C, theta: w } = oK({
cx: t,
cy: n,
radius: r,
@@ -57408,7 +57408,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (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 += Xz(REe ||= iK([
+ v += Zz(REe ||= aK([
"L",
",",
"\n A",
@@ -57429,7 +57429,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (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 += Xz(zEe ||= iK([
+ } else v += Zz(zEe ||= aK([
"L",
",",
"Z"
@@ -57445,10 +57445,10 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, sK = (e) => {
- var t = yB(e, HEe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+}, cK = (e) => {
+ var t = bB(e, HEe), { 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 = xh("recharts-sector", d), p = a - i, m = nB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? VEe({
+ var f = Sh("recharts-sector", d), p = a - i, m = rB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? VEe({
cx: n,
cy: r,
innerRadius: i,
@@ -57458,7 +57458,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : oK({
+ }) : sK({
cx: n,
cy: r,
innerRadius: i,
@@ -57466,7 +57466,7 @@ var BEe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), aK = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ R.createElement("path", rK({}, GR(t), {
+ return /*#__PURE__*/ R.createElement("path", iK({}, KR(t), {
className: f,
d: h
}));
@@ -57488,9 +57488,9 @@ function UEe(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (hB(t)) {
+ if (gB(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = tK(r, i, a, s), l = tK(r, i, o, s);
+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = nK(r, i, a, s), l = nK(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -57499,30 +57499,30 @@ function UEe(e, t, n) {
y: l.y
}];
}
- return nK(t);
+ return rK(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
function WEe(e) {
- return Gz(e) ? NaN : Number(e);
+ return Kz(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function cK(e) {
+function lK(e) {
return e ? (e = WEe(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 lK(e, t, n) {
- n && typeof n != "number" && QB(e, t, n) && (t = n = void 0), e = cK(e), t === void 0 ? (t = e, e = 0) : t = cK(t), n = n === void 0 ? e < t ? 1 : -1 : cK(n);
+function uK(e, t, n) {
+ n && typeof n != "number" && $B(e, t, n) && (t = n = void 0), e = lK(e), t === void 0 ? (t = e, e = 0) : t = lK(t), n = n === void 0 ? e < t ? 1 : -1 : lK(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 uK = (e) => e.chartData, dK = $([uK], (e) => {
+var dK = (e) => e.chartData, fK = $([dK], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -57530,35 +57530,35 @@ var uK = (e) => e.chartData, dK = $([uK], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), fK = (e, t, n, r) => r ? dK(e) : uK(e), pK = (e, t, n) => n ? dK(e) : uK(e);
+}), pK = (e, t, n, r) => r ? fK(e) : dK(e), mK = (e, t, n) => n ? fK(e) : dK(e);
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function mK(e) {
+function hK(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (cU(t) && cU(n)) return !0;
+ if (lU(t) && lU(n)) return !0;
}
return !1;
}
-function hK(e, t, n) {
+function gK(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function gK(e, t) {
+function _K(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (cU(n)) i = n;
+ if (lU(n)) i = n;
else if (typeof n == "function") return;
- if (cU(r)) a = r;
+ if (lU(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
- if (mK(o)) return o;
+ if (hK(o)) return o;
}
}
function GEe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (mK(r)) return hK(r, t, n);
+ if (hK(r)) return gK(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
var [i, a] = e, o, s;
@@ -57567,8 +57567,8 @@ function GEe(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && xU.test(i)) {
- var c = xU.exec(i);
+ else if (typeof i == "string" && SU.test(i)) {
+ var c = SU.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -57580,8 +57580,8 @@ function GEe(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && SU.test(a)) {
- var u = SU.exec(a);
+ else if (typeof a == "string" && CU.test(a)) {
+ var u = CU.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -57589,13 +57589,13 @@ function GEe(e, t, n) {
}
} else s = t?.[1];
var f = [o, s];
- if (mK(f)) return t == null ? f : hK(f, t, n);
+ if (hK(f)) return t == null ? f : gK(f, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var _K = /* @__PURE__ */ Et((/* @__PURE__ */ St(((e, t) => {
+var vK = /* @__PURE__ */ Dt((/* @__PURE__ */ Ct(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -57971,75 +57971,75 @@ var _K = /* @__PURE__ */ Et((/* @__PURE__ */ St(((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 vK(e) {
- return e === 0 ? 1 : Math.floor(new _K.default(e).abs().log(10).toNumber()) + 1;
+function yK(e) {
+ return e === 0 ? 1 : Math.floor(new vK.default(e).abs().log(10).toNumber()) + 1;
}
-function yK(e, t, n) {
- for (var r = new _K.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function bK(e, t, n) {
+ for (var r = new vK.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 bK = (e) => {
+var xK = (e) => {
var [t, n] = e, [r, i] = [t, n];
return t > n && ([r, i] = [n, t]), [r, i];
-}, xK = (e, t, n) => {
- if (e.lte(0)) return new _K.default(0);
- var r = vK(e.toNumber()), i = new _K.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new _K.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new _K.default(s.toNumber()) : new _K.default(Math.ceil(s.toNumber()));
}, SK = (e, t, n) => {
- if (e.lte(0)) return new _K.default(0);
+ if (e.lte(0)) return new vK.default(0);
+ var r = yK(e.toNumber()), i = new vK.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new vK.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new vK.default(s.toNumber()) : new vK.default(Math.ceil(s.toNumber()));
+}, CK = (e, t, n) => {
+ if (e.lte(0)) return new vK.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new _K.default(i).abs().log(10).toNumber()), o = new _K.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new vK.default(i).abs().log(10).toNumber()), o = new vK.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 _K.default(10).pow(l));
+ c %= r.length, o = o.mul(new vK.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new _K.default(u).mul(o);
- return t ? d : new _K.default(Math.ceil(d.toNumber()));
+ var u = r[c] ?? 1, d = new vK.default(u).mul(o);
+ return t ? d : new vK.default(Math.ceil(d.toNumber()));
}, KEe = (e, t, n) => {
- var r = new _K.default(1), i = new _K.default(e);
+ var r = new vK.default(1), i = new vK.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new _K.default(10).pow(vK(e) - 1), i = new _K.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new _K.default(Math.floor(e)));
- } else e === 0 ? i = new _K.default(Math.floor((t - 1) / 2)) : n || (i = new _K.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new _K.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new vK.default(10).pow(yK(e) - 1), i = new vK.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new vK.default(Math.floor(e)));
+ } else e === 0 ? i = new vK.default(Math.floor((t - 1) / 2)) : n || (i = new vK.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new vK.default(c - o).mul(r)).toNumber());
return s;
-}, CK = 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] : xK;
+}, wK = 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] : SK;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new _K.default(0),
- tickMin: new _K.default(0),
- tickMax: new _K.default(0)
- };
- var o = a(new _K.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new _K.default(0) : (s = new _K.default(e).add(t).div(2), s = s.sub(new _K.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new _K.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? CK(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 vK.default(0),
+ tickMin: new vK.default(0),
+ tickMax: new vK.default(0)
+ };
+ var o = a(new vK.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new vK.default(0) : (s = new vK.default(e).add(t).div(2), s = s.sub(new vK.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new vK.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? wK(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 _K.default(c).mul(o)),
- tickMax: s.add(new _K.default(l).mul(o))
+ tickMin: s.sub(new vK.default(c).mul(o)),
+ tickMax: s.add(new vK.default(l).mul(o))
});
-}, wK = 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] = bK([t, n]);
+}, TK = 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] = xK([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 KEe(s, r, i);
- var { step: u, tickMin: d, tickMax: f } = CK(s, c, o, i, 0, a === "snap125" ? SK : xK), p = yK(d, f.add(new _K.default(.1).mul(u)), u);
+ var { step: u, tickMin: d, tickMax: f } = wK(s, c, o, i, 0, a === "snap125" ? CK : SK), p = bK(d, f.add(new vK.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
-}, TK = 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] = bK([n, r]);
+}, EK = 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] = xK([n, r]);
if (o === -Infinity || s === Infinity) return [n, r];
if (o === s) return [o];
- var c = a === "snap125" ? SK : xK, l = Math.max(t, 2), u = c(new _K.default(s).sub(o).div(l - 1), i, 0), d = [...yK(new _K.default(o), new _K.default(s), u), s];
+ var c = a === "snap125" ? CK : SK, l = Math.max(t, 2), u = c(new vK.default(s).sub(o).div(l - 1), i, 0), d = [...bK(new vK.default(o), new vK.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, EK = (e) => e.rootProps.maxBarSize, DK = (e) => e.rootProps.barGap, OK = (e) => e.rootProps.barCategoryGap, kK = (e) => e.rootProps.barSize, AK = (e) => e.rootProps.stackOffset, jK = (e) => e.rootProps.reverseStackOrder, MK = (e) => e.options.chartName, NK = (e) => e.rootProps.syncId, PK = (e) => e.rootProps.syncMethod, FK = (e) => e.options.eventEmitter, qEe = (e) => e.rootProps.baseValue, IK = {
+}, DK = (e) => e.rootProps.maxBarSize, OK = (e) => e.rootProps.barGap, kK = (e) => e.rootProps.barCategoryGap, AK = (e) => e.rootProps.barSize, jK = (e) => e.rootProps.stackOffset, MK = (e) => e.rootProps.reverseStackOrder, NK = (e) => e.options.chartName, PK = (e) => e.rootProps.syncId, FK = (e) => e.rootProps.syncMethod, IK = (e) => e.options.eventEmitter, qEe = (e) => e.rootProps.baseValue, LK = {
grid: -100,
barBackground: -50,
area: 100,
@@ -58052,7 +58052,7 @@ var bK = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, LK = {
+}, RK = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -58073,8 +58073,8 @@ var bK = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: IK.axis
-}, RK = {
+ zIndex: LK.axis
+}, zK = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -58093,19 +58093,19 @@ var bK = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: IK.axis
-}, zK = (e, t) => {
+ zIndex: LK.axis
+}, BK = (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 BK(e, t, n) {
+function VK(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return pU(e, t) ? "category" : "number";
+ if (e != null) return mU(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function VK(e, t) {
+function HK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58115,12 +58115,12 @@ function VK(e, t) {
}
return n;
}
-function HK(e) {
+function UK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? VK(Object(n), !0).forEach(function(t) {
+ t % 2 ? HK(Object(n), !0).forEach(function(t) {
JEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VK(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -58148,81 +58148,81 @@ function XEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var UK = {
- allowDataOverflow: LK.allowDataOverflow,
- allowDecimals: LK.allowDecimals,
+var WK = {
+ allowDataOverflow: RK.allowDataOverflow,
+ allowDecimals: RK.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: LK.angleAxisId,
+ id: RK.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: LK.reversed,
- scale: LK.scale,
- tick: LK.tick,
+ reversed: RK.reversed,
+ scale: RK.scale,
+ tick: RK.tick,
tickCount: void 0,
ticks: void 0,
- type: LK.type,
+ type: RK.type,
unit: void 0,
niceTicks: "auto"
-}, WK = {
- allowDataOverflow: RK.allowDataOverflow,
- allowDecimals: RK.allowDecimals,
- allowDuplicatedCategory: RK.allowDuplicatedCategory,
+}, GK = {
+ allowDataOverflow: zK.allowDataOverflow,
+ allowDecimals: zK.allowDecimals,
+ allowDuplicatedCategory: zK.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: RK.radiusAxisId,
- includeHidden: RK.includeHidden,
+ id: zK.radiusAxisId,
+ includeHidden: zK.includeHidden,
name: void 0,
- reversed: RK.reversed,
- scale: RK.scale,
- tick: RK.tick,
- tickCount: RK.tickCount,
+ reversed: zK.reversed,
+ scale: zK.scale,
+ tick: zK.tick,
+ tickCount: zK.tickCount,
ticks: void 0,
- type: RK.type,
+ type: zK.type,
unit: void 0,
niceTicks: "auto"
-}, GK = $([(e, t) => {
+}, KK = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, nW], (e, t) => {
+}, rW], (e, t) => {
if (e != null) return e;
- var n = BK(t, "angleAxis", UK.type) ?? "category";
- return HK(HK({}, UK), {}, { type: n });
-}), KK = $([(e, t) => e.polarAxis.radiusAxis[t], nW], (e, t) => {
+ var n = VK(t, "angleAxis", WK.type) ?? "category";
+ return UK(UK({}, WK), {}, { type: n });
+}), qK = $([(e, t) => e.polarAxis.radiusAxis[t], rW], (e, t) => {
if (e != null) return e;
- var n = BK(t, "radiusAxis", WK.type) ?? "category";
- return HK(HK({}, WK), {}, { type: n });
-}), qK = (e) => e.polarOptions, JK = $([
- EU,
+ var n = VK(t, "radiusAxis", GK.type) ?? "category";
+ return UK(UK({}, GK), {}, { type: n });
+}), JK = (e) => e.polarOptions, YK = $([
DU,
- NU
-], DEe), YK = $([qK, JK], (e, t) => {
- if (e != null) return nB(e.innerRadius, t, 0);
-}), XK = $([qK, JK], (e, t) => {
- if (e != null) return nB(e.outerRadius, t, t * .8);
-}), ZK = $([qK], (e) => {
+ OU,
+ PU
+], DEe), XK = $([JK, YK], (e, t) => {
+ if (e != null) return rB(e.innerRadius, t, 0);
+}), ZK = $([JK, YK], (e, t) => {
+ if (e != null) return rB(e.outerRadius, t, t * .8);
+}), QK = $([JK], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), ZEe = $([GK, ZK], zK), QK = $([
- JK,
+}), ZEe = $([KK, QK], BK), $K = $([
YK,
- XK
+ XK,
+ ZK
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), QEe = $([KK, QK], zK), $K = $([
- $U,
- qK,
- YK,
+}), QEe = $([qK, $K], BK), eq = $([
+ eW,
+ JK,
XK,
- EU,
- DU
+ ZK,
+ DU,
+ OU
], (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: nB(o, i, i / 2),
- cy: nB(s, a, a / 2),
+ cx: rB(o, i, i / 2),
+ cy: rB(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -58230,22 +58230,22 @@ var UK = {
clockWise: !1
};
}
-}), eq = (e, t) => t, tq = (e, t, n) => n;
+}), tq = (e, t) => t, nq = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function nq(e) {
+function rq(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function rq(e, t, n) {
+function iq(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 = nq(e);
+ var n = rq(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(fU(t, a, null)), c = fU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(pU(t, a, null)), c = pU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -58253,15 +58253,15 @@ function rq(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function iq(e) {
+function aq(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var aq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var oq = (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 oq(e, t) {
+function sq(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
function $Ee(e, t) {
@@ -58273,13 +58273,13 @@ function $Ee(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var sq = (e) => {
- var t = $U(e);
+var cq = (e) => {
+ var t = eW(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, cq = (e) => e.tooltip.settings.axisId;
+}, lq = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function lq(e) {
+function uq(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -58320,13 +58320,13 @@ function lq(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var uq = (e, t) => {
+var dq = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!mK(t)) {
+ if (!hK(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- cU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ lU(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;
}
@@ -58336,12 +58336,12 @@ var uq = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function dq(e, t) {
+function fq(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function fq(e) {
+function pq(e) {
let t = e, n = e;
e.length === 1 && (t = (t, n) => e(t) - n, n = eDe(e));
function r(e, t, r, i) {
@@ -58370,11 +58370,11 @@ function fq(e) {
};
}
function eDe(e) {
- return (t, n) => dq(e(t), n);
+ return (t, n) => fq(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function pq(e) {
+function mq(e) {
return e === null ? NaN : +e;
}
function* tDe(e, t) {
@@ -58386,11 +58386,11 @@ function* tDe(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var mq = fq(dq), hq = mq.right;
-mq.left, fq(pq).center;
+var hq = pq(fq), gq = hq.right;
+hq.left, pq(mq).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var gq = class extends Map {
+var _q = class extends Map {
constructor(e, t = iDe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
@@ -58398,10 +58398,10 @@ var gq = class extends Map {
}), e != null) for (let [t, n] of e) this.set(t, n);
}
get(e) {
- return super.get(_q(this, e));
+ return super.get(vq(this, e));
}
has(e) {
- return super.has(_q(this, e));
+ return super.has(vq(this, e));
}
set(e, t) {
return super.set(nDe(this, e), t);
@@ -58410,7 +58410,7 @@ var gq = class extends Map {
return super.delete(rDe(this, e));
}
};
-function _q({ _intern: e, _key: t }, n) {
+function vq({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
@@ -58427,11 +58427,11 @@ function iDe(e) {
}
//#endregion
//#region node_modules/d3-array/src/ticks.js
-var vq = Math.sqrt(50), yq = Math.sqrt(10), bq = Math.sqrt(2);
-function xq(e, t, n) {
+var yq = Math.sqrt(50), bq = Math.sqrt(10), xq = Math.sqrt(2);
+function Sq(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 = Sq(e, t, n)) === 0 || !isFinite(s)) return [];
+ if ((r = t < e) && (a = e, e = t, t = a), (s = Cq(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;
@@ -58442,17 +58442,17 @@ function xq(e, t, n) {
}
return r && o.reverse(), o;
}
-function Sq(e, t, n) {
+function Cq(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 >= vq ? 10 : a >= yq ? 5 : a >= bq ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= vq ? 10 : a >= yq ? 5 : a >= bq ? 2 : 1);
+ return i >= 0 ? (a >= yq ? 10 : a >= bq ? 5 : a >= xq ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= yq ? 10 : a >= bq ? 5 : a >= xq ? 2 : 1);
}
-function Cq(e, t, n) {
+function wq(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 >= vq ? i *= 10 : a >= yq ? i *= 5 : a >= bq && (i *= 2), t < e ? -i : i;
+ return a >= yq ? i *= 10 : a >= bq ? i *= 5 : a >= xq && (i *= 2), t < e ? -i : i;
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function wq(e, t) {
+function Tq(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 {
@@ -58463,7 +58463,7 @@ function wq(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function Tq(e, t) {
+function Eq(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -58474,22 +58474,22 @@ function Tq(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function Eq(e, t, n = 0, r = e.length - 1, i = dq) {
+function Dq(e, t, n = 0, r = e.length - 1, i = fq) {
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);
- Eq(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
+ Dq(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 (Dq(e, n, t), i(e[r], a) > 0 && Dq(e, n, r); o < s;) {
- for (Dq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
+ for (Oq(e, n, t), i(e[r], a) > 0 && Oq(e, n, r); o < s;) {
+ for (Oq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
for (; i(e[s], a) > 0;) --s;
}
- i(e[n], a) === 0 ? Dq(e, n, s) : (++s, Dq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
+ i(e[n], a) === 0 ? Oq(e, n, s) : (++s, Oq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
}
return e;
}
-function Dq(e, t, n) {
+function Oq(e, t, n) {
let r = e[t];
e[t] = e[n], e[n] = r;
}
@@ -58497,13 +58497,13 @@ function Dq(e, t, n) {
//#region node_modules/d3-array/src/quantile.js
function aDe(e, t, n) {
if (e = Float64Array.from(tDe(e, n)), r = e.length) {
- if ((t = +t) <= 0 || r < 2) return Tq(e);
- if (t >= 1) return wq(e);
- var r, i = (r - 1) * t, a = Math.floor(i), o = wq(Eq(e, a).subarray(0, a + 1));
- return o + (Tq(e.subarray(a + 1)) - o) * (i - a);
+ if ((t = +t) <= 0 || r < 2) return Eq(e);
+ if (t >= 1) return Tq(e);
+ var r, i = (r - 1) * t, a = Math.floor(i), o = Tq(Dq(e, a).subarray(0, a + 1));
+ return o + (Eq(e.subarray(a + 1)) - o) * (i - a);
}
}
-function oDe(e, t, n = pq) {
+function oDe(e, t, n = mq) {
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);
@@ -58520,7 +58520,7 @@ function sDe(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function Oq(e, t) {
+function kq(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -58531,7 +58531,7 @@ function Oq(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/init.js
-function kq(e, t) {
+function Aq(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -58541,7 +58541,7 @@ function kq(e, t) {
}
return this;
}
-function Aq(e, t) {
+function jq(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -58553,20 +58553,20 @@ function Aq(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/ordinal.js
-var jq = Symbol("implicit");
-function Mq() {
- var e = new gq(), t = [], n = [], r = jq;
+var Mq = Symbol("implicit");
+function Nq() {
+ var e = new _q(), t = [], n = [], r = Mq;
function i(i) {
let a = e.get(i);
if (a === void 0) {
- if (r !== jq) return r;
+ if (r !== Mq) 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 gq();
+ t = [], e = new _q();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -58574,13 +58574,13 @@ function Mq() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return Mq(t, n).unknown(r);
- }, kq.apply(i, arguments), i;
+ return Nq(t, n).unknown(r);
+ }, Aq.apply(i, arguments), i;
}
//#endregion
//#region node_modules/d3-scale/src/band.js
-function Nq() {
- var e = Mq().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
+function Pq() {
+ var e = Nq().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;
@@ -58611,32 +58611,32 @@ function Nq() {
}, e.align = function(e) {
return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
}, e.copy = function() {
- return Nq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
- }, kq.apply(d(), arguments);
+ return Pq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
+ }, Aq.apply(d(), arguments);
}
-function Pq(e) {
+function Fq(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
- return Pq(t());
+ return Fq(t());
}, e;
}
function cDe() {
- return Pq(Nq.apply(null, arguments).paddingInner(1));
+ return Fq(Pq.apply(null, arguments).paddingInner(1));
}
//#endregion
//#region node_modules/d3-color/src/define.js
-function Fq(e, t, n) {
+function Iq(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e;
}
-function Iq(e, t) {
+function Lq(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 Lq() {}
-var Rq = .7, zq = 1 / Rq, Bq = "\\s*([+-]?\\d+)\\s*", Vq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Hq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", lDe = /^#([0-9a-f]{3,8})$/, uDe = RegExp(`^rgb\\(${Bq},${Bq},${Bq}\\)$`), dDe = RegExp(`^rgb\\(${Hq},${Hq},${Hq}\\)$`), fDe = RegExp(`^rgba\\(${Bq},${Bq},${Bq},${Vq}\\)$`), pDe = RegExp(`^rgba\\(${Hq},${Hq},${Hq},${Vq}\\)$`), mDe = RegExp(`^hsl\\(${Vq},${Hq},${Hq}\\)$`), hDe = RegExp(`^hsla\\(${Vq},${Hq},${Hq},${Vq}\\)$`), Uq = {
+function Rq() {}
+var zq = .7, Bq = 1 / zq, Vq = "\\s*([+-]?\\d+)\\s*", Hq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Uq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", lDe = /^#([0-9a-f]{3,8})$/, uDe = RegExp(`^rgb\\(${Vq},${Vq},${Vq}\\)$`), dDe = RegExp(`^rgb\\(${Uq},${Uq},${Uq}\\)$`), fDe = RegExp(`^rgba\\(${Vq},${Vq},${Vq},${Hq}\\)$`), pDe = RegExp(`^rgba\\(${Uq},${Uq},${Uq},${Hq}\\)$`), mDe = RegExp(`^hsl\\(${Hq},${Uq},${Uq}\\)$`), hDe = RegExp(`^hsla\\(${Hq},${Uq},${Uq},${Hq}\\)$`), Wq = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -58786,143 +58786,143 @@ var Rq = .7, zq = 1 / Rq, Bq = "\\s*([+-]?\\d+)\\s*", Vq = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-Fq(Lq, Kq, {
+Iq(Rq, qq, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
displayable() {
return this.rgb().displayable();
},
- hex: Wq,
- formatHex: Wq,
+ hex: Gq,
+ formatHex: Gq,
formatHex8: gDe,
formatHsl: _De,
- formatRgb: Gq,
- toString: Gq
+ formatRgb: Kq,
+ toString: Kq
});
-function Wq() {
+function Gq() {
return this.rgb().formatHex();
}
function gDe() {
return this.rgb().formatHex8();
}
function _De() {
- return rJ(this).formatHsl();
+ return iJ(this).formatHsl();
}
-function Gq() {
+function Kq() {
return this.rgb().formatRgb();
}
-function Kq(e) {
+function qq(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = lDe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? qq(t) : n === 3 ? new Xq(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Jq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Jq(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 = uDe.exec(e)) ? new Xq(t[1], t[2], t[3], 1) : (t = dDe.exec(e)) ? new Xq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = fDe.exec(e)) ? Jq(t[1], t[2], t[3], t[4]) : (t = pDe.exec(e)) ? Jq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = mDe.exec(e)) ? nJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = hDe.exec(e)) ? nJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Uq.hasOwnProperty(e) ? qq(Uq[e]) : e === "transparent" ? new Xq(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = lDe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Jq(t) : n === 3 ? new Zq(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Yq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Yq(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 = uDe.exec(e)) ? new Zq(t[1], t[2], t[3], 1) : (t = dDe.exec(e)) ? new Zq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = fDe.exec(e)) ? Yq(t[1], t[2], t[3], t[4]) : (t = pDe.exec(e)) ? Yq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = mDe.exec(e)) ? rJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = hDe.exec(e)) ? rJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Wq.hasOwnProperty(e) ? Jq(Wq[e]) : e === "transparent" ? new Zq(NaN, NaN, NaN, 0) : null;
}
-function qq(e) {
- return new Xq(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
+function Jq(e) {
+ return new Zq(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
}
-function Jq(e, t, n, r) {
- return r <= 0 && (e = t = n = NaN), new Xq(e, t, n, r);
+function Yq(e, t, n, r) {
+ return r <= 0 && (e = t = n = NaN), new Zq(e, t, n, r);
}
function vDe(e) {
- return e instanceof Lq || (e = Kq(e)), e ? (e = e.rgb(), new Xq(e.r, e.g, e.b, e.opacity)) : new Xq();
-}
-function Yq(e, t, n, r) {
- return arguments.length === 1 ? vDe(e) : new Xq(e, t, n, r ?? 1);
+ return e instanceof Rq || (e = qq(e)), e ? (e = e.rgb(), new Zq(e.r, e.g, e.b, e.opacity)) : new Zq();
}
function Xq(e, t, n, r) {
+ return arguments.length === 1 ? vDe(e) : new Zq(e, t, n, r ?? 1);
+}
+function Zq(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-Fq(Xq, Yq, Iq(Lq, {
+Iq(Zq, Xq, Lq(Rq, {
brighter(e) {
- return e = e == null ? zq : zq ** +e, new Xq(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? Bq : Bq ** +e, new Zq(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? Rq : Rq ** +e, new Xq(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? zq : zq ** +e, new Zq(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
},
clamp() {
- return new Xq(eJ(this.r), eJ(this.g), eJ(this.b), $q(this.opacity));
+ return new Zq(tJ(this.r), tJ(this.g), tJ(this.b), eJ(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: Zq,
- formatHex: Zq,
+ hex: Qq,
+ formatHex: Qq,
formatHex8: yDe,
- formatRgb: Qq,
- toString: Qq
+ formatRgb: $q,
+ toString: $q
}));
-function Zq() {
- return `#${tJ(this.r)}${tJ(this.g)}${tJ(this.b)}`;
+function Qq() {
+ return `#${nJ(this.r)}${nJ(this.g)}${nJ(this.b)}`;
}
function yDe() {
- return `#${tJ(this.r)}${tJ(this.g)}${tJ(this.b)}${tJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
+ return `#${nJ(this.r)}${nJ(this.g)}${nJ(this.b)}${nJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
-function Qq() {
- let e = $q(this.opacity);
- return `${e === 1 ? "rgb(" : "rgba("}${eJ(this.r)}, ${eJ(this.g)}, ${eJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
+function $q() {
+ let e = eJ(this.opacity);
+ return `${e === 1 ? "rgb(" : "rgba("}${tJ(this.r)}, ${tJ(this.g)}, ${tJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
}
-function $q(e) {
+function eJ(e) {
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
}
-function eJ(e) {
+function tJ(e) {
return Math.max(0, Math.min(255, Math.round(e) || 0));
}
-function tJ(e) {
- return e = eJ(e), (e < 16 ? "0" : "") + e.toString(16);
+function nJ(e) {
+ return e = tJ(e), (e < 16 ? "0" : "") + e.toString(16);
}
-function nJ(e, t, n, r) {
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new iJ(e, t, n, r);
+function rJ(e, t, n, r) {
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new aJ(e, t, n, r);
}
-function rJ(e) {
- if (e instanceof iJ) return new iJ(e.h, e.s, e.l, e.opacity);
- if (e instanceof Lq || (e = Kq(e)), !e) return new iJ();
- if (e instanceof iJ) return e;
+function iJ(e) {
+ if (e instanceof aJ) return new aJ(e.h, e.s, e.l, e.opacity);
+ if (e instanceof Rq || (e = qq(e)), !e) return new aJ();
+ if (e instanceof aJ) 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 iJ(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 aJ(o, s, c, e.opacity);
}
function bDe(e, t, n, r) {
- return arguments.length === 1 ? rJ(e) : new iJ(e, t, n, r ?? 1);
+ return arguments.length === 1 ? iJ(e) : new aJ(e, t, n, r ?? 1);
}
-function iJ(e, t, n, r) {
+function aJ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-Fq(iJ, bDe, Iq(Lq, {
+Iq(aJ, bDe, Lq(Rq, {
brighter(e) {
- return e = e == null ? zq : zq ** +e, new iJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? Bq : Bq ** +e, new aJ(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? Rq : Rq ** +e, new iJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? zq : zq ** +e, new aJ(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 Xq(sJ(e >= 240 ? e - 240 : e + 120, i, r), sJ(e, i, r), sJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
+ return new Zq(cJ(e >= 240 ? e - 240 : e + 120, i, r), cJ(e, i, r), cJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
},
clamp() {
- return new iJ(aJ(this.h), oJ(this.s), oJ(this.l), $q(this.opacity));
+ return new aJ(oJ(this.h), sJ(this.s), sJ(this.l), eJ(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 = $q(this.opacity);
- return `${e === 1 ? "hsl(" : "hsla("}${aJ(this.h)}, ${oJ(this.s) * 100}%, ${oJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
+ let e = eJ(this.opacity);
+ return `${e === 1 ? "hsl(" : "hsla("}${oJ(this.h)}, ${sJ(this.s) * 100}%, ${sJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
}
}));
-function aJ(e) {
+function oJ(e) {
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
}
-function oJ(e) {
+function sJ(e) {
return Math.max(0, Math.min(1, e || 0));
}
-function sJ(e, t, n) {
+function cJ(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 cJ = (e) => () => e;
+var lJ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
function xDe(e, t) {
@@ -58936,20 +58936,20 @@ function SDe(e, t, n) {
};
}
function CDe(e) {
- return (e = +e) == 1 ? lJ : function(t, n) {
- return n - t ? SDe(t, n, e) : cJ(isNaN(t) ? n : t);
+ return (e = +e) == 1 ? uJ : function(t, n) {
+ return n - t ? SDe(t, n, e) : lJ(isNaN(t) ? n : t);
};
}
-function lJ(e, t) {
+function uJ(e, t) {
var n = t - e;
- return n ? xDe(e, n) : cJ(isNaN(e) ? t : e);
+ return n ? xDe(e, n) : lJ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
-var uJ = (function e(t) {
+var dJ = (function e(t) {
var n = CDe(t);
function r(e, t) {
- var r = n((e = Yq(e)).r, (t = Yq(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = lJ(e.opacity, t.opacity);
+ var r = n((e = Xq(e)).r, (t = Xq(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = uJ(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 + "";
};
@@ -58973,7 +58973,7 @@ function TDe(e) {
//#region node_modules/d3-interpolate/src/array.js
function EDe(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] = mJ(e[o], t[o]);
+ for (o = 0; o < r; ++o) i[o] = hJ(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);
@@ -58990,7 +58990,7 @@ function DDe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/number.js
-function dJ(e, t) {
+function fJ(e, t) {
return e = +e, t = +t, function(n) {
return e * (1 - n) + t * n;
};
@@ -58999,7 +58999,7 @@ function dJ(e, t) {
//#region node_modules/d3-interpolate/src/object.js
function ODe(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] = mJ(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] = hJ(e[i], t[i]) : r[i] = t[i];
return function(e) {
for (i in n) r[i] = n[i](e);
return r;
@@ -59007,7 +59007,7 @@ function ODe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/string.js
-var fJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, pJ = new RegExp(fJ.source, "g");
+var pJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, mJ = new RegExp(pJ.source, "g");
function kDe(e) {
return function() {
return e;
@@ -59019,11 +59019,11 @@ function ADe(e) {
};
}
function jDe(e, t) {
- var n = fJ.lastIndex = pJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
- for (e += "", t += ""; (r = fJ.exec(e)) && (i = pJ.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({
+ var n = pJ.lastIndex = mJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
+ for (e += "", t += ""; (r = pJ.exec(e)) && (i = mJ.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: dJ(r, i)
- })), n = pJ.lastIndex;
+ x: fJ(r, i)
+ })), n = mJ.lastIndex;
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? ADe(c[0].x) : kDe(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("");
@@ -59031,13 +59031,13 @@ function jDe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/value.js
-function mJ(e, t) {
+function hJ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? cJ(t) : (n === "number" ? dJ : n === "string" ? (r = Kq(t)) ? (t = r, uJ) : jDe : t instanceof Kq ? uJ : t instanceof Date ? DDe : TDe(t) ? wDe : Array.isArray(t) ? EDe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? ODe : dJ)(e, t);
+ return t == null || n === "boolean" ? lJ(t) : (n === "number" ? fJ : n === "string" ? (r = qq(t)) ? (t = r, dJ) : jDe : t instanceof qq ? dJ : t instanceof Date ? DDe : TDe(t) ? wDe : Array.isArray(t) ? EDe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? ODe : fJ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
-function hJ(e, t) {
+function gJ(e, t) {
return e = +e, t = +t, function(n) {
return Math.round(e * (1 - n) + t * n);
};
@@ -59045,7 +59045,7 @@ function hJ(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
function MDe(e, t) {
- t === void 0 && (t = e, e = mJ);
+ t === void 0 && (t = e, e = hJ);
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)));
@@ -59061,16 +59061,16 @@ function NDe(e) {
}
//#endregion
//#region node_modules/d3-scale/src/number.js
-function gJ(e) {
+function _J(e) {
return +e;
}
//#endregion
//#region node_modules/d3-scale/src/continuous.js
-var _J = [0, 1];
-function vJ(e) {
+var vJ = [0, 1];
+function yJ(e) {
return e;
}
-function yJ(e, t) {
+function bJ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
} : NDe(isNaN(t) ? NaN : .5);
@@ -59083,40 +59083,40 @@ function PDe(e, t) {
}
function FDe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
- return i < r ? (r = yJ(i, r), a = n(o, a)) : (r = yJ(r, i), a = n(a, o)), function(e) {
+ return i < r ? (r = bJ(i, r), a = n(o, a)) : (r = bJ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
function IDe(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] = yJ(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] = bJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = hq(e, t, 1, r) - 1;
+ var n = gq(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
-function bJ(e, t) {
+function xJ(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
-function xJ() {
- var e = _J, t = _J, n = mJ, r, i, a, o = vJ, s, c, l;
+function SJ() {
+ var e = vJ, t = vJ, n = hJ, r, i, a, o = yJ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== vJ && (o = PDe(e[0], e[n - 1])), s = n > 2 ? IDe : FDe, c = l = null, d;
+ return o !== yJ && (o = PDe(e[0], e[n - 1])), s = n > 2 ? IDe : FDe, 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), dJ))(n)));
+ return o(i((l ||= s(t, e.map(r), fJ))(n)));
}, d.domain = function(t) {
- return arguments.length ? (e = Array.from(t, gJ), u()) : e.slice();
+ return arguments.length ? (e = Array.from(t, _J), 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 = hJ, u();
+ return t = Array.from(e), n = gJ, u();
}, d.clamp = function(e) {
- return arguments.length ? (o = e ? !0 : vJ, u()) : o !== vJ;
+ return arguments.length ? (o = e ? !0 : yJ, u()) : o !== yJ;
}, d.interpolate = function(e) {
return arguments.length ? (n = e, u()) : n;
}, d.unknown = function(e) {
@@ -59125,23 +59125,23 @@ function xJ() {
return r = e, i = t, u();
};
}
-function SJ() {
- return xJ()(vJ, vJ);
+function CJ() {
+ return SJ()(yJ, yJ);
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
function LDe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
-function CJ(e, t) {
+function wJ(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 wJ(e) {
- return e = CJ(Math.abs(e)), e ? e[1] : NaN;
+function TJ(e) {
+ return e = wJ(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
@@ -59163,10 +59163,10 @@ function zDe(e) {
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
var BDe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
-function TJ(e) {
+function EJ(e) {
if (!(t = BDe.exec(e))) throw Error("invalid format: " + e);
var t;
- return new EJ({
+ return new DJ({
fill: t[1],
align: t[2],
sign: t[3],
@@ -59179,11 +59179,11 @@ function TJ(e) {
type: t[10]
});
}
-TJ.prototype = EJ.prototype;
-function EJ(e) {
+EJ.prototype = DJ.prototype;
+function DJ(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 + "";
}
-EJ.prototype.toString = function() {
+DJ.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
@@ -59204,24 +59204,24 @@ function VDe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
-var DJ;
+var OJ;
function HDe(e, t) {
- var n = CJ(e, t);
- if (!n) return DJ = void 0, e.toPrecision(t);
- var r = n[0], i = n[1], a = i - (DJ = 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") + CJ(e, Math.max(0, t + a - 1))[0];
+ var n = wJ(e, t);
+ if (!n) return OJ = void 0, e.toPrecision(t);
+ var r = n[0], i = n[1], a = i - (OJ = 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") + wJ(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region node_modules/d3-format/src/formatRounded.js
-function OJ(e, t) {
- var n = CJ(e, t);
+function kJ(e, t) {
+ var n = wJ(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 kJ = {
+var AJ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
@@ -59230,20 +59230,20 @@ var kJ = {
f: (e, t) => e.toFixed(t),
g: (e, t) => e.toPrecision(t),
o: (e) => Math.round(e).toString(8),
- p: (e, t) => OJ(e * 100, t),
- r: OJ,
+ p: (e, t) => kJ(e * 100, t),
+ r: kJ,
s: HDe,
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 AJ(e) {
+function jJ(e) {
return e;
}
//#endregion
//#region node_modules/d3-format/src/locale.js
-var jJ = Array.prototype.map, MJ = [
+var MJ = Array.prototype.map, NJ = [
"y",
"z",
"a",
@@ -59263,12 +59263,12 @@ var jJ = Array.prototype.map, MJ = [
"Y"
];
function UDe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? AJ : RDe(jJ.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 ? AJ : zDe(jJ.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 + "";
+ var t = e.grouping === void 0 || e.thousands === void 0 ? jJ : RDe(MJ.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 ? jJ : zDe(MJ.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 = TJ(e);
+ e = EJ(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") : kJ[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 = kJ[y], C = /[defgprs%]/.test(y);
+ y === "n" ? (g = !0, y = "g") : AJ[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 = AJ[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;
@@ -59276,7 +59276,7 @@ function UDe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = VDe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && DJ !== void 0 ? MJ[8 + DJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = VDe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && OJ !== void 0 ? NJ[8 + OJ / 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;
@@ -59304,7 +59304,7 @@ function UDe(e) {
}, w;
}
function u(e, t) {
- var n = Math.max(-8, Math.min(8, Math.floor(wJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = TJ(e), e.type = "f", e), { suffix: MJ[8 + n / 3] });
+ var n = Math.max(-8, Math.min(8, Math.floor(TJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = EJ(e), e.type = "f", e), { suffix: NJ[8 + n / 3] });
return function(e) {
return i(r * e);
};
@@ -59316,38 +59316,38 @@ function UDe(e) {
}
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
-var NJ, PJ, FJ;
+var PJ, FJ, IJ;
WDe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
function WDe(e) {
- return NJ = UDe(e), PJ = NJ.format, FJ = NJ.formatPrefix, NJ;
+ return PJ = UDe(e), FJ = PJ.format, IJ = PJ.formatPrefix, PJ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
function GDe(e) {
- return Math.max(0, -wJ(Math.abs(e)));
+ return Math.max(0, -TJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
function KDe(e, t) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(wJ(t) / 3))) * 3 - wJ(Math.abs(e)));
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(TJ(t) / 3))) * 3 - TJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
function qDe(e, t) {
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, wJ(t) - wJ(e)) + 1;
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, TJ(t) - TJ(e)) + 1;
}
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
-function IJ(e, t, n, r) {
- var i = Cq(e, t, n), a;
- switch (r = TJ(r ?? ",f"), r.type) {
+function LJ(e, t, n, r) {
+ var i = wq(e, t, n), a;
+ switch (r = EJ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = KDe(i, o)) && (r.precision = a), FJ(r, o);
+ return r.precision == null && !isNaN(a = KDe(i, o)) && (r.precision = a), IJ(r, o);
case "":
case "e":
case "g":
@@ -59358,23 +59358,23 @@ function IJ(e, t, n, r) {
case "f":
case "%": r.precision == null && !isNaN(a = GDe(i)) && (r.precision = a - (r.type === "%") * 2);
}
- return PJ(r);
+ return FJ(r);
}
//#endregion
//#region node_modules/d3-scale/src/linear.js
-function LJ(e) {
+function RJ(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
- return xq(n[0], n[n.length - 1], e ?? 10);
+ return Sq(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
- return IJ(r[0], r[r.length - 1], e ?? 10, n);
+ return LJ(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 = Sq(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
+ if (l = Cq(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;
@@ -59383,40 +59383,40 @@ function LJ(e) {
return e;
}, e;
}
-function RJ() {
- var e = SJ();
+function zJ() {
+ var e = CJ();
return e.copy = function() {
- return bJ(e, RJ());
- }, kq.apply(e, arguments), LJ(e);
+ return xJ(e, zJ());
+ }, Aq.apply(e, arguments), RJ(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
-function zJ(e) {
+function BJ(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, gJ), n) : e.slice();
+ return arguments.length ? (e = Array.from(t, _J), n) : e.slice();
}, n.unknown = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.copy = function() {
- return zJ(e).unknown(t);
- }, e = arguments.length ? Array.from(e, gJ) : [0, 1], LJ(n);
+ return BJ(e).unknown(t);
+ }, e = arguments.length ? Array.from(e, _J) : [0, 1], RJ(n);
}
//#endregion
//#region node_modules/d3-scale/src/nice.js
-function BJ(e, t) {
+function VJ(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 VJ(e) {
+function HJ(e) {
return Math.log(e);
}
-function HJ(e) {
+function UJ(e) {
return Math.exp(e);
}
function JDe(e) {
@@ -59434,13 +59434,13 @@ function ZDe(e) {
function QDe(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 UJ(e) {
+function WJ(e) {
return (t, n) => -e(-t, n);
}
-function WJ(e) {
- let t = e(VJ, HJ), n = t.domain, r = 10, i, a;
+function GJ(e) {
+ let t = e(HJ, UJ), n = t.domain, r = 10, i, a;
function o() {
- return i = QDe(r), a = ZDe(r), n()[0] < 0 ? (i = UJ(i), a = UJ(a), e(JDe, YDe)) : e(VJ, HJ), t;
+ return i = QDe(r), a = ZDe(r), n()[0] < 0 ? (i = WJ(i), a = WJ(a), e(JDe, YDe)) : e(HJ, UJ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -59460,52 +59460,52 @@ function WJ(e) {
if (f > s) break;
m.push(f);
}
- m.length * 2 < p && (m = xq(o, s, p));
- } else m = xq(l, u, Math.min(u - l, p)).map(a);
+ m.length * 2 < p && (m = Sq(o, s, p));
+ } else m = Sq(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 = TJ(n)).precision == null && (n.trim = !0), n = PJ(n)), e === Infinity) return n;
+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = EJ(n)).precision == null && (n.trim = !0), n = FJ(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(BJ(n(), {
+ }, t.nice = () => n(VJ(n(), {
floor: (e) => a(Math.floor(i(e))),
ceil: (e) => a(Math.ceil(i(e)))
})), t;
}
-function GJ() {
- let e = WJ(xJ()).domain([1, 10]);
- return e.copy = () => bJ(e, GJ()).base(e.base()), kq.apply(e, arguments), e;
+function KJ() {
+ let e = GJ(SJ()).domain([1, 10]);
+ return e.copy = () => xJ(e, KJ()).base(e.base()), Aq.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
-function KJ(e) {
+function qJ(e) {
return function(t) {
return Math.sign(t) * Math.log1p(Math.abs(t / e));
};
}
-function qJ(e) {
+function JJ(e) {
return function(t) {
return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
};
}
-function JJ(e) {
- var t = 1, n = e(KJ(t), qJ(t));
+function YJ(e) {
+ var t = 1, n = e(qJ(t), JJ(t));
return n.constant = function(n) {
- return arguments.length ? e(KJ(t = +n), qJ(t)) : t;
- }, LJ(n);
+ return arguments.length ? e(qJ(t = +n), JJ(t)) : t;
+ }, RJ(n);
}
-function YJ() {
- var e = JJ(xJ());
+function XJ() {
+ var e = YJ(SJ());
return e.copy = function() {
- return bJ(e, YJ()).constant(e.constant());
- }, kq.apply(e, arguments);
+ return xJ(e, XJ()).constant(e.constant());
+ }, Aq.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
-function XJ(e) {
+function ZJ(e) {
return function(t) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
@@ -59516,44 +59516,44 @@ function $De(e) {
function eOe(e) {
return e < 0 ? -e * e : e * e;
}
-function ZJ(e) {
- var t = e(vJ, vJ), n = 1;
+function QJ(e) {
+ var t = e(yJ, yJ), n = 1;
function r() {
- return n === 1 ? e(vJ, vJ) : n === .5 ? e($De, eOe) : e(XJ(n), XJ(1 / n));
+ return n === 1 ? e(yJ, yJ) : n === .5 ? e($De, eOe) : e(ZJ(n), ZJ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
- }, LJ(t);
+ }, RJ(t);
}
-function QJ() {
- var e = ZJ(xJ());
+function $J() {
+ var e = QJ(SJ());
return e.copy = function() {
- return bJ(e, QJ()).exponent(e.exponent());
- }, kq.apply(e, arguments), e;
+ return xJ(e, $J()).exponent(e.exponent());
+ }, Aq.apply(e, arguments), e;
}
function tOe() {
- return QJ.apply(null, arguments).exponent(.5);
+ return $J.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/radial.js
-function $J(e) {
+function eY(e) {
return Math.sign(e) * e * e;
}
function nOe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
-function eY() {
- var e = SJ(), t = [0, 1], n = !1, r;
+function tY() {
+ var e = CJ(), t = [0, 1], n = !1, r;
function i(t) {
var i = nOe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
- return e.invert($J(t));
+ return e.invert(eY(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, gJ)).map($J)), i) : t.slice();
+ return arguments.length ? (e.range((t = Array.from(n, _J)).map(eY)), i) : t.slice();
}, i.rangeRound = function(e) {
return i.range(e).round(!0);
}, i.round = function(e) {
@@ -59563,12 +59563,12 @@ function eY() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return eY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, kq.apply(i, arguments), LJ(i);
+ return tY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
+ }, Aq.apply(i, arguments), RJ(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
-function tY() {
+function nY() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
@@ -59576,7 +59576,7 @@ function tY() {
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[hq(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[gq(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -59585,7 +59585,7 @@ function tY() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(dq), i();
+ return e.sort(fq), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -59593,15 +59593,15 @@ function tY() {
}, a.quantiles = function() {
return n.slice();
}, a.copy = function() {
- return tY().domain(e).range(t).unknown(r);
- }, kq.apply(a, arguments);
+ return nY().domain(e).range(t).unknown(r);
+ }, Aq.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
-function nY() {
+function rY() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[hq(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[gq(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -59620,15 +59620,15 @@ function nY() {
}, o.thresholds = function() {
return r.slice();
}, o.copy = function() {
- return nY().domain([e, t]).range(i).unknown(a);
- }, kq.apply(LJ(o), arguments);
+ return rY().domain([e, t]).range(i).unknown(a);
+ }, Aq.apply(RJ(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
-function rY() {
+function iY() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[hq(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[gq(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();
@@ -59640,13 +59640,13 @@ function rY() {
}, i.unknown = function(e) {
return arguments.length ? (n = e, i) : n;
}, i.copy = function() {
- return rY().domain(e).range(t).unknown(n);
- }, kq.apply(i, arguments);
+ return iY().domain(e).range(t).unknown(n);
+ }, Aq.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
-var iY = /* @__PURE__ */ new Date(), aY = /* @__PURE__ */ new Date();
-function oY(e, t, n, r) {
+var aY = /* @__PURE__ */ new Date(), oY = /* @__PURE__ */ new Date();
+function sY(e, t, n, r) {
function i(t) {
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
}
@@ -59661,226 +59661,226 @@ function oY(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) => oY((t) => {
+ }, i.filter = (n) => sY((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) => (iY.setTime(+t), aY.setTime(+r), e(iY), e(aY), Math.floor(n(iY, aY))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
+ }), n && (i.count = (t, r) => (aY.setTime(+t), oY.setTime(+r), e(aY), e(oY), Math.floor(n(aY, oY))), 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 sY = oY(() => {}, (e, t) => {
+var cY = sY(() => {}, (e, t) => {
e.setTime(+e + t);
}, (e, t) => t - e);
-sY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? oY((t) => {
+cY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? sY((t) => {
t.setTime(Math.floor(t / e) * e);
}, (t, n) => {
t.setTime(+t + n * e);
-}, (t, n) => (n - t) / e) : sY), sY.range;
+}, (t, n) => (n - t) / e) : cY), cY.range;
//#endregion
//#region node_modules/d3-time/src/duration.js
-var cY = 1e3, lY = cY * 60, uY = lY * 60, dY = uY * 24, fY = dY * 7, pY = dY * 30, mY = dY * 365, hY = oY((e) => {
+var lY = 1e3, uY = lY * 60, dY = uY * 60, fY = dY * 24, pY = fY * 7, mY = fY * 30, hY = fY * 365, gY = sY((e) => {
e.setTime(e - e.getMilliseconds());
}, (e, t) => {
- e.setTime(+e + t * cY);
-}, (e, t) => (t - e) / cY, (e) => e.getUTCSeconds());
-hY.range;
+ e.setTime(+e + t * lY);
+}, (e, t) => (t - e) / lY, (e) => e.getUTCSeconds());
+gY.range;
//#endregion
//#region node_modules/d3-time/src/minute.js
-var gY = oY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * cY);
+var _Y = sY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * lY);
}, (e, t) => {
- e.setTime(+e + t * lY);
-}, (e, t) => (t - e) / lY, (e) => e.getMinutes());
-gY.range;
-var _Y = oY((e) => {
+ e.setTime(+e + t * uY);
+}, (e, t) => (t - e) / uY, (e) => e.getMinutes());
+_Y.range;
+var vY = sY((e) => {
e.setUTCSeconds(0, 0);
}, (e, t) => {
- e.setTime(+e + t * lY);
-}, (e, t) => (t - e) / lY, (e) => e.getUTCMinutes());
-_Y.range;
+ e.setTime(+e + t * uY);
+}, (e, t) => (t - e) / uY, (e) => e.getUTCMinutes());
+vY.range;
//#endregion
//#region node_modules/d3-time/src/hour.js
-var vY = oY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * cY - e.getMinutes() * lY);
+var yY = sY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * lY - e.getMinutes() * uY);
}, (e, t) => {
- e.setTime(+e + t * uY);
-}, (e, t) => (t - e) / uY, (e) => e.getHours());
-vY.range;
-var yY = oY((e) => {
+ e.setTime(+e + t * dY);
+}, (e, t) => (t - e) / dY, (e) => e.getHours());
+yY.range;
+var bY = sY((e) => {
e.setUTCMinutes(0, 0, 0);
}, (e, t) => {
- e.setTime(+e + t * uY);
-}, (e, t) => (t - e) / uY, (e) => e.getUTCHours());
-yY.range;
+ e.setTime(+e + t * dY);
+}, (e, t) => (t - e) / dY, (e) => e.getUTCHours());
+bY.range;
//#endregion
//#region node_modules/d3-time/src/day.js
-var bY = oY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * lY) / dY, (e) => e.getDate() - 1);
-bY.range;
-var xY = oY((e) => {
+var xY = sY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * uY) / fY, (e) => e.getDate() - 1);
+xY.range;
+var SY = sY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / dY, (e) => e.getUTCDate() - 1);
-xY.range;
-var SY = oY((e) => {
+}, (e, t) => (t - e) / fY, (e) => e.getUTCDate() - 1);
+SY.range;
+var CY = sY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / dY, (e) => Math.floor(e / dY));
-SY.range;
+}, (e, t) => (t - e) / fY, (e) => Math.floor(e / fY));
+CY.range;
//#endregion
//#region node_modules/d3-time/src/week.js
-function CY(e) {
- return oY((t) => {
+function wY(e) {
+ return sY((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()) * lY) / fY);
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * uY) / pY);
}
-var wY = CY(0), TY = CY(1), rOe = CY(2), iOe = CY(3), EY = CY(4), aOe = CY(5), oOe = CY(6);
-wY.range, TY.range, rOe.range, iOe.range, EY.range, aOe.range, oOe.range;
-function DY(e) {
- return oY((t) => {
+var TY = wY(0), EY = wY(1), rOe = wY(2), iOe = wY(3), DY = wY(4), aOe = wY(5), oOe = wY(6);
+TY.range, EY.range, rOe.range, iOe.range, DY.range, aOe.range, oOe.range;
+function OY(e) {
+ return sY((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) / fY);
+ }, (e, t) => (t - e) / pY);
}
-var OY = DY(0), kY = DY(1), sOe = DY(2), cOe = DY(3), AY = DY(4), lOe = DY(5), uOe = DY(6);
-OY.range, kY.range, sOe.range, cOe.range, AY.range, lOe.range, uOe.range;
+var kY = OY(0), AY = OY(1), sOe = OY(2), cOe = OY(3), jY = OY(4), lOe = OY(5), uOe = OY(6);
+kY.range, AY.range, sOe.range, cOe.range, jY.range, lOe.range, uOe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
-var jY = oY((e) => {
+var MY = sY((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());
-jY.range;
-var MY = oY((e) => {
+MY.range;
+var NY = sY((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());
-MY.range;
+NY.range;
//#endregion
//#region node_modules/d3-time/src/year.js
-var NY = oY((e) => {
+var PY = sY((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());
-NY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : oY((t) => {
+PY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : sY((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);
-}), NY.range;
-var PY = oY((e) => {
+}), PY.range;
+var FY = sY((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());
-PY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : oY((t) => {
+FY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : sY((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);
-}), PY.range;
+}), FY.range;
//#endregion
//#region node_modules/d3-time/src/ticks.js
-function FY(e, t, n, r, i, a) {
+function IY(e, t, n, r, i, a) {
let o = [
[
- hY,
+ gY,
1,
- cY
+ lY
],
[
- hY,
+ gY,
5,
- 5 * cY
+ 5 * lY
],
[
- hY,
+ gY,
15,
- 15 * cY
+ 15 * lY
],
[
- hY,
+ gY,
30,
- 30 * cY
+ 30 * lY
],
[
a,
1,
- lY
+ uY
],
[
a,
5,
- 5 * lY
+ 5 * uY
],
[
a,
15,
- 15 * lY
+ 15 * uY
],
[
a,
30,
- 30 * lY
+ 30 * uY
],
[
i,
1,
- uY
+ dY
],
[
i,
3,
- 3 * uY
+ 3 * dY
],
[
i,
6,
- 6 * uY
+ 6 * dY
],
[
i,
12,
- 12 * uY
+ 12 * dY
],
[
r,
1,
- dY
+ fY
],
[
r,
2,
- 2 * dY
+ 2 * fY
],
[
n,
1,
- fY
+ pY
],
[
t,
1,
- pY
+ mY
],
[
t,
3,
- 3 * pY
+ 3 * mY
],
[
e,
1,
- mY
+ hY
]
];
function s(e, t, n) {
@@ -59890,32 +59890,32 @@ function FY(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = fq(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(Cq(t / mY, n / mY, r));
- if (a === 0) return sY.every(Math.max(Cq(t, n, r), 1));
+ let i = Math.abs(n - t) / r, a = pq(([, , e]) => e).right(o, i);
+ if (a === o.length) return e.every(wq(t / hY, n / hY, r));
+ if (a === 0) return cY.every(Math.max(wq(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 [dOe, fOe] = FY(PY, MY, OY, SY, yY, _Y), [pOe, mOe] = FY(NY, jY, wY, bY, vY, gY);
+var [dOe, fOe] = IY(FY, NY, kY, CY, bY, vY), [pOe, mOe] = IY(PY, MY, TY, xY, yY, _Y);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
-function IY(e) {
+function LY(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 LY(e) {
+function RY(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 RY(e, t, n) {
+function zY(e, t, n) {
return {
y: e,
m: t,
@@ -59927,27 +59927,27 @@ function RY(e, t, n) {
};
}
function hOe(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 = HY(i), u = UY(i), d = HY(a), f = UY(a), p = HY(o), m = UY(o), h = HY(s), g = UY(s), _ = HY(c), v = UY(c), y = {
+ 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 = UY(i), u = WY(i), d = UY(a), f = WY(a), p = UY(o), m = WY(o), h = UY(s), g = WY(s), _ = UY(c), v = WY(c), y = {
a: N,
A: ee,
b: te,
B: P,
c: null,
- d: JY,
- e: JY,
+ d: YY,
+ e: YY,
f: ROe,
g: JOe,
G: XOe,
H: FOe,
I: IOe,
j: LOe,
- L: YY,
+ L: XY,
m: zOe,
M: BOe,
p: F,
q: ne,
- Q: tX,
- s: nX,
+ Q: nX,
+ s: rX,
S: VOe,
u: HOe,
U: UOe,
@@ -59959,28 +59959,28 @@ function hOe(e) {
y: qOe,
Y: YOe,
Z: ZOe,
- "%": eX
+ "%": tX
}, b = {
a: re,
A: ie,
b: ae,
B: oe,
c: null,
- d: ZY,
- e: ZY,
+ d: QY,
+ e: QY,
f: tke,
g: dke,
G: pke,
H: QOe,
I: $Oe,
j: eke,
- L: QY,
+ L: $Y,
m: nke,
M: rke,
p: se,
q: ce,
- Q: tX,
- s: nX,
+ Q: nX,
+ s: rX,
S: ike,
u: ake,
U: oke,
@@ -59992,20 +59992,20 @@ function hOe(e) {
y: uke,
Y: fke,
Z: mke,
- "%": eX
+ "%": tX
}, x = {
a: E,
A: D,
b: O,
B: k,
c: A,
- d: KY,
- e: KY,
+ d: qY,
+ e: qY,
f: jOe,
- g: GY,
- G: WY,
- H: qY,
- I: qY,
+ g: KY,
+ G: GY,
+ H: JY,
+ I: JY,
j: DOe,
L: AOe,
m: EOe,
@@ -60022,8 +60022,8 @@ function hOe(e) {
W: COe,
x: j,
X: M,
- y: GY,
- Y: WY,
+ y: KY,
+ Y: GY,
Z: wOe,
"%": MOe
};
@@ -60031,28 +60031,28 @@ function hOe(e) {
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 = zY[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 = BY[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 = RY(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
+ var r = zY(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 = LY(RY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? kY.ceil(a) : kY(a), a = xY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = IY(RY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? TY.ceil(a) : TY(a), a = bY.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 ? LY(RY(r.y, 0, 1)).getUTCDay() : IY(RY(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, LY(r)) : IY(r);
+ "w" in r || (r.w = 1), "Z" in r ? (a = RY(zY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? AY.ceil(a) : AY(a), a = SY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = LY(zY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? EY.ceil(a) : EY(a), a = xY.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 ? RY(zY(r.y, 0, 1)).getUTCDay() : LY(zY(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, RY(r)) : LY(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 zY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
+ if (s = t.charAt(i++), c = x[s in BY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
} else if (s != n.charCodeAt(r++)) return -1;
}
return r;
@@ -60149,50 +60149,50 @@ function hOe(e) {
}
};
}
-var zY = {
+var BY = {
"-": "",
_: " ",
0: "0"
-}, BY = /^\s*\d+/, gOe = /^%/, _Oe = /[\\^$*+?|[\]().{}]/g;
-function VY(e, t, n) {
+}, VY = /^\s*\d+/, gOe = /^%/, _Oe = /[\\^$*+?|[\]().{}]/g;
+function HY(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 vOe(e) {
return e.replace(_Oe, "\\$&");
}
-function HY(e) {
+function UY(e) {
return RegExp("^(?:" + e.map(vOe).join("|") + ")", "i");
}
-function UY(e) {
+function WY(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
function yOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 1));
+ var r = VY.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
function bOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 1));
+ var r = VY.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
function xOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 2));
+ var r = VY.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
function SOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 2));
+ var r = VY.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
function COe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 2));
+ var r = VY.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
-function WY(e, t, n) {
- var r = BY.exec(t.slice(n, n + 4));
+function GY(e, t, n) {
+ var r = VY.exec(t.slice(n, n + 4));
return r ? (e.y = +r[0], n + r[0].length) : -1;
}
-function GY(e, t, n) {
- var r = BY.exec(t.slice(n, n + 2));
+function KY(e, t, n) {
+ var r = VY.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
function wOe(e, t, n) {
@@ -60200,39 +60200,39 @@ function wOe(e, t, n) {
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
function TOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 1));
+ var r = VY.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
function EOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 2));
+ var r = VY.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
-function KY(e, t, n) {
- var r = BY.exec(t.slice(n, n + 2));
+function qY(e, t, n) {
+ var r = VY.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
function DOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 3));
+ var r = VY.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
-function qY(e, t, n) {
- var r = BY.exec(t.slice(n, n + 2));
+function JY(e, t, n) {
+ var r = VY.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
function OOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 2));
+ var r = VY.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
function kOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 2));
+ var r = VY.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
function AOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 3));
+ var r = VY.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
function jOe(e, t, n) {
- var r = BY.exec(t.slice(n, n + 6));
+ var r = VY.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
function MOe(e, t, n) {
@@ -60240,152 +60240,152 @@ function MOe(e, t, n) {
return r ? n + r[0].length : -1;
}
function NOe(e, t, n) {
- var r = BY.exec(t.slice(n));
+ var r = VY.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
function POe(e, t, n) {
- var r = BY.exec(t.slice(n));
+ var r = VY.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
-function JY(e, t) {
- return VY(e.getDate(), t, 2);
+function YY(e, t) {
+ return HY(e.getDate(), t, 2);
}
function FOe(e, t) {
- return VY(e.getHours(), t, 2);
+ return HY(e.getHours(), t, 2);
}
function IOe(e, t) {
- return VY(e.getHours() % 12 || 12, t, 2);
+ return HY(e.getHours() % 12 || 12, t, 2);
}
function LOe(e, t) {
- return VY(1 + bY.count(NY(e), e), t, 3);
+ return HY(1 + xY.count(PY(e), e), t, 3);
}
-function YY(e, t) {
- return VY(e.getMilliseconds(), t, 3);
+function XY(e, t) {
+ return HY(e.getMilliseconds(), t, 3);
}
function ROe(e, t) {
- return YY(e, t) + "000";
+ return XY(e, t) + "000";
}
function zOe(e, t) {
- return VY(e.getMonth() + 1, t, 2);
+ return HY(e.getMonth() + 1, t, 2);
}
function BOe(e, t) {
- return VY(e.getMinutes(), t, 2);
+ return HY(e.getMinutes(), t, 2);
}
function VOe(e, t) {
- return VY(e.getSeconds(), t, 2);
+ return HY(e.getSeconds(), t, 2);
}
function HOe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
function UOe(e, t) {
- return VY(wY.count(NY(e) - 1, e), t, 2);
+ return HY(TY.count(PY(e) - 1, e), t, 2);
}
-function XY(e) {
+function ZY(e) {
var t = e.getDay();
- return t >= 4 || t === 0 ? EY(e) : EY.ceil(e);
+ return t >= 4 || t === 0 ? DY(e) : DY.ceil(e);
}
function WOe(e, t) {
- return e = XY(e), VY(EY.count(NY(e), e) + (NY(e).getDay() === 4), t, 2);
+ return e = ZY(e), HY(DY.count(PY(e), e) + (PY(e).getDay() === 4), t, 2);
}
function GOe(e) {
return e.getDay();
}
function KOe(e, t) {
- return VY(TY.count(NY(e) - 1, e), t, 2);
+ return HY(EY.count(PY(e) - 1, e), t, 2);
}
function qOe(e, t) {
- return VY(e.getFullYear() % 100, t, 2);
+ return HY(e.getFullYear() % 100, t, 2);
}
function JOe(e, t) {
- return e = XY(e), VY(e.getFullYear() % 100, t, 2);
+ return e = ZY(e), HY(e.getFullYear() % 100, t, 2);
}
function YOe(e, t) {
- return VY(e.getFullYear() % 1e4, t, 4);
+ return HY(e.getFullYear() % 1e4, t, 4);
}
function XOe(e, t) {
var n = e.getDay();
- return e = n >= 4 || n === 0 ? EY(e) : EY.ceil(e), VY(e.getFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? DY(e) : DY.ceil(e), HY(e.getFullYear() % 1e4, t, 4);
}
function ZOe(e) {
var t = e.getTimezoneOffset();
- return (t > 0 ? "-" : (t *= -1, "+")) + VY(t / 60 | 0, "0", 2) + VY(t % 60, "0", 2);
+ return (t > 0 ? "-" : (t *= -1, "+")) + HY(t / 60 | 0, "0", 2) + HY(t % 60, "0", 2);
}
-function ZY(e, t) {
- return VY(e.getUTCDate(), t, 2);
+function QY(e, t) {
+ return HY(e.getUTCDate(), t, 2);
}
function QOe(e, t) {
- return VY(e.getUTCHours(), t, 2);
+ return HY(e.getUTCHours(), t, 2);
}
function $Oe(e, t) {
- return VY(e.getUTCHours() % 12 || 12, t, 2);
+ return HY(e.getUTCHours() % 12 || 12, t, 2);
}
function eke(e, t) {
- return VY(1 + xY.count(PY(e), e), t, 3);
+ return HY(1 + SY.count(FY(e), e), t, 3);
}
-function QY(e, t) {
- return VY(e.getUTCMilliseconds(), t, 3);
+function $Y(e, t) {
+ return HY(e.getUTCMilliseconds(), t, 3);
}
function tke(e, t) {
- return QY(e, t) + "000";
+ return $Y(e, t) + "000";
}
function nke(e, t) {
- return VY(e.getUTCMonth() + 1, t, 2);
+ return HY(e.getUTCMonth() + 1, t, 2);
}
function rke(e, t) {
- return VY(e.getUTCMinutes(), t, 2);
+ return HY(e.getUTCMinutes(), t, 2);
}
function ike(e, t) {
- return VY(e.getUTCSeconds(), t, 2);
+ return HY(e.getUTCSeconds(), t, 2);
}
function ake(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
function oke(e, t) {
- return VY(OY.count(PY(e) - 1, e), t, 2);
+ return HY(kY.count(FY(e) - 1, e), t, 2);
}
-function $Y(e) {
+function eX(e) {
var t = e.getUTCDay();
- return t >= 4 || t === 0 ? AY(e) : AY.ceil(e);
+ return t >= 4 || t === 0 ? jY(e) : jY.ceil(e);
}
function ske(e, t) {
- return e = $Y(e), VY(AY.count(PY(e), e) + (PY(e).getUTCDay() === 4), t, 2);
+ return e = eX(e), HY(jY.count(FY(e), e) + (FY(e).getUTCDay() === 4), t, 2);
}
function cke(e) {
return e.getUTCDay();
}
function lke(e, t) {
- return VY(kY.count(PY(e) - 1, e), t, 2);
+ return HY(AY.count(FY(e) - 1, e), t, 2);
}
function uke(e, t) {
- return VY(e.getUTCFullYear() % 100, t, 2);
+ return HY(e.getUTCFullYear() % 100, t, 2);
}
function dke(e, t) {
- return e = $Y(e), VY(e.getUTCFullYear() % 100, t, 2);
+ return e = eX(e), HY(e.getUTCFullYear() % 100, t, 2);
}
function fke(e, t) {
- return VY(e.getUTCFullYear() % 1e4, t, 4);
+ return HY(e.getUTCFullYear() % 1e4, t, 4);
}
function pke(e, t) {
var n = e.getUTCDay();
- return e = n >= 4 || n === 0 ? AY(e) : AY.ceil(e), VY(e.getUTCFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? jY(e) : jY.ceil(e), HY(e.getUTCFullYear() % 1e4, t, 4);
}
function mke() {
return "+0000";
}
-function eX() {
+function tX() {
return "%";
}
-function tX(e) {
+function nX(e) {
return +e;
}
-function nX(e) {
+function rX(e) {
return Math.floor(e / 1e3);
}
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
-var rX, iX, aX;
+var iX, aX, oX;
hke({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
@@ -60439,7 +60439,7 @@ hke({
]
});
function hke(e) {
- return rX = hOe(e), iX = rX.format, rX.parse, aX = rX.utcFormat, rX.utcParse, rX;
+ return iX = hOe(e), aX = iX.format, iX.parse, oX = iX.utcFormat, iX.utcParse, iX;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
@@ -60449,8 +60449,8 @@ function gke(e) {
function _ke(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
-function oX(e, t, n, r, i, a, o, s, c, l) {
- var u = SJ(), 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 sX(e, t, n, r, i, a, o, s, c, l) {
+ var u = CJ(), 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);
}
@@ -60465,23 +60465,23 @@ function oX(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(BJ(n, e)) : u;
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(VJ(n, e)) : u;
}, u.copy = function() {
- return bJ(u, oX(e, t, n, r, i, a, o, s, c, l));
+ return xJ(u, sX(e, t, n, r, i, a, o, s, c, l));
}, u;
}
function vke() {
- return kq.apply(oX(pOe, mOe, NY, jY, wY, bY, vY, gY, hY, iX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+ return Aq.apply(sX(pOe, mOe, PY, MY, TY, xY, yY, _Y, gY, aX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
function yke() {
- return kq.apply(oX(dOe, fOe, PY, MY, OY, xY, yY, _Y, hY, aX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+ return Aq.apply(sX(dOe, fOe, FY, NY, kY, SY, bY, vY, gY, oX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
-function sX() {
- var e = 0, t = 1, n, r, i, a, o = vJ, s = !1, c;
+function cX() {
+ var e = 0, t = 1, n, r, i, a, o = yJ, 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));
}
@@ -60498,54 +60498,54 @@ function sX() {
return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];
};
}
- return l.range = u(mJ), l.rangeRound = u(hJ), l.unknown = function(e) {
+ return l.range = u(hJ), l.rangeRound = u(gJ), 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 cX(e, t) {
+function lX(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
-function lX() {
- var e = LJ(sX()(vJ));
- return e.copy = function() {
- return cX(e, lX());
- }, Aq.apply(e, arguments);
-}
function uX() {
- var e = WJ(sX()).domain([1, 10]);
+ var e = RJ(cX()(yJ));
return e.copy = function() {
- return cX(e, uX()).base(e.base());
- }, Aq.apply(e, arguments);
+ return lX(e, uX());
+ }, jq.apply(e, arguments);
}
function dX() {
- var e = JJ(sX());
+ var e = GJ(cX()).domain([1, 10]);
return e.copy = function() {
- return cX(e, dX()).constant(e.constant());
- }, Aq.apply(e, arguments);
+ return lX(e, dX()).base(e.base());
+ }, jq.apply(e, arguments);
}
function fX() {
- var e = ZJ(sX());
+ var e = YJ(cX());
return e.copy = function() {
- return cX(e, fX()).exponent(e.exponent());
- }, Aq.apply(e, arguments);
+ return lX(e, fX()).constant(e.constant());
+ }, jq.apply(e, arguments);
+}
+function pX() {
+ var e = QJ(cX());
+ return e.copy = function() {
+ return lX(e, pX()).exponent(e.exponent());
+ }, jq.apply(e, arguments);
}
function bke() {
- return fX.apply(null, arguments).exponent(.5);
+ return pX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
-function pX() {
- var e = [], t = vJ;
+function mX() {
+ var e = [], t = yJ;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((hq(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((gq(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(dq), n;
+ return e.sort(fq), n;
}, n.interpolator = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.range = function() {
@@ -60553,13 +60553,13 @@ function pX() {
}, n.quantiles = function(t) {
return Array.from({ length: t + 1 }, (n, r) => aDe(e, r / t));
}, n.copy = function() {
- return pX(t).domain(e);
- }, Aq.apply(n, arguments);
+ return mX(t).domain(e);
+ }, jq.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
-function mX() {
- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = vJ, u, d = !1, f;
+function hX() {
+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = yJ, 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));
}
@@ -60588,101 +60588,101 @@ function mX() {
];
};
}
- return p.range = m(mJ), p.rangeRound = m(hJ), p.unknown = function(e) {
+ return p.range = m(hJ), p.rangeRound = m(gJ), 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 hX() {
- var e = LJ(mX()(vJ));
+function gX() {
+ var e = RJ(hX()(yJ));
return e.copy = function() {
- return cX(e, hX());
- }, Aq.apply(e, arguments);
+ return lX(e, gX());
+ }, jq.apply(e, arguments);
}
-function gX() {
- var e = WJ(mX()).domain([
+function _X() {
+ var e = GJ(hX()).domain([
.1,
1,
10
]);
return e.copy = function() {
- return cX(e, gX()).base(e.base());
- }, Aq.apply(e, arguments);
+ return lX(e, _X()).base(e.base());
+ }, jq.apply(e, arguments);
}
-function _X() {
- var e = JJ(mX());
+function vX() {
+ var e = YJ(hX());
return e.copy = function() {
- return cX(e, _X()).constant(e.constant());
- }, Aq.apply(e, arguments);
+ return lX(e, vX()).constant(e.constant());
+ }, jq.apply(e, arguments);
}
-function vX() {
- var e = ZJ(mX());
+function yX() {
+ var e = QJ(hX());
return e.copy = function() {
- return cX(e, vX()).exponent(e.exponent());
- }, Aq.apply(e, arguments);
+ return lX(e, yX()).exponent(e.exponent());
+ }, jq.apply(e, arguments);
}
function xke() {
- return vX.apply(null, arguments).exponent(.5);
+ return yX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var yX = /* @__PURE__ */ Ct({
- scaleBand: () => Nq,
- scaleDiverging: () => hX,
- scaleDivergingLog: () => gX,
- scaleDivergingPow: () => vX,
+var bX = /* @__PURE__ */ wt({
+ scaleBand: () => Pq,
+ scaleDiverging: () => gX,
+ scaleDivergingLog: () => _X,
+ scaleDivergingPow: () => yX,
scaleDivergingSqrt: () => xke,
- scaleDivergingSymlog: () => _X,
- scaleIdentity: () => zJ,
- scaleImplicit: () => jq,
- scaleLinear: () => RJ,
- scaleLog: () => GJ,
- scaleOrdinal: () => Mq,
+ scaleDivergingSymlog: () => vX,
+ scaleIdentity: () => BJ,
+ scaleImplicit: () => Mq,
+ scaleLinear: () => zJ,
+ scaleLog: () => KJ,
+ scaleOrdinal: () => Nq,
scalePoint: () => cDe,
- scalePow: () => QJ,
- scaleQuantile: () => tY,
- scaleQuantize: () => nY,
- scaleRadial: () => eY,
- scaleSequential: () => lX,
- scaleSequentialLog: () => uX,
- scaleSequentialPow: () => fX,
- scaleSequentialQuantile: () => pX,
+ scalePow: () => $J,
+ scaleQuantile: () => nY,
+ scaleQuantize: () => rY,
+ scaleRadial: () => tY,
+ scaleSequential: () => uX,
+ scaleSequentialLog: () => dX,
+ scaleSequentialPow: () => pX,
+ scaleSequentialQuantile: () => mX,
scaleSequentialSqrt: () => bke,
- scaleSequentialSymlog: () => dX,
+ scaleSequentialSymlog: () => fX,
scaleSqrt: () => tOe,
- scaleSymlog: () => YJ,
- scaleThreshold: () => rY,
+ scaleSymlog: () => XJ,
+ scaleThreshold: () => iY,
scaleTime: () => vke,
scaleUtc: () => yke,
- tickFormat: () => IJ
+ tickFormat: () => LJ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
function Ske(e) {
- if (e in yX) return yX[e]();
- var t = `scale${sB(e)}`;
- if (t in yX) return yX[t]();
+ if (e in bX) return bX[e]();
+ var t = `scale${cB(e)}`;
+ if (t in bX) return bX[t]();
}
-function bX(e, t, n) {
+function xX(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
var r = Ske(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function xX(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? bX(e.scale, n, r) : bX(t, n, r);
+function SX(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? xX(e.scale, n, r) : xX(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
function Cke(e) {
- return `scale${sB(e)}`;
+ return `scale${cB(e)}`;
}
function wke(e) {
- return Cke(e) in yX;
+ return Cke(e) in bX;
}
-var SX = (e, t, n) => {
+var CX = (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";
@@ -60698,7 +60698,7 @@ function Tke(e, t) {
}
return n;
}
-function CX(e, t) {
+function wX(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) => {
@@ -60713,11 +60713,11 @@ function CX(e, t) {
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
function Eke(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : CX(e, void 0);
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : wX(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function wX(e, t) {
+function TX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60727,12 +60727,12 @@ function wX(e, t) {
}
return n;
}
-function TX(e) {
+function EX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? wX(Object(n), !0).forEach(function(t) {
+ t % 2 ? TX(Object(n), !0).forEach(function(t) {
Dke(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wX(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -60760,7 +60760,7 @@ function kke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var EX = [0, "auto"], DX = {
+var DX = [0, "auto"], OX = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -60789,13 +60789,13 @@ var EX = [0, "auto"], DX = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, OX = (e, t) => e.cartesianAxis.xAxis[t], kX = (e, t) => OX(e, t) ?? DX, AX = {
+}, kX = (e, t) => e.cartesianAxis.xAxis[t], AX = (e, t) => kX(e, t) ?? OX, jX = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: EX,
+ domain: DX,
hide: !0,
id: 0,
includeHidden: !1,
@@ -60818,7 +60818,7 @@ var EX = [0, "auto"], DX = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, jX = (e, t) => e.cartesianAxis.yAxis[t], MX = (e, t) => jX(e, t) ?? AX, Ake = {
+}, MX = (e, t) => e.cartesianAxis.yAxis[t], NX = (e, t) => MX(e, t) ?? jX, Ake = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -60831,31 +60831,31 @@ var EX = [0, "auto"], DX = {
scale: "auto",
type: "number",
unit: ""
-}, NX = (e, t) => e.cartesianAxis.zAxis[t] ?? Ake, PX = (e, t, n) => {
+}, PX = (e, t) => e.cartesianAxis.zAxis[t] ?? Ake, FX = (e, t, n) => {
switch (t) {
- case "xAxis": return kX(e, n);
- case "yAxis": return MX(e, n);
- case "zAxis": return NX(e, n);
- case "angleAxis": return GK(e, n);
- case "radiusAxis": return KK(e, n);
+ case "xAxis": return AX(e, n);
+ case "yAxis": return NX(e, n);
+ case "zAxis": return PX(e, n);
+ case "angleAxis": return KK(e, n);
+ case "radiusAxis": return qK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, jke = (e, t, n) => {
switch (t) {
- case "xAxis": return kX(e, n);
- case "yAxis": return MX(e, n);
+ case "xAxis": return AX(e, n);
+ case "yAxis": return NX(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, FX = (e, t, n) => {
+}, IX = (e, t, n) => {
switch (t) {
- case "xAxis": return kX(e, n);
- case "yAxis": return MX(e, n);
- case "angleAxis": return GK(e, n);
- case "radiusAxis": return KK(e, n);
+ case "xAxis": return AX(e, n);
+ case "yAxis": return NX(e, n);
+ case "angleAxis": return KK(e, n);
+ case "radiusAxis": return qK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, IX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function LX(e, t) {
+}, LX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function RX(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -60867,41 +60867,41 @@ function LX(e, t) {
}
};
}
-var RX = (e) => e.graphicalItems.cartesianItems, Mke = $([eq, tq], LX), zX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), BX = $([
- RX,
- PX,
+var zX = (e) => e.graphicalItems.cartesianItems, Mke = $([tq, nq], RX), BX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), VX = $([
+ zX,
+ FX,
Mke
-], zX, { memoizeOptions: { resultEqualityCheck: oq } }), VX = $([BX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(iq)), HX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Nke = $([BX], HX), UX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Pke = $([BX], UX, { memoizeOptions: { resultEqualityCheck: oq } }), WX = (e, t) => {
+], BX, { memoizeOptions: { resultEqualityCheck: sq } }), HX = $([VX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(aq)), UX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Nke = $([VX], UX), WX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Pke = $([VX], WX, { memoizeOptions: { resultEqualityCheck: sq } }), GX = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, GX = $([Pke, fK], WX), KX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: fU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: fU(e, t.dataKey) })), qX = $([
- GX,
- PX,
- BX
-], KX);
-function JX(e) {
- if (eB(e) || e instanceof Date) {
+}, KX = $([Pke, pK], GX), qX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: pU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: pU(e, t.dataKey) })), JX = $([
+ KX,
+ FX,
+ VX
+], qX);
+function YX(e) {
+ if (tB(e) || e instanceof Date) {
var t = Number(e);
- if (cU(t)) return t;
+ if (lU(t)) return t;
}
}
-function YX(e) {
+function XX(e) {
if (Array.isArray(e)) {
- var t = [JX(e[0]), JX(e[1])];
- return mK(t) ? t : void 0;
+ var t = [YX(e[0]), YX(e[1])];
+ return hK(t) ? t : void 0;
}
- var n = JX(e);
+ var n = YX(e);
if (n != null) return [n, n];
}
-function XX(e) {
- return e.map(JX).filter(cB);
+function ZX(e) {
+ return e.map(YX).filter(lB);
}
function Fke(e, t) {
- var n = JX(e), r = JX(t);
+ var n = YX(e), r = YX(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var Ike = $([qX], (e) => e?.map((e) => e.value).sort(Fke));
-function ZX(e, t) {
+var Ike = $([JX], (e) => e?.map((e) => e.value).sort(Fke));
+function QX(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
@@ -60909,16 +60909,16 @@ function ZX(e, t) {
}
}
function Lke(e, t, n) {
- return !n || typeof t != "number" || Qz(t) || !n.length ? [] : XX(n.flatMap((n) => {
- var r = fU(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!cU(i) || !cU(a))) return [t - i, t + a];
+ return !n || typeof t != "number" || $z(t) || !n.length ? [] : ZX(n.flatMap((n) => {
+ var r = pU(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!lU(i) || !lU(a))) return [t - i, t + a];
}));
}
-var QX = (e) => FX(e, sq(e), cq(e)), $X = $([QX], (e) => e?.dataKey), Rke = $([
- VX,
- fK,
- QX
-], rq), eZ = (e, t, n, r) => {
+var $X = (e) => IX(e, cq(e), lq(e)), eZ = $([$X], (e) => e?.dataKey), Rke = $([
+ HX,
+ pK,
+ $X
+], iq), tZ = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -60927,168 +60927,168 @@ var QX = (e) => FX(e, sq(e), cq(e)), $X = $([QX], (e) => e?.dataKey), Rke = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: RCe(e, o.map(nq), n),
+ stackedData: RCe(e, o.map(rq), n),
graphicalItems: o
}];
}));
-}, tZ = $([
+}, nZ = $([
Rke,
- VX,
- AK,
- jK
-], eZ), nZ = (e, t, n, r) => {
+ HX,
+ jK,
+ MK
+], tZ), rZ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
var o = VCe(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, zke = $([PX], (e) => e.allowDataOverflow), rZ = (e) => {
- if (e == null || !("domain" in e)) return EX;
+}, zke = $([FX], (e) => e.allowDataOverflow), iZ = (e) => {
+ if (e == null || !("domain" in e)) return DX;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = XX(e.ticks);
+ var t = ZX(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? EX;
-}, iZ = $([PX], rZ), aZ = $([iZ, zke], gK), Bke = $([
- tZ,
- uK,
- eq,
- aZ
-], nZ, { memoizeOptions: { resultEqualityCheck: aq } }), oZ = (e) => e.errorBars, Vke = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => ZX(n, e)), sZ = function() {
+ return e?.domain ?? DX;
+}, aZ = $([FX], iZ), oZ = $([aZ, zke], _K), Bke = $([
+ nZ,
+ dK,
+ tq,
+ oZ
+], rZ, { memoizeOptions: { resultEqualityCheck: oq } }), sZ = (e) => e.errorBars, Vke = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => QX(n, e)), cZ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, cZ = (e, t, n, r, i) => {
+}, lZ = (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) => ZX(i, e)), c = fU(e, t.dataKey ?? n.dataKey), l = Lke(e, c, s);
+ var s = r[n.id]?.filter((e) => QX(i, e)), c = pU(e, t.dataKey ?? n.dataKey), l = Lke(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 = YX(c);
+ var f = XX(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 = YX(fU(e, t.dataKey));
+ var n = XX(pU(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]));
- }), cU(a) && cU(o)) return [a, o];
+ }), lU(a) && lU(o)) return [a, o];
}, Hke = $([
- GX,
- PX,
+ KX,
+ FX,
Nke,
- oZ,
- eq
-], cZ, { memoizeOptions: { resultEqualityCheck: aq } });
+ sZ,
+ tq
+], lZ, { memoizeOptions: { resultEqualityCheck: oq } });
function Uke(e) {
var { value: t } = e;
- if (eB(t) || t instanceof Date) return t;
+ if (tB(t) || t instanceof Date) return t;
}
var Wke = (e, t, n) => {
var r = e.map(Uke).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && rB(r)) ? lK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, lZ = (e) => e.referenceElements.dots, uZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Gke = $([
- lZ,
- eq,
- tq
-], uZ), dZ = (e) => e.referenceElements.areas, Kke = $([
- dZ,
- eq,
- tq
-], uZ), fZ = (e) => e.referenceElements.lines, qke = $([
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && iB(r)) ? uK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, uZ = (e) => e.referenceElements.dots, dZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Gke = $([
+ uZ,
+ tq,
+ nq
+], dZ), fZ = (e) => e.referenceElements.areas, Kke = $([
fZ,
- eq,
- tq
-], uZ), pZ = (e, t) => {
+ tq,
+ nq
+], dZ), pZ = (e) => e.referenceElements.lines, qke = $([
+ pZ,
+ tq,
+ nq
+], dZ), mZ = (e, t) => {
if (e != null) {
- var n = XX(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = ZX(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Jke = $(Gke, eq, pZ), mZ = (e, t) => {
+}, Jke = $(Gke, tq, mZ), hZ = (e, t) => {
if (e != null) {
- var n = XX(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = ZX(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)];
}
-}, Yke = $([Kke, eq], mZ);
+}, Yke = $([Kke, tq], hZ);
function Xke(e) {
- if (e.x != null) return XX([e.x]);
+ if (e.x != null) return ZX([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : XX(t);
+ return t == null || t.length === 0 ? [] : ZX(t);
}
function Zke(e) {
- if (e.y != null) return XX([e.y]);
+ if (e.y != null) return ZX([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : XX(t);
+ return t == null || t.length === 0 ? [] : ZX(t);
}
-var hZ = (e, t) => {
+var gZ = (e, t) => {
if (e != null) {
var n = e.flatMap((e) => t === "xAxis" ? Xke(e) : Zke(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Qke = $(Jke, $([qke, eq], hZ), Yke, (e, t, n) => sZ(e, n, t)), gZ = (e, t, n, r, i, a, o, s) => n ?? GEe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? sZ(r, a, i) : sZ(a, i), e.allowDataOverflow), $ke = $([
- PX,
- iZ,
+}, Qke = $(Jke, $([qke, tq], gZ), Yke, (e, t, n) => cZ(e, n, t)), _Z = (e, t, n, r, i, a, o, s) => n ?? GEe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? cZ(r, a, i) : cZ(a, i), e.allowDataOverflow), $ke = $([
+ FX,
aZ,
+ oZ,
Bke,
Hke,
Qke,
- $U,
- eq
-], gZ, { memoizeOptions: { resultEqualityCheck: aq } }), eAe = [0, 1], _Z = (e, t, n, r, i, a, o) => {
+ eW,
+ tq
+], _Z, { memoizeOptions: { resultEqualityCheck: oq } }), eAe = [0, 1], vZ = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
- var { dataKey: s, type: c } = e, l = pU(t, a);
- return l && s == null ? lK(0, n?.length ?? 0) : c === "category" ? Wke(r, e, l) : i === "expand" ? eAe : o;
- }
-}, vZ = $([
- PX,
- $U,
- GX,
- qX,
- AK,
- eq,
+ var { dataKey: s, type: c } = e, l = mU(t, a);
+ return l && s == null ? uK(0, n?.length ?? 0) : c === "category" ? Wke(r, e, l) : i === "expand" ? eAe : o;
+ }
+}, yZ = $([
+ FX,
+ eW,
+ KX,
+ JX,
+ jK,
+ tq,
$ke
-], _Z), yZ = $([
- PX,
- IX,
- MK
-], SX), bZ = (e, t, n) => {
+], vZ), bZ = $([
+ FX,
+ LX,
+ NK
+], CX), xZ = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = rZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && mK(e)) {
- if (a) return wK(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return TK(e, t.tickCount, t.allowDecimals, r);
+ var i = iZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && hK(e)) {
+ if (a) return TK(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return EK(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && mK(e)) return wK(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && mK(e)) return TK(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && hK(e)) return TK(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && hK(e)) return EK(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, xZ = $([
- vZ,
- FX,
- yZ
-], bZ), SZ = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && mK(t) && Array.isArray(n) && n.length > 0) {
+}, SZ = $([
+ yZ,
+ IX,
+ bZ
+], xZ), CZ = (e, t, n, r) => {
+ if (r !== "angleAxis" && e?.type === "number" && hK(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;
}, tAe = $([
- PX,
- vZ,
- xZ,
- eq
-], SZ), CZ = $($(qX, PX, (e, t) => {
+ FX,
+ yZ,
+ SZ,
+ tq
+], CZ), wZ = $($(JX, FX, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from(XX(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(ZX(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;
@@ -61101,22 +61101,22 @@ var hZ = (e, t) => {
}
return n / o;
}
-}), $U, OK, NU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!cU(e)) return 0;
+}), eW, kK, PU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!lU(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = nB(n, e * a), s = e * a / 2;
+ var o = rB(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
}), nAe = (e, t, n) => {
- var r = kX(e, t);
- return r == null || typeof r.padding != "string" ? 0 : CZ(e, "xAxis", t, n, r.padding);
+ var r = AX(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : wZ(e, "xAxis", t, n, r.padding);
}, rAe = (e, t, n) => {
- var r = MX(e, t);
- return r == null || typeof r.padding != "string" ? 0 : CZ(e, "yAxis", t, n, r.padding);
-}, iAe = $(kX, nAe, (e, t) => {
+ var r = NX(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : wZ(e, "yAxis", t, n, r.padding);
+}, iAe = $(AX, nAe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -61129,7 +61129,7 @@ var hZ = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), aAe = $(MX, rAe, (e, t) => {
+}), aAe = $(NX, rAe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -61143,64 +61143,64 @@ var hZ = (e, t) => {
bottom: (n.bottom ?? 0) + t
};
}), oAe = $([
- NU,
+ PU,
iAe,
+ RU,
LU,
- IU,
(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];
}), sAe = $([
- NU,
- $U,
+ PU,
+ eW,
aAe,
+ RU,
LU,
- IU,
(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];
-}), wZ = (e, t, n, r) => {
+}), TZ = (e, t, n, r) => {
switch (t) {
case "xAxis": return oAe(e, n, r);
case "yAxis": return sAe(e, n, r);
- case "zAxis": return NX(e, n)?.range;
- case "angleAxis": return ZK(e);
- case "radiusAxis": return QK(e, n);
+ case "zAxis": return PX(e, n)?.range;
+ case "angleAxis": return QK(e);
+ case "radiusAxis": return $K(e, n);
default: return;
}
-}, TZ = $([PX, wZ], zK), EZ = $([
- PX,
- yZ,
- $([yZ, tAe], uq),
- TZ
-], xX), DZ = (e, t, n, r) => {
+}, EZ = $([FX, TZ], BK), DZ = $([
+ FX,
+ bZ,
+ $([bZ, tAe], dq),
+ EZ
+], SX), OZ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (pU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (mU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, OZ = $([
- $U,
- qX,
- FX,
- eq
-], DZ), kZ = $([EZ], lq);
-$([EZ], Eke), $([EZ, Ike], CX), $([
- BX,
- oZ,
- eq
+}, kZ = $([
+ eW,
+ JX,
+ IX,
+ tq
+], OZ), AZ = $([DZ], uq);
+$([DZ], Eke), $([DZ, Ike], wX), $([
+ VX,
+ sZ,
+ tq
], Vke);
-function AZ(e, t) {
+function jZ(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var jZ = (e, t) => t, MZ = (e, t, n) => n, cAe = $(kU, jZ, MZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(AZ)), lAe = $(AU, jZ, MZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(AZ)), NZ = (e, t) => ({
+var MZ = (e, t) => t, NZ = (e, t, n) => n, cAe = $(AU, MZ, NZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(jZ)), lAe = $(jU, MZ, NZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(jZ)), PZ = (e, t) => ({
width: e.width,
height: t.height
}), uAe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), PZ = $(NU, kX, NZ), dAe = (e, t, n) => {
+}), FZ = $(PU, AX, PZ), dAe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
@@ -61212,15 +61212,15 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, cAe = $(kU, jZ, MZ, (e, t, n) => e.fi
case "right": return n - e.right;
default: return 0;
}
-}, pAe = $(DU, NU, cAe, jZ, MZ, (e, t, n, r, i) => {
+}, pAe = $(OU, PU, cAe, MZ, NZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = NZ(t, n);
+ var s = PZ(t, n);
o ??= dAe(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;
-}), mAe = $(EU, NU, lAe, jZ, MZ, (e, t, n, r, i) => {
+}), mAe = $(DU, PU, lAe, MZ, NZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = uAe(t, n);
@@ -61229,10 +61229,10 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, cAe = $(kU, jZ, MZ, (e, t, n) => e.fi
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
}), a;
}), hAe = $([
- NU,
- kX,
+ PU,
+ AX,
(e, t) => {
- var n = kX(e, t);
+ var n = AX(e, t);
if (n != null) return pAe(e, n.orientation, n.mirror);
},
(e, t) => t
@@ -61248,10 +61248,10 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, cAe = $(kU, jZ, MZ, (e, t, n) => e.fi
};
}
}), gAe = $([
- NU,
- MX,
+ PU,
+ NX,
(e, t) => {
- var n = MX(e, t);
+ var n = NX(e, t);
if (n != null) return mAe(e, n.orientation, n.mirror);
},
(e, t) => t
@@ -61266,38 +61266,38 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, cAe = $(kU, jZ, MZ, (e, t, n) => e.fi
y: e.top
};
}
-}), FZ = $(NU, MX, (e, t) => ({
+}), IZ = $(PU, NX, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), IZ = (e, t, n) => {
+})), LZ = (e, t, n) => {
switch (t) {
- case "xAxis": return PZ(e, n).width;
- case "yAxis": return FZ(e, n).height;
+ case "xAxis": return FZ(e, n).width;
+ case "yAxis": return IZ(e, n).height;
default: return;
}
-}, LZ = (e, t, n, r) => {
+}, RZ = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = pU(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && rB(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = mU(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && iB(c)) return c;
}
-}, RZ = $([
- $U,
- qX,
- PX,
- eq
-], LZ), zZ = $([
- $U,
+}, zZ = $([
+ eW,
+ JX,
+ FX,
+ tq
+], RZ), BZ = $([
+ eW,
jke,
- yZ,
+ bZ,
+ AZ,
+ zZ,
kZ,
- RZ,
- OZ,
- wZ,
- xZ,
- eq
+ TZ,
+ SZ,
+ tq
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = pU(e, c);
+ var l = mU(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -61319,107 +61319,107 @@ var jZ = (e, t) => t, MZ = (e, t, n) => n, cAe = $(kU, jZ, MZ, (e, t, n) => e.fi
scale: r
};
}
-}), BZ = (e, t, n, r, i, a, o, s, c) => {
+}), VZ = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = pU(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 ? Zz(a[0] - a[1]) * 2 * m : m;
+ var l = mU(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 ? Qz(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 cU(i) ? {
+ return lU(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(cB) : l && s ? s.map((e, t) => {
+ }).filter(lB) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return cU(n) ? {
+ return lU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(cB) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(lB) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return cU(n) ? {
+ return lU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(cB) : r.domain().map((e, t) => {
+ }).filter(lB) : r.domain().map((e, t) => {
var n = r.map(e);
- return cU(n) ? {
+ return lU(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(cB);
+ }).filter(lB);
}
-}, VZ = $([
- $U,
- FX,
- yZ,
+}, HZ = $([
+ eW,
+ IX,
+ bZ,
+ AZ,
+ SZ,
+ TZ,
+ zZ,
kZ,
- xZ,
- wZ,
- RZ,
- OZ,
- eq
-], BZ), HZ = (e, t, n, r, i, a, o) => {
+ tq
+], VZ), UZ = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = pU(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? Zz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = mU(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? Qz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return cU(r) ? {
+ return lU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(cB) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(lB) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return cU(r) ? {
+ return lU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(cB) : n.domain().map((e, t) => {
+ }).filter(lB) : n.domain().map((e, t) => {
var r = n.map(e);
- return cU(r) ? {
+ return lU(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(cB);
+ }).filter(lB);
}
-}, UZ = $([
- $U,
- FX,
+}, WZ = $([
+ eW,
+ IX,
+ AZ,
+ TZ,
+ zZ,
kZ,
- wZ,
- RZ,
- OZ,
- eq
-], HZ), WZ = $(PX, kZ, (e, t) => {
- if (e != null && t != null) return TX(TX({}, e), {}, { scale: t });
+ tq
+], UZ), GZ = $(FX, AZ, (e, t) => {
+ if (e != null && t != null) return EX(EX({}, e), {}, { scale: t });
});
-$((e, t, n) => NX(e, n), $([$([
- PX,
+$((e, t, n) => PX(e, n), $([$([
+ FX,
+ bZ,
yZ,
- vZ,
- TZ
-], xX)], lq), (e, t) => {
- if (e != null && t != null) return TX(TX({}, e), {}, { scale: t });
+ EZ
+], SX)], uq), (e, t) => {
+ if (e != null && t != null) return EX(EX({}, e), {}, { scale: t });
});
var _Ae = $([
- $U,
- kU,
- AU
+ eW,
+ AU,
+ jU
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -61441,41 +61441,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var GZ = (e) => e.options.defaultTooltipEventType, KZ = (e) => e.options.validateTooltipEventTypes;
-function qZ(e, t, n) {
+var KZ = (e) => e.options.defaultTooltipEventType, qZ = (e) => e.options.validateTooltipEventTypes;
+function JZ(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function JZ(e, t) {
- return qZ(t, GZ(e), KZ(e));
+function YZ(e, t) {
+ return JZ(t, KZ(e), qZ(e));
}
function vAe(e) {
- return Q((t) => JZ(t, e));
+ return Q((t) => YZ(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var YZ = (e, t) => {
+var XZ = (e, t) => {
var n, r = Number(t);
- if (!(Qz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, yAe = (e) => e.tooltip.settings, XZ = {
+ if (!($z(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, yAe = (e) => e.tooltip.settings, ZZ = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, ZZ = NH({
+}, QZ = PH({
name: "tooltip",
initialState: {
itemInteraction: {
- click: XZ,
- hover: XZ
+ click: ZZ,
+ hover: ZZ
},
axisInteraction: {
- click: XZ,
- hover: XZ
+ click: ZZ,
+ hover: ZZ
},
- keyboardInteraction: XZ,
+ keyboardInteraction: ZZ,
syncInteraction: {
active: !1,
index: null,
@@ -61497,23 +61497,23 @@ var YZ = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(WW(t.payload));
+ e.tooltipItemPayloads.push(GW(t.payload));
},
- prepare: kH()
+ prepare: AH()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = bH(e).tooltipItemPayloads.indexOf(WW(n));
- i > -1 && (e.tooltipItemPayloads[i] = WW(r));
+ var { prev: n, next: r } = t.payload, i = xH(e).tooltipItemPayloads.indexOf(GW(n));
+ i > -1 && (e.tooltipItemPayloads[i] = GW(r));
},
- prepare: kH()
+ prepare: AH()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = bH(e).tooltipItemPayloads.indexOf(WW(t.payload));
+ var n = xH(e).tooltipItemPayloads.indexOf(GW(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: kH()
+ prepare: AH()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -61543,10 +61543,10 @@ var YZ = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: bAe, replaceTooltipEntrySettings: xAe, removeTooltipEntrySettings: SAe, setTooltipSettingsState: CAe, setActiveMouseOverItemIndex: QZ, mouseLeaveItem: wAe, mouseLeaveChart: $Z, setActiveClickItemIndex: TAe, setMouseOverAxisIndex: eQ, setMouseClickAxisIndex: EAe, setSyncInteraction: tQ, setKeyboardInteraction: nQ } = ZZ.actions, DAe = ZZ.reducer;
+}), { addTooltipEntrySettings: bAe, replaceTooltipEntrySettings: xAe, removeTooltipEntrySettings: SAe, setTooltipSettingsState: CAe, setActiveMouseOverItemIndex: $Z, mouseLeaveItem: wAe, mouseLeaveChart: eQ, setActiveClickItemIndex: TAe, setMouseOverAxisIndex: tQ, setMouseClickAxisIndex: EAe, setSyncInteraction: nQ, setKeyboardInteraction: rQ } = QZ.actions, DAe = QZ.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function rQ(e, t) {
+function iQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61556,12 +61556,12 @@ function rQ(e, t) {
}
return n;
}
-function iQ(e) {
+function aQ(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) {
+ t % 2 ? iQ(Object(n), !0).forEach(function(t) {
OAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -61595,16 +61595,16 @@ function jAe(e, t, n) {
function MAe(e) {
return e.index != null;
}
-var aQ = (e, t, n, r) => {
- if (t == null) return XZ;
+var oQ = (e, t, n, r) => {
+ if (t == null) return ZZ;
var i = jAe(e, t, n);
- if (i == null) return XZ;
+ if (i == null) return ZZ;
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 (MAe(i)) {
- if (a) return iQ(iQ({}, i), {}, { active: !0 });
+ if (a) return aQ(aQ({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -61612,7 +61612,7 @@ var aQ = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return iQ(iQ({}, XZ), {}, { coordinate: i.coordinate });
+ return aQ(aQ({}, ZZ), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
@@ -61631,19 +61631,19 @@ function PAe(e, t) {
}
function FAe(e, t, n) {
if (n == null || t == null) return !0;
- var r = fU(e, t);
- return r == null || !mK(n) || PAe(r, n);
+ var r = pU(e, t);
+ return r == null || !hK(n) || PAe(r, n);
}
-var oQ = (e, t, n, r) => {
+var sQ = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!cU(a)) return i;
+ if (!lU(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 || FAe(l, n, r) ? String(c) : null;
-}, sQ = (e, t, n, r, i, a, o) => {
+}, cQ = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -61659,7 +61659,7 @@ var oQ = (e, t, n, r) => {
};
}
}
-}, cQ = (e, t, n, r) => {
+}, lQ = (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;
@@ -61669,10 +61669,10 @@ var oQ = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, lQ = (e) => e.options.tooltipPayloadSearcher, uQ = (e) => e.tooltip;
+}, uQ = (e) => e.options.tooltipPayloadSearcher, dQ = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function dQ(e, t) {
+function fQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61682,12 +61682,12 @@ function dQ(e, t) {
}
return n;
}
-function fQ(e) {
+function pQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dQ(Object(n), !0).forEach(function(t) {
+ t % 2 ? fQ(Object(n), !0).forEach(function(t) {
IAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -61725,7 +61725,7 @@ function VAe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function pQ(e) {
+function mQ(e) {
if (typeof e == "string") return e;
}
function HAe(e) {
@@ -61734,203 +61734,203 @@ function HAe(e) {
unit: "unit" in e ? BAe(e.unit) : void 0,
dataKey: "dataKey" in e ? VAe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? pQ(e.color) : void 0,
- fill: "fill" in e ? pQ(e.fill) : void 0
+ color: "color" in e ? mQ(e.color) : void 0,
+ fill: "fill" in e ? mQ(e.fill) : void 0
};
}
function UAe(e, t) {
return e ?? t;
}
-var mQ = (e, t, n, r, i, a, o) => {
+var hQ = (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 = UAe(d, s), m = Array.isArray(p) ? sU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? aB(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = UAe(d, s), m = Array.isArray(p) ? cU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oB(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = HAe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = fQ(fQ({}, f), {}, {
+ var n = HAe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = pQ(pQ({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(wU({
+ e.push(TU({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: fU(a, i),
+ value: pU(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(wU({
+ }) : e.push(TU({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: fU(_, h),
- name: fU(_, g) ?? f?.name
+ value: pU(_, h),
+ name: pU(_, g) ?? f?.name
})), e;
}, []);
}
-}, hQ = $([
- QX,
- IX,
- MK
-], SX), gQ = $([
+}, gQ = $([
+ $X,
+ LX,
+ NK
+], CX), _Q = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- QX,
- $([sq, cq], LX)
-], zX, { memoizeOptions: { resultEqualityCheck: oq } }), WAe = $([gQ], (e) => e.filter(iq)), _Q = $([$([gQ], UX, { memoizeOptions: { resultEqualityCheck: oq } }), uK], WX), GAe = $([
+ $X,
+ $([cq, lq], RX)
+], BX, { memoizeOptions: { resultEqualityCheck: sq } }), WAe = $([_Q], (e) => e.filter(aq)), vQ = $([$([_Q], WX, { memoizeOptions: { resultEqualityCheck: sq } }), dK], GX), GAe = $([
WAe,
- uK,
- QX
-], rq), vQ = $([
- _Q,
- QX,
- gQ
-], KX), yQ = $([QX], rZ), bQ = $([yQ, $([QX], (e) => e.allowDataOverflow)], gK), KAe = $([
+ dK,
+ $X
+], iq), yQ = $([
+ vQ,
+ $X,
+ _Q
+], qX), bQ = $([$X], iZ), xQ = $([bQ, $([$X], (e) => e.allowDataOverflow)], _K), KAe = $([
$([
GAe,
- $([gQ], (e) => e.filter(iq)),
- AK,
- jK
- ], eZ),
- uK,
- sq,
- bQ
-], nZ), qAe = $([
- _Q,
- QX,
- $([gQ], HX),
- oZ,
- sq
-], cZ, { memoizeOptions: { resultEqualityCheck: aq } }), JAe = $([$([
- lZ,
- sq,
- cq
-], uZ), sq], pZ), YAe = $([$([
- dZ,
- sq,
+ $([_Q], (e) => e.filter(aq)),
+ jK,
+ MK
+ ], tZ),
+ dK,
+ cq,
+ xQ
+], rZ), qAe = $([
+ vQ,
+ $X,
+ $([_Q], UX),
+ sZ,
cq
-], uZ), sq], mZ), xQ = $([
- QX,
- $U,
- _Q,
+], lZ, { memoizeOptions: { resultEqualityCheck: oq } }), JAe = $([$([
+ uZ,
+ cq,
+ lq
+], dZ), cq], mZ), YAe = $([$([
+ fZ,
+ cq,
+ lq
+], dZ), cq], hZ), SQ = $([
+ $X,
+ eW,
vQ,
- AK,
- sq,
+ yQ,
+ jK,
+ cq,
$([
- QX,
- yQ,
+ $X,
bQ,
+ xQ,
KAe,
qAe,
$([
JAe,
$([$([
- fZ,
- sq,
- cq
- ], uZ), sq], hZ),
+ pZ,
+ cq,
+ lq
+ ], dZ), cq], gZ),
YAe
- ], sZ),
- $U,
- sq
- ], gZ)
-], _Z), XAe = $([
- QX,
- xQ,
+ ], cZ),
+ eW,
+ cq
+ ], _Z)
+], vZ), XAe = $([
+ $X,
+ SQ,
$([
- xQ,
- QX,
- hQ
- ], bZ),
- sq
-], SZ), SQ = (e) => wZ(e, sq(e), cq(e), !1), CQ = $([QX, SQ], zK), wQ = $([$([
- QX,
- hQ,
+ SQ,
+ $X,
+ gQ
+ ], xZ),
+ cq
+], CZ), CQ = (e) => TZ(e, cq(e), lq(e), !1), wQ = $([$X, CQ], BK), TQ = $([$([
+ $X,
+ gQ,
XAe,
- CQ
-], xX)], lq), TQ = $([
- $U,
- QX,
- hQ,
- wQ,
- SQ,
+ wQ
+], SX)], uq), EQ = $([
+ eW,
+ $X,
+ gQ,
+ TQ,
+ CQ,
$([
- $U,
- vQ,
- QX,
- sq
- ], LZ),
+ eW,
+ yQ,
+ $X,
+ cq
+ ], RZ),
$([
- $U,
- vQ,
- QX,
- sq
- ], DZ),
- sq
+ eW,
+ yQ,
+ $X,
+ cq
+ ], OZ),
+ cq
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = pU(e, s);
+ var { type: c } = t, l = mU(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 ? Zz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? Qz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return cU(n) ? {
+ return lU(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(cB) : r.domain().map((e, t) => {
+ }).filter(lB) : r.domain().map((e, t) => {
var n = r.map(e);
- return cU(n) ? {
+ return lU(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(cB);
+ }).filter(lB);
}
}
-}), EQ = $([
- GZ,
+}), DQ = $([
KZ,
+ qZ,
yAe
-], (e, t, n) => qZ(n.shared, e, t)), DQ = (e) => e.tooltip.settings.trigger, OQ = (e) => e.tooltip.settings.defaultIndex, kQ = $([
- uQ,
- EQ,
+], (e, t, n) => JZ(n.shared, e, t)), OQ = (e) => e.tooltip.settings.trigger, kQ = (e) => e.tooltip.settings.defaultIndex, AQ = $([
+ dQ,
DQ,
- OQ
-], aQ), AQ = $([
- kQ,
- _Q,
- $X,
- xQ
-], oQ), jQ = $([TQ, AQ], YZ), MQ = $([kQ], (e) => {
+ OQ,
+ kQ
+], oQ), jQ = $([
+ AQ,
+ vQ,
+ eZ,
+ SQ
+], sQ), MQ = $([EQ, jQ], XZ), NQ = $([AQ], (e) => {
if (e) return e.dataKey;
-}), ZAe = $([kQ], (e) => {
+}), ZAe = $([AQ], (e) => {
if (e) return e.graphicalItemId;
-}), NQ = $([
- uQ,
- EQ,
+}), PQ = $([
+ dQ,
DQ,
- OQ
-], cQ), QAe = $([kQ, $([
- EU,
- DU,
- $U,
- NU,
- TQ,
OQ,
- NQ
-], sQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), $Ae = $([kQ], (e) => e?.active ?? !1), eje = $([$([
- NQ,
- AQ,
- uK,
- $X,
+ kQ
+], lQ), QAe = $([AQ, $([
+ DU,
+ OU,
+ eW,
+ PU,
+ EQ,
+ kQ,
+ PQ
+], cQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), $Ae = $([AQ], (e) => e?.active ?? !1), eje = $([$([
+ PQ,
jQ,
- lQ,
- EQ
-], mQ)], (e) => {
+ dK,
+ eZ,
+ MQ,
+ uQ,
+ DQ
+], hQ)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -61938,7 +61938,7 @@ var mQ = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function PQ(e, t) {
+function FQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61948,12 +61948,12 @@ function PQ(e, t) {
}
return n;
}
-function FQ(e) {
+function IQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? PQ(Object(n), !0).forEach(function(t) {
+ t % 2 ? FQ(Object(n), !0).forEach(function(t) {
tje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -61981,13 +61981,13 @@ function rje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ije = () => Q(QX), aje = () => {
- var e = ije(), t = Q(TQ), n = Q(wQ);
- return CU(!e || !n ? void 0 : FQ(FQ({}, e), {}, { scale: n }), t);
+var ije = () => Q($X), aje = () => {
+ var e = ije(), t = Q(EQ), n = Q(TQ);
+ return wU(!e || !n ? void 0 : IQ(IQ({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function IQ(e, t) {
+function LQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61997,12 +61997,12 @@ function IQ(e, t) {
}
return n;
}
-function LQ(e) {
+function RQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? IQ(Object(n), !0).forEach(function(t) {
+ t % 2 ? LQ(Object(n), !0).forEach(function(t) {
oje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : IQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62051,13 +62051,13 @@ var lje = (e, t, n, r) => {
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return LQ(LQ(LQ({}, r), tK(r.cx, r.cy, o, a)), {}, {
+ return RQ(RQ(RQ({}, r), nK(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return LQ(LQ(LQ({}, r), tK(r.cx, r.cy, s, c)), {}, {
+ return RQ(RQ(RQ({}, r), nK(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -62080,15 +62080,15 @@ function dje(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 RQ = (e, t, n, r, i) => {
+var zQ = (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 (Zz(c - s) !== Zz(l - c)) {
+ if (Qz(c - s) !== Qz(l - c)) {
var d = [];
- if (Zz(l - c) === Zz(i[1] - i[0])) {
+ if (Qz(l - c) === Qz(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);
@@ -62113,48 +62113,48 @@ var RQ = (e, t, n, r, i) => {
}
}
return -1;
-}, zQ = () => Q(MK), BQ = (e, t) => t, VQ = (e, t, n) => n, HQ = (e, t, n, r) => r, fje = $(TQ, (e) => eV(e, (e) => e.coordinate)), UQ = $([
- uQ,
- BQ,
+}, BQ = () => Q(NK), VQ = (e, t) => t, HQ = (e, t, n) => n, UQ = (e, t, n, r) => r, fje = $(EQ, (e) => tV(e, (e) => e.coordinate)), WQ = $([
+ dQ,
VQ,
- HQ
-], aQ), WQ = $([
- UQ,
- _Q,
- $X,
- xQ
-], oQ), pje = (e, t, n) => {
+ HQ,
+ UQ
+], oQ), GQ = $([
+ WQ,
+ vQ,
+ eZ,
+ SQ
+], sQ), pje = (e, t, n) => {
if (t != null) {
- var r = uQ(e);
+ var r = dQ(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, GQ = $([
- uQ,
- BQ,
+}, KQ = $([
+ dQ,
VQ,
- HQ
-], cQ), KQ = $([
- EU,
- DU,
- $U,
- NU,
- TQ,
HQ,
- GQ
-], sQ), mje = $([UQ, KQ], (e, t) => e.coordinate ?? t), qQ = $([TQ, WQ], YZ), hje = $([
+ UQ
+], lQ), qQ = $([
+ DU,
+ OU,
+ eW,
+ PU,
+ EQ,
+ UQ,
+ KQ
+], cQ), mje = $([WQ, qQ], (e, t) => e.coordinate ?? t), JQ = $([EQ, GQ], XZ), hje = $([
+ KQ,
GQ,
- WQ,
- uK,
- $X,
- qQ,
- lQ,
- BQ
-], mQ), gje = $([UQ, WQ], (e, t) => ({
+ dK,
+ eZ,
+ JQ,
+ uQ,
+ VQ
+], hQ), gje = $([WQ, GQ], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
})), _je = (e, t, n, r, i, a, o) => {
if (!(!e || !n || !r || !i) && dje(e, o)) {
- var s = RQ(HCe(e, t), a, i, n, r), c = lje(t, i, s, e);
+ var s = zQ(HCe(e, t), a, i, n, r), c = lje(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
@@ -62164,7 +62164,7 @@ var RQ = (e, t, n, r, i) => {
if (!(!e || !r || !i || !a || !n)) {
var s = MEe(e, n);
if (s) {
- var c = RQ(UCe(s, t), o, a, r, i), l = uje(t, a, c, s);
+ var c = zQ(UCe(s, t), o, a, r, i), l = uje(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
@@ -62179,12 +62179,12 @@ var RQ = (e, t, n, r, i) => {
if (r != null) return n ? r.panoramaElement : r.element;
}
}), xje = $((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(IK));
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(LK));
return Array.from(new Set(t)).sort((e, t) => e - t);
}, { memoizeOptions: { resultEqualityCheck: $Ee } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function JQ(e, t) {
+function YQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62194,12 +62194,12 @@ function JQ(e, t) {
}
return n;
}
-function YQ(e) {
+function XQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? JQ(Object(n), !0).forEach(function(t) {
+ t % 2 ? YQ(Object(n), !0).forEach(function(t) {
Sje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JQ(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62227,15 +62227,15 @@ function wje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Tje = { zIndexMap: Object.values(IK).reduce((e, t) => YQ(YQ({}, e), {}, { [t]: {
+var Tje = { zIndexMap: Object.values(LK).reduce((e, t) => XQ(XQ({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, Eje = new Set(Object.values(IK));
+} }), {}) }, Eje = new Set(Object.values(LK));
function Dje(e) {
return Eje.has(e);
}
-var XQ = NH({
+var ZQ = PH({
name: "zIndex",
initialState: Tje,
reducers: {
@@ -62248,61 +62248,61 @@ var XQ = NH({
panoramaElement: void 0
};
},
- prepare: kH()
+ prepare: AH()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !Dje(n) && delete e.zIndexMap[n]);
},
- prepare: kH()
+ prepare: AH()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = WW(r) : e.zIndexMap[n].element = WW(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = GW(r) : e.zIndexMap[n].element = GW(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : WW(r),
- panoramaElement: i ? WW(r) : void 0
+ element: i ? void 0 : GW(r),
+ panoramaElement: i ? GW(r) : void 0
};
},
- prepare: kH()
+ prepare: AH()
},
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: kH()
+ prepare: AH()
}
}
-}), { registerZIndexPortal: Oje, unregisterZIndexPortal: kje, registerZIndexPortalElement: Aje, unregisterZIndexPortalElement: jje } = XQ.actions, Mje = XQ.reducer;
+}), { registerZIndexPortal: Oje, unregisterZIndexPortal: kje, registerZIndexPortalElement: Aje, unregisterZIndexPortalElement: jje } = ZQ.actions, Mje = ZQ.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function ZQ(e) {
- var { zIndex: t, children: n } = e, r = vwe() && t !== void 0 && t !== 0, i = FU(), a = KB();
+function QQ(e) {
+ var { zIndex: t, children: n } = e, r = vwe() && t !== void 0 && t !== 0, i = IU(), a = qB();
(0, R.useLayoutEffect)(() => r ? (a(Oje({ zIndex: t })), () => {
a(kje({ zIndex: t }));
- }) : lB, [
+ }) : uB, [
a,
t,
r
]);
var o = Q((e) => bje(e, t, i));
- return r ? o ? /*#__PURE__*/ (0, np.createPortal)(n, o) : null : n;
+ return r ? o ? /*#__PURE__*/ (0, rp.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function QQ() {
- return QQ = Object.assign ? Object.assign.bind() : function(e) {
+function $Q() {
+ return $Q = 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;
- }, QQ.apply(null, arguments);
+ }, $Q.apply(null, arguments);
}
-function $Q(e, t) {
+function e$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62312,12 +62312,12 @@ function $Q(e, t) {
}
return n;
}
-function e$(e) {
+function t$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $Q(Object(n), !0).forEach(function(t) {
+ t % 2 ? e$(Object(n), !0).forEach(function(t) {
Nje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $Q(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62353,10 +62353,10 @@ function Lje(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 = ITe, h = IK.cursorLine;
- else if (l === "BarChart") p = LTe(o, u, i, a), m = XG, h = IK.cursorRectangle;
- else if (o === "radial" && hB(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = nK(u);
+ if (l === "ScatterChart") p = u, m = ITe, h = LK.cursorLine;
+ else if (l === "BarChart") p = LTe(o, u, i, a), m = ZG, h = LK.cursorRectangle;
+ else if (o === "radial" && gB(u)) {
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = rK(u);
p = {
cx: g,
cy: _,
@@ -62364,25 +62364,25 @@ function Lje(e) {
endAngle: b,
innerRadius: v,
outerRadius: v
- }, m = sK, h = IK.cursorLine;
- } else p = { points: UEe(o, u, i) }, m = CG, h = IK.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = e$(e$(e$(e$({
+ }, m = cK, h = LK.cursorLine;
+ } else p = { points: UEe(o, u, i) }, m = wG, h = LK.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = t$(t$(t$(t$({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), WR(s)), {}, {
+ }, i), p), GR(s)), {}, {
payload: d,
payloadIndex: f,
- className: xh("recharts-tooltip-cursor", x)
+ className: Sh("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(Ije, {
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(Ije, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
function Rje(e) {
- var t = aje(), n = XU(), r = eW(), i = zQ();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(Lje, QQ({}, e, {
+ var t = aje(), n = ZU(), r = tW(), i = BQ();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(Lje, $Q({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -62391,7 +62391,7 @@ function Rje(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var t$ = /*#__PURE__*/ (0, R.createContext)(null), zje = () => (0, R.useContext)(t$), Bje = (/* @__PURE__ */ Et((/* @__PURE__ */ St(((e, t) => {
+var n$ = /*#__PURE__*/ (0, R.createContext)(null), zje = () => (0, R.useContext)(n$), Bje = (/* @__PURE__ */ Dt((/* @__PURE__ */ Ct(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -62478,12 +62478,12 @@ var t$ = /*#__PURE__*/ (0, R.createContext)(null), zje = () => (0, R.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, n$ = new Bje(), r$ = "recharts.syncEvent.tooltip", i$ = "recharts.syncEvent.brush", a$ = (e, t) => {
+})))(), 1)).default, r$ = new Bje(), i$ = "recharts.syncEvent.tooltip", a$ = "recharts.syncEvent.brush", o$ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!Qz(n)) return e[n];
+ if (!$z(n)) return e[n];
}
-}, o$ = NH({
+}, s$ = PH({
name: "options",
initialState: {
chartName: "",
@@ -62494,13 +62494,13 @@ var t$ = /*#__PURE__*/ (0, R.createContext)(null), zje = () => (0, R.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), Vje = o$.reducer, { createEventEmitter: Hje } = o$.actions;
+}), Vje = s$.reducer, { createEventEmitter: Hje } = s$.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
function Uje(e) {
return e.tooltip.syncInteraction;
}
-var s$ = NH({
+var c$ = PH({
name: "chartData",
initialState: {
chartData: void 0,
@@ -62510,7 +62510,7 @@ var s$ = NH({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = WW(t.payload), t.payload == null) {
+ if (e.chartData = GW(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -62524,8 +62524,8 @@ var s$ = NH({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: c$, setDataStartEndIndexes: Wje, setComputedData: Gje } = s$.actions, Kje = s$.reducer, qje = ["x", "y"];
-function l$(e, t) {
+}), { setChartData: l$, setDataStartEndIndexes: Wje, setComputedData: Gje } = c$.actions, Kje = c$.reducer, qje = ["x", "y"];
+function u$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62535,12 +62535,12 @@ function l$(e, t) {
}
return n;
}
-function u$(e) {
+function d$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? l$(Object(n), !0).forEach(function(t) {
+ t % 2 ? u$(Object(n), !0).forEach(function(t) {
Jje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62587,19 +62587,19 @@ function Qje(e, t) {
return n;
}
function $je() {
- var e = Q(NK), t = Q(FK), n = KB(), r = Q(PK), i = Q(TQ), a = eW(), o = YU(), s = Q((e) => e.rootProps.className);
+ var e = Q(PK), t = Q(IK), n = qB(), r = Q(FK), i = Q(EQ), a = tW(), o = XU(), s = Q((e) => e.rootProps.className);
(0, R.useEffect)(() => {
- if (e == null) return lB;
+ if (e == null) return uB;
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 = Zje(d, qje), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = u$(u$({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = Zje(d, qje), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = d$(d$({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(u$(u$({}, c), {}, { payload: u$(u$({}, c.payload), {}, { coordinate: y }) }));
+ n(d$(d$({}, c), {}, { payload: d$(d$({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -62615,7 +62615,7 @@ function $je() {
})] : 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(tQ({
+ n(nQ({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -62630,7 +62630,7 @@ function $je() {
x: a === "horizontal" ? b.coordinate : w,
y: a === "horizontal" ? T : b.coordinate
};
- n(tQ({
+ n(nQ({
active: c.payload.active,
coordinate: E,
dataKey: c.payload.dataKey,
@@ -62642,8 +62642,8 @@ function $je() {
}
}
};
- return n$.on(r$, s), () => {
- n$.off(r$, s);
+ return r$.on(i$, s), () => {
+ r$.off(i$, s);
};
}, [
s,
@@ -62657,14 +62657,14 @@ function $je() {
]);
}
function eMe() {
- var e = Q(NK), t = Q(FK), n = KB();
+ var e = Q(PK), t = Q(IK), n = qB();
(0, R.useEffect)(() => {
- if (e == null) return lB;
+ if (e == null) return uB;
var r = (r, i, a) => {
t !== a && e === r && n(Wje(i));
};
- return n$.on(i$, r), () => {
- n$.off(i$, r);
+ return r$.on(a$, r), () => {
+ r$.off(a$, r);
};
}, [
n,
@@ -62673,16 +62673,16 @@ function eMe() {
]);
}
function tMe() {
- var e = KB();
+ var e = qB();
(0, R.useEffect)(() => {
e(Hje());
}, [e]), $je(), eMe();
}
function nMe(e, t, n, r, i, a) {
- var o = Q((n) => pje(n, e, t)), s = Q(ZAe), c = Q(FK), l = Q(NK), u = Q(PK), d = Q(Uje)?.active, f = YU();
+ var o = Q((n) => pje(n, e, t)), s = Q(ZAe), c = Q(IK), l = Q(PK), u = Q(FK), d = Q(Uje)?.active, f = XU();
(0, R.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = tQ({
+ var e = nQ({
active: a,
coordinate: n,
dataKey: o,
@@ -62691,7 +62691,7 @@ function nMe(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- n$.emit(r$, l, e, c);
+ r$.emit(i$, l, e, c);
}
}, [
d,
@@ -62709,7 +62709,7 @@ function nMe(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function d$(e, t) {
+function f$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62719,12 +62719,12 @@ function d$(e, t) {
}
return n;
}
-function f$(e) {
+function p$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? d$(Object(n), !0).forEach(function(t) {
+ t % 2 ? f$(Object(n), !0).forEach(function(t) {
rMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62758,7 +62758,7 @@ function oMe(e) {
function sMe(e, t) {
return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(fTe, t);
}
-var p$ = [], cMe = {
+var m$ = [], cMe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -62785,7 +62785,7 @@ var p$ = [], cMe = {
wrapperStyle: {}
};
function lMe(e) {
- var t = yB(e, cMe), { 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 = KB(), S = typeof v == "number" ? String(v) : v;
+ var t = bB(e, cMe), { 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 = qB(), S = typeof v == "number" ? String(v) : v;
(0, R.useEffect)(() => {
x(CAe({
shared: g,
@@ -62802,13 +62802,13 @@ function lMe(e) {
n,
S
]);
- var C = YU(), w = pG(), T = vAe(g), { activeIndex: E, isActive: D } = Q((e) => gje(e, T, _, S)) ?? {}, O = Q((e) => hje(e, T, _, S)), k = Q((e) => qQ(e, T, _, S)), A = Q((e) => mje(e, T, _, S)), j = O, M = zje(), N = n ?? D ?? !1, [ee, te] = rV([j, N]), P = T === "axis" ? k : void 0;
+ var C = XU(), w = mG(), T = vAe(g), { activeIndex: E, isActive: D } = Q((e) => gje(e, T, _, S)) ?? {}, O = Q((e) => hje(e, T, _, S)), k = Q((e) => JQ(e, T, _, S)), A = Q((e) => mje(e, T, _, S)), j = O, M = zje(), N = n ?? D ?? !1, [ee, te] = iV([j, N]), P = T === "axis" ? k : void 0;
nMe(T, _, A, P, E, N);
var F = y ?? M;
if (F == null || C == null || T == null) return null;
- var ne = j ?? p$;
- N || (ne = p$), s && ne.length && (ne = WB(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, oMe));
- var re = ne.length > 0, ie = f$(f$({}, t), {}, {
+ var ne = j ?? m$;
+ N || (ne = m$), s && ne.length && (ne = GB(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, oMe));
+ var re = ne.length > 0, ie = p$(p$({}, t), {}, {
payload: ne,
label: P,
active: N,
@@ -62833,7 +62833,7 @@ function lMe(e) {
innerRef: te,
hasPortalFromProps: !!y
}, sMe(o, ie));
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, np.createPortal)(ae, F), N && /*#__PURE__*/ R.createElement(Rje, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, rp.createPortal)(ae, F), N && /*#__PURE__*/ R.createElement(Rje, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -62843,8 +62843,8 @@ function lMe(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var m$ = (e) => null;
-m$.displayName = "Cell";
+var h$ = (e) => null;
+h$.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
function uMe(e, t, n) {
@@ -62894,7 +62894,7 @@ var pMe = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function h$(e, t) {
+function g$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62907,9 +62907,9 @@ function h$(e, t) {
function mMe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h$(Object(n), !0).forEach(function(t) {
+ t % 2 ? g$(Object(n), !0).forEach(function(t) {
hMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -62937,10 +62937,10 @@ function _Me(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var g$ = mMe({}, {
+var _$ = mMe({}, {
cacheSize: 2e3,
enableCache: !0
-}), _$ = new pMe(g$.cacheSize), vMe = {
+}), v$ = new pMe(_$.cacheSize), vMe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -62948,14 +62948,14 @@ var g$ = mMe({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, v$ = "recharts_measurement_span";
+}, y$ = "recharts_measurement_span";
function yMe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var y$ = (e, t) => {
+var b$ = (e, t) => {
try {
- var n = document.getElementById(v$);
- n || (n = document.createElement("span"), n.setAttribute("id", v$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, vMe, t), n.textContent = `${e}`;
+ var n = document.getElementById(y$);
+ n || (n = document.createElement("span"), n.setAttribute("id", y$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, vMe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -62967,18 +62967,18 @@ var y$ = (e, t) => {
height: 0
};
}
-}, b$ = function(e) {
+}, x$ = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || lG.isSsr) return {
+ if (e == null || uG.isSsr) return {
width: 0,
height: 0
};
- if (!g$.enableCache) return y$(e, t);
- var n = yMe(e, t), r = _$.get(n);
+ if (!_$.enableCache) return b$(e, t);
+ var n = yMe(e, t), r = v$.get(n);
if (r) return r;
- var i = y$(e, t);
- return _$.set(n, i), i;
-}, x$;
+ var i = b$(e, t);
+ return v$.set(n, i), i;
+}, S$;
function bMe(e, t, n) {
return (t = xMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
@@ -63001,7 +63001,7 @@ function SMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var S$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, CMe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, wMe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, TMe = {
+var C$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, w$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, CMe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, wMe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, TMe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -63021,17 +63021,17 @@ var S$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C$ = /(
function DMe(e) {
return EMe.includes(e);
}
-var w$ = "NaN";
+var T$ = "NaN";
function OMe(e, t) {
return e * TMe[t];
}
-var T$ = class e {
+var E$ = class e {
static parse(t) {
var [, n, r] = wMe.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, Qz(e) && (this.unit = ""), t !== "" && !CMe.test(t) && (this.num = NaN, this.unit = ""), DMe(t) && (this.num = OMe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, $z(e) && (this.unit = ""), t !== "" && !CMe.test(t) && (this.num = NaN, this.unit = ""), DMe(t) && (this.num = OMe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -63049,46 +63049,46 @@ var T$ = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return Qz(this.num);
+ return $z(this.num);
}
};
-x$ = T$, bMe(T$, "NaN", new x$(NaN, ""));
-function E$(e) {
- if (e == null || e.includes(w$)) return w$;
+S$ = E$, bMe(E$, "NaN", new S$(NaN, ""));
+function D$(e) {
+ if (e == null || e.includes(T$)) return T$;
for (var t = e; t.includes("*") || t.includes("/");) {
- var [, n, r, i] = S$.exec(t) ?? [], a = T$.parse(n ?? ""), o = T$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
- if (s.isNaN()) return w$;
- t = t.replace(S$, s.toString());
+ var [, n, r, i] = C$.exec(t) ?? [], a = E$.parse(n ?? ""), o = E$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
+ if (s.isNaN()) return T$;
+ t = t.replace(C$, s.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var [, c, l, u] = C$.exec(t) ?? [], d = T$.parse(c ?? ""), f = T$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
- if (p.isNaN()) return w$;
- t = t.replace(C$, p.toString());
+ var [, c, l, u] = w$.exec(t) ?? [], d = E$.parse(c ?? ""), f = E$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
+ if (p.isNaN()) return T$;
+ t = t.replace(w$, p.toString());
}
return t;
}
-var D$ = /\(([^()]*)\)/;
+var O$ = /\(([^()]*)\)/;
function kMe(e) {
- for (var t = e, n; (n = D$.exec(t)) != null;) {
+ for (var t = e, n; (n = O$.exec(t)) != null;) {
var [, r] = n;
- t = t.replace(D$, E$(r));
+ t = t.replace(O$, D$(r));
}
return t;
}
function AMe(e) {
var t = e.replace(/\s+/g, "");
- return t = kMe(t), t = E$(t), t;
+ return t = kMe(t), t = D$(t), t;
}
function jMe(e) {
try {
return AMe(e);
} catch {
- return w$;
+ return T$;
}
}
-function O$(e) {
+function k$(e) {
var t = jMe(e.slice(5, -1));
- return t === w$ ? "" : t;
+ return t === T$ ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
@@ -63108,16 +63108,16 @@ var MMe = [
"className",
"breakAll"
];
-function k$() {
- return k$ = Object.assign ? Object.assign.bind() : function(e) {
+function A$() {
+ return A$ = 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;
- }, k$.apply(null, arguments);
+ }, A$.apply(null, arguments);
}
-function A$(e, t) {
+function j$(e, t) {
if (e == null) return {};
var n, r, i = PMe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -63135,28 +63135,28 @@ function PMe(e, t) {
}
return n;
}
-var j$ = /[ \f\n\r\t\v\u2028\u2029]+/, M$ = (e) => {
+var M$ = /[ \f\n\r\t\v\u2028\u2029]+/, N$ = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return oB(t) || (i = n ? t.toString().split("") : t.toString().split(j$)), {
+ return sB(t) || (i = n ? t.toString().split("") : t.toString().split(M$)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: b$(e, r).width
+ width: x$(e, r).width
})),
- spaceWidth: n ? 0 : b$("\xA0", r).width
+ spaceWidth: n ? 0 : x$("\xA0", r).width
};
} catch {
return null;
}
};
-function N$(e) {
+function P$(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
function FMe(e) {
- return oB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+ return sB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var P$ = (e, t, n, r) => e.reduce((e, i) => {
+var F$ = (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 {
@@ -63167,20 +63167,20 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), F$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), IMe = "…", I$ = (e, t, n, r, i, a, o, s) => {
- var c = M$({
+}, []), I$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), IMe = "…", L$ = (e, t, n, r, i, a, o, s) => {
+ var c = N$({
breakAll: n,
style: r,
children: e.slice(0, t) + IMe
});
if (!c) return [!1, []];
- var l = P$(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || F$(l).width > Number(a), l];
+ var l = F$(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || I$(l).width > Number(a), l];
}, LMe = (e, t, n, r, i) => {
- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = P$(t, r, n, i);
- if (!l || i || !(d.length > a || F$(d).width > Number(r))) return d;
+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = F$(t, r, n, i);
+ if (!l || i || !(d.length > a || I$(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] = I$(u, g - 1, c, s, a, r, n, i), [y] = I$(u, g, c, s, a, r, n, i);
+ var g = Math.floor((f + p) / 2), [_, v] = L$(u, g - 1, c, s, a, r, n, i), [y] = L$(u, g, c, s, a, r, n, i);
if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {
h = v;
break;
@@ -63188,13 +63188,13 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, L$ = (e) => [{
- words: oB(e) ? [] : e.toString().split(j$),
+}, R$ = (e) => [{
+ words: sB(e) ? [] : e.toString().split(M$),
width: void 0
}], RMe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !lG.isSsr) {
- var s, c, l = M$({
+ if ((t || n) && !uG.isSsr) {
+ var s, c, l = N$({
breakAll: a,
children: r,
style: i
@@ -63202,7 +63202,7 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
- } else return L$(r);
+ } else return R$(r);
return LMe({
breakAll: a,
children: r,
@@ -63210,20 +63210,20 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
style: i
}, s, c, t, !!n);
}
- return L$(r);
-}, R$ = "#808080", zMe = {
+ return R$(r);
+}, z$ = "#808080", zMe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: R$,
+ fill: z$,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, z$ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = yB(e, zMe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = A$(n, MMe), f = (0, R.useMemo)(() => RMe({
+}, B$ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = bB(e, zMe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = j$(n, MMe), f = (0, R.useMemo)(() => RMe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -63237,32 +63237,32 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = A$(d, NMe);
- if (!eB(r) || !eB(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = j$(d, NMe);
+ if (!tB(r) || !tB(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!cU(y) || !cU(b)) return null;
+ if (!lU(y) || !lU(b)) return null;
var x;
switch (u) {
case "start":
- x = O$(`calc(${o})`);
+ x = k$(`calc(${o})`);
break;
case "middle":
- x = O$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ x = k$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: x = O$(`calc(${f.length - 1} * -${a})`);
+ default: x = k$(`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__*/ R.createElement("text", k$({}, GR(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", A$({}, KR(v), {
ref: t,
x: y,
y: b,
- className: xh("recharts-text", g),
+ className: Sh("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? R$ : s
+ fill: s.includes("url") ? z$ : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ R.createElement("tspan", {
@@ -63272,10 +63272,10 @@ var P$ = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-z$.displayName = "Text";
+B$.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function B$(e, t) {
+function V$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63285,12 +63285,12 @@ function B$(e, t) {
}
return n;
}
-function V$(e) {
+function H$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? B$(Object(n), !0).forEach(function(t) {
+ t % 2 ? V$(Object(n), !0).forEach(function(t) {
BMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -63319,7 +63319,7 @@ function HMe(e, t) {
return (t === "string" ? String : Number)(e);
}
var UMe = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = JU(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = YU(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,
@@ -63360,59 +63360,59 @@ var UMe = (e) => {
width: m,
height: c
} : {};
- return n === "insideLeft" ? V$({
+ return n === "insideLeft" ? H$({
x: p + x,
y: s + c / 2,
horizontalAnchor: C,
verticalAnchor: "middle"
- }, k) : n === "insideRight" ? V$({
+ }, k) : n === "insideRight" ? H$({
x: p + m - x,
y: s + c / 2,
horizontalAnchor: S,
verticalAnchor: "middle"
- }, k) : n === "insideTop" ? V$({
+ }, k) : n === "insideTop" ? H$({
x: d + l / 2,
y: s + _,
horizontalAnchor: "middle",
verticalAnchor: y
- }, k) : n === "insideBottom" ? V$({
+ }, k) : n === "insideBottom" ? H$({
x: f + u / 2,
y: s + c - _,
horizontalAnchor: "middle",
verticalAnchor: v
- }, k) : n === "insideTopLeft" ? V$({
+ }, k) : n === "insideTopLeft" ? H$({
x: d + x,
y: s + _,
horizontalAnchor: C,
verticalAnchor: y
- }, k) : n === "insideTopRight" ? V$({
+ }, k) : n === "insideTopRight" ? H$({
x: d + l - x,
y: s + _,
horizontalAnchor: S,
verticalAnchor: y
- }, k) : n === "insideBottomLeft" ? V$({
+ }, k) : n === "insideBottomLeft" ? H$({
x: f + x,
y: s + c - _,
horizontalAnchor: C,
verticalAnchor: v
- }, k) : n === "insideBottomRight" ? V$({
+ }, k) : n === "insideBottomRight" ? H$({
x: f + u - x,
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || $z(n.x)) && (Z(n.y) || $z(n.y)) ? V$({
- x: o + nB(n.x, m),
- y: s + nB(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || eB(n.x)) && (Z(n.y) || eB(n.y)) ? H$({
+ x: o + rB(n.x, m),
+ y: s + rB(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, k) : V$({
+ }, k) : H$({
x: h,
y: s + c / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
}, WMe = ["labelRef"], GMe = ["content"];
-function H$(e, t) {
+function U$(e, t) {
if (e == null) return {};
var n, r, i = KMe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -63430,7 +63430,7 @@ function KMe(e, t) {
}
return n;
}
-function U$(e, t) {
+function W$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63440,12 +63440,12 @@ function U$(e, t) {
}
return n;
}
-function W$(e) {
+function G$(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) {
+ t % 2 ? W$(Object(n), !0).forEach(function(t) {
qMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U$(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -63473,16 +63473,16 @@ function YMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function G$() {
- return G$ = Object.assign ? Object.assign.bind() : function(e) {
+function K$() {
+ return K$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, G$.apply(null, arguments);
+ }, K$.apply(null, arguments);
}
-var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
+var q$ = /*#__PURE__*/ (0, R.createContext)(null), J$ = (e) => {
var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, R.useMemo)(() => ({
x: t,
y: n,
@@ -63498,11 +63498,11 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
a,
o
]);
- return /*#__PURE__*/ R.createElement(K$.Provider, { value: c }, s);
-}, J$ = () => {
- var e = (0, R.useContext)(K$), t = YU();
- return e || (t ? JU(t) : void 0);
-}, Y$ = /*#__PURE__*/ (0, R.createContext)(null), XMe = (e) => {
+ return /*#__PURE__*/ R.createElement(q$.Provider, { value: c }, s);
+}, Y$ = () => {
+ var e = (0, R.useContext)(q$), t = XU();
+ return e || (t ? YU(t) : void 0);
+}, X$ = /*#__PURE__*/ (0, R.createContext)(null), XMe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, R.useMemo)(() => ({
cx: t,
cy: n,
@@ -63520,14 +63520,14 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
o,
s
]);
- return /*#__PURE__*/ R.createElement(Y$.Provider, { value: l }, c);
-}, X$ = () => {
- var e = (0, R.useContext)(Y$), t = Q($K);
+ return /*#__PURE__*/ R.createElement(X$.Provider, { value: l }, c);
+}, Z$ = () => {
+ var e = (0, R.useContext)(X$), t = Q(eq);
return e || t;
}, ZMe = (e) => {
- var { value: t, formatter: n } = e, r = oB(e.children) ? t : e.children;
+ var { value: t, formatter: n } = e, r = sB(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, Z$ = (e) => e != null && typeof e == "function", QMe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 360), $Me = (e, t, n, r, i) => {
+}, Q$ = (e) => e != null && typeof e == "function", QMe = (e, t) => Qz(t - e) * Math.min(Math.abs(t - e), 360), $Me = (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 = QMe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
@@ -63542,12 +63542,12 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = tK(s, c, m, _), b = tK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = nK(s, c, m, _), b = nK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = oB(e.id) ? tB("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ R.createElement("text", G$({}, r, {
+ ${b.x},${b.y}`, S = sB(e.id) ? nB("recharts-radial-line-") : e.id;
+ return /*#__PURE__*/ R.createElement("text", K$({}, r, {
dominantBaseline: "central",
- className: xh("recharts-radial-bar-label", o)
+ className: Sh("recharts-radial-bar-label", o)
}), /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("path", {
id: S,
d: x
@@ -63555,7 +63555,7 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
}, eNe = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
- var { x: u, y: d } = tK(r, i, o + t, l);
+ var { x: u, y: d } = nK(r, i, o + t, l);
return {
x: u,
y: d,
@@ -63581,22 +63581,22 @@ var K$ = /*#__PURE__*/ (0, R.createContext)(null), q$ = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = tK(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = nK(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, Q$ = (e) => e != null && "cx" in e && Z(e.cx), tNe = {
+}, $$ = (e) => e != null && "cx" in e && Z(e.cx), tNe = {
angle: 0,
offset: 5,
- zIndex: IK.label,
+ zIndex: LK.label,
position: "middle",
textBreakAll: !1
};
function nNe(e) {
- if (!Q$(e)) return e;
+ if (!$$(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
x: t - r,
@@ -63607,20 +63607,20 @@ function nNe(e) {
height: i
};
}
-function $$(e) {
- var t = yB(e, tNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = X$(), f = J$(), p = n == null ? i === "center" ? f : d ?? f : Q$(n) ? n : JU(n), m, h, g = nNe(p);
- if (!p || oB(a) && oB(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
- var _ = W$(W$({}, t), {}, { viewBox: p });
+function e1(e) {
+ var t = bB(e, tNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = Z$(), f = Y$(), p = n == null ? i === "center" ? f : d ?? f : $$(n) ? n : YU(n), m, h, g = nNe(p);
+ if (!p || sB(a) && sB(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
+ var _ = G$(G$({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, R.isValidElement)(s)) {
- var { labelRef: v } = _, y = H$(_, WMe);
+ var { labelRef: v } = _, y = U$(_, WMe);
return /*#__PURE__*/ (0, R.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = H$(_, GMe);
+ var { content: b } = _, x = U$(_, GMe);
if (m = /*#__PURE__*/ (0, R.createElement)(s, x), /*#__PURE__*/ (0, R.isValidElement)(m)) return m;
} else m = ZMe(t);
- var S = GR(t);
- if (Q$(p)) {
+ var S = KR(t);
+ if ($$(p)) {
if (i === "insideStart" || i === "insideEnd" || i === "end") return $Me(t, i, m, S, p);
h = eNe(p, t.offset, t.position);
} else {
@@ -63629,49 +63629,49 @@ function $$(e) {
viewBox: g,
position: i,
offset: t.offset,
- parentViewBox: Q$(r) ? void 0 : r,
+ parentViewBox: $$(r) ? void 0 : r,
clamp: !0
});
- h = W$(W$({
+ h = G$(G$({
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__*/ R.createElement(ZQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(z$, G$({
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(B$, K$({
ref: u,
- className: xh("recharts-label", c)
+ className: Sh("recharts-label", c)
}, S, h, {
- textAnchor: N$(S.textAnchor) ? S.textAnchor : h.textAnchor,
+ textAnchor: P$(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
}), m));
}
-$$.displayName = "Label";
-var e1 = (e, t, n) => {
+e1.displayName = "Label";
+var t1 = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ R.createElement($$, G$({ key: "label-implicit" }, r)) : eB(e) ? /*#__PURE__*/ R.createElement($$, G$({
+ return e === !0 ? /*#__PURE__*/ R.createElement(e1, K$({ key: "label-implicit" }, r)) : tB(e) ? /*#__PURE__*/ R.createElement(e1, K$({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === $$ ? /*#__PURE__*/ (0, R.cloneElement)(e, W$({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement($$, G$({
+ }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === e1 ? /*#__PURE__*/ (0, R.cloneElement)(e, G$({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement(e1, K$({
key: "label-implicit",
content: e
- }, r)) : Z$(e) ? /*#__PURE__*/ R.createElement($$, G$({
+ }, r)) : Q$(e) ? /*#__PURE__*/ R.createElement(e1, K$({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement($$, G$({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement(e1, K$({}, e, { key: "label-implicit" }, r)) : null;
};
-function t1(e) {
+function n1(e) {
var { label: t, labelRef: n } = e;
- return e1(t, J$(), n) || null;
+ return t1(t, Y$(), n) || null;
}
function rNe(e) {
var { label: t } = e;
- return e1(t, X$()) || null;
+ return t1(t, Z$()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
@@ -63682,16 +63682,16 @@ var iNe = ["valueAccessor"], aNe = [
"textBreakAll",
"zIndex"
];
-function n1() {
- return n1 = Object.assign ? Object.assign.bind() : function(e) {
+function r1() {
+ return r1 = 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;
- }, n1.apply(null, arguments);
+ }, r1.apply(null, arguments);
}
-function r1(e, t) {
+function i1(e, t) {
if (e == null) return {};
var n, r, i = oNe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -63712,18 +63712,18 @@ function oNe(e, t) {
var sNe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
if (FMe(t)) return t;
-}, i1 = /*#__PURE__*/ (0, R.createContext)(void 0), a1 = i1.Provider, o1 = /*#__PURE__*/ (0, R.createContext)(void 0), cNe = o1.Provider;
+}, a1 = /*#__PURE__*/ (0, R.createContext)(void 0), o1 = a1.Provider, s1 = /*#__PURE__*/ (0, R.createContext)(void 0), cNe = s1.Provider;
function lNe() {
- return (0, R.useContext)(i1);
+ return (0, R.useContext)(a1);
}
function uNe() {
- return (0, R.useContext)(o1);
+ return (0, R.useContext)(s1);
}
-function s1(e) {
- var { valueAccessor: t = sNe } = e, n = r1(e, iNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = r1(n, aNe), l = lNe(), u = uNe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: s ?? IK.label }, /*#__PURE__*/ R.createElement(YR, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = oB(r) ? t(e, i) : fU(e.payload, r), l = oB(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ R.createElement($$, n1({ key: `label-${i}` }, GR(e), c, l, {
+function c1(e) {
+ var { valueAccessor: t = sNe } = e, n = i1(e, iNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = i1(n, aNe), l = lNe(), u = uNe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: s ?? LK.label }, /*#__PURE__*/ R.createElement(XR, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = sB(r) ? t(e, i) : pU(e.payload, r), l = sB(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ R.createElement(e1, r1({ key: `label-${i}` }, KR(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -63734,13 +63734,13 @@ function s1(e) {
}));
})));
}
-s1.displayName = "LabelList";
-function c1(e) {
+c1.displayName = "LabelList";
+function l1(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ R.createElement(s1, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || Z$(t) ? /*#__PURE__*/ R.createElement(s1, {
+ return t ? t === !0 ? /*#__PURE__*/ R.createElement(c1, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || Q$(t) ? /*#__PURE__*/ R.createElement(c1, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(s1, n1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(c1, r1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
@@ -63750,14 +63750,14 @@ var dNe = [
"baseLinePoints",
"connectNulls"
], fNe;
-function l1() {
- return l1 = Object.assign ? Object.assign.bind() : function(e) {
+function u1() {
+ return u1 = 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);
+ }, u1.apply(null, arguments);
}
function pNe(e, t) {
if (e == null) return {};
@@ -63780,20 +63780,20 @@ function mNe(e, t) {
function hNe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var u1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gNe = function() {
+var d1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gNe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- u1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ d1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- u1(n) && r && r.push(n);
+ d1(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, d1 = (e, t) => {
+}, f1 = (e, t) => {
var n = gNe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => Xz(fNe ||= hNe([
+ var r = n.map((e) => e.reduce((e, t, n) => Zz(fNe ||= hNe([
"",
"",
"",
@@ -63802,28 +63802,28 @@ var u1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gNe = function() {
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
}, _Ne = (e, t, n) => {
- var r = d1(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${d1(Array.from(t).reverse(), n).slice(1)}`;
-}, f1 = (e) => {
+ var r = f1(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${f1(Array.from(t).reverse(), n).slice(1)}`;
+}, p1 = (e) => {
var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = pNe(e, dNe);
if (!t || !t.length) return null;
- var o = xh("recharts-polygon", n);
+ var o = Sh("recharts-polygon", n);
if (r && r.length) {
var s = a.stroke && a.stroke !== "none", c = _Ne(t, r, i);
- return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", l1({}, GR(a), {
+ return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ R.createElement("path", l1({}, GR(a), {
+ })), s ? /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
fill: "none",
- d: d1(t, i)
- })) : null, s ? /*#__PURE__*/ R.createElement("path", l1({}, GR(a), {
+ d: f1(t, i)
+ })) : null, s ? /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
fill: "none",
- d: d1(r, i)
+ d: f1(r, i)
})) : null);
}
- var l = d1(t, i);
- return /*#__PURE__*/ R.createElement("path", l1({}, GR(a), {
+ var l = f1(t, i);
+ return /*#__PURE__*/ R.createElement("path", u1({}, KR(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -63831,111 +63831,111 @@ var u1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gNe = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function p1() {
- return p1 = Object.assign ? Object.assign.bind() : function(e) {
+function m1() {
+ return m1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, p1.apply(null, arguments);
+ }, m1.apply(null, arguments);
}
-var m1 = (e) => {
- var { cx: t, cy: n, r, className: i } = e, a = xh("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", p1({}, UR(e), gB(e), {
+var h1 = (e) => {
+ var { cx: t, cy: n, r, className: i } = e, a = Sh("recharts-dot", i);
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", m1({}, WR(e), _B(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, h1 = (e) => e.graphicalItems.polarItems, g1 = $([
- h1,
- PX,
- $([eq, tq], LX)
-], zX), _1 = $([$([g1], UX), dK], WX), v1 = $([
- _1,
- PX,
- g1
-], KX);
+}, g1 = (e) => e.graphicalItems.polarItems, _1 = $([
+ g1,
+ FX,
+ $([tq, nq], RX)
+], BX), v1 = $([$([_1], WX), fK], GX), y1 = $([
+ v1,
+ FX,
+ _1
+], qX);
$([
- _1,
- PX,
- g1
+ v1,
+ FX,
+ _1
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: fU(e, t.dataKey ?? n.dataKey),
+ value: pU(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: fU(e, t.dataKey),
+ value: pU(e, t.dataKey),
errorDomain: []
})));
-var y1 = () => void 0, b1 = $([
- PX,
- $U,
- _1,
+var b1 = () => void 0, x1 = $([
+ FX,
+ eW,
v1,
- AK,
- eq,
+ y1,
+ jK,
+ tq,
$([
- PX,
- iZ,
+ FX,
aZ,
- y1,
+ oZ,
+ b1,
$([
+ v1,
+ FX,
_1,
- PX,
- g1,
- oZ,
- eq
- ], cZ),
- y1,
- $U,
- eq
- ], gZ)
-], _Z), x1 = $([
- b1,
+ sZ,
+ tq
+ ], lZ),
+ b1,
+ eW,
+ tq
+ ], _Z)
+], vZ), S1 = $([
+ x1,
+ IX,
+ bZ
+], xZ), vNe = $([bZ, $([
FX,
- yZ
-], bZ), vNe = $([yZ, $([
- PX,
- b1,
x1,
- eq
-], SZ)], uq), S1 = (e, t, n) => {
+ S1,
+ tq
+], CZ)], dq), C1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return GK(e, n);
- case "radiusAxis": return KK(e, n);
+ case "angleAxis": return KK(e, n);
+ case "radiusAxis": return qK(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, C1 = (e, t, n) => {
+}, w1 = (e, t, n) => {
switch (t) {
case "angleAxis": return ZEe(e, n);
case "radiusAxis": return QEe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, w1 = $([$([
- S1,
- yZ,
+}, T1 = $([$([
+ C1,
+ bZ,
vNe,
- C1
-], xX)], lq), T1 = $([
- $U,
- v1,
- FX,
- eq
-], DZ), E1 = $([
- $U,
- S1,
- yZ,
- w1,
- x1,
+ w1
+], SX)], uq), E1 = $([
+ eW,
+ y1,
+ IX,
+ tq
+], OZ), D1 = $([
+ eW,
C1,
- RZ,
+ bZ,
T1,
- eq
-], BZ), yNe = $([E1], (e) => {
+ S1,
+ w1,
+ zZ,
+ E1,
+ tq
+], VZ), yNe = $([D1], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -63944,16 +63944,16 @@ var y1 = () => void 0, b1 = $([
}), Array.from(t.values());
}
}), bNe = $([
- $U,
- S1,
- w1,
+ eW,
C1,
- RZ,
T1,
- eq
-], HZ), xNe = $([(e, t) => E1(e, "angleAxis", t, !1)], (e) => {
+ w1,
+ zZ,
+ E1,
+ tq
+], UZ), xNe = $([(e, t) => D1(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), SNe = $([(e, t) => E1(e, "radiusAxis", t, !1)], (e) => {
+}), SNe = $([(e, t) => D1(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
}), CNe = [
"gridType",
@@ -63986,16 +63986,16 @@ function TNe(e, t) {
}
return n;
}
-function D1() {
- return D1 = Object.assign ? Object.assign.bind() : function(e) {
+function O1() {
+ return O1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, D1.apply(null, arguments);
+ }, O1.apply(null, arguments);
}
-function O1(e, t) {
+function k1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64005,12 +64005,12 @@ function O1(e, t) {
}
return n;
}
-function k1(e) {
+function A1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? O1(Object(n), !0).forEach(function(t) {
+ t % 2 ? k1(Object(n), !0).forEach(function(t) {
ENe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O1(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64041,52 +64041,52 @@ function ONe(e, t) {
var kNe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = tK(t, n, e, r);
+ var o = nK(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
}, ANe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = k1({ stroke: "#ccc" }, UR(e));
+ var s = A1({ stroke: "#ccc" }, WR(e));
return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = tK(t, n, r, e), o = tK(t, n, i, e);
- return /*#__PURE__*/ R.createElement("line", D1({ key: `line-${e}` }, s, {
+ var a = nK(t, n, r, e), o = nK(t, n, i, e);
+ return /*#__PURE__*/ R.createElement("line", O1({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, A1 = (e) => {
- var { cx: t, cy: n, radius: r } = e, i = k1({
+}, j1 = (e) => {
+ var { cx: t, cy: n, radius: r } = e, i = A1({
stroke: "#ccc",
fill: "none"
- }, UR(e));
- return /*#__PURE__*/ R.createElement("circle", D1({}, i, {
- className: xh("recharts-polar-grid-concentric-circle", e.className),
+ }, WR(e));
+ return /*#__PURE__*/ R.createElement("circle", O1({}, i, {
+ className: Sh("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, j1 = (e) => {
- var { radius: t } = e, n = k1({
+}, M1 = (e) => {
+ var { radius: t } = e, n = A1({
stroke: "#ccc",
fill: "none"
- }, UR(e));
- return /*#__PURE__*/ R.createElement("path", D1({}, n, {
- className: xh("recharts-polar-grid-concentric-polygon", e.className),
+ }, WR(e));
+ return /*#__PURE__*/ R.createElement("path", O1({}, n, {
+ className: Sh("recharts-polar-grid-concentric-polygon", e.className),
d: kNe(t, e.cx, e.cy, e.polarAngles)
}));
}, jNe = (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__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(A1, D1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(j1, D1({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(j1, O1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(M1, O1({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ R.createElement(A1, D1({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ R.createElement(j1, O1({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ R.createElement(j1, D1({ key: i }, e, {
+ })) : /*#__PURE__*/ R.createElement(M1, O1({ key: i }, e, {
fill: "none",
radius: t
}));
@@ -64096,11 +64096,11 @@ var kNe = (e, t, n, r) => {
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: IK.grid
-}, M1 = (e) => {
- var t = yB(e, MNe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = wNe(t, CNe), m = Q($K), h = Q((e) => xNe(e, i)), g = Q((e) => SNe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ zIndex: LK.grid
+}, N1 = (e) => {
+ var t = bB(e, MNe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = wNe(t, CNe), m = Q(eq), h = Q((e) => xNe(e, i)), g = Q((e) => SNe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = k1({
+ var y = A1({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -64109,13 +64109,13 @@ var kNe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(jNe, D1({
+ return b <= 0 ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(jNe, O1({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ R.createElement(ANe, D1({
+ })), /*#__PURE__*/ R.createElement(ANe, O1({
gridType: n,
radialLines: r
}, y, {
@@ -64123,19 +64123,19 @@ var kNe = (e, t, n, r) => {
polarRadius: v
}))));
};
-M1.displayName = "PolarGrid";
+N1.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function N1(e) {
+function P1(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function NNe(e, t = wB) {
+function NNe(e, t = TB) {
if (e == null) return;
- let n = N1(e);
+ let n = P1(e);
if (n.length === 0) return;
- let r = HB(t), i, a;
+ let r = UB(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);
@@ -64144,11 +64144,11 @@ function NNe(e, t = wB) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function PNe(e, t = wB) {
+function PNe(e, t = TB) {
if (e == null) return;
- let n = N1(e);
+ let n = P1(e);
if (n.length === 0) return;
- let r = HB(t), i, a;
+ let r = UB(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);
@@ -64157,7 +64157,7 @@ function PNe(e, t = wB) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var P1 = NH({
+var F1 = PH({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -64165,22 +64165,22 @@ var P1 = NH({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = WW(t.payload);
+ e.radiusAxis[t.payload.id] = GW(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = WW(t.payload);
+ e.angleAxis[t.payload.id] = GW(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: FNe, removeRadiusAxis: INe, addAngleAxis: LNe, removeAngleAxis: RNe } = P1.actions, zNe = P1.reducer;
+}), { addRadiusAxis: FNe, removeRadiusAxis: INe, addAngleAxis: LNe, removeAngleAxis: RNe } = F1.actions, zNe = F1.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function F1(e) {
+function I1(e) {
return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
}
//#endregion
@@ -64196,16 +64196,16 @@ var BNe = ["type"], VNe = [
"stroke",
"tick"
];
-function I1() {
- return I1 = Object.assign ? Object.assign.bind() : function(e) {
+function L1() {
+ return L1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, I1.apply(null, arguments);
+ }, L1.apply(null, arguments);
}
-function L1(e, t) {
+function R1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64215,12 +64215,12 @@ function L1(e, t) {
}
return n;
}
-function R1(e) {
+function z1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L1(Object(n), !0).forEach(function(t) {
+ t % 2 ? R1(Object(n), !0).forEach(function(t) {
UNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L1(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64248,7 +64248,7 @@ function GNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function z1(e, t) {
+function B1(e, t) {
if (e == null) return {};
var n, r, i = KNe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -64268,17 +64268,17 @@ function KNe(e, t) {
}
var qNe = "radiusAxis";
function JNe(e) {
- var t = KB(), n = rW(), r = (0, R.useMemo)(() => {
- var { type: t } = e, r = z1(e, BNe), i = BK(n, "radiusAxis", t);
- if (i != null) return R1(R1({}, r), {}, { type: i });
+ var t = qB(), n = iW(), r = (0, R.useMemo)(() => {
+ var { type: t } = e, r = B1(e, BNe), i = VK(n, "radiusAxis", t);
+ if (i != null) return z1(z1({}, r), {}, { type: i });
}, [e, n]);
- return (0, R.useEffect)(() => r == null ? lB : (t(FNe(r)), () => {
+ return (0, R.useEffect)(() => r == null ? uB : (t(FNe(r)), () => {
t(INe(r));
}), [t, r]), null;
}
var YNe = (e, t, n, r) => {
var { coordinate: i } = e;
- return tK(n, r, i, t);
+ return nK(n, r, i, t);
}, XNe = (e) => {
var t;
switch (e) {
@@ -64303,36 +64303,36 @@ var YNe = (e, t, n, r) => {
clockWise: !1
};
}, QNe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = z1(e, VNe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = tK(n, r, s[0], i), l = tK(n, r, s[1], i), u = R1(R1(R1({}, UR(o)), {}, { fill: "none" }, UR(a)), {}, {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = B1(e, VNe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = nK(n, r, s[0], i), l = nK(n, r, s[1], i), u = z1(z1(z1({}, WR(o)), {}, { fill: "none" }, WR(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ R.createElement("line", I1({ className: "recharts-polar-radius-axis-line" }, u));
-}, $Ne = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(z$, I1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), ePe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = z1(e, HNe), s = XNe(e.orientation), c = UR(o), l = WR(a), u = t.map((t, o) => {
- var u = YNe(t, e.angle, e.cx, e.cy), d = R1(R1(R1(R1({
+ return /*#__PURE__*/ R.createElement("line", L1({ className: "recharts-polar-radius-axis-line" }, u));
+}, $Ne = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(B$, L1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), ePe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = B1(e, HNe), s = XNe(e.orientation), c = WR(o), l = GR(a), u = t.map((t, o) => {
+ var u = YNe(t, e.angle, e.cx, e.cy), d = z1(z1(z1(z1({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ R.createElement(YR, I1({
- className: xh("recharts-polar-radius-axis-tick", F1(a)),
+ return /*#__PURE__*/ R.createElement(XR, L1({
+ className: Sh("recharts-polar-radius-axis-tick", I1(a)),
key: `tick-${t.coordinate}`
- }, _B(e, t, o)), $Ne(a, d, r ? r(t.value, o) : t.value));
+ }, vB(e, t, o)), $Ne(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ R.createElement(YR, { className: "recharts-polar-radius-axis-ticks" }, u);
+ return /*#__PURE__*/ R.createElement(XR, { className: "recharts-polar-radius-axis-ticks" }, u);
}, tPe = (e) => {
- var { radiusAxisId: t } = e, n = Q($K), r = Q((e) => w1(e, "radiusAxis", t)), i = Q((e) => E1(e, "radiusAxis", t, !1));
+ var { radiusAxisId: t } = e, n = Q(eq), r = Q((e) => T1(e, "radiusAxis", t)), i = Q((e) => D1(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = R1(R1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: xh("recharts-polar-radius-axis", qNe, a.className) }, s && QNe(a, i), o && ePe(a, i), /*#__PURE__*/ R.createElement(XMe, ZNe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(rNe, { label: a.label }), a.children)));
+ var a = z1(z1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-polar-radius-axis", qNe, a.className) }, s && QNe(a, i), o && ePe(a, i), /*#__PURE__*/ R.createElement(XMe, ZNe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(rNe, { label: a.label }), a.children)));
};
-function B1(e) {
- var t = yB(e, RK);
+function V1(e) {
+ var t = bB(e, zK);
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(JNe, {
domain: t.domain,
id: t.radiusAxisId,
@@ -64352,20 +64352,20 @@ function B1(e) {
tick: t.tick
}), /*#__PURE__*/ R.createElement(tPe, t));
}
-B1.displayName = "PolarRadiusAxis";
+V1.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
var nPe = ["children", "type"], rPe = ["ref"];
-function V1() {
- return V1 = Object.assign ? Object.assign.bind() : function(e) {
+function H1() {
+ return H1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, V1.apply(null, arguments);
+ }, H1.apply(null, arguments);
}
-function H1(e, t) {
+function U1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64375,12 +64375,12 @@ function H1(e, t) {
}
return n;
}
-function U1(e) {
+function W1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H1(Object(n), !0).forEach(function(t) {
+ t % 2 ? U1(Object(n), !0).forEach(function(t) {
iPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H1(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64408,7 +64408,7 @@ function oPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function W1(e, t) {
+function G1(e, t) {
if (e == null) return {};
var n, r, i = sPe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -64426,18 +64426,18 @@ function sPe(e, t) {
}
return n;
}
-var G1 = 1e-5, cPe = Math.cos(eK(45)), lPe = "angleAxis";
+var K1 = 1e-5, cPe = Math.cos(tK(45)), lPe = "angleAxis";
function uPe(e) {
- var t = KB(), n = rW(), r = (0, R.useMemo)(() => {
- var { children: t, type: r } = e, i = W1(e, nPe), a = BK(n, "angleAxis", r);
- if (a != null) return U1(U1({}, i), {}, { type: a });
- }, [e, n]), i = r === Q((e) => GK(e, r?.id));
- return (0, R.useEffect)(() => r == null ? lB : (t(LNe(r)), () => {
+ var t = qB(), n = iW(), r = (0, R.useMemo)(() => {
+ var { children: t, type: r } = e, i = G1(e, nPe), a = VK(n, "angleAxis", r);
+ if (a != null) return W1(W1({}, i), {}, { type: a });
+ }, [e, n]), i = r === Q((e) => KK(e, r?.id));
+ return (0, R.useEffect)(() => r == null ? uB : (t(LNe(r)), () => {
t(RNe(r));
}), [t, r]), i ? e.children : null;
}
var dPe = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = tK(n, r, i, e.coordinate), l = tK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = nK(n, r, i, e.coordinate), l = nK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
y1: c.y,
@@ -64445,28 +64445,28 @@ var dPe = (e, t) => {
y2: l.y
};
}, fPe = (e, t) => {
- var n = Math.cos(eK(-e.coordinate));
- return n > G1 ? t === "outer" ? "start" : "end" : n < -G1 ? t === "outer" ? "end" : "start" : "middle";
+ var n = Math.cos(tK(-e.coordinate));
+ return n > K1 ? t === "outer" ? "start" : "end" : n < -K1 ? t === "outer" ? "end" : "start" : "middle";
}, pPe = (e) => {
- var t = Math.cos(eK(-e.coordinate)), n = Math.sin(eK(-e.coordinate));
+ var t = Math.cos(tK(-e.coordinate)), n = Math.sin(tK(-e.coordinate));
return Math.abs(t) <= cPe ? n > 0 ? "start" : "end" : "middle";
}, mPe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = U1(U1({}, UR(e)), {}, { fill: "none" }, UR(a));
- if (i === "circle") return /*#__PURE__*/ R.createElement(m1, V1({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = W1(W1({}, WR(e)), {}, { fill: "none" }, WR(a));
+ if (i === "circle") return /*#__PURE__*/ R.createElement(h1, H1({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => tK(t, n, r, e.coordinate));
- return /*#__PURE__*/ R.createElement(f1, V1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+ var c = o.map((e) => nK(t, n, r, e.coordinate));
+ return /*#__PURE__*/ R.createElement(p1, H1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
}, hPe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
- return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(z$, V1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+ return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(B$, H1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
}, gPe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = UR(e), { ref: s } = o, c = W1(o, rPe), l = WR(t), u = U1(U1({}, c), {}, { fill: "none" }, UR(n)), d = a.map((a, o) => {
- var s = dPe(a, e), d = fPe(a, e.orientation), f = pPe(a), p = U1(U1(U1({}, c), {}, {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = WR(e), { ref: s } = o, c = G1(o, rPe), l = GR(t), u = W1(W1({}, c), {}, { fill: "none" }, WR(n)), d = a.map((a, o) => {
+ var s = dPe(a, e), d = fPe(a, e.orientation), f = pPe(a), p = W1(W1(W1({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -64477,27 +64477,27 @@ var dPe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ R.createElement(YR, V1({
- className: xh("recharts-polar-angle-axis-tick", F1(t)),
+ return /*#__PURE__*/ R.createElement(XR, H1({
+ className: Sh("recharts-polar-angle-axis-tick", I1(t)),
key: `tick-${a.coordinate}`
- }, _B(e, a, o)), n && /*#__PURE__*/ R.createElement("line", V1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(hPe, {
+ }, vB(e, a, o)), n && /*#__PURE__*/ R.createElement("line", H1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(hPe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ R.createElement(YR, { className: "recharts-polar-angle-axis-ticks" }, d);
+ return /*#__PURE__*/ R.createElement(XR, { className: "recharts-polar-angle-axis-ticks" }, d);
}, _Pe = (e) => {
- var { angleAxisId: t } = e, n = Q($K), r = Q((e) => w1(e, "angleAxis", t)), i = FU(), a = Q((e) => yNe(e, "angleAxis", t, i));
+ var { angleAxisId: t } = e, n = Q(eq), r = Q((e) => T1(e, "angleAxis", t)), i = IU(), a = Q((e) => yNe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = U1(U1(U1({}, e), {}, { scale: r }, n), {}, {
+ var o = W1(W1(W1({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: xh("recharts-polar-angle-axis", lPe, o.className) }, /*#__PURE__*/ R.createElement(mPe, o), /*#__PURE__*/ R.createElement(gPe, o)));
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-polar-angle-axis", lPe, o.className) }, /*#__PURE__*/ R.createElement(mPe, o), /*#__PURE__*/ R.createElement(gPe, o)));
};
-function K1(e) {
- var t = yB(e, LK);
+function q1(e) {
+ var t = bB(e, RK);
return /*#__PURE__*/ R.createElement(uPe, {
id: t.angleAxisId,
scale: t.scale,
@@ -64517,10 +64517,10 @@ function K1(e) {
domain: t.domain
}, /*#__PURE__*/ R.createElement(_Pe, t));
}
-K1.displayName = "PolarAngleAxis";
+q1.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var vPe = /* @__PURE__ */ St(((e) => {
+var vPe = /* @__PURE__ */ Ct(((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) {
@@ -64549,23 +64549,23 @@ var vPe = /* @__PURE__ */ St(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), yPe = (/* @__PURE__ */ St(((e, t) => {
+})), yPe = (/* @__PURE__ */ Ct(((e, t) => {
t.exports = vPe();
-})))(), q1 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", J1 = null, Y1 = null, X1 = (e) => {
- if (e === J1 && Array.isArray(Y1)) return Y1;
+})))(), J1 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", Y1 = null, X1 = null, Z1 = (e) => {
+ if (e === Y1 && Array.isArray(X1)) return X1;
var t = [];
return R.Children.forEach(e, (e) => {
- oB(e) || ((0, yPe.isFragment)(e) ? t = t.concat(X1(e.props.children)) : t.push(e));
- }), Y1 = t, J1 = e, t;
+ sB(e) || ((0, yPe.isFragment)(e) ? t = t.concat(Z1(e.props.children)) : t.push(e));
+ }), X1 = t, Y1 = e, t;
};
-function Z1(e, t) {
+function Q1(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => q1(e)) : [q1(t)], X1(e).forEach((e) => {
- var t = Jz(e, "type.displayName") || Jz(e, "type.name");
+ return r = Array.isArray(t) ? t.map((e) => J1(e)) : [J1(t)], Z1(e).forEach((e) => {
+ var t = Yz(e, "type.displayName") || Yz(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var Q1 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var $1 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
function bPe(e) {
@@ -64582,7 +64582,7 @@ function bPe(e) {
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
var xPe, SPe, CPe, wPe, TPe;
-function $1(e, t) {
+function e0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64592,12 +64592,12 @@ function $1(e, t) {
}
return n;
}
-function e0(e) {
+function t0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $1(Object(n), !0).forEach(function(t) {
+ t % 2 ? e0(Object(n), !0).forEach(function(t) {
EPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $1(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64625,37 +64625,37 @@ function OPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function t0() {
- return t0 = Object.assign ? Object.assign.bind() : function(e) {
+function n0() {
+ return n0 = 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;
- }, t0.apply(null, arguments);
+ }, n0.apply(null, arguments);
}
-function n0(e, t) {
+function r0(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var r0 = (e, t, n, r, i) => {
- var a = n - r, o = Xz(xPe ||= n0([
+var i0 = (e, t, n, r, i) => {
+ var a = n - r, o = Zz(xPe ||= r0([
"M ",
",",
""
]), e, t);
- return o += Xz(SPe ||= n0([
+ return o += Zz(SPe ||= r0([
"L ",
",",
""
- ]), e + n, t), o += Xz(CPe ||= n0([
+ ]), e + n, t), o += Zz(CPe ||= r0([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += Xz(wPe ||= n0([
+ ]), e + n - a / 2, t + i), o += Zz(wPe ||= r0([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += Xz(TPe ||= n0([
+ ]), e + n - a / 2 - r, t + i), o += Zz(TPe ||= r0([
"L ",
",",
" Z"
@@ -64671,20 +64671,20 @@ var r0 = (e, t, n, r, i) => {
animationDuration: 1500,
animationEasing: "ease"
}, APe = (e) => {
- var t = yB(e, kPe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = HG(e, "trapezoid-");
+ var t = bB(e, kPe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = UG(e, "trapezoid-");
if ((0, R.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
e && m(e);
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
- var x = xh("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", t0({}, GR(t), {
+ var x = Sh("recharts-trapezoid", s);
+ if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", n0({}, KR(t), {
className: x,
- d: r0(n, r, i, a, o)
+ d: i0(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 = OG(["strokeDasharray"], l, c);
- return /*#__PURE__*/ R.createElement(VG, {
+ 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 = kG(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ R.createElement(HG, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -64693,17 +64693,17 @@ var r0 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = iB(S, i, e), c = iB(C, a, e), l = iB(w, o, e), u = iB(T, n, e), d = iB(E, r, e);
+ var s = aB(S, i, e), c = aB(C, a, e), l = aB(w, o, e), u = aB(T, n, e), d = aB(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__*/ R.createElement("path", t0({}, GR(t), {
+ return /*#__PURE__*/ R.createElement("path", n0({}, KR(t), {
className: x,
- d: r0(u, d, s, c, l),
+ d: i0(u, d, s, c, l),
ref: f,
- style: e0(e0({}, p), t.style)
+ style: t0(t0({}, p), t.style)
}));
});
}, jPe = [
@@ -64730,7 +64730,7 @@ function NPe(e, t) {
}
return n;
}
-function i0(e, t) {
+function a0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64740,12 +64740,12 @@ function i0(e, t) {
}
return n;
}
-function a0(e) {
+function o0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? i0(Object(n), !0).forEach(function(t) {
+ t % 2 ? a0(Object(n), !0).forEach(function(t) {
PPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -64774,65 +64774,65 @@ function IPe(e, t) {
return (t === "string" ? String : Number)(e);
}
function LPe(e, t) {
- return a0(a0({}, t), e);
+ return o0(o0({}, t), e);
}
function RPe(e, t) {
return e === "symbols";
}
-function o0(e) {
+function s0(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ R.createElement(XG, n);
+ case "rectangle": return /*#__PURE__*/ R.createElement(ZG, n);
case "trapezoid": return /*#__PURE__*/ R.createElement(APe, n);
- case "sector": return /*#__PURE__*/ R.createElement(sK, n);
+ case "sector": return /*#__PURE__*/ R.createElement(cK, n);
case "symbols":
- if (RPe(t, n)) return /*#__PURE__*/ R.createElement(mB, n);
+ if (RPe(t, n)) return /*#__PURE__*/ R.createElement(hB, n);
break;
- case "curve": return /*#__PURE__*/ R.createElement(CG, n);
+ case "curve": return /*#__PURE__*/ R.createElement(wG, n);
default: return null;
}
}
function zPe(e) {
return /*#__PURE__*/ (0, R.isValidElement)(e) ? e.props : e;
}
-function s0(e) {
+function c0(e) {
var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = MPe(e, jPe), o;
- if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, a0(a0({}, a), zPe(t)));
+ if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, o0(o0({}, a), zPe(t)));
else if (typeof t == "function") o = t(a, a.index);
else if (bPe(t) && typeof t != "boolean") {
var s = LPe(t, a);
- o = /*#__PURE__*/ R.createElement(o0, {
+ o = /*#__PURE__*/ R.createElement(s0, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ R.createElement(o0, {
+ o = /*#__PURE__*/ R.createElement(s0, {
shapeType: n,
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ R.createElement(YR, { className: r }, o) : /*#__PURE__*/ R.createElement(YR, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ R.createElement(XR, { className: r }, o) : /*#__PURE__*/ R.createElement(XR, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var c0 = (e, t, n) => {
- var r = KB();
+var l0 = (e, t, n) => {
+ var r = qB();
return (i, a) => (o) => {
- e?.(i, a, o), r(QZ({
+ e?.(i, a, o), r($Z({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
activeGraphicalItemId: n
}));
};
-}, l0 = (e) => {
- var t = KB();
+}, u0 = (e) => {
+ var t = qB();
return (n, r) => (i) => {
e?.(n, r, i), t(wAe());
};
-}, u0 = (e, t, n) => {
- var r = KB();
+}, d0 = (e, t, n) => {
+ var r = qB();
return (i, a) => (o) => {
e?.(i, a, o), r(TAe({
activeIndex: String(a),
@@ -64844,8 +64844,8 @@ var c0 = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function d0(e) {
- var { tooltipEntrySettings: t } = e, n = KB(), r = FU(), i = (0, R.useRef)(null);
+function f0(e) {
+ var { tooltipEntrySettings: t } = e, n = qB(), r = IU(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
r || (i.current === null ? n(bAe(t)) : i.current !== t && n(xAe({
prev: i.current,
@@ -64861,10 +64861,10 @@ function d0(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function f0(e) {
- var { legendPayload: t } = e, n = KB(), r = FU(), i = (0, R.useRef)(null);
+function p0(e) {
+ var { legendPayload: t } = e, n = qB(), r = IU(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- r || (i.current === null ? n(qW(t)) : i.current !== t && n(JW({
+ r || (i.current === null ? n(JW(t)) : i.current !== t && n(YW({
prev: i.current,
next: t
})), i.current = t);
@@ -64873,13 +64873,13 @@ function f0(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(YW(i.current)), null);
+ i.current &&= (n(XW(i.current)), null);
}, [n]), null;
}
-function p0(e) {
- var { legendPayload: t } = e, n = KB(), r = Q($U), i = (0, R.useRef)(null);
+function m0(e) {
+ var { legendPayload: t } = e, n = qB(), r = Q(eW), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(qW(t)) : i.current !== t && n(JW({
+ (r === "centric" || r === "radial") && (i.current === null ? n(JW(t)) : i.current !== t && n(YW({
prev: i.current,
next: t
})), i.current = t);
@@ -64888,13 +64888,13 @@ function p0(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(YW(i.current)), null);
+ i.current &&= (n(XW(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
var BPe = R.useId ?? (() => {
- var [e] = R.useState(() => tB("uid-"));
+ var [e] = R.useState(() => nB("uid-"));
return e;
});
//#endregion
@@ -64905,10 +64905,10 @@ function VPe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var HPe = /*#__PURE__*/ (0, R.createContext)(void 0), m0 = (e) => {
+var HPe = /*#__PURE__*/ (0, R.createContext)(void 0), h0 = (e) => {
var { id: t, type: n, children: r } = e, i = VPe(`recharts-${n}`, t);
return /*#__PURE__*/ R.createElement(HPe.Provider, { value: i }, r(i));
-}, h0 = NH({
+}, g0 = PH({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -64917,47 +64917,47 @@ var HPe = /*#__PURE__*/ (0, R.createContext)(void 0), m0 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(WW(t.payload));
+ e.cartesianItems.push(GW(t.payload));
},
- prepare: kH()
+ prepare: AH()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = bH(e).cartesianItems.indexOf(WW(n));
- i > -1 && (e.cartesianItems[i] = WW(r));
+ var { prev: n, next: r } = t.payload, i = xH(e).cartesianItems.indexOf(GW(n));
+ i > -1 && (e.cartesianItems[i] = GW(r));
},
- prepare: kH()
+ prepare: AH()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = bH(e).cartesianItems.indexOf(WW(t.payload));
+ var n = xH(e).cartesianItems.indexOf(GW(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: kH()
+ prepare: AH()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(WW(t.payload));
+ e.polarItems.push(GW(t.payload));
},
- prepare: kH()
+ prepare: AH()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = bH(e).polarItems.indexOf(WW(t.payload));
+ var n = xH(e).polarItems.indexOf(GW(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: kH()
+ prepare: AH()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = bH(e).polarItems.indexOf(WW(n));
- i > -1 && (e.polarItems[i] = WW(r));
+ var { prev: n, next: r } = t.payload, i = xH(e).polarItems.indexOf(GW(n));
+ i > -1 && (e.polarItems[i] = GW(r));
},
- prepare: kH()
+ prepare: AH()
}
}
-}), { addCartesianGraphicalItem: UPe, replaceCartesianGraphicalItem: WPe, removeCartesianGraphicalItem: GPe, addPolarGraphicalItem: KPe, removePolarGraphicalItem: qPe, replacePolarGraphicalItem: JPe } = h0.actions, YPe = h0.reducer, g0 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = KB(), n = (0, R.useRef)(null);
+}), { addCartesianGraphicalItem: UPe, replaceCartesianGraphicalItem: WPe, removeCartesianGraphicalItem: GPe, addPolarGraphicalItem: KPe, removePolarGraphicalItem: qPe, replacePolarGraphicalItem: JPe } = g0.actions, YPe = g0.reducer, _0 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = qB(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
n.current === null ? t(UPe(e)) : n.current !== e && t(WPe({
prev: n.current,
@@ -64966,8 +64966,8 @@ var HPe = /*#__PURE__*/ (0, R.createContext)(void 0), m0 = (e) => {
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
n.current &&= (t(GPe(n.current)), null);
}, [t]), null;
-}), _0 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = KB(), n = (0, R.useRef)(null);
+}), v0 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = qB(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
n.current === null ? t(KPe(e)) : n.current !== e && t(JPe({
prev: n.current,
@@ -64985,12 +64985,12 @@ function XPe(e) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
function ZPe(e) {
- if (!(!TB(e) || e.length === 0)) return XPe(N1(e));
+ if (!(!EB(e) || e.length === 0)) return XPe(P1(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
var QPe = ["points"];
-function v0(e, t) {
+function y0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65000,12 +65000,12 @@ function v0(e, t) {
}
return n;
}
-function y0(e) {
+function b0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? v0(Object(n), !0).forEach(function(t) {
+ t % 2 ? y0(Object(n), !0).forEach(function(t) {
$Pe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65033,14 +65033,14 @@ function tFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function b0() {
- return b0 = Object.assign ? Object.assign.bind() : function(e) {
+function x0() {
+ return x0 = 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;
- }, b0.apply(null, arguments);
+ }, x0.apply(null, arguments);
}
function nFe(e, t) {
if (e == null) return {};
@@ -65064,17 +65064,17 @@ function iFe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, R.isValidElement)(t)) return /*#__PURE__*/ (0, R.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = xh(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = nFe(a, QPe);
- return /*#__PURE__*/ R.createElement(m1, b0({}, s, { className: i }));
+ var i = Sh(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = nFe(a, QPe);
+ return /*#__PURE__*/ R.createElement(h1, x0({}, s, { className: i }));
}
function aFe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function x0(e) {
- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = IK.scatter } = e;
+function S0(e) {
+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = LK.scatter } = e;
if (!aFe(t, n)) return null;
- var u = Q1(n), d = pbe(n), f = t.map((e, r) => {
- var s = y0(y0(y0({ r: 3 }, o), d), {}, {
+ var u = $1(n), d = pbe(n), f = t.map((e, r) => {
+ var s = b0(b0(b0({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -65090,11 +65090,11 @@ function x0(e) {
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(ZQ, { zIndex: l }, /*#__PURE__*/ R.createElement(YR, b0({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(QQ, { zIndex: l }, /*#__PURE__*/ R.createElement(XR, x0({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function S0(e, t) {
+function C0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65104,12 +65104,12 @@ function S0(e, t) {
}
return n;
}
-function C0(e) {
+function w0(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) {
+ t % 2 ? C0(Object(n), !0).forEach(function(t) {
oFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65137,7 +65137,7 @@ function cFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var w0 = NH({
+var T0 = PH({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -65147,60 +65147,60 @@ var w0 = NH({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = WW(t.payload);
+ e.xAxis[t.payload.id] = GW(t.payload);
},
- prepare: kH()
+ prepare: AH()
},
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] = WW(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = GW(r));
},
- prepare: kH()
+ prepare: AH()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: kH()
+ prepare: AH()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = WW(t.payload);
+ e.yAxis[t.payload.id] = GW(t.payload);
},
- prepare: kH()
+ prepare: AH()
},
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] = WW(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = GW(r));
},
- prepare: kH()
+ prepare: AH()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: kH()
+ prepare: AH()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = WW(t.payload);
+ e.zAxis[t.payload.id] = GW(t.payload);
},
- prepare: kH()
+ prepare: AH()
},
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] = WW(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = GW(r));
},
- prepare: kH()
+ prepare: AH()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: kH()
+ prepare: AH()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -65208,22 +65208,22 @@ var w0 = NH({
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] = C0(C0({}, i), {}, {
+ e.yAxis[n] = w0(w0({}, i), {}, {
width: r,
widthHistory: o
});
}
}
}
-}), { addXAxis: lFe, replaceXAxis: uFe, removeXAxis: dFe, addYAxis: fFe, replaceYAxis: pFe, removeYAxis: mFe, addZAxis: hFe, replaceZAxis: gFe, removeZAxis: _Fe, updateYAxisWidth: vFe } = w0.actions, yFe = w0.reducer, bFe = $([
- $([NU], (e) => ({
+}), { addXAxis: lFe, replaceXAxis: uFe, removeXAxis: dFe, addYAxis: fFe, replaceYAxis: pFe, removeYAxis: mFe, addZAxis: hFe, replaceZAxis: gFe, removeZAxis: _Fe, updateYAxisWidth: vFe } = T0.actions, yFe = T0.reducer, bFe = $([
+ $([PU], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- EU,
- DU
+ DU,
+ OU
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -65231,10 +65231,10 @@ var w0 = NH({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), T0 = () => Q(bFe), xFe = () => Q(eje);
+}), E0 = () => Q(bFe), xFe = () => Q(eje);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function E0(e, t) {
+function D0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65244,12 +65244,12 @@ function E0(e, t) {
}
return n;
}
-function D0(e) {
+function O0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? E0(Object(n), !0).forEach(function(t) {
+ t % 2 ? D0(Object(n), !0).forEach(function(t) {
SFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65280,7 +65280,7 @@ function wFe(e, t) {
var TFe = (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 = D0(D0(D0({}, {
+ var s = O0(O0(O0({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -65291,17 +65291,17 @@ var TFe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), WR(i)), gB(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(m1, s);
- return /*#__PURE__*/ R.createElement(YR, {
+ }), GR(i)), _B(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(h1, s);
+ return /*#__PURE__*/ R.createElement(XR, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function O0(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = IK.activeDot } = e, s = Q(AQ), c = xFe();
+function k0(e) {
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = LK.activeDot } = e, s = Q(jQ), c = xFe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return oB(l) ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: o }, /*#__PURE__*/ R.createElement(TFe, {
+ return sB(l) ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: o }, /*#__PURE__*/ R.createElement(TFe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -65312,7 +65312,7 @@ function O0(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function k0(e, t) {
+function A0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65322,12 +65322,12 @@ function k0(e, t) {
}
return n;
}
-function A0(e) {
+function j0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k0(Object(n), !0).forEach(function(t) {
+ t % 2 ? A0(Object(n), !0).forEach(function(t) {
EFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65355,16 +65355,16 @@ function OFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var j0 = (e, t) => w1(e, "radiusAxis", t), kFe = $([j0], (e) => {
+var M0 = (e, t) => T1(e, "radiusAxis", t), kFe = $([M0], (e) => {
if (e != null) return { scale: e };
-}), AFe = $([KK, j0], (e, t) => {
- if (e != null && t != null) return A0(A0({}, e), {}, { scale: t });
-}), jFe = (e, t, n, r) => E1(e, "radiusAxis", t, r), M0 = (e, t, n) => GK(e, n), N0 = (e, t, n) => w1(e, "angleAxis", n), MFe = $([M0, N0], (e, t) => {
- if (e != null && t != null) return A0(A0({}, e), {}, { scale: t });
-}), NFe = (e, t, n, r) => E1(e, "angleAxis", n, r), PFe = $([
- M0,
+}), AFe = $([qK, M0], (e, t) => {
+ if (e != null && t != null) return j0(j0({}, e), {}, { scale: t });
+}), jFe = (e, t, n, r) => D1(e, "radiusAxis", t, r), N0 = (e, t, n) => KK(e, n), P0 = (e, t, n) => T1(e, "angleAxis", n), MFe = $([N0, P0], (e, t) => {
+ if (e != null && t != null) return j0(j0({}, e), {}, { scale: t });
+}), NFe = (e, t, n, r) => D1(e, "angleAxis", n, r), PFe = $([
N0,
- $K
+ P0,
+ eq
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -65374,16 +65374,16 @@ var j0 = (e, t) => w1(e, "radiusAxis", t), kFe = $([j0], (e) => {
cy: n.cy
};
}), FFe = (e, t, n, r, i) => i, IFe = $([
- $U,
+ eW,
AFe,
jFe,
MFe,
NFe
-], (e, t, n, r, i) => pU(e, "radiusAxis") ? CU(t, n, !1) : CU(r, i, !1)), LFe = $([
+], (e, t, n, r, i) => mU(e, "radiusAxis") ? wU(t, n, !1) : wU(r, i, !1)), LFe = $([
kFe,
PFe,
- dK,
- $([h1, FFe], (e, t) => {
+ fK,
+ $([g1, FFe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
IFe
@@ -65397,16 +65397,16 @@ var j0 = (e, t) => w1(e, "radiusAxis", t), kFe = $([j0], (e) => {
bandSize: i
});
}), RFe = ["id"];
-function P0() {
- return P0 = Object.assign ? Object.assign.bind() : function(e) {
+function F0() {
+ return F0 = 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;
- }, P0.apply(null, arguments);
+ }, F0.apply(null, arguments);
}
-function F0(e, t) {
+function I0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65416,12 +65416,12 @@ function F0(e, t) {
}
return n;
}
-function I0(e) {
+function L0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? F0(Object(n), !0).forEach(function(t) {
+ t % 2 ? I0(Object(n), !0).forEach(function(t) {
zFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65467,7 +65467,7 @@ function UFe(e, t) {
}
return n;
}
-function L0(e, t) {
+function R0(e, t) {
return e && e !== "none" ? e : t;
}
var WFe = (e) => {
@@ -65476,33 +65476,33 @@ var WFe = (e) => {
inactive: o,
dataKey: t,
type: a,
- color: L0(r, i),
- value: TU(n, t),
+ color: R0(r, i),
+ value: EU(n, t),
payload: e
}];
}, GFe = /*#__PURE__*/ R.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: lB,
+ getPosition: uB,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: TU(a, t),
+ name: EU(a, t),
hide: o,
type: s,
- color: L0(n, i),
+ color: R0(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: l });
});
function KFe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = UR(HFe(n, RFe));
- return /*#__PURE__*/ R.createElement(x0, {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = WR(HFe(n, RFe));
+ return /*#__PURE__*/ R.createElement(S0, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -65514,8 +65514,8 @@ function KFe(e) {
function qFe(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 = fU(e, n.dataKey, r), d = fU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? ZPe(d) : d, m = oB(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(I0(I0({}, tK(o, s, m, f)), {}, {
+ var a = pU(e, n.dataKey, r), d = pU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? ZPe(d) : d, m = sB(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(L0(L0({}, nK(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -65528,8 +65528,8 @@ function qFe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = oB(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(I0(I0({}, e), {}, { radius: r }, tK(o, s, r, e.angle)));
+ var n = e.value[0], r = sB(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(L0(L0({}, e), {}, { radius: r }, nK(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -65547,7 +65547,7 @@ function JFe(e) {
upperWidth: 0,
height: 0
};
- return I0(I0({}, t), {}, {
+ return L0(L0({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -65555,12 +65555,12 @@ function JFe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, r);
}
function YFe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, I0(I0({}, r), {}, { points: t })) : typeof i == "function" ? i(I0(I0({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(f1, P0({}, GR(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, L0(L0({}, r), {}, { points: t })) : typeof i == "function" ? i(L0(L0({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(p1, F0({}, KR(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -65573,23 +65573,23 @@ function YFe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ R.createElement(YR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(KFe, {
+ return /*#__PURE__*/ R.createElement(XR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(KFe, {
props: r,
points: t
}));
}
-var R0 = (e, t, n) => (r, i) => {
+var z0 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
- return a ? I0(I0({}, r), {}, {
- x: iB(a.x, r.x, n),
- y: iB(a.y, r.y, n)
- }) : I0(I0({}, r), {}, {
- x: iB(r.cx, r.x, n),
- y: iB(r.cy, r.y, n)
+ return a ? L0(L0({}, r), {}, {
+ x: aB(a.x, r.x, n),
+ y: aB(a.y, r.y, n)
+ }) : L0(L0({}, r), {}, {
+ x: aB(r.cx, r.x, n),
+ y: aB(r.cy, r.y, n)
});
};
function XFe(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 = HG(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
+ var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = UG(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, R.useCallback)(() => {
typeof d == "function" && d(), v(!0);
@@ -65597,7 +65597,7 @@ function XFe(e) {
return /*#__PURE__*/ R.createElement(JFe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ R.createElement(VG, {
+ }, /*#__PURE__*/ R.createElement(HG, {
animationId: g,
begin: s,
duration: c,
@@ -65607,13 +65607,13 @@ function XFe(e) {
onAnimationEnd: b,
onAnimationStart: x
}, (e) => {
- var o = e === 1 ? i : i.map(R0(f, m, e)), s = e === 1 ? a : a?.map(R0(p, h, e));
+ var o = e === 1 ? i : i.map(z0(f, m, e)), s = e === 1 ? a : a?.map(z0(p, h, e));
return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(YFe, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ R.createElement(c1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(l1, { label: t.label }), t.children);
}
function ZFe(e) {
var t = (0, R.useRef)(void 0), n = (0, R.useRef)(void 0);
@@ -65635,33 +65635,33 @@ var QFe = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: IK.area
+ zIndex: LK.area
};
function $Fe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
- var i = xh("recharts-radar", n);
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: i }, /*#__PURE__*/ R.createElement(ZFe, e)), /*#__PURE__*/ R.createElement(O0, {
+ var i = Sh("recharts-radar", n);
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: i }, /*#__PURE__*/ R.createElement(ZFe, e)), /*#__PURE__*/ R.createElement(k0, {
points: r,
- mainColor: L0(e.stroke, e.fill),
+ mainColor: R0(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
function eIe(e) {
- var t = FU(), n = Q((n) => LFe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ R.createElement($Fe, P0({}, e, {
+ var t = IU(), n = Q((n) => LFe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ R.createElement($Fe, F0({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function z0(e) {
- var t = yB(e, QFe);
- return /*#__PURE__*/ R.createElement(m0, {
+function B0(e) {
+ var t = bB(e, QFe);
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(_0, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(v0, {
type: "radar",
id: e,
data: void 0,
@@ -65669,7 +65669,7 @@ function z0(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ R.createElement(p0, { legendPayload: WFe(t) }), /*#__PURE__*/ R.createElement(GFe, {
+ }), /*#__PURE__*/ R.createElement(m0, { legendPayload: WFe(t) }), /*#__PURE__*/ R.createElement(GFe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -65678,33 +65678,33 @@ function z0(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(eIe, P0({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(eIe, F0({}, t, { id: e }))));
}
-z0.displayName = "Radar";
+B0.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-function B0() {
- return B0 = Object.assign ? Object.assign.bind() : function(e) {
+function V0() {
+ return V0 = 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;
- }, B0.apply(null, arguments);
+ }, V0.apply(null, arguments);
}
-function V0(e) {
+function H0(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function H0(e) {
- return /*#__PURE__*/ R.createElement(s0, B0({ shapeType: "sector" }, e));
+function U0(e) {
+ return /*#__PURE__*/ R.createElement(c0, V0({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-var U0 = (e, t, n) => {
+var W0 = (e, t, n) => {
var r = n ?? e;
- if (!oB(r)) return nB(r, t, 0);
-}, W0 = (e, t, n) => {
- var r = {}, i = e.filter(iq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ if (!sB(r)) return rB(r, t, 0);
+}, G0 = (e, t, n) => {
+ var r = {}, i = e.filter(aq), 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) => {
@@ -65712,18 +65712,18 @@ var U0 = (e, t, n) => {
return {
stackId: r,
dataKeys: i.map((e) => e.dataKey),
- barSize: U0(t, n, i[0]?.barSize)
+ barSize: W0(t, n, i[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: U0(t, n, e.barSize)
+ barSize: W0(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function G0(e, t) {
+function K0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65733,12 +65733,12 @@ function G0(e, t) {
}
return n;
}
-function K0(e) {
+function q0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? G0(Object(n), !0).forEach(function(t) {
+ t % 2 ? K0(Object(n), !0).forEach(function(t) {
tIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65769,8 +65769,8 @@ function rIe(e, t) {
function iIe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = nB(e, n, 0, !0), s, c = [];
- if (cU(r[0]?.barSize)) {
+ var o = rB(e, n, 0, !0), s, c = [];
+ if (lU(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 = {
@@ -65789,11 +65789,11 @@ function iIe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = nB(t, n, 0, !0);
+ var p = rB(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 = cU(i) ? Math.min(m, i) : m;
+ var h = lU(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -65806,11 +65806,11 @@ function iIe(e, t, n, r, i) {
return s;
}
}
-var q0 = (e, t, n, r, i, a, o) => {
- var s = oB(o) ? t : o, c = iIe(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => K0(K0({}, e), {}, { position: K0(K0({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, J0 = (e, t) => {
- var n = nq(t);
+var J0 = (e, t, n, r, i, a, o) => {
+ var s = sB(o) ? t : o, c = iIe(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => q0(q0({}, e), {}, { position: q0(q0({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, Y0 = (e, t) => {
+ var n = rq(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
if (r != null) {
@@ -65821,7 +65821,7 @@ var q0 = (e, t, n, r, i, a, o) => {
}
}
}
-}, Y0 = (e, t) => {
+}, X0 = (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;
@@ -65829,7 +65829,7 @@ var q0 = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function X0(e, t) {
+function Z0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65839,12 +65839,12 @@ function X0(e, t) {
}
return n;
}
-function Z0(e) {
+function Q0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? X0(Object(n), !0).forEach(function(t) {
+ t % 2 ? Z0(Object(n), !0).forEach(function(t) {
aIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X0(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -65872,76 +65872,76 @@ function sIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Q0 = $([(e, t) => KK(e, t), (e, t) => w1(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return Z0(Z0({}, e), {}, { scale: t });
-}), $0 = (e, t) => bNe(e, "radiusAxis", t, !1), e2 = $([(e, t, n) => GK(e, n), (e, t, n) => w1(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return Z0(Z0({}, e), {}, { scale: t });
-}), t2 = (e, t, n) => E1(e, "angleAxis", n, !1), n2 = $([h1, (e, t, n, r) => r], (e, t) => {
+var $0 = $([(e, t) => qK(e, t), (e, t) => T1(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return Q0(Q0({}, e), {}, { scale: t });
+}), e2 = (e, t) => bNe(e, "radiusAxis", t, !1), t2 = $([(e, t, n) => KK(e, n), (e, t, n) => T1(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return Q0(Q0({}, e), {}, { scale: t });
+}), n2 = (e, t, n) => D1(e, "angleAxis", n, !1), r2 = $([g1, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), r2 = $([
- $U,
- Q0,
+}), i2 = $([
+ eW,
$0,
e2,
- t2
-], (e, t, n, r, i) => pU(e, "radiusAxis") ? CU(t, n, !1) : CU(r, i, !1)), cIe = $([
- e2,
- Q0,
- $U
+ t2,
+ n2
+], (e, t, n, r, i) => mU(e, "radiusAxis") ? wU(t, n, !1) : wU(r, i, !1)), cIe = $([
+ t2,
+ $0,
+ eW
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return bU({ numericAxis: r });
-}), lIe = (e, t, n, r, i) => i, uIe = (e, t, n, r, i) => n, dIe = (e, t, n, r, i) => t, i2 = (e, t, n, r, i) => r.maxBarSize, a2 = (e) => e.type === "radialBar", fIe = $([$([
+ if (r != null && r.scale != null) return xU({ numericAxis: r });
+}), lIe = (e, t, n, r, i) => i, uIe = (e, t, n, r, i) => n, dIe = (e, t, n, r, i) => t, a2 = (e, t, n, r, i) => r.maxBarSize, o2 = (e) => e.type === "radialBar", fIe = $([$([
$([
$([
- $U,
- h1,
+ eW,
+ g1,
uIe,
dIe
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(a2)),
- kK,
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(o2)),
+ AK,
() => void 0
- ], W0),
- EK,
+ ], G0),
DK,
OK,
+ kK,
$([
- $U,
- EK,
- e2,
+ eW,
+ DK,
t2,
- Q0,
+ n2,
$0,
- i2
+ e2,
+ a2
], (e, t, n, r, i, a, o) => {
- var s = oB(o) ? t : o;
- return e === "centric" ? CU(n, r, !0) ?? s ?? 0 : CU(i, a, !0) ?? s ?? 0;
+ var s = sB(o) ? t : o;
+ return e === "centric" ? wU(n, r, !0) ?? s ?? 0 : wU(i, a, !0) ?? s ?? 0;
}),
- r2,
- i2
-], q0), n2], Y0), o2 = $([g1], (e) => e.filter(a2).filter(iq)), s2 = $([
+ i2,
+ a2
+], J0), r2], X0), s2 = $([_1], (e) => e.filter(o2).filter(aq)), c2 = $([
$([
- o2,
- dK,
- QX
- ], rq),
- o2,
- AK,
- jK
-], eZ), pIe = $([
- e2,
+ s2,
+ fK,
+ $X
+ ], iq),
+ s2,
+ jK,
+ MK
+], tZ), pIe = $([
t2,
- Q0,
- $0,
- uK,
n2,
+ $0,
+ e2,
+ dK,
r2,
- $U,
+ i2,
+ eW,
cIe,
- $K,
+ eq,
lIe,
fIe,
- $([(e, t, n) => $U(e) === "centric" ? s2(e, "radiusAxis", t) : s2(e, "angleAxis", n), n2], J0)
+ $([(e, t, n) => eW(e) === "centric" ? c2(e, "radiusAxis", t) : c2(e, "angleAxis", n), r2], Y0)
], (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 [];
@@ -65967,7 +65967,7 @@ var Q0 = $([(e, t) => KK(e, t), (e, t) => w1(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), mIe = $([dK, (e, t) => t], (e, t) => {
+}), mIe = $([fK, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -65980,8 +65980,8 @@ var Q0 = $([(e, t) => KK(e, t), (e, t) => w1(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function c2(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && cU(e.zIndex) ? e.zIndex : t;
+function l2(e, t) {
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && lU(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
@@ -65995,16 +65995,16 @@ var hIe = [
"onClick",
"onMouseLeave"
], _Ie = ["value", "background"];
-function l2() {
- return l2 = Object.assign ? Object.assign.bind() : function(e) {
+function u2() {
+ return u2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, l2.apply(null, arguments);
+ }, u2.apply(null, arguments);
}
-function u2(e, t) {
+function d2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66014,12 +66014,12 @@ function u2(e, t) {
}
return n;
}
-function d2(e) {
+function f2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? u2(Object(n), !0).forEach(function(t) {
+ t % 2 ? d2(Object(n), !0).forEach(function(t) {
vIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -66047,7 +66047,7 @@ function bIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function f2(e, t) {
+function p2(e, t) {
if (e == null) return {};
var n, r, i = xIe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -66065,7 +66065,7 @@ function xIe(e, t) {
}
return n;
}
-var p2 = [];
+var m2 = [];
function SIe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
@@ -66086,12 +66086,12 @@ function SIe(e) {
return /*#__PURE__*/ R.createElement(cNe, { value: t ? i : void 0 }, r);
}
function CIe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = f2(n, hIe), l = UR(c), u = Q(AQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = f2(n, gIe), h = c0(d, n.dataKey, s), g = l0(p), _ = u0(f, n.dataKey, s);
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = p2(n, hIe), l = WR(c), u = Q(jQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = p2(n, gIe), h = l0(d, n.dataKey, s), g = u0(p), _ = d0(f, n.dataKey, s);
return t == null ? null : /*#__PURE__*/ R.createElement(SIe, {
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 = d2(d2(d2(d2({}, l), {}, { cornerRadius: V0(o) }, e), _B(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = f2(f2(f2(f2({}, l), {}, { cornerRadius: H0(o) }, e), vB(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -66102,19 +66102,19 @@ function CIe(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ R.createElement(ZQ, {
- zIndex: IK.activeBar,
+ return n ? /*#__PURE__*/ R.createElement(QQ, {
+ zIndex: LK.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ R.createElement(H0, f)) : /*#__PURE__*/ R.createElement(H0, l2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ R.createElement(c1, { label: n.label }), n.children);
+ }, /*#__PURE__*/ R.createElement(U0, f)) : /*#__PURE__*/ R.createElement(U0, u2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ R.createElement(l1, { label: n.label }), n.children);
}
function wIe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = HG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = UG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, R.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ R.createElement(VG, {
+ return /*#__PURE__*/ R.createElement(HG, {
animationId: u,
begin: a,
duration: o,
@@ -66124,17 +66124,17 @@ function wIe(e) {
onAnimationEnd: m,
key: u
}, (e) => {
- var i = e === 1 ? r : (r ?? p2).map((t, n) => {
+ var i = e === 1 ? r : (r ?? m2).map((t, n) => {
var r = d && d[n];
- if (r) return d2(d2({}, t), {}, {
- startAngle: iB(r.startAngle, t.startAngle, e),
- endAngle: iB(r.endAngle, t.endAngle, e)
+ if (r) return f2(f2({}, t), {}, {
+ startAngle: aB(r.startAngle, t.startAngle, e),
+ endAngle: aB(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return d2(d2({}, t), {}, { endAngle: iB(a, i, e) });
+ return f2(f2({}, t), {}, { endAngle: aB(a, i, e) });
});
return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(CIe, {
- sectors: i ?? p2,
+ sectors: i ?? m2,
allOtherRadialBarProps: t,
showLabels: !f
});
@@ -66149,12 +66149,12 @@ function TIe(e) {
}
function EIe(e) {
var t = Q((t) => mIe(t, e.legendType));
- return /*#__PURE__*/ R.createElement(p0, { legendPayload: t ?? [] });
+ return /*#__PURE__*/ R.createElement(m0, { legendPayload: t ?? [] });
}
var DIe = /*#__PURE__*/ R.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: lB,
+ getPosition: uB,
settings: {
graphicalItemId: l,
stroke: r,
@@ -66162,45 +66162,45 @@ var DIe = /*#__PURE__*/ R.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: TU(a, t),
+ name: EU(a, t),
hide: o,
type: c,
color: s,
unit: ""
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: u });
}), OIe = class extends R.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = WR(this.props.background);
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: c2(this.props.background, IK.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = f2(e, _Ie);
+ var { cornerRadius: t } = this.props, n = GR(this.props.background);
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: l2(this.props.background, LK.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = p2(e, _Ie);
if (!a) return null;
- var s = d2(d2(d2(d2(d2({ cornerRadius: V0(t) }, o), {}, { fill: "#eee" }, a), n), _B(this.props, e, r)), {}, {
+ var s = f2(f2(f2(f2(f2({ cornerRadius: H0(t) }, o), {}, { fill: "#eee" }, a), n), vB(this.props, e, r)), {}, {
index: r,
- className: xh("recharts-radial-bar-background-sector", String(n?.className)),
+ className: Sh("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ R.createElement(H0, l2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ R.createElement(U0, u2({ 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 = xh("recharts-area", n);
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: i }, r && /*#__PURE__*/ R.createElement(YR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(YR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(TIe, this.props))));
+ var i = Sh("recharts-area", n);
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: i }, r && /*#__PURE__*/ R.createElement(XR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(XR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(TIe, this.props))));
}
};
function kIe(e) {
- var t = R.useMemo(() => Z1(e.children, m$), [e.children]), n = R.useMemo(() => ({
+ var t = R.useMemo(() => Q1(e.children, h$), [e.children]), n = R.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: _U(e.stackId),
+ stackId: vU(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -66215,7 +66215,7 @@ function kIe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => pIe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? p2;
+ ]), r = Q((r) => pIe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? m2;
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(DIe, {
dataKey: e.dataKey,
sectors: r,
@@ -66226,9 +66226,9 @@ function kIe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ R.createElement(OIe, l2({}, e, { sectors: r })));
+ }), /*#__PURE__*/ R.createElement(OIe, u2({}, e, { sectors: r })));
}
-var m2 = {
+var h2 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
@@ -66243,14 +66243,14 @@ var m2 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- zIndex: IK.bar
+ zIndex: LK.bar
};
function AIe(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 ? p2 : (t ?? []).map((e, t) => {
+ return g == null || l == null ? m2 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = gU(n[r + t], i) : (b = fU(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 = yU({
+ if (n ? b = _U(n[r + t], i) : (b = pU(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 = bU({
axis: c,
ticks: l,
bandSize: u,
@@ -66261,7 +66261,7 @@ function AIe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = Zz(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = Qz(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -66273,7 +66273,7 @@ function AIe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = yU({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = bU({
axis: f,
ticks: g,
bandSize: u,
@@ -66284,11 +66284,11 @@ function AIe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = Zz(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = Qz(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
- return d2(d2(d2({}, e), T), {}, {
+ return f2(f2(f2({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -66300,38 +66300,38 @@ function AIe(e) {
}, _ && _[t] && _[t].props);
});
}
-function h2(e) {
- var t = yB(e, m2);
- return /*#__PURE__*/ R.createElement(m0, {
+function g2(e) {
+ var t = bB(e, h2);
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(_0, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(v0, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? m2.hide,
- angleAxisId: t.angleAxisId ?? m2.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? m2.radiusAxisId,
- stackId: _U(t.stackId),
+ hide: t.hide ?? h2.hide,
+ angleAxisId: t.angleAxisId ?? h2.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? h2.radiusAxisId,
+ stackId: vU(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ R.createElement(EIe, t), /*#__PURE__*/ R.createElement(kIe, l2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(EIe, t), /*#__PURE__*/ R.createElement(kIe, u2({}, t, { id: e }))));
}
-h2.displayName = "RadialBar";
+g2.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var g2 = (e) => {
- var { chartData: t } = e, n = KB(), r = FU();
- return (0, R.useEffect)(() => r ? () => {} : (n(c$(t)), () => {
- n(c$(void 0));
+var _2 = (e) => {
+ var { chartData: t } = e, n = qB(), r = IU();
+ return (0, R.useEffect)(() => r ? () => {} : (n(l$(t)), () => {
+ n(l$(void 0));
}), [
t,
n,
r
]), null;
-}, _2 = {
+}, v2 = {
x: 0,
y: 0,
width: 0,
@@ -66342,13 +66342,13 @@ var g2 = (e) => {
bottom: 0,
left: 0
}
-}, v2 = NH({
+}, y2 = PH({
name: "brush",
- initialState: _2,
+ initialState: v2,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? _2 : t.payload;
+ return t.payload == null ? v2 : t.payload;
} }
-}), { setBrushSettings: jIe } = v2.actions, MIe = v2.reducer, NIe = (e, t) => {
+}), { setBrushSettings: jIe } = y2.actions, MIe = y2.reducer, NIe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -66372,7 +66372,7 @@ function FIe(e) {
var IIe = function(e) {
var { width: t, height: n } = e, r = FIe(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);
-}, y2 = NH({
+}, b2 = PH({
name: "referenceElements",
initialState: {
dots: [],
@@ -66384,35 +66384,35 @@ var IIe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = bH(e).dots.findIndex((e) => e === t.payload);
+ var n = xH(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 = bH(e).areas.findIndex((e) => e === t.payload);
+ var n = xH(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(WW(t.payload));
+ e.lines.push(GW(t.payload));
},
removeLine: (e, t) => {
- var n = bH(e).lines.findIndex((e) => e === t.payload);
+ var n = xH(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: LIe, removeDot: RIe, addArea: zIe, removeArea: BIe, addLine: VIe, removeLine: HIe } = y2.actions, UIe = y2.reducer, b2 = /*#__PURE__*/ (0, R.createContext)(void 0), WIe = (e) => {
- var { children: t } = e, [n] = (0, R.useState)(`${tB("recharts")}-clip`), r = T0();
+}), { addDot: LIe, removeDot: RIe, addArea: zIe, removeArea: BIe, addLine: VIe, removeLine: HIe } = b2.actions, UIe = b2.reducer, x2 = /*#__PURE__*/ (0, R.createContext)(void 0), WIe = (e) => {
+ var { children: t } = e, [n] = (0, R.useState)(`${nB("recharts")}-clip`), r = E0();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ R.createElement(b2.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
+ return /*#__PURE__*/ R.createElement(x2.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, GIe = () => (0, R.useContext)(b2), KIe = class {
+}, GIe = () => (0, R.useContext)(x2), KIe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -66438,7 +66438,7 @@ var IIe = function(e) {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function x2(e, t) {
+function S2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66448,12 +66448,12 @@ function x2(e, t) {
}
return n;
}
-function S2(e) {
+function C2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? x2(Object(n), !0).forEach(function(t) {
+ t % 2 ? S2(Object(n), !0).forEach(function(t) {
qIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -66481,27 +66481,27 @@ function YIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function C2() {
- return C2 = Object.assign ? Object.assign.bind() : function(e) {
+function w2() {
+ return w2 = 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;
- }, C2.apply(null, arguments);
+ }, w2.apply(null, arguments);
}
var XIe = (e, t) => {
var n;
if (/*#__PURE__*/ R.isValidElement(e)) n = /*#__PURE__*/ R.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!cU(t.x1) || !cU(t.y1) || !cU(t.x2) || !cU(t.y2)) return null;
- n = /*#__PURE__*/ R.createElement("line", C2({}, t, { className: "recharts-reference-line-line" }));
+ if (!lU(t.x1) || !lU(t.y1) || !lU(t.x2) || !lU(t.y2)) return null;
+ n = /*#__PURE__*/ R.createElement("line", w2({}, t, { className: "recharts-reference-line-line" }));
}
return n;
}, ZIe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!cU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!lU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -66512,7 +66512,7 @@ var XIe = (e, t) => {
return r === "left" ? l.reverse() : l;
}, QIe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!cU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!lU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -66531,26 +66531,26 @@ var XIe = (e, t) => {
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
}, eLe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = eB(s);
- return eB(c) ? ZIe(c, u, r, a, t, n) : d ? QIe(s, u, r, i, e, n) : l != null && l.length === 2 ? $Ie(l, u, r, new KIe({
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = tB(s);
+ return tB(c) ? ZIe(c, u, r, a, t, n) : d ? QIe(s, u, r, i, e, n) : l != null && l.length === 2 ? $Ie(l, u, r, new KIe({
x: e,
y: t
})) : null;
};
function tLe(e) {
- var t = KB();
+ var t = qB();
return (0, R.useEffect)(() => (t(VIe(e)), () => {
t(HIe(e));
})), null;
}
function nLe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = FU(), s = GIe(), c = Q((e) => kX(e, t)), l = Q((e) => MX(e, n)), u = Q((e) => kZ(e, "xAxis", t, o)), d = Q((e) => kZ(e, "yAxis", n, o)), f = YU();
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = IU(), s = GIe(), c = Q((e) => AX(e, t)), l = Q((e) => NX(e, n)), u = Q((e) => AZ(e, "xAxis", t, o)), d = Q((e) => AZ(e, "yAxis", n, o)), f = XU();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
var p = eLe(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 = S2(S2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, GR(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = C2(C2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, KR(e)), {}, {
x1: g,
y1: _,
x2: v,
@@ -66561,10 +66561,10 @@ function nLe(e) {
x2: v,
y2: y
});
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: xh("recharts-reference-line", i) }, XIe(r, b), /*#__PURE__*/ R.createElement(q$, C2({}, x, {
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-reference-line", i) }, XIe(r, b), /*#__PURE__*/ R.createElement(J$, w2({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ R.createElement(t1, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ R.createElement(n1, { label: e.label }), e.children)));
}
var rLe = {
ifOverflow: "discard",
@@ -66576,10 +66576,10 @@ var rLe = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: IK.line
+ zIndex: LK.line
};
-function w2(e) {
- var t = yB(e, rLe);
+function T2(e) {
+ var t = bB(e, rLe);
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(tLe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
@@ -66589,10 +66589,10 @@ function w2(e) {
segment: t.segment
}), /*#__PURE__*/ R.createElement(nLe, t));
}
-w2.displayName = "ReferenceLine";
+T2.displayName = "ReferenceLine";
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function T2(e, t) {
+function E2(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -66619,21 +66619,21 @@ function aLe(e, t, n) {
end: r ? i : a
};
}
-function E2(e, t, n, r, i) {
+function D2(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 oLe(e, t) {
- return T2(e, t + 1);
+ return E2(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
function sLe(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: T2(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || E2(e, p, f, u, s);
+ if (t === void 0) return { v: E2(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || D2(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 [];
@@ -66645,7 +66645,7 @@ function cLe(e, t, n, r, i) {
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 || E2(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || D2(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);
@@ -66661,7 +66661,7 @@ function cLe(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function D2(e, t) {
+function O2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66671,12 +66671,12 @@ function D2(e, t) {
}
return n;
}
-function O2(e) {
+function k2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? D2(Object(n), !0).forEach(function(t) {
+ t % 2 ? O2(Object(n), !0).forEach(function(t) {
lLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -66711,9 +66711,9 @@ function fLe(e, t, n, r, i) {
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 = O2(O2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = O2(O2({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && E2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = O2(O2({}, l), {}, { isShow: !0 }));
+ a[t] = l = k2(k2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = k2(k2({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && D2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = k2(k2({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
@@ -66723,7 +66723,7 @@ function pLe(e, t, n, r, i, 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 = O2(O2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && E2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = O2(O2({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = k2(k2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && D2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = k2(k2({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -66732,17 +66732,17 @@ function pLe(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 = O2(O2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = O2(O2({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && E2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = O2(O2({}, a), {}, { isShow: !0 }));
+ o[t] = a = k2(k2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = k2(k2({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && D2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = k2(k2({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function k2(e, t, n) {
+function A2(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) || lG.isSsr) return oLe(i, Z(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? b$(u, {
+ if (Z(c) || uG.isSsr) return oLe(i, Z(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? x$(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -66750,14 +66750,14 @@ function k2(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? iLe(b$(i, {
+ return p === "width" ? iLe(x$(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : b$(i, {
+ }), m, d) : x$(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? Zz(_.coordinate - g.coordinate) : 1, y = aLe(a, v, p);
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? Qz(_.coordinate - g.coordinate) : 1, y = aLe(a, v, p);
return c === "equidistantPreserveStart" ? sLe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? cLe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? pLe(v, y, h, i, o, c === "preserveStartEnd") : fLe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
@@ -66775,7 +66775,7 @@ var mLe = (e) => {
return Math.round(l);
}
return 0;
-}, A2 = NH({
+}, j2 = PH({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -66784,14 +66784,14 @@ var mLe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = WW(i);
+ e[n][r] = GW(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: hLe, removeRenderedTicks: gLe } = A2.actions, _Le = A2.reducer, vLe = [
+}), { setRenderedTicks: hLe, removeRenderedTicks: gLe } = j2.actions, _Le = j2.reducer, vLe = [
"axisLine",
"width",
"height",
@@ -66819,16 +66819,16 @@ function bLe(e, t) {
}
return n;
}
-function j2() {
- return j2 = Object.assign ? Object.assign.bind() : function(e) {
+function M2() {
+ return M2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, j2.apply(null, arguments);
+ }, M2.apply(null, arguments);
}
-function M2(e, t) {
+function N2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66838,12 +66838,12 @@ function M2(e, t) {
}
return n;
}
-function N2(e) {
+function P2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? M2(Object(n), !0).forEach(function(t) {
+ t % 2 ? N2(Object(n), !0).forEach(function(t) {
xLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -66871,7 +66871,7 @@ function CLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var P2 = {
+var F2 = {
x: 0,
y: 0,
width: 0,
@@ -66893,15 +66893,15 @@ var P2 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: IK.axis
+ zIndex: LK.axis
};
function wLe(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 = N2(N2(N2({}, c), UR(s)), {}, { fill: "none" });
+ var l = P2(P2(P2({}, c), WR(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = N2(N2({}, l), {}, {
+ l = P2(P2({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -66909,14 +66909,14 @@ function wLe(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = N2(N2({}, l), {}, {
+ l = P2(P2({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ R.createElement("line", j2({}, l, { className: xh("recharts-cartesian-axis-line", Jz(s, "className")) }));
+ return /*#__PURE__*/ R.createElement("line", M2({}, l, { className: Sh("recharts-cartesian-axis-line", Yz(s, "className")) }));
}
function TLe(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;
@@ -66961,18 +66961,18 @@ function DLe(e, t) {
}
}
function OLe(e) {
- var { option: t, tickProps: n, value: r } = e, i, a = xh(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, N2(N2({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(N2(N2({}, n), {}, { className: a }));
+ var { option: t, tickProps: n, value: r } = e, i, a = Sh(n.className, "recharts-cartesian-axis-tick-value");
+ if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, P2(P2({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(P2(P2({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = xh(o, F1(t))), i = /*#__PURE__*/ R.createElement(z$, j2({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = Sh(o, I1(t))), i = /*#__PURE__*/ R.createElement(B$, M2({}, n, { className: o }), r);
}
return i;
}
function kLe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = KB();
- return (0, R.useEffect)(() => r == null || n == null ? lB : (i(hLe({
+ var { ticks: t, axisType: n, axisId: r } = e, i = qB();
+ return (0, R.useEffect)(() => r == null || n == null ? uB : (i(hLe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -66994,16 +66994,16 @@ function kLe(e) {
]), null;
}
var ALe = /*#__PURE__*/ (0, R.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 = k2(N2(N2({}, b), {}, { ticks: n }), v, y), T = UR(b), E = WR(r), D = N$(T.textAnchor) ? T.textAnchor : ELe(u, d), O = DLe(u, d), k = {};
+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = A2(P2(P2({}, b), {}, { ticks: n }), v, y), T = WR(b), E = GR(r), D = P$(T.textAnchor) ? T.textAnchor : ELe(u, d), O = DLe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = N2(N2({}, T), {}, { fill: "none" }, k), j = w.map((e) => N2({ entry: e }, TLe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = P2(P2({}, T), {}, { fill: "none" }, k), j = w.map((e) => P2({ entry: e }, TLe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ R.createElement(YR, {
+ return /*#__PURE__*/ R.createElement(XR, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ R.createElement("line", j2({}, A, n, { className: xh("recharts-cartesian-axis-tick-line", Jz(i, "className")) })));
+ }, i && /*#__PURE__*/ R.createElement("line", M2({}, A, n, { className: Sh("recharts-cartesian-axis-tick-line", Yz(i, "className")) })));
}), N = j.map((e, t) => {
- var { entry: n, tick: i } = e, u = N2(N2({}, N2(N2(N2(N2({ verticalAnchor: O }, T), {}, {
+ var { entry: n, tick: i } = e, u = P2(P2({}, P2(P2(P2(P2({ verticalAnchor: O }, T), {}, {
textAnchor: D,
stroke: "none",
fill: a
@@ -67014,10 +67014,10 @@ var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ R.createElement(YR, j2({
+ return /*#__PURE__*/ R.createElement(XR, M2({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, _B(x, n, t)), r && /*#__PURE__*/ R.createElement(OLe, {
+ }, vB(x, n, t)), r && /*#__PURE__*/ R.createElement(OLe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
@@ -67027,7 +67027,7 @@ var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ R.createElement(ZQ, { zIndex: IK.label }, /*#__PURE__*/ R.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ R.createElement(QQ, { zIndex: LK.label }, /*#__PURE__*/ R.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
@@ -67051,7 +67051,7 @@ var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(ZQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(YR, { className: xh("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(wLe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(QQ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(XR, { className: Sh("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(wLe, {
x: e.x,
y: e.y,
width: r,
@@ -67059,7 +67059,7 @@ var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: UR(e)
+ otherSvgProps: WR(e)
}), /*#__PURE__*/ R.createElement(ALe, {
ref: g,
axisType: c,
@@ -67084,22 +67084,22 @@ var ALe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ R.createElement(q$, {
+ }), /*#__PURE__*/ R.createElement(J$, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ R.createElement(t1, {
+ }, /*#__PURE__*/ R.createElement(n1, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), F2 = /*#__PURE__*/ R.forwardRef((e, t) => {
- var n = yB(e, P2);
- return /*#__PURE__*/ R.createElement(jLe, j2({}, n, { ref: t }));
+}), I2 = /*#__PURE__*/ R.forwardRef((e, t) => {
+ var n = bB(e, F2);
+ return /*#__PURE__*/ R.createElement(jLe, M2({}, n, { ref: t }));
});
-F2.displayName = "CartesianAxis";
+I2.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
var MLe = [
@@ -67109,7 +67109,7 @@ var MLe = [
"y2",
"key"
], NLe = ["offset"], PLe = ["xAxisId", "yAxisId"], FLe = ["xAxisId", "yAxisId"];
-function I2(e, t) {
+function L2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67119,12 +67119,12 @@ function I2(e, t) {
}
return n;
}
-function L2(e) {
+function R2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? I2(Object(n), !0).forEach(function(t) {
+ t % 2 ? L2(Object(n), !0).forEach(function(t) {
ILe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -67152,16 +67152,16 @@ function RLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function R2() {
- return R2 = Object.assign ? Object.assign.bind() : function(e) {
+function z2() {
+ return z2 = 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;
- }, R2.apply(null, arguments);
+ }, z2.apply(null, arguments);
}
-function z2(e, t) {
+function B2(e, t) {
if (e == null) return {};
var n, r, i = zLe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -67195,13 +67195,13 @@ var BLe = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function B2(e) {
+function V2(e) {
var { option: t, lineItemProps: n } = e, r;
if (/*#__PURE__*/ R.isValidElement(t)) r = /*#__PURE__*/ R.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 = UR(z2(n, MLe)) ?? {}, { offset: u } = l, d = z2(l, NLe);
- r = /*#__PURE__*/ R.createElement("line", R2({}, d, {
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = WR(B2(n, MLe)) ?? {}, { offset: u } = l, d = B2(l, NLe);
+ r = /*#__PURE__*/ R.createElement("line", z2({}, d, {
x1: i,
y1: a,
x2: o,
@@ -67215,8 +67215,8 @@ function B2(e) {
function VLe(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 = z2(e, PLe), c = i.map((e, i) => {
- var a = L2(L2({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = B2(e, PLe), c = i.map((e, i) => {
+ var a = R2(R2({}, s), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -67224,7 +67224,7 @@ function VLe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(B2, {
+ return /*#__PURE__*/ R.createElement(V2, {
key: `line-${i}`,
option: r,
lineItemProps: a
@@ -67235,8 +67235,8 @@ function VLe(e) {
function HLe(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 = z2(e, FLe), c = i.map((e, i) => {
- var a = L2(L2({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = B2(e, FLe), c = i.map((e, i) => {
+ var a = R2(R2({}, s), {}, {
x1: e,
y1: t,
x2: e,
@@ -67244,7 +67244,7 @@ function HLe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(B2, {
+ return /*#__PURE__*/ R.createElement(V2, {
option: r,
lineItemProps: a,
key: `line-${i}`
@@ -67300,8 +67300,8 @@ function WLe(e) {
}
var GLe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return mU(k2(L2(L2(L2({}, P2), n), {}, {
- ticks: hU(n, !0),
+ return hU(A2(R2(R2(R2({}, F2), n), {}, {
+ ticks: gU(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -67311,8 +67311,8 @@ var GLe = (e, t) => {
})), a.left, a.left + a.width, t);
}, KLe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return mU(k2(L2(L2(L2({}, P2), n), {}, {
- ticks: hU(n, !0),
+ return hU(A2(R2(R2(R2({}, F2), n), {}, {
+ ticks: gU(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -67332,36 +67332,36 @@ var GLe = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: IK.grid
+ zIndex: LK.grid
};
-function V2(e) {
- var t = ZU(), n = QU(), r = XU(), i = L2(L2({}, yB(e, qLe)), {}, {
+function H2(e) {
+ var t = QU(), n = $U(), r = ZU(), i = R2(R2({}, bB(e, qLe)), {}, {
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 = FU(), h = Q((e) => zZ(e, "xAxis", a, m)), g = Q((e) => zZ(e, "yAxis", o, m));
- if (!lU(l) || !lU(u) || !Z(s) || !Z(c)) return null;
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = IU(), h = Q((e) => BZ(e, "xAxis", a, m)), g = Q((e) => BZ(e, "yAxis", o, m));
+ if (!uU(l) || !uU(u) || !Z(s) || !Z(c)) return null;
var _ = i.verticalCoordinatesGenerator || GLe, v = i.horizontalCoordinatesGenerator || KLe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
- yAxis: g ? L2(L2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
+ yAxis: g ? R2(R2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, x ? !0 : d);
- RU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ zU(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 ? L2(L2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
+ xAxis: h ? R2(R2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, C ? !0 : d);
- RU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ zU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(BLe, {
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(BLe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -67369,22 +67369,22 @@ function V2(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ R.createElement(ULe, R2({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(WLe, R2({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(VLe, R2({}, i, {
+ }), /*#__PURE__*/ R.createElement(ULe, z2({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(WLe, z2({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(VLe, z2({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ R.createElement(HLe, R2({}, i, {
+ })), /*#__PURE__*/ R.createElement(HLe, z2({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
yAxis: g
}))));
}
-V2.displayName = "CartesianGrid";
+H2.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var H2 = NH({
+var U2 = PH({
name: "errorBars",
initialState: {},
reducers: {
@@ -67401,7 +67401,7 @@ var H2 = NH({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: JLe, replaceErrorBar: YLe, removeErrorBar: XLe } = H2.actions, ZLe = H2.reducer, QLe = ["children"];
+}), { addErrorBar: JLe, replaceErrorBar: YLe, removeErrorBar: XLe } = U2.actions, ZLe = U2.reducer, QLe = ["children"];
function $Le(e, t) {
if (e == null) return {};
var n, r, i = eRe(e, t);
@@ -67431,22 +67431,22 @@ var tRe = /*#__PURE__*/ (0, R.createContext)({
}),
errorBarOffset: 0
});
-function U2(e) {
+function W2(e) {
var { children: t } = e, n = $Le(e, QLe);
return /*#__PURE__*/ R.createElement(tRe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function W2(e, t) {
- var n = Q((t) => kX(t, e)), r = Q((e) => MX(e, t)), i = n?.allowDataOverflow ?? DX.allowDataOverflow, a = r?.allowDataOverflow ?? AX.allowDataOverflow;
+function G2(e, t) {
+ var n = Q((t) => AX(t, e)), r = Q((e) => NX(e, t)), i = n?.allowDataOverflow ?? OX.allowDataOverflow, a = r?.allowDataOverflow ?? jX.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
needClipY: a
};
}
-function G2(e) {
- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = T0(), { needClipX: a, needClipY: o, needClip: s } = W2(t, n);
+function K2(e) {
+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = E0(), { needClipX: a, needClipY: o, needClip: s } = G2(t, n);
if (!s || !i) return null;
var { x: c, y: l, width: u, height: d } = i;
return /*#__PURE__*/ R.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ R.createElement("rect", {
@@ -67458,25 +67458,25 @@ function G2(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var K2 = (e, t, n, r) => WZ(e, "xAxis", t, r), q2 = (e, t, n, r) => UZ(e, "xAxis", t, r), J2 = (e, t, n, r) => WZ(e, "yAxis", n, r), Y2 = (e, t, n, r) => UZ(e, "yAxis", n, r), nRe = $([
- $U,
- K2,
- J2,
+var q2 = (e, t, n, r) => GZ(e, "xAxis", t, r), J2 = (e, t, n, r) => WZ(e, "xAxis", t, r), Y2 = (e, t, n, r) => GZ(e, "yAxis", n, r), X2 = (e, t, n, r) => WZ(e, "yAxis", n, r), nRe = $([
+ eW,
q2,
- Y2
-], (e, t, n, r, i) => pU(e, "xAxis") ? CU(t, r, !1) : CU(n, i, !1)), rRe = (e, t, n, r, i) => i;
+ Y2,
+ J2,
+ X2
+], (e, t, n, r, i) => mU(e, "xAxis") ? wU(t, r, !1) : wU(n, i, !1)), rRe = (e, t, n, r, i) => i;
function iRe(e) {
return e.type === "line";
}
var aRe = $([
- $U,
- K2,
- J2,
+ eW,
q2,
Y2,
- $([RX, rRe], (e, t) => e.filter(iRe).find((e) => e.id === t)),
+ J2,
+ X2,
+ $([zX, rRe], (e, t) => e.filter(iRe).find((e) => e.id === t)),
nRe,
- fK
+ pK
], (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")) {
@@ -67495,8 +67495,8 @@ var aRe = $([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function X2(e) {
- var t = WR(e), n = 3, r = 2;
+function Z2(e) {
+ var t = GR(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), {
@@ -67533,16 +67533,16 @@ var oRe = ["id"], sRe = [
"yAxisId",
"id"
];
-function Z2() {
- return Z2 = Object.assign ? Object.assign.bind() : function(e) {
+function Q2() {
+ return Q2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Z2.apply(null, arguments);
+ }, Q2.apply(null, arguments);
}
-function Q2(e, t) {
+function $2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67552,12 +67552,12 @@ function Q2(e, t) {
}
return n;
}
-function $2(e) {
+function e4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Q2(Object(n), !0).forEach(function(t) {
+ t % 2 ? $2(Object(n), !0).forEach(function(t) {
lRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -67585,7 +67585,7 @@ function dRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function e4(e, t) {
+function t4(e, t) {
if (e == null) return {};
var n, r, i = fRe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -67610,20 +67610,20 @@ var pRe = (e) => {
dataKey: t,
type: i,
color: r,
- value: TU(n, t),
+ value: EU(n, t),
payload: e
}];
}, mRe = /*#__PURE__*/ R.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: lB,
+ getPosition: uB,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: TU(o, t),
+ name: EU(o, t),
hide: s,
type: l,
color: r,
@@ -67631,15 +67631,15 @@ var pRe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: d });
-}), t4 = (e, t) => `${t}px ${e}px`;
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: d });
+}), n4 = (e, t) => `${t}px ${e}px`;
function hRe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
var gRe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
- if (!r) return t4(t, e);
+ if (!r) return n4(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) {
@@ -67655,8 +67655,8 @@ var gRe = (e, t, n) => {
].map((e) => `${e}px`).join(", ");
};
function _Re(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = UR(e4(r, oRe));
- return /*#__PURE__*/ R.createElement(x0, {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = WR(t4(r, oRe));
+ return /*#__PURE__*/ R.createElement(S0, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -67677,7 +67677,7 @@ function vRe(e) {
upperWidth: 0,
height: 0
};
- return $2($2({}, t), {}, {
+ return e4(e4({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -67685,10 +67685,10 @@ function vRe(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, n);
}
-function n4(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 = $2($2({}, GR(e4(a, sRe))), {}, {
+function r4(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 = e4(e4({}, KR(t4(a, sRe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -67698,7 +67698,7 @@ function n4(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(s0, Z2({
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(c0, Q2({
shapeType: "curve",
option: u
}, d, { pathRef: n })), /*#__PURE__*/ R.createElement(_Re, {
@@ -67715,7 +67715,7 @@ function yRe(e) {
}
}
function bRe(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 = HG(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
+ var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = UG(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, R.useCallback)(() => {
typeof g == "function" && g(), x(!0);
@@ -67725,7 +67725,7 @@ function bRe(e) {
return /*#__PURE__*/ R.createElement(vRe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ R.createElement(VG, {
+ }, n.children, /*#__PURE__*/ R.createElement(HG, {
animationId: v,
begin: l,
duration: u,
@@ -67735,26 +67735,26 @@ function bRe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = iB(D, T + D, e), u = Math.min(l, T), d = c ? s ? gRe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : t4(T, u) : s == null ? void 0 : String(s);
+ var l = aB(D, T + D, e), u = Math.min(l, T), d = c ? s ? gRe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : n4(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 $2($2({}, t), {}, {
- x: iB(i.x, t.x, e),
- y: iB(i.y, t.y, e)
+ return e4(e4({}, t), {}, {
+ x: aB(i.x, t.x, e),
+ y: aB(i.y, t.y, e)
});
}
- return f ? $2($2({}, t), {}, {
- x: iB(p * 2, t.x, e),
- y: iB(m / 2, t.y, e)
- }) : $2($2({}, t), {}, {
+ return f ? e4(e4({}, t), {}, {
+ x: aB(p * 2, t.x, e),
+ y: aB(m / 2, t.y, e)
+ }) : e4(e4({}, t), {}, {
x: t.x,
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ R.createElement(n4, {
+ return i.current = g, /*#__PURE__*/ R.createElement(r4, {
props: n,
points: g,
clipPathId: t,
@@ -67762,14 +67762,14 @@ function bRe(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ R.createElement(n4, {
+ return /*#__PURE__*/ R.createElement(r4, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ R.createElement(c1, { label: n.label }));
+ }), /*#__PURE__*/ R.createElement(l1, { label: n.label }));
}
function xRe(e) {
var { clipPathId: t, props: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(0), a = (0, R.useRef)(null);
@@ -67785,13 +67785,13 @@ var SRe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: fU(e.payload, t)
+ errorVal: pU(e.payload, t)
}), CRe = class extends R.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 = xh("recharts-line", r), m = u, { r: h, strokeWidth: g } = X2(t), _ = Q1(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: f }, /*#__PURE__*/ R.createElement(YR, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(G2, {
+ var p = Sh("recharts-line", r), m = u, { r: h, strokeWidth: g } = Z2(t), _ = $1(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: f }, /*#__PURE__*/ R.createElement(XR, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K2, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -67800,7 +67800,7 @@ var SRe = (e, t) => ({
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ R.createElement(U2, {
+ }))), /*#__PURE__*/ R.createElement(W2, {
xAxisId: i,
yAxisId: a,
data: n,
@@ -67809,7 +67809,7 @@ var SRe = (e, t) => ({
}, /*#__PURE__*/ R.createElement(xRe, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ R.createElement(O0, {
+ }))), /*#__PURE__*/ R.createElement(k0, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -67817,7 +67817,7 @@ var SRe = (e, t) => ({
clipPath: y
}));
}
-}, r4 = {
+}, i4 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -67834,14 +67834,14 @@ var SRe = (e, t) => ({
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: IK.line,
+ zIndex: LK.line,
type: "linear"
};
function wRe(e) {
- var t = yB(e, r4), { 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 = e4(t, cRe), { needClip: _ } = W2(p, m), v = T0(), y = eW(), b = FU(), x = Q((e) => aRe(e, p, m, b, h));
+ var t = bB(e, i4), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = t4(t, cRe), { needClip: _ } = G2(p, m), v = E0(), y = tW(), b = IU(), x = Q((e) => aRe(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__*/ R.createElement(CRe, Z2({}, g, {
+ return /*#__PURE__*/ R.createElement(CRe, Q2({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -67868,20 +67868,20 @@ function wRe(e) {
function TRe(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 = fU(e, o);
+ var l = pU(e, o);
if (t === "horizontal") return {
- x: vU({
+ x: yU({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (oB(l) ? null : r.scale.map(l)) ?? null,
+ y: (sB(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = oB(l) ? null : n.scale.map(l), d = vU({
+ var u = sB(l) ? null : n.scale.map(l), d = yU({
axis: r,
ticks: a,
bandSize: s,
@@ -67897,11 +67897,11 @@ function TRe(e) {
}).filter(Boolean);
}
function ERe(e) {
- var t = yB(e, r4), n = FU();
- return /*#__PURE__*/ R.createElement(m0, {
+ var t = bB(e, i4), n = IU();
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(f0, { legendPayload: pRe(t) }), /*#__PURE__*/ R.createElement(mRe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p0, { legendPayload: pRe(t) }), /*#__PURE__*/ R.createElement(mRe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -67912,7 +67912,7 @@ function ERe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(g0, {
+ }), /*#__PURE__*/ R.createElement(_0, {
type: "line",
id: e,
data: t.data,
@@ -67922,44 +67922,44 @@ function ERe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ R.createElement(wRe, Z2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(wRe, Q2({}, t, { id: e }))));
}
-var i4 = /*#__PURE__*/ R.memo(ERe, QW);
-i4.displayName = "Line";
+var a4 = /*#__PURE__*/ R.memo(ERe, $W);
+a4.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function a4(e, t) {
+function o4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function o4(e, t) {
+function s4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var s4 = (e, t, n) => WZ(e, "xAxis", a4(e, t), n), c4 = (e, t, n) => UZ(e, "xAxis", a4(e, t), n), l4 = (e, t, n) => WZ(e, "yAxis", o4(e, t), n), u4 = (e, t, n) => UZ(e, "yAxis", o4(e, t), n), DRe = $([
- $U,
- s4,
- l4,
+var c4 = (e, t, n) => GZ(e, "xAxis", o4(e, t), n), l4 = (e, t, n) => WZ(e, "xAxis", o4(e, t), n), u4 = (e, t, n) => GZ(e, "yAxis", s4(e, t), n), d4 = (e, t, n) => WZ(e, "yAxis", s4(e, t), n), DRe = $([
+ eW,
c4,
- u4
-], (e, t, n, r, i) => pU(e, "xAxis") ? CU(t, r, !1) : CU(n, i, !1)), d4 = $([RX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), f4 = (e) => pU($U(e), "xAxis") ? "yAxis" : "xAxis", ORe = (e, t) => f4(e) === "yAxis" ? o4(e, t) : a4(e, t), kRe = $([
- $U,
- s4,
+ u4,
l4,
+ d4
+], (e, t, n, r, i) => mU(e, "xAxis") ? wU(t, r, !1) : wU(n, i, !1)), f4 = $([zX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), p4 = (e) => mU(eW(e), "xAxis") ? "yAxis" : "xAxis", ORe = (e, t) => p4(e) === "yAxis" ? s4(e, t) : o4(e, t), kRe = $([
+ eW,
c4,
u4,
- $([d4, (e, t, n) => tZ(e, f4(e), ORe(e, t), n)], (e, t) => {
+ l4,
+ d4,
+ $([f4, (e, t, n) => nZ(e, p4(e), ORe(e, t), n)], (e, t) => {
if (e != null && t != null) {
- var { stackId: n } = e, r = nq(e);
+ var { stackId: n } = e, r = rq(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]]);
}
}
}),
- pK,
+ mK,
DRe,
- d4,
+ f4,
qEe
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
@@ -67995,16 +67995,16 @@ var s4 = (e, t, n) => WZ(e, "xAxis", a4(e, t), n), c4 = (e, t, n) => UZ(e, "xAxi
"xAxisId",
"yAxisId"
];
-function p4() {
- return p4 = Object.assign ? Object.assign.bind() : function(e) {
+function m4() {
+ return m4 = 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;
- }, p4.apply(null, arguments);
+ }, m4.apply(null, arguments);
}
-function m4(e, t) {
+function h4(e, t) {
if (e == null) return {};
var n, r, i = MRe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -68022,7 +68022,7 @@ function MRe(e, t) {
}
return n;
}
-function h4(e, t) {
+function g4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68032,12 +68032,12 @@ function h4(e, t) {
}
return n;
}
-function g4(e) {
+function _4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h4(Object(n), !0).forEach(function(t) {
+ t % 2 ? g4(Object(n), !0).forEach(function(t) {
NRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h4(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -68065,7 +68065,7 @@ function FRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function _4(e, t) {
+function v4(e, t) {
return e && e !== "none" ? e : t;
}
var IRe = (e) => {
@@ -68074,33 +68074,33 @@ var IRe = (e) => {
inactive: o,
dataKey: t,
type: a,
- color: _4(r, i),
- value: TU(n, t),
+ color: v4(r, i),
+ value: EU(n, t),
payload: e
}];
}, LRe = /*#__PURE__*/ R.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: lB,
+ getPosition: uB,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: TU(o, t),
+ name: EU(o, t),
hide: s,
type: l,
- color: _4(r, a),
+ color: v4(r, a),
unit: c,
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: d });
});
function RRe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = UR(r);
- return /*#__PURE__*/ R.createElement(x0, {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = WR(r);
+ return /*#__PURE__*/ R.createElement(S0, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -68121,7 +68121,7 @@ function zRe(e) {
upperWidth: 0,
height: 0
};
- return g4(g4({}, t), {}, {
+ return _4(_4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -68129,11 +68129,11 @@ function zRe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, n);
}
-function v4(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 = m4(a, ARe), p = UR(f), m = GR(f);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(YR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(CG, p4({}, m, {
+function y4(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 = h4(a, ARe), p = WR(f), m = KR(f);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(XR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(wG, m4({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -68142,14 +68142,14 @@ function v4(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ R.createElement(CG, p4({}, p, {
+ })), c !== "none" && /*#__PURE__*/ R.createElement(wG, m4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(CG, p4({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(wG, m4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
@@ -68164,7 +68164,7 @@ function v4(e) {
}
function BRe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!cU(a) || !cU(o)) return null;
+ if (!lU(a) || !lU(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__*/ R.createElement("rect", {
x: 0,
@@ -68175,7 +68175,7 @@ function BRe(e) {
}
function VRe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!cU(a) || !cU(o)) return null;
+ if (!lU(a) || !lU(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__*/ R.createElement("rect", {
x: a < o ? a : a - s,
@@ -68199,10 +68199,10 @@ function HRe(e) {
});
}
function URe(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 = HG((0, R.useMemo)(() => ({
+ var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = UG((0, R.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = tW(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = nW(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, R.useCallback)(() => {
typeof f == "function" && f(), _(!0);
@@ -68212,7 +68212,7 @@ function URe(e) {
return /*#__PURE__*/ R.createElement(zRe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ R.createElement(VG, {
+ }, r.children, /*#__PURE__*/ R.createElement(HG, {
animationId: m,
begin: l,
duration: u,
@@ -68227,24 +68227,24 @@ function URe(e) {
var r = Math.floor(n * l);
if (x[r]) {
var i = x[r];
- return g4(g4({}, t), {}, {
- x: iB(i.x, t.x, e),
- y: iB(i.y, t.y, e)
+ return _4(_4({}, t), {}, {
+ x: aB(i.x, t.x, e),
+ y: aB(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? iB(S, s, e) : oB(s) || Qz(s) ? iB(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? aB(S, s, e) : sB(s) || $z(s) ? aB(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
- return g4(g4({}, t), {}, {
- x: iB(i.x, t.x, e),
- y: iB(i.y, t.y, e)
+ return _4(_4({}, t), {}, {
+ x: aB(i.x, t.x, e),
+ y: aB(i.y, t.y, e)
});
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(v4, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(y4, {
points: u,
baseLine: d,
needClip: t,
@@ -68252,20 +68252,20 @@ function URe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(YR, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(HRe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(XR, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(HRe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ R.createElement(YR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(v4, {
+ }))), /*#__PURE__*/ R.createElement(XR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(y4, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ R.createElement(c1, { label: r.label }));
+ }), /*#__PURE__*/ R.createElement(l1, { label: r.label }));
}
function WRe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, R.useRef)(null), a = (0, R.useRef)();
@@ -68281,8 +68281,8 @@ var GRe = class extends R.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 = xh("recharts-area", r), h = d, { r: g, strokeWidth: _ } = X2(t), v = Q1(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: p }, /*#__PURE__*/ R.createElement(YR, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(G2, {
+ var m = Sh("recharts-area", r), h = d, { r: g, strokeWidth: _ } = Z2(t), v = $1(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: p }, /*#__PURE__*/ R.createElement(XR, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K2, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -68295,15 +68295,15 @@ var GRe = class extends R.PureComponent {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ R.createElement(O0, {
+ })), /*#__PURE__*/ R.createElement(k0, {
points: n,
- mainColor: _4(this.props.stroke, this.props.fill),
+ mainColor: v4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(O0, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(k0, {
points: f,
- mainColor: _4(this.props.stroke, this.props.fill),
+ mainColor: v4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
@@ -68327,13 +68327,13 @@ var GRe = class extends R.PureComponent {
label: !1,
xAxisId: 0,
yAxisId: 0,
- zIndex: IK.area
+ zIndex: LK.area
};
function qRe(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 = m4(e, jRe), g = eW(), _ = zQ(), { needClip: v } = W2(p, m), y = FU(), { points: b, isRange: x, baseLine: S } = Q((t) => kRe(t, e.id, y)) ?? {}, C = T0();
+ 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 = h4(e, jRe), g = tW(), _ = BQ(), { needClip: v } = G2(p, m), y = IU(), { points: b, isRange: x, baseLine: S } = Q((t) => kRe(t, e.id, y)) ?? {}, C = E0();
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__*/ R.createElement(GRe, p4({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ R.createElement(GRe, m4({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -68374,12 +68374,12 @@ function YRe(e) {
var a;
if (m) a = i[u + n];
else {
- var o = fU(e, r);
+ var o = pU(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && fU(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && pU(e, r) == null;
return g ? {
- x: vU({
+ x: yU({
axis: s,
ticks: d,
bandSize: p,
@@ -68391,7 +68391,7 @@ function YRe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: vU({
+ y: yU({
axis: c,
ticks: f,
bandSize: p,
@@ -68420,11 +68420,11 @@ function YRe(e) {
};
}
function XRe(e) {
- var t = yB(e, KRe), n = FU();
- return /*#__PURE__*/ R.createElement(m0, {
+ var t = bB(e, KRe), n = IU();
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(f0, { legendPayload: IRe(t) }), /*#__PURE__*/ R.createElement(LRe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p0, { legendPayload: IRe(t) }), /*#__PURE__*/ R.createElement(LRe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -68435,7 +68435,7 @@ function XRe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(g0, {
+ }), /*#__PURE__*/ R.createElement(_0, {
type: "area",
id: e,
data: t.data,
@@ -68443,16 +68443,16 @@ function XRe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: _U(t.stackId),
+ stackId: vU(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ R.createElement(qRe, p4({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(qRe, m4({}, t, { id: e }))));
}
-var y4 = /*#__PURE__*/ R.memo(XRe, QW);
-y4.displayName = "Area";
+var b4 = /*#__PURE__*/ R.memo(XRe, $W);
+b4.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
var ZRe = "Invariant failed";
@@ -68461,17 +68461,17 @@ function QRe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-function b4() {
- return b4 = Object.assign ? Object.assign.bind() : function(e) {
+function x4() {
+ return x4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, b4.apply(null, arguments);
+ }, x4.apply(null, arguments);
}
-function x4(e) {
- return /*#__PURE__*/ R.createElement(s0, b4({
+function S4(e) {
+ return /*#__PURE__*/ R.createElement(c0, x4({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
@@ -68481,71 +68481,71 @@ var $Re = 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) || oB(n);
+ var i = Z(n) || sB(n);
return i ? e(n, r) : (!i && QRe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, eze = (e, t, n) => n, S4 = $([RX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), tze = $([S4], (e) => e?.maxBarSize), nze = (e, t, n, r) => r, rze = $([
- $U,
- RX,
- a4,
+}, eze = (e, t, n) => n, C4 = $([zX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), tze = $([C4], (e) => e?.maxBarSize), nze = (e, t, n, r) => r, rze = $([
+ eW,
+ zX,
o4,
+ s4,
eze
], (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")), ize = (e, t, n) => {
- var r = $U(e), i = a4(e, t), a = o4(e, t);
- if (i != null && a != null) return r === "horizontal" ? tZ(e, "yAxis", a, n) : tZ(e, "xAxis", i, n);
+ var r = eW(e), i = o4(e, t), a = s4(e, t);
+ if (i != null && a != null) return r === "horizontal" ? nZ(e, "yAxis", a, n) : nZ(e, "xAxis", i, n);
}, aze = $([
rze,
- kK,
+ AK,
(e, t) => {
- var n = $U(e), r = a4(e, t), i = o4(e, t);
- if (r != null && i != null) return n === "horizontal" ? IZ(e, "xAxis", r) : IZ(e, "yAxis", i);
+ var n = eW(e), r = o4(e, t), i = s4(e, t);
+ if (r != null && i != null) return n === "horizontal" ? LZ(e, "xAxis", r) : LZ(e, "yAxis", i);
}
-], W0), oze = (e, t, n) => {
- var r = S4(e, t);
+], G0), oze = (e, t, n) => {
+ var r = C4(e, t);
if (r == null) return 0;
- var i = a4(e, t), a = o4(e, t);
+ var i = o4(e, t), a = s4(e, t);
if (i == null || a == null) return 0;
- var o = $U(e), s = EK(e), { maxBarSize: c } = r, l = oB(c) ? s : c, u, d;
- return o === "horizontal" ? (u = WZ(e, "xAxis", i, n), d = UZ(e, "xAxis", i, n)) : (u = WZ(e, "yAxis", a, n), d = UZ(e, "yAxis", a, n)), CU(u, d, !0) ?? l ?? 0;
-}, C4 = (e, t, n) => {
- var r = $U(e), i = a4(e, t), a = o4(e, t);
+ var o = eW(e), s = DK(e), { maxBarSize: c } = r, l = sB(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = GZ(e, "xAxis", i, n), d = WZ(e, "xAxis", i, n)) : (u = GZ(e, "yAxis", a, n), d = WZ(e, "yAxis", a, n)), wU(u, d, !0) ?? l ?? 0;
+}, w4 = (e, t, n) => {
+ var r = eW(e), i = o4(e, t), a = s4(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = WZ(e, "xAxis", i, n), s = UZ(e, "xAxis", i, n)) : (o = WZ(e, "yAxis", a, n), s = UZ(e, "yAxis", a, n)), CU(o, s);
+ return r === "horizontal" ? (o = GZ(e, "xAxis", i, n), s = WZ(e, "xAxis", i, n)) : (o = GZ(e, "yAxis", a, n), s = WZ(e, "yAxis", a, n)), wU(o, s);
}
}, sze = $([
- NU,
PU,
- (e, t, n) => {
- var r = a4(e, t);
- if (r != null) return WZ(e, "xAxis", r, n);
- },
+ FU,
(e, t, n) => {
var r = o4(e, t);
- if (r != null) return WZ(e, "yAxis", r, n);
+ if (r != null) return GZ(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = a4(e, t);
- if (r != null) return UZ(e, "xAxis", r, n);
+ var r = s4(e, t);
+ if (r != null) return GZ(e, "yAxis", r, n);
},
(e, t, n) => {
var r = o4(e, t);
- if (r != null) return UZ(e, "yAxis", r, n);
+ if (r != null) return WZ(e, "xAxis", r, n);
+ },
+ (e, t, n) => {
+ var r = s4(e, t);
+ if (r != null) return WZ(e, "yAxis", r, n);
},
$([$([
aze,
- EK,
DK,
OK,
+ kK,
oze,
- C4,
+ w4,
tze
- ], q0), S4], Y0),
- $U,
- pK,
+ ], J0), C4], X0),
+ eW,
+ mK,
+ w4,
+ $([ize, C4], Y0),
C4,
- $([ize, S4], J0),
- S4,
nze
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
@@ -68569,14 +68569,14 @@ var $Re = function(e) {
});
}
}), cze = ["index"];
-function w4() {
- return w4 = 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;
- }, w4.apply(null, arguments);
+ }, T4.apply(null, arguments);
}
function lze(e, t) {
if (e == null) return {};
@@ -68596,19 +68596,19 @@ function uze(e, t) {
}
return n;
}
-var T4 = /*#__PURE__*/ (0, R.createContext)(void 0), dze = (e) => {
- var t = (0, R.useContext)(T4);
+var E4 = /*#__PURE__*/ (0, R.createContext)(void 0), dze = (e) => {
+ var t = (0, R.useContext)(E4);
if (t != null) return t.stackId;
- if (e != null) return _U(e);
+ if (e != null) return vU(e);
}, fze = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, pze = (e) => {
- var t = (0, R.useContext)(T4);
+ var t = (0, R.useContext)(E4);
if (t != null) {
var { stackId: n } = t;
return `url(#${fze(n, e)})`;
}
-}, E4 = (e) => {
+}, D4 = (e) => {
var { index: t } = e, n = lze(e, cze), r = pze(t);
- return /*#__PURE__*/ R.createElement(YR, w4({
+ return /*#__PURE__*/ R.createElement(XR, T4({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
@@ -68625,16 +68625,16 @@ var T4 = /*#__PURE__*/ (0, R.createContext)(void 0), dze = (e) => {
"onClick",
"onMouseLeave"
];
-function D4() {
- return D4 = Object.assign ? Object.assign.bind() : function(e) {
+function O4() {
+ return O4 = 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);
+ }, O4.apply(null, arguments);
}
-function O4(e, t) {
+function k4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68644,12 +68644,12 @@ function O4(e, t) {
}
return n;
}
-function k4(e) {
+function A4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? O4(Object(n), !0).forEach(function(t) {
+ t % 2 ? k4(Object(n), !0).forEach(function(t) {
vze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O4(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -68677,7 +68677,7 @@ function bze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function A4(e, t) {
+function j4(e, t) {
if (e == null) return {};
var n, r, i = xze(e, t);
if (Object.getOwnPropertySymbols) {
@@ -68702,20 +68702,20 @@ var Sze = (e) => {
dataKey: t,
type: i,
color: r,
- value: TU(n, t),
+ value: EU(n, t),
payload: e
}];
}, Cze = /*#__PURE__*/ R.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: lB,
+ getPosition: uB,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: TU(a, t),
+ name: EU(a, t),
hide: o,
type: c,
color: i,
@@ -68723,19 +68723,19 @@ var Sze = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ R.createElement(d0, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ R.createElement(f0, { tooltipEntrySettings: u });
});
function wze(e) {
- var t = Q(AQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = A4(a, mze), u = c0(o, r, a.id), d = l0(s), f = u0(c, r, a.id);
+ var t = Q(jQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = j4(a, mze), u = l0(o, r, a.id), d = u0(s), f = d0(c, r, a.id);
if (!i || n == null) return null;
- var p = WR(i);
- return /*#__PURE__*/ R.createElement(ZQ, { zIndex: c2(i, IK.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = A4(e, hze);
+ var p = GR(i);
+ return /*#__PURE__*/ R.createElement(QQ, { zIndex: l2(i, LK.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = j4(e, hze);
if (!o) return null;
- var m = u(e, n), h = d(e, n), g = f(e, n), _ = k4(k4(k4(k4(k4({
+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = A4(A4(A4(A4(A4({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), _B(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), vB(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -68743,7 +68743,7 @@ function wze(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ R.createElement(x4, D4({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ R.createElement(S4, O4({ key: `background-bar-${n}` }, _));
}));
}
function Tze(e) {
@@ -68756,7 +68756,7 @@ function Tze(e) {
upperWidth: e.width,
height: e.height
};
- return k4(k4({}, t), {}, {
+ return A4(A4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -68764,10 +68764,10 @@ function Tze(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ R.createElement(a1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(o1, { value: t ? i : void 0 }, n);
}
function Eze(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(AQ), c = Q(MQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(jQ), c = Q(NQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -68778,18 +68778,18 @@ function Eze(e) {
}, [l]);
var m = (0, R.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(x4, D4({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(S4, O4({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ R.createElement(ZQ, { zIndex: IK.activeBar }, /*#__PURE__*/ R.createElement(E4, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ R.createElement(QQ, { zIndex: LK.activeBar }, /*#__PURE__*/ R.createElement(D4, { index: i.originalDataIndex }, v)) : v;
}
function Dze(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ R.createElement(x4, D4({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ R.createElement(S4, O4({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
@@ -68797,12 +68797,12 @@ function Dze(e) {
}));
}
function Oze(e) {
- var { data: t, props: n } = e, r = UR(n) ?? {}, { id: i } = r, a = A4(r, gze), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = A4(n, _ze), p = c0(l, s, i), m = l0(d), h = u0(u, s, i);
- return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(E4, D4({
+ var { data: t, props: n } = e, r = WR(n) ?? {}, { id: i } = r, a = j4(r, gze), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = j4(n, _ze), p = l0(l, s, i), m = u0(d), h = d0(u, s, i);
+ return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(D4, O4({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, _B(f, e, t), {
+ }, vB(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
@@ -68822,7 +68822,7 @@ function Oze(e) {
})))) : null;
}
function kze(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 = HG(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
+ var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = UG(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, R.useCallback)(() => {
typeof u == "function" && u(), m(!0);
@@ -68830,7 +68830,7 @@ function kze(e) {
return /*#__PURE__*/ R.createElement(Tze, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ R.createElement(VG, {
+ }, /*#__PURE__*/ R.createElement(HG, {
animationId: f,
begin: o,
duration: s,
@@ -68842,30 +68842,30 @@ function kze(e) {
}, (e) => {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
- if (r) return k4(k4({}, t), {}, {
- x: iB(r.x, t.x, e),
- y: iB(r.y, t.y, e),
- width: iB(r.width, t.width, e),
- height: iB(r.height, t.height, e)
+ if (r) return A4(A4({}, t), {}, {
+ x: aB(r.x, t.x, e),
+ y: aB(r.y, t.y, e),
+ width: aB(r.width, t.width, e),
+ height: aB(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = iB(0, t.height, e), o = iB(t.stackedBarStart, t.y, e);
- return k4(k4({}, t), {}, {
+ var a = aB(0, t.height, e), o = aB(t.stackedBarStart, t.y, e);
+ return A4(A4({}, t), {}, {
y: o,
height: a
});
}
- var s = iB(0, t.width, e), c = iB(t.stackedBarStart, t.x, e);
- return k4(k4({}, t), {}, {
+ var s = aB(0, t.width, e), c = aB(t.stackedBarStart, t.x, e);
+ return A4(A4({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(YR, null, /*#__PURE__*/ R.createElement(Oze, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(XR, null, /*#__PURE__*/ R.createElement(Oze, {
props: t,
data: a
}));
- }), /*#__PURE__*/ R.createElement(c1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(l1, { label: t.label }), t.children);
}
function Aze(e) {
var t = (0, R.useRef)(null);
@@ -68874,27 +68874,27 @@ function Aze(e) {
props: e
});
}
-var j4 = 0, jze = (e, t) => {
+var M4 = 0, jze = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: fU(e, t)
+ errorVal: pU(e, t)
};
}, Mze = class extends R.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 = xh("recharts-bar", r), u = c;
- return /*#__PURE__*/ R.createElement(YR, {
+ var l = Sh("recharts-bar", r), u = c;
+ return /*#__PURE__*/ R.createElement(XR, {
className: l,
id: c
- }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(G2, {
+ }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K2, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ R.createElement(YR, {
+ })), /*#__PURE__*/ R.createElement(XR, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
}, /*#__PURE__*/ R.createElement(wze, {
@@ -68914,22 +68914,22 @@ var j4 = 0, jze = (e, t) => {
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: j4,
+ minPointSize: M4,
xAxisId: 0,
yAxisId: 0,
- zIndex: IK.bar
+ zIndex: LK.bar
};
function Pze(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 } = W2(t, n), f = eW(), p = FU(), m = Z1(e.children, m$), h = Q((t) => sze(t, e.id, p, m));
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = G2(t, n), f = tW(), p = IU(), m = Q1(e.children, h$), h = Q((t) => sze(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__*/ R.createElement(U2, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ R.createElement(W2, {
xAxisId: t,
yAxisId: n,
data: h,
dataPointFormatter: jze,
errorBarOffset: g
- }, /*#__PURE__*/ R.createElement(Mze, D4({}, e, {
+ }, /*#__PURE__*/ R.createElement(Mze, O4({}, e, {
layout: f,
needClip: d,
data: h,
@@ -68946,19 +68946,19 @@ function Pze(e) {
})));
}
function Fze(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 = bU({ numericAxis: _ }), b = _.scale.map(y);
+ var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = xU({ 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;
- _ = gU(E, v);
- } else _ = fU(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = $Re(r, j4)(_[1], f);
+ _ = _U(E, v);
+ } else _ = pU(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = $Re(r, M4)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = yU({
+ x = bU({
axis: s,
ticks: l,
bandSize: o,
@@ -68967,19 +68967,19 @@ function Fze(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = Qz(A) ? 0 : A, T = {
+ if (w = $z(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 = Zz(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = Qz(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 = yU({
+ if (x = M, S = bU({
axis: c,
ticks: u,
bandSize: o,
@@ -68992,11 +68992,11 @@ function Fze(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var ee = Zz(C || D) * (Math.abs(D) - Math.abs(C));
+ var ee = Qz(C || D) * (Math.abs(D) - Math.abs(C));
C += ee;
}
}
- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : k4(k4({}, e), {}, {
+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : A4(A4({}, e), {}, {
stackedBarStart: b,
x,
y: S,
@@ -69015,11 +69015,11 @@ function Fze(e) {
}).filter(Boolean);
}
function Ize(e) {
- var t = yB(e, Nze), n = dze(t.stackId), r = FU();
- return /*#__PURE__*/ R.createElement(m0, {
+ var t = bB(e, Nze), n = dze(t.stackId), r = IU();
+ return /*#__PURE__*/ R.createElement(h0, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(f0, { legendPayload: Sze(t) }), /*#__PURE__*/ R.createElement(Cze, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p0, { legendPayload: Sze(t) }), /*#__PURE__*/ R.createElement(Cze, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -69029,7 +69029,7 @@ function Ize(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(g0, {
+ }), /*#__PURE__*/ R.createElement(_0, {
type: "bar",
id: e,
data: void 0,
@@ -69044,14 +69044,14 @@ function Ize(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ R.createElement(ZQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(Pze, D4({}, t, { id: e })))));
+ }), /*#__PURE__*/ R.createElement(QQ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(Pze, O4({}, t, { id: e })))));
}
-var M4 = /*#__PURE__*/ R.memo(Ize, QW);
-M4.displayName = "Bar";
+var N4 = /*#__PURE__*/ R.memo(Ize, $W);
+N4.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
var Lze = ["domain", "range"], Rze = ["domain", "range"];
-function N4(e, t) {
+function P4(e, t) {
if (e == null) return {};
var n, r, i = zze(e, t);
if (Object.getOwnPropertySymbols) {
@@ -69069,13 +69069,13 @@ function zze(e, t) {
}
return n;
}
-function P4(e, t) {
+function F4(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 F4(e, t) {
+function I4(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = N4(e, Lze), { domain: a, range: o } = t, s = N4(t, Rze);
- return !P4(n, a) || !P4(r, o) ? !1 : QW(i, s);
+ var { domain: n, range: r } = e, i = P4(e, Lze), { domain: a, range: o } = t, s = P4(t, Rze);
+ return !F4(n, a) || !F4(r, o) ? !1 : $W(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
@@ -69084,16 +69084,16 @@ var Bze = ["type"], Vze = [
"ticks",
"scale"
], Hze = ["id", "scale"];
-function I4() {
- return I4 = Object.assign ? Object.assign.bind() : function(e) {
+function L4() {
+ return L4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, I4.apply(null, arguments);
+ }, L4.apply(null, arguments);
}
-function L4(e, t) {
+function R4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69103,12 +69103,12 @@ function L4(e, t) {
}
return n;
}
-function R4(e) {
+function z4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L4(Object(n), !0).forEach(function(t) {
+ t % 2 ? R4(Object(n), !0).forEach(function(t) {
Uze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L4(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -69136,7 +69136,7 @@ function Gze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function z4(e, t) {
+function B4(e, t) {
if (e == null) return {};
var n, r, i = Kze(e, t);
if (Object.getOwnPropertySymbols) {
@@ -69155,8 +69155,8 @@ function Kze(e, t) {
return n;
}
function qze(e) {
- var t = KB(), n = (0, R.useRef)(null), r = tW(), { type: i } = e, a = z4(e, Bze), o = BK(r, "xAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return R4(R4({}, a), {}, { type: o });
+ var t = qB(), n = (0, R.useRef)(null), r = nW(), { type: i } = e, a = B4(e, Bze), o = VK(r, "xAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return z4(z4({}, a), {}, { type: o });
}, [a, o]);
return (0, R.useLayoutEffect)(() => {
s != null && (n.current === null ? t(lFe(s)) : n.current !== s && t(uFe({
@@ -69168,46 +69168,46 @@ function qze(e) {
}, [t]), null;
}
var Jze = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(PU), i = FU(), a = "xAxis", o = Q((e) => VZ(e, a, t, i)), s = Q((e) => PZ(e, t)), c = Q((e) => hAe(e, t)), l = Q((e) => OX(e, t));
+ var { xAxisId: t, className: n } = e, r = Q(FU), i = IU(), a = "xAxis", o = Q((e) => HZ(e, a, t, i)), s = Q((e) => FZ(e, t)), c = Q((e) => hAe(e, t)), l = Q((e) => kX(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = z4(e, Vze), { id: m, scale: h } = l, g = z4(l, Hze);
- return /*#__PURE__*/ R.createElement(F2, I4({}, p, g, {
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = B4(e, Vze), { id: m, scale: h } = l, g = B4(l, Hze);
+ return /*#__PURE__*/ R.createElement(I2, L4({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
height: s.height,
- className: xh(`recharts-${a} ${a}`, n),
+ className: Sh(`recharts-${a} ${a}`, n),
viewBox: r,
ticks: o,
axisType: a,
axisId: t
}));
}, Yze = {
- allowDataOverflow: DX.allowDataOverflow,
- allowDecimals: DX.allowDecimals,
- allowDuplicatedCategory: DX.allowDuplicatedCategory,
- angle: DX.angle,
- axisLine: P2.axisLine,
- height: DX.height,
+ allowDataOverflow: OX.allowDataOverflow,
+ allowDecimals: OX.allowDecimals,
+ allowDuplicatedCategory: OX.allowDuplicatedCategory,
+ angle: OX.angle,
+ axisLine: F2.axisLine,
+ height: OX.height,
hide: !1,
- includeHidden: DX.includeHidden,
- interval: DX.interval,
+ includeHidden: OX.includeHidden,
+ interval: OX.interval,
label: !1,
- minTickGap: DX.minTickGap,
- mirror: DX.mirror,
- orientation: DX.orientation,
- padding: DX.padding,
- reversed: DX.reversed,
- scale: DX.scale,
- tick: DX.tick,
- tickCount: DX.tickCount,
- tickLine: P2.tickLine,
- tickSize: P2.tickSize,
- type: DX.type,
- niceTicks: DX.niceTicks,
+ minTickGap: OX.minTickGap,
+ mirror: OX.mirror,
+ orientation: OX.orientation,
+ padding: OX.padding,
+ reversed: OX.reversed,
+ scale: OX.scale,
+ tick: OX.tick,
+ tickCount: OX.tickCount,
+ tickLine: F2.tickLine,
+ tickSize: F2.tickSize,
+ type: OX.type,
+ niceTicks: OX.niceTicks,
xAxisId: 0
-}, B4 = /*#__PURE__*/ R.memo((e) => {
- var t = yB(e, Yze);
+}, V4 = /*#__PURE__*/ R.memo((e) => {
+ var t = bB(e, Yze);
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(qze, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
@@ -69235,8 +69235,8 @@ var Jze = (e) => {
unit: t.unit,
niceTicks: t.niceTicks
}), /*#__PURE__*/ R.createElement(Jze, t));
-}, F4);
-B4.displayName = "XAxis";
+}, I4);
+V4.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
var Xze = ["type"], Zze = [
@@ -69244,16 +69244,16 @@ var Xze = ["type"], Zze = [
"ticks",
"scale"
], Qze = ["id", "scale"];
-function V4() {
- return V4 = Object.assign ? Object.assign.bind() : function(e) {
+function H4() {
+ return H4 = 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);
+ }, H4.apply(null, arguments);
}
-function H4(e, t) {
+function U4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69263,12 +69263,12 @@ function H4(e, t) {
}
return n;
}
-function U4(e) {
+function W4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H4(Object(n), !0).forEach(function(t) {
+ t % 2 ? U4(Object(n), !0).forEach(function(t) {
$ze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H4(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -69296,7 +69296,7 @@ function tBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function W4(e, t) {
+function G4(e, t) {
if (e == null) return {};
var n, r, i = nBe(e, t);
if (Object.getOwnPropertySymbols) {
@@ -69315,8 +69315,8 @@ function nBe(e, t) {
return n;
}
function rBe(e) {
- var t = KB(), n = (0, R.useRef)(null), r = tW(), { type: i } = e, a = W4(e, Xze), o = BK(r, "yAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return U4(U4({}, a), {}, { type: o });
+ var t = qB(), n = (0, R.useRef)(null), r = nW(), { type: i } = e, a = G4(e, Xze), o = VK(r, "yAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return W4(W4({}, a), {}, { type: o });
}, [o, a]);
return (0, R.useLayoutEffect)(() => {
s != null && (n.current === null ? t(fFe(s)) : n.current !== s && t(pFe({
@@ -69328,9 +69328,9 @@ function rBe(e) {
}, [t]), null;
}
function iBe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(PU), c = FU(), l = KB(), u = "yAxis", d = Q((e) => FZ(e, t)), f = Q((e) => gAe(e, t)), p = Q((e) => VZ(e, u, t, c)), m = Q((e) => jX(e, t));
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(FU), c = IU(), l = qB(), u = "yAxis", d = Q((e) => IZ(e, t)), f = Q((e) => gAe(e, t)), p = Q((e) => HZ(e, u, t, c)), m = Q((e) => MX(e, t));
if ((0, R.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || Z$(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || Q$(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
@@ -69349,8 +69349,8 @@ function iBe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = W4(e, Zze), { id: y, scale: b } = m, x = W4(m, Qze);
- return /*#__PURE__*/ R.createElement(F2, V4({}, v, x, {
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = G4(e, Zze), { id: y, scale: b } = m, x = G4(m, Qze);
+ return /*#__PURE__*/ R.createElement(I2, H4({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -69358,7 +69358,7 @@ function iBe(e) {
tickTextProps: r === "auto" ? { width: void 0 } : { width: r },
width: d.width,
height: d.height,
- className: xh(`recharts-${u} ${u}`, n),
+ className: Sh(`recharts-${u} ${u}`, n),
viewBox: s,
ticks: p,
axisType: u,
@@ -69366,31 +69366,31 @@ function iBe(e) {
}));
}
var aBe = {
- allowDataOverflow: AX.allowDataOverflow,
- allowDecimals: AX.allowDecimals,
- allowDuplicatedCategory: AX.allowDuplicatedCategory,
- angle: AX.angle,
- axisLine: P2.axisLine,
+ allowDataOverflow: jX.allowDataOverflow,
+ allowDecimals: jX.allowDecimals,
+ allowDuplicatedCategory: jX.allowDuplicatedCategory,
+ angle: jX.angle,
+ axisLine: F2.axisLine,
hide: !1,
- includeHidden: AX.includeHidden,
- interval: AX.interval,
+ includeHidden: jX.includeHidden,
+ interval: jX.interval,
label: !1,
- minTickGap: AX.minTickGap,
- mirror: AX.mirror,
- orientation: AX.orientation,
- padding: AX.padding,
- reversed: AX.reversed,
- scale: AX.scale,
- tick: AX.tick,
- tickCount: AX.tickCount,
- tickLine: P2.tickLine,
- tickSize: P2.tickSize,
- type: AX.type,
- niceTicks: AX.niceTicks,
- width: AX.width,
+ minTickGap: jX.minTickGap,
+ mirror: jX.mirror,
+ orientation: jX.orientation,
+ padding: jX.padding,
+ reversed: jX.reversed,
+ scale: jX.scale,
+ tick: jX.tick,
+ tickCount: jX.tickCount,
+ tickLine: F2.tickLine,
+ tickSize: F2.tickSize,
+ type: jX.type,
+ niceTicks: jX.niceTicks,
+ width: jX.width,
yAxisId: 0
-}, G4 = /*#__PURE__*/ R.memo((e) => {
- var t = yB(e, aBe);
+}, K4 = /*#__PURE__*/ R.memo((e) => {
+ var t = bB(e, aBe);
return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(rBe, {
interval: t.interval,
id: t.yAxisId,
@@ -69418,24 +69418,24 @@ var aBe = {
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
}), /*#__PURE__*/ R.createElement(iBe, t));
-}, F4);
-G4.displayName = "YAxis";
-var K4 = $([
+}, I4);
+K4.displayName = "YAxis";
+var q4 = $([
(e, t) => t,
- $U,
- $K,
- sq,
- CQ,
- TQ,
+ eW,
+ eq,
+ cq,
+ wQ,
+ EQ,
fje,
- NU
+ PU
], yje);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
function oBe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function q4(e) {
+function J4(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
if (oBe(e)) {
var i = e.currentTarget.getBBox();
@@ -69452,11 +69452,11 @@ function q4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var J4 = wH("mouseClick"), Y4 = iU();
-Y4.startListening({
- actionCreator: J4,
+var Y4 = TH("mouseClick"), X4 = aU();
+X4.startListening({
+ actionCreator: Y4,
effect: (e, t) => {
- var n = e.payload, r = K4(t.getState(), q4(n));
+ var n = e.payload, r = q4(t.getState(), J4(n));
r?.activeIndex != null && t.dispatch(EAe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
@@ -69464,33 +69464,33 @@ Y4.startListening({
}));
}
});
-var X4 = wH("mouseMove"), Z4 = iU(), Q4 = null, $4 = null, e3 = null;
-Z4.startListening({
- actionCreator: X4,
+var Z4 = TH("mouseMove"), Q4 = aU(), $4 = null, e3 = null, t3 = null;
+Q4.startListening({
+ actionCreator: Z4,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
- Q4 !== null && (cancelAnimationFrame(Q4), Q4 = null), $4 !== null && (typeof r != "number" || !a) && (clearTimeout($4), $4 = null), e3 = q4(n);
+ $4 !== null && (cancelAnimationFrame($4), $4 = null), e3 !== null && (typeof r != "number" || !a) && (clearTimeout(e3), e3 = null), t3 = J4(n);
var o = () => {
- var e = t.getState(), n = JZ(e, e.tooltip.settings.shared);
- if (!e3) {
- Q4 = null, $4 = null;
+ var e = t.getState(), n = YZ(e, e.tooltip.settings.shared);
+ if (!t3) {
+ $4 = null, e3 = null;
return;
}
if (n === "axis") {
- var r = K4(e, e3);
- r?.activeIndex == null ? t.dispatch($Z()) : t.dispatch(eQ({
+ var r = q4(e, t3);
+ r?.activeIndex == null ? t.dispatch(eQ()) : t.dispatch(tQ({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- Q4 = null, $4 = null;
+ $4 = null, e3 = null;
};
if (!a) {
o();
return;
}
- r === "raf" ? Q4 = requestAnimationFrame(o) : typeof r == "number" && $4 === null && ($4 = setTimeout(o, r));
+ r === "raf" ? $4 = requestAnimationFrame(o) : typeof r == "number" && e3 === null && (e3 = setTimeout(o, r));
}
});
//#endregion
@@ -69500,7 +69500,7 @@ function sBe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/rootPropsSlice.js
-var t3 = {
+var n3 = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -69512,35 +69512,35 @@ var t3 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, n3 = NH({
+}, r3 = PH({
name: "rootProps",
- initialState: t3,
+ initialState: n3,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? t3.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? n3.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;
} }
-}), cBe = n3.reducer, { updateOptions: lBe } = n3.actions, r3 = NH({
+}), cBe = r3.reducer, { updateOptions: lBe } = r3.actions, i3 = PH({
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: uBe } = r3.actions, dBe = r3.reducer, i3 = wH("keyDown"), a3 = wH("focus"), o3 = wH("blur"), s3 = iU(), c3 = null, l3 = null, u3 = null;
-s3.startListening({
- actionCreator: i3,
+}), { updatePolarOptions: uBe } = i3.actions, dBe = i3.reducer, a3 = TH("keyDown"), o3 = TH("focus"), s3 = TH("blur"), c3 = aU(), l3 = null, u3 = null, d3 = null;
+c3.startListening({
+ actionCreator: a3,
effect: (e, t) => {
- u3 = e.payload, c3 !== null && (cancelAnimationFrame(c3), c3 = null);
+ d3 = e.payload, l3 !== null && (cancelAnimationFrame(l3), l3 = null);
var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");
- l3 !== null && (typeof n != "number" || !i) && (clearTimeout(l3), l3 = null);
+ u3 !== null && (typeof n != "number" || !i) && (clearTimeout(u3), u3 = null);
var a = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var { keyboardInteraction: n } = e.tooltip, r = u3;
+ var { keyboardInteraction: n } = e.tooltip, r = d3;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = oQ(n, _Q(e), $X(e), xQ(e)), a = i == null ? -1 : Number(i);
+ var i = sQ(n, vQ(e), eZ(e), SQ(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = TQ(e);
+ var o = EQ(e);
if (r === "Enter") {
- var s = KQ(e, "axis", "hover", String(n.index));
- t.dispatch(nQ({
+ var s = qQ(e, "axis", "hover", String(n.index));
+ t.dispatch(rQ({
active: !n.active,
activeIndex: n.index,
activeCoordinate: s
@@ -69549,33 +69549,33 @@ s3.startListening({
}
var c = _Ae(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = KQ(e, "axis", "hover", String(l));
- t.dispatch(nQ({
+ var u = qQ(e, "axis", "hover", String(l));
+ t.dispatch(rQ({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
}));
} finally {
- c3 = null, l3 = null;
+ l3 = null, u3 = null;
}
};
if (!i) {
a();
return;
}
- n === "raf" ? c3 = requestAnimationFrame(a) : typeof n == "number" && l3 === null && (a(), u3 = null, l3 = setTimeout(() => {
- u3 ? a() : (l3 = null, c3 = null);
+ n === "raf" ? l3 = requestAnimationFrame(a) : typeof n == "number" && u3 === null && (a(), d3 = null, u3 = setTimeout(() => {
+ d3 ? a() : (u3 = null, l3 = null);
}, n));
}
-}), s3.startListening({
- actionCreator: a3,
+}), c3.startListening({
+ actionCreator: o3,
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 = KQ(n, "axis", "hover", String(i));
- t.dispatch(nQ({
+ var i = "0", a = qQ(n, "axis", "hover", String(i));
+ t.dispatch(rQ({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -69583,13 +69583,13 @@ s3.startListening({
}
}
}
-}), s3.startListening({
- actionCreator: o3,
+}), c3.startListening({
+ actionCreator: s3,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
- r.active && t.dispatch(nQ({
+ r.active && t.dispatch(rQ({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -69599,7 +69599,7 @@ s3.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function d3(e) {
+function f3(e) {
e.persist();
var { currentTarget: t } = e;
return new Proxy(e, { get: (e, n) => {
@@ -69610,36 +69610,36 @@ function d3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var f3 = wH("externalEvent"), p3 = iU(), m3 = /* @__PURE__ */ new Map(), h3 = /* @__PURE__ */ new Map(), g3 = /* @__PURE__ */ new Map();
-p3.startListening({
- actionCreator: f3,
+var p3 = TH("externalEvent"), m3 = aU(), h3 = /* @__PURE__ */ new Map(), g3 = /* @__PURE__ */ new Map(), _3 = /* @__PURE__ */ new Map();
+m3.startListening({
+ actionCreator: p3,
effect: (e, t) => {
var { handler: n, reactEvent: r } = e.payload;
if (n != null) {
- var i = r.type, a = d3(r);
- g3.set(i, {
+ var i = r.type, a = f3(r);
+ _3.set(i, {
handler: n,
reactEvent: a
});
- var o = m3.get(i);
- o !== void 0 && (cancelAnimationFrame(o), m3.delete(i));
- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = h3.get(i);
- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), h3.delete(i));
+ var o = h3.get(i);
+ o !== void 0 && (cancelAnimationFrame(o), h3.delete(i));
+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = g3.get(i);
+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), g3.delete(i));
var f = () => {
- var e = g3.get(i);
+ var e = _3.get(i);
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
activeCoordinate: QAe(a),
- activeDataKey: MQ(a),
- activeIndex: AQ(a),
- activeLabel: jQ(a),
- activeTooltipIndex: AQ(a),
+ activeDataKey: NQ(a),
+ activeIndex: jQ(a),
+ activeLabel: MQ(a),
+ activeTooltipIndex: jQ(a),
isTooltipActive: $Ae(a)
};
n && n(o, r);
} finally {
- m3.delete(i), h3.delete(i), g3.delete(i);
+ h3.delete(i), g3.delete(i), _3.delete(i);
}
};
if (!u) {
@@ -69648,19 +69648,19 @@ p3.startListening({
}
if (s === "raf") {
var p = requestAnimationFrame(f);
- m3.set(i, p);
+ h3.set(i, p);
} else if (typeof s == "number") {
- if (!h3.has(i)) {
+ if (!g3.has(i)) {
f();
var m = setTimeout(f, s);
- h3.set(i, m);
+ g3.set(i, m);
}
} else f();
}
}
});
var fBe = $([
- $([uQ], (e) => e.tooltipItemPayloads),
+ $([dQ], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -69671,65 +69671,65 @@ var fBe = $([
if (i != null) return i(t);
}
}
-}), _3 = wH("touchMove"), v3 = iU(), y3 = null, b3 = null, x3 = null, S3 = null;
-v3.startListening({
- actionCreator: _3,
+}), v3 = TH("touchMove"), y3 = aU(), b3 = null, x3 = null, S3 = null, C3 = null;
+y3.startListening({
+ actionCreator: v3,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- S3 = d3(n);
+ C3 = f3(n);
var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");
- y3 !== null && (cancelAnimationFrame(y3), y3 = null), b3 !== null && (typeof r != "number" || !a) && (clearTimeout(b3), b3 = null), x3 = Array.from(n.touches).map((e) => q4({
+ b3 !== null && (cancelAnimationFrame(b3), b3 = null), x3 !== null && (typeof r != "number" || !a) && (clearTimeout(x3), x3 = null), S3 = Array.from(n.touches).map((e) => J4({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var o = () => {
- if (S3 != null) {
- var e = t.getState(), n = JZ(e, e.tooltip.settings.shared);
+ if (C3 != null) {
+ var e = t.getState(), n = YZ(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = x3?.[0];
+ var r = S3?.[0];
if (r == null) {
- y3 = null, b3 = null;
+ b3 = null, x3 = null;
return;
}
- var i = K4(e, r);
- i?.activeIndex != null && t.dispatch(eQ({
+ var i = q4(e, r);
+ i?.activeIndex != null && t.dispatch(tQ({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = S3.touches[0];
+ var a = C3.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(GCe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = gQ(e).find((e) => e.id === c);
+ var s = o.getAttribute(GCe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = _Q(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
var { dataKey: u } = l, d = fBe(e, s, c);
- t.dispatch(QZ({
+ t.dispatch($Z({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
activeGraphicalItemId: c
}));
}
- y3 = null, b3 = null;
+ b3 = null, x3 = null;
}
};
if (!a) {
o();
return;
}
- r === "raf" ? y3 = requestAnimationFrame(o) : typeof r == "number" && b3 === null && (o(), S3 = null, b3 = setTimeout(() => {
- S3 ? o() : (b3 = null, y3 = null);
+ r === "raf" ? b3 = requestAnimationFrame(o) : typeof r == "number" && x3 === null && (o(), C3 = null, x3 = setTimeout(() => {
+ C3 ? o() : (x3 = null, b3 = null);
}, r));
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var C3 = {
+var w3 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -69738,13 +69738,13 @@ var C3 = {
"scroll",
"wheel"
]
-}, w3 = NH({
+}, T3 = PH({
name: "eventSettings",
- initialState: C3,
+ initialState: w3,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = WW(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = GW(t.payload.throttledEvents));
} }
-}), { setEventSettings: pBe } = w3.actions, mBe = w3.reducer, hBe = dV({
+}), { setEventSettings: pBe } = T3.actions, mBe = T3.reducer, hBe = fV({
brush: MIe,
cartesianAxis: yFe,
chartData: Kje,
@@ -69774,17 +69774,17 @@ var C3 = {
"production"
].includes("es6")
}).concat([
- Y4.middleware,
- Z4.middleware,
- s3.middleware,
- p3.middleware,
- v3.middleware
+ X4.middleware,
+ Q4.middleware,
+ c3.middleware,
+ m3.middleware,
+ y3.middleware
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(jH({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(MH({ type: "raf" }));
},
- devTools: lG.devToolsEnabled && {
+ devTools: uG.devToolsEnabled && {
serialize: { replacer: sBe },
name: `recharts-${t}`
}
@@ -69792,11 +69792,11 @@ var C3 = {
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function T3(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = FU(), a = (0, R.useRef)(null);
+function E3(e) {
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = IU(), a = (0, R.useRef)(null);
if (i) return n;
a.current ??= gBe(t, r);
- var o = GB;
+ var o = KB;
return /*#__PURE__*/ R.createElement(Wwe, {
context: o,
store: a.current
@@ -69805,7 +69805,7 @@ function T3(e) {
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
function _Be(e) {
- var { layout: t, margin: n } = e, r = KB(), i = FU();
+ var { layout: t, margin: n } = e, r = qB(), i = IU();
return (0, R.useEffect)(() => {
i || (r(kCe(t)), r(OCe(n)));
}, [
@@ -69815,25 +69815,25 @@ function _Be(e) {
n
]), null;
}
-var E3 = /*#__PURE__*/ (0, R.memo)(_Be, QW);
+var D3 = /*#__PURE__*/ (0, R.memo)(_Be, $W);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function D3(e) {
- var t = KB();
+function O3(e) {
+ var t = qB();
return (0, R.useEffect)(() => {
t(lBe(e));
}, [t, e]), null;
}
-var O3 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = KB();
+var k3 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = qB();
return (0, R.useEffect)(() => {
t(pBe(e));
}, [t, e]), null;
-}, QW);
+}, $W);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function k3(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = KB();
+function A3(e) {
+ var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = qB();
return (0, R.useLayoutEffect)(() => (r.current && i(Aje({
zIndex: t,
element: r.current,
@@ -69853,15 +69853,15 @@ function k3(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function A3(e) {
+function j3(e) {
var { children: t, isPanorama: n } = e, r = Q(xje);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(k3, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(A3, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ R.createElement(k3, {
+ })), t, a.map((e) => /*#__PURE__*/ R.createElement(A3, {
key: e,
zIndex: e,
isPanorama: n
@@ -69888,24 +69888,24 @@ function bBe(e, t) {
}
return n;
}
-function j3() {
- return j3 = Object.assign ? Object.assign.bind() : function(e) {
+function M3() {
+ return M3 = 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;
- }, j3.apply(null, arguments);
+ }, M3.apply(null, arguments);
}
var xBe = {
width: "100%",
height: "100%",
display: "block"
}, SBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = ZU(), r = QU(), i = pG();
- if (!lU(n) || !lU(r)) return null;
+ var n = QU(), r = $U(), i = mG();
+ if (!uU(n) || !uU(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__*/ R.createElement(qR, j3({}, o, {
+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ R.createElement(JR, M3({}, o, {
title: s,
desc: c,
role: u,
@@ -69916,27 +69916,27 @@ var xBe = {
ref: t
}), a);
}), CBe = (e) => {
- var { children: t } = e, n = Q(LU);
+ var { children: t } = e, n = Q(RU);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ R.createElement(qR, {
+ return /*#__PURE__*/ R.createElement(JR, {
width: r,
height: i,
x: o,
y: a
}, t);
-}, M3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}, N3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { children: n } = e, r = yBe(e, vBe);
- return FU() ? /*#__PURE__*/ R.createElement(CBe, null, /*#__PURE__*/ R.createElement(A3, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(SBe, j3({ ref: t }, r), /*#__PURE__*/ R.createElement(A3, { isPanorama: !1 }, n));
+ return IU() ? /*#__PURE__*/ R.createElement(CBe, null, /*#__PURE__*/ R.createElement(j3, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(SBe, M3({ ref: t }, r), /*#__PURE__*/ R.createElement(j3, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
function wBe() {
- var e = KB(), [t, n] = (0, R.useState)(null), r = Q(WCe);
+ var e = qB(), [t, n] = (0, R.useState)(null), r = Q(WCe);
return (0, R.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- cU(n) && n !== r && e(jCe(n));
+ lU(n) && n !== r && e(jCe(n));
}
}, [
t,
@@ -69946,7 +69946,7 @@ function wBe() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function N3(e, t) {
+function P3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69959,9 +69959,9 @@ function N3(e, t) {
function TBe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? N3(Object(n), !0).forEach(function(t) {
+ t % 2 ? P3(Object(n), !0).forEach(function(t) {
EBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -69989,17 +69989,17 @@ function OBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function P3() {
- return P3 = Object.assign ? Object.assign.bind() : function(e) {
+function F3() {
+ return F3 = 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;
- }, P3.apply(null, arguments);
+ }, F3.apply(null, arguments);
}
var kBe = () => (tMe(), null);
-function F3(e) {
+function I3(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -70009,8 +70009,8 @@ function F3(e) {
}
var ABe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var n = (0, R.useRef)(null), [r, i] = (0, R.useState)({
- containerWidth: F3(e.style?.width),
- containerHeight: F3(e.style?.height)
+ containerWidth: I3(e.style?.width),
+ containerHeight: I3(e.style?.height)
}), a = (0, R.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -70035,14 +70035,14 @@ var ABe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}, [t, a]);
return (0, R.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
+ }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ R.createElement("div", P3({ ref: o }, e)));
+ }), /*#__PURE__*/ R.createElement("div", F3({ ref: o }, e)));
}), jBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, R.useState)({
- containerWidth: F3(n),
- containerHeight: F3(r)
+ containerWidth: I3(n),
+ containerHeight: I3(r)
}), o = (0, R.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -70057,32 +70057,32 @@ var ABe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ R.createElement("div", P3({ ref: s }, e)));
+ }), /*#__PURE__*/ R.createElement("div", F3({ ref: s }, e)));
}), MBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", P3({ ref: t }, e)));
+ }), /*#__PURE__*/ R.createElement("div", F3({ ref: t }, e)));
}), NBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(jBe, P3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(MBe, P3({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(jBe, F3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(MBe, F3({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
+ })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", P3({ ref: t }, e)));
+ }), /*#__PURE__*/ R.createElement("div", F3({ ref: t }, e)));
});
function PBe(e) {
return e ? ABe : NBe;
}
var FBe = /*#__PURE__*/ (0, R.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, R.useRef)(null), x = KB(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = wBe(), D = KU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, R.useRef)(null), x = qB(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = wBe(), D = qU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -70090,58 +70090,58 @@ var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
C,
T
]), j = (0, R.useCallback)((e) => {
- x(J4(e)), x(f3({
+ x(Y4(e)), x(p3({
handler: a,
reactEvent: e
}));
}, [x, a]), M = (0, R.useCallback)((e) => {
- x(X4(e)), x(f3({
+ x(Z4(e)), x(p3({
handler: l,
reactEvent: e
}));
}, [x, l]), N = (0, R.useCallback)((e) => {
- x($Z()), x(f3({
+ x(eQ()), x(p3({
handler: u,
reactEvent: e
}));
}, [x, u]), ee = (0, R.useCallback)((e) => {
- x(X4(e)), x(f3({
+ x(Z4(e)), x(p3({
handler: d,
reactEvent: e
}));
}, [x, d]), te = (0, R.useCallback)(() => {
- x(a3());
- }, [x]), P = (0, R.useCallback)(() => {
x(o3());
+ }, [x]), P = (0, R.useCallback)(() => {
+ x(s3());
}, [x]), F = (0, R.useCallback)((e) => {
- x(i3(e.key));
+ x(a3(e.key));
}, [x]), ne = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: o,
reactEvent: e
}));
}, [x, o]), re = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: s,
reactEvent: e
}));
}, [x, s]), ie = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: c,
reactEvent: e
}));
}, [x, c]), ae = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: f,
reactEvent: e
}));
}, [x, f]), oe = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: h,
reactEvent: e
}));
}, [x, h]), se = (0, R.useCallback)((e) => {
- y && x(_3(e)), x(f3({
+ y && x(v3(e)), x(p3({
handler: m,
reactEvent: e
}));
@@ -70150,15 +70150,15 @@ var FBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
y,
m
]), ce = (0, R.useCallback)((e) => {
- x(f3({
+ x(p3({
handler: p,
reactEvent: e
}));
}, [x, p]), le = PBe(v);
- return /*#__PURE__*/ R.createElement(t$.Provider, { value: S }, /*#__PURE__*/ R.createElement(XR.Provider, { value: w }, /*#__PURE__*/ R.createElement(le, {
+ return /*#__PURE__*/ R.createElement(n$.Provider, { value: S }, /*#__PURE__*/ R.createElement(ZR.Provider, { value: w }, /*#__PURE__*/ R.createElement(le, {
width: O ?? g?.width,
height: k ?? g?.height,
- className: xh("recharts-wrapper", r),
+ className: Sh("recharts-wrapper", r),
style: TBe({
position: "relative",
cursor: "default",
@@ -70210,12 +70210,12 @@ function RBe(e, t) {
}
return n;
}
-var I3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = UR(LBe(e, IBe));
- return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iW, {
+var L3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = WR(LBe(e, IBe));
+ return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aW, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement(M3, {
+ }), /*#__PURE__*/ R.createElement(N3, {
otherAttributes: d,
title: l,
desc: u
@@ -70236,7 +70236,7 @@ var I3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ R.createElement(M3, {
+ }, /*#__PURE__*/ R.createElement(N3, {
otherAttributes: d,
title: l,
desc: u,
@@ -70245,16 +70245,16 @@ var I3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function L3() {
- return L3 = 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;
- }, L3.apply(null, arguments);
+ }, R3.apply(null, arguments);
}
-function R3(e, t) {
+function z3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70267,9 +70267,9 @@ function R3(e, t) {
function zBe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? R3(Object(n), !0).forEach(function(t) {
+ t % 2 ? z3(Object(n), !0).forEach(function(t) {
BBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -70312,24 +70312,24 @@ var UBe = zBe({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, C3), z3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = yB(e.categoricalChartProps, UBe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+}, w3), B3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ var n = bB(e.categoricalChartProps, UBe), { 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__*/ R.createElement(T3, {
+ return /*#__PURE__*/ R.createElement(E3, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ R.createElement(g2, { chartData: s.data }), /*#__PURE__*/ R.createElement(E3, {
+ }, /*#__PURE__*/ R.createElement(_2, { chartData: s.data }), /*#__PURE__*/ R.createElement(D3, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(O3, {
+ }), /*#__PURE__*/ R.createElement(k3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(D3, {
+ }), /*#__PURE__*/ R.createElement(O3, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -70341,26 +70341,26 @@ var UBe = zBe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(I3, L3({}, n, { ref: t })));
-}), WBe = ["axis"], GBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(z3, {
+ }), /*#__PURE__*/ R.createElement(L3, R3({}, n, { ref: t })));
+}), WBe = ["axis"], GBe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B3, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: WBe,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: e,
ref: t
-})), KBe = ["axis", "item"], B3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(z3, {
+})), KBe = ["axis", "item"], V3 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B3, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: KBe,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
function qBe(e) {
- var t = KB();
+ var t = qB();
return (0, R.useEffect)(() => {
t(uBe(e));
}, [t, e]), null;
@@ -70368,14 +70368,14 @@ function qBe(e) {
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
var JBe = ["layout"];
-function V3() {
- return V3 = Object.assign ? Object.assign.bind() : function(e) {
+function H3() {
+ return H3 = 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;
- }, V3.apply(null, arguments);
+ }, H3.apply(null, arguments);
}
function YBe(e, t) {
if (e == null) return {};
@@ -70395,7 +70395,7 @@ function XBe(e, t) {
}
return n;
}
-function H3(e, t) {
+function U3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70408,9 +70408,9 @@ function H3(e, t) {
function ZBe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H3(Object(n), !0).forEach(function(t) {
+ t % 2 ? U3(Object(n), !0).forEach(function(t) {
QBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -70438,7 +70438,7 @@ function eVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var U3 = ZBe({
+var W3 = ZBe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -70457,24 +70457,24 @@ var U3 = ZBe({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, C3), W3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = yB(e.categoricalChartProps, U3), { layout: r } = n, i = YBe(n, JBe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+}, w3), G3 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ var n = bB(e.categoricalChartProps, W3), { layout: r } = n, i = YBe(n, JBe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(T3, {
+ return /*#__PURE__*/ R.createElement(E3, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ R.createElement(g2, { chartData: n.data }), /*#__PURE__*/ R.createElement(E3, {
+ }, /*#__PURE__*/ R.createElement(_2, { chartData: n.data }), /*#__PURE__*/ R.createElement(D3, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(O3, {
+ }), /*#__PURE__*/ R.createElement(k3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(D3, {
+ }), /*#__PURE__*/ R.createElement(O3, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -70493,11 +70493,11 @@ var U3 = ZBe({
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ R.createElement(I3, V3({}, i, { ref: t })));
+ }), /*#__PURE__*/ R.createElement(L3, H3({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function G3(e, t) {
+function K3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70507,12 +70507,12 @@ function G3(e, t) {
}
return n;
}
-function K3(e) {
+function q3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? G3(Object(n), !0).forEach(function(t) {
+ t % 2 ? K3(Object(n), !0).forEach(function(t) {
tVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -70540,31 +70540,31 @@ function rVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var iVe = ["axis"], aVe = K3(K3({}, U3), {}, {
+var iVe = ["axis"], aVe = q3(q3({}, W3), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
}), oVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = yB(e, aVe);
- return /*#__PURE__*/ R.createElement(W3, {
+ var n = bB(e, aVe);
+ return /*#__PURE__*/ R.createElement(G3, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: iVe,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: n,
ref: t
});
-}), sVe = ["axis"], cVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(z3, {
+}), sVe = ["axis"], cVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B3, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: sVe,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function q3(e, t) {
+function J3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70574,12 +70574,12 @@ function q3(e, t) {
}
return n;
}
-function J3(e) {
+function Y3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? q3(Object(n), !0).forEach(function(t) {
+ t % 2 ? J3(Object(n), !0).forEach(function(t) {
lVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q3(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -70607,59 +70607,59 @@ function dVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var fVe = ["axis", "item"], pVe = J3(J3({}, U3), {}, {
+var fVe = ["axis", "item"], pVe = Y3(Y3({}, W3), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
}), mVe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = yB(e, pVe);
- return /*#__PURE__*/ R.createElement(W3, {
+ var n = bB(e, pVe);
+ return /*#__PURE__*/ R.createElement(G3, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
validateTooltipEventTypes: fVe,
- tooltipPayloadSearcher: a$,
+ tooltipPayloadSearcher: o$,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function Y3(...e) {
- return SE(xh(e));
+function X3(...e) {
+ return wE(Sh(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var X3 = {
+var Z3 = {
light: "",
dark: ".dark"
-}, Z3 = Object.keys(X3);
+}, Q3 = Object.keys(Z3);
function hVe(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !Z3.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${Z3.join(", ")}). Received empty object or invalid keys.`);
+ for (let [t, n] of Object.entries(e)) if (n.colors && !Q3.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${Q3.join(", ")}). Received empty object or invalid keys.`);
}
-var Q3 = R.createContext(null);
-function $3() {
- let e = R.useContext(Q3);
+var $3 = R.createContext(null);
+function e6() {
+ let e = R.useContext($3);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function e6({ id: e, config: t, initialDimension: n = {
+function t6({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = R.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return hVe(t), /* @__PURE__ */ (0, B.jsx)(Q3.Provider, {
+ return hVe(t), /* @__PURE__ */ (0, B.jsx)($3.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: Y3("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
+ className: X3("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, B.jsx)(n6, {
+ /* @__PURE__ */ (0, B.jsx)(r6, {
id: c,
config: t
}),
- /* @__PURE__ */ (0, B.jsx)(qU, {
+ /* @__PURE__ */ (0, B.jsx)(JU, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -70669,7 +70669,7 @@ function e6({ id: e, config: t, initialDimension: n = {
})
});
}
-function t6({ isLoading: e }) {
+function n6({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -70688,23 +70688,23 @@ function gVe(e, t) {
}
return r;
}
-var n6 = ({ id: e, config: t }) => {
+var r6 = ({ 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 ? [] : gVe(r, i6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(X3).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : gVe(r, a6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(Z3).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, B.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function r6(e, t, n) {
+function i6(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 i6(e) {
+function a6(e) {
if (!e.colors) return 1;
- let t = Z3.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = Q3.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
var _Ve = (e = 10, t = 0, n = 70) => {
@@ -70719,15 +70719,15 @@ var _Ve = (e = 10, t = 0, n = 70) => {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function a6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
- let { config: h } = $3(), g = R.useMemo(() => {
+function o6({ 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 } = e6(), g = R.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = r6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = i6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("font-medium", c),
+ className: X3("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("font-medium", c),
+ className: X3("font-medium", c),
children: a
}) : null;
}, [
@@ -70742,15 +70742,15 @@ function a6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, B.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: Y3("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", vVe[p], yVe[m], n),
+ className: X3("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", vVe[p], yVe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, B.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 = r6(h, e, n), o = i ? i6(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = i6(h, e, n), o = i ? a6(i) : 1;
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
+ className: X3("[&>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, B.jsxs)(B.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, B.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("shrink-0 rounded-[2px]", {
+ className: X3("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",
@@ -70758,7 +70758,7 @@ function a6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
}),
style: bVe(n, o)
}), /* @__PURE__ */ (0, B.jsxs)("div", {
- className: Y3("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: X3("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, B.jsx)("span", {
@@ -70778,20 +70778,20 @@ function a6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
function bVe(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 o6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, B.jsx)(lMe, {
+var s6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, B.jsx)(lMe, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function s6({ 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 } = $3();
+function c6({ 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 } = e6();
return r?.length ? /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
+ className: X3("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 = r6(u, e, r), a = o === null || o === r, d = i ? i6(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = i6(u, e, r), a = o === null || o === r, d = i ? a6(i) : 1;
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: Y3("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
+ className: X3("[&>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);
},
@@ -70855,7 +70855,7 @@ function CVe(e, t) {
...n
};
}
-var c6 = nG, l6 = () => null, u6 = {
+var l6 = rG, u6 = () => null, d6 = {
stiffness: 300,
damping: 35,
mass: .8
@@ -70965,16 +70965,16 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
f,
A
]);
- let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, ee = C > 1 ? M.endIndex / (C - 1) * 100 : 100, te = Gf(N), P = Gf(ee);
+ let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, ee = C > 1 ? M.endIndex / (C - 1) * 100 : 100, te = Kf(N), P = Kf(ee);
te.get() !== N && te.set(N), P.get() !== ee && P.set(ee);
- let F = Qf(te, u6), ne = Qf(P, u6), re = Jf(F, (e) => `${e}%`), ie = Jf(ne, (e) => `${e}%`), ae = Jf(F, (e) => `${e}%`), oe = Jf(ne, (e) => `${Math.max(0, 100 - e)}%`), se = Gf(`${Math.max(0, ee - N)}%`), ce = (0, R.useCallback)(() => {
+ let F = $f(te, d6), ne = $f(P, d6), re = Yf(F, (e) => `${e}%`), ie = Yf(ne, (e) => `${e}%`), ae = Yf(F, (e) => `${e}%`), oe = Yf(ne, (e) => `${Math.max(0, 100 - e)}%`), se = Kf(`${Math.max(0, ee - N)}%`), ce = (0, R.useCallback)(() => {
se.set(`${Math.max(0, ne.get() - F.get())}%`);
}, [
F,
ne,
se
]);
- Wf(F, "change", ce), Wf(ne, "change", ce);
+ Gf(F, "change", ce), Gf(ne, "change", ce);
let le = (0, R.useCallback)((t) => {
if (!r) return String(t);
let n = e[t]?.[r];
@@ -70987,10 +70987,10 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return C === 0 ? null : /* @__PURE__ */ (0, B.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
- className: Y3("group relative select-none", o),
+ className: X3("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, B.jsx)(n6, {
+ !b && /* @__PURE__ */ (0, B.jsx)(r6, {
id: w,
config: t
}),
@@ -71009,15 +71009,15 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
barRadius: u
})
}),
- /* @__PURE__ */ (0, B.jsx)(ip.div, {
+ /* @__PURE__ */ (0, B.jsx)(ap.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]",
style: { width: ae }
}),
- /* @__PURE__ */ (0, B.jsx)(ip.div, {
+ /* @__PURE__ */ (0, B.jsx)(ap.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]",
style: { width: oe }
}),
- /* @__PURE__ */ (0, B.jsx)(ip.div, {
+ /* @__PURE__ */ (0, B.jsx)(ap.div, {
className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",
style: {
left: re,
@@ -71025,13 +71025,13 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...j("middle")
}),
- /* @__PURE__ */ (0, B.jsx)(d6, {
+ /* @__PURE__ */ (0, B.jsx)(f6, {
side: "left",
position: re,
label: y ? le(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, B.jsx)(d6, {
+ /* @__PURE__ */ (0, B.jsx)(f6, {
side: "right",
position: ie,
label: y ? le(M.endIndex) : void 0,
@@ -71040,16 +71040,16 @@ function TVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function d6({ side: e, position: t, label: n, bind: r }) {
+function f6({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
- return /* @__PURE__ */ (0, B.jsxs)(ip.div, {
+ return /* @__PURE__ */ (0, B.jsxs)(ap.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
+ className: X3("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, B.jsx)("div", {
- className: Y3("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
+ className: X3("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, B.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -71060,7 +71060,7 @@ function d6({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, B.jsx)("div", {
- className: Y3("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
+ className: X3("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
})]
});
@@ -71068,7 +71068,7 @@ function d6({ side: e, position: t, label: n, bind: r }) {
function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = R.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: i6(t)
+ colorsCount: a6(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -71122,7 +71122,7 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, B.jsx)(qU, {
+ if (r === "line") return /* @__PURE__ */ (0, B.jsx)(JU, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, B.jsxs)(GBe, {
@@ -71133,7 +71133,7 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(i4, {
+ children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(a4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -71149,10 +71149,10 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, B.jsx)(qU, {
+ return /* @__PURE__ */ (0, B.jsx)(JU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, B.jsxs)(B3, {
+ children: /* @__PURE__ */ (0, B.jsxs)(V3, {
data: e,
margin: {
top: 2,
@@ -71162,7 +71162,7 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(M4, {
+ children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(N4, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -71178,7 +71178,7 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, B.jsx)(qU, {
+ return /* @__PURE__ */ (0, B.jsx)(JU, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, B.jsxs)(cVe, {
@@ -71189,7 +71189,7 @@ function EVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(y4, {
+ children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(b4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -71403,9 +71403,9 @@ var OVe = {
})
})
};
-function f6({ variant: e }) {
+function p6({ variant: e }) {
let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = OVe[e];
- return /* @__PURE__ */ (0, B.jsxs)(ZQ, {
+ return /* @__PURE__ */ (0, B.jsxs)(QQ, {
zIndex: -1,
children: [/* @__PURE__ */ (0, B.jsxs)("defs", { children: [
/* @__PURE__ */ (0, B.jsx)(a, { id: n }),
@@ -71435,20 +71435,20 @@ function f6({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var p6 = 2, kVe = "loading", AVe = 2e3, jVe = "evil-stacked", MVe = .5, NVe = .05, PVe = [
+var m6 = 2, kVe = "loading", AVe = 2e3, jVe = "evil-stacked", MVe = .5, NVe = .05, PVe = [
0,
.7,
.5,
1
-], m6 = (0, R.createContext)(null);
-function h6() {
- let e = (0, R.use)(m6);
+], h6 = (0, R.createContext)(null);
+function g6() {
+ let e = (0, R.use)(h6);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function g6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = p6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
+function _6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = m6, 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, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = $Ve(m, h), { visibleData: T, brushProps: E } = DVe({ data: t }), D = (0, R.useMemo)(() => {
- let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === l6), r = (0, R.isValidElement)(t) ? t.props : {};
+ let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === u6), r = (0, R.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, R.isValidElement)(t),
@@ -71456,7 +71456,7 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === l6))
+ chartChildren: e.filter((e) => !((0, R.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, R.useCallback)((e) => {
b(e), p?.(e);
@@ -71485,9 +71485,9 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, B.jsx)(m6, {
+ return /* @__PURE__ */ (0, B.jsx)(h6, {
value: N,
- children: /* @__PURE__ */ (0, B.jsxs)(e6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(t6, {
className: r,
config: e,
footer: O && !m && /* @__PURE__ */ (0, B.jsx)(TVe, {
@@ -71506,7 +71506,7 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, B.jsx)(t6, { isLoading: m }), /* @__PURE__ */ (0, B.jsxs)(B3, {
+ children: [/* @__PURE__ */ (0, B.jsx)(n6, { isLoading: m }), /* @__PURE__ */ (0, B.jsxs)(V3, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -71518,8 +71518,8 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, B.jsx)(f6, { variant: d }),
- /* @__PURE__ */ (0, B.jsx)(w2, { color: "white" }),
+ d && /* @__PURE__ */ (0, B.jsx)(p6, { variant: d }),
+ /* @__PURE__ */ (0, B.jsx)(T2, { color: "white" }),
D.chartChildren,
m && /* @__PURE__ */ (0, B.jsx)(eHe, {
chartId: _,
@@ -71531,7 +71531,7 @@ function g6({ config: e, data: t, children: n, className: r, chartProps: i, stac
});
}
function FVe({ 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 } = h6(), b = (0, R.useId)().replace(/:/g, ""), x = $f();
+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = g6(), b = (0, R.useId)().replace(/:/g, ""), x = ep();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -71551,19 +71551,19 @@ function FVe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(M4, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(N4, {
dataKey: e,
stackId: u ? jVe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, B.jsx)(_6, {
+ shape: (e) => /* @__PURE__ */ (0, B.jsx)(v6, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, B.jsx)(_6, {
+ activeBar: (e) => /* @__PURE__ */ (0, B.jsx)(v6, {
...e,
...T,
animationType: "none"
@@ -71608,8 +71608,8 @@ function FVe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
] })] });
}
function IVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = h6();
- return o ? null : /* @__PURE__ */ (0, B.jsx)(B4, {
+ let { isLoading: o, isHorizontal: s } = g6();
+ return o ? null : /* @__PURE__ */ (0, B.jsx)(V4, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -71619,8 +71619,8 @@ function IVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
});
}
function LVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = h6();
- return s ? null : /* @__PURE__ */ (0, B.jsx)(G4, {
+ let { isLoading: s, isHorizontal: c } = g6();
+ return s ? null : /* @__PURE__ */ (0, B.jsx)(K4, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -71631,8 +71631,8 @@ function LVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
});
}
function RVe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = h6();
- return /* @__PURE__ */ (0, B.jsx)(V2, {
+ let { isHorizontal: i } = g6();
+ return /* @__PURE__ */ (0, B.jsx)(H2, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
@@ -71640,11 +71640,11 @@ function RVe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
});
}
function zVe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = h6();
- return r ? null : /* @__PURE__ */ (0, B.jsx)(o6, {
+ let { isLoading: r, selectedDataKey: i } = g6();
+ return r ? null : /* @__PURE__ */ (0, B.jsx)(s6, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, B.jsx)(a6, {
+ content: /* @__PURE__ */ (0, B.jsx)(o6, {
selected: i,
roundness: t,
variant: e
@@ -71652,11 +71652,11 @@ function zVe({ variant: e, roundness: t, defaultIndex: n }) {
});
}
function BVe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = h6();
- return /* @__PURE__ */ (0, B.jsx)(c6, {
+ let { selectedDataKey: i, selectDataKey: a } = g6();
+ return /* @__PURE__ */ (0, B.jsx)(l6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, B.jsx)(s6, {
+ content: /* @__PURE__ */ (0, B.jsx)(c6, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -71664,7 +71664,7 @@ function BVe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var _6 = (e) => {
+var v6 = (e) => {
let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = VVe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : HVe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = UVe({
isClickable: d,
selectedDataKey: _,
@@ -71677,7 +71677,7 @@ var _6 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(XG, {
+ ] : c, A = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(ZG, {
x: t,
y: n,
width: r,
@@ -71688,7 +71688,7 @@ var _6 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, B.jsx)(XG, {
+ }), C && /* @__PURE__ */ (0, B.jsx)(ZG, {
x: t,
y: n - 4,
width: r,
@@ -71699,10 +71699,10 @@ var _6 = (e) => {
return /* @__PURE__ */ (0, B.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, B.jsx)(XG, {
+ children: [/* @__PURE__ */ (0, B.jsx)(ZG, {
...e,
fill: "transparent"
- }), w ? /* @__PURE__ */ (0, B.jsx)(ip.g, {
+ }), w ? /* @__PURE__ */ (0, B.jsx)(ap.g, {
initial: w.initial,
animate: w.animate,
transition: w.transition,
@@ -71756,7 +71756,7 @@ var _6 = (e) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
}, WVe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -71860,7 +71860,7 @@ var _6 = (e) => {
})
})
] }), qVe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -71928,7 +71928,7 @@ var _6 = (e) => {
})
] });
}, JVe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -72105,11 +72105,11 @@ function $Ve(e, t = 12) {
onShimmerExit: i
};
}
-var eHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(M4, {
+var eHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(N4, {
dataKey: kVe,
fill: "currentColor",
fillOpacity: .15,
- radius: p6,
+ radius: m6,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
@@ -72140,7 +72140,7 @@ var eHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fr
height: "1",
x: "0",
y: "0",
- children: /* @__PURE__ */ (0, B.jsx)(ip.rect, {
+ children: /* @__PURE__ */ (0, B.jsx)(ap.rect, {
y: "0",
width: "1",
height: "1",
@@ -72170,11 +72170,11 @@ var eHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Fr
})
] });
};
-g6.Bar = FVe, g6.XAxis = IVe, g6.YAxis = LVe, g6.Grid = RVe, g6.Tooltip = zVe, g6.Legend = BVe, g6.Brush = l6;
+_6.Bar = FVe, _6.XAxis = IVe, _6.YAxis = LVe, _6.Grid = RVe, _6.Tooltip = zVe, _6.Legend = BVe, _6.Brush = u6;
//#endregion
//#region src/react/charts/chart-card.tsx
-var v6 = `${OE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function y6({ title: e, figure: t, note: n }) {
+var y6 = `${AE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function b6({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, B.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, B.jsxs)("span", {
@@ -72192,24 +72192,24 @@ function y6({ title: e, figure: t, note: n }) {
})]
});
}
-var b6 = [
+var x6 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], x6 = (e) => ({ light: [e] }), S6 = (e) => `s${e}`;
+], S6 = (e) => ({ light: [e] }), C6 = (e) => `s${e}`;
function nHe(e) {
- return Object.fromEntries(e.map((e, t) => [S6(t), {
+ return Object.fromEntries(e.map((e, t) => [C6(t), {
label: e,
- colors: x6(b6[t % b6.length])
+ colors: S6(x6[t % x6.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var C6 = "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 w6({ swatch: e, name: t, value: n }) {
+var w6 = "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 T6({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -72224,31 +72224,31 @@ function w6({ swatch: e, name: t, value: n }) {
})]
});
}
-var T6 = "size-2.5 shrink-0 rounded-xs";
+var E6 = "size-2.5 shrink-0 rounded-xs";
function rHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = $3(), s = (t ?? []).filter((e) => e.type !== "none");
+ let { config: o } = e6(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, B.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, B.jsxs)("div", {
- className: C6,
+ className: w6,
children: [c ? /* @__PURE__ */ (0, B.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 = r6(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, B.jsx)(w6, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = i6(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, B.jsx)(T6, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, B.jsx)("i", {
- className: T6,
+ className: E6,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function E6({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, B.jsx)(o6, {
+function D6({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, B.jsx)(s6, {
cursor: !1,
content: /* @__PURE__ */ (0, B.jsx)(rHe, {
nameKey: e,
@@ -72259,12 +72259,12 @@ function E6({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var D6 = [0, (e) => e * 1.2], O6 = (e) => ({
+var O6 = [0, (e) => e * 1.2], k6 = (e) => ({
position: e,
className: "fill-text-secondary",
formatter: (e) => Number(e).toLocaleString()
});
-function k6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
+function A6({ 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
@@ -72272,53 +72272,53 @@ function k6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
if (!s) return null;
let c = a === "horizontal";
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: v6,
+ className: y6,
"aria-label": e,
- children: [/* @__PURE__ */ (0, B.jsx)(y6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(b6, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, B.jsxs)(g6, {
+ }), /* @__PURE__ */ (0, B.jsxs)(_6, {
data: o,
config: { value: {
label: n,
- colors: x6(i)
+ colors: S6(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, B.jsx)(g6.Grid, {}),
- c ? /* @__PURE__ */ (0, B.jsx)(g6.YAxis, {
+ /* @__PURE__ */ (0, B.jsx)(_6.Grid, {}),
+ c ? /* @__PURE__ */ (0, B.jsx)(_6.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, B.jsx)(g6.XAxis, {
+ }) : /* @__PURE__ */ (0, B.jsx)(_6.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, B.jsx)(g6.XAxis, {
+ c ? /* @__PURE__ */ (0, B.jsx)(_6.XAxis, {
hide: !0,
- domain: D6
- }) : /* @__PURE__ */ (0, B.jsx)(g6.YAxis, {
+ domain: O6
+ }) : /* @__PURE__ */ (0, B.jsx)(_6.YAxis, {
hide: !0,
- domain: D6
+ domain: O6
}),
- /* @__PURE__ */ (0, B.jsx)(g6.Bar, {
+ /* @__PURE__ */ (0, B.jsx)(_6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: O6(c ? "right" : "top")
+ label: k6(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, B.jsx)(E6, {})
+ /* @__PURE__ */ (0, B.jsx)(D6, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var A6 = [
+var j6 = [
"周一",
"周二",
"周三",
@@ -72326,7 +72326,7 @@ var A6 = [
"周五",
"周六",
"周日"
-], j6 = (e, t) => e ? Math.max(.12, e / t) : 0;
+], M6 = (e, t) => e ? Math.max(.12, e / t) : 0;
function iHe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
@@ -72337,9 +72337,9 @@ function iHe(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${A6[t]} ${n}:00`,
+ label: `${j6[t]} ${n}:00`,
count: e,
- share: j6(e, r)
+ share: M6(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
@@ -72362,7 +72362,7 @@ function aHe(e) {
key: r,
label: r,
count: s,
- share: j6(s, o)
+ share: M6(s, o)
};
});
return {
@@ -72374,7 +72374,7 @@ function aHe(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var M6 = 14, N6 = 17, P6 = {
+var N6 = 14, P6 = 17, F6 = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -72395,30 +72395,30 @@ function sHe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${C6} ${oHe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${w6} ${oHe[a]}`,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, B.jsx)(w6, {
+ }), /* @__PURE__ */ (0, B.jsx)(T6, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, B.jsx)("i", { className: `${T6} ${P6[n].dot}` })
+ swatch: /* @__PURE__ */ (0, B.jsx)("i", { className: `${E6} ${F6[n].dot}` })
})]
});
}
-function F6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * N6, m = f + a * N6, h = (e) => ({
- x: d + e % i * N6,
- y: f + Math.floor(e / i) * N6
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + M6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
+function I6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * P6, m = f + a * P6, h = (e) => ({
+ x: d + e % i * P6,
+ y: f + Math.floor(e / i) * P6
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + N6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
start: _.x,
- center: _.x + M6 / 2,
- end: _.x + M6
+ center: _.x + N6 / 2,
+ end: _.x + N6
}[y] : 0;
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: v6,
+ className: y6,
children: [
- /* @__PURE__ */ (0, B.jsx)(y6, {
+ /* @__PURE__ */ (0, B.jsx)(b6, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -72441,12 +72441,12 @@ function F6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
x: r,
y: i,
- width: M6,
- height: M6,
+ width: N6,
+ height: N6,
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 ${P6[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${F6[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)
@@ -72469,24 +72469,24 @@ function F6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var cHe = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [A6.map((e, t) => /* @__PURE__ */ (0, B.jsx)("text", {
+var cHe = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [j6.map((e, t) => /* @__PURE__ */ (0, B.jsx)("text", {
x: 0,
- y: 18 + t * N6 + 7,
+ y: 18 + t * P6 + 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, B.jsx)("text", {
- x: 30 + t * N6,
+ x: 30 + t * P6,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function I6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+function L6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
let o = iHe(e), s = aHe(e);
return s.cells.length ? /* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, B.jsx)(F6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(I6, {
title: t,
words: r,
tone: i,
@@ -72496,7 +72496,7 @@ function I6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
rows: 7,
axis: cHe,
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, B.jsx)(F6, {
+ }), /* @__PURE__ */ (0, B.jsx)(I6, {
title: n,
words: r,
tone: i,
@@ -72507,7 +72507,7 @@ function I6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, B.jsx)("span", { children: s.end })] })
})]
}) : a ? /* @__PURE__ */ (0, B.jsxs)("section", {
- className: v6,
+ className: y6,
children: [/* @__PURE__ */ (0, B.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
@@ -72519,7 +72519,7 @@ function I6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function L6({ children: e, className: t = "", previewCount: n = 10 }) {
+function R6({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, R.useId)(), i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(!1), l = R.Children.toArray(e), u = l.length > n;
(0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -72560,19 +72560,19 @@ function L6({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, B.jsx)(pT, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, B.jsx)(hT, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var lHe = "30%", uHe = "100%", R6 = 5, z6 = 14, dHe = 5, B6 = 1500, V6 = (0, R.createContext)(null);
-function H6() {
- let e = (0, R.use)(V6);
+var lHe = "30%", uHe = "100%", z6 = 5, B6 = 14, dHe = 5, V6 = 1500, H6 = (0, R.createContext)(null);
+function U6() {
+ let e = (0, R.use)(H6);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function U6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = lHe, outerRadius: l = uHe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+function W6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = lHe, outerRadius: l = uHe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = vHe(f), v = hHe(o), y = (0, R.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
@@ -72600,12 +72600,12 @@ function U6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, B.jsx)(V6, {
+ return /* @__PURE__ */ (0, B.jsx)(H6, {
value: x,
- children: /* @__PURE__ */ (0, B.jsxs)(e6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(t6, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, B.jsx)(t6, { isLoading: f }), /* @__PURE__ */ (0, B.jsxs)(mVe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(n6, { isLoading: f }), /* @__PURE__ */ (0, B.jsxs)(mVe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -72616,13 +72616,13 @@ function U6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, B.jsx)(K1, {
+ s != null && s > 0 && /* @__PURE__ */ (0, B.jsx)(q1, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, B.jsx)(f6, { variant: p }),
+ p && /* @__PURE__ */ (0, B.jsx)(p6, { variant: p }),
r,
f && /* @__PURE__ */ (0, B.jsx)(yHe, {}),
/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)(gHe, {
@@ -72634,9 +72634,9 @@ function U6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function fHe({ dataKey: e, cornerRadius: t = R6, barSize: n = z6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = H6();
- return s ? null : /* @__PURE__ */ (0, B.jsx)(h2, {
+function fHe({ dataKey: e, cornerRadius: t = z6, barSize: n = B6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = U6();
+ return s ? null : /* @__PURE__ */ (0, B.jsx)(g2, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -72650,7 +72650,7 @@ function fHe({ dataKey: e, cornerRadius: t = R6, barSize: n = z6, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, B.jsx)(sK, {
+ return /* @__PURE__ */ (0, B.jsx)(cK, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -72660,11 +72660,11 @@ function fHe({ dataKey: e, cornerRadius: t = R6, barSize: n = z6, showBackground
});
}
function pHe({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = H6();
- return i ? null : /* @__PURE__ */ (0, B.jsx)(o6, {
+ let { nameKey: r, isLoading: i } = U6();
+ return i ? null : /* @__PURE__ */ (0, B.jsx)(s6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, B.jsx)(a6, {
+ content: /* @__PURE__ */ (0, B.jsx)(o6, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -72673,11 +72673,11 @@ function pHe({ variant: e, roundness: t, defaultIndex: n }) {
});
}
function mHe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = H6();
- return a ? null : /* @__PURE__ */ (0, B.jsx)(c6, {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = U6();
+ return a ? null : /* @__PURE__ */ (0, B.jsx)(l6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, B.jsx)(s6, {
+ content: /* @__PURE__ */ (0, B.jsx)(c6, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -72703,7 +72703,7 @@ function hHe(e) {
}
}
var gHe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = i6(n);
+ let r = a6(n);
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -72737,25 +72737,25 @@ function vHe(e) {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, B6);
+ }, V6);
return () => clearInterval(t);
}, [e]), (0, R.useMemo)(() => _He(), [t]);
}
-var yHe = () => /* @__PURE__ */ (0, B.jsx)(h2, {
+var yHe = () => /* @__PURE__ */ (0, B.jsx)(g2, {
dataKey: "value",
- cornerRadius: R6,
- barSize: z6,
+ cornerRadius: z6,
+ barSize: B6,
background: !0,
isAnimationActive: !0,
- animationDuration: B6,
+ animationDuration: V6,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, B.jsx)(sK, {
+ shape: (e) => /* @__PURE__ */ (0, B.jsx)(cK, {
...e,
fill: "currentColor",
fillOpacity: .25
})
});
-U6.RadialBar = fHe, U6.Tooltip = pHe, U6.Legend = mHe;
+W6.RadialBar = fHe, W6.Tooltip = pHe, W6.Legend = mHe;
//#endregion
//#region src/react/stats/radial-card.tsx
var bHe = [
@@ -72773,15 +72773,15 @@ var bHe = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function W6({ title: e, rows: t, unit: n = "个视频" }) {
+function G6({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, R.useState)(-1), [a, o] = (0, R.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: S6(t),
+ slice: C6(t),
value: e.value
}));
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: v6,
+ className: y6,
children: [
/* @__PURE__ */ (0, B.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -72803,18 +72803,18 @@ function W6({ title: e, rows: t, unit: n = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, B.jsxs)(U6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(W6, {
data: f,
nameKey: "slice",
config: nHe(s.map((e) => e.name)),
max: rbe(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, B.jsx)(U6.RadialBar, {
+ children: [/* @__PURE__ */ (0, B.jsx)(W6.RadialBar, {
dataKey: "value",
barSize: ibe(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, B.jsx)(sK, {
+ shape: (e) => /* @__PURE__ */ (0, B.jsx)(cK, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -72822,7 +72822,7 @@ function W6({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, B.jsx)(E6, {
+ }), /* @__PURE__ */ (0, B.jsx)(D6, {
nameKey: "slice",
hideLabel: !0
})]
@@ -72863,8 +72863,8 @@ function W6({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var SHe = 10, G6 = b6[5], CHe = b6[4], wHe = `${OE()} flex flex-col gap-4`, THe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", EHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", DHe = "开始播放后,这里会显示最近的真实观看证据。", OHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", kHe = "添加媒体文件夹后,这里会显示存储空间。";
-function K6({ term: e, value: t }) {
+var SHe = 10, K6 = x6[5], CHe = x6[4], wHe = `${AE()} flex flex-col gap-4`, THe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", EHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", DHe = "开始播放后,这里会显示最近的真实观看证据。", OHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", kHe = "添加媒体文件夹后,这里会显示存储空间。";
+function q6({ term: e, value: t }) {
return /* @__PURE__ */ (0, B.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, B.jsx)("span", {
@@ -72876,7 +72876,7 @@ function K6({ term: e, value: t }) {
})]
});
}
-function q6({ term: e, value: t, total: n }) {
+function J6({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, B.jsxs)("p", {
@@ -72885,17 +72885,17 @@ function q6({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, B.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [IR(t, n), "%"]
+ children: [LR(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, B.jsx)(NE, {
+ }), /* @__PURE__ */ (0, B.jsx)(FE, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function J6({ term: e, figure: t, unit: n }) {
+function Y6({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -72914,7 +72914,7 @@ function J6({ term: e, figure: t, unit: n }) {
]
});
}
-function Y6({ headline: e, children: t }) {
+function X6({ headline: e, children: t }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: `${wHe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, B.jsx)("div", {
@@ -72928,14 +72928,14 @@ function AHe({ data: e, configurable: t, openMediaSettings: n }) {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, B.jsx)(W6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(G6, {
title: "网盘与本地",
rows: e.by_loc.map((e) => ({
name: I[e.k] ?? e.k,
value: e.videos,
detail: ye(e.bytes)
}))
- }), /* @__PURE__ */ (0, B.jsx)(W6, {
+ }), /* @__PURE__ */ (0, B.jsx)(G6, {
title: "媒体库",
rows: e.by_library.map((e) => ({
name: e.name,
@@ -72946,39 +72946,39 @@ function AHe({ data: e, configurable: t, openMediaSettings: n }) {
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, B.jsx)(k6, {
+ /* @__PURE__ */ (0, B.jsx)(A6, {
title: "时长",
unit: "个视频",
series: "视频",
- color: G6,
+ color: K6,
rows: cbe(e.by_length)
}),
- /* @__PURE__ */ (0, B.jsx)(k6, {
+ /* @__PURE__ */ (0, B.jsx)(A6, {
title: "画质",
unit: "个视频",
series: "视频",
- color: G6,
- rows: zR(e.by_quality)
+ color: K6,
+ rows: BR(e.by_quality)
}),
- /* @__PURE__ */ (0, B.jsx)(k6, {
+ /* @__PURE__ */ (0, B.jsx)(A6, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: G6,
+ color: K6,
layout: "horizontal",
rows: obe(e.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: hae,
+ icon: mae,
title: "还没有视频",
actions: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [t ? /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, B.jsx)(DE, {
+ }) : null, /* @__PURE__ */ (0, B.jsx)(kE, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
@@ -72988,7 +72988,7 @@ function AHe({ data: e, configurable: t, openMediaSettings: n }) {
});
}
function jHe({ data: e }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(I6, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(L6, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -72998,7 +72998,7 @@ function jHe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, B.jsx)(k6, {
+ }), /* @__PURE__ */ (0, B.jsx)(A6, {
title: "播放次数",
unit: "个作品",
series: "作品",
@@ -73011,27 +73011,27 @@ function MHe({ attribution: e }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, B.jsx)(q6, {
+ /* @__PURE__ */ (0, B.jsx)(J6, {
term: "已探测时长",
value: e.duration,
total: t
@@ -73056,11 +73056,11 @@ function NHe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [ye(n), /* @__PURE__ */ (0, B.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [IR(n, t), "%"]
+ children: [LR(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, B.jsx)(NE, {
+ t == null ? null : /* @__PURE__ */ (0, B.jsx)(FE, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -73082,9 +73082,9 @@ function PHe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col",
children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(NHe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: TT,
+ icon: DT,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, B.jsx)(J, {
size: "small",
@@ -73095,7 +73095,7 @@ function PHe({ volumes: e, configurable: t, openMediaSettings: n }) {
});
}
function FHe({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, B.jsx)(L6, {
+ return e.length ? /* @__PURE__ */ (0, B.jsx)(R6, {
previewCount: SHe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, B.jsx)("li", {
@@ -73120,11 +73120,11 @@ function FHe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: OT,
+ icon: AT,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, B.jsx)(DE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
@@ -73137,7 +73137,7 @@ function IHe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = LR(e);
+ let t = RR(e);
return /* @__PURE__ */ (0, B.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -73156,21 +73156,21 @@ function IHe({ rows: e }) {
})]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, B.jsx)(NE, {
+ children: [/* @__PURE__ */ (0, B.jsx)(FE, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, B.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${RR(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${zR(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: ET,
+ icon: OT,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, B.jsx)(DE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {
variant: "secondary",
href: "/",
size: "small",
@@ -73198,7 +73198,7 @@ function LHe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, B.jsx)(NE, {
+ /* @__PURE__ */ (0, B.jsx)(FE, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -73209,11 +73209,11 @@ function LHe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: OT,
+ icon: AT,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, B.jsx)(DE, {
+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
@@ -73222,14 +73222,14 @@ function LHe({ sources: e, videos: t }) {
children: OHe
});
}
-function X6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, B.jsx)(hk, {
+function Z6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, B.jsx)(_k, {
id: e,
- className: yM({
+ className: wM({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, B.jsx)(CM, {
+ children: /* @__PURE__ */ (0, B.jsx)(OM, {
label: t,
icon: i,
accent: a,
@@ -73239,75 +73239,75 @@ function X6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
});
}
function RHe(e) {
- let t = SS({
- queryKey: PR,
- queryFn: ({ signal: e }) => FR(e)
+ let t = TS({
+ queryKey: FR,
+ queryFn: ({ signal: e }) => IR(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, B.jsx)(jE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? U(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 = IR(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, B.jsxs)(jE, { children: [
+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = LR(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
/* @__PURE__ */ (0, B.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${ye(o)}`
}),
- /* @__PURE__ */ (0, B.jsxs)(pk, {
+ /* @__PURE__ */ (0, B.jsxs)(hk, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, B.jsxs)(mk, {
+ /* @__PURE__ */ (0, B.jsxs)(gk, {
"aria-label": "统计视图",
- className: bM,
+ className: TM,
children: [
- /* @__PURE__ */ (0, B.jsx)(X6, {
+ /* @__PURE__ */ (0, B.jsx)(Z6, {
id: "inventory",
label: "馆藏视频",
- icon: xT,
+ icon: CT,
accent: 0,
figure: a.toLocaleString(),
detail: ye(o)
}),
- /* @__PURE__ */ (0, B.jsx)(X6, {
+ /* @__PURE__ */ (0, B.jsx)(Z6, {
id: "viewing",
label: "看过",
- icon: wT,
+ icon: ET,
accent: 1,
figure: r.played.toLocaleString(),
detail: ebe(r.play_seconds)
}),
- /* @__PURE__ */ (0, B.jsx)(X6, {
+ /* @__PURE__ */ (0, B.jsx)(Z6, {
id: "coverage",
label: "内容标签",
- icon: OT,
+ icon: AT,
accent: 2,
figure: `${s}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, B.jsx)(X6, {
+ /* @__PURE__ */ (0, B.jsx)(Z6, {
id: "storage",
label: "使用空间",
- icon: TT,
+ icon: DT,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${ye(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "inventory",
children: /* @__PURE__ */ (0, B.jsx)(AHe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, B.jsxs)(gk, {
+ /* @__PURE__ */ (0, B.jsxs)(vk, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, B.jsx)(Y6, {
- headline: /* @__PURE__ */ (0, B.jsx)(J6, {
+ children: [/* @__PURE__ */ (0, B.jsx)(X6, {
+ headline: /* @__PURE__ */ (0, B.jsx)(Y6, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -73315,35 +73315,35 @@ function RHe(e) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, B.jsx)(K6, {
+ /* @__PURE__ */ (0, B.jsx)(q6, {
term: "回收站",
value: r.trash
})
@@ -73351,10 +73351,10 @@ function RHe(e) {
})
}), /* @__PURE__ */ (0, B.jsx)(jHe, { data: n })]
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "coverage",
- children: /* @__PURE__ */ (0, B.jsx)(Y6, {
- headline: /* @__PURE__ */ (0, B.jsx)(J6, {
+ children: /* @__PURE__ */ (0, B.jsx)(X6, {
+ headline: /* @__PURE__ */ (0, B.jsx)(Y6, {
term: "内容标签覆盖",
figure: `${s}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
@@ -73362,10 +73362,10 @@ function RHe(e) {
children: /* @__PURE__ */ (0, B.jsx)(MHe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "storage",
- children: /* @__PURE__ */ (0, B.jsx)(Y6, {
- headline: /* @__PURE__ */ (0, B.jsx)(J6, {
+ children: /* @__PURE__ */ (0, B.jsx)(X6, {
+ headline: /* @__PURE__ */ (0, B.jsx)(Y6, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
@@ -73378,35 +73378,35 @@ function RHe(e) {
})
]
}),
- /* @__PURE__ */ (0, B.jsxs)(pk, {
+ /* @__PURE__ */ (0, B.jsxs)(hk, {
defaultSelectedKey: "tags",
- className: `${OE({ padding: "none" })} flex flex-col`,
+ className: `${AE({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, B.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, B.jsxs)(mA, {
+ children: /* @__PURE__ */ (0, B.jsxs)(_A, {
"aria-label": "统计维度",
- className: gA,
+ className: yA,
children: [
- /* @__PURE__ */ (0, B.jsx)(hk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "tags",
- className: _A,
+ className: bA,
children: "内容标签"
}),
- /* @__PURE__ */ (0, B.jsx)(hk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "recent",
- className: _A,
+ className: bA,
children: "最近看过"
}),
- /* @__PURE__ */ (0, B.jsx)(hk, {
+ /* @__PURE__ */ (0, B.jsx)(_k, {
id: "sources",
- className: _A,
+ className: bA,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, B.jsx)(FHe, {
@@ -73414,12 +73414,12 @@ function RHe(e) {
...e
})
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, B.jsx)(IHe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, B.jsx)(gk, {
+ /* @__PURE__ */ (0, B.jsx)(vk, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, B.jsx)(LHe, {
@@ -73438,23 +73438,23 @@ function zHe(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function Z6(e) {
+function Q6(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function Q6(e, t) {
- return e8(e.source, t.source) || e.index - t.index;
-}
function $6(e, t) {
- return e8(e.target, t.target) || e.index - t.index;
+ return t8(e.source, t.source) || e.index - t.index;
}
function e8(e, t) {
+ return t8(e.target, t.target) || e.index - t.index;
+}
+function t8(e, t) {
return e.y0 - t.y0;
}
-function t8(e) {
+function n8(e) {
return e.value;
}
function BHe(e) {
@@ -73466,12 +73466,12 @@ function VHe(e) {
function HHe(e) {
return e.links;
}
-function n8(e, t) {
+function r8(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function r8({ nodes: e }) {
+function i8({ 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;
@@ -73485,14 +73485,14 @@ function UHe() {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), r8(e), e;
+ return h(e), g(e), _(e), v(e), x(e), i8(e), e;
}
m.update = function(e) {
- return r8(e), e;
+ return i8(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : Z6(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : Q6(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : Z6(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : Q6(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -73500,9 +73500,9 @@ function UHe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : Z6(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : Q6(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : Z6(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : Q6(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -73518,12 +73518,12 @@ function UHe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = n8(n, t)), typeof i != "object" && (i = r.target = n8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = r8(n, t)), typeof i != "object" && (i = r.target = r8(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(Oq(t.sourceLinks, t8), Oq(t.targetLinks, t8)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(kq(t.sourceLinks, n8), kq(t.targetLinks, n8)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -73548,7 +73548,7 @@ function UHe() {
}
}
function y({ nodes: t }) {
- let r = wq(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = Tq(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];
@@ -73557,7 +73557,7 @@ function UHe() {
return o;
}
function b(e) {
- let n = Tq(e, (e) => (r - t - (e.length - 1) * o) / Oq(e, t8));
+ let n = Eq(e, (e) => (r - t - (e.length - 1) * o) / kq(e, n8));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -73574,7 +73574,7 @@ function UHe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (wq(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (Tq(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);
@@ -73593,7 +73593,7 @@ function UHe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(e8), w(i, n);
+ l === void 0 && i.sort(t8), w(i, n);
}
}
function C(e, t, n) {
@@ -73609,7 +73609,7 @@ function UHe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(e8), w(i, n);
+ l === void 0 && i.sort(t8), w(i, n);
}
}
function w(e, n) {
@@ -73630,12 +73630,12 @@ function UHe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort($6);
- for (let { target: { targetLinks: t } } of e) t.sort(Q6);
+ for (let { source: { sourceLinks: e } } of t) e.sort(e8);
+ for (let { target: { targetLinks: t } } of e) t.sort($6);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort($6), n.sort(Q6);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(e8), n.sort($6);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -73665,15 +73665,15 @@ function UHe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var i8 = Math.PI, a8 = 2 * i8, o8 = 1e-6, WHe = a8 - o8;
-function s8() {
+var a8 = Math.PI, o8 = 2 * a8, s8 = 1e-6, WHe = o8 - s8;
+function c8() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function c8() {
- return new s8();
+function l8() {
+ return new c8();
}
-s8.prototype = c8.prototype = {
- constructor: s8,
+c8.prototype = l8.prototype = {
+ constructor: c8,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -73694,11 +73694,11 @@ s8.prototype = c8.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > o8) {
- if (!(Math.abs(u * s - c * l) > o8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > s8) {
+ if (!(Math.abs(u * s - c * l) > s8) || !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((i8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > o8 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((a8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > s8 && (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);
}
}
},
@@ -73706,7 +73706,7 @@ s8.prototype = c8.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > o8 || Math.abs(this._y1 - l) > o8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % a8 + a8), d > WHe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > o8 && (this._ += "A" + n + "," + n + ",0," + +(d >= i8) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > s8 || Math.abs(this._y1 - l) > s8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % o8 + o8), d > WHe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > s8 && (this._ += "A" + n + "," + n + ",0," + +(d >= a8) + "," + 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";
@@ -73717,7 +73717,7 @@ s8.prototype = c8.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function l8(e) {
+function u8(e) {
return function() {
return e;
};
@@ -73745,16 +73745,16 @@ function XHe(e) {
var t = JHe, n = YHe, r = GHe, i = KHe, a = null;
function o() {
var o, s = qHe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = c8(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ if (a ||= o = l8(), 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 : l8(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : u8(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : l8(+e), o) : i;
+ 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;
@@ -73778,20 +73778,20 @@ function tUe() {
}
//#endregion
//#region src/react/taste/taste.ts
-var nUe = "/api/taste", u8 = "/api/taste/refresh", rUe = "/api/taste/import", iUe = "/api/taste/source", d8 = (e) => ["taste", e], aUe = ["taste", "refresh"], oUe = [
+var nUe = "/api/taste", d8 = "/api/taste/refresh", rUe = "/api/taste/import", iUe = "/api/taste/source", f8 = (e) => ["taste", e], aUe = ["taste", "refresh"], oUe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], f8 = (e, t) => W(`${nUe}?window=${e}`, t), sUe = (e) => W(u8, e);
+], p8 = (e, t) => W(`${nUe}?window=${e}`, t), sUe = (e) => W(d8, e);
async function cUe(e, t) {
await p.fetchQuery({
- queryKey: d8(e),
- queryFn: () => f8(e, t)
+ queryKey: f8(e),
+ queryFn: () => p8(e, t)
});
}
-var lUe = (e) => G(u8, {
+var lUe = (e) => G(d8, {
window: e,
background: !0
}), uUe = (e, t) => G(iUe, {
@@ -73814,11 +73814,11 @@ async function dUe(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new IS(e || `导入失败(${t.status})`, t.status, n);
+ throw new zS(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var fUe = 1e4, p8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", pUe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, mUe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+var fUe = 1e4, m8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", pUe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, mUe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
function hUe(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
@@ -73828,18 +73828,18 @@ function gUe(e) {
let t = e.map(mUe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var m8 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var h8 = (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 _Ue(e) {
- let t = m8(e, 6);
+ let t = h8(e, 6);
return t.length < 3 ? [] : t;
}
-var h8 = {
+var g8 = {
width: 720,
height: 435
-}, g8 = {
+}, _8 = {
source: 145,
target: 545
};
@@ -73891,11 +73891,11 @@ function vUe(e = []) {
total: a
};
}
-var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, v8 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = R.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, B.jsx)(y8, {
+ case "border": return /* @__PURE__ */ (0, B.jsx)(b8, {
cx: e,
cy: t,
dotId: c,
@@ -73904,7 +73904,7 @@ var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, B.jsx)(b8, {
+ case "colored-border": return /* @__PURE__ */ (0, B.jsx)(x8, {
cx: e,
cy: t,
dotId: c,
@@ -73913,7 +73913,7 @@ var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, B.jsx)(v8, {
+ default: return /* @__PURE__ */ (0, B.jsx)(y8, {
cx: e,
cy: t,
dotId: c,
@@ -73923,7 +73923,7 @@ var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(functio
maskId: s
});
}
-}), v8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
+}), y8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)("clipPath", {
@@ -73943,9 +73943,9 @@ var yUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _8 = R.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-v8.displayName = "DefaultDot";
-var y8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
- className: Y3(a, "text-background"),
+y8.displayName = "DefaultDot";
+var b8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
+ className: X3(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)("clipPath", {
@@ -73981,9 +73981,9 @@ var y8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-y8.displayName = "PrimaryBorderDot";
-var b8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
- className: Y3(a, "text-background"),
+b8.displayName = "PrimaryBorderDot";
+var x8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, B.jsxs)("g", {
+ className: X3(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, B.jsx)("defs", { children: /* @__PURE__ */ (0, B.jsx)("clipPath", {
@@ -74011,16 +74011,16 @@ var b8 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-b8.displayName = "ColoredBorderDot";
+x8.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var bUe = 1, xUe = .3, SUe = 6, x8 = 1500, S8 = "value", C8 = (0, R.createContext)(null);
-function w8() {
- let e = (0, R.use)(C8);
+var bUe = 1, xUe = .3, SUe = 6, S8 = 1500, C8 = "value", w8 = (0, R.createContext)(null);
+function T8() {
+ let e = (0, R.use)(w8);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function T8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
+function E8({ 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, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = FUe(c, l), m = (0, R.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, R.useMemo)(() => ({
@@ -74034,17 +74034,17 @@ function T8({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, B.jsx)(C8, {
+ return /* @__PURE__ */ (0, B.jsx)(w8, {
value: h,
- children: /* @__PURE__ */ (0, B.jsxs)(e6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(t6, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, B.jsx)(t6, { isLoading: c }), /* @__PURE__ */ (0, B.jsxs)(oVe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(n6, { isLoading: c }), /* @__PURE__ */ (0, B.jsxs)(oVe, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, B.jsx)(f6, { variant: a }),
+ a && /* @__PURE__ */ (0, B.jsx)(p6, { variant: a }),
n,
c && /* @__PURE__ */ (0, B.jsx)(IUe, {})
]
@@ -74053,14 +74053,14 @@ function T8({ config: e, data: t, children: n, className: r, chartProps: i, back
});
}
function CUe({ dataKey: e, variant: t = "filled", fillOpacity: n = xUe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = w8(), d = (0, R.useId)().replace(/:/g, "");
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = T8(), d = (0, R.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 } = kUe(a, d, e, p.dot);
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(z0, {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(B0, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
@@ -74098,9 +74098,9 @@ function CUe({ dataKey: e, variant: t = "filled", fillOpacity: n = xUe, isGlowin
})
] })] });
}
-var E8 = () => null, D8 = () => null;
+var D8 = () => null, O8 = () => null;
function wUe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, B.jsx)(M1, {
+ return /* @__PURE__ */ (0, B.jsx)(N1, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -74112,8 +74112,8 @@ function TUe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = w8();
- return r ? null : /* @__PURE__ */ (0, B.jsx)(K1, {
+ let { isLoading: r } = T8();
+ return r ? null : /* @__PURE__ */ (0, B.jsx)(q1, {
tick: e,
tickLine: t,
...n
@@ -74123,8 +74123,8 @@ function EUe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = w8();
- return i ? null : /* @__PURE__ */ (0, B.jsx)(B1, {
+ let { isLoading: i } = T8();
+ return i ? null : /* @__PURE__ */ (0, B.jsx)(V1, {
tick: e,
tickLine: t,
axisLine: n,
@@ -74132,11 +74132,11 @@ function EUe({ tick: e = {
});
}
function DUe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = w8();
- return r ? null : /* @__PURE__ */ (0, B.jsx)(o6, {
+ let { isLoading: r, selectedDataKey: i } = T8();
+ return r ? null : /* @__PURE__ */ (0, B.jsx)(s6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, B.jsx)(a6, {
+ content: /* @__PURE__ */ (0, B.jsx)(o6, {
selected: i,
roundness: t,
variant: e
@@ -74144,11 +74144,11 @@ function DUe({ variant: e, roundness: t, defaultIndex: n }) {
});
}
function OUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = w8();
- return i ? null : /* @__PURE__ */ (0, B.jsx)(c6, {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = T8();
+ return i ? null : /* @__PURE__ */ (0, B.jsx)(l6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, B.jsx)(s6, {
+ content: /* @__PURE__ */ (0, B.jsx)(c6, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -74160,18 +74160,18 @@ var kUe = (e, t, n, r) => {
let i = !1, a = !1;
return R.Children.forEach(e, (e) => {
if ((0, R.isValidElement)(e)) {
- if (e.type === E8) {
+ if (e.type === D8) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, B.jsx)(_8, {
+ i = /* @__PURE__ */ (0, B.jsx)(v8, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === D8) {
+ if (e.type === O8) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, B.jsx)(_8, {
+ a = /* @__PURE__ */ (0, B.jsx)(v8, {
type: i,
dataKey: n,
chartId: t,
@@ -74183,7 +74183,7 @@ var kUe = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, O8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("stop", {
+}, k8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -74199,39 +74199,39 @@ var kUe = (e, t, n, r) => {
stopOpacity: n?.[i]
}, a);
}) }), AUe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, B.jsx)(O8, {
+ children: /* @__PURE__ */ (0, B.jsx)(k8, {
dataKey: t,
colorsCount: r
})
});
}, jUe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {});
+ let r = a6(n[t] ?? {});
return /* @__PURE__ */ (0, B.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, B.jsx)(O8, {
+ children: /* @__PURE__ */ (0, B.jsx)(k8, {
dataKey: t,
colorsCount: r
})
});
}, MUe = ({ id: e, dataKey: t, config: n }) => {
- let r = i6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+ let r = a6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, B.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, B.jsx)(O8, {
+ children: /* @__PURE__ */ (0, B.jsx)(k8, {
dataKey: t,
colorsCount: r,
opacities: i
@@ -74266,7 +74266,7 @@ var kUe = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [S8]: 30 + Math.random() * 70
+ [C8]: 30 + Math.random() * 70
}));
function FUe(e, t = SUe) {
let [n, r] = (0, R.useState)(0);
@@ -74274,12 +74274,12 @@ function FUe(e, t = SUe) {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, x8);
+ }, S8);
return () => clearInterval(t);
}, [e]), (0, R.useMemo)(() => PUe(t), [t, n]);
}
-var IUe = () => /* @__PURE__ */ (0, B.jsx)(z0, {
- dataKey: S8,
+var IUe = () => /* @__PURE__ */ (0, B.jsx)(B0, {
+ dataKey: C8,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -74287,10 +74287,10 @@ var IUe = () => /* @__PURE__ */ (0, B.jsx)(z0, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: x8,
+ animationDuration: S8,
animationEasing: "ease-in-out"
});
-T8.Radar = CUe, T8.Dot = E8, T8.ActiveDot = D8, T8.PolarGrid = wUe, T8.PolarAngleAxis = TUe, T8.PolarRadiusAxis = EUe, T8.Tooltip = DUe, T8.Legend = OUe;
+E8.Radar = CUe, E8.Dot = D8, E8.ActiveDot = O8, E8.PolarGrid = wUe, E8.PolarAngleAxis = TUe, E8.PolarRadiusAxis = EUe, E8.Tooltip = DUe, E8.Legend = OUe;
//#endregion
//#region src/react/taste/charts.tsx
var LUe = [
@@ -74307,9 +74307,9 @@ var LUe = [
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], k8 = { value: {
+], A8 = { value: {
label: "标签命中",
- colors: x6(b6[3])
+ colors: S6(x6[3])
} }, zUe = [
"min-h-24",
"min-h-24",
@@ -74320,7 +74320,7 @@ var LUe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], BUe = 26, VUe = { radius: k8.value }, HUe = (e, t) => Math.sqrt(e / t);
+], BUe = 26, VUe = { radius: A8.value }, HUe = (e, t) => Math.sqrt(e / t);
function UUe({ rows: e, label: t }) {
let n = _Ue(e);
if (!n.length) return null;
@@ -74331,55 +74331,55 @@ function UUe({ rows: e, label: t }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, B.jsxs)(T8, {
+ children: /* @__PURE__ */ (0, B.jsxs)(E8, {
data: i,
config: VUe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(T8.PolarGrid, {}),
- /* @__PURE__ */ (0, B.jsx)(T8.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, B.jsx)(T8.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, B.jsx)(E8.PolarGrid, {}),
+ /* @__PURE__ */ (0, B.jsx)(E8.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, B.jsx)(E8.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, B.jsx)(T8.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, B.jsx)(E6, { valueKey: "value" })
+ /* @__PURE__ */ (0, B.jsx)(E8.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, B.jsx)(D6, { valueKey: "value" })
]
})
});
}
function WUe({ rows: e, label: t }) {
- let n = m8(e, 8);
+ let n = h8(e, 8);
return n.length ? /* @__PURE__ */ (0, B.jsx)("section", {
"aria-label": t,
className: `flex grow flex-col ${zUe[n.length]}`,
- children: /* @__PURE__ */ (0, B.jsxs)(g6, {
+ children: /* @__PURE__ */ (0, B.jsxs)(_6, {
data: n,
- config: k8,
+ config: A8,
layout: "horizontal",
barRadius: 4,
chartProps: { maxBarSize: BUe },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, B.jsx)(g6.YAxis, {
+ /* @__PURE__ */ (0, B.jsx)(_6.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, B.jsx)(g6.XAxis, {
+ /* @__PURE__ */ (0, B.jsx)(_6.XAxis, {
hide: !0,
- domain: D6
+ domain: O6
}),
- /* @__PURE__ */ (0, B.jsx)(g6.Bar, {
+ /* @__PURE__ */ (0, B.jsx)(_6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: O6("right")
+ label: k6("right")
}
}),
- /* @__PURE__ */ (0, B.jsx)(E6, {})
+ /* @__PURE__ */ (0, B.jsx)(D6, {})
]
})
}) : null;
@@ -74389,9 +74389,9 @@ function GUe({ flows: 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, B.jsxs)("section", {
- className: v6,
+ className: y6,
children: [
- /* @__PURE__ */ (0, B.jsx)(y6, {
+ /* @__PURE__ */ (0, B.jsx)(b6, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -74399,7 +74399,7 @@ function GUe({ flows: e }) {
/* @__PURE__ */ (0, B.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, B.jsxs)("svg", {
- viewBox: `0 0 ${h8.width} ${h8.height}`,
+ viewBox: `0 0 ${g8.width} ${g8.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -74449,13 +74449,13 @@ function GUe({ flows: e }) {
rx: 5,
className: e.side === "source" ? RUe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, B.jsxs)("text", {
- x: g8[e.side],
+ x: _8[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: [yUe(e.name), /* @__PURE__ */ (0, B.jsx)("tspan", {
- x: g8[e.side],
+ x: _8[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -74472,11 +74472,11 @@ function GUe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var KUe = 10, A8 = SE(Ck, wk, "text-body-2-medium"), j8 = `${OE()} flex flex-col gap-4`, M8 = "rounded-xl bg-background-primary-default p-3", qUe = "读取运行 Peach 的这台电脑上的浏览记录", JUe = "导入或读取浏览记录后,这里会列出已采集设备。", YUe = "馆藏里暂时没有对得上浏览信号的标签。", XUe = "采集浏览记录后,这里会显示聚合后的口味证据。", ZUe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", QUe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", $Ue = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", eWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", tWe = "这个数据源将不再用于口味分析。原始导出文件保留。", N8 = "peach-taste-guide-dismissed";
-function P8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var KUe = 10, j8 = wE(Tk, Ek, "text-body-2-medium"), M8 = `${AE()} flex flex-col gap-4`, N8 = "rounded-xl bg-background-primary-default p-3", qUe = "读取运行 Peach 的这台电脑上的浏览记录", JUe = "导入或读取浏览记录后,这里会列出已采集设备。", YUe = "馆藏里暂时没有对得上浏览信号的标签。", XUe = "采集浏览记录后,这里会显示聚合后的口味证据。", ZUe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", QUe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", $Ue = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", eWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", tWe = "这个数据源将不再用于口味分析。原始导出文件保留。", P8 = "peach-taste-guide-dismissed";
+function F8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
- className: yM(),
- children: /* @__PURE__ */ (0, B.jsx)(CM, {
+ className: wM(),
+ children: /* @__PURE__ */ (0, B.jsx)(OM, {
label: t,
icon: e,
accent: i,
@@ -74485,7 +74485,7 @@ function P8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function F8({ name: e, domain: t }) {
+function I8({ name: e, domain: t }) {
return /* @__PURE__ */ (0, B.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, B.jsx)("img", {
@@ -74501,19 +74501,19 @@ function F8({ name: e, domain: t }) {
}
function nWe({ html: e }) {
return /* @__PURE__ */ (0, B.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 ${aL}`,
+ 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 ${oL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
function rWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, B.jsx)(kE, {
+ if (!e.length) return /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: jT,
+ icon: NT,
title: "暂无足够证据",
children: r
});
let a = gUe(e);
- return /* @__PURE__ */ (0, B.jsx)(L6, {
+ return /* @__PURE__ */ (0, B.jsx)(R6, {
previewCount: KUe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
@@ -74533,11 +74533,11 @@ function rWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, B.jsx)(F8, {
+ n === "domain" ? /* @__PURE__ */ (0, B.jsx)(I8, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, B.jsx)(F8, {
+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, B.jsx)(I8, {
name: e.name,
domain: s
}) : null,
@@ -74557,7 +74557,7 @@ function rWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: hUe(e)
})]
}),
- o ? /* @__PURE__ */ (0, B.jsx)(hT, {
+ o ? /* @__PURE__ */ (0, B.jsx)(_T, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -74577,21 +74577,21 @@ function rWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
})
});
}
-function I8({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, B.jsxs)(pk, {
- className: `${OE({ padding: "none" })} flex flex-col`,
+function L8({ label: e, panels: t, onSignal: n }) {
+ return /* @__PURE__ */ (0, B.jsxs)(hk, {
+ className: `${AE({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, B.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, B.jsx)(mA, {
+ children: /* @__PURE__ */ (0, B.jsx)(_A, {
"aria-label": e,
- className: gA,
- children: t.map((e) => /* @__PURE__ */ (0, B.jsx)(hk, {
+ className: yA,
+ children: t.map((e) => /* @__PURE__ */ (0, B.jsx)(_k, {
id: e.id,
- className: _A,
+ className: bA,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(gk, {
+ }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(vk, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, B.jsx)(rWe, {
@@ -74616,7 +74616,7 @@ function iWe({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: j8,
+ className: M8,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, B.jsxs)("header", {
@@ -74642,7 +74642,7 @@ function iWe({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${M8}`,
+ className: `flex min-w-0 flex-col gap-1 ${N8}`,
children: [/* @__PURE__ */ (0, B.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -74657,7 +74657,7 @@ function iWe({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${M8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${N8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, B.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, B.jsx)("b", {
@@ -74667,14 +74667,14 @@ function iWe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, B.jsx)(hT, {
+ }), /* @__PURE__ */ (0, B.jsx)(_T, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: jT,
+ icon: NT,
title: "还没有可探索的入口",
children: YUe
})
@@ -74684,17 +74684,17 @@ function iWe({ data: e, onSignal: t, navigate: n }) {
function aWe({ onboarding: e, done: t }) {
let [n, r] = (0, R.useState)(() => {
try {
- return localStorage.getItem(N8) === "1";
+ return localStorage.getItem(P8) === "1";
} catch {
return !1;
}
});
return t || n ? null : /* @__PURE__ */ (0, B.jsx)("div", {
- className: OE({
+ className: AE({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, B.jsxs)(Uk, {
+ children: /* @__PURE__ */ (0, B.jsxs)(Gk, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
@@ -74743,7 +74743,7 @@ function aWe({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(N8, "1");
+ localStorage.setItem(P8, "1");
} catch {}
r(!0);
},
@@ -74763,7 +74763,7 @@ function oWe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, B.jsx)(J, {
- leadingIcon: bT,
+ leadingIcon: ST,
title: qUe,
onClick: t,
...X(e),
@@ -74771,7 +74771,7 @@ function oWe({ busy: e, onRefresh: t, onImport: n }) {
}), /* @__PURE__ */ (0, B.jsx)(J, {
ref: r,
iconOnly: !0,
- leadingIcon: pT,
+ leadingIcon: hT,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -74780,29 +74780,29 @@ function oWe({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, B.jsx)(bO, {
+ }), /* @__PURE__ */ (0, B.jsx)(SO, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: Sk,
- children: /* @__PURE__ */ (0, B.jsxs)(wM, {
+ className: wk,
+ children: /* @__PURE__ */ (0, B.jsxs)(kM, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: A8,
+ className: j8,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, B.jsx)(bT, {
+ children: [/* @__PURE__ */ (0, B.jsx)(ST, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
- className: A8,
+ className: j8,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, B.jsx)(MT, {
+ children: [/* @__PURE__ */ (0, B.jsx)(PT, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -74811,14 +74811,14 @@ function oWe({ busy: e, onRefresh: t, onImport: n }) {
})] });
}
function sWe({ sources: e, window: t, toast: n }) {
- let r = TS({
+ let r = OS({
mutationFn: (e) => uUe(e, t),
onSuccess: (e) => {
- p.setQueryData(d8(t), e.dashboard), n("已移除口味数据源");
+ p.setQueryData(f8(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, B.jsxs)("section", {
- className: j8,
+ className: M8,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, B.jsx)("h3", {
@@ -74832,14 +74832,14 @@ function sWe({ sources: e, window: t, toast: n }) {
e.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${M8}`,
+ className: `flex min-w-0 items-center gap-3 ${N8}`,
children: [
/* @__PURE__ */ (0, B.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, B.jsx)(MT, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, B.jsx)(PT, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, B.jsx)(xT, {
+ }) : /* @__PURE__ */ (0, B.jsx)(CT, {
"aria-hidden": !0,
className: "size-4"
})
@@ -74859,7 +74859,7 @@ function sWe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: wT,
...X(r.isPending),
onClick: () => {
r.isPending || je({
@@ -74872,9 +74872,9 @@ function sWe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: xT,
+ icon: CT,
title: "还没有数据源",
children: JUe
})
@@ -74882,11 +74882,11 @@ function sWe({ sources: e, window: t, toast: n }) {
});
}
function cWe(e) {
- let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, R.useState)("all"), [s, c] = (0, R.useState)("browser"), l = (0, R.useRef)(null), u = SS({
- queryKey: d8(a),
- queryFn: ({ signal: e }) => f8(a, e),
- placeholderData: DS.keepPreviousData
- }), { job: d, running: f, outcome: m, start: h } = RM({
+ let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, R.useState)("all"), [s, c] = (0, R.useState)("browser"), l = (0, R.useRef)(null), u = TS({
+ queryKey: f8(a),
+ queryFn: ({ signal: e }) => p8(a, e),
+ placeholderData: AS.keepPreviousData
+ }), { job: d, running: f, outcome: m, start: h } = UM({
queryKey: aUe,
queryFn: ({ signal: e }) => sUe(e),
start: () => lUe(a),
@@ -74894,10 +74894,10 @@ function cWe(e) {
onFinish: (e) => {
e.status !== "failed" && (p.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
- }), g = TS({
+ }), g = OS({
mutationFn: (e) => dUe(e),
onSuccess: (e) => {
- p.setQueryData(d8("all"), e.dashboard), o("all"), r("已导入口味数据");
+ p.setQueryData(f8("all"), e.dashboard), o("all"), r("已导入口味数据");
}
}), _ = (e) => {
let t = e.currentTarget.files?.[0];
@@ -74905,42 +74905,42 @@ function cWe(e) {
}, v = () => {
f || h.isPending || (h.reset(), h.mutate());
}, y = u.data;
- if (!y) return /* @__PURE__ */ (0, B.jsx)(jE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ if (!y) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "口味分析读取失败",
children: u.error ? U(u.error) : "读取口味分析失败"
}) });
let b = y.summary || {}, x = y.coverage || {}, S = y.rankings || {}, C = y.storage || {}, w = S.browser_categories || [], T = y.gaps || [], E = x.tagged || 0, D = x.identified || 0, O = h.error ? U(h.error) : g.error ? U(g.error) : m?.status === "failed" ? m.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, B.jsxs)(jE, { children: [
- /* @__PURE__ */ (0, B.jsxs)(pk, {
+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [
+ /* @__PURE__ */ (0, B.jsxs)(hk, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, B.jsxs)(mA, {
+ children: [/* @__PURE__ */ (0, B.jsxs)(_A, {
"aria-label": "口味证据来源",
- className: gA,
- children: [/* @__PURE__ */ (0, B.jsx)(hk, {
+ className: yA,
+ children: [/* @__PURE__ */ (0, B.jsx)(_k, {
id: "browser",
- className: _A,
+ className: bA,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, B.jsx)(hk, {
+ }), /* @__PURE__ */ (0, B.jsx)(_k, {
id: "peach",
- className: _A,
+ className: bA,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(Ek, {
+ /* @__PURE__ */ (0, B.jsx)(Ok, {
"aria-label": "分析范围",
selectedKey: a,
onSelectionChange: (e) => {
e !== null && o(String(e));
},
- children: oUe.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Dk, {
+ children: oUe.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {
id: e,
children: t
}, e))
@@ -74969,48 +74969,48 @@ function cWe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- f ? /* @__PURE__ */ (0, B.jsx)(PM, {
+ f ? /* @__PURE__ */ (0, B.jsx)(zM, {
label: d?.message || "正在读取浏览记录并更新口味分析",
value: d?.checked,
total: d?.total
}) : null,
- g.isPending ? /* @__PURE__ */ (0, B.jsx)(PM, { label: "正在导入历史文件" }) : null,
+ g.isPending ? /* @__PURE__ */ (0, B.jsx)(zM, { label: "正在导入历史文件" }) : null,
O ? /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
children: O
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsxs)(gk, {
+ /* @__PURE__ */ (0, B.jsxs)(vk, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: bM,
+ className: TM,
children: [
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 0,
- icon: ET,
+ icon: OT,
term: "浏览记录",
figure: Number(b.history_visits || 0).toLocaleString(),
- detail: `${b.history_sources || 0} 个数据源 · ${p8(b.range_start)}—${p8(b.range_end)}`
+ detail: `${b.history_sources || 0} 个数据源 · ${m8(b.range_start)}—${m8(b.range_end)}`
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 1,
- icon: OT,
+ icon: AT,
term: "口味维度",
figure: w.length.toLocaleString(),
detail: w[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 2,
- icon: jT,
+ icon: NT,
term: "浏览候选",
figure: T.length.toLocaleString()
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 3,
- icon: xT,
+ icon: CT,
term: "私有导出",
figure: Number(C.exports || 0).toLocaleString(),
detail: ye(C.bytes || 0)
@@ -75018,7 +75018,7 @@ function cWe(e) {
]
}),
/* @__PURE__ */ (0, B.jsxs)("section", {
- className: `${j8} md:flex-row md:gap-6`,
+ className: `${M8} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",
@@ -75033,7 +75033,7 @@ function cWe(e) {
}),
/* @__PURE__ */ (0, B.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: y.updated_at ? `更新于 ${p8(y.updated_at)}` : "尚未采集浏览记录"
+ children: y.updated_at ? `更新于 ${m8(y.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, B.jsx)("div", {
@@ -75041,15 +75041,15 @@ function cWe(e) {
children: w.length ? /* @__PURE__ */ (0, B.jsx)(WUe, {
rows: w,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, B.jsx)(kE, {
+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {
shell: "plain",
- icon: jT,
+ icon: NT,
title: "暂无口味维度",
children: XUe
})
})]
}),
- /* @__PURE__ */ (0, B.jsx)(I6, {
+ /* @__PURE__ */ (0, B.jsx)(L6, {
activity: y.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -75062,7 +75062,7 @@ function cWe(e) {
empty: "还没有可用于分析的口味网站访问记录。"
}),
/* @__PURE__ */ (0, B.jsx)(GUe, { flows: y.creator_flows }),
- /* @__PURE__ */ (0, B.jsx)(I8, {
+ /* @__PURE__ */ (0, B.jsx)(L8, {
label: "浏览器口味维度",
onSignal: t,
panels: [
@@ -75110,42 +75110,42 @@ function cWe(e) {
})
]
}),
- /* @__PURE__ */ (0, B.jsxs)(gk, {
+ /* @__PURE__ */ (0, B.jsxs)(vk, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
- className: bM,
+ className: TM,
children: [
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 0,
- icon: wT,
+ icon: ET,
term: "Peach 看过",
figure: Number(b.peach_items || 0).toLocaleString(),
detail: pUe(b.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 1,
- icon: mae,
+ icon: pae,
term: "喜欢",
figure: Number(b.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 2,
- icon: pae,
+ icon: fae,
term: "不合口味",
figure: Number(b.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, B.jsx)(P8, {
+ /* @__PURE__ */ (0, B.jsx)(F8, {
accent: 3,
- icon: OT,
+ icon: AT,
term: "有标签",
figure: E.toLocaleString()
})
]
}),
/* @__PURE__ */ (0, B.jsxs)("section", {
- className: `${j8} md:flex-row md:gap-6`,
+ className: `${M8} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -75165,18 +75165,18 @@ function cWe(e) {
]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, B.jsx)(L8, {
+ children: [/* @__PURE__ */ (0, B.jsx)(R8, {
term: "有标签",
value: E,
rest: x.untagged || 0
- }), /* @__PURE__ */ (0, B.jsx)(L8, {
+ }), /* @__PURE__ */ (0, B.jsx)(R8, {
term: "有身份",
value: D,
rest: x.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, B.jsx)(I8, {
+ /* @__PURE__ */ (0, B.jsx)(L8, {
label: "Peach 口味维度",
onSignal: t,
panels: [
@@ -75228,7 +75228,7 @@ function cWe(e) {
})
] });
}
-function L8({ term: e, value: t, rest: n }) {
+function R8({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -75241,7 +75241,7 @@ function L8({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, B.jsx)(NE, {
+ }), /* @__PURE__ */ (0, B.jsx)(FE, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -75256,9 +75256,9 @@ function lWe(e, t, n) {
return;
}
let r = t.managePath(e);
- z8(r) ? n(r) : t.openManage(e);
+ B8(r) ? n(r) : t.openManage(e);
}
-var R8 = {
+var z8 = {
"/stats": {
prefetch: (e, t) => $ye(t),
page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(RHe, {
@@ -75280,7 +75280,7 @@ var R8 = {
})
},
"/review": {
- prefetch: (e, t) => Cue(t),
+ prefetch: (e, t) => jj(t),
page: (e, t) => /* @__PURE__ */ (0, B.jsx)(Tve, {
...e,
route: t.routeReview,
@@ -75291,15 +75291,15 @@ var R8 = {
})
},
"/data-cleanup": {
- prefetch: (e, t) => ude(t),
- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(_fe, {
+ prefetch: (e, t) => ode(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(pfe, {
failure: t.failure,
open: (e) => lWe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
})
},
"/duplicates": {
- prefetch: (e, t) => Rle(t),
+ prefetch: (e, t) => Ile(t),
page: (e, t) => /* @__PURE__ */ (0, B.jsx)(ame, {
openItem: t.openItem,
failure: t.failure,
@@ -75307,7 +75307,7 @@ var R8 = {
})
},
"/quality-goals": {
- prefetch: (e, t) => nue(t),
+ prefetch: (e, t) => eue(t),
page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(lve, {
openItem: t.openItem,
javTitleHtml: st,
@@ -75323,7 +75323,7 @@ var R8 = {
page: (e, t) => /* @__PURE__ */ (0, B.jsx)(zve, { toast: (e) => t.toast(e) })
},
"/configuration": {
- prefetch: (e, t) => xR(t),
+ prefetch: (e, t) => SR(t),
page: (e, t) => /* @__PURE__ */ (0, B.jsx)(Zye, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial
@@ -75341,8 +75341,8 @@ var R8 = {
})
},
"/activity": {
- prefetch: (e, t) => Sce(t),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(Kce, { ...e.prefill ? { prefill: e.prefill } : {} })
+ prefetch: (e, t) => xce(t),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(Wce, { ...e.prefill ? { prefill: e.prefill } : {} })
},
"/follow-manage": {
prefetch: (e, t) => Hme(t, e.tab),
@@ -75357,7 +75357,7 @@ var R8 = {
}
})
}
-}, z8 = (e) => Object.hasOwn(R8, e), B8 = {
+}, B8 = (e) => Object.hasOwn(z8, e), V8 = {
"/playlists": {
prefetch: (e, t) => Y_e(t),
page: (e, t) => /* @__PURE__ */ (0, B.jsx)(sve, {
@@ -75372,8 +75372,8 @@ var R8 = {
prefetch: (e, t) => Xme(e, t),
page: (e) => /* @__PURE__ */ (0, B.jsx)(bhe, { ...e })
}
-}, V8 = (e) => Object.hasOwn(B8, e), H8 = {
- prefetch: (e, t) => Rfe(e, t),
+}, H8 = (e) => Object.hasOwn(V8, e), U8 = {
+ prefetch: (e, t) => Pfe(e, t),
page: (e, t) => /* @__PURE__ */ (0, B.jsx)(E_e, {
...e,
route: t.routeIndex,
@@ -75387,48 +75387,48 @@ var R8 = {
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
-}, U8 = {
- "/performers": H8,
- "/creators": H8,
- "/studios": H8,
- "/agencies": H8,
- "/tags": H8
}, W8 = {
- prefetch: (e) => Dfe(e),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(Xpe, { ...e })
+ "/performers": U8,
+ "/creators": U8,
+ "/studios": U8,
+ "/agencies": U8,
+ "/tags": U8
}, G8 = {
- "/performers/*": W8,
- "/studios/*": W8,
- "/creators/*": W8,
- "/series/*": W8,
- "/agencies/*": W8
+ prefetch: (e) => Cfe(e),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(Xpe, { ...e })
}, K8 = {
+ "/performers/*": G8,
+ "/studios/*": G8,
+ "/creators/*": G8,
+ "/series/*": G8,
+ "/agencies/*": G8
+}, q8 = {
"/": {
- prefetch: (e, t) => kre(e, t),
- page: (e) => /* @__PURE__ */ (0, B.jsx)(VA, { ...e })
+ prefetch: (e, t) => Ore(e, t),
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(WA, { ...e })
},
"/junk-files": {
prefetch: async () => {},
page: (e) => /* @__PURE__ */ (0, B.jsx)(V_e, { ...e })
}
-}, q8 = (e) => Object.hasOwn(K8, e), uWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, B.jsx)(q_e, { ...e }) : /* @__PURE__ */ (0, B.jsx)(IM, { ...e }), J8 = {
+}, J8 = (e) => Object.hasOwn(q8, e), uWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, B.jsx)(q_e, { ...e }) : /* @__PURE__ */ (0, B.jsx)(VM, { ...e }), Y8 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, B.jsx)(sle, { ...e })
+ page: (e) => /* @__PURE__ */ (0, B.jsx)(ale, { ...e })
},
"feed-new": {
- prefetch: (e) => Sfe(e),
+ prefetch: (e) => vfe(e),
page: (e) => /* @__PURE__ */ (0, B.jsx)(dme, { ...e })
},
"library-processing": {
- prefetch: (e, t) => ej(t),
+ prefetch: (e, t) => rj(t),
page: (e) => /* @__PURE__ */ (0, B.jsx)(uWe, { ...e })
},
search: {
prefetch: async () => {},
page: (e) => /* @__PURE__ */ (0, B.jsx)(Wve, { ...e })
}
-}, Y8 = (e) => Object.hasOwn(J8, e), dWe = [
+}, X8 = (e) => Object.hasOwn(Y8, e), dWe = [
"/",
"/unseen",
"/watch-later",
@@ -75436,20 +75436,20 @@ var R8 = {
"/trash",
"/junk-files"
], fWe = [
- ...Object.keys(R8),
- ...Object.keys(B8),
- ...Object.keys(U8),
- ...Object.keys(G8),
+ ...Object.keys(z8),
+ ...Object.keys(V8),
+ ...Object.keys(W8),
+ ...Object.keys(K8),
...dWe
-], X8 = (e) => z8(e) || V8(e) || Object.hasOwn(U8, e) || Object.hasOwn(G8, e) || q8(e) || Y8(e);
-function Z8(e) {
- return z8(e) ? R8[e] : V8(e) ? B8[e] : q8(e) ? K8[e] : Y8(e) ? J8[e] : Object.hasOwn(U8, e) ? U8[e] : G8[e];
+], Z8 = (e) => B8(e) || H8(e) || Object.hasOwn(W8, e) || Object.hasOwn(K8, e) || J8(e) || X8(e);
+function Q8(e) {
+ return B8(e) ? z8[e] : H8(e) ? V8[e] : J8(e) ? q8[e] : X8(e) ? Y8[e] : Object.hasOwn(W8, e) ? W8[e] : K8[e];
}
function pWe(e, t, n) {
- return X8(e) ? Z8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+ return Z8(e) ? Q8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
function mWe(e, t, n, r) {
- return Z8(e).page(t, n, r);
+ return Q8(e).page(t, n, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
@@ -75459,10 +75459,10 @@ function _We(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
-function Q8(e, t) {
+function $8(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function $8(e, t) {
+function e5(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -75473,7 +75473,7 @@ function $8(e, t) {
function vWe({ 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 e5(e) {
+function t5(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -75489,17 +75489,17 @@ function yWe(e, t, n = "/") {
return bWe(e, t, n, !1);
}
function bWe(e, t, n, r, i) {
- let a = s5((typeof t == "string" ? e5(t) : t).pathname || "/", n);
+ let a = c5((typeof t == "string" ? t5(t) : t).pathname || "/", n);
if (a == null) return null;
let o = i ?? xWe(e), s = null, c = PWe(a);
for (let e = 0; s == null && e < o.length; ++e) s = NWe(o[e], c, r);
return s;
}
function xWe(e) {
- let t = t5(e);
+ let t = n5(e);
return SWe(t), t;
}
-function t5(e, t = [], n = [], r = "", i = !1) {
+function n5(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -75509,14 +75509,14 @@ function t5(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- Q8(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);
+ $8(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 = d5([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (Q8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), t5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
+ let l = f5([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && ($8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), n5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
path: l,
score: jWe(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = o5(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = s5(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -75527,24 +75527,24 @@ function t5(e, t = [], n = [], r = "", i = !1) {
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of n5(e.path)) a(e, t, !0, n);
+ else for (let n of r5(e.path)) a(e, t, !0, n);
}), t;
}
-function n5(e) {
+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 = n5(r.join("/")), s = [];
+ 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 SWe(e) {
e.sort((e, t) => e.score === t.score ? MWe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var CWe = /^:[\w-]+$/, wWe = /^:[\w-]+/, TWe = 3.5, EWe = 3, DWe = 2, OWe = 1, kWe = 10, AWe = -2, r5 = (e) => e === "*";
+var CWe = /^:[\w-]+$/, wWe = /^:[\w-]+/, TWe = 3.5, EWe = 3, DWe = 2, OWe = 1, kWe = 10, AWe = -2, i5 = (e) => e === "*";
function jWe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(r5) && (r += AWe), t && (r += DWe), n.filter((e) => !r5(e)).reduce((e, t) => e + (CWe.test(t) ? EWe : wWe.test(t) ? TWe : t === "" ? OWe : kWe), r);
+ return n.some(i5) && (r += AWe), t && (r += DWe), n.filter((e) => !i5(e)).reduce((e, t) => e + (CWe.test(t) ? EWe : wWe.test(t) ? TWe : t === "" ? OWe : kWe), r);
}
function MWe(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;
@@ -75556,39 +75556,39 @@ function NWe(e, t, n = !1) {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? a5(u, l, s.matcher, s.compiledParams) : i5(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = i5({
+ }, d = s.matcher && s.compiledParams ? o5(u, l, s.matcher, s.compiledParams) : a5(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = a5({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: d5([a, d.pathname]),
- pathnameBase: zWe(d5([a, d.pathnameBase])),
+ pathname: f5([a, d.pathname]),
+ pathnameBase: zWe(f5([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = d5([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = f5([a, d.pathnameBase]));
}
return o;
}
-function i5(e, t) {
+function a5(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = o5(e.path, e.caseSensitive, e.end);
- return a5(e, t, n, r);
+ let [n, r] = s5(e.path, e.caseSensitive, e.end);
+ return o5(e, t, n, r);
}
-function a5(e, t, n, r) {
+function o5(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = f5(a, 1), s = i.slice(1);
+ let a = i[0], o = p5(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = f5(a.slice(0, a.length - e.length), 1);
+ o = p5(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -75598,8 +75598,8 @@ function a5(e, t, n, r) {
pattern: e
};
}
-function o5(e, t = !1, n = !0) {
- $8(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function s5(e, t = !1, n = !0) {
+ e5(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -75616,30 +75616,30 @@ function PWe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return $8(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return e5(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function s5(e, t) {
+function c5(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 FWe(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? e5(e) : e, a;
- return n ? (n = u5(n), a = n.startsWith("/") || n.startsWith("\\") ? c5(n.substring(1), "/") : c5(n, t)) : a = t, {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? t5(e) : e, a;
+ return n ? (n = d5(n), a = n.startsWith("/") || n.startsWith("\\") ? l5(n.substring(1), "/") : l5(n, t)) : a = t, {
pathname: a,
search: BWe(r),
hash: VWe(i)
};
}
-function c5(e, t) {
- let n = f5(t).split("/");
+function l5(e, t) {
+ let n = p5(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function l5(e, t, n, r) {
+function u5(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 IWe(e) {
@@ -75651,7 +75651,7 @@ function LWe(e) {
}
function RWe(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = e5(e) : (i = { ...e }, Q8(!i.pathname || !i.pathname.includes("?"), l5("?", "pathname", "search", i)), Q8(!i.pathname || !i.pathname.includes("#"), l5("#", "pathname", "hash", i)), Q8(!i.search || !i.search.includes("#"), l5("#", "search", "hash", i)));
+ typeof e == "string" ? i = t5(e) : (i = { ...e }, $8(!i.pathname || !i.pathname.includes("?"), u5("?", "pathname", "search", i)), $8(!i.pathname || !i.pathname.includes("#"), u5("#", "pathname", "hash", i)), $8(!i.search || !i.search.includes("#"), u5("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -75666,13 +75666,13 @@ function RWe(e, t, n, r = !1) {
let c = FWe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var u5 = (e) => e.replace(/[\\/]{2,}/g, "/"), d5 = (e) => u5(e.join("/"));
-function f5(e, t = 0) {
+var d5 = (e) => e.replace(/[\\/]{2,}/g, "/"), f5 = (e) => d5(e.join("/"));
+function p5(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 zWe = (e) => f5(e).replace(/^\/*/, "/"), BWe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, VWe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, HWe = class {
+var zWe = (e) => p5(e).replace(/^\/*/, "/"), BWe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, VWe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, HWe = class {
status;
statusText;
data;
@@ -75686,9 +75686,9 @@ function UWe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
function WWe(e) {
- return d5(e.map((e) => e.route.path).filter(Boolean)) || "/";
+ return f5(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var p5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+var m5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
function GWe(e, t) {
let n = e;
if (typeof n != "string" || !hWe.test(n)) return {
@@ -75697,11 +75697,11 @@ function GWe(e, t) {
to: n
};
let r = n, i = !1;
- if (p5) try {
- let e = new URL(window.location.href), r = gWe.test(n) ? new URL(_We(n, e.protocol)) : new URL(n), a = s5(r.pathname, t);
+ if (m5) try {
+ let e = new URL(window.location.href), r = gWe.test(n) ? new URL(_We(n, e.protocol)) : new URL(n), a = c5(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- $8(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ e5(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -75711,16 +75711,16 @@ function GWe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
-var m5 = new URL("http://localhost");
-function h5(e) {
+var h5 = new URL("http://localhost");
+function g5(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), m5);
+ return new URL(e.createHref("/"), h5);
} catch {
- return m5;
+ return h5;
}
}
-function g5(e, t) {
+function _5(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
function KWe(e, t) {
@@ -75728,26 +75728,26 @@ function KWe(e, t) {
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function _5(e, t, n, r) {
+function v5(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 && !g5(i, n), s = !g5(a, n);
+ let a = new URL(t, n), o = i != null && !_5(i, n), s = !_5(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !KWe(e, i) || !g5(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !KWe(e, i) || !_5(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
-var v5 = [
+var y5 = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(v5);
-var qWe = ["GET", ...v5];
+new Set(y5);
+var qWe = ["GET", ...y5];
new Set(qWe);
var JWe = [
"about:",
@@ -75770,12 +75770,12 @@ function YWe(e) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
-var y5 = R.createContext(null);
-y5.displayName = "DataRouter";
+var b5 = R.createContext(null);
+b5.displayName = "DataRouter";
var XWe = R.createContext(null);
XWe.displayName = "DataRouterState";
-var b5 = R.createContext(null);
-b5.displayName = "DataRouterData";
+var x5 = R.createContext(null);
+x5.displayName = "DataRouterData";
var ZWe = R.createContext(null);
ZWe.displayName = "DataRouterNavigation";
var QWe = R.createContext(!1), $We = R.createContext({ isTransitioning: !1 });
@@ -75784,62 +75784,62 @@ var eGe = R.createContext(null);
eGe.displayName = "Fetchers";
var tGe = R.createContext(null);
tGe.displayName = "Await";
-var x5 = R.createContext(null);
-x5.displayName = "Navigation";
var S5 = R.createContext(null);
-S5.displayName = "Location";
-var C5 = R.createContext({
+S5.displayName = "Navigation";
+var C5 = R.createContext(null);
+C5.displayName = "Location";
+var w5 = R.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-C5.displayName = "Route";
-var w5 = R.createContext(!1);
-w5.displayName = "IsDataRoute";
-var T5 = R.createContext(void 0);
-T5.displayName = "RouteId";
-var E5 = R.createContext(null);
-E5.displayName = "RouteError";
+w5.displayName = "Route";
+var T5 = R.createContext(!1);
+T5.displayName = "IsDataRoute";
+var E5 = R.createContext(void 0);
+E5.displayName = "RouteId";
+var D5 = R.createContext(null);
+D5.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var D5 = "REACT_ROUTER_ERROR", nGe = "REDIRECT", rGe = "ROUTE_ERROR_RESPONSE";
+var O5 = "REACT_ROUTER_ERROR", nGe = "REDIRECT", rGe = "ROUTE_ERROR_RESPONSE";
function iGe(e) {
- if (e.startsWith(`${D5}:${nGe}:{`)) try {
+ if (e.startsWith(`${O5}:${nGe}:{`)) 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 aGe(e) {
- if (e.startsWith(`${D5}:${rGe}:{`)) try {
+ if (e.startsWith(`${O5}:${rGe}:{`)) try {
let t = JSON.parse(e.slice(40));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new HWe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
-function O5() {
- return R.useContext(S5) != null;
-}
function k5() {
- return Q8(O5(), "useLocation() may be used only in the context of a <Router> component."), R.useContext(S5).location;
+ return R.useContext(C5) != null;
}
-var A5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+function A5() {
+ return $8(k5(), "useLocation() may be used only in the context of a <Router> component."), R.useContext(C5).location;
+}
+var j5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
function oGe() {
- return R.useContext(w5) ? vGe() : sGe();
+ return R.useContext(T5) ? vGe() : sGe();
}
function sGe() {
- Q8(O5(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = R.useContext(y5), { basename: t, navigator: n } = R.useContext(x5), { matches: r } = R.useContext(C5), { pathname: i } = k5(), a = JSON.stringify(LWe(r)), o = R.useRef(!1);
+ $8(k5(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = R.useContext(b5), { basename: t, navigator: n } = R.useContext(S5), { matches: r } = R.useContext(w5), { pathname: i } = A5(), a = JSON.stringify(LWe(r)), o = R.useRef(!1);
return R.useLayoutEffect(() => {
o.current = !0;
}), R.useCallback((r, s = {}) => {
- if ($8(o.current, A5), !o.current) return;
+ if (e5(o.current, j5), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
let c = RWe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : d5([t, c.pathname])), _5(typeof r == "string" ? r : vWe(r), n.createHref(c), h5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : f5([t, c.pathname])), v5(typeof r == "string" ? r : vWe(r), n.createHref(c), g5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -75850,18 +75850,18 @@ function sGe() {
}
R.createContext(null);
function cGe(e, t) {
- return j5(e, t);
+ return M5(e, t);
}
-function j5(e, t, n) {
- Q8(O5(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = R.useContext(x5), { matches: i } = R.useContext(C5), a = i[i.length - 1], o = a ? a.params : {};
+function M5(e, t, n) {
+ $8(k5(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = R.useContext(S5), { matches: i } = R.useContext(w5), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = k5(), l;
+ let c = A5(), l;
if (t) {
- let e = typeof t == "string" ? e5(t) : t;
- Q8(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? t5(t) : t;
+ $8(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 !== "/") {
@@ -75872,10 +75872,10 @@ function j5(e, t, n) {
f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : yWe(e, { pathname: d });
let p = mGe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: d5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : d5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: f5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : f5([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__ */ R.createElement(S5.Provider, { value: {
+ return t && p ? /* @__PURE__ */ R.createElement(C5.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -75927,27 +75927,27 @@ var uGe = /* @__PURE__ */ R.createElement(lGe, null), dGe = class extends R.Comp
let t = aGe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ R.createElement(C5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ R.createElement(w5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ R.createElement(T5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ R.createElement(E5.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ R.createElement(w5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ R.createElement(T5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ R.createElement(E5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ R.createElement(D5.Provider, {
value: e,
children: this.props.component
}))));
return this.context ? /* @__PURE__ */ R.createElement(fGe, { error: e }, t) : t;
}
-}, M5 = /* @__PURE__ */ new WeakMap();
+}, N5 = /* @__PURE__ */ new WeakMap();
function fGe({ children: e, error: t }) {
- let { basename: n, navigator: r } = R.useContext(x5);
+ let { basename: n, navigator: r } = R.useContext(S5);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
let e = iGe(t.digest);
if (e) {
- let i = M5.get(t);
+ let i = N5.get(t);
if (i) throw i;
let a = GWe(e.location, n), o = a.absoluteURL || a.to;
- if (_5(e.location, o, h5(r), "allow-explicit"), YWe(o)) throw Error("Invalid redirect location");
- if (p5 && !M5.get(t)) {
+ if (v5(e.location, o, g5(r), "allow-explicit"), YWe(o)) throw Error("Invalid redirect location");
+ if (m5 && !N5.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 M5.set(t, n), n;
+ throw N5.set(t, n), n;
}
}
return /* @__PURE__ */ R.createElement("meta", {
@@ -75959,8 +75959,8 @@ function fGe({ children: e, error: t }) {
return e;
}
function pGe({ routeContext: e, match: t, children: n }) {
- let r = R.useContext(y5);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ R.createElement(C5.Provider, { value: e }, /* @__PURE__ */ R.createElement(w5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ R.createElement(T5.Provider, { value: t.route.id }, n)));
+ let r = R.useContext(b5);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ R.createElement(w5.Provider, { value: e }, /* @__PURE__ */ R.createElement(T5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ R.createElement(E5.Provider, { value: t.route.id }, n)));
}
function mGe(e, t = [], n) {
let r = n?.state;
@@ -75973,7 +75973,7 @@ function mGe(e, t = [], n) {
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
- Q8(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));
+ $8(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -76027,44 +76027,44 @@ function mGe(e, t = [], n) {
}) : h();
}, null);
}
-function N5(e) {
+function P5(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
function hGe(e) {
- let t = R.useContext(y5);
- return Q8(t, N5(e)), t;
+ let t = R.useContext(b5);
+ return $8(t, P5(e)), t;
}
function gGe(e) {
- let t = R.useContext(b5);
- return Q8(t, N5(e)), t;
+ let t = R.useContext(x5);
+ return $8(t, P5(e)), t;
}
-function P5(e) {
- let t = R.useContext(T5);
- return Q8(t, `${e} can only be used on routes that contain a unique "id"`), t;
+function F5(e) {
+ let t = R.useContext(E5);
+ return $8(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
function _Ge() {
- let e = R.useContext(E5), t = gGe("useRouteError"), n = P5("useRouteError");
+ let e = R.useContext(D5), t = gGe("useRouteError"), n = F5("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
function vGe() {
- let { router: e } = hGe("useNavigate"), t = P5("useNavigate"), n = R.useRef(!1);
+ let { router: e } = hGe("useNavigate"), t = F5("useNavigate"), n = R.useRef(!1);
return R.useLayoutEffect(() => {
n.current = !0;
}), R.useCallback(async (r, i = {}) => {
- $8(n.current, A5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ e5(n.current, j5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var F5 = {};
+var I5 = {};
function yGe(e, t, n) {
- !t && !F5[e] && (F5[e] = !0, $8(!1, n));
+ !t && !I5[e] && (I5[e] = !0, e5(!1, n));
}
R.memo(bGe);
function bGe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = R.useContext(y5);
- return Q8(a, "You must render this element inside a <DataRouterContext.Provider> element"), j5(e, void 0, {
+ let a = R.useContext(b5);
+ return $8(a, "You must render this element inside a <DataRouterContext.Provider> element"), M5(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -76072,11 +76072,11 @@ function bGe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function I5(e) {
- Q8(!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 L5(e) {
+ $8(!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 xGe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- Q8(!O5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+ $8(!k5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = R.useMemo(() => ({
basename: s,
navigator: i,
@@ -76089,9 +76089,9 @@ function xGe({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = e5(n));
+ typeof n == "string" && (n = t5(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = R.useMemo(() => {
- let e = s5(l, s);
+ let e = c5(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -76113,27 +76113,27 @@ function xGe({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return $8(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__ */ R.createElement(x5.Provider, { value: c }, /* @__PURE__ */ R.createElement(S5.Provider, {
+ return e5(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ R.createElement(S5.Provider, { value: c }, /* @__PURE__ */ R.createElement(C5.Provider, {
children: t,
value: h
}));
}
-function L5({ children: e, location: t }) {
- return cGe(R5(e), t);
+function R5({ children: e, location: t }) {
+ return cGe(z5(e), t);
}
R.Component;
-function R5(e, t = []) {
+function z5(e, t = []) {
let n = [];
return R.Children.forEach(e, (e, r) => {
if (!R.isValidElement(e)) return;
let i = [...t, r];
if (e.type === R.Fragment) {
- n.push.apply(n, R5(e.props.children, i));
+ n.push.apply(n, z5(e.props.children, i));
return;
}
- Q8(e.type === I5, `[${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>`);
+ $8(e.type === L5, `[${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;
- Q8(!a.index || !a.children, "An index route cannot have child routes.");
+ $8(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -76152,28 +76152,28 @@ function R5(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = R5(a.children, i)), n.push(o);
+ a.children && (o.children = z5(a.children, i)), n.push(o);
}), n;
}
//#endregion
//#region src/react/router/router.tsx
-var z5 = (0, R.createContext)(0), B5 = (0, R.createContext)(null);
+var B5 = (0, R.createContext)(0), V5 = (0, R.createContext)(null);
function SGe({ children: e }) {
- let [t, n] = (0, R.useState)(() => pt.navigation);
- return (0, R.useLayoutEffect)(() => (n(pt.navigation), pt.listen(n)), []), /* @__PURE__ */ (0, B.jsx)(z5.Provider, {
+ let [t, n] = (0, R.useState)(() => mt.navigation);
+ return (0, R.useLayoutEffect)(() => (n(mt.navigation), mt.listen(n)), []), /* @__PURE__ */ (0, B.jsx)(B5.Provider, {
value: t.seq,
children: /* @__PURE__ */ (0, B.jsx)(xGe, {
location: t.location,
navigationType: t.action,
- navigator: pt,
+ navigator: mt,
children: e
})
});
}
function CGe() {
- let e = (0, R.useContext)(z5);
+ let e = (0, R.useContext)(B5);
return (0, R.useLayoutEffect)(() => {
- queueMicrotask(() => mt(e));
+ queueMicrotask(() => ht(e));
}, [e]), null;
}
function wGe({ target: e }) {
@@ -76184,108 +76184,124 @@ function wGe({ target: e }) {
}
function TGe(e, t, n) {
let r = new URL(e, window.location.href);
- if (!z8(r.pathname)) {
+ if (!B8(r.pathname)) {
t.navigate(e);
return;
}
n(`${r.pathname}${r.search}${r.hash}`);
}
function EGe() {
- let e = (0, R.useContext)(B5), [t, n] = (0, R.useState)(ft), r = (0, R.useRef)(null);
- (0, R.useLayoutEffect)(() => (n(ft()), dt((e, t) => {
- t ? (0, np.flushSync)(() => n(e)) : n(e);
+ let e = (0, R.useContext)(V5), [t, n] = (0, R.useState)(pt), r = (0, R.useRef)(null);
+ (0, R.useLayoutEffect)(() => (n(pt()), ft((e, t) => {
+ t ? (0, rp.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, R.useMemo)(() => (t) => {
e && r.current && TGe(t, e, r.current);
}, [e]);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(wGe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, B.jsx)(DGe, {
entry: t,
- actions: e,
- go: i
+ children: /* @__PURE__ */ (0, B.jsx)(OGe, {
+ entry: t,
+ actions: e,
+ go: i
+ })
}, t.revision)) : null] });
}
-var DGe = (0, R.memo)(function({ entry: e, actions: t, go: n }) {
- return X8(e.path) ? (0, np.createPortal)(mWe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+var DGe = class extends R.Component {
+ state = { failed: !1 };
+ static getDerivedStateFromError() {
+ return { failed: !0 };
+ }
+ componentDidCatch() {
+ dt(this.props.entry.container, this.props.entry.revision);
+ }
+ render() {
+ return this.state.failed ? null : this.props.children;
+ }
+}, OGe = (0, R.memo)(function({ entry: e, actions: t, go: n }) {
+ return Z8(e.path) ? (0, rp.createPortal)(mWe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function OGe({ children: e }) {
- let t = k5(), n = ut(t.state);
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(L5, {
+function kGe({ children: e }) {
+ let t = A5(), n = ut(t.state);
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(R5, {
location: n ?? t,
children: [
- fWe.map((e) => /* @__PURE__ */ (0, B.jsx)(I5, {
+ fWe.map((e) => /* @__PURE__ */ (0, B.jsx)(L5, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, B.jsx)(I5, {
+ /* @__PURE__ */ (0, B.jsx)(L5, {
path: "/resource-sync",
element: null
}),
- /* @__PURE__ */ (0, B.jsx)(I5, {
+ /* @__PURE__ */ (0, B.jsx)(L5, {
path: "*",
element: e
})
]
- }), /* @__PURE__ */ (0, B.jsxs)(L5, { children: [lt.map((e) => /* @__PURE__ */ (0, B.jsx)(I5, {
+ }), /* @__PURE__ */ (0, B.jsxs)(R5, { children: [lt.map((e) => /* @__PURE__ */ (0, B.jsx)(L5, {
path: e,
element: null
- }, e)), /* @__PURE__ */ (0, B.jsx)(I5, {
+ }, e)), /* @__PURE__ */ (0, B.jsx)(L5, {
path: "*",
element: null
})] })] });
}
-function kGe({ children: e, actions: t = null }) {
- return /* @__PURE__ */ (0, B.jsx)(kS, { children: /* @__PURE__ */ (0, B.jsx)(B5.Provider, {
+function AGe({ children: e, actions: t = null }) {
+ return /* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(V5.Provider, {
value: t,
children: /* @__PURE__ */ (0, B.jsxs)(SGe, { children: [
/* @__PURE__ */ (0, B.jsx)(CGe, {}),
/* @__PURE__ */ (0, B.jsx)(EGe, {}),
- /* @__PURE__ */ (0, B.jsx)(OGe, { children: e })
+ /* @__PURE__ */ (0, B.jsx)(kGe, { children: e })
] })
}) });
}
-var V5 = null;
-function AGe(e) {
- if (V5) return;
- V5 = (0, rp.createRoot)(document.createElement("div"));
- let t = V5;
- (0, np.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(kGe, { actions: e })));
+var jGe = { onCaughtError: (e) => {
+ globalThis.reportError?.(e);
+} }, H5 = null;
+function MGe(e) {
+ if (H5) return;
+ H5 = (0, ip.createRoot)(document.createElement("div"), jGe);
+ let t = H5;
+ (0, rp.flushSync)(() => t.render(/* @__PURE__ */ (0, B.jsx)(AGe, { actions: e })));
}
//#endregion
//#region src/number-setting.ts
-function H5(e, t, n, r) {
+function U5(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var jGe = (e) => {
+var NGe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function MGe({ openConfiguration: e }) {
- let t = SS({
- queryKey: yR,
- queryFn: ({ signal: e }) => bR(e)
+function PGe({ openConfiguration: e }) {
+ let t = TS({
+ queryKey: bR,
+ queryFn: ({ signal: e }) => xR(e)
}), n = t.data;
return /* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, B.jsxs)(Vk, { children: [
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ children: [n ? /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, B.jsx)(Hk, {
+ /* @__PURE__ */ (0, B.jsx)(Wk, {
term: "更新",
- children: jGe(n)
+ children: NGe(n)
})
- ] }) : /* @__PURE__ */ (0, B.jsx)(Fk, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
+ ] }) : /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(Y, {
tone: "error",
title: "配置读取失败",
children: t.error ? U(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, B.jsx)(Ik, {
+ }) }), /* @__PURE__ */ (0, B.jsx)(Rk, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, B.jsx)(J, {
onClick: e,
@@ -76296,16 +76312,16 @@ function MGe({ openConfiguration: e }) {
}
//#endregion
//#region src/react/settings-panel/legacy-controls.tsx
-var U5 = (e) => e.map(([e, t, n]) => n ? [
+var W5 = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function W5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function G5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(l);
return f.current = l, (0, R.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Re(t, n, U5(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = Re(t, n, W5(r), i, {
attr: a,
className: o,
text: s
@@ -76323,13 +76339,13 @@ function W5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function G5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function K5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(-1), m = (0, R.useRef)(l);
return m.current = l, (0, R.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = Je(U5(n), r, { label: t });
+ e.innerHTML = Je(W5(n), r, { label: t });
let i = at(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -76342,7 +76358,7 @@ function G5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function NGe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function FGe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)({
onStep: a,
onSettle: o
@@ -76377,7 +76393,7 @@ function NGe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var PGe = [
+var IGe = [
[
"strength",
"强度",
@@ -76404,7 +76420,7 @@ var PGe = [
100
]
];
-function FGe({ host: e, spot: t, index: n, glow: r }) {
+function LGe({ host: e, spot: t, index: n, glow: r }) {
let i = h[n], a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)("all");
(0, R.useLayoutEffect)(() => {
let [e, t, n] = [
@@ -76443,7 +76459,7 @@ function FGe({ host: e, spot: t, index: n, glow: r }) {
children: u
})]
}),
- /* @__PURE__ */ (0, B.jsx)(sT, { name: "chevron-down" })
+ /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, B.jsxs)("div", {
className: "popmenu",
@@ -76482,7 +76498,7 @@ function FGe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function IGe({ host: e }) {
+function RGe({ host: e }) {
let t = e.store.value.homeGlow, n = E(t.preset);
return /* @__PURE__ */ (0, B.jsxs)("section", {
"data-glow-setting": "",
@@ -76501,7 +76517,7 @@ function IGe({ host: e }) {
children: T(t.preset)
})]
}),
- /* @__PURE__ */ (0, B.jsx)(FS, {
+ /* @__PURE__ */ (0, B.jsx)(RS, {
store: e.store,
label: "光晕配色"
}),
@@ -76512,7 +76528,7 @@ function IGe({ host: e }) {
}),
/* @__PURE__ */ (0, B.jsx)("div", {
"data-glow-fields": "",
- children: PGe.map(([r, i, a]) => /* @__PURE__ */ (0, B.jsx)(NGe, {
+ children: IGe.map(([r, i, a]) => /* @__PURE__ */ (0, B.jsx)(FGe, {
field: r,
label: i,
max: a,
@@ -76534,7 +76550,7 @@ function IGe({ host: e }) {
hidden: n,
children: [/* @__PURE__ */ (0, B.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, B.jsx)("div", {
"data-glow-stops": "",
- children: v.map((n, r) => /* @__PURE__ */ (0, B.jsx)(FGe, {
+ children: v.map((n, r) => /* @__PURE__ */ (0, B.jsx)(LGe, {
host: e,
spot: n,
index: r,
@@ -76559,7 +76575,7 @@ function IGe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var LGe = {
+var zGe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -76600,10 +76616,10 @@ var LGe = {
optional: !0,
fallback: 60
}
-}, K5 = (e) => `peach.number.${e}`;
-function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = LGe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
- d.current ||= H5(Number(localStorage.getItem(K5(e))), o, s, n && n > 0 ? n : l);
+}, q5 = (e) => `peach.number.${e}`;
+function J5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = zGe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
+ d.current ||= U5(Number(localStorage.getItem(q5(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, R.useState)(n ?? 0), [m, h] = (0, R.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, R.useState)(""), v = (0, R.useRef)(null), y = (0, R.useRef)(i);
y.current = i, (0, R.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -76615,7 +76631,7 @@ function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`);
return;
}
- t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(K5(e), String(d.current)), y.current(d.current);
+ t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(q5(e), String(d.current)), y.current(d.current);
}
}, x = (0, R.useRef)(b);
x.current = b, (0, R.useEffect)(() => {
@@ -76630,7 +76646,7 @@ function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
p(d.current), h(String(d.current)), y.current(d.current);
return;
}
- t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(K5(e), String(d.current)), p(0), y.current(0);
+ t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(q5(e), String(d.current)), p(0), y.current(0);
}, w = r || n === null;
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-number-setting": "",
@@ -76680,13 +76696,13 @@ function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/sidebar/sidebar-order.ts
-function J5(e) {
- let { mutate: t } = qj();
+function Y5(e) {
+ let { mutate: t } = Qj();
return (0, R.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function Y5(e, t, n, r) {
+function X5(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -76696,17 +76712,17 @@ function Y5(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var RGe = "__home__", X5 = (e) => e === "" ? RGe : e;
-function zGe({ host: e }) {
- let t = J5(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, R.useState)(null), [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (e, r, i) => {
- let a = Y5(n, e, r, i);
+var BGe = "__home__", Z5 = (e) => e === "" ? BGe : e;
+function VGe({ host: e }) {
+ let t = Y5(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, R.useState)(null), [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (e, r, i) => {
+ let a = X5(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => X5(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => Z5(e) === o) ?? a[0], y = () => {
h.current && Ne(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -76727,7 +76743,7 @@ function zGe({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", X5(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", Z5(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -76759,9 +76775,9 @@ function zGe({ host: e }) {
/* @__PURE__ */ (0, B.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, B.jsx)(sT, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, B.jsx)(sT, { name: a ?? "" }),
+ /* @__PURE__ */ (0, B.jsx)(lT, { name: a ?? "" }),
/* @__PURE__ */ (0, B.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, B.jsxs)("span", {
@@ -76775,7 +76791,7 @@ function zGe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, B.jsx)(sT, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -76785,7 +76801,7 @@ function zGe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, B.jsx)(sT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -76797,11 +76813,11 @@ function zGe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, B.jsx)(sT, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "eye-off" })
})
]
})]
- }, X5(e))), /* @__PURE__ */ (0, B.jsxs)("div", {
+ }, Z5(e))), /* @__PURE__ */ (0, B.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -76817,13 +76833,13 @@ function zGe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
- /* @__PURE__ */ (0, B.jsx)(sT, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, B.jsx)(lT, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, B.jsx)(sT, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(sT, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, B.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -76834,15 +76850,15 @@ function zGe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": X5(e),
+ "data-sidebar-add-option": Z5(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(X5(e)), y(), m.current?.focus();
+ s(Z5(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, B.jsx)(sT, { name: n ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: t })]
- }, X5(e)))
+ children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: n ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: t })]
+ }, Z5(e)))
}) : null]
}), /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -76859,7 +76875,7 @@ function zGe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
-var Z5 = [
+var Q5 = [
["界面", "ri-palette-line"],
["浏览", "ri-layout-grid-line"],
["播放", "ri-play-circle-line"],
@@ -76867,7 +76883,7 @@ var Z5 = [
["关注", "ri-rss-line"],
["安全", "ri-shield-check-line"],
["这台电脑", "ri-macbook-line"]
-], BGe = [
+], HGe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -76876,16 +76892,16 @@ var Z5 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], VGe = [["desc", "降序"], ["asc", "升序"]], HGe = [
+], UGe = [["desc", "降序"], ["asc", "升序"]], WGe = [
["off", "关闭"],
["precise", "精准"],
["coarse", "粗略"]
-], UGe = [
+], GGe = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
-], WGe = [[
+], KGe = [[
"cover",
"官方封面",
""
@@ -76893,7 +76909,7 @@ var Z5 = [
"thumbnail",
"预览图",
""
-]], GGe = [
+]], qGe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -76918,91 +76934,91 @@ var Z5 = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], KGe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", Q5 = null, $5 = null, e7 = null, t7 = {
+], JGe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", $5 = null, e7 = null, t7 = null, n7 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
-}, n7 = 0, r7 = null;
-function qGe() {
- return (!$5 || !e7?.isConnected) && ($5?.unmount(), e7 = document.createElement("div"), e7.dataset.settingsHost = "", document.body.append(e7), $5 = (0, rp.createRoot)(e7)), $5;
+}, r7 = 0, i7 = null;
+function YGe() {
+ return (!e7 || !t7?.isConnected) && (e7?.unmount(), t7 = document.createElement("div"), t7.dataset.settingsHost = "", document.body.append(t7), e7 = (0, ip.createRoot)(t7)), e7;
}
-function i7() {
- let e = Q5;
- e && (0, np.flushSync)(() => qGe().render(/* @__PURE__ */ (0, B.jsx)(kS, { children: /* @__PURE__ */ (0, B.jsx)(eKe, {
+function a7() {
+ let e = $5;
+ e && (0, rp.flushSync)(() => YGe().render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(nKe, {
host: e,
- view: t7
+ view: n7
}) })));
}
-function a7(e) {
- t7 = {
- ...t7,
+function o7(e) {
+ n7 = {
+ ...n7,
...e
- }, i7();
+ }, a7();
}
-async function JGe(e) {
- if (t7.machine === "summary") return;
+async function XGe(e) {
+ if (n7.machine === "summary") return;
let t = await e.configurable();
- if (t7.open) {
+ if (n7.open) {
if (!t) {
- a7({ machine: "note" });
+ o7({ machine: "note" });
return;
}
try {
- await xR(new AbortController().signal);
+ await SR(new AbortController().signal);
} catch {}
- t7.open && a7({ machine: "summary" });
+ n7.open && o7({ machine: "summary" });
}
}
-function YGe(e = "") {
- let t = Q5;
+function ZGe(e = "") {
+ let t = $5;
if (!t) return;
- Ae(), n7 += 1, r7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let n = Z5.findIndex(([t]) => t === e), r = Mue();
- a7({
+ Ae(), r7 += 1, i7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let n = Q5.findIndex(([t]) => t === e), r = Oue();
+ o7({
open: !0,
closing: !1,
- epoch: t7.epoch + 1,
- tab: n >= 0 ? n : t7.tab
+ epoch: n7.epoch + 1,
+ tab: n >= 0 ? n : n7.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), JGe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), XGe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function o7() {
- if (!t7.open || t7.closing) return;
- let e = ++n7;
- a7({ closing: !0 });
+function s7() {
+ if (!n7.open || n7.closing) return;
+ let e = ++r7;
+ o7({ closing: !0 });
let t = () => {
- e !== n7 || !t7.closing || (a7({
+ e !== r7 || !n7.closing || (o7({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), r7 instanceof HTMLElement && document.contains(r7) && r7.focus(), r7 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), i7 instanceof HTMLElement && document.contains(i7) && i7.focus(), i7 = null);
};
if (matchMedia("(prefers-reduced-motion: reduce)").matches) {
queueMicrotask(t);
return;
}
- e7?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
+ t7?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
-var XGe = {
- open: YGe,
- close: o7,
- isOpen: () => t7.open,
+var QGe = {
+ open: ZGe,
+ close: s7,
+ isOpen: () => n7.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function ZGe(e) {
- return Q5 = e, i7(), XGe;
+function $Ge(e) {
+ return $5 = e, a7(), QGe;
}
-function QGe(e) {
+function eKe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(KGe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(JGe)].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 s7 = (e) => `settings-tab-${e}`, c7 = (e) => e === Z5.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function $Ge({ tab: e, epoch: t, onSelect: n }) {
+var c7 = (e) => `settings-tab-${e}`, l7 = (e) => e === Q5.length - 1 ? "machineGroup" : `settings-group-${e}`;
+function tKe({ tab: e, epoch: t, onSelect: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(e), s = (0, R.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
@@ -77030,7 +77046,7 @@ function $Ge({ tab: e, epoch: t, onSelect: n }) {
o.current = e, l.current(s.current[e], t);
}, [e, t]);
let u = (e, t) => {
- let r = Z5.length, i = t;
+ let r = Q5.length, i = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") i = (t + 1) % r;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") i = (t + r - 1) % r;
else if (e.key === "Home") i = 0;
@@ -77059,11 +77075,11 @@ function $Ge({ tab: e, epoch: t, onSelect: n }) {
role: "presentation",
children: "设置"
}),
- Z5.map(([t, r], i) => /* @__PURE__ */ (0, B.jsxs)("button", {
+ Q5.map(([t, r], i) => /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
role: "tab",
- id: s7(i),
- "aria-controls": c7(i),
+ id: c7(i),
+ "aria-controls": l7(i),
"aria-selected": i === e,
tabIndex: i === e ? 0 : -1,
ref: (e) => {
@@ -77074,22 +77090,22 @@ function $Ge({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, B.jsx)(Rie, { name: r }), t]
+ children: [/* @__PURE__ */ (0, B.jsx)(Lie, { name: r }), t]
}, t))
]
});
}
-function l7({ index: e, tab: t, children: n }) {
+function u7({ index: e, tab: t, children: n }) {
return /* @__PURE__ */ (0, B.jsxs)("section", {
"data-setting-group": "",
- id: c7(e),
+ id: l7(e),
role: "tabpanel",
- "aria-labelledby": s7(e),
+ "aria-labelledby": c7(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, B.jsx)("h3", { children: Z5[e][0] }), n]
+ children: [/* @__PURE__ */ (0, B.jsx)("h3", { children: Q5[e][0] }), n]
});
}
-function u7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function d7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, B.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, B.jsxs)("span", { children: [/* @__PURE__ */ (0, B.jsx)("b", { children: t }), /* @__PURE__ */ (0, B.jsx)("small", {
@@ -77106,7 +77122,7 @@ function u7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function d7({ title: e, description: t, kind: n, children: r }) {
+function f7({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -77114,11 +77130,11 @@ function d7({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, B.jsxs)("span", { children: [/* @__PURE__ */ (0, B.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, B.jsx)("small", { children: t }) : t] }), r]
});
}
-var f7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, B.jsx)("small", {
+var p7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, B.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
-}), p7 = () => `${Qe("保存中")}<span>正在保存…</span>`, m7 = (e, t) => e instanceof Error && e.message || t;
-function eKe({ host: e, view: t }) {
+}), m7 = () => `${Qe("保存中")}<span>正在保存…</span>`, h7 = (e, t) => e instanceof Error && e.message || t;
+function nKe({ host: e, view: t }) {
(0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -77139,7 +77155,7 @@ function eKe({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (e) => {
- e !== t7.tab && a7({ tab: e });
+ e !== n7.tab && o7({ tab: e });
}, p = () => e.store.save();
return /* @__PURE__ */ (0, B.jsx)("section", {
"data-settings-panel": "",
@@ -77150,9 +77166,9 @@ function eKe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: QGe,
+ onKeyDown: eKe,
onClick: (e) => {
- e.target === e.currentTarget && o7();
+ e.target === e.currentTarget && s7();
},
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-settings-card": "",
@@ -77163,19 +77179,19 @@ function eKe({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, B.jsx)("h2", {
id: "settingsTitle",
- children: Z5[t.tab][0]
+ children: Q5[t.tab][0]
}), /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
id: "settingsClose",
"aria-label": "关闭设置",
- onClick: o7,
+ onClick: s7,
children: /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-x" })
})
})]
}),
- /* @__PURE__ */ (0, B.jsx)($Ge, {
+ /* @__PURE__ */ (0, B.jsx)(tKe, {
tab: t.tab,
epoch: d,
onSelect: f
@@ -77184,14 +77200,14 @@ function eKe({ host: e, view: t }) {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, B.jsxs)(l7, {
+ /* @__PURE__ */ (0, B.jsxs)(u7, {
index: 0,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "主题",
description: "跟随系统,或固定用浅色、深色。",
- children: /* @__PURE__ */ (0, B.jsx)(W5, {
+ children: /* @__PURE__ */ (0, B.jsx)(G5, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -77219,7 +77235,7 @@ function eKe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, B.jsx)(u7, {
+ /* @__PURE__ */ (0, B.jsx)(d7, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -77228,7 +77244,7 @@ function eKe({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, B.jsx)(u7, {
+ /* @__PURE__ */ (0, B.jsx)(d7, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -77237,44 +77253,44 @@ function eKe({ host: e, view: t }) {
n.homeGlow.on = t, p(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, B.jsx)(IGe, { host: e }),
+ /* @__PURE__ */ (0, B.jsx)(RGe, { host: e }),
/* @__PURE__ */ (0, B.jsxs)("section", {
"data-sidebar-setting": "",
"aria-labelledby": "sidebarOrderTitle",
children: [/* @__PURE__ */ (0, B.jsxs)("span", { children: [/* @__PURE__ */ (0, B.jsx)("b", {
id: "sidebarOrderTitle",
children: "左侧导航"
- }), /* @__PURE__ */ (0, B.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, B.jsx)(zGe, { host: e })]
+ }), /* @__PURE__ */ (0, B.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, B.jsx)(VGe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(nKe, {
+ /* @__PURE__ */ (0, B.jsx)(iKe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, B.jsx)(iKe, {
+ /* @__PURE__ */ (0, B.jsx)(oKe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, B.jsx)(l7, {
+ /* @__PURE__ */ (0, B.jsx)(u7, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, B.jsx)(oKe, {
+ children: /* @__PURE__ */ (0, B.jsx)(cKe, {
host: e,
epoch: d
})
}),
- /* @__PURE__ */ (0, B.jsx)(sKe, {
+ /* @__PURE__ */ (0, B.jsx)(lKe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, B.jsx)(l7, {
+ /* @__PURE__ */ (0, B.jsx)(u7, {
index: 5,
tab: t.tab,
- children: /* @__PURE__ */ (0, B.jsx)(u7, {
+ children: /* @__PURE__ */ (0, B.jsx)(d7, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -77283,10 +77299,10 @@ function eKe({ host: e, view: t }) {
onToggle: (t) => e.setCensored(t)
})
}),
- /* @__PURE__ */ (0, B.jsx)(l7, {
+ /* @__PURE__ */ (0, B.jsx)(u7, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, B.jsx)(lKe, {
+ children: /* @__PURE__ */ (0, B.jsx)(dKe, {
host: e,
machine: t.machine
})
@@ -77297,7 +77313,7 @@ function eKe({ host: e, view: t }) {
})
});
}
-function tKe(e, t) {
+function rKe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Le("arrow-up", "arrow-down", "a", {
@@ -77307,18 +77323,18 @@ function tKe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function nKe({ host: e, tab: t, epoch: n }) {
+function iKe({ 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, B.jsxs)(l7, {
+ return /* @__PURE__ */ (0, B.jsxs)(u7, {
index: 1,
tab: t,
children: [
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "每批作品",
description: "首页每次加载的作品数量。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -77328,7 +77344,7 @@ function nKe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "默认排序",
kind: "sort",
description: /* @__PURE__ */ (0, B.jsx)("small", {
@@ -77337,19 +77353,19 @@ function nKe({ host: e, tab: t, epoch: n }) {
}),
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, B.jsx)(G5, {
+ children: [/* @__PURE__ */ (0, B.jsx)(K5, {
id: "defaultSortSetting",
label: "默认排序",
- options: BGe,
+ options: HGe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, B.jsx)(G5, {
+ }), /* @__PURE__ */ (0, B.jsx)(K5, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: VGe,
+ options: UGe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -77358,7 +77374,7 @@ function nKe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => tKe(e, o)
+ decorate: (e) => rKe(e, o)
})]
})
}),
@@ -77375,29 +77391,29 @@ function nKe({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "JAV 默认封面",
description: "首页、接着看和 Mix 等位置共用;缺图时使用另一种封面。",
- children: /* @__PURE__ */ (0, B.jsx)(W5, {
+ children: /* @__PURE__ */ (0, B.jsx)(G5, {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
- options: WGe,
+ options: KGe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = PC(t), i(), e.changed("javImage");
+ r.javImage = IC(t), i(), e.changed("javImage");
}
})
}),
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "视频封面默认大小",
kind: "related",
description: "首页和 JAV 等视频列表共用;小图展示完整封套,大图展示完整正封。",
- children: /* @__PURE__ */ (0, B.jsx)(W5, {
+ children: /* @__PURE__ */ (0, B.jsx)(G5, {
id: "javSizeSetting",
name: "video-size",
legend: "视频封面默认大小",
@@ -77410,7 +77426,7 @@ function nKe({ host: e, tab: t, epoch: n }) {
onChoose: (t) => e.setVideoLayout(t)
})
}),
- /* @__PURE__ */ (0, B.jsx)(u7, {
+ /* @__PURE__ */ (0, B.jsx)(d7, {
id: "feedAutoScrollSetting",
title: "新作自动滚动",
checked: r.feedAutoScroll,
@@ -77419,7 +77435,7 @@ function nKe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- GGe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, B.jsx)(rKe, {
+ qGe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, B.jsx)(aKe, {
host: e,
id: t,
settingKey: n,
@@ -77431,8 +77447,8 @@ function nKe({ host: e, tab: t, epoch: n }) {
]
});
}
-function rKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
- let s = qj(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
+function aKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+ let s = Qj(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
l(t), Ye(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -77460,28 +77476,28 @@ function rKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function iKe({ host: e, tab: t, epoch: n }) {
+function oKe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, B.jsxs)(l7, {
+ return /* @__PURE__ */ (0, B.jsxs)(u7, {
index: 2,
tab: t,
children: [
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "悬停放大",
description: "转圈完成后进入放大预览。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "hoverDelaySetting",
label: "悬停放大",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = H5(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = U5(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
}),
- /* @__PURE__ */ (0, B.jsx)(u7, {
+ /* @__PURE__ */ (0, B.jsx)(d7, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: r.detailAutoplay,
@@ -77490,7 +77506,7 @@ function iKe({ host: e, tab: t, epoch: n }) {
r.detailAutoplay = e, i();
}
}),
- /* @__PURE__ */ (0, B.jsx)(u7, {
+ /* @__PURE__ */ (0, B.jsx)(d7, {
id: "miniplayerSetting",
title: "小窗播放",
checked: r.miniplayer,
@@ -77499,12 +77515,12 @@ function iKe({ host: e, tab: t, epoch: n }) {
r.miniplayer = t, i(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "快进 / 快退",
description: "卡片预览和详情播放器共用。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: r.seekSeconds,
@@ -77514,13 +77530,13 @@ function iKe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, B.jsx)(aKe, { epoch: n }),
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(sKe, { epoch: n }),
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "relatedLimitSetting",
label: "相关推荐",
value: r.relatedLimit,
@@ -77533,26 +77549,26 @@ function iKe({ host: e, tab: t, epoch: n }) {
]
});
}
-function aKe({ epoch: e }) {
- let t = SS({
- queryKey: Wj,
- queryFn: ({ signal: e }) => Kj(e)
- }), n = Pue(), r = n.reset;
+function sKe({ epoch: e }) {
+ let t = TS({
+ queryKey: Yj,
+ queryFn: ({ signal: e }) => Zj(e)
+ }), n = Aue(), r = n.reset;
(0, R.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data?.mode || "off", a = n.isPending ? p7() : t.isFetching ? Be("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : t.data ? h7(Iue(t.data)) : "读取运行状态…";
- return /* @__PURE__ */ (0, B.jsx)(d7, {
+ let i = t.data?.mode || "off", a = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : t.data ? g7(Mue(t.data)) : "读取运行状态…";
+ return /* @__PURE__ */ (0, B.jsx)(f7, {
title: "视频缩略图采集",
- description: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, B.jsx)(f7, {
+ description: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, B.jsx)(p7, {
id: "videoThumbnailState",
"aria-live": "polite",
html: a
})] }),
- children: /* @__PURE__ */ (0, B.jsx)(G5, {
+ children: /* @__PURE__ */ (0, B.jsx)(K5, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
- options: HGe,
+ options: WGe,
value: n.isPending || n.isError ? n.variables ?? i : i,
disabled: n.isPending || t.isFetching,
epoch: e,
@@ -77560,26 +77576,26 @@ function aKe({ epoch: e }) {
})
});
}
-function oKe({ host: e, epoch: t }) {
- let n = e.store.value, r = qj();
- return /* @__PURE__ */ (0, B.jsx)(d7, {
+function cKe({ host: e, epoch: t }) {
+ let n = e.store.value, r = Qj();
+ return /* @__PURE__ */ (0, B.jsx)(f7, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = H5(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = U5(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
-function sKe({ host: e, tab: t, epoch: n }) {
- let r = e.store.value, i = qj(), a = qj(), [o, s] = (0, R.useState)("");
+function lKe({ host: e, tab: t, epoch: n }) {
+ let r = e.store.value, i = Qj(), a = Qj(), [o, s] = (0, R.useState)("");
(0, R.useEffect)(() => {
s("");
}, [n]);
@@ -77589,22 +77605,22 @@ function sKe({ host: e, tab: t, epoch: n }) {
typeof t.followInitialDays == "number" && (r.followInitialDays = t.followInitialDays), e.store.save(), s("已保存,适用于尚未开始采集的来源。"), e.receipt("已保存首次采集历史范围");
},
onError: (t) => {
- s(m7(t, "")), e.failure("保存首次采集历史范围", t);
+ s(h7(t, "")), e.failure("保存首次采集历史范围", t);
}
}));
};
- return /* @__PURE__ */ (0, B.jsxs)(l7, {
+ return /* @__PURE__ */ (0, B.jsxs)(u7, {
index: 4,
tab: t,
children: [
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "首次采集历史范围",
description: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("small", { children: "按发布时间限制新来源首次导入的内容;范围内不足 30 条时补到 30 条。没有日期的条目仍会导入;已有内容不受影响,支持历史分页的来源可手动加载更早。" }), /* @__PURE__ */ (0, B.jsx)("small", {
id: "followInitialDaysState",
"aria-live": "polite",
children: o
})] }),
- children: /* @__PURE__ */ (0, B.jsx)(G5, {
+ children: /* @__PURE__ */ (0, B.jsx)(K5, {
id: "followInitialDaysSetting",
label: "首次采集历史范围",
options: e.followInitialRanges,
@@ -77614,14 +77630,14 @@ function sKe({ host: e, tab: t, epoch: n }) {
onPick: (e) => c(Number(e))
})
}),
- /* @__PURE__ */ (0, B.jsx)(cKe, { epoch: n }),
- /* @__PURE__ */ (0, B.jsx)(d7, {
+ /* @__PURE__ */ (0, B.jsx)(uKe, { epoch: n }),
+ /* @__PURE__ */ (0, B.jsx)(f7, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
- children: /* @__PURE__ */ (0, B.jsx)(G5, {
+ children: /* @__PURE__ */ (0, B.jsx)(K5, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
- options: UGe,
+ options: GGe,
value: String(r.metadataRefreshDays),
epoch: n,
onPick: (t) => {
@@ -77633,25 +77649,25 @@ function sKe({ host: e, tab: t, epoch: n }) {
]
});
}
-function cKe({ epoch: e }) {
- let t = SS({
- queryKey: Uj,
- queryFn: ({ signal: e }) => Gj(e)
- }), n = Nue(), r = n.reset;
+function uKe({ epoch: e }) {
+ let t = TS({
+ queryKey: Jj,
+ queryFn: ({ signal: e }) => Xj(e)
+ }), n = kue(), r = n.reset;
(0, R.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? p7() : t.isFetching ? Be("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : i ? h7(Fue(i)) : "读取运行状态…";
- return /* @__PURE__ */ (0, B.jsx)(d7, {
+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : i ? g7(jue(i)) : "读取运行状态…";
+ return /* @__PURE__ */ (0, B.jsx)(f7, {
title: "关注自动更新",
- description: /* @__PURE__ */ (0, B.jsx)(f7, {
+ description: /* @__PURE__ */ (0, B.jsx)(p7, {
id: "followScheduleState",
"aria-live": "polite",
html: o
}),
children: /* @__PURE__ */ (0, B.jsx)("div", {
id: "followScheduleSetting",
- children: /* @__PURE__ */ (0, B.jsx)(q5, {
+ children: /* @__PURE__ */ (0, B.jsx)(J5, {
id: "followScheduleSetting",
label: "关注自动更新",
value: i && !a ? i.enabled ? i.interval_minutes : 0 : null,
@@ -77661,13 +77677,13 @@ function cKe({ epoch: e }) {
})
});
}
-function lKe({ host: e, machine: t }) {
+function dKe({ host: e, machine: t }) {
return t === "summary" ? /* @__PURE__ */ (0, B.jsx)("div", {
id: "machineSettings",
children: /* @__PURE__ */ (0, B.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, B.jsx)(MGe, { openConfiguration: () => {
- o7(), e.openConfiguration();
+ children: /* @__PURE__ */ (0, B.jsx)(PGe, { openConfiguration: () => {
+ s7(), e.openConfiguration();
} })
})
}, "summary") : t === "note" ? /* @__PURE__ */ (0, B.jsx)("div", {
@@ -77675,55 +77691,55 @@ function lKe({ host: e, machine: t }) {
dangerouslySetInnerHTML: { __html: He("媒体文件夹、端口、代理与更新只能在运行 Peach 服务的那台设备上改:在它的浏览器里打开配置页。", { label: "在服务端设备修改" }) }
}, "note") : /* @__PURE__ */ (0, B.jsx)("div", { id: "machineSettings" }, "none");
}
-function h7(e) {
+function g7(e) {
return e.replace(/[&<>"']/g, (e) => `&#${e.charCodeAt(0)};`);
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var g7 = "__home__", uKe = {
+var _7 = "__home__", fKe = {
creator: 26,
tag: 30,
tech: 16
-}, _7 = 180, v7 = null, y7 = null, b7 = {
+}, v7 = 180, y7 = null, b7 = null, x7 = {
content: null,
filters: {},
latest: null
-}, x7 = 0;
-function S7() {
- let e = v7;
- if (!e || !y7) return;
- let t = b7, n = x7;
- (0, np.flushSync)(() => y7.render(/* @__PURE__ */ (0, B.jsx)(kS, { children: /* @__PURE__ */ (0, B.jsx)(pKe, {
+}, S7 = 0;
+function C7() {
+ let e = y7;
+ if (!e || !b7) return;
+ let t = x7, n = S7;
+ (0, rp.flushSync)(() => b7.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(hKe, {
host: e,
props: t,
epoch: n
}) })));
}
-var dKe = {
+var pKe = {
render(e) {
- b7 = e, S7();
+ x7 = e, C7();
},
navChanged() {
- x7 += 1, S7();
+ S7 += 1, C7();
}
};
-function fKe(e) {
- return v7 = e, b7 = {
+function mKe(e) {
+ return y7 = e, x7 = {
content: null,
filters: {},
latest: null
- }, e.scroll.replaceChildren(), y7 = (0, rp.createRoot)(e.scroll), S7(), e.attached(), dKe;
+ }, e.scroll.replaceChildren(), b7 = (0, ip.createRoot)(e.scroll), C7(), e.attached(), pKe;
}
-function pKe({ host: e, props: t, epoch: n }) {
+function hKe({ host: e, props: t, epoch: n }) {
let r = (0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, B.jsx)(mKe, {
+ /* @__PURE__ */ (0, B.jsx)(gKe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, B.jsx)(gKe, {
+ t.content ? /* @__PURE__ */ (0, B.jsx)(vKe, {
host: e,
content: t.content,
filters: t.filters,
@@ -77731,8 +77747,8 @@ function pKe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function mKe({ host: e, epoch: t, version: n }) {
- let r = J5(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, R.useRef)(null), l = (0, R.useRef)(null), u = fA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || g7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function gKe({ host: e, epoch: t, version: n }) {
+ let r = Y5(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, R.useRef)(null), l = (0, R.useRef)(null), u = hA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || _7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, R.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
@@ -77750,7 +77766,7 @@ function mKe({ host: e, epoch: t, version: n }) {
}, _ = (e) => ({
draggable: !0,
onDragStart: (t) => {
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || g7);
+ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || _7);
},
onDragOver: (t) => {
if (f === null || f === e) return;
@@ -77765,7 +77781,7 @@ function mKe({ host: e, epoch: t, version: n }) {
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : Y5(i, n, e, a);
+ let o = n === null ? null : X5(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@ -77788,16 +77804,16 @@ function mKe({ host: e, epoch: t, version: n }) {
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
- }) : /* @__PURE__ */ (0, B.jsx)(sT, { name: r }), /* @__PURE__ */ (0, B.jsx)("span", { children: n })]
- }, t || g7))
- }), v ? (0, np.createPortal)(/* @__PURE__ */ (0, B.jsx)("span", {
+ }) : /* @__PURE__ */ (0, B.jsx)(lT, { name: r }), /* @__PURE__ */ (0, B.jsx)("span", { children: n })]
+ }, t || _7))
+ }), v ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
-var C7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function hKe(e) {
+var w7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function _Ke(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -77810,7 +77826,7 @@ function hKe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function gKe({ host: e, content: t, filters: n, latest: r }) {
+function vKe({ 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, R.useLayoutEffect)(() => {
t.kind === "catalog" && Ue(e.scroll, "drawer");
@@ -77819,8 +77835,8 @@ function gKe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? _Ke(e, t.facets, n, r, i) : [vKe(e, t.tags, new Set(t.selected))], o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, B.jsx)(yKe, {
+ let a = t.kind === "catalog" ? yKe(e, t.facets, n, r, i) : [bKe(e, t.tags, new Set(t.selected))], o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, B.jsx)(xKe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -77829,11 +77845,11 @@ function gKe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function _Ke(e, t, n, r, i) {
- let a = hKe(r), o = (t, r, i) => {
+function yKe(e, t, n, r, i) {
+ let a = _Ke(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = C7(n, r);
- return /* @__PURE__ */ (0, B.jsx)(E7, {
+ let o = w7(n, r);
+ return /* @__PURE__ */ (0, B.jsx)(D7, {
rows: t,
filterKey: r,
multi: i,
@@ -77843,7 +77859,7 @@ function _Ke(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = C7(n, l), p = c.some((e) => f.includes(e.value));
+ let f = w7(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -77855,12 +77871,12 @@ function _Ke(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, B.jsx)(xKe, {
+ body: /* @__PURE__ */ (0, B.jsx)(CKe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: uKe[d],
+ limit: fKe[d],
filterKey: l,
selected: f,
counts: a,
@@ -77875,7 +77891,7 @@ function _Ke(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, B.jsx)(SKe, {
+ body: /* @__PURE__ */ (0, B.jsx)(wKe, {
host: e,
filters: n
})
@@ -77889,7 +77905,7 @@ function _Ke(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, B.jsx)(D7, {
+ body: /* @__PURE__ */ (0, B.jsx)(O7, {
rows: t.followTags,
host: e,
selected: null,
@@ -77898,12 +77914,12 @@ function _Ke(e, t, n, r, i) {
} : null
];
}
-function vKe(e, t, n) {
+function bKe(e, t, n) {
return t.length ? {
title: "内容标签",
kind: "online",
active: t.some((e) => n.has(e.value)),
- body: /* @__PURE__ */ (0, B.jsx)(D7, {
+ body: /* @__PURE__ */ (0, B.jsx)(O7, {
rows: t,
host: e,
selected: n,
@@ -77911,19 +77927,19 @@ function vKe(e, t, n) {
})
} : null;
}
-function w7(e, t) {
+function T7(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function yKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(() => w7(e, n)), u = (0, R.useRef)(!1);
+function xKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(() => T7(e, n)), u = (0, R.useRef)(!1);
(0, R.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? w7(e, n) : c;
+ let i = u.current ? T7(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("fcollapse") && r.classList.toggle("fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -77944,7 +77960,7 @@ function yKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, B.jsx)(sT, { name: "chevron-right" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-right" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, B.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -77955,7 +77971,7 @@ function yKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, B.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, B.jsx)(T7.Provider, {
+ children: /* @__PURE__ */ (0, B.jsx)(E7.Provider, {
value: d,
children: a
})
@@ -77964,15 +77980,15 @@ function yKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var T7 = (0, R.createContext)(() => {});
-function bKe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, B.jsx)(sT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, B.jsx)("img", {
+var E7 = (0, R.createContext)(() => {});
+function SKe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, B.jsx)(lT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, B.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, B.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {
+function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -77989,7 +78005,7 @@ function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
title: e.offline,
onClick: () => a.toggleChip(t, e.value, n),
children: [
- /* @__PURE__ */ (0, B.jsx)(bKe, { dot: e.dot }),
+ /* @__PURE__ */ (0, B.jsx)(SKe, { dot: e.dot }),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -78004,8 +78020,8 @@ function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
})
});
}
-function xKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, R.useContext)(T7), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(e);
+function CKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, R.useContext)(E7), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(e);
p !== e && (m(e), f(null));
let h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, R.useLayoutEffect)(() => {
@@ -78020,7 +78036,7 @@ function xKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("fcollapse"), Ie(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(E7, {
+ }, [d, _]), /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(D7, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -78045,10 +78061,10 @@ function xKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, B.jsx)(sT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })
}) : null] });
}
-function D7({ rows: e, host: t, selected: n, badges: r }) {
+function O7({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {
@@ -78069,10 +78085,10 @@ function D7({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var O7 = (e, t) => e ? Math.min(_7, Number(e) / 60) : t;
-function SKe({ host: e, filters: t }) {
- let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, R.useState)(n), [a, o] = (0, R.useState)(() => [O7(t.dur_min, 0), O7(t.dur_max, _7)]), [s, c] = (0, R.useState)("max");
- r !== n && (i(n), o([O7(t.dur_min, 0), O7(t.dur_max, _7)]));
+var k7 = (e, t) => e ? Math.min(v7, Number(e) / 60) : t;
+function wKe({ host: e, filters: t }) {
+ let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, R.useState)(n), [a, o] = (0, R.useState)(() => [k7(t.dur_min, 0), k7(t.dur_max, v7)]), [s, c] = (0, R.useState)("max");
+ r !== n && (i(n), o([k7(t.dur_min, 0), k7(t.dur_max, v7)]));
let [l, u] = a, d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(a);
m.current = a;
let h = (e, t) => {
@@ -78085,11 +78101,11 @@ function SKe({ host: e, filters: t }) {
}, [e]), (0, R.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
- e.style.setProperty("--lo", `${l / _7 * 100}%`), e.style.setProperty("--hi", `${u / _7 * 100}%`);
+ e.style.setProperty("--lo", `${l / v7 * 100}%`), e.style.setProperty("--hi", `${u / v7 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? u : l;
- e.style.left = `${n / _7 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / v7 * 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`);
});
@@ -78099,7 +78115,7 @@ function SKe({ host: e, filters: t }) {
"data-range-end": e,
"data-range-active": s === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= _7 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= v7 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-sidebar-duration": "",
@@ -78114,7 +78130,7 @@ function SKe({ host: e, filters: t }) {
id: "durMin",
type: "range",
min: "0",
- max: _7,
+ max: v7,
step: "5",
value: l,
"aria-label": "最短时长(分钟)",
@@ -78125,7 +78141,7 @@ function SKe({ host: e, filters: t }) {
id: "durMax",
type: "range",
min: "0",
- max: _7,
+ max: v7,
step: "5",
value: u,
"aria-label": "最长时长(分钟)",
@@ -78140,17 +78156,17 @@ function SKe({ host: e, filters: t }) {
}
//#endregion
//#region src/board-skeleton.ts
-var k7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, CKe = () => `${k7("80%")}${k7("48%")}`, wKe = (e, t) => e.repeat(t);
-function TKe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${k7("85%")}${k7("65%")}${wKe(CKe(), 4)}</div></aside></div>`;
+var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, TKe = () => `${A7("80%")}${A7("48%")}`, EKe = (e, t) => e.repeat(t);
+function DKe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${A7("85%")}${A7("65%")}${EKe(TKe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var A7 = (e) => ["follow-item", e], EKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, DKe = "/api/follow/save", OKe = "/api/follow/media/hide";
-async function j7(e, t) {
- let n = await W(EKe(e), t);
+var j7 = (e) => ["follow-item", e], OKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, kKe = "/api/follow/save", AKe = "/api/follow/media/hide";
+async function M7(e, t) {
+ let n = await W(OKe(e), t);
for (let t of n.groups || []) {
- let r = PF(t).find((t) => t.id === e);
+ let r = FF(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -78160,21 +78176,21 @@ async function j7(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function kKe(e, t) {
- let n = A7(e.id), r = Zme(e.id), i = p.getQueryData(AF) ? null : p.fetchQuery({
- queryKey: AF,
- queryFn: () => jF(t)
+async function jKe(e, t) {
+ let n = j7(e.id), r = Zme(e.id), i = p.getQueryData(jF) ? null : p.fetchQuery({
+ queryKey: jF,
+ queryFn: () => MF(t)
});
r ? p.setQueryData(n, {
...r,
item: r.item
}) : await p.fetchQuery({
queryKey: n,
- queryFn: () => j7(e.id, t)
+ queryFn: () => M7(e.id, t)
}), await i;
}
-function AKe(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 && zF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
+function MKe(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 && BF(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,
@@ -78188,32 +78204,32 @@ function AKe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var jKe = (e) => PF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), MKe = {
+var NKe = (e) => FF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), PKe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, NKe = {
+}, FKe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function PKe(e) {
+function IKe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return MKe[t] || t;
+ return PKe[t] || t;
} catch {
return "外部文件页";
}
}
-function M7(e, t) {
- return NKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function N7(e, t) {
+ return FKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function FKe(e, t, n = "") {
+function LKe(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;
@@ -78222,56 +78238,56 @@ function FKe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var IKe = (e) => String(e.name || "").trim(), N7 = (e, t) => e.tag_types?.[t] || "unknown", LKe = /* @__PURE__ */ new Set([
+var RKe = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", zKe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function RKe(e, t) {
- let n = N7(e, t);
- return `r34-${LKe.has(n) ? n : "general"}`;
+function BKe(e, t) {
+ let n = P7(e, t);
+ return `r34-${zKe.has(n) ? n : "general"}`;
}
-var P7 = [
+var F7 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function zKe(e, t) {
+function VKe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = P7.indexOf(N7(e, t));
- return n < 0 ? P7.length : n;
+ let n = F7.indexOf(P7(e, t));
+ return n < 0 ? F7.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function BKe(e, t) {
+function HKe(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var VKe = (e, t) => ({
+var UKe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), F7 = (e) => e?.size ? { size: e.size } : {};
-function HKe(e, t) {
+}), I7 = (e) => e?.size ? { size: e.size } : {};
+function WKe(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: M7(t, e),
- ...F7(t),
+ source: N7(t, e),
+ ...I7(t),
position: r + 1,
total: n.length
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: M7(a, e),
- ...F7(a),
+ source: N7(a, e),
+ ...I7(a),
position: 1,
total: 1
}] : e.thumb_url ? [{
@@ -78283,10 +78299,10 @@ function HKe(e, t) {
total: 1
}] : [];
}
-var UKe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var GKe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
-function I7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function L7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
return /* @__PURE__ */ (0, B.jsxs)("aside", {
"data-mix-queue": "",
"data-queue-kind": e,
@@ -78314,7 +78330,7 @@ function I7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function L7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function R7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, B.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -78337,29 +78353,29 @@ function L7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var WKe = ({ label: e, count: t }) => /* @__PURE__ */ (0, B.jsxs)("h3", {
+var KKe = ({ label: e, count: t }) => /* @__PURE__ */ (0, B.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, B.jsx)("span", { children: t })
]
-}), R7 = (e) => Number(e) > 0, GKe = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
+}), z7 = (e) => Number(e) > 0, qKe = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: L(e) }
-}), z7 = L("external-link", "externalmark");
-function KKe(e) {
- let { id: t, actions: n } = e, r = SS({
- queryKey: A7(t),
- queryFn: ({ signal: e }) => j7(t, e)
- }), i = SS({
- queryKey: AF,
- queryFn: ({ signal: e }) => jF(e)
+}), B7 = L("external-link", "externalmark");
+function JKe(e) {
+ let { id: t, actions: n } = e, r = TS({
+ queryKey: j7(t),
+ queryFn: ({ signal: e }) => M7(t, e)
+ }), i = TS({
+ queryKey: jF,
+ queryFn: ({ signal: e }) => MF(e)
}), a = (0, R.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, R.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, B.jsx)(qKe, {
+ return r.data ? /* @__PURE__ */ (0, B.jsx)(YKe, {
...e,
data: r.data,
- context: VKe(r.data, a),
+ context: UKe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, B.jsx)("div", {
@@ -78368,9 +78384,9 @@ function KKe(e) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, B.jsx)(B7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {
+ children: [/* @__PURE__ */ (0, B.jsx)(V7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? /* @__PURE__ */ (0, B.jsx)(jA, {
+ children: r.isError ? /* @__PURE__ */ (0, B.jsx)(PA, {
message: Te(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -78378,7 +78394,7 @@ function KKe(e) {
})
});
}
-var B7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
+var V7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -78387,8 +78403,8 @@ var B7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: L("x") }
});
-function qKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = AKe(s, c, n, i), u = ZKe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
+function YKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = MKe(s, c, n, i), u = $Ke(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
key: "",
kind: ""
}), m = {
@@ -78408,20 +78424,20 @@ function qKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? jKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, B.jsx)(W7, {
+ let h = !l.embedded.length && l.collection ? NKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, B.jsx)(G7, {
item: s,
current: l.selected.index,
helpers: a,
actions: o,
onMedia: r
- }) : l.collection ? h ? /* @__PURE__ */ (0, B.jsx)(W7, {
+ }) : l.collection ? h ? /* @__PURE__ */ (0, B.jsx)(G7, {
item: h,
current: null,
helpers: a,
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, B.jsx)(YKe, {
+ }) : /* @__PURE__ */ (0, B.jsx)(ZKe, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -78432,7 +78448,7 @@ function qKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(JKe, {
+ /* @__PURE__ */ (0, B.jsx)(XKe, {
item: s,
media: l,
helpers: a,
@@ -78441,7 +78457,7 @@ function qKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, B.jsx)(XKe, {
+ /* @__PURE__ */ (0, B.jsx)(QKe, {
item: s,
data: e,
context: t,
@@ -78454,8 +78470,8 @@ function qKe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function JKe({ 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, R.useRef)(null), [p, m] = (0, R.useState)(null), h = HKe(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, R.useState)(v), S = (0, R.useRef)({
+function XKe({ 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, R.useRef)(null), [p, m] = (0, R.useState)(null), h = WKe(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, R.useState)(v), S = (0, R.useRef)({
item: e,
selected: o
}), C = (0, R.useRef)(i.failed);
@@ -78485,14 +78501,14 @@ function JKe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"--follow-image-arrow-inset": p === null ? void 0 : `${p}px`
},
children: [
- /* @__PURE__ */ (0, B.jsx)(B7, { onClose: n.close }),
+ /* @__PURE__ */ (0, B.jsx)(V7, { onClose: n.close }),
_ ? null : v ? /* @__PURE__ */ (0, B.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": h.length ? "" : void 0,
src: b,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: h.length ? () => void RN(Math.max(0, l), h) : void 0,
+ onClick: h.length ? () => void UN(Math.max(0, l), h) : void 0,
onError: () => {
if (y && b !== y) {
x(y), i.thumbFallback();
@@ -78504,7 +78520,7 @@ function JKe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: GF(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: KF(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, B.jsx)("span", { children: "没有可用预览" })]
}),
u ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
@@ -78543,11 +78559,11 @@ function JKe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var V7 = ({ kind: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
+var H7 = ({ kind: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: L(e === "image" ? "image-off" : "play") }
});
-function H7({ src: e }) {
+function U7({ src: e }) {
let [t, n] = (0, R.useState)(!1);
return t ? null : /* @__PURE__ */ (0, B.jsx)("img", {
src: e,
@@ -78557,14 +78573,14 @@ function H7({ src: e }) {
onError: () => n(!0)
});
}
-function U7(e) {
+function W7(e) {
return (0, R.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function YKe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = zF(e), a = U7(n);
- return /* @__PURE__ */ (0, B.jsx)(I7, {
+function ZKe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = BF(e), a = W7(n);
+ return /* @__PURE__ */ (0, B.jsx)(L7, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
@@ -78572,12 +78588,12 @@ function YKe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = FKe(e, n, i ? n.provider_label : ""), o = i ? GF(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, B.jsxs)(L7, {
+ let i = e.duplicates.includes(n), a = LKe(e, n, i ? n.provider_label : ""), o = i ? KF(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, B.jsxs)(R7, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, B.jsx)(H7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(V7, { kind: "video" }), R7(n.duration) ? /* @__PURE__ */ (0, B.jsx)("i", {
+ pic: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(H7, { kind: "video" }), z7(n.duration) ? /* @__PURE__ */ (0, B.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: ve(n.duration)
@@ -78595,15 +78611,15 @@ function YKe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, B.jsx)("time", {
dateTime: n.published_at || "",
- children: QF(n)
+ children: $F(n)
})]
})]
}, n.id);
})
});
}
-function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = U7(r), c = [];
+function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = W7(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -78613,26 +78629,26 @@ function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, B.jsx)(I7, {
+ return /* @__PURE__ */ (0, B.jsx)(L7, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, B.jsx)(WKe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, B.jsx)(KKe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, B.jsxs)(L7, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, B.jsxs)(R7, {
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, B.jsx)(H7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(V7, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(H7, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, B.jsx)("b", {
"data-middle-truncate": "",
- children: IKe(n)
+ children: RKe(n)
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -78640,13 +78656,13 @@ function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function XKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function QKe({ 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 = XF(d, e), p = JF(e, BKe(e, t.sources), n), m = p.credited ? "" : e.author && be(e.author) !== be(p.author) ? e.author : "", h = ZF(e, n), g = zKe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = ZF(d, e), p = YF(e, HKe(e, t.sources), n), m = p.credited ? "" : e.author && be(e.author) !== be(p.author) ? e.author : "", h = QF(e, n), g = VKe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -78662,7 +78678,7 @@ function XKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: YF(d, e) + ge(e.title) }
+ dangerouslySetInnerHTML: { __html: XF(d, e) + ge(e.title) }
}), e.url ? /* @__PURE__ */ (0, B.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -78670,7 +78686,7 @@ function XKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: z7 }
+ dangerouslySetInnerHTML: { __html: B7 }
}) : null]
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -78689,8 +78705,8 @@ function XKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, B.jsx)("span", { children: QF(e) }),
- R7(e.duration) ? /* @__PURE__ */ (0, B.jsx)("span", { children: ve(e.duration) }) : null,
+ /* @__PURE__ */ (0, B.jsx)("span", { children: $F(e) }),
+ z7(e.duration) ? /* @__PURE__ */ (0, B.jsx)("span", { children: ve(e.duration) }) : null,
f ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -78723,9 +78739,9 @@ function XKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [PKe(e), /* @__PURE__ */ (0, B.jsx)("span", {
+ children: [IKe(e), /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: z7 }
+ dangerouslySetInnerHTML: { __html: B7 }
})]
}, e))
}) : null,
@@ -78832,7 +78848,7 @@ function XKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, B.jsx)(H7, { src: e.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(GKe, { name: "image-off" }), /* @__PURE__ */ (0, B.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: e.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(qKe, { name: "image-off" }), /* @__PURE__ */ (0, B.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -78846,7 +78862,7 @@ function XKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
- "data-tag-cat": RKe(e, t),
+ "data-tag-cat": BKe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@ -78856,8 +78872,8 @@ function XKe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function ZKe(e, t, n) {
- let r = e.id, i = A7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {
+function $Ke(e, t, n) {
+ let r = e.id, i = j7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -78870,14 +78886,14 @@ function ZKe(e, t, n) {
}), $me(r, e);
}, d = (e) => {
c(Te(e) || "操作失败"), t.failure("更新关注状态", e);
- }, f = TS({
- mutationFn: ({ to: e }) => G(WP, {
+ }, f = OS({
+ mutationFn: ({ to: e }) => G(GP, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && bL(), t.toast(UKe(n), { undo: i === "saved" ? void 0 : async () => {
- await G(WP, {
+ u(n), c(""), n === "ignored" && xL(), t.toast(GKe(n), { undo: i === "saved" ? void 0 : async () => {
+ await G(GP, {
item: r,
to: i
}), u(i);
@@ -78885,16 +78901,16 @@ function ZKe(e, t, n) {
},
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
- }), m = TS({
- mutationFn: () => G(DKe, { item: r }),
+ }), m = OS({
+ mutationFn: () => G(kKe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
onError: d,
onSettled: () => l("save", !1)
- }), h = TS({
+ }), h = OS({
mutationFn: async ({ index: e, hidden: t }) => {
- await G(OKe, {
+ await G(AKe, {
item: r,
media: e,
hidden: t
@@ -78909,13 +78925,13 @@ function ZKe(e, t, n) {
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
- }), g = SS({
+ }), g = TS({
queryKey: n_e(r),
queryFn: ({ signal: e }) => a_e(r, e)
- }).data?.want ?? null, _ = TS({
- mutationFn: async (e) => (e ? await yL([e.id]) : await vL({ follow: r }), !e),
+ }).data?.want ?? null, _ = OS({
+ mutationFn: async (e) => (e ? await bL([e.id]) : await yL({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), bL();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), xL();
},
onError: d,
onSettled: () => l("want", !1)
@@ -78955,25 +78971,25 @@ function ZKe(e, t, n) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function QKe(e) {
+function eqe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function $Ke(e) {
+function tqe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return QKe(n ?? t.body);
+ return eqe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var eqe = "/api/cover-crop", tqe = (e, t) => G(eqe, {
+var nqe = "/api/cover-crop", rqe = (e, t) => G(nqe, {
code: e,
box: t
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
-function G7({ className: e }) {
+function K7({ className: e }) {
return /* @__PURE__ */ (0, B.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -78986,7 +79002,7 @@ function G7({ className: e }) {
children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-crop" })
});
}
-function nqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function iqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("button", {
ref: o,
@@ -78997,15 +79013,15 @@ function nqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, B.jsx)(G7, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, B.jsx)(ny, {
- getContainer: () => $Ke(o.current),
- children: /* @__PURE__ */ (0, B.jsx)(QN, {
+ children: /* @__PURE__ */ (0, B.jsx)(K7, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, B.jsx)(ry, {
+ getContainer: () => tqe(o.current),
+ children: /* @__PURE__ */ (0, B.jsx)(rP, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, B.jsx)(rqe, {
+ children: /* @__PURE__ */ (0, B.jsx)(aqe, {
code: e,
coverUrl: t,
box: n,
@@ -79015,9 +79031,9 @@ function nqe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function rqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = AM(), f = TS({
- mutationFn: (t) => tqe(e, t),
+function aqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = FM(), f = OS({
+ mutationFn: (t) => rqe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -79029,19 +79045,19 @@ function rqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : spe(e, FC);
- c(JN(t, e, null));
+ } : rpe(e, LC);
+ c($N(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, B.jsx)($N, { children: /* @__PURE__ */ (0, B.jsx)(G7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, B.jsx)(iP, { children: /* @__PURE__ */ (0, B.jsx)(K7, { className: "size-6" }) }),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, B.jsx)(tD, {
+ /* @__PURE__ */ (0, B.jsx)(rD, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -79056,8 +79072,8 @@ function rqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(MM, {
- icon: vT,
+ /* @__PURE__ */ (0, B.jsx)(LM, {
+ icon: bT,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -79067,24 +79083,24 @@ function rqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, B.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, B.jsx)(tP, {
+ children: /* @__PURE__ */ (0, B.jsx)(oP, {
src: t,
- aspect: l ? FC : null,
+ aspect: l ? LC : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- KN(e) && p(e);
+ ZN(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, B.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, B.jsx)(iL, {
+ children: [/* @__PURE__ */ (0, B.jsx)(aL, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(JN(s, a, FC));
+ u(e), e && s && a && c($N(s, a, LC));
},
children: /* @__PURE__ */ (0, B.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -79113,21 +79129,21 @@ function rqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var K7 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
+var q7 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: L(e) }
-}), q7 = ({ html: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
+}), J7 = ({ html: e }) => /* @__PURE__ */ (0, B.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function iqe(e) {
- let { queue: t, actions: n } = e, r = SS({
- queryKey: t ? HC(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => ZC(t, e.helpers, n),
+function oqe(e) {
+ let { queue: t, actions: n } = e, r = TS({
+ queryKey: t ? WC(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => $C(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? ew(i, e.id) : t ? null : e.id, o = SS({
- queryKey: VC(a ?? 0),
- queryFn: ({ signal: e }) => XC(a, e),
+ }), i = t && r.data || null, a = i ? nw(i, e.id) : t ? null : e.id, o = TS({
+ queryKey: UC(a ?? 0),
+ queryFn: ({ signal: e }) => QC(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -79138,9 +79154,9 @@ function iqe(e) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, B.jsx)(J7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {
+ children: [/* @__PURE__ */ (0, B.jsx)(Y7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, B.jsx)(jA, {
+ children: e ? /* @__PURE__ */ (0, B.jsx)(PA, {
message: Te(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -79150,13 +79166,13 @@ function iqe(e) {
})
});
}
- return /* @__PURE__ */ (0, B.jsx)(aqe, {
+ return /* @__PURE__ */ (0, B.jsx)(sqe, {
...e,
- item: zre(o.data, i),
+ item: Rre(o.data, i),
queue: i
}, o.data.id);
}
-var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
+var Y7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -79165,36 +79181,36 @@ var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: L("x") }
});
-function aqe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = xqe(t, r, i.tagLabel), o = (0, R.useRef)(t);
+function sqe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = Cqe(t, r, i.tagLabel), o = (0, R.useRef)(t);
(0, R.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, R.useEffect)(() => {
- n?.kind === "playlist" && G(UC, {
+ n?.kind === "playlist" && G(GC, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = $re(t, i.sourceOffline(t.location || ""));
+ let s = Qre(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(oqe, {
+ /* @__PURE__ */ (0, B.jsx)(cqe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, B.jsx)(cqe, {
+ n ? /* @__PURE__ */ (0, B.jsx)(uqe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, B.jsx)(dqe, {
+ /* @__PURE__ */ (0, B.jsx)(pqe, {
item: t,
queue: n,
write: a,
@@ -79202,9 +79218,9 @@ function aqe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, B.jsx)(bqe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, B.jsx)(Sqe, { ...e }) : null] });
}
-function oqe({ item: e, gate: t, helpers: n, actions: r }) {
+function cqe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(t ? "" : "auto"), o = (0, R.useRef)(null), s = (0, R.useRef)(e);
(0, R.useLayoutEffect)(() => {
let e = o.current;
@@ -79215,7 +79231,7 @@ function oqe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, B.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, B.jsx)(sqe, {
+ children: [/* @__PURE__ */ (0, B.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, B.jsx)(lqe, {
item: e,
badge: c,
helpers: n,
@@ -79225,7 +79241,7 @@ function oqe({ item: e, gate: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, B.jsx)(q7, { html: c }),
+ /* @__PURE__ */ (0, B.jsx)(J7, { html: c }),
/* @__PURE__ */ (0, B.jsx)("b", { children: "在线资产" }),
/* @__PURE__ */ (0, B.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, B.jsx)("button", {
@@ -79240,11 +79256,11 @@ function oqe({ item: e, gate: t, helpers: n, actions: r }) {
id: "gate",
"data-item-gate": "metered",
onClick: () => a("clicked"),
- children: [/* @__PURE__ */ (0, B.jsx)(q7, { html: c }), /* @__PURE__ */ (0, B.jsxs)("span", { children: ["点此开始拉流 · ", ye(e.size || 0)] })]
+ children: [/* @__PURE__ */ (0, B.jsx)(J7, { html: c }), /* @__PURE__ */ (0, B.jsxs)("span", { children: ["点此开始拉流 · ", ye(e.size || 0)] })]
}) : null]
});
}
-function sqe({ item: e, badge: t, helpers: n, actions: r }) {
+function lqe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -79255,7 +79271,7 @@ function sqe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, B.jsx)(q7, { html: t }),
+ /* @__PURE__ */ (0, B.jsx)(J7, { html: t }),
/* @__PURE__ */ (0, B.jsx)("b", { children: "脱盘模式" }),
/* @__PURE__ */ (0, B.jsx)("span", { children: n.offlineReason(e.location || "") }),
/* @__PURE__ */ (0, B.jsx)("button", {
@@ -79269,8 +79285,8 @@ function sqe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function cqe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Yre(e), a = (0, R.useRef)(null), o = uqe(e, t, r), s = (0, R.useRef)(o);
+function uqe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Jre(e), a = (0, R.useRef)(null), o = fqe(e, t, r), s = (0, R.useRef)(o);
s.current = o;
let c = (0, R.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -79278,7 +79294,7 @@ function cqe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = lqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)("button", {
+ }, [n, e.kind]), l = dqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -79297,7 +79313,7 @@ function cqe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, B.jsx)(I7, {
+ return /* @__PURE__ */ (0, B.jsx)(L7, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -79306,11 +79322,11 @@ function cqe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, B.jsx)("i", {
- className: `javedition ${qre[i.edition_label] || "censored"}`,
+ className: `javedition ${Kre[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && $C(i);
- return /* @__PURE__ */ (0, B.jsxs)(L7, {
+ }) : null, s = e.kind === "playlist" && tw(i);
+ return /* @__PURE__ */ (0, B.jsxs)(R7, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -79320,25 +79336,25 @@ function cqe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(q7, { html: oe(i, n.javImage()) }), /* @__PURE__ */ (0, B.jsx)("i", {
+ pic: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(J7, { html: oe(i, n.javImage()) }), /* @__PURE__ */ (0, B.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: ve(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, B.jsx)(q7, { html: ae(i) }),
+ lead: /* @__PURE__ */ (0, B.jsx)(J7, { html: ae(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, B.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "x" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, B.jsxs)("span", {
@@ -79349,14 +79365,14 @@ function cqe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? cw(i.part_label) : re(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? uw(i.part_label) : re(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function lqe(e, t) {
- let n = TS({ mutationFn: (t) => G(UC, {
+function dqe(e, t) {
+ let n = OS({ mutationFn: (t) => G(GC, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -79369,14 +79385,14 @@ function lqe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function uqe(e, t, n) {
- let r = HC({
+function fqe(e, t, n) {
+ let r = WC({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (p.setQueryData(r, QC(e)), e), a = (t) => G(UC, {
+ }), i = (e) => (p.setQueryData(r, ew(e)), e), a = (t) => G(GC, {
id: e.playlistId,
...t
- }).then((e) => e.playlist), o = TS({
+ }).then((e) => e.playlist), o = OS({
mutationFn: (e) => a({
action: "reorder",
asset_ids: e
@@ -79389,8 +79405,8 @@ function uqe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Zre(s, t, r, c);
- if (Qre(l, s)) return;
+ let l = Xre(s, t, r, c);
+ if (Zre(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -79436,7 +79452,7 @@ function uqe(e, t, n) {
}
};
}
-function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function pqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-stage-side": "",
@@ -79444,7 +79460,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, B.jsx)(fqe, {
+ /* @__PURE__ */ (0, B.jsx)(mqe, {
item: e,
queue: t,
helpers: r,
@@ -79456,7 +79472,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, B.jsx)(mqe, {
+ /* @__PURE__ */ (0, B.jsx)(gqe, {
item: e,
write: n
}),
@@ -79467,7 +79483,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "monitor" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "monitor" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [
e.width || "?",
"×",
e.height || "?"
@@ -79475,11 +79491,11 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}),
/* @__PURE__ */ (0, B.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "hard-drive" }), /* @__PURE__ */ (0, B.jsx)("span", { children: ye(e.size || 0) })]
+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "hard-drive" }), /* @__PURE__ */ (0, B.jsx)("span", { children: ye(e.size || 0) })]
}),
e.release_date ? /* @__PURE__ */ (0, B.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "calendar" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "calendar" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
@@ -79487,22 +79503,22 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "globe" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "globe" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, B.jsx)(hqe, {
+ /* @__PURE__ */ (0, B.jsx)(_qe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, B.jsx)(gqe, {
+ /* @__PURE__ */ (0, B.jsx)(vqe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, B.jsx)(vqe, { item: e }),
+ /* @__PURE__ */ (0, B.jsx)(bqe, { item: e }),
/* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -79516,7 +79532,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -79528,7 +79544,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -79539,7 +79555,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -79550,7 +79566,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "eye" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "eye" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -79561,7 +79577,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -79570,7 +79586,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "playlist" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "playlist" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -79581,7 +79597,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "sparkles" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -79589,7 +79605,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "云下载",
title: "云下载 · 贴磁力交给 115 或 PikPak 离线下载",
onClick: () => i.cloudDownload(e),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "cloud-download" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "cloud-download" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
@@ -79600,11 +79616,11 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "trash" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, B.jsx)(yqe, {
+ /* @__PURE__ */ (0, B.jsx)(xqe, {
item: e,
open: s,
write: n
@@ -79615,7 +79631,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, B.jsx)(K7, { name: "sperm" }),
+ /* @__PURE__ */ (0, B.jsx)(q7, { name: "sperm" }),
/* @__PURE__ */ (0, B.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, B.jsx)("b", {
className: "mono",
@@ -79628,7 +79644,7 @@ function dqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function fqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function mqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, R.useRef)(null), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(!1);
(0, R.useLayoutEffect)(() => {
let e = a.current;
@@ -79638,7 +79654,7 @@ function fqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}, n = new ResizeObserver(t);
return n.observe(e), t(), () => n.disconnect();
}, []);
- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Xre(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Yre(e, t);
return /* @__PURE__ */ (0, B.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, B.jsxs)("div", {
@@ -79665,23 +79681,23 @@ function fqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: u,
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: o ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: o ? "chevron-up" : "chevron-down" })
}),
e.has_cover && e.code ? /* @__PURE__ */ (0, B.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, B.jsx)(nqe, {
+ children: /* @__PURE__ */ (0, B.jsx)(iqe, {
code: e.code,
coverUrl: M(e),
box: e.poster_box || null,
onSaved: (t) => {
p.invalidateQueries({
- queryKey: VC(e.id),
+ queryKey: UC(e.id),
exact: !0
- }), BC((t) => t.code === e.code, { poster_box: t });
+ }), HC((t) => t.code === e.code, { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, B.jsx)(pqe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, B.jsx)(hqe, {
id: e.id,
actions: r,
onStatus: i
@@ -79691,7 +79707,7 @@ function fqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function pqe({ id: e, actions: t, onStatus: n }) {
+function hqe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, R.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -79721,17 +79737,17 @@ function pqe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "folder-sync" })
})] });
}
-function mqe({ item: e, write: t }) {
- let n = nw(e.rating);
+function gqe({ item: e, write: t }) {
+ let n = iw(e.rating);
return /* @__PURE__ */ (0, B.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": tw(e.rating),
+ "data-value": rw(e.rating),
children: [/* @__PURE__ */ (0, B.jsx)("div", {
"data-rating-stars": "",
children: [
@@ -79748,18 +79764,18 @@ function mqe({ item: e, write: t }) {
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "star" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "star" })
}, e))
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Hre(e.rating)
+ children: Vre(e.rating)
})]
});
}
-function hqe({ item: e, actions: t }) {
- let n = (0, R.useMemo)(() => Vre(e), [e]), [r, i] = (0, R.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, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { children: n.name.slice(0, 1) }), /* @__PURE__ */ (0, B.jsx)(q7, { html: te({
+function _qe({ item: e, actions: t }) {
+ let n = (0, R.useMemo)(() => Bre(e), [e]), [r, i] = (0, R.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, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", { children: n.name.slice(0, 1) }), /* @__PURE__ */ (0, B.jsx)(J7, { html: te({
id: n.id,
hasImage: n.has_image,
version: n.image_version,
@@ -79818,7 +79834,7 @@ function hqe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, B.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "user-round" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "user-round" })
}), /* @__PURE__ */ (0, B.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -79861,19 +79877,19 @@ function hqe({ item: e, actions: t }) {
"data-entity-name": e.name,
title: e.name,
onClick: () => t.openEntity("series", e.name),
- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "tags" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.name })]
}, e.name) : /* @__PURE__ */ (0, B.jsxs)("span", {
"data-series-link": "",
title: e.name,
- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "tags" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.name })]
}, e.name))
})]
}) : null
]
});
}
-function gqe({ item: e, write: t, helpers: n, actions: r }) {
- let i = Wre(e, n);
+function vqe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = Ure(e, n);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -79892,16 +79908,16 @@ function gqe({ item: e, write: t, helpers: n, actions: r }) {
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "x" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, B.jsx)(_qe, {
+ }, e.k)), /* @__PURE__ */ (0, B.jsx)(yqe, {
item: e,
write: t,
helpers: n
})]
});
}
-function _qe({ item: e, write: t, helpers: n }) {
+function yqe({ item: e, write: t, helpers: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(-1), h = (0, R.useCallback)(() => {
i.current && Ne(i.current), c(!1);
}, []);
@@ -79915,7 +79931,7 @@ function _qe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? Kre(d, n.tagCandidates(), sw()) : {
+ let g = s ? Gre(d, n.tagCandidates(), lw()) : {
recent: [],
results: [],
create: ""
@@ -79943,12 +79959,12 @@ function _qe({ item: e, write: t, helpers: n }) {
if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && rw(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && aw(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = rw(e, t.k);
+ let r = b, i = aw(e, t.k);
return /* @__PURE__ */ (0, B.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -79956,7 +79972,7 @@ function _qe({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, B.jsx)(K7, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, B.jsx)(q7, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, B.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -79979,7 +79995,7 @@ function _qe({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (Ge(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "plus" })
+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "plus" })
}), /* @__PURE__ */ (0, B.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -79989,7 +80005,7 @@ function _qe({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, B.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "search" }), /* @__PURE__ */ (0, B.jsx)("input", {
+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "search" }), /* @__PURE__ */ (0, B.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -80030,7 +80046,7 @@ function _qe({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "plus" }), /* @__PURE__ */ (0, B.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "plus" }), /* @__PURE__ */ (0, B.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -80045,8 +80061,8 @@ function _qe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function vqe({ item: e }) {
- let t = eie(e);
+function bqe({ item: e }) {
+ let t = $re(e);
return /* @__PURE__ */ (0, B.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
@@ -80080,7 +80096,7 @@ function vqe({ item: e }) {
})]
});
}
-function yqe({ item: e, open: t, write: n }) {
+function xqe({ item: e, open: t, write: n }) {
let [r, i] = (0, R.useState)(e.like_reason || ""), a = (0, R.useRef)(null);
(0, R.useEffect)(() => {
t && a.current?.focus();
@@ -80119,10 +80135,10 @@ function yqe({ item: e, open: t, write: n }) {
})]
});
}
-function bqe(e) {
- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = SS({
- queryKey: Ire(t.id, n),
- queryFn: async ({ signal: e }) => (await W(Rre(t.id, n), e)).items || []
+function Sqe(e) {
+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = TS({
+ queryKey: Fre(t.id, n),
+ queryFn: async ({ signal: e }) => (await W(Lre(t.id, n), e)).items || []
}), [o] = (0, R.useState)(() => r.relatedSkeletonHtml()), s = (0, R.useCallback)((e) => {
e && (Fe(e), r.wireDrag(e));
}, [r]);
@@ -80135,7 +80151,7 @@ function bqe(e) {
ref: s,
id: "nrow",
"data-related-row": "",
- children: a.data ? /* @__PURE__ */ (0, B.jsx)(VA, {
+ children: a.data ? /* @__PURE__ */ (0, B.jsx)(WA, {
mode: "items",
variant: "next",
items: a.data,
@@ -80148,12 +80164,12 @@ function bqe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : a.isError ? null : /* @__PURE__ */ (0, B.jsx)(q7, { html: o })
+ }) : a.isError ? null : /* @__PURE__ */ (0, B.jsx)(J7, { html: o })
})]
});
}
-function xqe(e, t, n) {
- let r = e.id, i = VC(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = (e, t) => o((n) => {
+function Cqe(e, t, n) {
+ let r = e.id, i = UC(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => p.getQueryData(i) || e, m = (e) => {
@@ -80169,11 +80185,11 @@ function xqe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return zC(r, n), t;
+ return VC(r, n), t;
}, h = (e, t) => G(e, {
id: r,
...t
- }), g = TS({
+ }), g = OS({
mutationFn: ({ run: e }) => e(),
onError: (e, { action: n }) => t.failure(n, e),
onSettled: (e, t, { name: n }) => d(n, !1)
@@ -80184,7 +80200,7 @@ function xqe(e, t, n) {
run: n
}));
}, v = async (e, t) => {
- let n = await h(WC, t === void 0 ? { kind: e } : {
+ let n = await h(KC, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -80204,21 +80220,21 @@ function xqe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => _(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = Ure(n, e);
- await v("rate", r), t.toast(r ? `已评 ${nw(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = Hre(n, e);
+ await v("rate", r), t.toast(r ? `已评 ${iw(r)} 星` : "已取消评分", { undo: async () => {
await v("rate", n);
} });
}),
feedback: (e) => _(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await v(e);
- t.toast(lw(e, r), { undo: async () => {
+ t.toast(dw(e, r), { undo: async () => {
e === "o" ? await v("o-undo") : e === "dispose" ? await v("dispose") : (r.feedback && await v(r.feedback), n.feedback && await v(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => _("later", "更新稍后看", async () => {
- let e = await h(KC, {});
+ let e = await h(JC, {});
m({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- m({ watch_later: (await h(KC, {})).watch_later });
+ m({ watch_later: (await h(JC, {})).watch_later });
} });
}),
quality: () => _("quality", "更新版本需求", async () => {
@@ -80228,9 +80244,9 @@ function xqe(e, t, n) {
}, n = (e) => m({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await h(qC, { wanted: !e.wanted });
+ }), r = await h(YC, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await h(qC, e));
+ n(await h(YC, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -80244,7 +80260,7 @@ function xqe(e, t, n) {
});
u("保存中…");
try {
- o(await h(JC, {
+ o(await h(XC, {
liked: a,
reason: i
}));
@@ -80254,7 +80270,7 @@ function xqe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await h(JC, r));
+ o(await h(XC, r));
} });
});
},
@@ -80263,11 +80279,11 @@ function xqe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- m((t) => iw(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await h(GC, {
+ m((t) => ow(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await h(qC, {
operation: "add",
tag: e.k
- }), m((t) => aw(t, e));
+ }), m((t) => sw(t, e));
} });
}),
addTag: (e) => {
@@ -80276,14 +80292,14 @@ function xqe(e, t, n) {
(await h("/api/item-tag", {
operation: "add",
tag: r
- })).ok && (m((e) => aw(e, {
+ })).ok && (m((e) => sw(e, {
k: r,
cat: "general"
- })), Gre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
- await h(GC, {
+ })), Wre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
+ await h(qC, {
operation: "remove",
tag: r
- }), m((e) => iw(e, r));
+ }), m((e) => ow(e, r));
} }));
});
}
@@ -80291,31 +80307,31 @@ function xqe(e, t, n) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = !1, t9 = 0, n9 = null, r9 = () => !1, i9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function Sqe(e, t) {
- Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), Jne({
+var X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = null, t9 = !1, n9 = 0, r9 = null, i9 = () => !1, a9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function wqe(e, t) {
+ X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), Kne({
...e.player,
stage: () => document.getElementById("stage")
- }), Yne({
- inMiniplayer: (e) => X7?.player === e,
- kind: (e) => X7?.player === e ? X7.kind : Z7?.kind ?? Q7?.kind ?? "item",
- expand: () => S9(),
- toMiniplayer: () => C9()
- }), a9 || (a9 = !0, addEventListener("pagehide", () => _C()));
-}
-var a9 = !1;
-function o9() {
- if (!Y7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return Y7;
-}
-function s9(e) {
- Q7 = e;
-}
-var Cqe = () => Q7;
-function c9(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = i9(n, r.id, i?.index ?? null);
- if (X7 && X7.key === a) return wqe(e, X7);
- X7 && x9();
+ }), qne({
+ inMiniplayer: (e) => Z7?.player === e,
+ kind: (e) => Z7?.player === e ? Z7.kind : Q7?.kind ?? $7?.kind ?? "item",
+ expand: () => C9(),
+ toMiniplayer: () => w9()
+ }), o9 || (o9 = !0, addEventListener("pagehide", () => bC()));
+}
+var o9 = !1;
+function s9() {
+ if (!X7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return X7;
+}
+function c9(e) {
+ $7 = e;
+}
+var Tqe = () => $7;
+function l9(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = a9(n, r.id, i?.index ?? null);
+ if (Z7 && Z7.key === a) return Eqe(e, Z7);
+ Z7 && S9();
let o = {
player: null,
kind: n,
@@ -80323,28 +80339,28 @@ function c9(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- Z7 = o;
+ Q7 = 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 = MC(s, {
+ let c = PC(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- Z7 === o && (o.player = e);
+ Q7 === o && (o.player = e);
},
- handedOff: (e) => X7?.player === e
+ handedOff: (e) => Z7?.player === e
});
return () => {
- let e = !!o.player && X7?.player === o.player;
- Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), _C());
+ let e = !!o.player && Z7?.player === o.player;
+ Q7 === o && (Q7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), bC());
};
}
-function wqe(e, t) {
+function Eqe(e, t) {
let { player: n } = t;
- y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), AC(e), e.append(n.el()), KS(n);
+ b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), MC(e), e.append(n.el()), YS(n);
let r = {
player: n,
kind: t.kind,
@@ -80352,23 +80368,23 @@ function wqe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- Z7 = r;
- let i = jC(n, e);
- return qS(n), () => {
- Z7 === r && (Z7 = null), i(), X7?.player !== n && (GS() === n && KS(null), lC(n), _C());
+ Q7 = r;
+ let i = NC(n, e);
+ return XS(n), () => {
+ Q7 === r && (Q7 = null), i(), Z7?.player !== n && (JS() === n && YS(null), fC(n), bC());
};
}
-var l9 = () => {
- let e = Z7?.player;
+var u9 = () => {
+ let e = Q7?.player;
return e && !e.isDisposed() ? e : null;
};
-function Tqe(e) {
- let t = e9;
- e9 = !1, X7?.pending && x9();
- let n = Z7, r = n?.player, i = Q7;
- if (!n || !r || r.isDisposed() || !i || !$7) return;
- let a = o9().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Aqe({
+function Dqe(e) {
+ let t = t9;
+ t9 = !1, Z7?.pending && S9();
+ let n = Q7, r = n?.player, i = $7;
+ if (!n || !r || r.isDisposed() || !i || !e9) return;
+ let a = s9().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Mqe({
player: r,
kind: n.kind,
item: n.item,
@@ -80376,52 +80392,52 @@ function Tqe(e) {
key: n.key
}, i);
}
-function Eqe(e, t) {
- if (e9 = !1, X7) {
- if (X7.kind === e && X7.item.id === t) {
- X7.pending = !0, b9();
+function Oqe(e, t) {
+ if (t9 = !1, Z7) {
+ if (Z7.kind === e && Z7.item.id === t) {
+ Z7.pending = !0, x9();
return;
}
- x9();
+ S9();
}
}
-function u9(e) {
- $7 = e, $7 && _9();
+function d9(e) {
+ e9 = e, e9 && v9();
}
-var d9 = () => !!X7 && !X7.pending && !X7.player.isDisposed();
-function Dqe() {
- return d9() ? $7?.frame.querySelector("video") ?? null : null;
+var f9 = () => !!Z7 && !Z7.pending && !Z7.player.isDisposed();
+function kqe() {
+ return f9() ? e9?.frame.querySelector("video") ?? null : null;
}
-function Oqe() {
- return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : Dqe();
+function Aqe() {
+ return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : kqe();
}
-function f9(e) {
- $7 && ($7.title.textContent = e.title || "", $7.sub.textContent = e.sub || "", $7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function p9(e) {
+ e9 && (e9.title.textContent = e.title || "", e9.sub.textContent = e.sub || "", e9.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function p9(e = X7?.item) {
- if (!$7) return;
- let t = $7.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- $7.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function m9(e = Z7?.item) {
+ if (!e9) return;
+ let t = e9.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ e9.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function m9() {
- let e = X7?.player;
- if (!e || e.isDisposed() || !$7) return;
+function h9() {
+ let e = Z7?.player;
+ if (!e || e.isDisposed() || !e9) return;
let t = e.paused();
- $7.play.setAttribute("aria-label", t ? "播放" : "暂停"), $7.play.querySelector("[data-icon-swap]") || ($7.play.innerHTML = Le("player-pause", "player-play", t ? "b" : "a")), Ze($7.play, t ? "b" : "a");
+ e9.play.setAttribute("aria-label", t ? "播放" : "暂停"), e9.play.querySelector("[data-icon-swap]") || (e9.play.innerHTML = Le("player-pause", "player-play", t ? "b" : "a")), Ze(e9.play, t ? "b" : "a");
}
-function h9() {
- let e = X7?.player;
- if (!e || e.isDisposed() || !$7) return;
- let t = we(X7?.item.duration) || we(e.duration());
- $7.time.textContent = `${_e(e.currentTime())} / ${t ? _e(t) : "0:00"}`;
-}
-var g9 = () => Math.max(1, Number(o9().player.settings().seekSeconds) || 10);
-function _9() {
- if (!$7 || !Y7) return;
- let e = g9();
- for (let [t, n] of [[$7.back, `后退 ${e} 秒`], [$7.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function v9(e) {
+function g9() {
+ let e = Z7?.player;
+ if (!e || e.isDisposed() || !e9) return;
+ let t = we(Z7?.item.duration) || we(e.duration());
+ e9.time.textContent = `${_e(e.currentTime())} / ${t ? _e(t) : "0:00"}`;
+}
+var _9 = () => Math.max(1, Number(s9().player.settings().seekSeconds) || 10);
+function v9() {
+ if (!e9 || !X7) return;
+ let e = _9();
+ for (let [t, n] of [[e9.back, `后退 ${e} 秒`], [e9.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function y9(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -80433,17 +80449,17 @@ function v9(e) {
"play",
"pause",
"ended"
- ], m9), t([
+ ], h9), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], h9), t("loadedmetadata", () => p9()), m9(), h9(), p9(), _9();
+ ], g9), t("loadedmetadata", () => m9()), h9(), g9(), m9(), v9();
}
-function y9(e) {
+function b9(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function kqe() {
- let e = $7?.root;
+function jqe() {
+ let e = e9?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -80451,8 +80467,8 @@ function kqe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function b9() {
- let e = $7?.root;
+function x9() {
+ let e = e9?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -80463,77 +80479,77 @@ function b9() {
e.style.transform = "";
}
}
-function Aqe(e, t) {
- if (!$7) return;
+function Mqe(e, t) {
+ if (!e9) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), kqe(), qS(e.player);
-}
-function x9() {
- let e = X7;
- e && y9(e), X7 = null, t9++;
- let t = e?.player ?? null;
- t && GS() === t && KS(null), lC(t), t && _C(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), US(), b9();
+ Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), jqe(), XS(e.player);
}
function S9() {
- if (!d9() || !X7) return;
- let { kind: e, item: t, mediaIndex: n } = X7;
- o9().expand(e, t.id, n);
+ let e = Z7;
+ e && b9(e), Z7 = null, n9++;
+ let t = e?.player ?? null;
+ t && JS() === t && YS(null), fC(t), t && bC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), KS(), x9();
}
function C9() {
- if (d9() && !r9()) {
- S9();
+ if (!f9() || !Z7) return;
+ let { kind: e, item: t, mediaIndex: n } = Z7;
+ s9().expand(e, t.id, n);
+}
+function w9() {
+ if (f9() && !i9()) {
+ C9();
return;
}
- r9() && l9() && n9 && (e9 = !0, n9());
+ i9() && u9() && r9 && (t9 = !0, r9());
}
-function jqe() {
- let e = X7?.player;
+function Nqe() {
+ let e = Z7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function w9(e) {
- let t = X7?.player;
+function T9(e) {
+ let t = Z7?.player;
if (!t || t.isDisposed()) return;
- let n = we(t.duration()) || we(X7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + g9() * e);
+ let n = we(t.duration()) || we(Z7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + _9() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function T9(e) {
- return !(!d9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || o9().sourceOffline(String(e.location ?? "")));
-}
-async function Mqe(e) {
- if (!d9() || !X7 || !$7) return;
- let t = ++t9, n = await pe(`/api/item?id=${e}`).catch(() => null);
- if (t !== t9 || !d9() || !X7 || !$7 || !n || n.error) return;
- if (!T9(n)) {
- o9().openItem(e);
+function E9(e) {
+ return !(!f9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || s9().sourceOffline(String(e.location ?? "")));
+}
+async function Pqe(e) {
+ if (!f9() || !Z7 || !e9) return;
+ let t = ++n9, n = await pe(`/api/item?id=${e}`).catch(() => null);
+ if (t !== n9 || !f9() || !Z7 || !e9 || !n || n.error) return;
+ if (!E9(n)) {
+ s9().openItem(e);
return;
}
- let r = X7;
- y9(r), GS() === r.player && KS(null), lC(r.player), _C(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = Z7;
+ b9(r), JS() === r.player && YS(null), fC(r.player), bC(), e9.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", $7.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", e9.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- f9(a), MC(i, {
+ p9(a), PC(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== t9) {
- r && GS() === r && KS(null), lC(r);
+ if (t !== n9) {
+ r && JS() === r && YS(null), fC(r);
return;
}
if (!r) {
- x9(), o9().openItem(e);
+ S9(), s9().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -80542,26 +80558,26 @@ async function Mqe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: i9("item", n.id, null),
+ key: a9("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- X7 = i, v9(i);
+ Z7 = i, y9(i);
}
- }), p9(n);
+ }), m9(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
+var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })
-}), Nqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
+}), Fqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {
t.stopPropagation(), e();
-}, Pqe = (0, R.memo)(function() {
+}, Iqe = (0, R.memo)(function() {
let e = (0, R.useRef)(null), t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => (u9({
+ return (0, R.useLayoutEffect)(() => (d9({
root: e.current,
frame: n.current,
play: r.current,
@@ -80571,7 +80587,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => u9(null)), []), (0, R.useEffect)(() => Iqe(e.current, t.current), []), /* @__PURE__ */ (0, B.jsx)("aside", {
+ }), () => d9(null)), []), (0, R.useEffect)(() => Rqe(e.current, t.current), []), /* @__PURE__ */ (0, B.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -80595,24 +80611,24 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: D9(S9),
- children: /* @__PURE__ */ (0, B.jsx)(E9, { name: "maximize-2" })
+ onClick: O9(C9),
+ children: /* @__PURE__ */ (0, B.jsx)(D9, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: D9(x9),
- children: /* @__PURE__ */ (0, B.jsx)(E9, { name: "x" })
+ onClick: O9(S9),
+ children: /* @__PURE__ */ (0, B.jsx)(D9, { name: "x" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: D9(() => w9(-1)),
- children: /* @__PURE__ */ (0, B.jsx)(E9, { name: "rotate-ccw" })
+ onClick: O9(() => T9(-1)),
+ children: /* @__PURE__ */ (0, B.jsx)(D9, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, B.jsx)("button", {
ref: r,
@@ -80621,16 +80637,16 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: D9(jqe),
- dangerouslySetInnerHTML: Nqe
+ onClick: O9(Nqe),
+ dangerouslySetInnerHTML: Fqe
}),
/* @__PURE__ */ (0, B.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: D9(() => w9(1)),
- children: /* @__PURE__ */ (0, B.jsx)(E9, { name: "rotate-cw" })
+ onClick: O9(() => T9(1)),
+ children: /* @__PURE__ */ (0, B.jsx)(D9, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, B.jsx)("span", {
ref: i,
@@ -80647,7 +80663,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => S9(),
+ onClick: () => C9(),
children: [/* @__PURE__ */ (0, B.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -80661,7 +80677,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {
})
});
});
-function Fqe(e, t, n) {
+function Lqe(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
@@ -80683,7 +80699,7 @@ function Fqe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function Iqe(e, t) {
+function Rqe(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 = {
@@ -80709,7 +80725,7 @@ function Iqe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), Fqe(e, i.dx, i.dy));
+ }, 0), Lqe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -80721,65 +80737,65 @@ function Iqe(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var O9 = null, k9 = null, A9 = null, j9 = null, M9 = 0, N9 = null, P9 = !1, F9 = !1, I9 = () => {
+var k9 = null, A9 = null, j9 = null, M9 = null, N9 = 0, P9 = null, F9 = !1, I9 = !1, L9 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function L9() {
- if (!O9) throw Error("舞台还没有接上宿主(configureStage)");
- return O9;
+function R9() {
+ if (!k9) throw Error("舞台还没有接上宿主(configureStage)");
+ return k9;
}
-function Lqe() {
- return (!k9 || !A9?.isConnected) && (k9?.unmount(), A9 = document.createElement("div"), A9.dataset.stageHost = "", document.body.append(A9), k9 = (0, rp.createRoot)(A9)), k9;
+function zqe() {
+ return (!A9 || !j9?.isConnected) && (A9?.unmount(), j9 = document.createElement("div"), j9.dataset.stageHost = "", document.body.append(j9), A9 = (0, ip.createRoot)(j9)), A9;
}
-function R9() {
- let e = Lqe();
- (0, np.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(kS, { children: /* @__PURE__ */ (0, B.jsx)(Rqe, { view: j9 }) })));
+function z9() {
+ let e = zqe();
+ (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(MS, { children: /* @__PURE__ */ (0, B.jsx)(Bqe, { view: M9 }) })));
}
-function Rqe({ view: e }) {
- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)(zqe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, B.jsx)(Pqe, {})] });
+function Bqe({ view: e }) {
+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)(Vqe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, B.jsx)(Iqe, {})] });
}
-var z9 = () => /* @__PURE__ */ (0, B.jsx)("div", {
+var B9 = () => /* @__PURE__ */ (0, B.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: TKe() }
+ dangerouslySetInnerHTML: { __html: DKe() }
});
-function B9(e) {
+function V9(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function zqe({ view: e }) {
+function Vqe({ view: e }) {
let t = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
- e.preventDefault(), V9();
+ e.preventDefault(), H9();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, B.jsx)(iqe, { ...r.props }) : /* @__PURE__ */ (0, B.jsx)(KKe, { ...r.props });
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, B.jsx)(oqe, { ...r.props }) : /* @__PURE__ */ (0, B.jsx)(JKe, { ...r.props });
return /* @__PURE__ */ (0, B.jsxs)("dialog", {
ref: t,
id: "stage",
"data-stage": "",
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), V9());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), H9());
},
onPointerDown: (e) => {
- F9 = B9(e);
+ I9 = V9(e);
},
onClick: (e) => {
- F9 && B9(e) && V9();
+ I9 && V9(e) && H9();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, B.jsx)(z9, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, B.jsx)(B9, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, B.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, B.jsx)(z9, {})
+ children: /* @__PURE__ */ (0, B.jsx)(B9, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, B.jsx)("div", {
"data-stage-scroll": "",
@@ -80791,32 +80807,32 @@ function zqe({ view: e }) {
]
});
}
-function V9() {
- !j9 || P9 || (P9 = !0, j9.request.actions.close());
+function H9() {
+ !M9 || F9 || (F9 = !0, M9.request.actions.close());
}
-function H9(e, t) {
- let n = I9();
+function U9(e, t) {
+ let n = L9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function Bqe(e) {
+function Hqe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => L9().player.settings();
+ }, r = () => R9().player.settings();
if (e.kind === "item") {
let { kind: t, resume: i, actions: a, ...o } = e, s = {
...a,
- close: V9,
+ close: H9,
present: (e, t) => {
let n = e.performers;
- s9({
+ c9({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), H9(r().ambientMode, r().theaterMode), a.present(e, t);
+ }), U9(r().ambientMode, r().theaterMode), a.present(e, t);
},
- mountPlayer: (e, t, r, i) => c9(e, {
+ mountPlayer: (e, t, r, i) => l9(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -80834,16 +80850,16 @@ function Bqe(e) {
}
let { kind: i, resume: a, actions: o, ...s } = e, c = {
...o,
- close: V9,
+ close: H9,
present: (e, t) => {
- s9({
+ c9({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), H9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
+ }), U9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
},
- mountPlayer: (e, t, r, i) => c9(e, {
+ mountPlayer: (e, t, r, i) => l9(e, {
kind: "follow",
item: t,
media: r,
@@ -80860,48 +80876,48 @@ function Bqe(e) {
}
};
}
-function Vqe(e, t) {
+function Uqe(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"), j9?.generation === t && j9.phase === "reveal" && (j9 = {
- ...j9,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), M9?.generation === t && M9.phase === "reveal" && (M9 = {
+ ...M9,
phase: "content"
- }, R9());
+ }, z9());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-async function Hqe(e) {
- j9 && U9({ miniplayer: !1 });
- let t = ++M9, n = new AbortController();
- N9 = n, P9 = !1, F9 = !1, Eqe(e.kind, e.id ?? NaN), j9 = {
+async function Wqe(e) {
+ M9 && W9({ miniplayer: !1 });
+ let t = ++N9, n = new AbortController();
+ P9 = n, F9 = !1, I9 = !1, Oqe(e.kind, e.id ?? NaN), M9 = {
generation: t,
request: e,
- content: Bqe(e),
+ content: Hqe(e),
phase: "skeleton"
- }, R9();
- let r = I9();
+ }, z9();
+ let r = L9();
if (!r) return;
Fe(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
- let i = j9.content;
+ let i = M9.content;
try {
- i.kind === "item" ? await Bre(i.props, n.signal) : await kKe(i.props, n.signal);
+ i.kind === "item" ? await zre(i.props, n.signal) : await jKe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
- if (t !== M9 || !j9) return;
+ if (t !== N9 || !M9) return;
let a = !!r.querySelector(".skeleton-awaiting");
- j9 = {
- ...j9,
+ M9 = {
+ ...M9,
phase: a ? "content" : "reveal"
- }, R9(), a || Vqe(r, t), Ke(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, z9(), a || Uqe(r, t), Ke(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let o = document.activeElement;
(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();
}
-function Uqe() {
- let e = I9();
+function Gqe() {
+ let e = L9();
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();
@@ -80911,77 +80927,77 @@ function Uqe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function U9({ miniplayer: e = !0 } = {}) {
- if (M9++, N9?.abort(), N9 = null, Tqe(e), !j9) return;
- let t = I9();
- t && ue(t), US(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
+function W9({ miniplayer: e = !0 } = {}) {
+ if (N9++, P9?.abort(), P9 = null, Dqe(e), !M9) return;
+ let t = L9();
+ t && ue(t), KS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");
}
-function Wqe(e) {
- !j9 || j9.content.kind !== "item" || (j9 = {
- ...j9,
+function Kqe(e) {
+ !M9 || M9.content.kind !== "item" || (M9 = {
+ ...M9,
content: {
kind: "item",
props: {
- ...j9.content.props,
+ ...M9.content.props,
...e
}
}
- }, R9());
+ }, z9());
}
-function Gqe() {
- let e = Cqe(), t = e?.kind === "item" ? e.item : null, n = t ? N(t, L9().player.settings().javImage) : "";
+function qqe() {
+ let e = Tqe(), t = e?.kind === "item" ? e.item : null, n = t ? N(t, R9().player.settings().javImage) : "";
if (!n) return;
- let r = l9();
+ let r = u9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var Kqe = {
- open: Hqe,
- update: Wqe,
- exit: Uqe,
- dispose: U9,
- requestClose: V9,
- repaintPoster: Gqe,
- isOpen: () => !!j9,
- activeVideo: () => Oqe(),
+var Jqe = {
+ open: Wqe,
+ update: Kqe,
+ exit: Gqe,
+ dispose: W9,
+ requestClose: H9,
+ repaintPoster: qqe,
+ isOpen: () => !!M9,
+ activeVideo: () => Aqe(),
toggleTheater: () => {
- j9 && cC(!L9().player.settings().theaterMode);
+ M9 && dC(!R9().player.settings().theaterMode);
},
- toggleMiniplayer: () => C9(),
- closeMiniplayer: () => x9(),
- miniplayerActive: () => d9(),
- miniplayerTakesCard: (e) => T9(e),
+ toggleMiniplayer: () => w9(),
+ closeMiniplayer: () => S9(),
+ miniplayerActive: () => f9(),
+ miniplayerTakesCard: (e) => E9(e),
miniplayerPlay: (e) => {
- Mqe(e);
+ Pqe(e);
}
};
-function qqe(e) {
- return O9 = e, Sqe(e, {
- isOpen: () => !!j9,
- requestClose: V9
- }), R9(), Kqe;
+function Yqe(e) {
+ return k9 = e, wqe(e, {
+ isOpen: () => !!M9,
+ requestClose: H9
+ }), z9(), Jqe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function Jqe(e) {
+function Xqe(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 Yqe = (e) => {
+var Zqe = (e) => {
switch (e) {
- case "success": return Qqe;
- case "info": return eJe;
- case "warning": return $qe;
- case "error": return tJe;
+ case "success": return eJe;
+ case "info": return nJe;
+ case "warning": return tJe;
+ case "error": return rJe;
default: return null;
}
-}, Xqe = Array(12).fill(0), Zqe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
+}, Qqe = Array(12).fill(0), $qe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, Xqe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
+}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, Qqe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), Qqe = /*#__PURE__*/ R.createElement("svg", {
+})))), eJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -80992,7 +81008,7 @@ var Yqe = (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"
-})), $qe = /*#__PURE__*/ R.createElement("svg", {
+})), tJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -81003,7 +81019,7 @@ var Yqe = (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"
-})), eJe = /*#__PURE__*/ R.createElement("svg", {
+})), nJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81014,7 +81030,7 @@ var Yqe = (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"
-})), tJe = /*#__PURE__*/ R.createElement("svg", {
+})), rJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81025,7 +81041,7 @@ var Yqe = (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__*/ R.createElement("svg", {
+})), iJe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -81046,7 +81062,7 @@ var Yqe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), rJe = () => {
+})), aJe = () => {
let [e, t] = R.useState(document.hidden);
return R.useEffect(() => {
let e = () => {
@@ -81054,7 +81070,7 @@ var Yqe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, iJe = 1, aJe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : iJe++, G9 = new class {
+}, oJe = 1, sJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : oJe++, K9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -81064,10 +81080,10 @@ var Yqe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - aJe;
+ let e = this.toasts.length - sJe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
- let { message: t, ...n } = e, r = W9(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = G9(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -81142,7 +81158,7 @@ var Yqe = (e) => {
type: "default",
message: e
});
- else if (sJe(e) && !e.ok) {
+ else if (lJe(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" && !R.isValidElement(r) ? r : { message: r };
this.create({
@@ -81186,7 +81202,7 @@ var Yqe = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = W9(t);
+ let n = G9(t);
return this.create({
...t,
jsx: e(n),
@@ -81195,34 +81211,34 @@ var Yqe = (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();
}
-}(), oJe = (e, t) => G9.message(e, t), sJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(oJe, {
- success: G9.success,
- info: G9.info,
- warning: G9.warning,
- error: G9.error,
- custom: G9.custom,
- message: G9.message,
- promise: G9.promise,
- dismiss: G9.dismiss,
- loading: G9.loading
+}(), cJe = (e, t) => K9.message(e, t), lJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(cJe, {
+ success: K9.success,
+ info: K9.info,
+ warning: K9.warning,
+ error: K9.error,
+ custom: K9.custom,
+ message: K9.message,
+ promise: K9.promise,
+ dismiss: K9.dismiss,
+ loading: K9.loading
}, {
- getHistory: () => G9.toasts,
- getToasts: () => G9.getActiveToasts()
+ getHistory: () => K9.toasts,
+ getToasts: () => K9.getActiveToasts()
});
-Jqe("[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 q9(e) {
+Xqe("[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 J9 = 3, cJe = "24px", lJe = "16px", Y9 = 4e3, uJe = 356, dJe = 14, fJe = 45, pJe = 200;
+var uJe = 3, dJe = "24px", fJe = "16px", Y9 = 4e3, pJe = 356, mJe = 14, hJe = 45, gJe = 200;
function X9(...e) {
return e.filter(Boolean).join(" ");
}
-function mJe(e) {
+function _Je(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var hJe = (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] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [ee, te] = R.useState(!1), [P, F] = R.useState(!1), [ne, re] = R.useState(!1), [ie, ae] = R.useState(0), [oe, se] = R.useState(0), ce = R.useRef(n.duration || y || Y9), le = R.useRef(null), ue = R.useRef(null), de = c === 0, fe = c + 1 <= o, I = n.type, pe = I ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = R.useMemo(() => n.duration || y || Y9, [n.duration, y]), be = R.useRef(0), L = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), Ee = rJe(), De = R.useMemo(() => e.swipeDirections ?? mJe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = I === "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] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [ee, te] = R.useState(!1), [P, F] = R.useState(!1), [ne, re] = R.useState(!1), [ie, ae] = R.useState(0), [oe, se] = R.useState(0), ce = R.useRef(n.duration || y || Y9), le = R.useRef(null), ue = R.useRef(null), de = c === 0, fe = c + 1 <= o, I = n.type, pe = I ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = R.useMemo(() => n.duration || y || Y9, [n.duration, y]), be = R.useRef(0), L = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), Ee = aJe(), De = R.useMemo(() => e.swipeDirections ?? _Je(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = I === "loading";
L.current = R.useMemo(() => _e * x + Te, [_e, Te]), R.useEffect(() => {
ce.current = ye;
}, [ye]), R.useEffect(() => {
@@ -81263,7 +81279,7 @@ var hJe = (e) => {
let Ae = R.useCallback(() => {
N(!0), ae(L.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, pJe);
+ }, gJe);
}, [
n,
d,
@@ -81296,12 +81312,12 @@ var hJe = (e) => {
return w?.loading ? /*#__PURE__*/ R.createElement("div", {
className: X9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": I === "loading"
- }, w.loading) : /*#__PURE__*/ R.createElement(Zqe, {
+ }, w.loading) : /*#__PURE__*/ R.createElement($qe, {
className: X9(C?.loader, n?.classNames?.loader),
visible: I === "loading"
});
}
- let Me = n.icon || w?.[I] || Yqe(I);
+ let Me = n.icon || w?.[I] || Zqe(I);
return /*#__PURE__*/ R.createElement("li", {
tabIndex: 0,
ref: ue,
@@ -81348,7 +81364,7 @@ var hJe = (e) => {
if (P || !me) return;
Se.current = null;
let e = Number(ue.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ue.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - le.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= fJe || a > .11)) {
+ if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= hJe || a > .11)) {
ae(L.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ae(), F(!0);
return;
}
@@ -81389,7 +81405,7 @@ var hJe = (e) => {
Ae(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: X9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? nJe) : null, (I || n.icon || n.promise) && n.icon !== null && (w?.[I] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
+ }, w?.close ?? iJe) : null, (I || n.icon || n.promise) && n.icon !== null && (w?.[I] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
"data-icon": "",
className: X9(C?.icon, n?.classNames?.icon)
}, I === "loading" ? n.icon || je() : n.promise ? je() : null, I === "loading" ? null : Me) : null, /*#__PURE__*/ R.createElement("div", {
@@ -81401,20 +81417,20 @@ var hJe = (e) => {
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ R.createElement("div", {
"data-description": "",
className: X9(v, ge, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ R.isValidElement(n.cancel) ? n.cancel : n.cancel && q9(n.cancel) ? /*#__PURE__*/ R.createElement("button", {
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ R.isValidElement(n.cancel) ? n.cancel : n.cancel && J9(n.cancel) ? /*#__PURE__*/ R.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- q9(n.cancel) && me && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Ae());
+ J9(n.cancel) && me && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Ae());
},
className: X9(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ R.isValidElement(n.action) ? n.action : n.action && q9(n.action) ? /*#__PURE__*/ R.createElement("button", {
+ }, n.cancel.label) : null, /*#__PURE__*/ R.isValidElement(n.action) ? n.action : n.action && J9(n.action) ? /*#__PURE__*/ R.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- q9(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Ae());
+ J9(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Ae());
},
className: X9(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
@@ -81424,10 +81440,10 @@ function Z9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function gJe(e, t) {
+function yJe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? lJe : cJe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? fJe : dJe;
function o(e) {
[
"top",
@@ -81448,11 +81464,11 @@ function gJe(e, t) {
}) : o(a);
}), n;
}
-var _Je = /*#__PURE__*/ R.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 = J9, toastOptions: g, dir: _ = Z9(), gap: v = dJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = R.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = R.useRef(null), F = R.useRef(!1), ne = R.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var bJe = /*#__PURE__*/ R.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 = uJe, toastOptions: g, dir: _ = Z9(), gap: v = mJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = R.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = R.useRef(null), F = R.useRef(!1), ne = R.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || K9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return R.useEffect(() => G9.subscribe((e) => {
+ return R.useEffect(() => K9.subscribe((e) => {
if (e.dismiss) {
requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
@@ -81463,7 +81479,7 @@ var _Je = /*#__PURE__*/ R.forwardRef(function(e, t) {
return;
}
setTimeout(() => {
- np.flushSync(() => {
+ rp.flushSync(() => {
C((t) => {
let n = t.findIndex((t) => t.id === e.id);
return n === -1 ? [e, ...t] : [
@@ -81535,10 +81551,10 @@ var _Je = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${uJe}px`,
+ "--width": `${pJe}px`,
"--gap": `${v}px`,
...m,
- ...gJe(l, u)
+ ...yJe(l, u)
},
onBlur: (e) => {
F.current && !e.currentTarget.contains(e.relatedTarget) && (F.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -81556,7 +81572,7 @@ var _Je = /*#__PURE__*/ R.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__*/ R.createElement(hJe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ R.createElement(vJe, {
key: n.id,
icons: y,
index: i,
@@ -81590,8 +81606,8 @@ var _Je = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), $9 = !1, vJe = (e, t) => {
- $9 || ($9 = !0, (0, rp.createRoot)(e).render(/* @__PURE__ */ (0, B.jsx)(_Je, {
+}), $9 = !1, xJe = (e, t) => {
+ $9 || ($9 = !0, (0, ip.createRoot)(e).render(/* @__PURE__ */ (0, B.jsx)(bJe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -81612,8 +81628,8 @@ var _Je = /*#__PURE__*/ R.forwardRef(function(e, t) {
error: Q9(t.error, !1)
}
})));
-}, yJe = (e, t) => {
- let n = t.alert ? K9.error : K9.success, r = t.action;
+}, SJe = (e, t) => {
+ let n = t.alert ? q9.error : q9.success, r = t.action;
n(/* @__PURE__ */ (0, B.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
duration: t.timeout || Infinity,
@@ -81626,4 +81642,4 @@ var _Je = /*#__PURE__*/ R.forwardRef(function(e, t) {
});
};
//#endregion
-export { Wne as configureBatchDock, Kne as configureGlowPicker, Mie as configureImmerse, Vie as configureManageHeader, AGe as configureRouter, ZGe as configureSettingsPanel, fKe as configureSidebar, qqe as configureStage, vJe as mountToaster, pWe as prefetchManagedRoute, yJe as showToast };
+export { Hne as configureBatchDock, Wne as configureGlowPicker, jie as configureImmerse, Bie as configureManageHeader, MGe as configureRouter, $Ge as configureSettingsPanel, mKe as configureSidebar, Yqe as configureStage, xJe as mountToaster, pWe as prefetchManagedRoute, SJe as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 4460a5f91..1a6734bf2 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -157,15 +157,15 @@ function ge(e) {
}
//#endregion
//#region src/appearance/home-glow.ts
-var S = [
+var _e = [
"spot1",
"spot2",
"spot3"
-], _e = [
+], ve = [
"光晕一",
"光晕二",
"光晕三"
-], ve = "native", C = [
+], ye = "native", S = [
[
"ash",
"灰雾",
@@ -471,7 +471,7 @@ var S = [
"rose"
],
[
- ve,
+ ye,
"玻璃原色",
{
spot1: {
@@ -489,7 +489,7 @@ var S = [
},
"blue"
]
-], w = (e) => e === ve, ye = [...C.map(([e, t]) => [e, t]), ["custom", "自定义"]], be = (e) => (ye.find(([t]) => t === e) || ye[0])[1], xe = (e) => structuredClone((C.find(([t]) => t === e) || C[0])[2]), Se = [
+], C = (e) => e === ye, be = [...S.map(([e, t]) => [e, t]), ["custom", "自定义"]], xe = (e) => (be.find(([t]) => t === e) || be[0])[1], Se = (e) => structuredClone((S.find(([t]) => t === e) || S[0])[2]), Ce = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -502,7 +502,7 @@ var S = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Ce = "blue", we = (e) => Se.some(([t]) => t === e) ? e : Ce, Te = (e) => (C.find(([t]) => t === e) || [])[3] || "blue", Ee = [
+], we = "blue", Te = (e) => Ce.some(([t]) => t === e) ? e : we, Ee = (e) => (S.find(([t]) => t === e) || [])[3] || "blue", De = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -512,7 +512,7 @@ var S = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], De = [
+], Oe = [
[
"gray",
"云灰",
@@ -908,11 +908,11 @@ var S = [
"霁蓝",
"#6686b8"
]
-], Oe = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, ke = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Ae = (e, t) => `rgba(${[
+], ke = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Ae = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, je = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, je = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Me = {
strength: [
0,
100,
@@ -938,7 +938,7 @@ var S = [
100,
50
]
-}, Me = {
+}, Ne = {
on: !0,
preset: "ash",
strength: 100,
@@ -946,39 +946,39 @@ var S = [
speed: 100,
soften: 50,
size: 50,
- ...xe("ash")
+ ...Se("ash")
};
-function Ne(e) {
- let t = e && typeof e == "object" ? e : {}, n = ye.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = xe(r === "custom" ? "ash" : r), a = {
+function Pe(e) {
+ let t = e && typeof e == "object" ? e : {}, n = be.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Se(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(je)) a[e] = Oe(+t[e], n, r, i);
- for (let e of S) {
+ for (let [e, [n, r, i]] of Object.entries(Me)) a[e] = ke(+t[e], n, r, i);
+ for (let e of _e) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: ke(r.color, o.color),
- alpha: Oe(+r.alpha, 0, 100, o.alpha)
+ color: Ae(r.color, o.color),
+ alpha: ke(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var Pe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Fe = /* @__PURE__ */ new WeakMap();
-function Ie(e, t) {
+var Fe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Ie = /* @__PURE__ */ new WeakMap();
+function Le(e, t) {
if (!e) return;
- let n = Fe.get(e);
- n || (n = /* @__PURE__ */ new Map(), Fe.set(e, n));
- let r = t.on && !w(t.preset), i = (t, r) => {
+ let n = Ie.get(e);
+ n || (n = /* @__PURE__ */ new Map(), Ie.set(e, n));
+ let r = t.on && !C(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), S.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), _e.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, Ae(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, je(r.color, r.alpha));
});
}
-function Le(e, t) {
+function Re(e, t) {
if (!e) return;
- let n = !t.on || w(t.preset);
+ let n = !t.on || C(t.preset);
if (e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n) {
e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b");
return;
@@ -987,25 +987,25 @@ function Le(e, t) {
}
//#endregion
//#region src/appearance/settings.ts
-var Re = "peach.settings.v1", ze = [
+var ze = "peach.settings.v1", Be = [
"system",
"light",
"dark"
-], Be = [
+], Ve = [
0,
7,
30,
90
-], Ve = [
+], He = [
0,
7,
30,
90
-], He = [
+], Ue = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], Ue = {
+], We = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -1025,44 +1025,44 @@ var Re = "peach.settings.v1", ze = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...ue],
- homeGlow: Me,
- accent: Ce
-}, T = (e, t, n) => t.includes(e) ? e : n;
-function We(e) {
+ homeGlow: Ne,
+ accent: we
+}, w = (e, t, n) => t.includes(e) ? e : n;
+function Ge(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...Ue,
+ ...We,
...t
};
- n.followInitialDays = Be.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = Ve.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
let a = _[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = x(+n.batchSize, 1, 200, 60), n.defaultSort = T(n.defaultSort, h, "seed"), n.hoverDelaySeconds = x(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = x(+n.seekSeconds, 1, 300, 10), delete n.loginDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = x(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = x(+n.relatedLimit, 0, 60, 20), n.metadataRefreshDays = T(+n.metadataRefreshDays, Ve, 30), Object.assign(n, ne(n)), n.theme = T(n.theme, ze, "system"), n.homeGlow = Ne(n.homeGlow), n.accent = we(n.accent), n.sidebarOrder = me(n.sidebarOrder), {
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = x(+n.batchSize, 1, 200, 60), n.defaultSort = w(n.defaultSort, h, "seed"), n.hoverDelaySeconds = x(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = x(+n.seekSeconds, 1, 300, 10), delete n.loginDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = x(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = x(+n.relatedLimit, 0, 60, 20), n.metadataRefreshDays = w(+n.metadataRefreshDays, He, 30), Object.assign(n, ne(n)), n.theme = w(n.theme, Be, "system"), n.homeGlow = Pe(n.homeGlow), n.accent = Te(n.accent), n.sidebarOrder = me(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Ge(e) {
+function Ke(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return We(t);
+ return Ge(t);
}
-var Ke = null;
+var T = null;
function E() {
- if (Ke) return Ke;
- let { settings: e, migrated: t } = Ge(localStorage);
- return Ke = le(Re, e), t && Ke.save(), Ke;
+ if (T) return T;
+ let { settings: e, migrated: t } = Ke(localStorage);
+ return T = le(ze, e), t && T.save(), T;
}
function qe(e, t, n = E()) {
let r = n.value, i = e && e.followInitialDays;
- Be.includes(i) && (r.followInitialDays = i, n.save());
+ Ve.includes(i) && (r.followInitialDays = i, n.save());
let a = e && e.metadataRefreshDays;
- Ve.includes(a) && a !== r.metadataRefreshDays && (r.metadataRefreshDays = a, n.save());
- for (let t of He) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ He.includes(a) && a !== r.metadataRefreshDays && (r.metadataRefreshDays = a, n.save());
+ for (let t of Ue) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let o = e && e.searchHistoryLimit;
- Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = x(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Ue.searchHistoryLimit && Je(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = x(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== We.searchHistoryLimit && Je(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
!s || !s.length || s.join(",") === r.sidebarOrder.join(",") || (r.sidebarOrder = s, n.save());
}
@@ -1131,7 +1131,7 @@ var tt = [[
"masonry",
"瀑布流",
"columns-2"
-]], it = .75, D = () => E().value, at = (e = D()) => b(e.javLayout), ot = (e = D()) => b(e.homeLayout), st = (e, t = D()) => e ? ot(t) : at(t), ct = nt.map(([e]) => e), lt = rt.map(([e]) => e), ut = (e = D()) => T(e.photoSize, ct, "small"), dt = (e = D()) => T(e.photoLayout, lt, "masonry"), ft = null;
+]], it = .75, D = () => E().value, at = (e = D()) => b(e.javLayout), ot = (e = D()) => b(e.homeLayout), st = (e, t = D()) => e ? ot(t) : at(t), ct = nt.map(([e]) => e), lt = rt.map(([e]) => e), ut = (e = D()) => w(e.photoSize, ct, "small"), dt = (e = D()) => w(e.photoLayout, lt, "masonry"), ft = null;
function pt(e, t = D()) {
let n = {
active: e.active,
@@ -1154,10 +1154,10 @@ function _t(e, t = E()) {
t.value.homeLayout = t.value.javLayout = b(e), t.save();
}
function vt(e, t = E()) {
- t.value.photoSize = T(e, ct, "small"), t.save();
+ t.value.photoSize = w(e, ct, "small"), t.save();
}
function yt(e, t = E()) {
- t.value.photoLayout = T(e, lt, "masonry"), t.save();
+ t.value.photoLayout = w(e, lt, "masonry"), t.save();
}
//#endregion
//#region src/appearance/density.ts
@@ -1186,7 +1186,7 @@ function Dt(e) {
//#endregion
//#region src/appearance/glow.ts
function Ot(e = E()) {
- Ie(document.querySelector(".glowlayer"), e.value.homeGlow);
+ Le(document.querySelector(".glowlayer"), e.value.homeGlow);
}
var kt = 0;
function At(e = E()) {
@@ -1195,7 +1195,7 @@ function At(e = E()) {
});
}
function jt(e = E()) {
- Le(document.documentElement, e.value.homeGlow);
+ Re(document.documentElement, e.value.homeGlow);
}
function Mt(e = E()) {
document.documentElement.dataset.accent = e.value.accent;
@@ -1203,28 +1203,28 @@ function Mt(e = E()) {
var Nt = (e, t, n) => ({
key: e,
label: t,
- native: w(e),
- fill: w(e) ? "" : Pe(n)
+ native: C(e),
+ fill: C(e) ? "" : Fe(n)
});
function Pt(e) {
- let t = C.map(([e, t, n]) => Nt(e, t, S.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(Nt("custom", "自定义", S.map((t) => e[t].color))), t;
+ let t = S.map(([e, t, n]) => Nt(e, t, _e.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(Nt("custom", "自定义", _e.map((t) => e[t].color))), t;
}
-var Ft = Se;
+var Ft = Ce;
function It(e, t = E()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, xe(e)), t.value.accent = Te(e), t.save(), At(t), jt(t), Mt(t);
+ n.preset = e, Object.assign(n, Se(e)), t.value.accent = Ee(e), t.save(), At(t), jt(t), Mt(t);
}
function Lt(e, t = E()) {
- t.value.accent = we(e), t.save(), Mt(t);
+ t.value.accent = Te(e), t.save(), Mt(t);
}
function Rt(e = E()) {
let t = e.value.homeGlow;
- t.preset = Me.preset, Object.assign(t, xe(t.preset)), e.value.accent = Ce, e.save(), At(e), jt(e), Mt(e);
+ t.preset = Ne.preset, Object.assign(t, Se(t.preset)), e.value.accent = we, e.save(), At(e), jt(e), Mt(e);
}
function zt(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && w(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && C(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
function Bt(e, t = E()) {
return zt(e, t.value.homeGlow), t.subscribe(() => zt(e, t.value.homeGlow));
@@ -3548,28 +3548,34 @@ function ti(e, ...t) {
for (let e of n) e.host.remove();
}
}
+function ni(e, t) {
+ let n = B.get(e);
+ n?.revision === t && (B.delete(e), n.host.remove(), queueMicrotask(() => {
+ Zr(!1);
+ }));
+}
//#endregion
//#region src/history/index.ts
-var H = gr({ v5Compat: !0 }), ni = 0, ri = {
+var H = gr({ v5Compat: !0 }), ri = 0, ii = {
action: H.action,
location: H.location,
- seq: ni
-}, ii = /* @__PURE__ */ new Set(), ai = 0, oi = !1, si = null;
+ seq: ri
+}, ai = /* @__PURE__ */ new Set(), oi = 0, si = !1, ci = null;
H.listen(({ action: e, location: t }) => {
- ni += 1, oi && (ai = ni), ri = {
+ ri += 1, si && (oi = ri), ii = {
action: e,
location: t,
- seq: ni
+ seq: ri
};
- for (let e of [...ii]) e(ri);
+ for (let e of [...ai]) e(ii);
});
-var ci = {
+var li = {
get navigation() {
- return ri;
+ return ii;
},
listen(e) {
- return ii.add(e), () => {
- ii.delete(e);
+ return ai.add(e), () => {
+ ai.delete(e);
};
},
createHref: (e) => H.createHref(e),
@@ -3579,48 +3585,48 @@ var ci = {
push: (e, t) => H.push(e, t),
replace: (e, t) => H.replace(e, t)
};
-function li(e, { replace: t = !1, state: n } = {}) {
+function ui(e, { replace: t = !1, state: n } = {}) {
let r = new URL(e, window.location.href), i = `${r.pathname}${r.search}${r.hash}`;
- oi = !0;
+ si = !0;
try {
t ? H.replace(i, n) : H.push(i, n);
} finally {
- oi = !1;
+ si = !1;
}
}
-function ui(e) {
- return si = e, ai = ni, Promise.resolve(e("boot"));
-}
function di(e) {
- !si || e <= ai || (ai = e, si("history"));
+ return ci = e, oi = ri, Promise.resolve(e("boot"));
}
function fi(e) {
+ !ci || e <= oi || (oi = e, ci("history"));
+}
+function pi(e) {
let t = zr(e);
- !t || !Mr(window.location.pathname) || li(window.location.href, {
+ !t || !Mr(window.location.pathname) || ui(window.location.href, {
replace: !0,
state: t
});
}
//#endregion
//#region src/shell/index.ts
-var pi, mi, hi = null, gi = /* @__PURE__ */ new Set(), _i = /* @__PURE__ */ new Set(), vi = !1, yi = null, bi = null, xi = "", Si = "/", Ci = null, wi = !1, Ti = !1, Ei = null, Di = null, Oi = null, ki = "/follow", Ai = "", ji = null, Mi = /* @__PURE__ */ new Set(), Ni = 0;
-function Pi(e) {
+var mi, hi, gi = null, _i = /* @__PURE__ */ new Set(), vi = /* @__PURE__ */ new Set(), yi = !1, bi = null, xi = null, Si = "", Ci = "/", wi = null, Ti = !1, Ei = !1, Di = null, Oi = null, ki = null, Ai = "/follow", ji = "", Mi = null, Ni = /* @__PURE__ */ new Set(), Pi = 0;
+function Fi(e) {
let t = (t) => Object.prototype.hasOwnProperty.call(e, t);
- t("state") && (pi = e.state), t("barsContext") && (mi = e.barsContext), t("detailReturnBarsContext") && (hi = e.detailReturnBarsContext), t("selectMode") && (vi = e.selectMode), t("lastSelectedId") && (yi = e.lastSelectedId), t("followLastSelectedId") && (bi = e.followLastSelectedId), t("selectSurface") && (xi = e.selectSurface), t("detailReturnPath") && (Si = e.detailReturnPath), t("detailOriginAnchor") && (Ci = e.detailOriginAnchor), t("detailOriginAbove") && (wi = e.detailOriginAbove), t("detailReturnNeedsRestore") && (Ti = e.detailReturnNeedsRestore), t("activeQueue") && (Ei = e.activeQueue), t("pendingQueueRoute") && (Di = e.pendingQueueRoute), t("presentedItem") && (Oi = e.presentedItem), t("followDetailReturnPath") && (ki = e.followDetailReturnPath), t("configurationRequestedSection") && (Ai = e.configurationRequestedSection), t("activityPrefill") && (ji = e.activityPrefill), Fi();
+ t("state") && (mi = e.state), t("barsContext") && (hi = e.barsContext), t("detailReturnBarsContext") && (gi = e.detailReturnBarsContext), t("selectMode") && (yi = e.selectMode), t("lastSelectedId") && (bi = e.lastSelectedId), t("followLastSelectedId") && (xi = e.followLastSelectedId), t("selectSurface") && (Si = e.selectSurface), t("detailReturnPath") && (Ci = e.detailReturnPath), t("detailOriginAnchor") && (wi = e.detailOriginAnchor), t("detailOriginAbove") && (Ti = e.detailOriginAbove), t("detailReturnNeedsRestore") && (Ei = e.detailReturnNeedsRestore), t("activeQueue") && (Di = e.activeQueue), t("pendingQueueRoute") && (Oi = e.pendingQueueRoute), t("presentedItem") && (ki = e.presentedItem), t("followDetailReturnPath") && (Ai = e.followDetailReturnPath), t("configurationRequestedSection") && (ji = e.configurationRequestedSection), t("activityPrefill") && (Mi = e.activityPrefill), Ii();
}
-function Fi() {
- Ni += 1;
- for (let e of [...Mi]) e();
+function Ii() {
+ Pi += 1;
+ for (let e of [...Ni]) e();
}
-function Ii(e) {
- return Mi.add(e), () => {
- Mi.delete(e);
+function Li(e) {
+ return Ni.add(e), () => {
+ Ni.delete(e);
};
}
-var Li = () => Ni;
+var Ri = () => Pi;
//#endregion
//#region src/diagnostics-route.ts
-function Ri(e) {
+function zi(e) {
window.peachRegisterRoute({
match: "/diagnostics",
section: "configuration",
@@ -3631,21 +3637,21 @@ function Ri(e) {
}
//#endregion
//#region src/board-controls.ts
-function zi(e) {
+function Bi(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}%`);
}
-function Bi() {
+function Vi() {
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(zi), Wi(e), Hi(e);
+ e.querySelectorAll("input[type=range]").forEach(Bi), Gi(e), Ui(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && zi(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && Bi(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && zi(e.target);
+ e.target instanceof HTMLInputElement && e.target.type === "range" && Bi(e.target);
});
let t = document.createElement("div");
t.className = "board-tooltip", t.id = "board-control-tooltip", t.role = "tooltip", t.hidden = !0, document.body.append(t);
@@ -3668,8 +3674,8 @@ function Bi() {
n && u(e, n) && o();
}, !0), window.addEventListener("resize", o);
}
-var Vi = /* @__PURE__ */ new Map();
-function Hi(e) {
+var Hi = /* @__PURE__ */ new Map();
+function Ui(e) {
let t = ".board-local-nav:not([data-section-nav])", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -3683,8 +3689,8 @@ function Hi(e) {
left: r.offsetLeft,
width: r.offsetWidth
};
- n(i), Vi.set(t, i);
- }, i = Vi.get(t);
+ n(i), Hi.set(t, i);
+ }, i = Hi.get(t);
i ? n(i) : r(), requestAnimationFrame(() => {
e.classList.add("board-tabs-ready"), requestAnimationFrame(r);
});
@@ -3704,15 +3710,15 @@ function Hi(e) {
o.observe(e);
});
}
-var Ui = /* @__PURE__ */ new Map();
-function Wi(e) {
+var Wi = /* @__PURE__ */ new Map();
+function Gi(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = Ui.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = Wi.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -3721,7 +3727,7 @@ function Wi(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- c(t, r, a, "x"), r = a, Ui.set(n, a);
+ c(t, r, a, "x"), r = a, Wi.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -3742,15 +3748,15 @@ function Wi(e) {
}
//#endregion
//#region src/theme-transition.ts
-var Gi = !1;
-async function Ki(e, t) {
- if (Gi) return;
+var Ki = !1;
+async function qi(e, t) {
+ if (Ki) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, Gi = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, Ki = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -3761,46 +3767,46 @@ async function Ki(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), Gi = !1;
+ delete s.dataset.themeSnapshot, o.remove(), Ki = !1;
}
}
//#endregion
//#region src/sidebar-skeleton.ts
-var qi = (e) => e.replace(/[&<>"']/g, (e) => ({
+var Ji = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Ji(e, t, n) {
+function Yi(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
- let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${qi(r)}"/></svg>`;
- return `<button type="button" data-nav="${qi(e)}" aria-pressed="${n(e)}" aria-label="${qi(t)}">${i}<span>${qi(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${Ji(r)}"/></svg>`;
+ return `<button type="button" data-nav="${Ji(e)}" aria-pressed="${n(e)}" aria-label="${Ji(t)}">${i}<span>${Ji(t)}</span></button>`;
}).join("")}</div>`;
}
//#endregion
//#region src/manage-header.ts
-var Yi = {
+var Xi = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/scraping": "来源和凭证"
-}, Xi = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Zi = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
-function Qi(e) {
+}, Zi = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Qi = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function $i(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = Yi[e.path] ?? "";
+ let n = Xi[e.path] ?? "";
return {
title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],
crumb: n,
- compact: Xi.has(e.path) || e.section === "configuration",
+ compact: Zi.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Zi(e.trash),
+ text: Qi(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
@@ -3811,28 +3817,28 @@ var U = (e) => e.replace(/[&<>"']/g, (e) => ({
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), $i = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${U(e)}"/></svg>`, ea = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function ta(e) {
- let t = Qi(e);
+})[e]), ea = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${U(e)}"/></svg>`, ta = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function na(e) {
+ let t = $i(e);
if (!t) return "";
let n = e.menu.map(([t, n, r]) => {
let i = t === e.section;
- return `<button type="button" data-manage="${U(t)}" aria-pressed="${i}"${i ? " aria-current=\"page\"" : ""}>${$i(r)}<span>${U(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${$i("chevron-right")}</li><li aria-current="true"><span>${U(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? ea : `<span data-lede-text="">${U(t.lede.text)}</span>${t.lede.total ? na : ""}`}</p>`;
+ return `<button type="button" data-manage="${U(t)}" aria-pressed="${i}"${i ? " aria-current=\"page\"" : ""}>${ea(r)}<span>${U(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${ea("chevron-right")}</li><li aria-current="true"><span>${U(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? ta : `<span data-lede-text="">${U(t.lede.text)}</span>${t.lede.total ? ra : ""}`}</p>`;
return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="">${n}<span data-manage-indicator="" aria-hidden="true"></span></div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${U(t.title)}</h2>` + i;
}
-var na = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var ra = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
//#endregion
//#region src/jobs.ts
-function ra(e, n, r) {
+function ia(e, n, r) {
if (!Number.isFinite(r) || r <= 0) return "";
let i = Math.max(0, Math.min(r, Number.isFinite(n) ? n : 0)), a = i / r * 100;
return `<div class="board-job-progress" role="progressbar" aria-label="${t(e)}" aria-valuemin="0" aria-valuemax="${r}" aria-valuenow="${i}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${a} ${100 - a}" transform="rotate(-90 18 18)"/></svg><span>${t(e)}<small>${Math.round(a)}%</small></span></div>`;
}
-function ia(e, t = 0, n = 0) {
- return n > 0 ? ra(e, t, n) : s(e);
+function aa(e, t = 0, n = 0) {
+ return n > 0 ? ia(e, t, n) : s(e);
}
-async function aa(e) {
+async function oa(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -3847,14 +3853,14 @@ async function aa(e) {
await t(2e3);
}
}
-function oa(e) {
+function sa(e) {
let t = e.note || ((e) => l(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || s, r = e.progress || ((e, t, n) => ia(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || s, r = e.progress || ((e, t, n) => aa(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", c = sessionStorage.getItem(o) || void 0, u = !1;
- aa({
+ oa({
read: e.read,
active: () => !u && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -3880,11 +3886,11 @@ function oa(e) {
}
//#endregion
//#region src/selection.ts
-function sa(e, t, n, r, i, a = i || !e.has(r)) {
+function ca(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;
}
-function ca(e, t) {
+function la(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -3892,14 +3898,14 @@ function ca(e, t) {
mixed: n > 0 && n < t.length
};
}
-function la(e, t, n) {
+function ua(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function ua({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function da({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
e && (e.textContent = t), n && (n.checked = r.all, n.indeterminate = r.mixed);
for (let e of i) e.disabled = !r.count || a;
}
-function da(e, t, n = 1) {
+function fa(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;
@@ -3919,15 +3925,15 @@ function da(e, t, n = 1) {
t
];
}
-function fa(e, t) {
+function pa(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function pa(e, t) {
+function ma(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function ma(e, t, n) {
+function ha(e, t, n) {
if (t <= 1) return "";
- let r = da(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
+ let r = fa(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
return `<nav class="board-pagination" aria-label="${n}">
<button type="button" class="geist-button" data-page="${e - 1}"${e <= 1 ? " disabled" : ""}><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"></use></svg>上一页</button>
<ul>${r}</ul>
@@ -3936,20 +3942,20 @@ function ma(e, t, n) {
}
//#endregion
//#region src/card-art/face-frame.ts
-var ha = .32, ga = 13, _a = .6;
-function va(e) {
+var ga = .32, _a = 13, va = .6;
+function ya(e) {
return e ? Number.isFinite(e.cx) && Number.isFinite(e.cy) && Number(e.faceW) > 0 && Number(e.imgW) > 0 && Number(e.imgH) > 0 : !1;
}
-function ya(e, t, n = 1, r = ha, i = _a) {
- if (!va(e) || !(t && t.w > 0 && t.h > 0)) return 1;
+function ba(e, t, n = 1, r = ga, i = va) {
+ if (!ya(e) || !(t && t.w > 0 && t.h > 0)) return 1;
let a = n > 0 ? n : 1, o = Math.max(t.w / e.imgW, t.h / e.imgH), s = e.faceW * o;
if (!(s > 0)) return 1;
let c = Math.min(t.w, t.h), l = Math.max(r, 13 / c) * c / s, u = Math.max(t.w / (2 * Math.min(e.cx, 1 - e.cx) * e.imgW * o), t.h / (2 * Math.min(e.cy, 1 - e.cy) * e.imgH * o)), d = e.faceW / (s * a);
return Math.max(1, Math.min(Math.max(l, Math.min(u, i * c / s)), d));
}
-function ba(e, t, n = 1, r = ha, i = _a) {
- let a = ya(e, t, n, r, i);
- if (a <= 1 || !va(e) || !t) return null;
+function xa(e, t, n = 1, r = ga, i = va) {
+ let a = ba(e, t, n, r, i);
+ if (a <= 1 || !ya(e) || !t) return null;
let o = Math.max(t.w / e.imgW, t.h / e.imgH) * a, s = e.imgW * o, c = e.imgH * o, l = Math.min(0, Math.max(t.w - s, t.w / 2 - e.cx * s)), u = Math.min(0, Math.max(t.h - c, t.h / 2 - e.cy * c)), d = (e, t) => Math.round(e / t * 1e4) / 100;
return {
zoom: Math.round(a * 1e3) / 1e3,
@@ -3961,48 +3967,48 @@ function ba(e, t, n = 1, r = ha, i = _a) {
}
//#endregion
//#region src/card-art/image-fallback.ts
-var xa = "|", Sa = "closest:";
-function Ca(e) {
- return String(e ?? "").split(xa).map((e) => e.trim()).filter(Boolean);
+var Sa = "|", Ca = "closest:";
+function wa(e) {
+ return String(e ?? "").split(Sa).map((e) => e.trim()).filter(Boolean);
}
-function wa({ drop: e = "self", fallbacks: n = [], initial: r = "", dropClass: i = "", dropStyle: a = !1 } = {}) {
+function Ta({ drop: e = "self", fallbacks: n = [], initial: r = "", dropClass: i = "", dropStyle: a = !1 } = {}) {
let o = (Array.isArray(n) ? n : [n]).filter(Boolean);
return [
`data-drop="${t(e)}"`,
- o.length ? `data-fallbacks="${t(o.join(xa))}"` : "",
+ o.length ? `data-fallbacks="${t(o.join(Sa))}"` : "",
r ? `data-initial="${t(r)}"` : "",
i ? `data-drop-class="${t(i)}"` : "",
a ? "data-drop-style" : ""
].filter(Boolean).join(" ");
}
-function Ta(e) {
+function Ea(e) {
if (!e || !e.dataset || !e.dataset.drop) return "";
- let t = Ca(e.dataset.fallbacks);
+ let t = wa(e.dataset.fallbacks);
if (t.length) {
let [n = "", ...r] = t;
- return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(xa) : delete e.dataset.fallbacks, e.src = n, "retry";
+ return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(Sa) : delete e.dataset.fallbacks, e.src = n, "retry";
}
let n = e.dataset.drop;
- if (n.startsWith(Sa)) return (e.closest(n.slice(8)) || e).remove(), "drop";
+ if (n.startsWith(Ca)) return (e.closest(n.slice(8)) || e).remove(), "drop";
if (n === "initial") {
let t = document.createElement("span");
return t.className = e.dataset.dropClass || "", t.textContent = e.dataset.initial || "", e.replaceWith(t), "drop";
}
return e.remove(), "drop";
}
-function Ea(e) {
+function Da(e) {
e.addEventListener("error", (e) => {
- e.target instanceof HTMLImageElement && Ta(e.target);
+ e.target instanceof HTMLImageElement && Ea(e.target);
}, !0);
}
//#endregion
//#region src/card-art/native-image.ts
-function Da(e, t, n, r) {
+function Oa(e, t, n, r) {
if (!(e > 0 && t > 0 && n > 0 && r > 0)) return 0;
let i = e / n, a = t / r;
return i > 1.001 || a > 1.001 || Math.abs(i - a) > Math.max(i, a) * .01 ? 0 : i;
}
-function Oa(e, t, n, r, i = 1) {
+function ka(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -4019,33 +4025,33 @@ function Oa(e, t, n, r, i = 1) {
}
//#endregion
//#region src/card-art/representatives.ts
-var ka = /* @__PURE__ */ new Map();
-function Aa(e) {
+var Aa = /* @__PURE__ */ new Map();
+function ja(e) {
(e || []).forEach((e) => {
- e.rep && e.has_avatar && ka.set(e.k, e.rep);
+ e.rep && e.has_avatar && Aa.set(e.k, e.rep);
});
}
-function ja(e) {
- return ka.get(e);
+function Ma(e) {
+ return Aa.get(e);
}
//#endregion
//#region src/card-art/markup.ts
-var Ma = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, Na = (e, t = !1) => Ma(`/cover?code=${encodeURIComponent(e.code || "")}${t ? "&thumb=1" : ""}`, e.cover_version), Pa = (e, t, n) => Ma(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), Fa = (e) => e && typeof e == "object" ? e : null;
-function Ia(e) {
+var Na = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, Pa = (e, t = !1) => Na(`/cover?code=${encodeURIComponent(e.code || "")}${t ? "&thumb=1" : ""}`, e.cover_version), Fa = (e, t, n) => Na(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), Ia = (e) => e && typeof e == "object" ? e : null;
+function La(e) {
return e && e.is_jav ? "女优" : "艺人";
}
-function La({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !1 } = {}) {
- let h = !!(t && n), g = h ? Ma(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", _ = i ? `/avatar?id=${i}` : "", v = !!o, y = v ? Pa(o, c, s) : g || _ || (a ? `/link-mark?id=${a}` : "");
+function Ra({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !1 } = {}) {
+ let h = !!(t && n), g = h ? Na(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", _ = i ? `/avatar?id=${i}` : "", v = !!o, y = v ? Fa(o, c, s) : g || _ || (a ? `/link-mark?id=${a}` : "");
if (!y) return "";
- let ee = v ? [g, _].filter(Boolean) : h && _ ? [_] : [], te = h && !v, b = te ? Ha(p) : "", ne = d || Va(p);
- return `<img src="${y}" alt="${l}"${u ? " loading=\"lazy\"" : ""} decoding="async"${te ? ne : ""} ${b}${wa({
+ let ee = v ? [g, _].filter(Boolean) : h && _ ? [_] : [], te = h && !v, b = te ? Ua(p) : "", ne = d || Ha(p);
+ return `<img src="${y}" alt="${l}"${u ? " loading=\"lazy\"" : ""} decoding="async"${te ? ne : ""} ${b}${Ta({
dropStyle: (f || !!b || !!ne) && te,
fallbacks: ee
})}>`;
}
-function Ra(e, n, r, i = "performer", a = null, o = "", s = "icon", c = void 0, l = !1) {
+function za(e, n, r, i = "performer", a = null, o = "", s = "icon", c = void 0, l = !1) {
let u = c === void 0 ? n && n.avatar_focus || null : c;
- return `<span class="ini">${t((e || "?").slice(0, 1))}</span>` + La({
+ return `<span class="ini">${t((e || "?").slice(0, 1))}</span>` + Ra({
kind: i,
id: n && n.id,
hasImage: !!(n && n.has_image),
@@ -4059,19 +4065,19 @@ function Ra(e, n, r, i = "performer", a = null, o = "", s = "icon", c = void 0,
thumb: l
});
}
-function za(e, t, n) {
- return Ra(e, t, n ? ja(e) : null, n || "performer");
+function Ba(e, t, n) {
+ return za(e, t, n ? Ma(e) : null, n || "performer");
}
-function Ba(e) {
- let t = Fa(e);
+function Va(e) {
+ let t = Ia(e);
return t && t.axis === "x" ? `${t.pct}% 50%` : t && t.axis === "y" ? `50% ${t.pct}%` : "";
}
-function Va(e) {
- let t = Ba(e);
+function Ha(e) {
+ let t = Va(e);
return t ? ` style="object-position:${t}"` : "";
}
-function Ha(e) {
- let t = Fa(e)?.box;
+function Ua(e) {
+ let t = Ia(e)?.box;
return t ? ` data-facebox="${[
t.cx,
t.cy,
@@ -4080,8 +4086,8 @@ function Ha(e) {
t.imgH
].map(Number).join(" ")}"` : "";
}
-function Ua(e, t, n = !1) {
- let r = Na(e, !0), i = e.cover_frame || {}, a = [i.cx == null ? "" : ` data-cx="${i.cx}"`, i.cy == null ? "" : ` data-cy="${Math.min(.6, Math.max(.05, i.cy))}"`].join(""), o = e.poster_box, s = o ? ` data-posterbox="${[
+function Wa(e, t, n = !1) {
+ let r = Pa(e, !0), i = e.cover_frame || {}, a = [i.cx == null ? "" : ` data-cx="${i.cx}"`, i.cy == null ? "" : ` data-cy="${Math.min(.6, Math.max(.05, i.cy))}"`].join(""), o = e.poster_box, s = o ? ` data-posterbox="${[
o.x0,
(o.px || [])[0],
(o.px || [])[1],
@@ -4092,39 +4098,39 @@ function Ua(e, t, n = !1) {
return `<img class="poster cover ${t === "small" ? "whole" : "front"}" src="${r}"
alt="" loading="${n ? "eager" : "lazy"}"${a}${s} data-drop="self">`;
}
-var Wa = {
+var Ga = {
kind: "",
html: ""
};
-function Ga(e, n, r, i) {
+function Ka(e, n, r, i) {
let a = ie(e, i);
- if (!a) return Wa;
- let o = e.has_cover && e.code ? Na(e, !0) : "", s = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", c = Ua(e, n, r), l = (c.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), u = a === "cover" ? c : `<img class="poster" src="${s}" alt="" loading="${r ? "eager" : "lazy"}"${l}>`;
+ if (!a) return Ga;
+ let o = e.has_cover && e.code ? Pa(e, !0) : "", s = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", c = Wa(e, n, r), l = (c.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), u = a === "cover" ? c : `<img class="poster" src="${s}" alt="" loading="${r ? "eager" : "lazy"}"${l}>`;
return {
kind: a === "cover" ? "cover" : "thumb",
html: u.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${t(o)}" data-jav-thumb="${t(s)}" data-jav-image-layout="${n}" `)
};
}
-function Ka(e, n, r, i) {
- return e.is_jav ? Ga(e, n, r, i) : e.follow_thumb_url ? {
+function qa(e, n, r, i) {
+ return e.is_jav ? Ka(e, n, r, i) : e.follow_thumb_url ? {
kind: "thumb",
html: `<img class="poster" src="${t(e.follow_thumb_url)}" alt="" loading="${r ? "eager" : "lazy"}" referrerpolicy="no-referrer">`
- } : qa(e, n, r, i);
+ } : Ja(e, n, r, i);
}
-function qa(e, t, n, r) {
- return e.is_jav ? Ga(e, t, n, r) : !e.has_thumb && !e.has_local_poster ? Wa : {
+function Ja(e, t, n, r) {
+ return e.is_jav ? Ka(e, t, n, r) : !e.has_thumb && !e.has_local_poster ? Ga : {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function Ja(e, t) {
- return qa(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
-}
function Ya(e, t) {
+ return Ja(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
+}
+function Xa(e, t) {
let n = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "";
- return e.is_jav && ie(e, t) === "cover" ? Na(e) : n;
+ return e.is_jav && ie(e, t) === "cover" ? Pa(e) : n;
}
-function Xa(e) {
+function Za(e) {
let t = e.performers || [], n = e.performer_entities || [], r = t[0] || "", i = e.is_jav && r ? "" : e.creator || "";
return {
kind: i ? "creator" : r ? "performer" : "",
@@ -4135,18 +4141,18 @@ function Xa(e) {
total: e.performer_total || t.length
};
}
-function Za(e) {
- let { kind: t, name: n, coStarred: r, performers: i, refs: a } = Xa(e);
- return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${Ra(e, a[t], ja(e))}</span>`).join("")}</div>` : `<span class="mav">${Ra(n, t === "performer" ? a[0] : e.creator_entity, t ? ja(n) : null, t || "performer")}</span>`;
+function Qa(e) {
+ let { kind: t, name: n, coStarred: r, performers: i, refs: a } = Za(e);
+ return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${za(e, a[t], Ma(e))}</span>`).join("")}</div>` : `<span class="mav">${za(n, t === "performer" ? a[0] : e.creator_entity, t ? Ma(n) : null, t || "performer")}</span>`;
}
-function Qa(e, t) {
+function $a(e, t) {
let n = (e.performers || [])[0];
return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
//#endregion
//#region src/card-art/framing.ts
-var $a = () => window.devicePixelRatio || 1;
-function eo(e) {
+var eo = () => window.devicePixelRatio || 1;
+function to(e) {
let t = e.parentElement;
if (!t || ([
"position",
@@ -4165,17 +4171,17 @@ function eo(e) {
delete e.dataset.faceFramed;
let n = new ResizeObserver(() => {
let r = t.getBoundingClientRect();
- r.width > 0 && r.height > 0 && (n.disconnect(), eo(e));
+ r.width > 0 && r.height > 0 && (n.disconnect(), to(e));
});
n.observe(t);
return;
}
- let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Da(e.naturalWidth, e.naturalHeight, o, s);
+ let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Oa(e.naturalWidth, e.naturalHeight, o, s);
if (!c) {
e.style.objectPosition = "50% 50%";
return;
}
- let l = ba({
+ let l = xa({
cx: r,
cy: i,
faceW: a * c,
@@ -4184,27 +4190,27 @@ function eo(e) {
}, {
w: n.width,
h: n.height
- }, $a());
+ }, eo());
if (!l) return;
let u = e.style;
u.position = "absolute", u.right = "auto", u.bottom = "auto", u.left = `${l.left}%`, u.top = `${l.top}%`, u.width = `${l.width}%`, u.height = `${l.height}%`, u.maxWidth = "none", u.maxHeight = "none";
}
-function to(e) {
+function no(e) {
let t = e.naturalWidth / e.naturalHeight;
if (!t) return;
let n = new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "";
e.dataset.frame = /^FC2(?:-PPV)?-/i.test(n) || t >= 1.65 ? "still" : t > 1.2 ? "sleeve" : "front";
- let r = ao(e), i = (t, n, r) => {
+ let r = oo(e), i = (t, n, r) => {
if (n == null || !(r > 0 && r < 1)) return;
let i = Math.min(1, Math.max(0, (n - r / 2) / (1 - r)));
e.style.setProperty(t, `${Math.round(i * 100)}%`);
};
- i("--cover-x", oo(e, "cx"), r / t), i("--cover-y", oo(e, "cy"), t / r), no(e, r), (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(t / r - 1) > .02 && ro(e);
+ i("--cover-x", so(e, "cx"), r / t), i("--cover-y", so(e, "cy"), t / r), ro(e, r), (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(t / r - 1) > .02 && io(e);
}
-function no(e, t) {
+function ro(e, t) {
if (e.dataset.frame === "front") return;
let [n = NaN, r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.posterbox || "").split(" ").map(Number);
- if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - ae * i), a = 0, o = r, s = i), !Da(e.naturalWidth, e.naturalHeight, r, i)) return;
+ if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - ae * i), a = 0, o = r, s = i), !Oa(e.naturalWidth, e.naturalHeight, r, i)) return;
let c = oe({
x0: n,
y0: a,
@@ -4212,33 +4218,33 @@ function no(e, t) {
y1: s,
px: [r, i]
}, t);
- c && (e.classList.add("panel"), e.style.setProperty("--panel-clip", `${c.clip.top}% ${c.clip.right}% ${c.clip.bottom}% ${c.clip.left}%`), e.style.setProperty("--panel-left", `${c.left}%`), e.style.setProperty("--panel-top", `${c.top}%`), e.style.setProperty("--panel-height", `${c.height}%`), ro(e));
+ c && (e.classList.add("panel"), e.style.setProperty("--panel-clip", `${c.clip.top}% ${c.clip.right}% ${c.clip.bottom}% ${c.clip.left}%`), e.style.setProperty("--panel-left", `${c.left}%`), e.style.setProperty("--panel-top", `${c.top}%`), e.style.setProperty("--panel-height", `${c.height}%`), io(e));
}
-function ro(e) {
+function io(e) {
e.closest(".pic,[data-media-pic]")?.style.setProperty("--cover-blur", `url("${e.dataset.thumbSrc || e.currentSrc || e.src}")`);
}
-function io(e) {
+function ao(e) {
if (!/[?&]thumb=1(&|$)/.test(e.src) || !e.naturalWidth) return;
let { width: t, height: n } = e.getBoundingClientRect();
- (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(t / e.naturalWidth, n / e.naturalHeight) * $a() > 1.01 && (e.dataset.thumbSrc = e.src, e.src = e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
+ (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(t / e.naturalWidth, n / e.naturalHeight) * eo() > 1.01 && (e.dataset.thumbSrc = e.src, e.src = e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
}
-function ao(e) {
+function oo(e) {
let t = getComputedStyle(e).getPropertyValue("--card-ratio").trim().split("/").map(Number), n = t.length === 2 ? Number(t[0]) / Number(t[1]) : Number(t[0]);
return Number.isFinite(n) && n > 0 ? n : 16 / 9;
}
-function oo(e, t) {
+function so(e, t) {
let n = parseFloat(e.dataset[t] ?? "");
return Number.isFinite(n) ? n : null;
}
-var so = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", co = /* @__PURE__ */ new WeakMap();
-function lo(e) {
- let t = e.matches(so) ? [e] : e.querySelectorAll(so);
- for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), co.set(e.parentElement, performance.now()));
-}
+var co = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", lo = /* @__PURE__ */ new WeakMap();
function uo(e) {
+ let t = e.matches(co) ? [e] : e.querySelectorAll(co);
+ for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), lo.set(e.parentElement, performance.now()));
+}
+function fo(e) {
let t = e.parentElement;
if (!t?.classList.contains("imgwait")) return;
- if (performance.now() - (co.get(t) ?? NaN) < i) {
+ if (performance.now() - (lo.get(t) ?? NaN) < i) {
t.classList.remove("imgwait");
return;
}
@@ -4248,80 +4254,80 @@ function uo(e) {
};
t.addEventListener("transitionend", r), n = setTimeout(r, 1e3);
}
-function fo(e) {
+function po(e) {
let t = "img.cover,img[data-facebox]", n = e.matches(t) ? [e] : e.querySelectorAll(t);
for (let e of n) {
let t = e;
- t.complete && t.naturalWidth && (t.classList.contains("cover") ? to(t) : (po(t), eo(t)));
+ t.complete && t.naturalWidth && (t.classList.contains("cover") ? no(t) : (mo(t), to(t)));
}
}
-function po(e) {
+function mo(e) {
let t = e.closest("[data-fit-native]");
if (!t || !e.naturalWidth) return;
- let { small: n, width: r, height: i } = Oa(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, $a());
+ let { small: n, width: r, height: i } = ka(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, eo());
t.dataset.nativeSmall = String(n), t.style.setProperty("--markw", n ? r + "px" : "100%"), t.style.setProperty("--markh", n ? i + "px" : "100%");
let a = (e.currentSrc || e.src).replace(/"/g, "%22");
t.style.setProperty("--markbg", n ? `url("${a}")` : "none");
}
-function mo(e) {
+function ho(e) {
(e || document).querySelectorAll("[data-fit-native] img").forEach((e) => {
- po(e), e.dataset.facebox && eo(e);
+ mo(e), e.dataset.facebox && to(e);
});
}
-function ho(e, t) {
- for (let n of ce(e, t)) to(n), io(n);
+function go(e, t) {
+ for (let n of ce(e, t)) no(n), ao(n);
}
-var go = !1;
-function _o() {
- go || (go = !0, document.addEventListener("load", (e) => {
+var _o = !1;
+function vo() {
+ _o || (_o = !0, document.addEventListener("load", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && (uo(t), po(t), t.classList.contains("cover") ? (to(t), io(t)) : t.dataset.facebox && eo(t));
+ t instanceof HTMLImageElement && (fo(t), mo(t), t.classList.contains("cover") ? (no(t), ao(t)) : t.dataset.facebox && to(t));
}, !0), new MutationObserver((e) => {
- for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (lo(e), fo(e));
+ for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (uo(e), po(e));
}).observe(document.body, {
childList: !0,
subtree: !0
}), document.addEventListener("error", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && !t.dataset.fallbacks && uo(t);
+ t instanceof HTMLImageElement && !t.dataset.fallbacks && fo(t);
}, !0));
}
//#endregion
//#region src/card-art/hover.ts
-var vo = ".card,[data-media-card],[data-mix-card]", W = {
+var yo = ".card,[data-media-card],[data-mix-card]", W = {
selecting: () => !1,
censored: () => !1,
delaySeconds: () => 0
};
-function yo(e) {
+function bo(e) {
W = e;
}
-var bo = () => !!window.__scrolling;
-function xo(e = document, t = null) {
- !e || !e.querySelectorAll || (e.querySelectorAll(vo).forEach((e) => {
+var xo = () => !!window.__scrolling;
+function So(e = document, t = null) {
+ !e || !e.querySelectorAll || (e.querySelectorAll(yo).forEach((e) => {
e !== t && e._stopHover && e._stopHover();
}), e.querySelectorAll("video.hv").forEach((e) => {
- e.closest(vo) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ e.closest(yo) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
}), e.querySelectorAll("img.hvframes").forEach((e) => {
- e.closest(vo) !== t && (e.removeAttribute("src"), e.remove());
+ e.closest(yo) !== t && (e.removeAttribute("src"), e.remove());
}));
}
-function So(e) {
- e._stopHover?.(), xo(e);
+function Co(e) {
+ e._stopHover?.(), So(e);
}
-function Co(e, t, n) {
+function wo(e, t, n) {
n ? e.dataset[t] = "" : delete e.dataset[t];
}
-function wo(e, t) {
+function To(e, t) {
let n = e, r = e.querySelector("[data-media-pic]");
if (!r) return;
e.dataset.hoverMode = t.location === "local" ? "video" : "frames";
let i, a = () => {
- clearTimeout(i), W.delaySeconds() && (Co(e, "previewing", !0), i = setTimeout(() => {
- W.delaySeconds() && Co(e, "longhover", !0);
+ clearTimeout(i), W.delaySeconds() && (wo(e, "previewing", !0), i = setTimeout(() => {
+ W.delaySeconds() && wo(e, "longhover", !0);
}, W.delaySeconds() * 1e3));
}, o = () => {
- clearTimeout(i), Co(e, "previewing", !1), Co(e, "longhover", !1);
+ clearTimeout(i), wo(e, "previewing", !1), wo(e, "longhover", !1);
};
if (t.location !== "local") {
if (!t.has_thumb) return;
@@ -4345,9 +4351,9 @@ function wo(e, t) {
}
let s, c = null;
e.addEventListener("mouseenter", () => {
- W.selecting() || W.censored() || bo() || (s = setTimeout(() => {
- if (bo() || W.censored()) return;
- xo(document, e);
+ W.selecting() || W.censored() || xo() || (s = setTimeout(() => {
+ if (xo() || W.censored()) return;
+ So(document, e);
let n = document.createElement("video");
c = n, n.className = "hv", n.muted = !0, n.playsInline = !0, n.loop = !0, n.preload = "metadata", n.src = "/stream?id=" + t.id;
let i = [
@@ -4377,7 +4383,7 @@ function wo(e, t) {
}
//#endregion
//#region src/entity-skeleton.ts
-function To(e, t, n) {
+function Eo(e, t, n) {
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true">
<section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>
@@ -4391,7 +4397,7 @@ function To(e, t, n) {
}
//#endregion
//#region src/follow-sort.ts
-var Eo = [
+var Do = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -4399,7 +4405,7 @@ var Eo = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], Do = "checked", Oo = {
+], Oo = "checked", ko = {
checked: "desc",
added: "desc",
name: "asc",
@@ -4407,38 +4413,38 @@ var Eo = [
source: "asc",
provider: "asc",
status: "asc"
-}, ko = (e) => Eo.some(([t]) => t === e);
-function Ao(e, t) {
- let n = ko(e) ? e : Do;
+}, Ao = (e) => Do.some(([t]) => t === e);
+function jo(e, t) {
+ let n = Ao(e) ? e : Oo;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : Oo[n]
+ dir: t === "asc" || t === "desc" ? t : ko[n]
};
}
//#endregion
//#region src/island-skeleton.ts
-var jo = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", Mo = {
+var Mo = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", No = {
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
-}, No = {
- medium: Mo.medium,
- small: "size-8 rounded-lg p-0 text-body-medium"
}, Po = {
+ medium: No.medium,
+ small: "size-8 rounded-lg p-0 text-body-medium"
+}, Fo = {
medium: "size-5 shrink-0",
small: "size-[18px] shrink-0"
-}, Fo = {
+}, Io = {
medium: "inline-flex items-center justify-center px-1 shrink-0",
small: "inline-flex items-center justify-center px-0.5 shrink-0"
-}, Io = {
+}, Lo = {
primary: "bg-button-primary text-text-white shadow-xs",
secondary: "bg-background-primary-default text-text-primary border border-border-button-default shadow-xs",
ghost: "bg-button-ghost-background text-button-ghost-foreground"
-}, Lo = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
+}, Ro = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
function G({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
- let o = r ? Mo[t] : No[t], s = n ? Lo(n, Po[t]) : "", c = r ? `<span class="${Fo[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
- return `<button type="button" class="${jo} ${o} ${Io[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
+ let o = r ? No[t] : Po[t], s = n ? Ro(n, Fo[t]) : "", c = r ? `<span class="${Io[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
+ return `<button type="button" class="${Mo} ${o} ${Lo[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
}
-var Ro = {
+var zo = {
md: {
box: "gap-1.5 px-2.5 py-2 text-body-medium",
value: "gap-[5px]",
@@ -4450,32 +4456,32 @@ var Ro = {
chevron: "size-3.5"
}
};
-function zo(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
- let i = Ro[t];
- return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${i.box}"><span class="flex min-w-0 items-center truncate ${i.value}">${e}</span>${Lo("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
+function Bo(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
+ let i = zo[t];
+ return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${i.box}"><span class="flex min-w-0 items-center truncate ${i.value}">${e}</span>${Ro("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
}
-var Bo = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", Vo = "flex min-w-0 flex-col gap-2", Ho = "text-body-regular text-text-secondary", Uo = "text-display-4-medium tabular-nums text-text-primary", Wo = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
-function Go(e) {
- return `<div data-collection-summary="" class="${Bo}"><div class="${Vo}"><span class="${Ho}">${e}</span><strong class="${Uo}"><span data-skeleton="count" aria-hidden="true" class="${Wo}"></span></strong></div></div>`;
+var Vo = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", Ho = "flex min-w-0 flex-col gap-2", Uo = "text-body-regular text-text-secondary", Wo = "text-display-4-medium tabular-nums text-text-primary", Go = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
+function Ko(e) {
+ return `<div data-collection-summary="" class="${Vo}"><div class="${Ho}"><span class="${Uo}">${e}</span><strong class="${Wo}"><span data-skeleton="count" aria-hidden="true" class="${Go}"></span></strong></div></div>`;
}
//#endregion
//#region src/configuration-copy.ts
-var Ko = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", qo = "仅填域名;留空使用默认地址", Jo = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${G({
+var qo = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Jo = "仅填域名;留空使用默认地址", Yo = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${G({
label: "保存配置",
attrs: "disabled data-skeleton-action"
-})}</div></div></section>`, Yo = (e, t = "") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton configuration-skeleton-toggle"></span></div>`, Xo = (e) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${e} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">${qo}</p></div>`;
-function Zo() {
+})}</div></div></section>`, Xo = (e, t = "") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton configuration-skeleton-toggle"></span></div>`, Zo = (e) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${e} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">${Jo}</p></div>`;
+function Qo() {
return `<div class="peach-react"><div class="configpage">${`<div class="board-local-nav" data-section-nav data-section-items>${[
"通用",
"媒体",
"网络与访问",
"更新与维护"
- ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${Jo("开机自启", `<div class="flex flex-col">${Yo("开机后启动 Peach")}${Yo("静默启动", "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。")}${Yo("在桌面创建快捷方式", "双击图标打开 Peach 网页;卸载时一并移除。")}</div>`)}${Jo("外部入口", `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">${Ko}</p>${Xo("JavDB")}${Xo("MISSAV")}</div>`)}</div></div></div>`;
+ ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${Yo("开机自启", `<div class="flex flex-col">${Xo("开机后启动 Peach")}${Xo("静默启动", "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。")}${Xo("在桌面创建快捷方式", "双击图标打开 Peach 网页;卸载时一并移除。")}</div>`)}${Yo("外部入口", `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">${qo}</p>${Zo("JavDB")}${Zo("MISSAV")}</div>`)}</div></div></div>`;
}
//#endregion
//#region src/management-skeletons.ts
-var K = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", q = (e = "60%") => `<span class="${K} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, Qo = "disabled data-skeleton-action", $o = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function es() {
+var K = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", q = (e = "60%") => `<span class="${K} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, $o = "disabled data-skeleton-action", es = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function ts() {
let e = [
"馆藏视频",
"看过",
@@ -4486,7 +4492,7 @@ function es() {
<span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${K} size-7 max-sm:size-6"></i>${e}</span>
<b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${q("4em")}</b>
<small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${q("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${$o}" data-stats-chart>
+ </div>`).join(""), t = (e) => `<section class="${es}" data-stats-chart>
<header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${q("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
@@ -4503,7 +4509,7 @@ function es() {
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${$o}"><h3 class="text-title-2-medium">${e}</h3><div class="${K} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${es}"><h3 class="text-title-2-medium">${e}</h3><div class="${K} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -4516,7 +4522,7 @@ function es() {
</section>
</div></div>`;
}
-function ts() {
+function ns() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
<span class="${K} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
<span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${q("70%")}</span>
@@ -4533,18 +4539,18 @@ function ts() {
variant: "secondary",
size: "small",
label: e,
- attrs: Qo
+ attrs: $o
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
<div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${q("4em")}</strong></div><p class="text-body-regular text-text-secondary">${q("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${Qo} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${$o} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function ns() {
+function rs() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
<div class="flex min-w-0 gap-4"><span class="${K} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
<div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${q("80%")}</h3><p class="text-body-2-regular">${q("60%")}</p></div>
@@ -4553,31 +4559,31 @@ function ns() {
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: Qo
+ attrs: $o
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- ${Go("待升级")}
+ ${Ko("待升级")}
<ul class="card-grid-cover gap-5">${e.repeat(6)}</ul>
</div></div>`;
}
//#endregion
//#region src/board-skeleton.ts
-var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, rs = () => `${J("80%")}${J("48%")}`, Y = (e, t) => e.repeat(t), is = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${J("45%")}</b><small class="board-stat-footer">${J("60%")}</small></div>`).join("")}</div>`, as = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, os = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Y(rs(), 3)}</div></section>`, X = "disabled data-skeleton-action", Z = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Q = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, ss = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", cs = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, is = () => `${J("80%")}${J("48%")}`, Y = (e, t) => e.repeat(t), as = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${J("45%")}</b><small class="board-stat-footer">${J("60%")}</small></div>`).join("")}</div>`, os = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, ss = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Y(is(), 3)}</div></section>`, X = "disabled data-skeleton-action", Z = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Q = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, cs = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", ls = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${ss}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Z("3em")}</b></div>`).join("")}</div>`, ls = () => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${[
+].map((e) => `<div class="${cs}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Z("3em")}</b></div>`).join("")}</div>`, us = () => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${[
"关注列表",
"添加关注",
"JAV 订阅源",
"想要",
"来源和凭证"
-].map((e, t) => `<span class="whitespace-nowrap" aria-selected="${t === 0}">${e}</span>`).join("")}</div>`, us = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, ds = ({ table: e, sort: t, dir: n }) => {
- let r = Eo.find(([e]) => e === t)[1];
+].map((e, t) => `<span class="whitespace-nowrap" aria-selected="${t === 0}">${e}</span>`).join("")}</div>`, ds = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, fs = ({ table: e, sort: t, dir: n }) => {
+ let r = Do.find(([e]) => e === t)[1];
return `<div class="flex flex-wrap items-center gap-2 follow-skeleton-toolbar"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${Z("132px")}</span>${G({
glyph: "refresh-cw",
label: "检查全部",
@@ -4591,7 +4597,7 @@ var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, rs =
variant: "ghost",
glyph: "table",
attrs: `aria-pressed="${e}"`
- })}</span>${zo(r)}${G({
+ })}</span>${Bo(r)}${G({
variant: "secondary",
glyph: n === "asc" ? "arrow-up" : "arrow-down"
})}${e ? "" : G({
@@ -4601,7 +4607,7 @@ var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, rs =
compact: !0,
attrs: X
})}</div>`;
-}, fs = () => `<span class="flex shrink-0 items-center gap-1">${G({
+}, ps = () => `<span class="flex shrink-0 items-center gap-1">${G({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
@@ -4611,7 +4617,7 @@ var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, rs =
size: "small",
glyph: "trash",
attrs: X
-})}</span>`, ps = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 follow-skeleton-source">${us()}<span class="flex min-w-0 grow flex-col gap-0.5"><span class="text-body-medium">${Z("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Q(14, 14)}</span>${Q(48, 24)}<span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary">${Z("113px")}</span>${fs()}</div>`, ms = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${Q(32, 32, !0)}<b class="min-w-0 grow text-body-medium break-words text-text-primary">${Z("92px")}</b>${G({
+})}</span>`, ms = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 follow-skeleton-source">${ds()}<span class="flex min-w-0 grow flex-col gap-0.5"><span class="text-body-medium">${Z("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Q(14, 14)}</span>${Q(48, 24)}<span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary">${Z("113px")}</span>${ps()}</div>`, hs = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${Q(32, 32, !0)}<b class="min-w-0 grow text-body-medium break-words text-text-primary">${Z("92px")}</b>${G({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
@@ -4628,13 +4634,13 @@ var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, rs =
glyph: "chevron-up",
label: "收起",
attrs: X
-})}</div><div data-source-divider>${Y(ps(), e)}</div></section>`, hs = () => {
+})}</div><div data-source-divider>${Y(ms(), e)}</div></section>`, gs = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, gs = [
+}, _s = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -4642,58 +4648,58 @@ var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, rs =
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], _s = {
+], vs = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, vs = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", ys = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${gs.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${_s[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${vs}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Y(`<tr>${[
- us(),
+}, ys = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", bs = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${_s.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${vs[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${ys}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Y(`<tr>${[
+ ds(),
`<span class="flex min-w-0 items-center gap-2">${Q(32, 32, !0)}${Z("5em")}</span>`,
Z("10em"),
`<span class="flex items-center gap-1.5">${Q(14, 14)}${Z("4em")}</span>`,
Q(48, 24),
Z("113px"),
- fs()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, bs = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${Z("111px")}</span>${zo(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Q(204, 32)}</div>`, xs = (e) => {
- let t = e.followLayout === "table", n = Ao(e.followSort, e.followDir), r = e.followPageSize || hs(), i = t ? ys(r, n) : `${us("全选本页")}<div class="flex flex-col gap-3">${ms(3)}${ms(4)}${ms(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${cs()}<div class="flex flex-col gap-6">${ls()}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 follow-skeleton-surface" data-layout="${t ? "table" : "default"}">${ds({
+ ps()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, xs = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${Z("111px")}</span>${Bo(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Q(204, 32)}</div>`, Ss = (e) => {
+ let t = e.followLayout === "table", n = jo(e.followSort, e.followDir), r = e.followPageSize || gs(), i = t ? bs(r, n) : `${ds("全选本页")}<div class="flex flex-col gap-3">${hs(3)}${hs(4)}${hs(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${ls()}<div class="flex flex-col gap-6">${us()}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 follow-skeleton-surface" data-layout="${t ? "table" : "default"}">${fs({
table: t,
...n
- })}${i}${bs(t, r)}</div></div></div></div></div>`;
+ })}${i}${xs(t, r)}</div></div></div></div></div>`;
};
-function Ss() {
- 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">${J("85%")}${J("65%")}${Y(rs(), 4)}</div></aside></div>`;
-}
function Cs() {
- return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情">${Ss()}</div>`;
+ 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">${J("85%")}${J("65%")}${Y(is(), 4)}</div></aside></div>`;
+}
+function ws() {
+ return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情">${Cs()}</div>`;
}
-function ws(e, t = {}) {
+function Ts(e, t = {}) {
let n = "";
- if (e === "/stats") n = es();
- else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${as(["浏览器记录", "Peach 内部"], "insightswitch")}${J("24%")}</header><div class="tastestate"></div>${is([
+ if (e === "/stats") n = ts();
+ else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${os(["浏览器记录", "Peach 内部"], "insightswitch")}${J("24%")}</header><div class="tastestate"></div>${as([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Y(rs(), 4)}</div></section>${os("口味分析")}<div class="board-activity-charts">${os("浏览活动")}${os("时间分布")}</div>${os("标签")}</div>`;
- else if (e === "/follow-manage") n = xs(t);
- else if (e === "/configuration") n = Zo();
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Y(is(), 4)}</div></section>${ss("口味分析")}<div class="board-activity-charts">${ss("浏览活动")}${ss("时间分布")}</div>${ss("标签")}</div>`;
+ else if (e === "/follow-manage") n = Ss(t);
+ else if (e === "/configuration") n = Qo();
else if (e === "/activity") n = `<div class="activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${J("35%")}${rs()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = ts();
- else if (e === "/quality-goals") n = ns();
- else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${J("200px")}</div></header><div class="playlistcards">${Y(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${rs()}</div></div></article>`, 6)}</div></section>`;
+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${J("35%")}${is()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") n = ns();
+ else if (e === "/quality-goals") n = rs();
+ else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${J("200px")}</div></header><div class="playlistcards">${Y(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${is()}</div></div></article>`, 6)}</div></section>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
//#endregion
//#region src/catalog-onboarding.ts
-var Ts = [
+var Es = [
"loc",
"creator",
"performer",
@@ -4711,9 +4717,9 @@ var Ts = [
"jav",
"thumb"
];
-async function Es(e, t) {
+async function Ds(e, t) {
let n = new URLSearchParams();
- for (let t of Ts) e[t] && n.set(t, e[t]);
+ for (let t of Es) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -4724,7 +4730,7 @@ async function Es(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function Ds({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function Os({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let o = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", s = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
if (t || n) return a("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
@@ -4745,56 +4751,56 @@ function Ds({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
}
//#endregion
//#region src/catalog-filter-skeleton.ts
-var Os = 64, ks = (e) => e.replace(/[&<>"]/g, (e) => ({
+var ks = 64, As = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), As = (e) => e.repeat(Os);
-function js(e, t) {
- let n = e.map((e) => `<a href="${ks(e.href)}" data-catalog-view="${ks(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${ks(e.label)}</a>`).join("");
- return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + As("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + As("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${n}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(Os) + "</span></div></div></div><div data-filter-row=\"bottom\" aria-busy=\"true\" class=\"flex min-w-0 items-center gap-3 px-3 py-2 min-h-12\"><span data-catalog-readout=\"\"><span data-skeleton=\"count\" aria-hidden=\"true\" class=\"relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen\"></span></span></div></div></div></div>";
+})[e]), js = (e) => e.repeat(ks);
+function Ms(e, t) {
+ let n = e.map((e) => `<a href="${As(e.href)}" data-catalog-view="${As(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${As(e.label)}</a>`).join("");
+ return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + js("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + js("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${n}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(ks) + "</span></div></div></div><div data-filter-row=\"bottom\" aria-busy=\"true\" class=\"flex min-w-0 items-center gap-3 px-3 py-2 min-h-12\"><span data-catalog-readout=\"\"><span data-skeleton=\"count\" aria-hidden=\"true\" class=\"relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen\"></span></span></div></div></div></div>";
}
//#endregion
//#region src/catalog-bars.ts
-var Ms = 3e4, Ns = 0, Ps = (e, t = Ns) => [
+var Ns = 3e4, Ps = 0, Fs = (e, t = Ps) => [
"facets",
e,
t
-], Fs = (e, t, n = Ns) => [
+], Is = (e, t, n = Ps) => [
"tops",
e,
t,
n
-], Is = (e, t = Ns) => [
+], Ls = (e, t = Ps) => [
"tops",
e,
t
];
-async function Ls(t) {
+async function Rs(t) {
let n = String(t), r = await e(`/api/tops?${n}`), i = new URLSearchParams(n);
return r.performers.length || r.studios.length || !i.has("state") ? r : (i.delete("state"), await e(`/api/tops?${i}`));
}
-function Rs(t, n) {
+function zs(t, n) {
return Promise.all([R.fetchQuery({
- queryKey: Ps(t),
+ queryKey: Fs(t),
queryFn: () => e(`/api/facets${t ? `?${t}` : ""}`),
- staleTime: Ms
+ staleTime: Ns
}), R.fetchQuery({
- queryKey: Fs(n, t),
- queryFn: () => Ls(n),
- staleTime: Ms
+ queryKey: Is(n, t),
+ queryFn: () => Rs(n),
+ staleTime: Ns
})]);
}
-function zs(e) {
+function Bs(e) {
return R.fetchQuery({
- queryKey: Is(e),
- queryFn: () => Ls(e),
- staleTime: Ms
+ queryKey: Ls(e),
+ queryFn: () => Rs(e),
+ staleTime: Ns
});
}
-function Bs() {
- Ns += 1;
+function Vs() {
+ Ps += 1;
let e = (e) => e.state.fetchStatus === "idle";
R.removeQueries({
queryKey: ["facets"],
@@ -4806,35 +4812,35 @@ function Bs() {
}
//#endregion
//#region src/management.ts
-var Vs = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Hs = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", $ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", Us = "type=\"button\" disabled data-skeleton-action", Ws = "disabled data-skeleton-action", Gs = "aria-disabled=\"true\"", Ks = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, qs = (e, t) => `<div data-geist-fieldset-content>
+var Hs = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Us = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", $ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", Ws = "type=\"button\" disabled data-skeleton-action", Gs = "disabled data-skeleton-action", Ks = "aria-disabled=\"true\"", qs = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, Js = (e, t) => `<div data-geist-fieldset-content>
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div>`;
-function Js() {
- return Ks(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
- ${qs("扫描与采集", Vs)}
- <footer data-geist-fieldset-footer><a href="/scraping" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Lo("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${G({
+function Ys() {
+ return qs(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
+ ${Js("扫描与采集", Hs)}
+ <footer data-geist-fieldset-footer><a href="/scraping" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Ro("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${G({
glyph: "database",
label: "扫描并补全资料",
- attrs: Ws
+ attrs: Gs
})}${G({
glyph: "chevron-down",
- attrs: `${Ws} aria-label="更多扫描与采集方式"`
+ attrs: `${Gs} aria-label="更多扫描与采集方式"`
})}</span></footer>
</section>`);
}
-function Ys() {
- return Ks(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${qs("媒体修复", Hs)}
- <footer data-geist-fieldset-footer>${zo($, {
+function Xs() {
+ return qs(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
+ ${Js("媒体修复", Us)}
+ <footer data-geist-fieldset-footer>${Bo($, {
className: "w-48",
- attrs: Gs
+ attrs: Ks
})}${G({
label: "开始修复",
- attrs: Ws
+ attrs: Gs
})}</footer>
</section>`);
}
-function Xs() {
+function Zs() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
@@ -4849,8 +4855,8 @@ function Xs() {
<span class="board-plain-stat-head"><span class="board-stat-tile">${n(t)}</span>${e}</span>
<strong>${$}</strong><span class="cleanupmeta">${$}</span></button>`).join("")}</div>
<div class="cleanupgrid">
- <div class="cleanupscraping">${Js()}</div>
- <div class="cleanupmediarepair">${Ys()}</div>
+ <div class="cleanupscraping">${Ys()}</div>
+ <div class="cleanupmediarepair">${Xs()}</div>
<section class="cleanupfieldset cleanuporganize" data-geist-fieldset data-cleanup-task aria-labelledby="cleanup-loading-organize">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-organize">整理</h3>
<p>按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
@@ -4861,7 +4867,7 @@ function Xs() {
<div class="organizepresets">${t}</div>
<p class="cleanupmeta">${$}</p>
</div></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${Us}>预览</button></footer>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${Ws}>预览</button></footer>
</section></div>
<section class="resourcesync" aria-labelledby="cleanup-loading-links">
<h2 id="cleanup-loading-links">链接管理</h2>
@@ -4873,19 +4879,19 @@ function Xs() {
"作品资料站"
].map((e) => `<div><span>${e}</span><b>${$}</b></div>`).join("")}</div>
<div class="linkhosts"><span>主要站点</span><b>${$}</b></div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Us}>${n("unlink")}<span>检查死链</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Ws}>${n("unlink")}<span>检查死链</span></button></div>
</div></section>
<section class="resourcesync" aria-labelledby="cleanup-loading-sync">
<h2 id="cleanup-loading-sync">资源同步</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
<p>按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Us}>${n("git-compare")}<span>检查文件</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Ws}>${n("git-compare")}<span>检查文件</span></button></div>
</div></section></div>`;
}
//#endregion
//#region src/junk-queue.ts
-var Zs = [
+var Qs = [
[
"",
"全部",
@@ -4921,96 +4927,96 @@ var Zs = [
"其它",
"hard-drive"
]
-], Qs = (e) => Zs.find(([t]) => t === e)?.[0] ?? "";
-function $s(e) {
+], $s = (e) => Qs.find(([t]) => t === e)?.[0] ?? "";
+function ec(e) {
let t = new URLSearchParams(e);
return {
- kind: Qs(t.get("type")),
+ kind: $s(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function ec(e = "", t = "pending") {
+function tc(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function tc(e) {
+function nc(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: ec("", "pending")
+ href: tc("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: ec("", "dismissed")
+ href: tc("", "dismissed")
};
}
-var nc = (e) => e === "dismissed" ? "已排除" : "待判断", rc = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function ic({ kind: e, view: n }) {
- let r = Zs.map(([r, i, a]) => `<a href="${ec(r, n)}" data-junk-kind-link="${r}"${r === e ? " aria-current=\"page\"" : ""}>${rc(a)}${t(i)}</a>`).join(""), i = tc(n);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Go(nc(n))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${r}<i data-junk-divider="" aria-hidden="true"></i><a href="${i.href}" data-junk-view-link="${i.view}"${n === "dismissed" ? " aria-current=\"page\"" : ""}>${rc(i.glyph)}${i.label}</a></nav></div></div></div>`;
+var rc = (e) => e === "dismissed" ? "已排除" : "待判断", ic = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function ac({ kind: e, view: n }) {
+ let r = Qs.map(([r, i, a]) => `<a href="${tc(r, n)}" data-junk-kind-link="${r}"${r === e ? " aria-current=\"page\"" : ""}>${ic(a)}${t(i)}</a>`).join(""), i = nc(n);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Ko(rc(n))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${r}<i data-junk-divider="" aria-hidden="true"></i><a href="${i.href}" data-junk-view-link="${i.view}"${n === "dismissed" ? " aria-current=\"page\"" : ""}>${ic(i.glyph)}${i.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/player/controls.ts
-function ac(e, t) {
+function oc(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
//#endregion
//#region src/player/playback.ts
-function oc(e) {
+function sc(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function sc(e, t) {
+function cc(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/islands.ts
-var cc = null;
-function lc(e, t, n, r) {
- cc ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), cc.then((e) => e.showToast(n, r));
+var lc = null;
+function uc(e, t, n, r) {
+ lc ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), lc.then((e) => e.showToast(n, r));
}
-var uc = null, dc = null;
-function fc(e) {
- return uc ??= import("/dist/peach-react.js").then((t) => (dc = t.configureStage(e), dc)), uc;
+var dc = null, fc = null;
+function pc(e) {
+ return dc ??= import("/dist/peach-react.js").then((t) => (fc = t.configureStage(e), fc)), dc;
}
-var pc = () => dc, mc = null, hc = null;
-function gc(e) {
- return mc ??= import("/dist/peach-react.js").then((t) => (hc = t.configureSettingsPanel(e), hc)), mc;
+var mc = () => fc, hc = null, gc = null;
+function _c(e) {
+ return hc ??= import("/dist/peach-react.js").then((t) => (gc = t.configureSettingsPanel(e), gc)), hc;
}
-var _c = () => hc, vc = null, yc = null;
-function bc(e) {
- return vc ??= import("/dist/peach-react.js").then((t) => (yc = t.configureImmerse(e), yc)), vc;
+var vc = () => gc, yc = null, bc = null;
+function xc(e) {
+ return yc ??= import("/dist/peach-react.js").then((t) => (bc = t.configureImmerse(e), bc)), yc;
}
-var xc = () => yc, Sc = null, Cc = null;
-function wc(e) {
- return Sc ??= import("/dist/peach-react.js").then((t) => (Cc = t.configureSidebar(e), Cc)), Sc;
+var Sc = () => bc, Cc = null, wc = null;
+function Tc(e) {
+ return Cc ??= import("/dist/peach-react.js").then((t) => (wc = t.configureSidebar(e), wc)), Cc;
}
-var Tc = () => Cc, Ec = null, Dc = null;
-function Oc(e) {
- return Ec ??= import("/dist/peach-react.js").then((t) => (Dc = t.configureManageHeader(e), Dc)), Ec;
+var Ec = () => wc, Dc = null, Oc = null;
+function kc(e) {
+ return Dc ??= import("/dist/peach-react.js").then((t) => (Oc = t.configureManageHeader(e), Oc)), Dc;
}
-var kc = () => Dc, Ac = null, jc = null;
-function Mc(e) {
- return Ac ??= import("/dist/peach-react.js").then((t) => (jc = t.configureBatchDock(e), jc)), Ac;
+var Ac = () => Oc, jc = null, Mc = null;
+function Nc(e) {
+ return jc ??= import("/dist/peach-react.js").then((t) => (Mc = t.configureBatchDock(e), Mc)), jc;
}
-var Nc = () => jc, Pc = null;
-function Fc(e) {
- return Pc ??= import("/dist/peach-react.js").then((t) => t.configureGlowPicker(e)), Pc;
+var Pc = () => Mc, Fc = null;
+function Ic(e) {
+ return Fc ??= import("/dist/peach-react.js").then((t) => t.configureGlowPicker(e)), Fc;
}
-var Ic = null;
+var Lc = null;
Ur(() => {
import("/dist/peach-react.js").catch(() => {});
});
-function Lc(e) {
- if (!Ic) {
+function Rc(e) {
+ if (!Lc) {
let t = import("/dist/peach-react.js").then((t) => (t.configureRouter(e), t));
- Kr(t.then((e) => e.prefetchManagedRoute)), Ic = t.then(() => void 0);
+ Kr(t.then((e) => e.prefetchManagedRoute)), Lc = t.then(() => void 0);
}
- return Ic;
+ return Lc;
}
//#endregion
-export { Se as ACCENTS, Ft as ACCENT_CHOICES, it as COVER_FRONT_RATIO, L as CancelledError, Ce as DEFAULT_ACCENT, Me as DEFAULT_HOME_GLOW, Ue as DEFAULT_SETTINGS, ue as DEFAULT_SIDEBAR_ORDER, _a as FACE_CEILING, ha as FACE_TARGET, He as FEED_COMPILATION_KEYS, Be as FOLLOW_INITIAL_DAYS, ve as GLASS_NATIVE_PRESET, _e as GLOW_SPOT_LABELS, De as GLOW_SWATCHES, Ee as GLOW_SWATCH_FAMILIES, ye as HOME_GLOW_CHOICES, C as HOME_GLOW_PRESETS, S as HOME_GLOW_SPOTS, Gn as InfiniteQueryObserver, tt as JAV_LAYOUTS, m as JAV_RELEASE_SORT, lr as MEDIA_SOURCES_KEY, cr as MEDIA_SOURCES_URL, Ve as METADATA_REFRESH_DAYS, ga as MIN_FACE_PX, Kn as Mutation, Jn as MutationCache, Xn as MutationObserver, jr as OVERLAY_PATHS, rt as PHOTO_LAYOUTS, nt as PHOTO_SIZES, Qn as QueriesObserver, Fn as Query, $n as QueryCache, er as QueryClient, zn as QueryObserver, Re as SETTINGS_KEY, p as SORTS, _ as SORT_ALIASES, g as SORT_DIR_WORDS, h as SORT_KEYS, ze as THEME_CHOICES, Ye as THEME_OPTIONS, xt as TILES, Ei as activeQueue, ji as activityPrefill, Lr as adoptOverlayState, Ta as advanceImageFallback, T as allowedSetting, E as appSettingsStore, Mt as applyAccent, Tt as applyDensity, jt as applyGlassFaces, At as applyHomeGlow, qe as applySyncedSettings, Qe as applyTheme, eo as avatarFrame, Ra as avatarInner, Nr as backgroundOf, mi as barsContext, Nc as batchDockApi, ws as boardPageSkeleton, Ka as cardArtwork, Xa as cardIdentity, st as cardLayoutFor, mt as cardRatio, Ds as catalogEmptyHtml, js as catalogFilterSkeletonHtml, Es as catalogSuggestions, Lt as chooseAccent, It as chooseGlowPreset, pa as clampPage, Xs as cleanupSkeletonHtml, Ir as clearOverlayBackground, ac as clickPlayerControl, Ai as configurationRequestedSection, yo as configureHoverPreview, Kr as connectManagedRoutes, to as coverAnchor, ro as coverBackdrop, oo as coverFace, Ua as coverImage, ao as coverRatio, Na as coverUrl, St as currentDensity, rr as dataTagErrorSymbol, nr as dataTagSymbol, Cn as defaultScheduler, yn as defaultShouldDehydrateMutation, bn as defaultShouldDehydrateQuery, y as defaultSortDir, xn as dehydrate, vn as dehydrateQuery, wi as detailOriginAbove, Ci as detailOriginAnchor, Ya as detailPosterUrl, hi as detailReturnBarsContext, Ti as detailReturnNeedsRestore, Si as detailReturnPath, Cs as detailSkeletonHtml, Bs as dropBars, za as entityAvatar, La as entityFaceImg, To as entitySkeletonHtml, pn as environmentManager, tr as experimental_streamedQuery, Ha as faceBoxAttrs, ba as faceFrame, Ba as faceOrigin, Va as facePos, Da as faceSourceScale, ya as faceZoom, Rs as fetchBars, ur as fetchMediaSources, zs as fetchTopsPage, po as fitNativeImage, mn as focusManager, ki as followDetailReturnPath, oa as followJobProgress, bi as followLastSelectedId, _i as followSelected, fo as frameCachedImages, Te as glowAccent, Pe as glowChipFill, Pt as glowChips, ke as glowColor, xe as glowPalette, be as glowPresetName, pt as gridLayout, va as hasFaceBox, j as hashKey, Fr as holdOverlayBackground, ot as homeLayout, Sn as hydrate, wa as imageFallbackAttrs, xc as immerseApi, Bi as initBoardControls, _o as installCardArt, Dn as isCancelledError, w as isNativeGlass, Mr as isOverlayPath, Ut as isServer, Ga as javArtwork, ie as javImageKind, at as javLayout, ia as jobActivityHtml, ic as junkCountSkeletonHtml, ec as junkPath, $s as junkRoute, rn as keepPreviousData, yi as lastSelectedId, Xr as listenManagedEntry, Mc as loadBatchDock, Fc as loadGlowPicker, bc as loadImmerse, Oc as loadManageHeader, fr as loadMediaSources, Lc as loadRouter, gc as loadSettingsPanel, wc as loadSidebar, fc as loadStage, Pa as logoUrl, kc as manageHeaderApi, ta as manageHeaderSkeletonHtml, Qi as manageHeaderView, Yr as managedEntries, qr as managedEntry, Jr as managedTaken, Jt as matchMutation, qt as matchQuery, qa as mixFace, Qa as mixLabel, Oa as nativeImageFit, ee as nextSortState, k as noop, we as normalizeAccent, We as normalizeAppSettings, Ne as normalizeHomeGlow, re as normalizeJavImage, b as normalizeJavLayout, ne as normalizeJavPreferences, me as normalizeSidebarOrder, F as notifyManager, Fi as notifyShell, I as onlineManager, Qr as openManagedRoute, zr as overlayState, fa as pageCount, ma as paginationHtml, Le as paintGlassFaces, zt as paintGlowButton, Ie as paintHomeGlow, Ot as paintHomeGlowNow, Dt as paintPhotoSizeButton, oe as panelFrame, Ca as parseFallbacks, M as partialMatchKey, ci as peachHistory, Di as pendingQueueRoute, Ia as performerLabel, dt as photoLayout, ut as photoSize, Je as postSearchHistoryLimit, no as posterPanel, te as preferredDirection, Ur as preloadManagedRoutes, Oi as presentedItem, R as queryClient, Za as queueAvatarHtml, Ja as queueThumbHtml, Ge as readAppSettings, mo as refitNativeImages, Ri as registerDiagnosticsRoute, ho as relayoutCovers, ce as relayoutJavImages, So as releaseHover, xo as releaseHoverPreviews, ti as releaseManagedRoute, Aa as rememberRepresentatives, Zt as replaceEqualDeep, ja as representativeOf, Rt as resetGlowColors, fi as retagOverlay, di as routeSeen, sc as seekVideoBy, la as selectGroup, vi as selectMode, sa as selectRange, xi as selectSurface, gi as selected, ca as selectionSummary, Co as setHoverState, _c as settingsPanelApi, uo as settleImage, li as shellNavigate, Li as shellVersion, ln as shouldThrowError, lc as showToast, Tc as sidebarApi, he as sidebarHasCatalogContent, Ji as sidebarSkeletonHtml, ge as sidebarTagCounts, sn as skipToken, v as sortDirWord, pc as stageApi, ui as startRouting, pi as state, ht as storeHomeLayout, gt as storeJavLayout, yt as storePhotoLayout, vt as storePhotoSize, _t as storeVideoLayout, Ii as subscribeShell, zi as syncBoardRange, se as syncJavImages, ua as syncSelectionToolbar, Rr as takeOverlayReturn, O as timeoutManager, Et as toggleDensity, oc as toggleVideoPlayback, Ki as transitionTheme, ir as unsetMarker, ei as updateManagedRoute, io as upgradeCover, aa as watchJob, lo as watchPendingImages, et as watchSystemTheme, Bt as wireGlowButton, wo as wireHover, Ea as wireImageFallbacks, Ma as withVersion, Pi as writeShell };
+export { Ce as ACCENTS, Ft as ACCENT_CHOICES, it as COVER_FRONT_RATIO, L as CancelledError, we as DEFAULT_ACCENT, Ne as DEFAULT_HOME_GLOW, We as DEFAULT_SETTINGS, ue as DEFAULT_SIDEBAR_ORDER, va as FACE_CEILING, ga as FACE_TARGET, Ue as FEED_COMPILATION_KEYS, Ve as FOLLOW_INITIAL_DAYS, ye as GLASS_NATIVE_PRESET, ve as GLOW_SPOT_LABELS, Oe as GLOW_SWATCHES, De as GLOW_SWATCH_FAMILIES, be as HOME_GLOW_CHOICES, S as HOME_GLOW_PRESETS, _e as HOME_GLOW_SPOTS, Gn as InfiniteQueryObserver, tt as JAV_LAYOUTS, m as JAV_RELEASE_SORT, lr as MEDIA_SOURCES_KEY, cr as MEDIA_SOURCES_URL, He as METADATA_REFRESH_DAYS, _a as MIN_FACE_PX, Kn as Mutation, Jn as MutationCache, Xn as MutationObserver, jr as OVERLAY_PATHS, rt as PHOTO_LAYOUTS, nt as PHOTO_SIZES, Qn as QueriesObserver, Fn as Query, $n as QueryCache, er as QueryClient, zn as QueryObserver, ze as SETTINGS_KEY, p as SORTS, _ as SORT_ALIASES, g as SORT_DIR_WORDS, h as SORT_KEYS, Be as THEME_CHOICES, Ye as THEME_OPTIONS, xt as TILES, Di as activeQueue, Mi as activityPrefill, Lr as adoptOverlayState, Ea as advanceImageFallback, w as allowedSetting, E as appSettingsStore, Mt as applyAccent, Tt as applyDensity, jt as applyGlassFaces, At as applyHomeGlow, qe as applySyncedSettings, Qe as applyTheme, to as avatarFrame, za as avatarInner, Nr as backgroundOf, hi as barsContext, Pc as batchDockApi, Ts as boardPageSkeleton, qa as cardArtwork, Za as cardIdentity, st as cardLayoutFor, mt as cardRatio, Os as catalogEmptyHtml, Ms as catalogFilterSkeletonHtml, Ds as catalogSuggestions, Lt as chooseAccent, It as chooseGlowPreset, ma as clampPage, Zs as cleanupSkeletonHtml, Ir as clearOverlayBackground, oc as clickPlayerControl, ji as configurationRequestedSection, bo as configureHoverPreview, Kr as connectManagedRoutes, no as coverAnchor, io as coverBackdrop, so as coverFace, Wa as coverImage, oo as coverRatio, Pa as coverUrl, St as currentDensity, rr as dataTagErrorSymbol, nr as dataTagSymbol, Cn as defaultScheduler, yn as defaultShouldDehydrateMutation, bn as defaultShouldDehydrateQuery, y as defaultSortDir, xn as dehydrate, vn as dehydrateQuery, Ti as detailOriginAbove, wi as detailOriginAnchor, Xa as detailPosterUrl, gi as detailReturnBarsContext, Ei as detailReturnNeedsRestore, Ci as detailReturnPath, ws as detailSkeletonHtml, Vs as dropBars, Ba as entityAvatar, Ra as entityFaceImg, Eo as entitySkeletonHtml, pn as environmentManager, tr as experimental_streamedQuery, Ua as faceBoxAttrs, xa as faceFrame, Va as faceOrigin, Ha as facePos, Oa as faceSourceScale, ba as faceZoom, ni as failManagedRoute, zs as fetchBars, ur as fetchMediaSources, Bs as fetchTopsPage, mo as fitNativeImage, mn as focusManager, Ai as followDetailReturnPath, sa as followJobProgress, xi as followLastSelectedId, vi as followSelected, po as frameCachedImages, Ee as glowAccent, Fe as glowChipFill, Pt as glowChips, Ae as glowColor, Se as glowPalette, xe as glowPresetName, pt as gridLayout, ya as hasFaceBox, j as hashKey, Fr as holdOverlayBackground, ot as homeLayout, Sn as hydrate, Ta as imageFallbackAttrs, Sc as immerseApi, Vi as initBoardControls, vo as installCardArt, Dn as isCancelledError, C as isNativeGlass, Mr as isOverlayPath, Ut as isServer, Ka as javArtwork, ie as javImageKind, at as javLayout, aa as jobActivityHtml, ac as junkCountSkeletonHtml, tc as junkPath, ec as junkRoute, rn as keepPreviousData, bi as lastSelectedId, Xr as listenManagedEntry, Nc as loadBatchDock, Ic as loadGlowPicker, xc as loadImmerse, kc as loadManageHeader, fr as loadMediaSources, Rc as loadRouter, _c as loadSettingsPanel, Tc as loadSidebar, pc as loadStage, Fa as logoUrl, Ac as manageHeaderApi, na as manageHeaderSkeletonHtml, $i as manageHeaderView, Yr as managedEntries, qr as managedEntry, Jr as managedTaken, Jt as matchMutation, qt as matchQuery, Ja as mixFace, $a as mixLabel, ka as nativeImageFit, ee as nextSortState, k as noop, Te as normalizeAccent, Ge as normalizeAppSettings, Pe as normalizeHomeGlow, re as normalizeJavImage, b as normalizeJavLayout, ne as normalizeJavPreferences, me as normalizeSidebarOrder, F as notifyManager, Ii as notifyShell, I as onlineManager, Qr as openManagedRoute, zr as overlayState, pa as pageCount, ha as paginationHtml, Re as paintGlassFaces, zt as paintGlowButton, Le as paintHomeGlow, Ot as paintHomeGlowNow, Dt as paintPhotoSizeButton, oe as panelFrame, wa as parseFallbacks, M as partialMatchKey, li as peachHistory, Oi as pendingQueueRoute, La as performerLabel, dt as photoLayout, ut as photoSize, Je as postSearchHistoryLimit, ro as posterPanel, te as preferredDirection, Ur as preloadManagedRoutes, ki as presentedItem, R as queryClient, Qa as queueAvatarHtml, Ya as queueThumbHtml, Ke as readAppSettings, ho as refitNativeImages, zi as registerDiagnosticsRoute, go as relayoutCovers, ce as relayoutJavImages, Co as releaseHover, So as releaseHoverPreviews, ti as releaseManagedRoute, ja as rememberRepresentatives, Zt as replaceEqualDeep, Ma as representativeOf, Rt as resetGlowColors, pi as retagOverlay, fi as routeSeen, cc as seekVideoBy, ua as selectGroup, yi as selectMode, ca as selectRange, Si as selectSurface, _i as selected, la as selectionSummary, wo as setHoverState, vc as settingsPanelApi, fo as settleImage, ui as shellNavigate, Ri as shellVersion, ln as shouldThrowError, uc as showToast, Ec as sidebarApi, he as sidebarHasCatalogContent, Yi as sidebarSkeletonHtml, ge as sidebarTagCounts, sn as skipToken, v as sortDirWord, mc as stageApi, di as startRouting, mi as state, ht as storeHomeLayout, gt as storeJavLayout, yt as storePhotoLayout, vt as storePhotoSize, _t as storeVideoLayout, Li as subscribeShell, Bi as syncBoardRange, se as syncJavImages, da as syncSelectionToolbar, Rr as takeOverlayReturn, O as timeoutManager, Et as toggleDensity, sc as toggleVideoPlayback, qi as transitionTheme, ir as unsetMarker, ei as updateManagedRoute, ao as upgradeCover, oa as watchJob, uo as watchPendingImages, et as watchSystemTheme, Bt as wireGlowButton, To as wireHover, Da as wireImageFallbacks, Na as withVersion, Fi as writeShell };