Skip to content

armgit / peach

Public Imported from GitHub
0

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

refactor(web): 关注页的署名与字样收进岛,首页新作行与资料页那一行共用 feed-new 组件

longmeidaob8826d0119c2
diff --git a/frontend/e2e/home-feed.test.ts b/frontend/e2e/home-feed.test.ts
new file mode 100644
index 000000000..8ffdc7269
--- /dev/null
+++ b/frontend/e2e/home-feed.test.ts
@@ -0,0 +1,115 @@
+/* 首页那一行新作(`feed-new` 岛):卡上两颗键、收完整块藏起、换筛选与合集开关改了重取。
+ *
+ * 骨架与它在哪些页面上出现在 `home-loading.test.ts`、`smoke.test.ts`;封面取景在 `feed-cover.test.ts`;
+ * 资料页那一行与它同一个组件,取数与「刚订上等那一轮跑完再重取」在 `test/react/entity-page.test.tsx`。 */
+import assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
+
+import type { Browser, Page } from 'playwright-core';
+
+import { expectBody, launch, settle, visit, VIEWPORTS, type Visit } from './harness.ts';
+import { openPanel, stubServer, type Server } from './settings-fixture.ts';
+
+const DESKTOP = VIEWPORTS.find((viewport) => !viewport.mobile)!;
+
+const item = (id: number) => ({
+ id, code: `EXM-${String(id).padStart(3, '0')}`, title: `示例新作 ${id}`, link: null, cover_url: null,
+ has_cover: false, cover_frame: null, poster_box: null, release_date: '2026-09-30',
+ studio: null, performers: null, read: false, ignored: false, scrape_error: null,
+});
+
+interface Feed { reads: string[]; writes: Record<string, unknown>[]; items: number[] }
+
+/** 发现列表与两颗键的写接口各给一份桩;首页挂上桩之后重载一次,从第一趟取数起就接住。 */
+async function openHome(browser: Browser): Promise<Visit & { feed: Feed; server: Server }> {
+ const opened = await visit(browser, '/', DESKTOP);
+ const { page } = opened;
+ const feed: Feed = { reads: [], writes: [], items: [1, 2] };
+ await page.route(/\/api\/feeds\/discoveries\?/, (route) => {
+ feed.reads.push(new URL(route.request().url()).search);
+ return route.fulfill({ json: { ok: true, more: false, items: feed.items.map(item) } });
+ });
+ await page.route((url) => url.pathname === '/api/feeds/discovery', (route) => {
+ feed.writes.push(JSON.parse(route.request().postData() || '{}'));
+ return route.fulfill({ json: { ok: true } });
+ });
+ const server = await stubServer(page);
+ await page.reload({ waitUntil: 'load' });
+ await expectBody(page, '/', [page.locator('#feedNew [data-feed-id="2"]')]);
+ await settle(page);
+ return { ...opened, feed, server };
+}
+
+/** 卡上那两颗键藏在悬停工具里:先移上去再点。 */
+async function press(page: Page, id: number, action: string): Promise<void> {
+ const card = page.locator(`#feedNew [data-feed-id="${id}"]`);
+ await card.hover();
+ await card.locator(`[data-feed-action="${action}"]`).click();
+}
+
+async function until(page: Page, condition: () => boolean, message: string): Promise<void> {
+ for (let tries = 0; tries < 100 && !condition(); tries += 1) await page.waitForTimeout(50);
+ assert.ok(condition(), message);
+}
+
+describe('首页新作那一行', () => {
+ let browser: Browser;
+ before(async () => { browser = await launch() });
+ after(async () => { await browser?.close() });
+
+ it('标为已看过留在原位变淡,不想看当场消失,收完整块藏起;请求体只带这一条', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ const { page, feed } = opened;
+ try {
+ // 进页那几步里目录可能连画两遍(设置、片库名单晚到),每一遍都可能重取一趟;只量取的是哪一份。
+ assert.ok(feed.reads.length >= 1, '首页那一行没有取数');
+ assert.deepEqual(new Set(feed.reads), new Set(['?limit=12']), '首页那一行不分人,只带条数');
+ await press(page, 2, 'read');
+ await page.locator('#feedNew [data-feed-id="2"].isread').waitFor({ timeout: 5_000 });
+ await press(page, 1, 'ignore');
+ await page.locator('#feedNew [data-feed-id="1"]').waitFor({ state: 'detached', timeout: 5_000 });
+ assert.equal(await page.locator('#feedNew').isHidden(), false, '还剩一张就不该藏起');
+ assert.deepEqual(feed.writes, [{ action: 'read', ids: [2] }, { action: 'ignore', ids: [1] }]);
+ await press(page, 2, 'ignore');
+ await page.locator('#feedNew').waitFor({ state: 'hidden', timeout: 5_000 });
+ assert.equal(await page.locator('#feedNew [data-feed-id]').count(), 0);
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('在目录页里换一次筛选重取一次、不重铺;设置里改了合集开关也重取一次', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ const { page, feed, server } = opened;
+ try {
+ const host = await page.locator('#feedNew').elementHandle();
+ const booted = feed.reads.length;
+ feed.items = [1, 2, 3];
+ await page.evaluate(() => {
+ history.pushState({}, '', '/?state=fresh');
+ window.dispatchEvent(new PopStateEvent('popstate'));
+ });
+ await until(page, () => feed.reads.length === booted + 1,
+ `换筛选之后应重取一次,实际 ${feed.reads.length - booted} 次`);
+ await page.locator('#feedNew [data-feed-id="3"]').waitFor({ timeout: 5_000 });
+ assert.equal(await page.locator('#feedNew .feednewskeleton').count(), 0, '同在目录页里不该再铺骨架');
+ assert.equal(await host!.evaluate((node) => node.isConnected && node.id === 'feedNew'), true);
+
+ feed.items = [4];
+ await openPanel(page, '浏览');
+ const toggle = page.locator('#feedHideGroupSetting');
+ const was = await toggle.isChecked();
+ await toggle.click();
+ await until(page, () => server.posts.some((post) => post.path === '/api/settings'
+ && post.body.feedHideGroupCompilations === !was), '合集开关没有写回服务端');
+ await until(page, () => feed.reads.length === booted + 2,
+ `改了合集开关应重取一次,实际 ${feed.reads.length - booted - 1} 次`);
+ await page.locator('#feedNew [data-feed-id="4"]').waitFor({ state: 'attached', timeout: 5_000 });
+ assert.equal(await page.locator('#feedNew [data-feed-id]').count(), 1);
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+});
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index b021e1b11..f49dea815 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -40,6 +40,7 @@ export interface IslandContracts {
'data-cleanup': ReactBundle.DataCleanupProps;
duplicates: ReactBundle.DuplicatesProps;
'entity-page': ReactBundle.EntityPageProps;
+ 'feed-new': ReactBundle.FeedNewProps;
'follow-feed': ReactBundle.FollowFeedProps;
'follow-manage': ReactBundle.FollowManageProps;
index: ReactBundle.IndexProps;
@@ -71,6 +72,7 @@ const REGISTRY: { [N in IslandName]: Island } = {
'data-cleanup': { react: 'data-cleanup' },
duplicates: { react: 'duplicates' },
'entity-page': { react: 'entity-page' },
+ 'feed-new': { react: 'feed-new' },
'follow-feed': { react: 'follow-feed' },
'follow-manage': { react: 'follow-manage' },
index: { react: 'index' },
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index a8d7bad19..cdd5aba2d 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -8,6 +8,7 @@ import type { IndexProps } from './index/index-data';
import type { CatalogGridProps } from './catalog-grid/types';
import type { JunkQueueProps } from './junk-queue/junk-queue';
import type { EntityPageProps } from './entity-page/entity-page';
+import type { FeedNewProps } from './feed-new/feed-new';
import type { CatalogFilterProps, CatalogView } from './catalog-filter/catalog-filter';
import type { SearchProps } from './search/search';
import type { FollowDetailProps } from './follow-detail/follow-detail';
@@ -20,6 +21,7 @@ export type { IndexProps };
export type { CatalogGridProps };
export type { JunkQueueProps };
export type { EntityPageProps };
+export type { FeedNewProps };
export type { CatalogFilterProps, CatalogView };
export type { SearchProps };
export type { FollowDetailProps };
@@ -390,6 +392,7 @@ export interface ReactPages {
duplicates: ReactPage<DuplicatesProps>;
'catalog-filter': ReactPage<CatalogFilterProps>;
'entity-page': ReactPage<EntityPageProps>;
+ 'feed-new': ReactPage<FeedNewProps>;
'follow-feed': ReactPage<FollowFeedProps>;
'follow-manage': ReactPage<FollowManageProps>;
index: ReactPage<IndexProps>;
diff --git a/frontend/src/react/entity-hero/entity-hero-page.tsx b/frontend/src/react/entity-hero/entity-hero-page.tsx
index f16e6309e..9c0c1bc69 100644
--- a/frontend/src/react/entity-hero/entity-hero-page.tsx
+++ b/frontend/src/react/entity-hero/entity-hero-page.tsx
@@ -7,17 +7,18 @@
* 头像、同台艺人的脸和新作卡仍由遗留层拼:取图失败时兜底链(`image-fallback.js`)会把 `<img>`
* 从 DOM 里摘掉、人脸放大(`avatarFrame`)往图上写内联尺寸、等待微光挂在图的父元素上,这几样
* 都直接改节点,所以那几格用 `dangerouslySetInnerHTML`,React 不拥有里面的节点。 */
-import { useEffect, useLayoutEffect, useRef, useState, type MouseEvent, type ReactNode } from 'react';
+import { useEffect, useRef, useState, type MouseEvent, type ReactNode } from 'react';
import { createPortal } from 'react-dom';
import { entityPath, esc, icon } from '@peach/legacy/core';
import { AvatarPicker } from '../avatar-picker/avatar-picker-page';
+import { FeedNewRow } from '../feed-new/feed-new-row';
import { Glyph } from './glyph';
import { FeedSwitch, MorePop } from './hero-pop';
import { NamePicker } from './name-picker';
import {
agencyOf, entityFeedTip, entryMarks, factRows, heroLinks, isCompany, isPeople, nameChoices, nameLine, shownTags,
- type EntityHeroActions, type EntityHeroData, type EntityHeroHelpers, type EntityHeroProps, type HeroFeedNew,
+ type EntityHeroActions, type EntityHeroData, type EntityHeroHelpers, type EntityHeroProps,
type LinkMark, type LinkView,
} from './entity-hero';
@@ -90,7 +91,9 @@ export function EntityHeroPage({ kind, name, entity, feedNew, feedHost, actions,
</div>
) : null}
</section>
- {feedHost ? createPortal(<FeedRow feedNew={feedNew} host={feedHost} actions={actions} helpers={helpers} />, feedHost) : null}
+ {/* 新作那一行摆在壳留好的 `section.feednew[data-feed-new]` 里,与首页那一行同一个组件。 */}
+ {feedHost ? createPortal(<FeedNewRow feedNew={feedNew} host={feedHost} wire={helpers.wireFeedRow}
+ act={(feedId, action) => actions.feedAction(feedId, action)} />, feedHost) : null}
</>
);
}
@@ -283,32 +286,3 @@ function EntryMarks({ entity, actions, helpers }: {
</div>
);
}
-
-/** 新作那一行:摆在壳留好的 `section.feednew[data-feed-new]` 里,卡片和首页那一行同一份模板
- * (`feedNewCardHtml`)。忽略的那条当场消失,已看过的留在原位只是变淡;两样都直接改这一行的
- * 节点,不重画整行——重画会把横滚的位置和自动滚动一起打回起点。一条都没有就整块不出。 */
-function FeedRow({ feedNew, host, actions, helpers }: {
- feedNew: HeroFeedNew | null; host: HTMLElement; actions: EntityHeroActions; helpers: EntityHeroHelpers;
-}) {
- const box = useRef<HTMLDivElement>(null);
- const html = feedNew?.items.length ? feedNew.html : '';
- useLayoutEffect(() => {
- host.removeAttribute('aria-busy');
- host.hidden = !html;
- }, [host, html]);
- useEffect(() => {
- if (html) helpers.wireFeedRow(box.current?.querySelector('.feednewrow') ?? null);
- }, [helpers, html]);
- const click = async (event: MouseEvent<HTMLDivElement>) => {
- const button = (event.target as Element).closest<HTMLElement>('[data-feed-action]');
- const card = button?.closest<HTMLElement>('[data-feed-id]');
- if (!button || !card) return;
- const action = button.dataset.feedAction || '';
- await actions.feedAction(Number(card.dataset.feedId), action);
- if (action === 'ignore') card.remove();
- else card.classList.add('isread');
- if (!box.current?.querySelector('[data-feed-id]')) host.hidden = true;
- };
- return html ? <div ref={box} className="contents" onClick={(event) => { void click(event) }}
- dangerouslySetInnerHTML={{ __html: html }} /> : null;
-}
diff --git a/frontend/src/react/entity-hero/entity-hero.ts b/frontend/src/react/entity-hero/entity-hero.ts
index 5971c909d..a232963c6 100644
--- a/frontend/src/react/entity-hero/entity-hero.ts
+++ b/frontend/src/react/entity-hero/entity-hero.ts
@@ -5,6 +5,8 @@
* 右边的资料表、外链、外部入口和同台艺人。 */
import { brandIcon, foldName, linkMarkUrl, officialLinkText } from '@peach/legacy/core';
+import type { FeedNew } from '../feed-new/feed-new';
+
/** 一条外链,形状同 `/api/entity` 的 `links[]`。 */
export interface HeroLink {
link_id?: number | null;
@@ -80,12 +82,6 @@ export interface EntityHeroData {
name_groups?: HeroNameGroups | null;
}
-/** 这一页的新作:壳的 `loadFeedNew` 取回来的条目与拼好的整行 HTML(封面、角标、两枚操作键)。 */
-export interface HeroFeedNew {
- items: { id: number }[];
- html: string;
-}
-
/** 写操作与站内跳转都归壳。 */
export interface EntityHeroActions {
/** 站内跳转,走遗留路由的同一个入口。 */
@@ -123,7 +119,8 @@ export interface EntityHeroProps {
/** 地址栏上的那个名字:首字母垫底取它,和骨架同一个字。 */
name: string;
entity: EntityHeroData;
- feedNew: HeroFeedNew | null;
+ /** 这一页的新作(`feed-new/feed-new.ts` 取回来的条目与壳拼好的整行 HTML)。 */
+ feedNew: FeedNew | null;
/** 壳在 `#index` 里留给新作那一行的 `section.feednew[data-feed-new]`。 */
feedHost: HTMLElement | null;
/** 这一页是不是 JAV 语境(`entityJavLayout`)。 */
diff --git a/frontend/src/react/entity-page/entity-page-view.tsx b/frontend/src/react/entity-page/entity-page-view.tsx
index 9e79849fd..29807cedb 100644
--- a/frontend/src/react/entity-page/entity-page-view.tsx
+++ b/frontend/src/react/entity-page/entity-page-view.tsx
@@ -21,9 +21,10 @@ import type {
import { EntityFilterPage } from '../entity-filter/entity-filter-page';
import type { EntityHeroActions, EntityHeroHelpers } from '../entity-hero/entity-hero';
import { EntityHeroPage } from '../entity-hero/entity-hero-page';
+import { feedNewKey, feedNewOptions, postFeedAction } from '../feed-new/feed-new';
import { queryClient } from '../query';
import {
- EMPTY_MEDIA, codeSetsOf, entityKey, entityOptions, entityPhotosKey, feedNewKey, feedNewOptions, fetchItems, itemsOptions,
+ EMPTY_MEDIA, codeSetsOf, entityKey, entityOptions, entityPhotosKey, fetchItems, itemsOptions,
photosOptions, tagList, tagPressed, type EntityPageData, type EntityPageProps, type PhotoPage,
} from './entity-page';
@@ -206,9 +207,7 @@ function EntityLoaded(props: EntityPageProps & { entity: EntityPageData }) {
if (alive.current) await queryClient.invalidateQueries({ queryKey: feedNewKey(entityId) });
})();
},
- // 忽略与已读都是标记,写失败了卡片照样收起:这一行下次取数时会按服务端的现状重排。
- feedAction: (feedId, action) => (api('/api/feeds/discovery', {
- method: 'POST', body: JSON.stringify({ action, ids: [feedId] }) }) as Promise<unknown>).then(() => undefined, () => undefined),
+ feedAction: postFeedAction,
/* 圆框角上那个加号:头像索引在服务端已经换过,重取资料、整块资料卡重建才读得到新图。 */
avatarPicked: () => {
void queryClient.refetchQueries({ queryKey: entityKey(kind, name) }).then(() => {
diff --git a/frontend/src/react/entity-page/entity-page.ts b/frontend/src/react/entity-page/entity-page.ts
index 24fbfb332..697263519 100644
--- a/frontend/src/react/entity-page/entity-page.ts
+++ b/frontend/src/react/entity-page/entity-page.ts
@@ -13,7 +13,8 @@ import { api } from '@peach/legacy/core';
import type { CatalogGridProps, MediaItem, MediaPage } from '../catalog-grid/types';
import type { EntityBodyActions, EntityBodyHelpers, EntityCodeSet, EntityLocalPhoto, PhotoLayout, PhotoSize } from '../entity-body/entity-body';
import type { EntityComboItem, EntitySortKey, SegmentOption } from '../entity-filter/entity-filter';
-import type { EntityHeroData, HeroCostar, HeroFeedNew } from '../entity-hero/entity-hero';
+import type { EntityHeroData, HeroCostar } from '../entity-hero/entity-hero';
+import { feedNewKey, feedNewOptions, type FeedRowHtml } from '../feed-new/feed-new';
import type { IndexPerson, PeopleLayout } from '../index/index-data';
import { queryClient } from '../query';
@@ -52,9 +53,6 @@ export interface PhotoPage {
seed?: string;
}
-/** `/api/feeds/discoveries` 的回话:条目与最近一轮取封面断在连接上的部数。 */
-export interface FeedDiscoveries { items?: { id: number; has_cover?: boolean }[]; cover_network?: number }
-
/** 写操作与站内跳转里仍归壳的那几样:地址、确认弹层的表单、全站回执与筛选的唯一落点。 */
export interface EntityPageActions {
/** 换视图、换观看状态:壳写好地址再把新的 `filters`/`media` 推回来。 */
@@ -92,7 +90,7 @@ export interface EntityPageHelpers {
/** 新作那一行:拖动、滚轮,按设置接自动滚动。 */
wireFeedRow(row: Element | null): void;
/** 新作那一行的整段 HTML:连不上图片主机时的 Note 与一排卡(`feedNewCardHtml`)。 */
- feedRowHtml(data: FeedDiscoveries | null): string;
+ feedRowHtml: FeedRowHtml;
/** 操作回执(`actionReceipt`),给了 `undo` 就带一颗撤销键。 */
receipt(message: string, options?: { undo?: () => Promise<void> }): void;
/** 失败回执(`actionFailure`)。 */
@@ -150,7 +148,6 @@ export interface EntityPageProps extends SharedGridProps {
}
export const entityKey = (kind: string, name: string) => ['entity', kind, name] as const;
-export const feedNewKey = (entityId: number) => ['feed-new', entityId] as const;
export const entityItemsKey = (kind: string, name: string, query: string, revision: number) =>
['entity-items', kind, name, query, revision] as const;
export const entityPhotosKey = (kind: string, name: string, set: number, seed: string) =>
@@ -205,42 +202,6 @@ export const entityOptions = (kind: string, name: string) => ({
staleTime: Infinity,
});
-const FEED_SKELETON_CARDS = 8;
-const FEED_COVER_WAIT = 1500;
-
-/** 把一段 HTML 里头 `count` 张图先取进缓存,最多等 `ms` 毫秒。插进页面时它们已经 `complete`,
- * 遗留层的等待微光不再给它们挂上。 */
-export function preloadImages(html: string, count: number, ms: number): Promise<unknown> {
- const probe = document.createElement('template');
- probe.innerHTML = html;
- const loads = [...probe.content.querySelectorAll('img[src]')].slice(0, count).map((source) => {
- const img = new Image();
- img.referrerPolicy = source.getAttribute('referrerpolicy') || '';
- img.src = source.getAttribute('src') || '';
- return img.decode().catch(() => {});
- });
- return Promise.race([Promise.all(loads), new Promise((resolve) => { setTimeout(resolve, ms) })]);
-}
-
-/** 这一页的新作。拉取由定时器做,页面只读已经发现的那些。骨架还占着时(首屏)先把头几张封面取到手
- * 再整行换掉:否则骨架退场、真卡进来,封面格里又是一轮微光,同一行等了两遍。慢的那几张不等满。 */
-export async function fetchFeedNew(entityId: number, rowHtml: (data: FeedDiscoveries | null) => string,
- preload: boolean): Promise<HeroFeedNew> {
- const data = await (api(`/api/feeds/discoveries?${new URLSearchParams({ limit: '12', entity: String(entityId) })}`)
- .catch(() => null) as Promise<FeedDiscoveries | null>);
- const ok = data && !(data as { error?: string }).error ? data : null;
- const items = ok?.items || [];
- const html = rowHtml(ok);
- if (preload && items.length) await preloadImages(html, FEED_SKELETON_CARDS, FEED_COVER_WAIT);
- return { items, html };
-}
-
-export const feedNewOptions = (entityId: number, rowHtml: (data: FeedDiscoveries | null) => string, preload = false) => ({
- queryKey: feedNewKey(entityId),
- queryFn: () => fetchFeedNew(entityId, rowHtml, preload),
- staleTime: Infinity,
-});
-
/** 照片一页的地址。整组照片第一页沿用壳里的口径(不带 limit,换一批才带种子);图集与续页每页 120。 */
function photoUrl(kind: string, name: string, set: number, seed: string, offset: number, pageSeed: string) {
const who = `kind=${encodeURIComponent(kind)}&name=${encodeURIComponent(name)}`;
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index 6d20bd7a3..0b3addbb4 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -18,6 +18,8 @@ import { CatalogFilterPage } from './catalog-filter/catalog-filter-page';
import { SearchPage } from './search/search-page';
import { prefetchEntityPage } from './entity-page/entity-page';
import { EntityPage } from './entity-page/entity-page-view';
+import { prefetchFeedNew } from './feed-new/feed-new';
+import { FeedNewPage } from './feed-new/feed-new-page';
import { prefetchFollowFeed } from './follow-feed/follow-feed';
import { FollowFeedPage } from './follow-feed/follow-feed-page';
import { prefetchFollowManage } from './follow-manage/follow-manage';
@@ -83,6 +85,8 @@ export const pages: Bundle.ReactPages = {
/* 资料(连同新作与头几张封面)、作品第一页与照片并行取齐再画,骨架与整页一次换掉。换头像的
候选不在这里预取:资料页每进一次就打一遍图库的话,多数时候没人点开它。 */
'entity-page': { prefetch: (props) => prefetchEntityPage(props), mount: mounter(EntityPage) },
+ /* 首页那一行新作:骨架还占着就连头几张封面一起等,再一次换掉。 */
+ 'feed-new': { prefetch: prefetchFeedNew, mount: mounter(FeedNewPage) },
/* 关注列表第一页与凭据两趟并行,挂上就是最终样子;换筛选之后的取数由页面自己的查询驱动。 */
'follow-feed': { prefetch: prefetchFollowFeed, mount: mounter(FollowFeedPage) },
/* 首屏只取来源清单与凭据状态,地址栏指着「订阅源」时连它一起取。检查更新与查找那两趟
diff --git a/frontend/src/react/feed-new/feed-new-page.tsx b/frontend/src/react/feed-new/feed-new-page.tsx
new file mode 100644
index 000000000..c7256292a
--- /dev/null
+++ b/frontend/src/react/feed-new/feed-new-page.tsx
@@ -0,0 +1,21 @@
+/* 首页那一行新作(`feed-new` island)。只在目录路径上挂:离开目录页由壳卸掉,人还在目录页里换
+ * 筛选时这一行不重挂、不重取——它不随筛选变。取回来的卡 portal 回宿主 `#feedNew` 本身。 */
+import { useQuery } from '@tanstack/react-query';
+import { useEffect, useRef } from 'react';
+import { createPortal } from 'react-dom';
+
+import { queryClient } from '../query';
+import { feedNewKey, feedNewOptions, postFeedAction, type FeedNewProps } from './feed-new';
+import { FeedNewRow } from './feed-new-row';
+
+export function FeedNewPage({ host, revision, helpers, actions }: FeedNewProps) {
+ const feed = useQuery(feedNewOptions(null, helpers.feedRowHtml));
+ const seen = useRef(revision);
+ useEffect(() => {
+ if (seen.current === revision) return;
+ seen.current = revision;
+ void queryClient.invalidateQueries({ queryKey: feedNewKey(null) });
+ }, [revision]);
+ return createPortal(<FeedNewRow feedNew={feed.data ?? null} host={host} wire={helpers.wireFeedRow}
+ act={postFeedAction} settled={actions.settled} />, host);
+}
diff --git a/frontend/src/react/feed-new/feed-new-row.tsx b/frontend/src/react/feed-new/feed-new-row.tsx
new file mode 100644
index 000000000..31e6962ee
--- /dev/null
+++ b/frontend/src/react/feed-new/feed-new-row.tsx
@@ -0,0 +1,43 @@
+/* 新作那一行的卡片区,首页与资料页共用:画进壳留好的 `section.feednew` 宿主里,卡片是壳拼的
+ * 那一份模板(`feedNewCardHtml`)。忽略的那条当场消失,已看过的留在原位只是变淡;两样都直接改
+ * 这一行的节点,不重画整行——重画会把横滚的位置和自动滚动一起打回起点。一条都没有就整块不出。 */
+import { useEffect, useLayoutEffect, useRef, type MouseEvent } from 'react';
+
+import type { FeedNew } from './feed-new';
+
+export function FeedNewRow({ feedNew, host, wire, act, settled }: {
+ feedNew: FeedNew | null;
+ host: HTMLElement;
+ /** 拖动、滚轮,按设置接自动滚动。 */
+ wire(row: Element | null): void;
+ /** 卡上那两颗键的写操作。 */
+ act(feedId: number, action: string): Promise<void>;
+ /** 有没有卡:画出来、或最后一张被收起时报一次。 */
+ settled?(hasItems: boolean): void;
+}) {
+ const box = useRef<HTMLDivElement>(null);
+ const html = feedNew?.items.length ? feedNew.html : '';
+ useLayoutEffect(() => {
+ host.removeAttribute('aria-busy');
+ host.hidden = !html;
+ if (feedNew) settled?.(!!html);
+ }, [host, html, feedNew, settled]);
+ useEffect(() => {
+ if (html) wire(box.current?.querySelector('.feednewrow') ?? null);
+ }, [wire, html]);
+ const click = async (event: MouseEvent<HTMLDivElement>) => {
+ const button = (event.target as Element).closest<HTMLElement>('[data-feed-action]');
+ const card = button?.closest<HTMLElement>('[data-feed-id]');
+ if (!button || !card) return;
+ const action = button.dataset.feedAction || '';
+ await act(Number(card.dataset.feedId), action);
+ if (action === 'ignore') card.remove();
+ else card.classList.add('isread');
+ if (!box.current?.querySelector('[data-feed-id]')) {
+ host.hidden = true;
+ settled?.(false);
+ }
+ };
+ return html ? <div ref={box} className="contents" onClick={(event) => { void click(event) }}
+ dangerouslySetInnerHTML={{ __html: html }} /> : null;
+}
diff --git a/frontend/src/react/feed-new/feed-new.ts b/frontend/src/react/feed-new/feed-new.ts
new file mode 100644
index 000000000..946a9130d
--- /dev/null
+++ b/frontend/src/react/feed-new/feed-new.ts
@@ -0,0 +1,92 @@
+/* 未入库的新作那一行(ADR-0042):首页那一行与资料页那一行共用的取数、查询键与写操作。
+ *
+ * 两行读同一个端点(`/api/feeds/discoveries`),资料页多带一个 `entity`;查询键同族
+ * (`['feed-new', 实体 id | 'home']`),一处改了合集开关,按 `['feed-new']` 一次就能把两行都作废。
+ * 卡片的 HTML 仍由壳拼(`feedRowHtml`):封面取景、版次字样与那条连接方式的 Note 都是遗留层
+ * 那一份,取图失败时的兜底链也直接改节点。 */
+import { api } from '@peach/legacy/core';
+
+import { queryClient } from '../query';
+
+/** `/api/feeds/discoveries` 的回话:条目与最近一轮取封面断在连接上的部数。 */
+export interface FeedDiscoveries { items?: { id: number; has_cover?: boolean }[]; cover_network?: number }
+
+/** 新作那一行取回来的样子:条目(只用来判有没有)与壳拼好的整段 HTML。 */
+export interface FeedNew {
+ items: { id: number }[];
+ html: string;
+}
+
+/** 壳拼的整段 HTML:连不上图片主机时的 Note 与一排卡(`feedNewCardHtml`)。 */
+export type FeedRowHtml = (data: FeedDiscoveries | null) => string;
+
+/** 资料页那一行用实体 id,首页那一行不分人。 */
+export const feedNewKey = (entityId: number | null) => ['feed-new', entityId ?? 'home'] as const;
+
+const FEED_SKELETON_CARDS = 8;
+const FEED_COVER_WAIT = 1500;
+
+/** 把一段 HTML 里头 `count` 张图先取进缓存,最多等 `ms` 毫秒。插进页面时它们已经 `complete`,
+ * 遗留层的等待微光不再给它们挂上。 */
+export function preloadImages(html: string, count: number, ms: number): Promise<unknown> {
+ const probe = document.createElement('template');
+ probe.innerHTML = html;
+ const loads = [...probe.content.querySelectorAll('img[src]')].slice(0, count).map((source) => {
+ const img = new Image();
+ img.referrerPolicy = source.getAttribute('referrerpolicy') || '';
+ img.src = source.getAttribute('src') || '';
+ return img.decode().catch(() => {});
+ });
+ return Promise.race([Promise.all(loads), new Promise((resolve) => { setTimeout(resolve, ms) })]);
+}
+
+/** 拉取由定时器做,页面只读已经发现的那些:进这一页顺手发一轮请求,等于把每次刷新都变成对别人
+ * 服务器的一次拉取。骨架还占着时(首屏)先把头几张封面取到手再整行换掉:否则骨架退场、真卡进来,
+ * 封面格里又是一轮微光,同一行等了两遍。慢的那几张不等满,到点照换。 */
+export async function fetchFeedNew(entityId: number | null, rowHtml: FeedRowHtml, preload: boolean): Promise<FeedNew> {
+ const query = new URLSearchParams({ limit: '12' });
+ if (entityId) query.set('entity', String(entityId));
+ const data = await (api(`/api/feeds/discoveries?${query}`).catch(() => null) as Promise<FeedDiscoveries | null>);
+ const ok = data && !(data as { error?: string }).error ? data : null;
+ const items = ok?.items || [];
+ const html = rowHtml(ok);
+ if (preload && items.length) await preloadImages(html, FEED_SKELETON_CARDS, FEED_COVER_WAIT);
+ return { items, html };
+}
+
+export const feedNewOptions = (entityId: number | null, rowHtml: FeedRowHtml, preload = false) => ({
+ queryKey: feedNewKey(entityId),
+ queryFn: () => fetchFeedNew(entityId, rowHtml, preload),
+ staleTime: Infinity,
+});
+
+/** 卡上那两颗键(不想看、标为已看过)。都是标记,写失败了卡片照样收起:这一行下次取数时会按
+ * 服务端的现状重排。 */
+export const postFeedAction = (feedId: number, action: string): Promise<void> =>
+ (api('/api/feeds/discovery', { method: 'POST', body: JSON.stringify({ action, ids: [feedId] }) }) as Promise<unknown>)
+ .then(() => undefined, () => undefined);
+
+/** 首页那一行(`feed-new` island)。宿主是 `index.html` 里那块常驻的 `#feedNew`:岛的根挂在它
+ * 里面的 `.peach-react` 上,卡片 portal 回宿主本身,落在 Preflight 的范围外。 */
+export interface FeedNewProps {
+ host: HTMLElement;
+ /** 合集开关改了就换一个代次,这一行照新的筛法重取。 */
+ revision: number;
+ helpers: {
+ feedRowHtml: FeedRowHtml;
+ /** 拖动、滚轮,按设置接自动滚动。 */
+ wireFeedRow(row: Element | null): void;
+ };
+ actions: {
+ /** 这一行有没有卡:取回来、或最后一张被收起时报一次,壳按它决定下次进首页铺不铺骨架。 */
+ settled(hasItems: boolean): void;
+ };
+}
+
+/** 每次进目录页都是新的一趟(与资料页同一口径):先清掉上一次的缓存,骨架还占着就连头几张
+ * 封面一起等。 */
+export async function prefetchFeedNew(props: FeedNewProps): Promise<void> {
+ queryClient.removeQueries({ queryKey: feedNewKey(null) });
+ await queryClient.fetchQuery(feedNewOptions(null, props.helpers.feedRowHtml,
+ props.host.getAttribute('aria-busy') === 'true'));
+}
diff --git a/frontend/src/react/follow-detail/follow-detail-page.tsx b/frontend/src/react/follow-detail/follow-detail-page.tsx
index dd102d3c4..25bf77447 100644
--- a/frontend/src/react/follow-detail/follow-detail-page.tsx
+++ b/frontend/src/react/follow-detail/follow-detail-page.tsx
@@ -18,6 +18,9 @@ import {
FOLLOW_CREDENTIALS_KEY, fetchFollowCredentials, replaceFollowItem, setFollowItemStatus, videoItems,
type FollowContext, type FollowFeedHelpers, type FollowGroup,
} from '../follow-feed/follow-feed';
+import {
+ followBadges, followIdentity, followMediaIssue, followTitleMarks, followWhen, sourceIcon,
+} from '../follow-feed/follow-marks';
import { FOLLOW_STATUS_URL } from '../follow-manage/follow-manage';
import { openPhotoLightbox } from '../photo-lightbox/photo-lightbox-dialog';
import { queryClient } from '../query';
@@ -176,7 +179,7 @@ function MediaFrame({ item, media, helpers, actions, onMedia, issues }: {
}} />
) : (
<div data-follow-detail-placeholder="">
- <span className="contents" dangerouslySetInnerHTML={{ __html: helpers.sourceIcon(item.resource_provider || item.provider) }} />
+ <span className="contents" dangerouslySetInnerHTML={{ __html: sourceIcon(item.resource_provider || item.provider) }} />
<span>没有可用预览</span>
</div>
)}
@@ -231,7 +234,7 @@ function CollectionQueue({ group, itemId, helpers, actions }: {
const duplicate = group.duplicates.includes(member);
const copy = collectionCopy(group, member, duplicate ? member.provider_label : '');
/* 另一站的同一条由站点图标报出处,图标的 alt 就是站名;没登记图标的站仍写站名。 */
- const siteIcon = duplicate ? helpers.sourceIcon(member.provider, member.provider_label) : '';
+ const siteIcon = duplicate ? sourceIcon(member.provider, member.provider_label) : '';
return (
<MixQueueRow key={member.id} current={member.id === itemId} data-follow-queue-item={member.id}
onClick={() => actions.openItem(member.id)}
@@ -244,7 +247,7 @@ function CollectionQueue({ group, itemId, helpers, actions }: {
{siteIcon
? <span data-follow-queue-source="" dangerouslySetInnerHTML={{ __html: siteIcon }} />
: <i data-follow-variant={member.variant_kind || ''}>{copy.label}</i>}
- <time dateTime={member.published_at || ''}>{helpers.when(member)}</time>
+ <time dateTime={member.published_at || ''}>{followWhen(member)}</time>
</span>
</MixQueueRow>
);
@@ -295,11 +298,11 @@ function Side({ item, data, context, media, write, issue, helpers, actions }: {
}) {
const { kind, selected, src } = media;
const single: FollowGroup = { primary: item, variants: [], duplicates: [], has_wip: item.variant_kind === 'wip' };
- const badges = helpers.badges(single, item);
- const identity = helpers.identity(item, authorSources(item, data.sources), context);
+ const badges = followBadges(single, item);
+ const identity = followIdentity(item, authorSources(item, data.sources), context);
const postedBy = identity.credited ? ''
: item.author && foldName(item.author) !== foldName(identity.author) ? item.author : '';
- const mediaIssue = helpers.mediaIssue(item, context);
+ const mediaIssue = followMediaIssue(item, context);
const tags = detailTags(item, helpers.tagLabel);
const saved = item.status === 'saved';
const { busy } = write;
@@ -309,7 +312,7 @@ function Side({ item, data, context, media, write, issue, helpers, actions }: {
<div data-stage-side-content="">
<div data-follow-detail-title="">
<div data-stage-title="" data-follow-detail-name="" data-reveal-line=""
- dangerouslySetInnerHTML={{ __html: helpers.titleMarks(single, item) + esc(item.title) }} />
+ dangerouslySetInnerHTML={{ __html: followTitleMarks(single, item) + esc(item.title) }} />
{item.url ? (
<a className="externallink" data-follow-origin="" href={item.url} target="_blank" rel="noreferrer noopener"
title="打开来源页面" aria-label="打开来源页面"
@@ -325,7 +328,7 @@ function Side({ item, data, context, media, write, issue, helpers, actions }: {
</div>
</div>
<div className="mono" data-stage-meta="" data-reveal-line="">
- <span>{helpers.when(item)}</span>
+ <span>{followWhen(item)}</span>
{realDuration(item.duration) ? <span>{fmtDur(item.duration)}</span> : null}
{badges ? <span data-follow-badges="" dangerouslySetInnerHTML={{ __html: badges }} /> : null}
</div>
diff --git a/frontend/src/react/follow-feed/follow-card.tsx b/frontend/src/react/follow-feed/follow-card.tsx
index a74946cb5..a6712c5d0 100644
--- a/frontend/src/react/follow-feed/follow-card.tsx
+++ b/frontend/src/react/follow-feed/follow-card.tsx
@@ -6,8 +6,8 @@
*
* 结构与样式钩子沿用作品卡的 `data-media-*`(几何、悬停面、选中描边、勾选圆都在
* `../components/media-card.css`),关注卡自己多出来的几格用 `data-follow-*`,写在
- * `./follow-feed.css`。标题前的版本字样、另见徽章、头像圆框与来源图标是遗留层拼的 HTML,详情里
- * 用的是同一份,这一格 React 不拥有里面的节点。
+ * `./follow-feed.css`。标题前的版本字样、另见徽章、头像圆框与来源图标是 `./follow-marks.ts` 拼的
+ * HTML 串,类名沿用遗留样式表,详情里用的是同一份,这一格 React 不拥有里面的节点。
*
* 一叠(`isMix`)悬停时逐张翻过组里彼此不同的画面,时序与门槛同 Mix 卡(`../components/use-stack-flip.ts`)。
* 翻的是卡片渲染时就在手上的缩略图,悬停不为动画再发请求;第一张是静止封面本身。 */
@@ -19,6 +19,9 @@ import {
followStack, itemForMedia, videoItems, type FollowContext, type FollowFeedActions, type FollowFeedHelpers,
type FollowGroup, type FollowMedia, type FollowSource,
} from './follow-feed';
+import {
+ followBadges, followIdentity, followMediaIssue, followTitleMarks, followWhen, learnFollowDims, sourceIcon,
+} from './follow-marks';
/** 时长只在是真时长时写:来源没给、给了 0 或给了一个明显是占位的数,都不出这一格。 */
const realDuration = (value: unknown) => Number(value) > 0;
@@ -79,7 +82,7 @@ function FollowCardView(props: FollowCardProps) {
? [cardMedia, itemOwnsCard ? item : null].find((owner) => Number(owner?.width) > 0 && Number(owner?.height) > 0)
: null;
const learn = imageView && !sized && thumbUrl
- ? (width: number, height: number) => helpers.learnDims(item.id, cardMedia ? cardMedia.index : null, width, height)
+ ? (width: number, height: number) => learnFollowDims(item.id, cardMedia ? cardMedia.index : null, width, height)
: undefined;
const videos = media === 'videos' ? videoItems(group) : [];
const embedded = item.media_items || [];
@@ -102,11 +105,11 @@ function FollowCardView(props: FollowCardProps) {
if (el) el._stopHover = () => stop.current();
}, []);
- const identity = helpers.identity(item, authorSources, context);
- const when = helpers.when(item);
+ const identity = followIdentity(item, authorSources, context);
+ const when = followWhen(item);
const tags = (item.tags || []).slice(0, 3);
- const issue = helpers.mediaIssue(item, context);
- const badges = helpers.badges(group, item);
+ const issue = followMediaIssue(item, context);
+ const badges = followBadges(group, item);
const saved = item.status === 'saved';
const click = (event: MouseEvent<HTMLElement>) => {
@@ -132,7 +135,7 @@ function FollowCardView(props: FollowCardProps) {
<button type="button" data-follow-open="" aria-label={`打开 ${item.title} 详情`} />
{thumbUrl
? <Thumb key={thumbUrl} src={thumbUrl} width={sized?.width} height={sized?.height} onLearn={learn} />
- : <span data-follow-nothumb="" dangerouslySetInnerHTML={{ __html: helpers.sourceIcon(item.resource_provider || item.provider) }} />}
+ : <span data-follow-nothumb="" dangerouslySetInnerHTML={{ __html: sourceIcon(item.resource_provider || item.provider) }} />}
{stack.faces.length > 1 ? (
<div data-mix-faces="" hidden={!flip.faces.length}>
{flip.faces.map((src, index) => (
@@ -143,7 +146,7 @@ function FollowCardView(props: FollowCardProps) {
</div>
) : null}
<span data-media-badge="" title={item.provider_label} aria-label={`来源:${item.provider_label || ''}`}
- dangerouslySetInnerHTML={{ __html: helpers.sourceIcon(item.provider) }} />
+ dangerouslySetInnerHTML={{ __html: sourceIcon(item.provider) }} />
<span data-media-check="" onClick={(event) => {
event.preventDefault();
event.stopPropagation();
@@ -188,7 +191,7 @@ function FollowCardView(props: FollowCardProps) {
dangerouslySetInnerHTML={{ __html: identity.avatar }} />
<div data-media-text="">
<button type="button" data-media-title=""
- dangerouslySetInnerHTML={{ __html: helpers.titleMarks(group, item) + esc(item.title) }} />
+ dangerouslySetInnerHTML={{ __html: followTitleMarks(group, item) + esc(item.title) }} />
<div data-follow-byline="">
<span data-follow-author="" title={identity.author}>{identity.author}</span>
<time dateTime={item.published_at || ''} title={when}>{compactWhen(when)}</time>
diff --git a/frontend/src/react/follow-feed/follow-feed-page.tsx b/frontend/src/react/follow-feed/follow-feed-page.tsx
index 6351069b2..8d05e9155 100644
--- a/frontend/src/react/follow-feed/follow-feed-page.tsx
+++ b/frontend/src/react/follow-feed/follow-feed-page.tsx
@@ -27,6 +27,7 @@ import { FOLLOW_CHECK_URL, FOLLOW_STATUS_URL } from '../follow-manage/follow-man
import { sidebarTagCounts } from '../../sidebar';
import { queryClient } from '../query';
import { FollowCard } from './follow-card';
+import { authorAvatarHtml, followAuthorName, sourceIcon } from './follow-marks';
import {
FOLLOW_CREDENTIALS_KEY, FOLLOW_FEED_SORTS, FOLLOW_FILTERS, FOLLOW_TAGS_FIRST, FOLLOW_WORKS_FIRST,
collectionItems, dropCondition, fetchFollowCredentials, followConditions, followFeedQuery, groupMediaKinds, groupTagType, itemForMedia,
@@ -131,7 +132,7 @@ export function FollowFeedPage(props: FollowFeedProps) {
}
const route = (patch: Partial<FollowView>) => actions.route({ ...view, ...patch });
const conditions = followConditions({ ...view, author: facets.author, provider: facets.provider }, {
- authors: new Map([...facets.authorSources].map(([key, list]) => [key, helpers.authorName(list, context)])),
+ authors: new Map([...facets.authorSources].map(([key, list]) => [key, followAuthorName(list, context)])),
providers: facets.providers,
works: facets.workNames,
});
@@ -284,8 +285,8 @@ function Authors({ facets, pressed, context, props, onPick }: {
const list = facets.authorSources.get(key) || [];
return (
<button key={key} type="button" data-follow-author={key} aria-pressed={pressed === key} onClick={() => onPick(key)}>
- <span data-follow-ring="" dangerouslySetInnerHTML={{ __html: props.helpers.authorAvatar(list, context) }} />
- <span data-follow-name="">{props.helpers.authorName(list, context)}</span>
+ <span data-follow-ring="" dangerouslySetInnerHTML={{ __html: authorAvatarHtml(list, followAuthorName(list, context)) }} />
+ <span data-follow-name="">{followAuthorName(list, context)}</span>
</button>
);
})}
@@ -384,7 +385,7 @@ function Glass({ facets, view, total, busy, props, route }: {
<button key={key} type="button" data-follow-provider={key} data-entity-press=""
aria-pressed={facets.provider === key} title={label} aria-label={`来源:${label}`}
onClick={() => route({ provider: facets.provider === key ? '' : key })}
- dangerouslySetInnerHTML={{ __html: helpers.sourceIcon(key) }} />
+ dangerouslySetInnerHTML={{ __html: sourceIcon(key) }} />
))}
{providers.length && facets.tagRows.length ? <Sep /> : null}
{facets.tagRows.map(([tag, n]) => (
diff --git a/frontend/src/react/follow-feed/follow-feed.ts b/frontend/src/react/follow-feed/follow-feed.ts
index 6fbdda6d3..8ef400187 100644
--- a/frontend/src/react/follow-feed/follow-feed.ts
+++ b/frontend/src/react/follow-feed/follow-feed.ts
@@ -396,31 +396,15 @@ export interface FollowContext {
credentials: ReadonlySet<string>;
}
-/** 仍由遗留层给的 HTML 与判定:详情用的是同一份,只有一处实现。 */
+/** 仍由遗留层给的 HTML 与接线:详情用的是同一份,只有一处实现。署名、头像、来源图标与标题前后
+ * 那几处字样在岛里(`follow-marks.ts`)。 */
export interface FollowFeedHelpers {
- /** 站点图标(`sourceIcon`),没登记图标的站是空串。 */
- sourceIcon(provider: string, label?: string): string;
- /** 创作者圆框里那段 HTML(`followAuthorAvatar`):官方头像优先,归档站回退,都没有写首字母。 */
- authorAvatar(sources: readonly FollowSource[], context: FollowContext): string;
- /** 创作者名(`followAuthorName`)。 */
- authorName(sources: readonly FollowSource[], context: FollowContext): string;
- /** 卡片署名(`followIdentity`)。 */
- identity(item: FollowItem, authorSources: readonly FollowSource[], context: FollowContext): FollowIdentity;
- /** 题材圆标里那段(有代表图出 `<img>`,没有写两个字母)。 */
+ /** 题材圆标里那段(有代表图出 `<img>`,没有写两个字母);取景与放大走资料页那两个函数。 */
workMark(row: FollowWorkRow): string;
- /** 标题前的版本字样(`followTitleMarks`)与另见徽章(`followBadges`)。 */
- titleMarks(group: FollowGroup, shown: FollowItem): string;
- badges(group: FollowGroup, shown: FollowItem): string;
- /** 「媒体未取得」那一句(`followMediaIssue`),没有就是空串。 */
- mediaIssue(item: FollowItem, context: FollowContext): string;
- /** 本地时间(`followWhen`)。 */
- when(item: FollowItem): string;
tagLabel(tag: string): string;
/** 横滚行接上拖动与滚轮(`wireDrag`);只接滚轮与两端渐隐(`wireHorizontalScroller`)。 */
wireDrag(row: Element | null): void;
wireScroller(row: Element | null): void;
- /** 图片视图里没有尺寸的卡面图加载完,把固有尺寸回写给它的主人(`/api/follow/image-dims`)。 */
- learnDims(item: number, media: number | null, width: number, height: number): void;
/** 进页整块骨架(`followSkeletonHtml`)之外,换筛选时列表区那一块骨架。 */
listSkeletonHtml(media: FollowMedia): string;
/** 检查更新与往回抓那一趟后台任务的进度条(`peach-ui` 的 `followJobProgress`),作业 id 记在
diff --git a/frontend/src/react/follow-feed/follow-marks.ts b/frontend/src/react/follow-feed/follow-marks.ts
new file mode 100644
index 000000000..a09a2ee06
--- /dev/null
+++ b/frontend/src/react/follow-feed/follow-marks.ts
@@ -0,0 +1,124 @@
+/* 关注页卡片、两排与详情共用的署名、头像、来源图标和标题前后那几处字样。
+ *
+ * 都是拼好的 HTML 串,卡片与详情用 `dangerouslySetInnerHTML` 摆进去。图取不到时的回落由壳的
+ * `wireImageFallbacks()` 委托监听按 `data-drop` 系列属性接手(`web/js/image-fallback.js`),
+ * 这里只写属性。创作者名、首字母与头像的取舍和关注管理页是同一份(`follow-manage.ts`)。 */
+import { api, esc } from '@peach/legacy/core';
+
+import {
+ authorAvatar, authorInitial, authorName, sourceIconUrl, type AliasGroup,
+} from '../follow-manage/follow-manage';
+import { localTime } from '../time';
+import type { FollowContext, FollowGroup, FollowIdentity, FollowItem, FollowSource } from './follow-feed';
+
+const text = (value: unknown): string => (typeof value === 'string' ? value : '');
+const aliasesOf = (context: FollowContext) => context.aliases as readonly AliasGroup[];
+
+/** 有站点图标的来源出一枚 `<img>`,没登记的站是空串。图标独自代表站名时传 `label`,alt 与
+ * title 写站名;外层已经带名字的传空,图只作装饰。取不到时撤掉,退回外层的文字。 */
+export function sourceIcon(provider: string, label = ''): string {
+ const url = sourceIconUrl(provider);
+ return url
+ ? `<img class="ficon" src="${url}" alt="${esc(label)}"${label ? ` title="${esc(label)}"` : ''} loading="lazy" data-drop="self">`
+ : '';
+}
+
+/** 这一版列表里一位创作者的名字(别名合并后的统称优先)。 */
+export const followAuthorName = (sources: readonly FollowSource[], context: FollowContext): string =>
+ authorName(sources, aliasesOf(context));
+
+/** 创作者圆框里那段:官方头像优先,归档站回退,都取不到时换成首字母。 */
+export function authorAvatarHtml(sources: readonly FollowSource[], name: string): string {
+ const { src, fallback } = authorAvatar(sources);
+ const initial = authorInitial(name);
+ if (!src) return `<span class="favatar none" title="没有可用头像">${esc(initial)}</span>`;
+ const fallbacks = fallback ? ` data-fallbacks="${esc(fallback)}"` : '';
+ return `<img class="favatar" src="${esc(src)}" alt="" loading="lazy" referrerpolicy="no-referrer" `
+ + `data-drop="initial"${fallbacks} data-initial="${esc(initial)}" data-drop-class="favatar none">`;
+}
+
+/** 卡片与详情的署名。booru 帖子由服务端认出真正的发布者时(`item.credit`),名字和头像都换成
+ * 发布者:也关注了这位就用那位的来源,否则只出首字母,不借被关注者的头像;被关注者退成一行
+ * 「署名含」,说明这条为什么出现在这里。认不出的照常署被关注者。 */
+export function followIdentity(item: FollowItem, authorSources: readonly FollowSource[],
+ context: FollowContext): FollowIdentity {
+ const aliases = aliasesOf(context);
+ const credit = item.credit as { poster?: string; credited?: string } | undefined;
+ const poster = credit?.poster;
+ if (!poster) {
+ const name = authorName(authorSources, aliases);
+ return { author: name || text(item.author) || text(item.source_label) || '创作者未取得',
+ avatar: authorAvatarHtml(authorSources, name), credited: '' };
+ }
+ const key = (value: unknown) => String(value || '').toLowerCase().replace(/[^a-z0-9]/g, '');
+ const own = context.sources.find((row) => key(row.ref) === key(poster));
+ const group = own?.author_key ? context.sources.filter((row) => row.author_key === own.author_key) : own ? [own] : [];
+ const author = (group.length && authorName(group, aliases)) || poster;
+ return { author, avatar: authorAvatarHtml(group, author), credited: credit.credited || '' };
+}
+
+/** 说「这一条是哪个版本」的字样,排在标题前面,与主页标题里的版次字样同一个控件。WIP 说的是
+ * 这一条,不是这一组:同组还有一条 `[WIP]` 时说成「含 WIP」。声音版本说的是卡面这一条:
+ * 配音版着色、无声版弱化加虚线框。 */
+export function followTitleMarks(group: FollowGroup, shown: FollowItem = group.primary): string {
+ const marks: string[] = [];
+ if (group.primary.variant_kind === 'wip') marks.push('<small class="javedition followmark wip">WIP</small>');
+ else if (group.has_wip) marks.push('<small class="javedition followmark wip partial">含 WIP</small>');
+ const version = text(group.primary.version);
+ if (version) marks.push(`<small class="javedition followmark ver">${esc(version)}</small>`);
+ const audio = text(shown.audio);
+ const label = audio === 'voiced' ? '配音版' : audio === 'silent' ? '无声版' : '';
+ if (label) marks.push(`<small class="javedition followmark ${audio}">${label}</small>`);
+ return marks.join('');
+}
+
+/** 另见的站用站点图标列出,站名落在图标的 alt 与徽章的 title 上;没登记图标的站写站名。
+ * 「另见」相对卡面这一条(`shown`)说:卡面换成组里别的站那条时,主条目的站才是另见。 */
+export function followBadges(group: FollowGroup, shown: FollowItem = group.primary): string {
+ const sites = new Map([group.primary, ...group.variants, ...group.duplicates]
+ .filter((member) => member.provider !== shown.provider)
+ .map((member) => [member.provider, member.provider_label || member.provider] as const));
+ if (!sites.size) return '';
+ const marks = [...sites].map(([provider, label]) => sourceIcon(provider, label) || `<span>${esc(label)}</span>`).join('');
+ return `<span class="fbadge dup" title="另见 ${esc([...sites.values()].join('、'))}">另见 ${marks}</span>`;
+}
+
+/** 「媒体未取得」那一句,没有就是空串。 */
+export function followMediaIssue(item: FollowItem, context: FollowContext): string {
+ const error = text(item.media_error);
+ if (error) return `媒体未取得:${error}`;
+ if (item.media_needs_credential && !context.credentials.has(item.provider)) {
+ return item.playable ? '部分媒体未取得:需要 F95 登录会话解析' : '媒体未取得:需要 F95 登录会话解析';
+ }
+ return '';
+}
+
+/** 发布时间,按看的人所在时区显示;来源没给就明说。 */
+export const followWhen = (item: FollowItem): string =>
+ (item.published_at ? localTime(item.published_at) : '时间未取得');
+
+/* 这次会话里已经回写过的图,`条目:媒体序号`。回写只补空缺,服务端本来就会忽略已有尺寸的
+ 条目,但每次重渲染都把同一批再发一遍是白跑。攒 800ms 一批、一批至多 200 条。 */
+interface DimsEntry { item: number; width: number; height: number; media?: number }
+const reported = new Set<string>();
+let queue: DimsEntry[] = [];
+let timer: ReturnType<typeof setTimeout> | null = null;
+
+function flushDims() {
+ timer = null;
+ if (!queue.length) return;
+ const entries = queue.splice(0, 200);
+ /* 静默:这是顺手学习,不是用户的动作;只读端 409 和网络抖动都不该弹提示。 */
+ (api('/api/follow/image-dims', { method: 'POST', body: JSON.stringify({ entries }) }) as Promise<unknown>)
+ .catch(() => {});
+ if (queue.length) timer = setTimeout(flushDims, 800);
+}
+
+/** 图片视图里没有尺寸的卡面图加载完,把固有尺寸回写给它的主人(`/api/follow/image-dims`)。 */
+export function learnFollowDims(item: number, media: number | null, width: number, height: number): void {
+ const key = `${item}:${media ?? ''}`;
+ if (reported.has(key)) return;
+ reported.add(key);
+ queue.push(media === null ? { item, width, height } : { item, width, height, media });
+ if (!timer) timer = setTimeout(flushDims, 800);
+}
diff --git a/frontend/src/react/follow-manage/follow-manage.ts b/frontend/src/react/follow-manage/follow-manage.ts
index a185633b1..5fb0e90c9 100644
--- a/frontend/src/react/follow-manage/follow-manage.ts
+++ b/frontend/src/react/follow-manage/follow-manage.ts
@@ -263,11 +263,22 @@ const clean = (value: string | undefined): string => String(value || '')
.replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, '')
.replace(/\s+collections?\s*$/i, '').trim();
+/** 署名与头像只读来源上的这几列:关注管理页与关注页(`follow-feed/follow-marks.ts`)的来源都给得出。 */
+export interface AuthorSource {
+ author_key?: string | undefined;
+ author_name?: string | undefined;
+ label?: string | undefined;
+ ref?: string | undefined;
+ entity_name?: string | undefined;
+ official_avatar_url?: string | undefined;
+ avatar_url?: string | undefined;
+}
+
/** 分组标题用创作者本人的名字,不是某一条来源的标签。哪一段是人名由服务端一处判定
* (`author_name`),这里只在同一个人的几种写法之间挑一个。 */
-export function authorName(group: FollowSource[], aliases: AliasGroup[] = []): string {
+export function authorName(group: readonly AuthorSource[], aliases: readonly AliasGroup[] = []): string {
if (!group.length) return '';
- const authored = (source: FollowSource) => String(source.author_name || '').trim() || clean(source.label);
+ const authored = (source: AuthorSource) => String(source.author_name || '').trim() || clean(source.label);
const entity = group.find((source) => source.entity_name);
if (entity) return entity.entity_name!;
const aliasGroup = aliases.find((item) => `name:${item.canonical_key}` === group[0]?.author_key);
@@ -289,7 +300,7 @@ export function authorInitial(name: string): string {
}
/** 同一位创作者的官方来源优先提供头像,归档来源只回退。都取不到时用首字母。 */
-export function authorAvatar(group: FollowSource[]): { src: string; fallback: string } {
+export function authorAvatar(group: readonly AuthorSource[]): { src: string; fallback: string } {
const official = group.find((source) => source.official_avatar_url);
const mirror = group.find((source) => source.avatar_url);
const src = official?.official_avatar_url || mirror?.avatar_url || '';
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index 4d0863111..b1059af10 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -40,8 +40,8 @@ async function until(ok: () => boolean, what: string): Promise<void> {
describe('island 注册表', () => {
it('登记的名字就是遗留路由能挂载的名字', () => {
expect(islandNames()).toEqual([
- 'catalog-filter', 'catalog-grid', 'data-cleanup', 'duplicates', 'entity-page', 'follow-feed', 'follow-manage', 'index', 'junk-queue',
- 'library-processing', 'playlists',
+ 'catalog-filter', 'catalog-grid', 'data-cleanup', 'duplicates', 'entity-page', 'feed-new', 'follow-feed', 'follow-manage', 'index',
+ 'junk-queue', 'library-processing', 'playlists',
'scraping', 'quality-goals', 'review', 'search', 'configuration', 'activity', 'stats', 'taste']);
});
diff --git a/frontend/test/react/entity-page.test.tsx b/frontend/test/react/entity-page.test.tsx
index 137ac3a37..44905d9a1 100644
--- a/frontend/test/react/entity-page.test.tsx
+++ b/frontend/test/react/entity-page.test.tsx
@@ -37,6 +37,8 @@ interface Plan {
photos?: (query: URLSearchParams) => unknown;
set?: (query: URLSearchParams) => unknown;
feed?: unknown;
+ /** `/api/feeds/check` 的回话,按次序一问一个;问完了就一直是最后那个。 */
+ checks?: string[];
}
/** 按端点分流的假 fetch,记下每一次请求的地址与写入的内容。 */
@@ -60,7 +62,10 @@ function serve(plan: Plan = {}) {
if (url.pathname === '/api/photos') return reply(plan.photos ? plan.photos(query) : photos(0));
if (url.pathname === '/api/photo-set') return reply(plan.set ? plan.set(query) : photos(2, { id: 9, title: '图集' }));
if (url.pathname === '/api/feeds/discoveries') return reply(plan.feed ?? { items: [] });
- if (url.pathname === '/api/feeds/check') return reply({ status: 'idle' });
+ if (url.pathname === '/api/feeds/check') {
+ const checks = plan.checks ?? ['idle'];
+ return reply({ status: checks.length > 1 ? checks.shift() : checks[0] });
+ }
throw new Error(`没有安排这个端点:${url.pathname}`);
});
vi.stubGlobal('fetch', fetcher);
@@ -341,6 +346,20 @@ describe('写操作', () => {
expect(toggle().checked).toBe(true);
});
+ it('刚订上:等服务端这一轮拉取跑完,再把新作那一行重取一遍;跑着的时候不重取', async () => {
+ const page = await open({ checks: ['running', 'idle'] });
+ vi.useFakeTimers({ toFake: ['setTimeout'] });
+ await click(page.host.querySelector<HTMLInputElement>('input[data-entity-feed]'));
+ await settle();
+ const step = async () => { await act(async () => { vi.advanceTimersByTime(3000) }); await settle() };
+ await step();
+ expect(page.calls('/api/feeds/check')).toHaveLength(1);
+ expect(page.calls('/api/feeds/discoveries')).toHaveLength(1);
+ await step();
+ expect(page.calls('/api/feeds/check')).toHaveLength(2);
+ expect(page.calls('/api/feeds/discoveries')).toHaveLength(2);
+ });
+
it('合集开关改了换一个代次,新作那一行重取', async () => {
const page = await open();
await push({ feedRevision: 1 });
diff --git a/frontend/test/react/feed-new.test.tsx b/frontend/test/react/feed-new.test.tsx
new file mode 100644
index 000000000..bd15ffcc3
--- /dev/null
+++ b/frontend/test/react/feed-new.test.tsx
@@ -0,0 +1,132 @@
+/* 首页那一行新作(`feed-new` 岛):取哪一份、画进哪儿、卡收完怎么报给壳、换代次重取。
+ *
+ * 卡片上那两颗键的去留与资料页那一行同一个组件,在 `entity-hero.test.tsx` 量;骨架交接与离开目录页
+ * 收起要真浏览器,在 `frontend/e2e/home-loading.test.ts` 与 `feed-cover.test.ts` 里量。 */
+import { act, useState } from 'react';
+import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
+import { afterEach, describe, expect, it, vi } from 'vitest';
+
+import { feedNewKey, prefetchFeedNew, type FeedDiscoveries, type FeedNewProps } from '../../src/react/feed-new/feed-new';
+import { FeedNewPage } from '../../src/react/feed-new/feed-new-page';
+import { queryClient } from '../../src/react/query';
+import { click, mountRoot, settle } from './render';
+
+afterEach(() => { queryClient.clear() });
+notifyManager.setScheduler((notify) => notify());
+
+const rowHtml = (data: FeedDiscoveries | null) => `<div class="feednewrow">${(data?.items || []).map((one) =>
+ `<div data-feed-id="${one.id}"><button data-feed-action="ignore">不想看</button></div>`).join('')}</div>`;
+
+/** 假服务端:发现列表按轮次回给定的条目,写接口一律成功。 */
+function serve(...rounds: number[][]) {
+ let round = 0;
+ const fetcher = vi.fn(async (url: string, _init?: RequestInit) => {
+ if (url.startsWith('/api/feeds/discoveries')) {
+ const ids = rounds[Math.min(round, rounds.length - 1)] || [];
+ round += 1;
+ return { ok: true, status: 200, json: async () => ({ items: ids.map((id) => ({ id, has_cover: true })) }) };
+ }
+ return { ok: true, status: 200, json: async () => ({ ok: true }) };
+ });
+ vi.stubGlobal('fetch', fetcher);
+ return fetcher;
+}
+const reads = (fetcher: ReturnType<typeof serve>) =>
+ fetcher.mock.calls.map(([url]) => String(url)).filter((url) => url.startsWith('/api/feeds/discoveries'));
+
+function props(patch: Partial<FeedNewProps> = {}): FeedNewProps {
+ const host = document.createElement('section');
+ host.hidden = true;
+ document.body.append(host);
+ return {
+ host, revision: 0, helpers: { feedRowHtml: rowHtml, wireFeedRow: vi.fn() }, actions: { settled: vi.fn() }, ...patch,
+ };
+}
+
+async function open(given: FeedNewProps) {
+ await prefetchFeedNew(given);
+ const root = await mountRoot(<QueryClientProvider client={queryClient}><FeedNewPage {...given} /></QueryClientProvider>);
+ await settle();
+ return root;
+}
+
+describe('取数', () => {
+ it('首页那一行不分人:只带条数,与资料页那一行各占一个键', async () => {
+ const fetcher = serve([1, 2]);
+ await open(props());
+ expect(reads(fetcher)).toEqual(['/api/feeds/discoveries?limit=12']);
+ expect(feedNewKey(null)).toEqual(['feed-new', 'home']);
+ expect(feedNewKey(7)).toEqual(['feed-new', 7]);
+ });
+
+ it('每次挂上都是新的一趟,不读上一次留下的缓存', async () => {
+ const fetcher = serve([1], [1, 2]);
+ await prefetchFeedNew(props());
+ const given = props();
+ await open(given);
+ expect(reads(fetcher)).toHaveLength(2);
+ expect(given.host.querySelectorAll('[data-feed-id]')).toHaveLength(2);
+ });
+});
+
+describe('画进宿主', () => {
+ it('卡片落在宿主本身,不在 React 根里;画出来就亮出宿主、撤掉等待态,报给壳「有」', async () => {
+ serve([1, 2]);
+ const given = props();
+ given.host.setAttribute('aria-busy', 'true');
+ const { host: root } = await open(given);
+ expect(given.host.hidden).toBe(false);
+ expect(given.host.hasAttribute('aria-busy')).toBe(false);
+ expect(given.host.querySelectorAll('[data-feed-id]')).toHaveLength(2);
+ expect(root.querySelector('[data-feed-id]')).toBeNull();
+ expect(given.helpers.wireFeedRow).toHaveBeenCalledWith(given.host.querySelector('.feednewrow'));
+ expect(given.actions.settled).toHaveBeenLastCalledWith(true);
+ });
+
+ it('一条都没有就整块不出,报给壳「没有」', async () => {
+ serve([]);
+ const given = props();
+ await open(given);
+ expect(given.host.hidden).toBe(true);
+ expect(given.host.querySelector('[data-feed-id]')).toBeNull();
+ expect(given.actions.settled).toHaveBeenLastCalledWith(false);
+ });
+
+ it('最后一张收起时宿主藏起,壳下次进首页不再铺骨架', async () => {
+ const fetcher = serve([5]);
+ const given = props();
+ await open(given);
+ await click(given.host.querySelector('[data-feed-action="ignore"]'));
+ await settle();
+ expect(fetcher.mock.calls.some(([url, init]) => url === '/api/feeds/discovery'
+ && JSON.parse(String(init?.body)).ids[0] === 5)).toBe(true);
+ expect(given.host.hidden).toBe(true);
+ expect(given.actions.settled).toHaveBeenLastCalledWith(false);
+ });
+});
+
+/* 壳经 `updateIsland` 推补丁,这里用一层状态替它。 */
+let push: (patch: Partial<FeedNewProps>) => void = () => {};
+function Harness(initial: FeedNewProps) {
+ const [value, set] = useState(initial);
+ push = (patch) => set((current) => ({ ...current, ...patch }));
+ return <QueryClientProvider client={queryClient}><FeedNewPage {...value} /></QueryClientProvider>;
+}
+
+describe('换代次', () => {
+ it('壳推来新的代次就重取;代次不变的补丁不发请求', async () => {
+ const fetcher = serve([1], [1, 3]);
+ const given = props();
+ await prefetchFeedNew(given);
+ await mountRoot(<Harness {...given} />);
+ await settle();
+ expect(reads(fetcher)).toHaveLength(1);
+ await act(async () => push({ revision: 0 }));
+ await settle();
+ expect(reads(fetcher)).toHaveLength(1);
+ await act(async () => push({ revision: 1 }));
+ await settle();
+ expect(reads(fetcher)).toHaveLength(2);
+ expect(given.host.querySelectorAll('[data-feed-id]')).toHaveLength(2);
+ });
+});
diff --git a/frontend/test/react/follow-detail.test.tsx b/frontend/test/react/follow-detail.test.tsx
index 28bc7bd99..1fd12950a 100644
--- a/frontend/test/react/follow-detail.test.tsx
+++ b/frontend/test/react/follow-detail.test.tsx
@@ -34,10 +34,8 @@ const image = (index: number, extra: Record<string, unknown> = {}) => ({
function helpers(patch: Partial<FollowFeedHelpers> = {}): FollowFeedHelpers {
return {
- sourceIcon: (provider) => `<img alt="${provider}">`, authorAvatar: () => '', authorName: () => '',
- identity: () => ({ author: '作者', avatar: '<span>作</span>', credited: '' }), workMark: () => '', titleMarks: () => '',
- badges: () => '', mediaIssue: () => '', when: (shown) => String(shown.published_at || ''), tagLabel: (tag) => tag,
- wireDrag: vi.fn(), wireScroller: vi.fn(), learnDims: vi.fn(), listSkeletonHtml: () => '', jobProgress: vi.fn(),
+ workMark: () => '', tagLabel: (tag) => tag,
+ wireDrag: vi.fn(), wireScroller: vi.fn(), listSkeletonHtml: () => '', jobProgress: vi.fn(),
...patch,
};
}
@@ -115,10 +113,10 @@ describe('侧栏', () => {
});
it('来源外链、网盘链接与下载键;发布者与署名作者不同才写', async () => {
- const { host } = await show(data(item(2, {
+ const { host } = await show({ ...data(item(2, {
url: 'https://example.invalid/post/2', author: 'Poster',
resource_urls: ['https://gofile.io/d/a', 'https://mega.nz/folder/b', 'https://files.example.org/c'],
- })));
+ })), sources: [{ id: 1, provider: 'kemono', author_name: '作者' }] });
const origin = host.querySelector('[data-follow-origin]')!;
expect([origin.getAttribute('title'), origin.getAttribute('aria-label'), origin.getAttribute('href')])
.toEqual(['打开来源页面', '打开来源页面', 'https://example.invalid/post/2']);
@@ -130,11 +128,9 @@ describe('侧栏', () => {
expect(host.querySelector('[data-follow-detail-identity] > div')?.textContent).toBe('作者发布者 Poster');
});
- it('壳判出的媒体提示原样画在侧栏里', async () => {
- const note = 'F95 的附件要登录后才看得到,去来源页面打开。';
- const { host } = await show(data(item(3, { playable: false, media_kind: 'external' })),
- { helpers: helpers({ mediaIssue: () => note }) });
- expect(host.querySelector('[data-follow-media-issue]:not([hidden])')?.textContent).toBe(note);
+ it('媒体没取回来的原因画在侧栏里', async () => {
+ const { host } = await show(data(item(3, { playable: false, media_kind: 'external', media_error: '附件要登录' })));
+ expect(host.querySelector('[data-follow-media-issue]:not([hidden])')?.textContent).toBe('媒体未取得:附件要登录');
});
});
diff --git a/frontend/test/react/follow-feed.test.tsx b/frontend/test/react/follow-feed.test.tsx
index f8980ae78..902d96327 100644
--- a/frontend/test/react/follow-feed.test.tsx
+++ b/frontend/test/react/follow-feed.test.tsx
@@ -13,9 +13,15 @@ import {
type FollowPage, type FollowSource, type FollowStackInfo, type FollowView,
} from '../../src/react/follow-feed/follow-feed';
import { FollowFeedPage } from '../../src/react/follow-feed/follow-feed-page';
+import { learnFollowDims } from '../../src/react/follow-feed/follow-marks';
import { queryClient } from '../../src/react/query';
import { click, mount, settle } from './render';
+/* 回写尺寸那一批由 `follow-marks.test.ts` 量;这里只看卡片在什么时候报。 */
+vi.mock(import('../../src/react/follow-feed/follow-marks'), async (importOriginal) => ({
+ ...(await importOriginal()), learnFollowDims: vi.fn(),
+}));
+
afterEach(() => { queryClient.clear() });
notifyManager.setScheduler((notify) => notify());
@@ -173,11 +179,8 @@ describe('写完换缓存里的局部', () => {
function helpers(): FollowFeedHelpers {
return {
- sourceIcon: (provider) => `<img alt="${provider}">`, authorAvatar: (list) => `<span>${String(list[0]?.author_key).slice(5, 6)}</span>`,
- authorName: (list) => String(list[0]?.author_key || '').slice(5), identity: (shown) => ({ author: `作者 ${shown.id}`, avatar: '', credited: '' }),
- workMark: (row) => row[1].slice(0, 2), titleMarks: () => '', badges: () => '', mediaIssue: () => '',
- when: (shown) => String(shown.published_at || ''), tagLabel: (tag) => tag, wireDrag: vi.fn(), wireScroller: vi.fn(),
- learnDims: vi.fn(), listSkeletonHtml: () => '<div data-test-skeleton>骨架</div>', jobProgress: vi.fn(),
+ workMark: (row) => row[1].slice(0, 2), tagLabel: (tag) => tag, wireDrag: vi.fn(), wireScroller: vi.fn(),
+ listSkeletonHtml: () => '<div data-test-skeleton>骨架</div>', jobProgress: vi.fn(),
};
}
@@ -434,14 +437,16 @@ describe('页面', () => {
Object.defineProperty(element, 'naturalHeight', { value: 500 });
await act(async () => { element.dispatchEvent(new Event('load')) });
};
+ const learn = vi.mocked(learnFollowDims);
+ learn.mockClear();
await load(image(3));
- expect(given.helpers.learnDims).toHaveBeenCalledWith(3, null, 300, 500);
+ expect(learn).toHaveBeenCalledWith(3, null, 300, 500);
await load(image(2));
- expect(given.helpers.learnDims).toHaveBeenCalledTimes(1);
+ expect(learn).toHaveBeenCalledTimes(1);
await act(async () => push({ view: view() }));
await settle();
await load(image(1));
- expect(given.helpers.learnDims).toHaveBeenCalledTimes(1);
+ expect(learn).toHaveBeenCalledTimes(1);
});
it('「仅显示图片」只在图片视图出现,点下交给壳存偏好', async () => {
diff --git a/frontend/test/react/follow-marks.test.ts b/frontend/test/react/follow-marks.test.ts
new file mode 100644
index 000000000..541a01401
--- /dev/null
+++ b/frontend/test/react/follow-marks.test.ts
@@ -0,0 +1,135 @@
+/* 关注卡片与详情共用的署名、头像、来源图标与几处字样(`follow-marks.ts`)。
+ *
+ * 拼出来的是 HTML 串,这里按串比:卡片和详情直接把它摆进去,类名与 `data-drop` 一族属性就是
+ * 遗留样式与图片回落接得上的那个契约。 */
+import { afterEach, describe, expect, it, vi } from 'vitest';
+
+import type { FollowContext, FollowGroup, FollowItem, FollowSource } from '../../src/react/follow-feed/follow-feed';
+import {
+ authorAvatarHtml, followAuthorName, followBadges, followIdentity, followMediaIssue, followTitleMarks, followWhen,
+ learnFollowDims, sourceIcon,
+} from '../../src/react/follow-feed/follow-marks';
+
+const item = (id: number, extra: Partial<FollowItem> = {}): FollowItem =>
+ ({ id, title: `更新 ${id}`, status: 'new', provider: 'kemono', provider_label: 'Kemono', ...extra });
+const group = (primary: FollowItem, extra: Partial<FollowGroup> = {}): FollowGroup =>
+ ({ primary, variants: [], duplicates: [], ...extra });
+const source = (id: number, extra: Partial<FollowSource> = {}): FollowSource =>
+ ({ id, provider: 'kemono', provider_label: 'Kemono', ...extra });
+const context = (extra: Partial<FollowContext> = {}): FollowContext =>
+ ({ sources: [], aliases: [], credentials: new Set(), ...extra });
+
+afterEach(() => { vi.useRealTimers(); vi.unstubAllGlobals() });
+
+describe('来源图标', () => {
+ it('登记过的站出本机那枚图,取不到就撤掉;没登记的站是空串', () => {
+ expect(sourceIcon('kemono')).toBe(
+ '<img class="ficon" src="/source-icon?provider=kemono" alt="" loading="lazy" data-drop="self">');
+ expect(sourceIcon('f95zone', 'F95 <zone>')).toBe('<img class="ficon" src="/source-icon?provider=f95zone" '
+ + 'alt="F95 &lt;zone&gt;" title="F95 &lt;zone&gt;" loading="lazy" data-drop="self">');
+ expect(sourceIcon('nowhere', '某站')).toBe('');
+ });
+});
+
+describe('创作者', () => {
+ it('名字按别名合并后的统称、官方来源的写法依次取', () => {
+ const sources = [source(1, { author_key: 'name:lazy', label: 'lazyprocrastinator · fanbox' }),
+ source(2, { author_key: 'name:lazy', label: 'LazyProcrastinator Collection', official_avatar_url: '/a.png' })];
+ expect(followAuthorName(sources, context())).toBe('LazyProcrastinator');
+ expect(followAuthorName(sources, context({
+ aliases: [{ canonical_key: 'lazy', canonical_name: 'Lazy P', aliases: [] }] }))).toBe('Lazy P');
+ /* F95 的标签是整个线程标题:哪段是人名由服务端判(`author_name`),页面不自己解析。 */
+ expect(followAuthorName([source(3, { label: 'Strauzek Collection [2026-09-04] [Mr_Strauz]',
+ author_name: 'Mr_Strauz' })], context())).toBe('Mr_Strauz');
+ });
+
+ it('头像官方优先、归档站回退,回落链与首字母写在属性上;都没有就是首字母那一格', () => {
+ const both = [source(1, { avatar_url: '/mirror.png' }), source(2, { official_avatar_url: '/official.png' })];
+ expect(authorAvatarHtml(both, 'kou')).toBe('<img class="favatar" src="/official.png" alt="" loading="lazy" '
+ + 'referrerpolicy="no-referrer" data-drop="initial" data-fallbacks="/mirror.png" data-initial="K" '
+ + 'data-drop-class="favatar none">');
+ expect(authorAvatarHtml([source(1, { avatar_url: '/mirror.png' })], '初音')).not.toContain('data-fallbacks');
+ expect(authorAvatarHtml([], '初音')).toBe('<span class="favatar none" title="没有可用头像">初</span>');
+ });
+
+ it('booru 帖子认出发布者时署发布者,被关注者退成「署名含」;发布者没关注过就只出首字母', () => {
+ const followed = [source(1, { author_key: 'name:kou', author_name: 'kou', avatar_url: '/kou.png' })];
+ const poster = source(2, { ref: 'Poster_One', author_key: 'name:poster', author_name: 'Poster One' });
+ const credited = item(3, { credit: { poster: 'poster-one', credited: 'kou' } });
+ const known = followIdentity(credited, followed, context({ sources: [...followed, poster] }));
+ expect(known).toEqual({ author: 'Poster One', avatar: '<span class="favatar none" title="没有可用头像">P</span>',
+ credited: 'kou' });
+ const stranger = followIdentity(item(4, { credit: { poster: 'someone' } }), followed, context({ sources: followed }));
+ expect(stranger.author).toBe('someone');
+ expect(stranger.avatar).toBe('<span class="favatar none" title="没有可用头像">S</span>');
+ const plain = followIdentity(item(5), followed, context());
+ expect(plain.author).toBe('kou');
+ expect(plain.avatar).toContain('src="/kou.png"');
+ expect(followIdentity(item(6, { author: '帖子作者' }), [], context()).author).toBe('帖子作者');
+ expect(followIdentity(item(7), [], context()).author).toBe('创作者未取得');
+ });
+});
+
+describe('标题前后的字样', () => {
+ it('WIP 说这一条,同组有 WIP 说「含」;版本与声音版本各一枚', () => {
+ expect(followTitleMarks(group(item(1, { variant_kind: 'wip' })))).toBe(
+ '<small class="javedition followmark wip">WIP</small>');
+ const shown = item(2, { audio: 'voiced' });
+ expect(followTitleMarks(group(item(1, { version: 'v<2>' }), { has_wip: true }), shown)).toBe(
+ '<small class="javedition followmark wip partial">含 WIP</small>'
+ + '<small class="javedition followmark ver">v&lt;2&gt;</small>'
+ + '<small class="javedition followmark voiced">配音版</small>');
+ expect(followTitleMarks(group(item(1)), item(3, { audio: 'silent' }))).toContain('followmark silent">无声版');
+ expect(followTitleMarks(group(item(1)))).toBe('');
+ });
+
+ it('另见相对卡面这一条:列别的站,没登记图标的写站名', () => {
+ const primary = item(1, { provider: 'patreon', provider_label: 'Patreon' });
+ const mirror = item(2);
+ const forum = item(3, { provider: 'somewhere', provider_label: '某论坛' });
+ const badges = followBadges(group(primary, { duplicates: [mirror, forum] }), primary);
+ expect(badges).toBe('<span class="fbadge dup" title="另见 Kemono、某论坛">另见 '
+ + '<img class="ficon" src="/source-icon?provider=kemono" alt="Kemono" title="Kemono" loading="lazy" data-drop="self">'
+ + '<span>某论坛</span></span>');
+ expect(followBadges(group(primary, { duplicates: [mirror] }), mirror)).toContain('另见 Patreon');
+ expect(followBadges(group(primary))).toBe('');
+ });
+
+ it('媒体未取得说清原因;缺 F95 会话时分「部分」与「全部」', () => {
+ expect(followMediaIssue(item(1, { media_error: '404' }), context())).toBe('媒体未取得:404');
+ const needs = item(2, { provider: 'f95zone', media_needs_credential: true });
+ expect(followMediaIssue(needs, context())).toBe('媒体未取得:需要 F95 登录会话解析');
+ expect(followMediaIssue({ ...needs, playable: true }, context())).toBe('部分媒体未取得:需要 F95 登录会话解析');
+ expect(followMediaIssue(needs, context({ credentials: new Set(['f95zone']) }))).toBe('');
+ });
+
+ it('时间按本机时区写,没给就明说,不加「约」', () => {
+ expect(followWhen(item(1))).toBe('时间未取得');
+ const when = followWhen(item(2, { published_at: '2026-09-04T00:00:00Z' }));
+ expect(when).toMatch(/^\d{4}-\d\d-\d\d \d\d:\d\d$/);
+ expect(when).not.toContain('约');
+ /* 账本存 UTC:没带时区标记的串也按 UTC 读,不按本机时区读,否则 UTC+8 的人每个时间都早 8 小时。 */
+ expect(followWhen(item(3, { published_at: '2026-09-04T00:00:00' }))).toBe(when);
+ });
+});
+
+describe('回写图片尺寸', () => {
+ it('同一张图一次会话只报一次,攒 800ms 一批发出去,失败不出声', async () => {
+ vi.useFakeTimers();
+ const fetch = vi.fn(async () => new Response('{}', { status: 409 }));
+ vi.stubGlobal('fetch', fetch);
+ learnFollowDims(9001, null, 300, 500);
+ learnFollowDims(9001, null, 300, 500);
+ learnFollowDims(9002, 1, 640, 480);
+ expect(fetch).not.toHaveBeenCalled();
+ await vi.advanceTimersByTimeAsync(800);
+ expect(fetch).toHaveBeenCalledTimes(1);
+ const [url, init] = fetch.mock.calls[0] as unknown as [string, RequestInit];
+ expect(url).toBe('/api/follow/image-dims');
+ expect(JSON.parse(String(init.body))).toEqual({ entries: [
+ { item: 9001, width: 300, height: 500 }, { item: 9002, width: 640, height: 480, media: 1 }] });
+ learnFollowDims(9001, null, 300, 500);
+ await vi.advanceTimersByTimeAsync(800);
+ expect(fetch).toHaveBeenCalledTimes(1);
+ });
+});
diff --git a/tests/test_follow_assets.py b/tests/test_follow_assets.py
index 3ed173205..290ec5a8d 100644
--- a/tests/test_follow_assets.py
+++ b/tests/test_follow_assets.py
@@ -318,13 +318,15 @@ class SourceIconTableTests(unittest.TestCase):
"""页面只认名单、服务端只认地址:两边各写一份就会漂,漂了就是一格空白。"""
for provider, url in follow_assets.SOURCE_ICON_URLS.items():
self.assertTrue(url.startswith("https://"), (provider, url))
- page = (Path(__file__).resolve().parents[1] / "web" / "app.js").read_text(encoding="utf-8")
- raw = re.search(r"const SOURCE_ICON_PROVIDERS=new Set\(\[(.*?)\]\);", page, re.S).group(1)
+ root = Path(__file__).resolve().parents[1]
+ listing = (root / "frontend" / "src" / "react" / "follow-manage" / "follow-manage.ts").read_text(encoding="utf-8")
+ raw = re.search(r"export const SOURCE_ICON_PROVIDERS = new Set\(\[(.*?)\]\);", listing, re.S).group(1)
listed = {item.strip().strip("'") for item in raw.split(",") if item.strip()}
self.assertEqual(listed, set(follow_assets.SOURCE_ICON_URLS))
- # 页面里不再有任何一条站点图标的远端地址:图标全部经 Peach 落盘后再给页面。
- self.assertNotIn("favicon.ico'", page)
- self.assertIn("src=\"/source-icon?provider=${encodeURIComponent(provider)}\"", page)
+ # 页面里没有任何一条站点图标的远端地址:图标全部经 Peach 落盘后再给页面,
+ # 图标地址怎么拼在 `frontend/test/react/follow-marks.test.ts`。
+ for page in (listing, (root / "web" / "app.js").read_text(encoding="utf-8")):
+ self.assertNotIn("favicon.ico'", page)
if __name__ == "__main__":
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index ce2ebd782..8cca8773c 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -3127,19 +3127,6 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertIn('<Table aria-label="关注来源"', sources)
self.assertIn('<TableBody renderEmptyState={() => \'这一页没有来源\'}>', sources)
- def test_follow_source_icons_fail_back_to_plain_text(self):
- """图标由服务端取回落盘(follow_assets.SOURCE_ICON_URLS),页面只认名单、只请求本机。"""
- icons = self.page.split("const SOURCE_ICON_PROVIDERS=new Set([", 1)[1].split("]);", 1)[0]
- for provider in ("kemono", "pawchive", "simpcity"):
- self.assertIn(f"'{provider}'", icons)
- self.assertNotIn("https://", icons)
- self.assertPageContains(
- 'src="/source-icon?provider=${encodeURIComponent(provider)}" alt="${esc(label)}"'
- '${label?` title="${esc(label)}"`:\'\'} loading="lazy" data-drop="self"')
- # 取不到图标就把 <img> 摘掉,露出纯文字;收场动作由 image-fallback 的
- # 委托监听执行,模板里只声明 `data-drop`。
- self.assertPageContains('data-drop="self"')
-
def test_follow_watch_filters_use_the_source_identity(self):
# 判定本身搬去了服务端(见 FollowContractTests 里的筛选用例);页面这一侧要
# 保证的是把身份原样交出去,而不是把显示名或来源标签当筛选值送过去。
@@ -3158,9 +3145,7 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains("+(followTags.size?`&tag=${encodeURIComponent([...followTags].join(','))}`:'')")
def test_follow_cards_use_author_avatars_and_open_details_inside_peach(self):
- # 卡片本身归 `follow-feed` 岛:头像取壳的 `followAuthorAvatar`,点卡交给壳开详情。
- self.assertPageContains(
- "authorAvatar:(sources,context)=>followAuthorAvatar(sources,followAuthorName(sources,context.aliases)),")
+ # 卡片本身归 `follow-feed` 岛,头像与署名在岛里(`follow-marks.test.ts`);点卡交给壳开详情。
self.assertPageContains("openDetail:id=>openFollowDetail(id),")
self.assertNotIn(
'class="mav fsourceavatar" title="${esc(item.provider_label)}">${sourceIcon(item.provider)}',
@@ -3168,7 +3153,6 @@ class FollowWebSourceTests(unittest.TestCase):
)
self.assertPageContains("async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=false)")
self.assertNotIn('打开来源页面</a>', self.page)
- self.assertPageContains("followAuthorAvatar(authorSources,name)")
self.assertNotIn('class="cardopenhit" href=', self.page)
self.assertNotIn('class="fcollectionthumb" href=', self.page)
self.assertPageContains("route(followDetailReturnPath||'/follow')")
@@ -3203,29 +3187,6 @@ class FollowWebSourceTests(unittest.TestCase):
if management in watch:
self.fail(f"看的那一页不应出现管理控件:{management!r}")
- def test_times_are_rendered_in_the_viewer_timezone_not_raw_utc(self):
- # 账本存 UTC;直接把那串字面量印出来,UTC+8 的人看到的每个时间都早 8 小时。
- self.assertPageContains("function localTime(iso)")
- self.assertPageContains("new Date(text)")
- self.assertPageContains("when.getHours()")
- page = self.page
- body = page[page.index("function followWhen("):page.index("function followBadges(")]
- self.assertNotIn(".replace('T',' ').slice(0,16)", body)
-
- def test_approximate_timestamps_keep_precision_without_the_visible_prefix(self):
- # 精度留在 API,列表按用户要求不显示「约」。
- body = self.page[self.page.index("function followWhen("):
- self.page.index("function followBadges(")]
- self.assertNotIn("约 ${text}", body)
- self.assertIn("return text", body)
-
- def test_cross_site_duplicates_are_shown_as_another_source(self):
- self.assertPageContains("另见 ")
- self.assertPageContains("fbadge dup")
-
- def test_wip_has_its_own_badge(self):
- self.assertPageContains('<small class="javedition followmark wip">WIP</small>')
-
def test_network_check_is_an_explicit_button_not_an_auto_refresh(self):
# 联网只发生在按下「检查全部」的那一刻(`frontend/test/react/follow-manage.test.tsx`)。
# 「换一批」自动刷新绝不能顺手触发一次联网检查。这件事现在由路由表上的
@@ -3351,8 +3312,7 @@ class FollowWebSourceTests(unittest.TestCase):
row = {"entity_id": None, "entity_name": None, "provider": "f95zone",
"ref": "63802", "label": "Strauzek Collection [2026-09-04] [Mr_Strauz]"}
self.assertEqual(web_follow._author_display_name(row), "Mr_Strauz")
- # 页面不再自己解析标签,那份口径只在服务端一处。
- self.assertPageContains("source.author_name")
+ # 页面不自己解析标签,只认服务端给的 `author_name`(`frontend/test/react/follow-marks.test.ts`)。
def test_the_card_in_the_opening_post_suggests_the_other_spelling(self):
"""`strauzek` 与 `Mr_Strauz` 是同一张名片上并列的两个写法。
@@ -3444,17 +3404,13 @@ class FollowWebSourceTests(unittest.TestCase):
"""`2B Camp [4K]` 判的是 alt,只因为同组还有一条 `[WIP]` 就挂上 WIP。
`has_wip` 是组属性(`any(item.variant_kind == "wip" for item in self.variants)`),
- 角标却贴在主条目标题旁边,读起来就是「这一条是半成品」。
+ 角标却贴在主条目标题旁边,读起来就是「这一条是半成品」。哪一条挂哪枚字样由
+ `frontend/test/react/follow-marks.test.ts` 量;这里只管「含 WIP」弱化的那一笔样式。
"""
- self.assertPageContains(
- "if(group.primary.variant_kind==='wip')marks.push('<small class=\"javedition followmark wip\">WIP</small>');")
- self.assertPageContains(
- "else if(group.has_wip)marks.push('<small class=\"javedition followmark wip partial\">含 WIP</small>');")
self.assertPageContains(".javedition.followmark.wip.partial{color:var(--muted)}")
def test_only_actionable_media_failures_enter_the_information_stream(self):
- self.assertPageContains("媒体未取得:需要 F95 登录会话解析")
- self.assertPageContains("部分媒体未取得:需要 F95 登录会话解析")
+ # 能动手的那两句(缺 F95 会话时分「部分」与「全部」)由 `follow-marks.test.ts` 量。
self.assertPageLacks("已显示可读取附件;F95 登录会话已保存")
self.assertPageLacks("这条旧记录的受保护资源会在下次检查重新解析")
self.assertPageLacks("个外部文件页;视频列表未取得")
diff --git a/tests/test_source_assertion_ratchet.py b/tests/test_source_assertion_ratchet.py
index d4c784de3..0f9988e97 100644
--- a/tests/test_source_assertion_ratchet.py
+++ b/tests/test_source_assertion_ratchet.py
@@ -38,8 +38,8 @@ BASELINE: dict[str, int] = {
"test_desktop_settings.py": 5,
"test_face_detect.py": 3,
"test_fastapi_api.py": 4,
- "test_follow_assets.py": 2,
- "test_follow_web.py": 154,
+ "test_follow_assets.py": 1,
+ "test_follow_web.py": 134,
"test_frontend_build.py": 80,
"test_job_status.py": 3,
"test_metadata_library.py": 7,
@@ -53,7 +53,7 @@ BASELINE: dict[str, int] = {
"test_web_e2e.py": 2,
"test_web_js.py": 1,
"test_web_settings.py": 5,
- "test_web_ui.py": 2606,
+ "test_web_ui.py": 2604,
"test_windows_update.py": 3,
}
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 45cabc961..872b04912 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -3368,15 +3368,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertNotIn(".vjs-volume-tooltip", board_css)
# 提示本身的配色与字号由 `frontend/e2e/design.test.ts` 读计算样式。
- def test_follow_image_cards_learn_their_ratio_in_quiet_batches(self):
- """图片墙按卡片高度分列,图落地前就要知道比例,否则每张加载完整墙重排。
-
- 哪张卡占位、哪张卡加载完回写由 `follow-feed` 岛判定(`follow-feed.test.tsx`);
- 回写归壳:学习是顺手的事,攒一批再发,失败静默,同一张这次会话只报一次。
- """
- self.assertPageContains("api('/api/follow/image-dims',{method:'POST',body:JSON.stringify({entries})}).catch(()=>{});")
- self.assertPageContains("if(followDimsReported.has(key))return;")
-
def test_immerse_mode_has_loading_state_and_full_viewport_cover(self):
self.assertPageContains('id="tokLoader"')
self.assertPageContains("$('#tokLoader').insertAdjacentHTML('afterbegin',spinnerHtml('媒体加载中'))")
diff --git a/web/app.js b/web/app.js
index d8216d03c..3467ecc07 100644
--- a/web/app.js
+++ b/web/app.js
@@ -64,7 +64,6 @@ wireImageFallbacks(document.body);
不再落在 TDZ 里。 */
let state;
let homeHasFeed=null;
-const feedRequests=new WeakMap();
const selected=new Set(),followSelected=new Set();
let barsRequestSeq=0,barsDataCache=null,barsDataAt=0,barsDataPromise=null;
// 顶部三层与抽屉上一次画的是哪一份:口径加数据,两样都没变就不必再画一遍。
@@ -429,9 +428,7 @@ const claimSurface=path=>{
if(!isProcessingNoticePath(path))unmountIsland($('#libraryProcessingNotice'));
/* 首页那一行新作同样只属于目录页。管理区的入口不经过 `showHomeSurfaces`,离开目录页时
在这里收起并清空,连同它的自动滚动一起停掉。 */
- if(!isFeedNewPath(path)){const feed=$('#feedNew');
- feed.querySelectorAll('.feednewrow').forEach(stopAutoScroll);feed.hidden=true;feed.innerHTML='';
- feed.removeAttribute('aria-busy')}
+ if(!isFeedNewPath(path))clearHomeFeed();
/* 管理区正文的容器每次换页都经过这里,所以卸载也落在这里。React 档的页面是一棵自己
管取数的根:不卸掉它,离开之后那棵根还活着,有轮询的页面照着原节律继续敲库。
没挂过东西的容器 unmountIsland 直接返回,逐页判断反而会漏掉新迁过来的那一页。 */
@@ -2576,20 +2573,6 @@ function feedNewCardHtml(item){
不占的话,那一行在资料卡和作品之间凭空插进来,把下面整个作品网格往下推一截。
封面格直接挂 `imgwait`,微光与真卡等封面时是同一层。 */
const FEED_SKELETON_CARDS=8;
-const FEED_COVER_WAIT=1500;
-/* 把一段 HTML 里头 `count` 张图先取进缓存,最多等 `ms` 毫秒。插进页面时它们已经
- `complete`,`watchPendingImages` 不再给它们挂微光。 */
-function preloadImages(html,count,ms){
- const probe=document.createElement('template');
- probe.innerHTML=html;
- const loads=[...probe.content.querySelectorAll('img[src]')].slice(0,count).map(source=>{
- const img=new Image();
- img.referrerPolicy=source.getAttribute('referrerpolicy')||'';
- img.src=source.getAttribute('src');
- return img.decode().catch(()=>{});
- });
- return Promise.race([Promise.all(loads),new Promise(resolve=>setTimeout(resolve,ms))]);
-}
const feedNewSkeletonHtml=()=>`<div class="feednewrow srow" aria-hidden="true">${
`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${COVER_FRONT_RATIO}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
@@ -2610,7 +2593,8 @@ async function loadEntityShapes(){
return entityShapes;
}
function prepareHomeFeed(host){
- if(!host||host.querySelector('[data-feed-id]'))return;
+ // 岛一挂上,宿主就归它:骨架只在挂载之前铺,之后由岛画的那一行或空着说话。
+ if(!host||islandMounted(host)||host.querySelector('[data-feed-id]'))return;
host.hidden=homeHasFeed!==true;
if(homeHasFeed!==true)return;
host.setAttribute('aria-busy','true');
@@ -2640,62 +2624,43 @@ function feedRowHtml(data){
return feedNetworkNote(data?.cover_network,items)
+`<div class="feednewrow srow">${items.map(feedNewCardHtml).join('')}</div>`;
}
-/* 拉取由定时器做,页面只读已经发现的那些:进这一页顺手发一轮请求,等于把用户的每次
- 刷新都变成对别人服务器的一次拉取,而订阅的间隔本来就是按天算的。 */
-async function loadFeedNew(entityId,preload){
- const query=new URLSearchParams({limit:'12'});
- if(entityId)query.set('entity',String(entityId));
- const data=await api('/api/feeds/discoveries?'+query).catch(()=>null);
- const items=data&&!data.error?(data.items||[]):[];
- const html=feedRowHtml(data);
- // 骨架还占着时,先把头几张封面取到手再整行换掉:否则骨架退场、真卡进来,封面格里
- // 又是一轮微光,同一行等了两遍。慢的那几张不等满,到点照换,剩下的留给卡片自己的等待态。
- if(preload&&items.length)await preloadImages(html,FEED_SKELETON_CARDS,FEED_COVER_WAIT);
- return {items,html};
+/* 新作那一行:拖动、滚轮,按设置接自动滚动。首页与资料页两行同一份。 */
+function wireFeedNewRow(row){
+ if(!row)return;
+ wireDrag(row);
+ if(appSettings.feedAutoScroll)wireAutoScroll(row);
}
-/* 首页那一行。资料页那一行在资料页的岛里(`entity-page`),整段 HTML 同样出自 `feedRowHtml`。 */
+/* 首页那一行归 `feed-new` 岛(`frontend/src/react/feed-new/`),与资料页那一行同一个组件、同一族
+ 查询键:取数、换掉骨架、卡上那两颗键都在岛里。壳留骨架、宿主和它什么时候在场。
+ 合集开关改了、或人在目录页里换了一次筛选,都换一个代次推过去,岛见它变了就重取;资料页那
+ 一行收的是同一个代次。 */
function isFeedNewPath(path){return isCatalogPath(path)&&path!=='/junk-files'}
/* 处理横幅同样只挂在首页那几条名单上。垃圾文件也是目录路径,但它是数据管理底下的一页,
顶上是管理区的 tabs,库里那趟任务的进度与下场归数据管理首页那张卡。 */
function isProcessingNoticePath(path){return isCatalogPath(path)&&path!=='/junk-files'}
-async function renderFeedNew(host,entityId){
- if(!host)return;
- const request={},surface=surfaceToken(surfacePath());
- feedRequests.set(host,request);
- host.dataset.feedEntity=entityId?String(entityId):'';
- const {items,html}=await loadFeedNew(entityId,host.getAttribute('aria-busy')==='true');
- // 取数期间人已经离开了这一页:首页那一行不画到管理区上。
- if(!host.isConnected||feedRequests.get(host)!==request||!surfaceCurrent(surface)
- ||host.id==='feedNew'&&!isFeedNewPath(location.pathname))return;
- if(host.id==='feedNew')homeHasFeed=items.length>0;
- host.removeAttribute('aria-busy');
- if(!items.length){host.hidden=true;host.innerHTML='';return}
- host.hidden=false;
- host.innerHTML=html;
- host.querySelectorAll('[data-feed-action]').forEach(button=>button.onclick=async()=>{
- const card=button.closest('[data-feed-id]');
- const action=button.dataset.feedAction;
- await api('/api/feeds/discovery',{method:'POST',
- body:JSON.stringify({action,ids:[Number(card.dataset.feedId)]})}).catch(()=>null);
- // 忽略的那条当场消失,已看过的留在原位只是变淡:已读是标记,不是关掉。
- if(action==='ignore')card.remove();else card.classList.add('isread');
- if(!host.querySelector('[data-feed-id]')){host.hidden=true;if(host.id==='feedNew')homeHasFeed=false}
- });
- const row=host.querySelector('.feednewrow');
- wireDrag(row);
- if(appSettings.feedAutoScroll)wireAutoScroll(row);
+let feedRevision=0;
+const feedNewHelpers={feedRowHtml,wireFeedRow:row=>wireFeedNewRow(row)};
+const feedNewActions={settled:hasItems=>{homeHasFeed=hasItems}};
+function renderHomeFeed(){
+ const host=$('#feedNew');
+ if(islandMounted(host)){updateIsland(host,{revision:++feedRevision});return}
+ prepareHomeFeed(host);
+ /* 这一行不随筛选变,判在不在场只看路径:换筛选换掉的是目录的代次,不该把它这一趟作废。 */
+ void mountIsland('feed-new',host,{host,revision:feedRevision,helpers:feedNewHelpers,actions:feedNewActions},
+ {isCurrent:()=>isFeedNewPath(location.pathname)});
+}
+/* 离开目录页时收起并清空,连同它的自动滚动一起停掉。岛还没画出来时宿主里是骨架,一起清。 */
+function clearHomeFeed(){
+ const host=$('#feedNew');
+ host.querySelectorAll('.feednewrow').forEach(stopAutoScroll);
+ unmountIsland(host);
+ host.hidden=true;host.innerHTML='';host.removeAttribute('aria-busy');
}
-/* 合集开关改了,页面上已经画过的那几行照新的筛法重取一遍。资料页那一行归岛,壳记一个代次
- 推过去,岛见它变了就重取。 */
-let entityFeedRevision=0;
function refreshFeedRows(){
- // 首页那一行只在目录页出现,人不在那儿时不替它重取,否则会在别的页面上冒出来。
- document.querySelectorAll('.feednew[data-feed-entity]').forEach(host=>{
- if(host.id==='feedNew'&&!isFeedNewPath(location.pathname))return;
- void renderFeedNew(host,Number(host.dataset.feedEntity)||undefined);
- });
- // 资料页那一行在资料页的岛里:换一个代次,岛重取这一位的新作。
- pushEntityPage({feedRevision:++entityFeedRevision});
+ feedRevision+=1;
+ // 首页那一行只在目录页挂着,人不在那儿时 `updateIsland` 是空操作,不会在别的页面上冒出来。
+ updateIsland($('#feedNew'),{revision:feedRevision});
+ pushEntityPage({feedRevision});
}
/* 设置里开关自动滚动,页面上已经摆着的那几行当场跟着停或走,不等下一次重画。 */
function syncFeedAutoScroll(){
@@ -3000,78 +2965,9 @@ const followPageUrl=offset=>
卡片和详情面板上都还能把一条标成已看。 */
const FOLLOW_FILTERS=[['','全部'],['new','未看'],['saved','已保存'],['ignored','已忽略']];
-/* 账本里一律存 UTC(ISO 带 Z),界面要按看的人所在时区显示。
- 直接把那串字面量印出来的话,UTC+8 的人看到的每个时间都早 8 小时。 */
-function localTime(iso){
- if(!iso)return '';
- // 没有时区标记的按 UTC 解释——存进去的时候就是 UTC。
- const text=/[Zz]|[+-]\d\d:?\d\d$/.test(iso)?iso:iso+'Z';
- const when=new Date(text);
- if(isNaN(when))return String(iso).replace('T',' ').slice(0,16);
- const pad=n=>String(n).padStart(2,'0');
- return `${when.getFullYear()}-${pad(when.getMonth()+1)}-${pad(when.getDate())} `
- +`${pad(when.getHours())}:${pad(when.getMinutes())}`;
-}
-
-/* 版式切换只翻容器上的一个属性、不重画列表,所以「去掉年份」不能靠换一次格式化,
- 得让同一份 DOM 两种显示:年份单独包一层,由 CSS 在紧凑版式里收掉。 */
-function localTimeHtml(iso){
- const text=localTime(iso);
- return /^\d{4}-/.test(text)
- ? `<i class="fyear">${esc(text.slice(0,5))}</i>${esc(text.slice(5,10))}<span class="fclock">${esc(text.slice(10))}</span>`
- : esc(text);
-}
-
-function followWhen(item){
- const raw=item.published_at||'';
- if(!raw)return '时间未取得';
- const text=localTime(raw);
- // 精度仍保留在 API;列表按用户要求不再给近似时间加「约」前缀。
- return text;
-}
-
/* 卡片、详情、筛选条和在线标签页都只消费服务端的内容标签投影。过滤只维护一份,
原始来源标签仍完整留在 metadata。 */
const followCardTags=item=>item.tags||[];
-/* 正文不报组里有几条:条数只由封面角标报一次,数的是合并了几个媒体(`followStack`)。 */
-/* 说「这一条是哪个版本」的字样排在标题前面,与主页标题里的版次字样同一个控件,扫标题
- 时就分得出来。WIP 说的是这一条,不是这一组:`2B Camp [4K]` 判的是 alt,只因为同组
- 还有一条 `[WIP]` 就在它头上挂 WIP,读起来就成了「这一条是半成品」;同组有 WIP 仍然
- 要说,但要说成「含」。声音版本说的是卡面这一条:同一段动画的无声原片与配音重发常在
- 同一个流里前后出现,配音版着色、无声版弱化加虚线框,两者一眼分开。 */
-function followTitleMarks(group,shown=group.primary){
- const marks=[];
- if(group.primary.variant_kind==='wip')marks.push('<small class="javedition followmark wip">WIP</small>');
- else if(group.has_wip)marks.push('<small class="javedition followmark wip partial">含 WIP</small>');
- if(group.primary.version)marks.push(`<small class="javedition followmark ver">${esc(group.primary.version)}</small>`);
- const audio={voiced:'配音版',silent:'无声版'}[shown.audio];
- if(audio)marks.push(`<small class="javedition followmark ${shown.audio}">${audio}</small>`);
- return marks.join('');
-}
-
-function followBadges(group,shown=group.primary){
- const badges=[];
- /* 另见的站用站点图标列出,站名落在图标的 alt 与徽章的 title 上;没登记图标的站写站名。
- 「另见」相对卡面这一条(`shown`)说:主条目没有当前视图的媒体时,卡面换成组里别的站
- 那条,这时主条目的站才是另见,卡面自己的站不再列。 */
- const sites=new Map([group.primary,...group.variants,...group.duplicates]
- .filter(member=>member.provider!==shown.provider)
- .map(member=>[member.provider,member.provider_label||member.provider]));
- if(sites.size){
- const marks=[...sites].map(([provider,label])=>
- sourceIcon(provider,label)||`<span>${esc(label)}</span>`).join('');
- badges.push(`<span class="fbadge dup" title="另见 ${esc([...sites.values()].join('、'))}">另见 ${marks}</span>`);
- }
- return badges.join('');
-}
-
-function followMediaIssue(item,credentials){
- if(item.media_error)return `媒体未取得:${item.media_error}`;
- if(item.media_needs_credential&&!credentials.has(item.provider))return item.playable
- ?'部分媒体未取得:需要 F95 登录会话解析'
- :'媒体未取得:需要 F95 登录会话解析';
- return '';
-}
/* 检查完必须说清三件事:新增了什么、哪些确实没有更新、哪些失败了以及为什么。
反馈走两条通道(Geist toast 处方,取证见 docs/reference-snapshots/vercel-geist-toast.md):
@@ -3197,21 +3093,13 @@ function shuffleFollowFeed(){
routeFollowFeed({...followView(),sort:FOLLOW_RANDOM_SORT},{seed:followDiscoverySeed});
}
/* 岛要的助手与动作各只有一份、身份不变:卡片按引用比较,每次推新对象进去就是整屏重画。
- 头像、署名、题材圆标与来源图标跟详情共用这一份实现。 */
+ 这里只剩要借壳里实现的几样:题材圆标借资料页的取景,标签写法、拖动与横滚、骨架和后台
+ 任务进度都是壳的那一份;署名、头像、来源图标与标题前后的字样在岛里(`follow-marks.ts`)。 */
const followFeedHelpers={
- sourceIcon:(provider,label='')=>sourceIcon(provider,label),
- authorAvatar:(sources,context)=>followAuthorAvatar(sources,followAuthorName(sources,context.aliases)),
- authorName:(sources,context)=>followAuthorName(sources,context.aliases),
- identity:(item,authorSources,context)=>followIdentity(item,authorSources,context),
workMark:row=>followWorkMark(row),
- titleMarks:(group,shown)=>followTitleMarks(group,shown),
- badges:(group,shown)=>followBadges(group,shown),
- mediaIssue:(item,context)=>followMediaIssue(item,context.credentials),
- when:item=>followWhen(item),
tagLabel:tag=>tagLabel(tag),
wireDrag:row=>{if(row)wireDrag(row)},
wireScroller:row=>{if(row)wireHorizontalScroller(row)},
- learnDims:(item,media,width,height)=>learnFollowDims(item,media,width,height),
listSkeletonHtml:media=>followContentSkeletonHtml(media),
jobProgress:options=>followJobProgress(options),
};
@@ -3313,53 +3201,6 @@ async function openFollow(push=true,renderForDetail=false){
if(surfaceCurrent(surface))window.scrollTo({top:0,behavior:'smooth'});
}
-/* 有站点图标的来源。图标由服务端按 follow_assets.SOURCE_ICON_URLS 取回、保存在本机,
- 页面只认这张名单:没登记的来源直接不出 <img>,取不到的由 data-drop 摘掉退回纯文字。
- 图标独自代表站名时传 label,alt 与 title 写站名;外层已经带名字的传空,图只作装饰。 */
-const SOURCE_ICON_PROVIDERS=new Set(['fanbox','patreon','subscribestar','kemono','coomer','pawchive',
- 'rule34video','rule34xxx','rule34paheal','gofile','f95zone','simpcity']);
-function sourceIcon(provider,label=''){return SOURCE_ICON_PROVIDERS.has(provider)
- ? `<img class="ficon" src="/source-icon?provider=${encodeURIComponent(provider)}" alt="${esc(label)}"${label?` title="${esc(label)}"`:''} loading="lazy" data-drop="self">`
- : ''}
-
-function followAvatarInitial(name){
- name=String(name||'').trim();
- const ascii=name.match(/[A-Za-z0-9]/);
- return (ascii?ascii[0]:Array.from(name)[0]||'?').toUpperCase();
-}
-
-/* 同一创作者的官方来源优先提供头像,归档来源只回退。都取不到时明确用创作者首字母,
- 不再从某条来源的中文显示标签切出“初”“一”之类与创作者无关的字。 */
-function followAuthorAvatar(group,name=followAuthorName(group)){
- const official=group.find(source=>source.official_avatar_url);
- const mirror=group.find(source=>source.avatar_url);
- const src=official?.official_avatar_url||mirror?.avatar_url;
- const fallback=official&&mirror&&mirror.avatar_url!==src?mirror.avatar_url:'';
- const initial=followAvatarInitial(name);
- if(src)return `<img class="favatar" src="${esc(src)}" alt=""
- loading="lazy" referrerpolicy="no-referrer" ${imageFallbackAttrs({
- drop:'initial',dropClass:'favatar none',initial,fallbacks:[fallback]})}>`;
- return `<span class="favatar none" title="没有可用头像">${esc(initial)}</span>`;
-}
-
-/* 卡片与详情的署名。booru 帖子由服务端认出真正的发布者时(`item.credit`),名字和头像
- 都换成发布者:也关注了这位就用那位的来源,否则只出首字母,不借被关注者的头像;
- 被关注者退成一行「署名含」,说明这条为什么出现在这里。认不出的照常署被关注者。 */
-/* `context` 是关注页岛那一版列表(或详情岛那一条)的来源与别名。 */
-function followIdentity(item,authorSources,context){
- const aliases=context.aliases||[];
- const poster=item.credit?.poster;
- if(!poster){const name=followAuthorName(authorSources,aliases);
- return {author:name||item.author||item.source_label||'创作者未取得',
- avatar:followAuthorAvatar(authorSources,name),credited:''}}
- const key=value=>String(value||'').toLowerCase().replace(/[^a-z0-9]/g,'');
- const sources=context.sources||[];
- const own=sources.find(row=>key(row.ref)===key(poster));
- const group=own?.author_key?sources.filter(row=>row.author_key===own.author_key):own?[own]:[];
- const author=group.length&&followAuthorName(group,aliases)||poster;
- return {author,avatar:followAuthorAvatar(group,author),credited:item.credit.credited||''};
-}
-
/* 题材那一枚跟首页的厂牌药丸同形:28px 圆标识加作品名。圆里装的是这个题材下最热的
那几条里第一张看得见脸的封面,服务端按 `work` 这个身份自己去挑再存在本机,页面
递不进地址。挑不出图的题材(facet 那一行的第四位说了算)直接出两个字母,不出
@@ -3374,36 +3215,6 @@ function followWorkMark([key,label,,icon,focus]){
return icon?`<img src="/work-icon?work=${encodeURIComponent(key)}" alt="" loading="lazy"${facePos(focus)}${faceBoxAttrs(focus)}>`:fallback;
}
-/* 分组标题要用创作者本人的名字,不是某一条来源的标签。哪一段标签是人名由服务端一处
- 判定(`author_name`):`LazyProcrastinator · fanbox` 的「· fanbox」只说明他在哪个
- 平台连载,F95 的 `Strauzek Collection [2026-09-04] [Mr_Strauz]` 则整串都是线程标题,
- 创作者在末尾的方括号里。这里只在同一个人的几种写法之间挑一个,不再自己解析标签。
- 同名的几种写法里取大写最多的那个:`LazyProcrastinator` 比 `lazyprocrastinator`
- 更像创作者自己写的名字。 */
-function followAuthorName(group,aliases=[]){
- if(!group.length)return '';
- const clean=value=>String(value||'')
- .replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/,'')
- .replace(/\s+collections?\s*$/i,'').trim();
- const authored=source=>String(source.author_name||'').trim()||clean(source.label);
- const entity=group.find(source=>source.entity_name);
- if(entity)return entity.entity_name;
- const aliasGroup=aliases.find(
- item=>`name:${item.canonical_key}`===group[0]?.author_key);
- if(aliasGroup)return clean(aliasGroup.canonical_name);
- // 官方主页来源不只优先提供头像,也优先提供创作者写法;否则 F95 的线程标题
- // `Lazy Procrastinator Collection` 会因为大写字母更多而抢成分组标题。
- const official=group.find(source=>source.official_avatar_url);
- if(official){
- const officialName=authored(official);
- if(officialName)return officialName;
- }
- const names=group.map(authored).filter(Boolean);
- if(!names.length)return group[0].label||group[0].ref||'';
- const caps=text=>(text.match(/[A-Z]/g)||[]).length;
- return names.reduce((best,name)=>caps(name)>caps(best)?name:best,names[0]);
-}
-
/* ── 管的那一页 ──
整页归 React(ADR-0031)。遗留层只留外壳:铺骨架、把地址栏上的那几项和这台浏览器的
偏好交出去,取数、渲染、检查更新那趟后台任务都在 /dist/peach-react.js 里。
@@ -3469,29 +3280,6 @@ document.addEventListener('click',event=>{
void openFollowManage(true,'add');
});
-/* ── 共用接线 ── */
-/* 这次会话里已经回写过的图,`条目:媒体序号`。回写只补空缺,服务端本来就会
- 忽略已有尺寸的条目,但每次重渲染都把同一批再发一遍是白跑。 */
-const followDimsReported=new Set();
-let followDimsQueue=[],followDimsTimer=0;
-function flushFollowDims(){
- followDimsTimer=0;
- if(!followDimsQueue.length)return;
- const entries=followDimsQueue.splice(0,200);
- /* 静默:这是顺手学习,不是用户的动作;只读端 409 和网络抖动都不该弹提示。 */
- api('/api/follow/image-dims',{method:'POST',body:JSON.stringify({entries})}).catch(()=>{});
- if(followDimsQueue.length)followDimsTimer=setTimeout(flushFollowDims,800);
-}
-function learnFollowDims(item,media,width,height){
- const key=`${item}:${media??''}`;
- if(followDimsReported.has(key))return;
- followDimsReported.add(key);
- const entry={item,width,height};
- if(media!==null&&media!==undefined)entry.media=media;
- followDimsQueue.push(entry);
- if(!followDimsTimer)followDimsTimer=setTimeout(flushFollowDims,800);
-}
-
/* ── 全部艺人 / 创作者 / 厂牌 / 事务所 / 标签索引页 ──
整页在 React(`frontend/src/react/index/`)。壳做三件事:从地址栏读出这一页的状态、铺骨架、
把遗留层唯一那一份取图链与去处当 props 递进去。换档(厂牌↔事务所、本地↔在线、类型、视图、
@@ -3708,11 +3496,7 @@ const entityPageHelpers={
style:facePos(x.avatar_focus),focus:x.avatar_focus}),
wireDrag:row=>{if(row)wireDrag(row)},
wireScroller:row=>{if(row)wireHorizontalScroller(row)},
- wireFeedRow:row=>{
- if(!row)return;
- wireDrag(row);
- if(appSettings.feedAutoScroll)wireAutoScroll(row);
- },
+ wireFeedRow:row=>wireFeedNewRow(row),
feedRowHtml,
receipt:(message,options)=>actionReceipt(message,options),
failure:(label,error)=>actionFailure(label,error),
@@ -3755,7 +3539,7 @@ function entityPageActions(kind,name){
/* 卡片网格原样要的那几样与展示设置随挂载带上现值,之后由各自的开关经 `updateIsland` 推最新值。 */
function entityPageProps(kind,name,filters,media,hosts){
return {kind,name,filters,media,hosts,
- jav:state.jav==='1',seed:String(state.seed||''),revision:entityPageRevision,feedRevision:entityFeedRevision,
+ jav:state.jav==='1',seed:String(state.seed||''),revision:entityPageRevision,feedRevision,
photoSize:photoSize(),photoLayout:photoLayout(),photoLayouts:PHOTO_LAYOUTS,
javLayout:javLayout(),javLayouts:JAV_LAYOUTS,states:VIEW_PILLS,peopleLayout:peopleIndexLayout(),
layout:catalogGridLayout(),selectMode,selected:new Set(selected),seekSeconds:appSettings.seekSeconds,
@@ -4579,9 +4363,8 @@ async function loadCatalog(){
if(isFeedNewPath(location.pathname)){
await entityShapesReady;
if(!surfaceCurrent(surface))return;
- prepareHomeFeed($('#feedNew'));
- void renderFeedNew($('#feedNew'));
- }else{$('#feedNew').hidden=true;$('#feedNew').innerHTML='';$('#feedNew').removeAttribute('aria-busy')}
+ renderHomeFeed();
+ }else clearHomeFeed();
renderCombo();
$('#count').classList.remove('manage-static','junkcount');
return paintCatalogGrid(surface);
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index ca0eb322e..3610b529e 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -18610,7 +18610,7 @@ function eee(e, t, n) {
//#endregion
//#region node_modules/react-aria-components/dist/private/Checkbox.mjs
var eg = /*#__PURE__*/ (0, L.createContext)(null), tg = /*#__PURE__*/ (0, L.createContext)(null), tee = /*#__PURE__*/ (0, L.createContext)(null), ng = /*#__PURE__*/ (0, L.createContext)(null);
-function rg(e, t) {
+function nee(e, t) {
let { validationBehavior: n } = Fu(Vh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, L.useContext)(tee), a = ju((0, L.useMemo)(() => Du(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
...Ru(e),
children: typeof e.children == "function" || e.children,
@@ -18619,21 +18619,21 @@ function rg(e, t) {
};
return [i ? eee(o, i, a) : Qh(o, $h(e), a), a];
}
-var nee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+var ree = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = Iu(r, t, eg);
- let [i, a] = rg(e, n);
+ let [i, a] = nee(e, n);
return /*#__PURE__*/ L.createElement(ng.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ L.createElement(ree, {
+ } }, /*#__PURE__*/ L.createElement(iee, {
...e,
ref: t
}));
-}), ree = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}), iee = /*#__PURE__*/ (0, L.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, L.useContext)(ng), { isFocused: p, isFocusVisible: m, focusProps: h } = Gm(), g = a || o, { hoverProps: _, isHovered: v } = Zm({
...e,
isDisabled: g
@@ -18671,8 +18671,8 @@ var nee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
...q(r, h),
ref: l
})), y.children);
-}), ig = /*#__PURE__*/ (0, L.createContext)({}), iee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- [e, t] = Iu(e, t, ig);
+}), rg = /*#__PURE__*/ (0, L.createContext)({}), aee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Iu(e, t, rg);
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 } = Zm({
@@ -18704,11 +18704,11 @@ var nee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), ag = /*#__PURE__*/ (0, L.createContext)({}), aee = (e) => {
+}), ig = /*#__PURE__*/ (0, L.createContext)({}), oee = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, oee = /*#__PURE__*/ Vp(function(e, t) {
- [e, t] = Iu(e, t, ag);
+}, see = /*#__PURE__*/ Vp(function(e, t) {
+ [e, t] = Iu(e, t, ig);
let { hoverProps: n, isHovered: r } = Zm({
...e,
isDisabled: e.disabled
@@ -18727,7 +18727,7 @@ var nee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
defaultClassName: "react-aria-Input"
});
return /*#__PURE__*/ L.createElement(Vu.input, {
- ...q(aee(e), o, n),
+ ...q(oee(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -18739,7 +18739,7 @@ var nee = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
});
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function see(e, t) {
+function cee(e, t) {
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = $f(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Rp(e, t), d = Fh({
...e,
value: c
@@ -18798,8 +18798,8 @@ function see(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ar-AE.mjs
-var og = {};
-og = {
+var ag = {};
+ag = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -18807,8 +18807,8 @@ og = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var sg = {};
-sg = {
+var og = {};
+og = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -18816,8 +18816,8 @@ sg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var cg = {};
-cg = {
+var sg = {};
+sg = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -18825,8 +18825,8 @@ cg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var lg = {};
-lg = {
+var cg = {};
+cg = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -18834,8 +18834,8 @@ lg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var ug = {};
-ug = {
+var lg = {};
+lg = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -18843,8 +18843,8 @@ ug = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var dg = {};
-dg = {
+var ug = {};
+ug = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -18852,8 +18852,8 @@ dg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var fg = {};
-fg = {
+var dg = {};
+dg = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -18861,8 +18861,8 @@ fg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var pg = {};
-pg = {
+var fg = {};
+fg = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -18870,8 +18870,8 @@ pg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var mg = {};
-mg = {
+var pg = {};
+pg = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -18879,8 +18879,8 @@ mg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var hg = {};
-hg = {
+var mg = {};
+mg = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -18888,8 +18888,8 @@ hg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var gg = {};
-gg = {
+var hg = {};
+hg = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -18897,8 +18897,8 @@ gg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var _g = {};
-_g = {
+var gg = {};
+gg = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -18906,8 +18906,8 @@ _g = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var vg = {};
-vg = {
+var _g = {};
+_g = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -18915,8 +18915,8 @@ vg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var yg = {};
-yg = {
+var vg = {};
+vg = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -18924,8 +18924,8 @@ yg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var bg = {};
-bg = {
+var yg = {};
+yg = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -18933,8 +18933,8 @@ bg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var xg = {};
-xg = {
+var bg = {};
+bg = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -18942,8 +18942,8 @@ xg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Sg = {};
-Sg = {
+var xg = {};
+xg = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -18951,8 +18951,8 @@ Sg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var Cg = {};
-Cg = {
+var Sg = {};
+Sg = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -18960,8 +18960,8 @@ Cg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var wg = {};
-wg = {
+var Cg = {};
+Cg = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -18969,8 +18969,8 @@ wg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var Tg = {};
-Tg = {
+var wg = {};
+wg = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -18978,8 +18978,8 @@ Tg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Eg = {};
-Eg = {
+var Tg = {};
+Tg = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -18987,8 +18987,8 @@ Eg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Dg = {};
-Dg = {
+var Eg = {};
+Eg = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -18996,8 +18996,8 @@ Dg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var Og = {};
-Og = {
+var Dg = {};
+Dg = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19005,8 +19005,8 @@ Og = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var kg = {};
-kg = {
+var Og = {};
+Og = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19014,8 +19014,8 @@ kg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Ag = {};
-Ag = {
+var kg = {};
+kg = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -19023,8 +19023,8 @@ Ag = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var jg = {};
-jg = {
+var Ag = {};
+Ag = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -19032,8 +19032,8 @@ jg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var Mg = {};
-Mg = {
+var jg = {};
+jg = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -19041,8 +19041,8 @@ Mg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var Ng = {};
-Ng = {
+var Mg = {};
+Mg = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -19050,8 +19050,8 @@ Ng = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Pg = {};
-Pg = {
+var Ng = {};
+Ng = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -19059,8 +19059,8 @@ Pg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var Fg = {};
-Fg = {
+var Pg = {};
+Pg = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -19068,8 +19068,8 @@ Fg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var Ig = {};
-Ig = {
+var Fg = {};
+Fg = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -19077,8 +19077,8 @@ Ig = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var Lg = {};
-Lg = {
+var Ig = {};
+Ig = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -19086,8 +19086,8 @@ Lg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var Rg = {};
-Rg = {
+var Lg = {};
+Lg = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -19095,8 +19095,8 @@ Rg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var zg = {};
-zg = {
+var Rg = {};
+Rg = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -19104,52 +19104,52 @@ zg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var Bg = {};
-Bg = {
- "ar-AE": og,
- "bg-BG": sg,
- "cs-CZ": cg,
- "da-DK": lg,
- "de-DE": ug,
- "el-GR": dg,
- "en-US": fg,
- "es-ES": pg,
- "et-EE": mg,
- "fi-FI": hg,
- "fr-FR": gg,
- "he-IL": _g,
- "hr-HR": vg,
- "hu-HU": yg,
- "it-IT": bg,
- "ja-JP": xg,
- "ko-KR": Sg,
- "lt-LT": Cg,
- "lv-LV": wg,
- "nb-NO": Tg,
- "nl-NL": Eg,
- "pl-PL": Dg,
- "pt-BR": Og,
- "pt-PT": kg,
- "ro-RO": Ag,
- "ru-RU": jg,
- "sk-SK": Mg,
- "sl-SI": Ng,
- "sr-SP": Pg,
- "sv-SE": Fg,
- "tr-TR": Ig,
- "uk-UA": Lg,
- "zh-CN": Rg,
- "zh-TW": zg
+var zg = {};
+zg = {
+ "ar-AE": ag,
+ "bg-BG": og,
+ "cs-CZ": sg,
+ "da-DK": cg,
+ "de-DE": lg,
+ "el-GR": ug,
+ "en-US": dg,
+ "es-ES": fg,
+ "et-EE": pg,
+ "fi-FI": mg,
+ "fr-FR": hg,
+ "he-IL": gg,
+ "hr-HR": _g,
+ "hu-HU": vg,
+ "it-IT": yg,
+ "ja-JP": bg,
+ "ko-KR": xg,
+ "lt-LT": Sg,
+ "lv-LV": Cg,
+ "nb-NO": wg,
+ "nl-NL": Tg,
+ "pl-PL": Eg,
+ "pt-BR": Dg,
+ "pt-PT": Og,
+ "ro-RO": kg,
+ "ru-RU": Ag,
+ "sk-SK": jg,
+ "sl-SI": Mg,
+ "sr-SP": Ng,
+ "sv-SE": Pg,
+ "tr-TR": Fg,
+ "uk-UA": Ig,
+ "zh-CN": Lg,
+ "zh-TW": Rg
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var Vg = /*#__PURE__*/ (0, L.createContext)({}), Hg = /*#__PURE__*/ (0, L.createContext)(null), Ug = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- let { render: n } = (0, L.useContext)(Hg);
+var Bg = /*#__PURE__*/ (0, L.createContext)({}), Vg = /*#__PURE__*/ (0, L.createContext)(null), Hg = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { render: n } = (0, L.useContext)(Vg);
return /*#__PURE__*/ L.createElement(L.Fragment, null, n(e, t));
});
-function Wg(e, t) {
+function Ug(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, L.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ L.createElement(Ug, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ L.createElement(Hg, { target: e });
}, [
t?.target,
r,
@@ -19157,7 +19157,7 @@ function Wg(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function Gg(e, t, n) {
+function Wg(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;
@@ -19180,10 +19180,10 @@ function Gg(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var Kg = /*#__PURE__*/ (0, L.createContext)({}), cee = /*#__PURE__*/ (0, L.createContext)(null);
+var Gg = /*#__PURE__*/ (0, L.createContext)({}), Kg = /*#__PURE__*/ (0, L.createContext)(null);
function qg(e) {
let t = (0, L.useRef)({});
- return /*#__PURE__*/ L.createElement(cee.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ L.createElement(Kg.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
@@ -21198,13 +21198,13 @@ function ev({ state: e, props: t, listBoxRef: n }) {
}, /*#__PURE__*/ L.createElement(Nu, { values: [
[Q_, t],
[$_, s],
- [Vg, {
+ [Bg, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
[Yg, { elementType: "div" }],
- [Hg, { render: Ree }],
+ [Vg, { render: Ree }],
[cm, {
name: "ListBoxSection",
render: Iee
@@ -21212,12 +21212,12 @@ function ev({ state: e, props: t, listBoxRef: n }) {
] }, /*#__PURE__*/ L.createElement(qg, null, /*#__PURE__*/ L.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: Gg(l, r, C),
- renderDropIndicator: Wg(r, C)
+ persistedKeys: Wg(l, r, C),
+ renderDropIndicator: Ug(r, C)
}))), ee, E));
}
function Iee(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, L.useContext)($_), { dragAndDropHooks: a, dropState: o } = (0, L.useContext)(Vg), { CollectionBranch: s } = (0, L.useContext)(fm), [c, l] = Lu(), { headingProps: u, groupProps: d } = kee({
+ let i = (0, L.useContext)($_), { dragAndDropHooks: a, dropState: o } = (0, L.useContext)(Bg), { CollectionBranch: s } = (0, L.useContext)(fm), [c, l] = Lu(), { headingProps: u, groupProps: d } = kee({
heading: l,
"aria-label": e["aria-label"] ?? void 0
}), f = Pu({
@@ -21230,17 +21230,17 @@ function Iee(e, t, n, r = "react-aria-ListBoxSection") {
return delete p.id, /*#__PURE__*/ L.createElement(Vu.section, {
...q(p, f, d),
ref: t
- }, /*#__PURE__*/ L.createElement(Kg.Provider, { value: {
+ }, /*#__PURE__*/ L.createElement(Gg.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ L.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: Wg(a, o)
+ renderDropIndicator: Ug(a, o)
})));
}
var Lee = /*#__PURE__*/ nm(ap, function(e, t, n) {
- let r = ju(t), i = (0, L.useContext)($_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, L.useContext)(Vg), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Oee({
+ let r = ju(t), i = (0, L.useContext)($_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, L.useContext)(Bg), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Oee({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = Zm({
@@ -21299,7 +21299,7 @@ var Lee = /*#__PURE__*/ nm(ap, function(e, t, n) {
});
function Ree(e, t) {
t = ju(t);
- let { dragAndDropHooks: n, dropState: r } = (0, L.useContext)(Vg), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ let { dragAndDropHooks: n, dropState: r } = (0, L.useContext)(Bg), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
return a ? null : /*#__PURE__*/ L.createElement(Bee, {
...e,
dropIndicatorProps: i,
@@ -22175,11 +22175,11 @@ dy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function ste(e) {
+function fy(e) {
return e && e.__esModule ? e.default : e;
}
-function fy(e) {
- let { onDismiss: t, ...n } = e, r = Ef(n, Zf(ste(dy), "@react-aria/overlays").format("dismiss")), i = () => {
+function py(e) {
+ let { onDismiss: t, ...n } = e, r = Ef(n, Zf(fy(dy), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
return /*#__PURE__*/ L.createElement(Oh, null, /*#__PURE__*/ L.createElement("button", {
@@ -22194,7 +22194,7 @@ function fy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var cte = /*#__PURE__*/ L.forwardRef(({ children: e, ...t }, n) => {
+var ste = /*#__PURE__*/ L.forwardRef(({ children: e, ...t }, n) => {
let r = (0, L.useRef)(!1), i = (0, L.useContext)(km), a = q(i || {}, {
...t,
register() {
@@ -22205,44 +22205,44 @@ var cte = /*#__PURE__*/ L.forwardRef(({ children: e, ...t }, n) => {
r.current ||= !0;
}, []), /*#__PURE__*/ L.createElement(km.Provider, { value: a }, e);
});
-function lte({ children: e }) {
+function cte({ children: e }) {
let t = (0, L.useMemo)(() => ({ register: () => {} }), []);
return /*#__PURE__*/ L.createElement(km.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var py = /*#__PURE__*/ (0, L.createContext)({});
-function my(e) {
- let { getContainer: t } = e, { getContainer: n } = hy();
- return /*#__PURE__*/ L.createElement(py.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var my = /*#__PURE__*/ (0, L.createContext)({});
+function hy(e) {
+ let { getContainer: t } = e, { getContainer: n } = gy();
+ return /*#__PURE__*/ L.createElement(my.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function hy() {
- return (0, L.useContext)(py) ?? {};
+function gy() {
+ return (0, L.useContext)(my) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var gy = /*#__PURE__*/ L.createContext(null);
-function _y(e) {
+var _y = /*#__PURE__*/ L.createContext(null);
+function vy(e) {
let t = vu(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, L.useState)(!1), o = (0, L.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = hy();
+ }), [i, a]), { getContainer: s } = gy();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
return e.disableFocusManagement || (c = /*#__PURE__*/ L.createElement(t_, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ L.createElement(gy.Provider, { value: o }, /*#__PURE__*/ L.createElement(lte, null, /*#__PURE__*/ L.createElement(Ip.Provider, { value: null }, c))), /*#__PURE__*/ Re.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ L.createElement(_y.Provider, { value: o }, /*#__PURE__*/ L.createElement(cte, null, /*#__PURE__*/ L.createElement(Ip.Provider, { value: null }, c))), /*#__PURE__*/ Re.createPortal(c, n);
}
-function vy() {
- let e = (0, L.useContext)(gy)?.setContain;
+function yy() {
+ let e = (0, L.useContext)(_y)?.setContain;
ou(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function yy(e) {
+function by(e) {
let [t, n] = $f(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, L.useState)(null);
return {
isOpen: t,
@@ -22262,13 +22262,13 @@ function yy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function by(e, t = !0) {
+function xy(e, t = !0) {
let [n, r] = (0, L.useState)(!0), i = n && t;
return ou(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), Sy(e, i, (0, L.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), Cy(e, i, (0, L.useCallback)(() => r(!1), [])), i;
}
-function xy(e, t) {
+function Sy(e, t) {
let [n, r] = (0, L.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -22278,11 +22278,11 @@ function xy(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return Sy(e, i, (0, L.useCallback)(() => {
+ return Cy(e, i, (0, L.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function Sy(e, t, n) {
+function Cy(e, t, n) {
ou(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -22311,9 +22311,9 @@ function Sy(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var Cy = /*#__PURE__*/ (0, L.createContext)(null), wy = /*#__PURE__*/ (0, L.createContext)(null), Ty = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- [e, t] = Iu(e, t, Cy);
- let n = (0, L.useContext)(Sb), r = yy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = xy(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Hp(), { direction: c } = Lf();
+var wy = /*#__PURE__*/ (0, L.createContext)(null), Ty = /*#__PURE__*/ (0, L.createContext)(null), Ey = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Iu(e, t, wy);
+ let n = (0, L.useContext)(yb), r = by(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Sy(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Hp(), { direction: c } = Lf();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -22324,7 +22324,7 @@ var Cy = /*#__PURE__*/ (0, L.createContext)(null), wy = /*#__PURE__*/ (0, L.crea
defaultChildren: null
})), /*#__PURE__*/ L.createElement(L.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ L.createElement(Ey, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ L.createElement(lte, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -22333,13 +22333,13 @@ var Cy = /*#__PURE__*/ (0, L.createContext)(null), wy = /*#__PURE__*/ (0, L.crea
dir: c
});
});
-function Ey({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useContext)(wy), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = ote({
+function lte({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useContext)(Ty), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = ote({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = by(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Pu({
+ }, e), m = i.popoverRef, h = xy(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Pu({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -22390,17 +22390,17 @@ function Ey({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ L.createElement(fy, { onDismiss: e.close }), /*#__PURE__*/ L.createElement(Vee.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ L.createElement(py, { onDismiss: e.close }), /*#__PURE__*/ L.createElement(Vee.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ L.createElement(fy, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ L.createElement(_y, {
+ } }, x), /*#__PURE__*/ L.createElement(py, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ L.createElement(vy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ L.createElement(_y, {
+ }, E) : /*#__PURE__*/ L.createElement(vy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -22415,186 +22415,186 @@ function Ey({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
}), /*#__PURE__*/ L.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ L.createElement(wy.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ L.createElement(Ty.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Dy = /*#__PURE__*/ (0, L.createContext)({}), Oy = {};
-Oy = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+var ute = /*#__PURE__*/ (0, L.createContext)({}), Dy = {};
+Dy = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var ky = {};
-ky = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Oy = {};
+Oy = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var Ay = {};
-Ay = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var ky = {};
+ky = { 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 jy = {};
-jy = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Ay = {};
+Ay = { 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 My = {};
-My = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var jy = {};
+jy = { 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 Ny = {};
-Ny = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var My = {};
+My = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var Py = {};
-Py = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Ny = {};
+Ny = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Fy = {};
-Fy = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var Py = {};
+Py = { 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 Iy = {};
-Iy = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Fy = {};
+Fy = { 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 Ly = {};
-Ly = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Iy = {};
+Iy = { 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 Ry = {};
-Ry = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var Ly = {};
+Ly = { 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 zy = {};
-zy = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Ry = {};
+Ry = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var By = {};
-By = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var zy = {};
+zy = { 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 Vy = {};
-Vy = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var By = {};
+By = { 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 Hy = {};
-Hy = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Vy = {};
+Vy = { 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 Uy = {};
-Uy = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var Hy = {};
+Hy = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Wy = {};
-Wy = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Uy = {};
+Uy = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Gy = {};
-Gy = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Wy = {};
+Wy = { 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 Ky = {};
-Ky = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Gy = {};
+Gy = { 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 qy = {};
-qy = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Ky = {};
+Ky = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Jy = {};
-Jy = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var qy = {};
+qy = { 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 Yy = {};
-Yy = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Jy = {};
+Jy = { 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 Xy = {};
-Xy = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Yy = {};
+Yy = { 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 Zy = {};
-Zy = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Xy = {};
+Xy = { 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 Qy = {};
-Qy = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Zy = {};
+Zy = { 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 $y = {};
-$y = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var Qy = {};
+Qy = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var eb = {};
-eb = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var $y = {};
+$y = { 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 tb = {};
-tb = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var eb = {};
+eb = { 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 nb = {};
-nb = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var tb = {};
+tb = { 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 rb = {};
-rb = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var nb = {};
+nb = { 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 ib = {};
-ib = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var rb = {};
+rb = { 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 ab = {};
-ab = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var ib = {};
+ib = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var ob = {};
-ob = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var ab = {};
+ab = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var sb = {};
-sb = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var ob = {};
+ob = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var cb = {};
-cb = {
- "ar-AE": Oy,
- "bg-BG": ky,
- "cs-CZ": Ay,
- "da-DK": jy,
- "de-DE": My,
- "el-GR": Ny,
- "en-US": Py,
- "es-ES": Fy,
- "et-EE": Iy,
- "fi-FI": Ly,
- "fr-FR": Ry,
- "he-IL": zy,
- "hr-HR": By,
- "hu-HU": Vy,
- "it-IT": Hy,
- "ja-JP": Uy,
- "ko-KR": Wy,
- "lt-LT": Gy,
- "lv-LV": Ky,
- "nb-NO": qy,
- "nl-NL": Jy,
- "pl-PL": Yy,
- "pt-BR": Xy,
- "pt-PT": Zy,
- "ro-RO": Qy,
- "ru-RU": $y,
- "sk-SK": eb,
- "sl-SI": tb,
- "sr-SP": nb,
- "sv-SE": rb,
- "tr-TR": ib,
- "uk-UA": ab,
- "zh-CN": ob,
- "zh-TW": sb
+var sb = {};
+sb = {
+ "ar-AE": Dy,
+ "bg-BG": Oy,
+ "cs-CZ": ky,
+ "da-DK": Ay,
+ "de-DE": jy,
+ "el-GR": My,
+ "en-US": Ny,
+ "es-ES": Py,
+ "et-EE": Fy,
+ "fi-FI": Iy,
+ "fr-FR": Ly,
+ "he-IL": Ry,
+ "hr-HR": zy,
+ "hu-HU": By,
+ "it-IT": Vy,
+ "ja-JP": Hy,
+ "ko-KR": Uy,
+ "lt-LT": Wy,
+ "lv-LV": Gy,
+ "nb-NO": Ky,
+ "nl-NL": qy,
+ "pl-PL": Jy,
+ "pt-BR": Yy,
+ "pt-PT": Xy,
+ "ro-RO": Zy,
+ "ru-RU": Qy,
+ "sk-SK": $y,
+ "sl-SI": eb,
+ "sr-SP": tb,
+ "sv-SE": nb,
+ "tr-TR": rb,
+ "uk-UA": ib,
+ "zh-CN": ab,
+ "zh-TW": ob
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function ute(e) {
+function dte(e) {
let { onContextMenu: t } = e, n = (0, L.useRef)(!1), { longPressProps: r } = O_({
onLongPressStart() {
n.current = !1;
@@ -22638,7 +22638,7 @@ function ute(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function dte(e, t, n) {
+function fte(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, L.useEffect)(() => {
n && n.current && yv.set(n.current, t.close);
@@ -22658,11 +22658,11 @@ function dte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function fte(e) {
+function pte(e) {
return e && e.__esModule ? e.default : e;
}
-function lb(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = wu(), { triggerProps: s, overlayProps: c } = dte({ type: r }, t, n), l = (e, n, r = "first") => {
+function cb(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = wu(), { triggerProps: s, overlayProps: c } = fte({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
}, { keyboardProps: u } = Pp({
@@ -22677,7 +22677,7 @@ function lb(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Zf(fte(cb), "@react-aria/menu"), { longPressProps: f } = O_({
+ }), d = Zf(pte(sb), "@react-aria/menu"), { longPressProps: f } = O_({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -22696,7 +22696,7 @@ function lb(e, t, n) {
}
};
delete s.onPress;
- let { contextMenuProps: m } = ute({ onContextMenu(e) {
+ let { contextMenuProps: m } = dte({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -22741,10 +22741,10 @@ function lb(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var ub = /* @__PURE__ */ new WeakMap();
+var lb = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function pte(e, t, n) {
+function mte(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
let s = bm(e, { labelable: !0 }), { listProps: c } = D_({
@@ -22756,7 +22756,7 @@ function pte(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return ub.set(t, {
+ return lb.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -22773,8 +22773,8 @@ function pte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function mte(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 = ub.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Vd(), M = () => {
+function hte(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 = lb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Vd(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
@@ -22886,7 +22886,7 @@ function mte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function hte(e) {
+function gte(e) {
let { heading: t, "aria-label": n } = e, r = wu();
return {
itemProps: { role: "presentation" },
@@ -22903,8 +22903,8 @@ function hte(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function db(e) {
- let t = yy(e), [n, r] = (0, L.useState)(null), [i, a] = (0, L.useState)([]), o = () => {
+function ub(e) {
+ let t = by(e), [n, r] = (0, L.useState)(null), [i, a] = (0, L.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -22930,7 +22930,7 @@ function db(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var gte = class {
+var _te = 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) => {
@@ -22974,8 +22974,8 @@ var gte = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function _te(e) {
- let { onExpandedChange: t } = e, [n, r] = $f(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = U_(e), a = (0, L.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = J_(e, (0, L.useCallback)((e) => new gte(e, { expandedKeys: n }), [n]), null);
+function vte(e) {
+ let { onExpandedChange: t } = e, [n, r] = $f(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = U_(e), a = (0, L.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = J_(e, (0, L.useCallback)((e) => new _te(e, { expandedKeys: n }), [n]), null);
return (0, L.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -22983,32 +22983,32 @@ function _te(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(vte(n, e));
+ r(yte(n, e));
},
setExpandedKeys: r,
selectionManager: new G_(o, i)
};
}
-function vte(e, t) {
+function yte(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 fb = /*#__PURE__*/ (0, L.createContext)(null), pb = /*#__PURE__*/ (0, L.createContext)(null), mb = /*#__PURE__*/ (0, L.createContext)(null), hb = /*#__PURE__*/ (0, L.createContext)(null);
-function yte(e) {
- let t = db(e), n = (0, L.useRef)(null), { menuTriggerProps: r, menuProps: i } = lb({
+var db = /*#__PURE__*/ (0, L.createContext)(null), fb = /*#__PURE__*/ (0, L.createContext)(null), pb = /*#__PURE__*/ (0, L.createContext)(null), mb = /*#__PURE__*/ (0, L.createContext)(null);
+function bte(e) {
+ let t = ub(e), n = (0, L.useRef)(null), { menuTriggerProps: r, menuProps: i } = cb({
...e,
type: "menu"
}, t, n), a = (0, L.useRef)(null);
return Hp() ? null : /*#__PURE__*/ L.createElement(Nu, { values: [
- [fb, {
+ [db, {
...i,
ref: a
}],
- [Sb, t],
- [mb, t],
- [Cy, {
+ [yb, t],
+ [pb, t],
+ [wy, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -23016,13 +23016,13 @@ function yte(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ L.createElement(cte, {
+ ] }, /*#__PURE__*/ L.createElement(ste, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var bte = /*#__PURE__*/ (0, L.createContext)(null);
+var xte = /*#__PURE__*/ (0, L.createContext)(null);
(class extends np {
static {
this.type = "submenutrigger";
@@ -23036,20 +23036,20 @@ var bte = /*#__PURE__*/ (0, L.createContext)(null);
return null;
}
});
-var xte = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- return [e, t] = Iu(e, t, fb), /*#__PURE__*/ L.createElement(Jp, { content: /*#__PURE__*/ L.createElement(om, e) }, (n) => /*#__PURE__*/ L.createElement(Ste, {
+var Ste = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ return [e, t] = Iu(e, t, db), /*#__PURE__*/ L.createElement(Jp, { content: /*#__PURE__*/ L.createElement(om, e) }, (n) => /*#__PURE__*/ L.createElement(Cte, {
props: e,
collection: n,
menuRef: t
}));
});
-function Ste({ props: e, collection: t, menuRef: n }) {
+function Cte({ props: e, collection: t, menuRef: n }) {
[e, n] = Iu(e, n, ep);
- let { filter: r, ...i } = e, a = (0, L.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = _te({
+ let { filter: r, ...i } = e, a = (0, L.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = vte({
...e,
collection: a,
children: void 0
- }), s = (0, L.useContext)(mb), { isVirtualized: c, CollectionRoot: l } = (0, L.useContext)(fm), { menuProps: u } = pte({
+ }), s = (0, L.useContext)(pb), { isVirtualized: c, CollectionRoot: l } = (0, L.useContext)(fm), { menuProps: u } = mte({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
@@ -23071,28 +23071,28 @@ function Ste({ props: e, collection: t, menuRef: n }) {
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
}, /*#__PURE__*/ L.createElement(Nu, { values: [
- [pb, o],
+ [fb, o],
[Yg, { elementType: "div" }],
[cm, {
name: "MenuSection",
- render: gb
+ render: hb
}],
- [bte, {
+ [xte, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [vb, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [_b, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
[ep, null],
[tp, null],
- [hb, o.selectionManager],
- [mb, s ?? db({})]
+ [mb, o.selectionManager],
+ [pb, s ?? ub({})]
] }, /*#__PURE__*/ L.createElement(qg, null, /*#__PURE__*/ L.createElement(l, {
collection: o.collection,
persistedKeys: pm(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Cte = class extends G_ {
+var wte = class extends G_ {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -23112,8 +23112,8 @@ var Cte = class extends G_ {
return this.parent.childFocusStrategy;
}
};
-function gb(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, L.useContext)(pb), { CollectionBranch: a } = (0, L.useContext)(fm), [o, s] = Lu(), { headingProps: c, groupProps: l } = hte({
+function hb(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, L.useContext)(fb), { CollectionBranch: a } = (0, L.useContext)(fm), [o, s] = Lu(), { headingProps: c, groupProps: l } = gte({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
}), u = Pu({
@@ -23124,25 +23124,25 @@ function gb(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, L.useContext)(hb), f = U_(e), p = e.selectionMode == null ? d : new Cte(d, f), m = Fu(vb)?.shouldCloseOnSelect, h = bm(e, { global: !0 });
+ }), d = (0, L.useContext)(mb), f = U_(e), p = e.selectionMode == null ? d : new wte(d, f), m = Fu(_b)?.shouldCloseOnSelect, h = bm(e, { global: !0 });
return delete h.id, /*#__PURE__*/ L.createElement(Vu.section, {
...q(h, u, l),
ref: t
}, /*#__PURE__*/ L.createElement(Nu, { values: [
- [Kg, {
+ [Gg, {
...c,
ref: o
}],
- [hb, p],
- [vb, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [mb, p],
+ [_b, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ L.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var _b = /*#__PURE__*/ rm(op, gb), vb = /*#__PURE__*/ (0, L.createContext)(null), yb = /*#__PURE__*/ nm(ap, function(e, t, n) {
- [e, t] = Iu(e, t, vb);
- let r = Fu(vb)?.id, i = (0, L.useContext)(pb), a = ju(t), o = (0, L.useContext)(hb), { isVirtualized: s } = (0, L.useContext)(fm), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = mte({
+var gb = /*#__PURE__*/ rm(op, hb), _b = /*#__PURE__*/ (0, L.createContext)(null), vb = /*#__PURE__*/ nm(ap, function(e, t, n) {
+ [e, t] = Iu(e, t, _b);
+ let r = Fu(_b)?.id, i = (0, L.useContext)(fb), a = ju(t), o = (0, L.useContext)(mb), { isVirtualized: s } = (0, L.useContext)(fm), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = hte({
...e,
id: r,
key: n.key,
@@ -23181,12 +23181,12 @@ var _b = /*#__PURE__*/ rm(op, gb), vb = /*#__PURE__*/ (0, L.createContext)(null)
label: l,
description: u
} }],
- [Dy, d],
+ [ute, d],
[Jg, { isSelected: f.isSelected }]
] }, h.children));
});
nm(ip, function(e, t, n) {
- let r = (0, L.useContext)(pb), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, L.useRef)(null);
+ let r = (0, L.useContext)(fb), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, L.useRef)(null);
Z_((0, L.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
@@ -23228,7 +23228,7 @@ nm(ip, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function bb(e, t) {
+function Tte(e, t) {
let { role: n = "dialog" } = e, r = Eu();
r = e["aria-label"] ? void 0 : r;
let i = Eu();
@@ -23244,7 +23244,7 @@ function bb(e, t) {
clearTimeout(e);
};
}
- }, [t]), vy(), (0, L.useRef)(!1), (0, L.useEffect)(() => {});
+ }, [t]), yy(), (0, L.useRef)(!1), (0, L.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
@@ -23263,13 +23263,13 @@ function bb(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var xb = /*#__PURE__*/ (0, L.createContext)(null), Sb = /*#__PURE__*/ (0, L.createContext)(null), Cb = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+var Ete = /*#__PURE__*/ (0, L.createContext)(null), yb = /*#__PURE__*/ (0, L.createContext)(null), bb = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Iu(e, t, xb);
- let { dialogProps: r, titleProps: i, contentProps: a } = bb({
+ [e, t] = Iu(e, t, Ete);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Tte({
...e,
"aria-labelledby": n
- }, t), o = (0, L.useContext)(Sb);
+ }, t), o = (0, L.useContext)(yb);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
let s = Pu({
defaultClassName: "react-aria-Dialog",
@@ -23303,14 +23303,14 @@ var xb = /*#__PURE__*/ (0, L.createContext)(null), Sb = /*#__PURE__*/ (0, L.crea
});
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function wb(e = {}) {
+function Dte(e = {}) {
let { locale: t } = Lf();
return (0, L.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var Tb = {};
-Tb = {
+var xb = {};
+xb = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -23324,8 +23324,8 @@ Tb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var Eb = {};
-Eb = {
+var Sb = {};
+Sb = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -23339,8 +23339,8 @@ Eb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var Db = {};
-Db = {
+var Cb = {};
+Cb = {
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",
@@ -23354,8 +23354,8 @@ Db = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var Ob = {};
-Ob = {
+var wb = {};
+wb = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -23369,8 +23369,8 @@ Ob = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var kb = {};
-kb = {
+var Tb = {};
+Tb = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -23384,8 +23384,8 @@ kb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var Ab = {};
-Ab = {
+var Eb = {};
+Eb = {
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: "Επιλογή",
@@ -23399,8 +23399,8 @@ Ab = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var jb = {};
-jb = {
+var Db = {};
+Db = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -23414,8 +23414,8 @@ jb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var Mb = {};
-Mb = {
+var Ob = {};
+Ob = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -23429,8 +23429,8 @@ Mb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Nb = {};
-Nb = {
+var kb = {};
+kb = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -23444,8 +23444,8 @@ Nb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var Pb = {};
-Pb = {
+var Ab = {};
+Ab = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -23459,8 +23459,8 @@ Pb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Fb = {};
-Fb = {
+var jb = {};
+jb = {
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",
@@ -23474,8 +23474,8 @@ Fb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var Ib = {};
-Ib = {
+var Mb = {};
+Mb = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -23489,8 +23489,8 @@ Ib = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Lb = {};
-Lb = {
+var Nb = {};
+Nb = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -23504,8 +23504,8 @@ Lb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Rb = {};
-Rb = {
+var Pb = {};
+Pb = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -23519,8 +23519,8 @@ Rb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var zb = {};
-zb = {
+var Fb = {};
+Fb = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -23534,8 +23534,8 @@ zb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Bb = {};
-Bb = {
+var Ib = {};
+Ib = {
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: "選択",
@@ -23549,8 +23549,8 @@ Bb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Vb = {};
-Vb = {
+var Lb = {};
+Lb = {
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: "선택",
@@ -23564,8 +23564,8 @@ Vb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var Hb = {};
-Hb = {
+var Rb = {};
+Rb = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -23579,8 +23579,8 @@ Hb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Ub = {};
-Ub = {
+var zb = {};
+zb = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -23594,8 +23594,8 @@ Ub = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var Wb = {};
-Wb = {
+var Bb = {};
+Bb = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -23609,8 +23609,8 @@ Wb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var Gb = {};
-Gb = {
+var Vb = {};
+Vb = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -23624,8 +23624,8 @@ Gb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var Kb = {};
-Kb = {
+var Hb = {};
+Hb = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -23639,8 +23639,8 @@ Kb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var qb = {};
-qb = {
+var Ub = {};
+Ub = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -23654,8 +23654,8 @@ qb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var Jb = {};
-Jb = {
+var Wb = {};
+Wb = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -23669,8 +23669,8 @@ Jb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var Yb = {};
-Yb = {
+var Gb = {};
+Gb = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -23684,8 +23684,8 @@ Yb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var Xb = {};
-Xb = {
+var Kb = {};
+Kb = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -23699,8 +23699,8 @@ Xb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var Zb = {};
-Zb = {
+var qb = {};
+qb = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -23714,8 +23714,8 @@ Zb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var Qb = {};
-Qb = {
+var Jb = {};
+Jb = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -23729,8 +23729,8 @@ Qb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var $b = {};
-$b = {
+var Yb = {};
+Yb = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -23744,8 +23744,8 @@ $b = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var ex = {};
-ex = {
+var Xb = {};
+Xb = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -23759,8 +23759,8 @@ ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var tx = {};
-tx = {
+var Zb = {};
+Zb = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -23774,8 +23774,8 @@ tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var nx = {};
-nx = {
+var Qb = {};
+Qb = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -23789,8 +23789,8 @@ nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var rx = {};
-rx = {
+var $b = {};
+$b = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -23804,8 +23804,8 @@ rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var ix = {};
-ix = {
+var ex = {};
+ex = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -23819,55 +23819,55 @@ ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var ax = {};
-ax = {
- "ar-AE": Tb,
- "bg-BG": Eb,
- "cs-CZ": Db,
- "da-DK": Ob,
- "de-DE": kb,
- "el-GR": Ab,
- "en-US": jb,
- "es-ES": Mb,
- "et-EE": Nb,
- "fi-FI": Pb,
- "fr-FR": Fb,
- "he-IL": Ib,
- "hr-HR": Lb,
- "hu-HU": Rb,
- "it-IT": zb,
- "ja-JP": Bb,
- "ko-KR": Vb,
- "lt-LT": Hb,
- "lv-LV": Ub,
- "nb-NO": Wb,
- "nl-NL": Gb,
- "pl-PL": Kb,
- "pt-BR": qb,
- "pt-PT": Jb,
- "ro-RO": Yb,
- "ru-RU": Xb,
- "sk-SK": Zb,
- "sl-SI": Qb,
- "sr-SP": $b,
- "sv-SE": ex,
- "tr-TR": tx,
- "uk-UA": nx,
- "zh-CN": rx,
- "zh-TW": ix
+var tx = {};
+tx = {
+ "ar-AE": xb,
+ "bg-BG": Sb,
+ "cs-CZ": Cb,
+ "da-DK": wb,
+ "de-DE": Tb,
+ "el-GR": Eb,
+ "en-US": Db,
+ "es-ES": Ob,
+ "et-EE": kb,
+ "fi-FI": Ab,
+ "fr-FR": jb,
+ "he-IL": Mb,
+ "hr-HR": Nb,
+ "hu-HU": Pb,
+ "it-IT": Fb,
+ "ja-JP": Ib,
+ "ko-KR": Lb,
+ "lt-LT": Rb,
+ "lv-LV": zb,
+ "nb-NO": Bb,
+ "nl-NL": Vb,
+ "pl-PL": Hb,
+ "pt-BR": Ub,
+ "pt-PT": Wb,
+ "ro-RO": Gb,
+ "ru-RU": Kb,
+ "sk-SK": qb,
+ "sl-SI": Jb,
+ "sr-SP": Yb,
+ "sv-SE": Xb,
+ "tr-TR": Zb,
+ "uk-UA": Qb,
+ "zh-CN": $b,
+ "zh-TW": ex
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function wte(e) {
+function Ote(e) {
return e && e.__esModule ? e.default : e;
}
-function Tte(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Zf(wte(ax), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, L.useRef)(i), o = (0, L.useCallback)(() => {
+function kte(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Zf(Ote(tx), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, L.useRef)(i), o = (0, L.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = ox(i, a.current), o = ox(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = nx(i, a.current), o = nx(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)) {
@@ -23906,7 +23906,7 @@ function Tte(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function ox(e, t) {
+function nx(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);
@@ -23914,7 +23914,7 @@ function ox(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function sx(e, t) {
+function rx(e, t) {
let n = t?.isDisabled, [r, i] = (0, L.useState)(!1);
return ou(() => {
if (e?.current && !n) {
@@ -23939,11 +23939,11 @@ function sx(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Ete(e) {
+function Ate(e) {
return e && e.__esModule ? e.default : e;
}
-function Dte(e) {
- let t = Zf(Ete(ax), "@react-aria/grid"), n = hf(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+function jte(e) {
+ let t = Zf(Ate(tx), "@react-aria/grid"), n = hf(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
return Th((0, L.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;
@@ -23957,14 +23957,14 @@ function Dte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Ote(e) {
+function Mte(e) {
return e && e.__esModule ? e.default : e;
}
-function kte(e, t) {
+function Nte(e, t) {
let { key: n } = e, r = t.selectionManager, i = wu(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Zf(Ote(ax), "@react-aria/grid").format("select"),
+ "aria-label": Zf(Mte(tx), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -23972,13 +23972,13 @@ function kte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Ate(e, t, n) {
+function Pte(e, t, n) {
let { overlayProps: r, underlayProps: i } = wv({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Ov({ isDisabled: !t.isOpen }), vy(), (0, L.useEffect)(() => {
+ return Ov({ isDisabled: !t.isOpen }), yy(), (0, L.useEffect)(() => {
if (t.isOpen && n.current) return iv([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: q(r),
@@ -23987,19 +23987,19 @@ function Ate(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useViewportSize.mjs
-var cx = typeof document < "u" && window.visualViewport;
-function jte() {
+var ix = typeof document < "u" && window.visualViewport;
+function Fte() {
let e = vu(), [t, n] = (0, L.useState)(() => e ? {
width: 0,
height: 0
- } : lx());
+ } : ax());
return (0, L.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- cx && cx.scale > 1 || e(lx());
+ ix && ix.scale > 1 || e(ax());
}, r, i = (t) => {
- cx && cx.scale > 1 || Sf(X(t)) && (r = requestAnimationFrame(() => {
+ ix && ix.scale > 1 || Sf(X(t)) && (r = requestAnimationFrame(() => {
let t = Y();
(!t || !Sf(t)) && e({
width: document.documentElement.clientWidth,
@@ -24007,26 +24007,26 @@ function jte() {
});
}));
};
- return e(lx()), Md() && Pd() && window.addEventListener("blur", i, !0), cx ? cx.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), Md() && Pd() && window.removeEventListener("blur", i, !0), cx ? cx.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(ax()), Md() && Pd() && window.addEventListener("blur", i, !0), ix ? ix.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), Md() && Pd() && window.removeEventListener("blur", i, !0), ix ? ix.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function lx() {
+function ax() {
return {
- width: cx ? Math.min(cx.width * cx.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: cx ? cx.height * cx.scale : document.documentElement.clientHeight
+ width: ix ? Math.min(ix.width * ix.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: ix ? ix.height * ix.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var Mte = /*#__PURE__*/ (0, L.createContext)(null), ux = /*#__PURE__*/ (0, L.createContext)(null), Nte = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- if ((0, L.useContext)(ux)) return /*#__PURE__*/ L.createElement(fx, {
+var Ite = /*#__PURE__*/ (0, L.createContext)(null), ox = /*#__PURE__*/ (0, L.createContext)(null), Lte = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ if ((0, L.useContext)(ox)) return /*#__PURE__*/ L.createElement(cx, {
...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__*/ L.createElement(dx, {
+ return /*#__PURE__*/ L.createElement(sx, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -24036,15 +24036,15 @@ var Mte = /*#__PURE__*/ (0, L.createContext)(null), ux = /*#__PURE__*/ (0, L.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ L.createElement(fx, {
+ }, /*#__PURE__*/ L.createElement(cx, {
...f,
modalRef: t
}, s));
});
-function Pte(e, t) {
- [e, t] = Iu(e, t, Mte);
- let n = (0, L.useContext)(Sb), r = yy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ju(t), o = (0, L.useRef)(null), s = xy(a, i.isOpen), c = xy(o, i.isOpen), l = s || c || e.isExiting || !1, u = vu();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ L.createElement(Fte, {
+function Rte(e, t) {
+ [e, t] = Iu(e, t, Ite);
+ let n = (0, L.useContext)(yb), r = by(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ju(t), o = (0, L.useRef)(null), s = Sy(a, i.isOpen), c = Sy(o, i.isOpen), l = s || c || e.isExiting || !1, u = vu();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ L.createElement(zte, {
...e,
state: i,
isExiting: l,
@@ -24052,9 +24052,9 @@ function Pte(e, t) {
modalRef: o
});
}
-var dx = /*#__PURE__*/ (0, L.forwardRef)(Pte);
-function Fte({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ate(t, r, n), o = by(t.overlayRef) || t.isEntering || !1, s = Pu({
+var sx = /*#__PURE__*/ (0, L.forwardRef)(Rte);
+function zte({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Pte(t, r, n), o = xy(t.overlayRef) || t.isEntering || !1, s = Pu({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -24062,7 +24062,7 @@ function Fte({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = jte(), l, u;
+ }), c = Fte(), l, u;
if (typeof document < "u") {
let e = _h(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;
@@ -24074,7 +24074,7 @@ function Fte({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ L.createElement(_y, {
+ return /*#__PURE__*/ L.createElement(vy, {
isExiting: t.isExiting,
portalContainer: e
}, /*#__PURE__*/ L.createElement(Vu.div, {
@@ -24084,15 +24084,15 @@ function Fte({ UNSTABLE_portalContainer: e, ...t }) {
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ L.createElement(Nu, { values: [[ux, {
+ }, /*#__PURE__*/ L.createElement(Nu, { values: [[ox, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [Sb, r]] }, s.children)));
+ }], [yb, r]] }, s.children)));
}
-function fx(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, L.useContext)(ux), a = (0, L.useContext)(Sb), o = ju((0, L.useMemo)(() => Du(e.modalRef, n), [e.modalRef, n])), s = by(o), c = Pu({
+function cx(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, L.useContext)(ox), a = (0, L.useContext)(yb), o = ju((0, L.useMemo)(() => Du(e.modalRef, n), [e.modalRef, n])), s = xy(o), c = Pu({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -24107,14 +24107,14 @@ function fx(e) {
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ L.createElement(fy, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ L.createElement(py, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var px = /* @__PURE__ */ new WeakMap();
+var lx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Ite(e, t, n) {
+function Bte(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: _ } = Im({
@@ -24137,7 +24137,7 @@ function Ite(e, t, n) {
}
}), { focusableProps: b } = Rp(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(g, b), S = bm(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 } = px.get(t);
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = lx.get(t);
Wh(n, t.defaultSelectedValue, t.setSelectedValue), Gh({ validationBehavior: O }, t, n);
let k = Xh();
return {
@@ -24171,7 +24171,7 @@ function Ite(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Lte(e, t) {
+function Vte(e, t) {
let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Lf(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Uh({
...e,
labelElementType: "span",
@@ -24200,7 +24200,7 @@ function Lte(e, t) {
},
allowRepeats: !0
}), x = wu(n);
- return px.set(t, {
+ return lx.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -24229,9 +24229,9 @@ function Lte(e, t) {
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Rte = Math.round(Math.random() * 1e10), zte = 0;
-function Bte(e) {
- let t = (0, L.useMemo)(() => e.name || `radio-group-${Rte}-${++zte}`, [e.name]), [n, r] = $f(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, L.useState)(n), [a, o] = (0, L.useState)(null), s = Fh({
+var Hte = Math.round(Math.random() * 1e10), Ute = 0;
+function Wte(e) {
+ let t = (0, L.useMemo)(() => e.name || `radio-group-${Hte}-${++Ute}`, [e.name]), [n, r] = $f(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, L.useState)(n), [a, o] = (0, L.useState)(null), s = Fh({
...e,
value: n
}), c = (t) => {
@@ -24254,12 +24254,12 @@ function Bte(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Vte = /*#__PURE__*/ (0, L.createContext)(null), Hte = /*#__PURE__*/ (0, L.createContext)(null), mx = /*#__PURE__*/ (0, L.createContext)(null), hx = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- [e, t] = Iu(e, t, Vte);
- let { validationBehavior: n } = Fu(Vh) || {}, r = e.validationBehavior ?? n ?? "native", i = Bte({
+var Gte = /*#__PURE__*/ (0, L.createContext)(null), Kte = /*#__PURE__*/ (0, L.createContext)(null), ux = /*#__PURE__*/ (0, L.createContext)(null), dx = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Iu(e, t, Gte);
+ let { validationBehavior: n } = Fu(Vh) || {}, r = e.validationBehavior ?? n ?? "native", i = Wte({
...e,
validationBehavior: r
- }), [a, o] = Lu(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Lte({
+ }), [a, o] = Lu(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Vte({
...e,
label: o,
validationBehavior: r
@@ -24285,7 +24285,7 @@ var Vte = /*#__PURE__*/ (0, L.createContext)(null), Hte = /*#__PURE__*/ (0, L.cr
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
}, /*#__PURE__*/ L.createElement(Nu, { values: [
- [mx, i],
+ [ux, i],
[Qm, {
...c,
ref: a,
@@ -24297,23 +24297,23 @@ var Vte = /*#__PURE__*/ (0, L.createContext)(null), Hte = /*#__PURE__*/ (0, L.cr
} }],
[kh, d]
] }, /*#__PURE__*/ L.createElement(qg, null, f.children)));
-}), gx = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}), fx = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Iu(r, t, Hte);
- let i = L.useContext(mx), a = ju((0, L.useMemo)(() => Du(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Ite({
+ [e, t] = Iu(r, t, Kte);
+ let i = L.useContext(ux), a = ju((0, L.useMemo)(() => Du(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Bte({
...Ru(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ L.createElement(_x.Provider, { value: {
+ return /*#__PURE__*/ L.createElement(px.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ L.createElement(Ute, {
+ } }, /*#__PURE__*/ L.createElement(qte, {
...e,
ref: t
}));
-}), _x = /*#__PURE__*/ (0, L.createContext)(null), Ute = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, L.useContext)(_x), l = L.useContext(mx), { isFocused: u, isFocusVisible: d, focusProps: f } = Gm(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Zm({
+}), px = /*#__PURE__*/ (0, L.createContext)(null), qte = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, L.useContext)(px), l = L.useContext(ux), { isFocused: u, isFocusVisible: d, focusProps: f } = Gm(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Zm({
...e,
isDisabled: p
}), g = Pu({
@@ -24347,8 +24347,8 @@ var Vte = /*#__PURE__*/ (0, L.createContext)(null), Hte = /*#__PURE__*/ (0, L.cr
...q(r, f),
ref: c
})), g.children);
-}), vx = /* @__PURE__ */ new WeakMap();
-function Wte(e, t, n) {
+}), mx = /* @__PURE__ */ new WeakMap();
+function Jte(e, t, n) {
let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = E_({
usage: "search",
sensitivity: "base"
@@ -24358,7 +24358,7 @@ function Wte(e, t, n) {
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = lb({
+ ]), { menuTriggerProps: d, menuProps: f } = cb({
isDisabled: i,
type: "listbox"
}, t, n), { keyboardProps: p } = Pp({
@@ -24391,7 +24391,7 @@ function Wte(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let S = bm(e, { labelable: !0 }), C = q(m, d, y), w = wu();
- return vx.set(t, {
+ return mx.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -24452,8 +24452,8 @@ function Wte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Gte(e, t, n) {
- let r = vx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Dh({ style: {
+function Yte(e, t, n) {
+ let r = mx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Dh({ style: {
position: "fixed",
top: 0,
left: 0
@@ -24488,8 +24488,8 @@ function Gte(e, t, n) {
}
};
}
-function Kte(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, L.useRef)(null), c = (0, L.useRef)(null), { containerProps: l, selectProps: u } = Gte({
+function Xte(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, L.useRef)(null), c = (0, L.useRef)(null), { containerProps: l, selectProps: u } = Yte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -24513,7 +24513,7 @@ function Kte(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = vx.get(t) || {};
+ let { validationBehavior: e } = mx.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -24544,8 +24544,8 @@ function Kte(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function qte(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = yy(e), [i, a] = (0, L.useState)(null), o = (0, L.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Zte(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = by(e), [i, a] = (0, L.useState)(null), o = (0, L.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
@@ -24566,7 +24566,7 @@ function qte(e) {
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, L.useMemo)(() => Jte(l), [l]),
+ selectedKeys: (0, L.useMemo)(() => Qte(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -24603,16 +24603,16 @@ function qte(e) {
setFocused: g
};
}
-function Jte(e) {
+function Qte(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 Yte(e) {
+function $te(e) {
return e && e.__esModule ? e.default : e;
}
-var yx = /*#__PURE__*/ (0, L.createContext)(null), bx = /*#__PURE__*/ (0, L.createContext)(null), Xte = /*#__PURE__*/ Vp(function(e, t) {
- [e, t] = Iu(e, t, yx);
+var hx = /*#__PURE__*/ (0, L.createContext)(null), gx = /*#__PURE__*/ (0, L.createContext)(null), ene = /*#__PURE__*/ Vp(function(e, t) {
+ [e, t] = Iu(e, t, hx);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, L.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -24627,23 +24627,23 @@ var yx = /*#__PURE__*/ (0, L.createContext)(null), bx = /*#__PURE__*/ (0, L.crea
i,
a
]);
- return /*#__PURE__*/ L.createElement(Jp, { content: o }, (n) => /*#__PURE__*/ L.createElement(Qte, {
+ return /*#__PURE__*/ L.createElement(Jp, { content: o }, (n) => /*#__PURE__*/ L.createElement(nne, {
props: e,
collection: n,
selectRef: t
}));
-}), Zte = [
+}), tne = [
Qm,
ch,
mh
];
-function Qte({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Fu(Vh) || {}, i = e.validationBehavior ?? r ?? "native", a = qte({
+function nne({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = Fu(Vh) || {}, i = e.validationBehavior ?? r ?? "native", a = Zte({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Gm({ within: !0 }), c = (0, L.useRef)(null), [l, u] = Lu(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Wte({
+ }), { isFocusVisible: o, focusProps: s } = Gm({ within: !0 }), c = (0, L.useRef)(null), [l, u] = Lu(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Jte({
...Ru(e),
label: u,
validationBehavior: i
@@ -24669,9 +24669,9 @@ function Qte({ props: e, selectRef: t, collection: n }) {
delete x.id;
let S = (0, L.useRef)(null);
return /*#__PURE__*/ L.createElement(Nu, { values: [
- [yx, e],
- [bx, a],
- [xx, p],
+ [hx, e],
+ [gx, a],
+ [_x, p],
[Qm, {
...d,
ref: l,
@@ -24683,14 +24683,14 @@ function Qte({ props: e, selectRef: t, collection: n }) {
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Sb, a],
- [Cy, {
+ [yb, a],
+ [wy, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Zte
+ clearContexts: tne
}],
[Q_, {
...m,
@@ -24712,14 +24712,14 @@ function Qte({ 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__*/ L.createElement(Kte, {
+ }, b.children, /*#__PURE__*/ L.createElement(Xte, {
..._,
autoComplete: e.autoComplete
})));
}
-var xx = /*#__PURE__*/ (0, L.createContext)(null), $te = /*#__PURE__*/ Vp(function(e, t) {
- [e, t] = Iu(e, t, xx);
- let n = (0, L.useContext)(bx), { placeholder: r } = Fu(yx), i = n.selectedItems.map((e) => {
+var _x = /*#__PURE__*/ (0, L.createContext)(null), rne = /*#__PURE__*/ Vp(function(e, t) {
+ [e, t] = Iu(e, t, _x);
+ let n = (0, L.useContext)(gx), { placeholder: r } = Fu(hx), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -24731,7 +24731,7 @@ var xx = /*#__PURE__*/ (0, L.createContext)(null), $te = /*#__PURE__*/ Vp(functi
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = wb(), o = (0, L.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, L.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Dte(), o = (0, L.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, L.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -24746,7 +24746,7 @@ var xx = /*#__PURE__*/ (0, L.createContext)(null), $te = /*#__PURE__*/ Vp(functi
a,
o,
i
- ]), u = Zf(Yte(Bg), "react-aria-components"), d = Pu({
+ ]), u = Zf($te(zg), "react-aria-components"), d = Pu({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -24767,7 +24767,7 @@ var xx = /*#__PURE__*/ (0, L.createContext)(null), $te = /*#__PURE__*/ Vp(functi
});
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function ene(e, t, n) {
+function ine(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = Zh(e, t, n);
return {
labelProps: r,
@@ -24780,23 +24780,23 @@ function ene(e, t, n) {
...o
};
}
-for (var tne = /*#__PURE__*/ (0, L.createContext)(null), Sx = /*#__PURE__*/ (0, L.createContext)(null), nne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+for (var ane = /*#__PURE__*/ (0, L.createContext)(null), vx = /*#__PURE__*/ (0, L.createContext)(null), one = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Iu(r, t, tne);
- let i = ju((0, L.useMemo)(() => Du(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = $h(e), o = ene({
+ [e, t] = Iu(r, t, ane);
+ let i = ju((0, L.useMemo)(() => Du(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = $h(e), o = ine({
...Ru(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ L.createElement(Nu, { values: [[Sx, a], [Cx, {
+ return /*#__PURE__*/ L.createElement(Nu, { values: [[vx, a], [yx, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ L.createElement(rne, {
+ }]] }, /*#__PURE__*/ L.createElement(sne, {
...e,
ref: t
}));
-}), Cx = /*#__PURE__*/ (0, L.createContext)(null), rne = /*#__PURE__*/ (0, L.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, L.useContext)(Cx), { isFocused: f, isFocusVisible: p, focusProps: m } = Gm(), h = a || o, g = (0, L.useContext)(Sx), { hoverProps: _, isHovered: v } = Zm({
+}), yx = /*#__PURE__*/ (0, L.createContext)(null), sne = /*#__PURE__*/ (0, L.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, L.useContext)(yx), { isFocused: f, isFocusVisible: p, focusProps: m } = Gm(), h = a || o, g = (0, L.useContext)(vx), { hoverProps: _, isHovered: v } = Zm({
...e,
isDisabled: h
}), y = Pu({
@@ -24832,7 +24832,7 @@ for (var tne = /*#__PURE__*/ (0, L.createContext)(null), Sx = /*#__PURE__*/ (0,
...q(r, m),
ref: l
})), y.children);
-}), wx = 10, Tx = 5, ine = class {
+}), bx = 10, xx = 5, cne = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -24842,7 +24842,7 @@ for (var tne = /*#__PURE__*/ (0, L.createContext)(null), Sx = /*#__PURE__*/ (0,
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > Tx && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > wx && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > xx && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > bx && (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);
@@ -24921,11 +24921,11 @@ for (var tne = /*#__PURE__*/ (0, L.createContext)(null), Sx = /*#__PURE__*/ (0,
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Tx && i) {
+ if (Math.abs(r - c.lastSwitchY) > xx && 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 > wx && a) {
+ if (l > bx && 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;
}
@@ -24940,7 +24940,7 @@ for (var tne = /*#__PURE__*/ (0, L.createContext)(null), Sx = /*#__PURE__*/ (0,
boundaryContext: null
};
}
-}, ane = class {
+}, lne = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -25010,8 +25010,8 @@ for (var tne = /*#__PURE__*/ (0, L.createContext)(null), Sx = /*#__PURE__*/ (0,
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Ex = "row-header-column-" + Math.random().toString(36).slice(2), Dx = "row-header-column-" + Math.random().toString(36).slice(2); Ex === Dx;) Dx = "row-header-column-" + Math.random().toString(36).slice(2);
-function Ox(e, t) {
+}, Sx = "row-header-column-" + Math.random().toString(36).slice(2), Cx = "row-header-column-" + Math.random().toString(36).slice(2); Sx === Cx;) Cx = "row-header-column-" + Math.random().toString(36).slice(2);
+function wx(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -25095,13 +25095,13 @@ function Ox(e, t) {
textValue: ""
}));
}
-var one = class extends ane {
+var une = class extends lne {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Ex,
+ key: Sx,
value: null,
textValue: "",
level: 0,
@@ -25116,7 +25116,7 @@ var one = class extends ane {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Dx,
+ key: Cx,
value: null,
textValue: "",
level: 0,
@@ -25143,7 +25143,7 @@ var one = class extends ane {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Ox(s, a);
+ let l = wx(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -25204,7 +25204,7 @@ var one = class extends ane {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function sne(e) {
+function dne(e) {
let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || U_(e), i = (0, L.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
@@ -25255,11 +25255,11 @@ function sne(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var cne = {
+var fne = {
ascending: "descending",
descending: "ascending"
};
-function lne(e) {
+function pne(e) {
let [t, n] = (0, L.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, L.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -25270,7 +25270,7 @@ function lne(e) {
i,
r,
a
- ]), c = J_(e, (0, L.useCallback)((e) => new one(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = sne({
+ ]), c = J_(e, (0, L.useCallback)((e) => new une(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = dne({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -25286,7 +25286,7 @@ function lne(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? cne[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? fne[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -25299,7 +25299,7 @@ function lne(e) {
treeColumn: o
};
}
-function une(e, t) {
+function mne(e, t) {
let n = (0, L.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -25309,10 +25309,10 @@ function une(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var kx = class {
+var Tx = 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 dne(e.layout) : new C_(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new hne(e.layout) : new C_(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -25478,7 +25478,7 @@ var kx = class {
}
return null;
}
-}, dne = class {
+}, hne = class {
constructor(e) {
this.layout = e;
}
@@ -25491,16 +25491,16 @@ var kx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Ax = /* @__PURE__ */ new WeakMap();
+}, Ex = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function fne(e, t, n) {
+function gne(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 = E_({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Lf(), _ = t.selectionManager.disabledBehavior, v = (0, L.useMemo)(() => a || new kx({
+ }), { direction: g } = Lf(), _ = t.selectionManager.disabledBehavior, v = (0, L.useMemo)(() => a || new Tx({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -25526,7 +25526,7 @@ function fne(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = wu(e.id);
- Ax.set(t, {
+ Ex.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -25535,7 +25535,7 @@ function fne(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = Dte({
+ let x = jte({
selectionManager: m,
hasItemActions: !!(l || u)
}), S = bm(e, { labelable: !0 }), C = (0, L.useCallback)((e) => {
@@ -25547,36 +25547,36 @@ function fne(e, t, n) {
}, [m]), w = (0, L.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = sx(n, { isDisabled: t.collection.size !== 0 }), E = q(S, {
+ }), [C, y.onBlur]), T = rx(n, { isDisabled: t.collection.size !== 0 }), E = q(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), Tte({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), kte({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var jx = /* @__PURE__ */ new WeakMap();
-function Mx(e) {
+var Dx = /* @__PURE__ */ new WeakMap();
+function Ox(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function pne(e, t) {
- let n = jx.get(e);
+function _ne(e, t) {
+ let n = Dx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Mx(t)}`;
+ return `${n}-${Ox(t)}`;
}
-function Nx(e, t, n) {
- let r = jx.get(e);
+function kx(e, t, n) {
+ let r = Dx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Mx(t)}-${Mx(n)}`;
+ return `${r}-${Ox(t)}-${Ox(n)}`;
}
-function Px(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Nx(e, t, n)).join(" ");
+function Ax(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => kx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Fx = {};
-Fx = {
+var jx = {};
+jx = {
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: "طي",
@@ -25591,8 +25591,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Ix = {};
-Ix = {
+var Mx = {};
+Mx = {
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: "Свиване",
@@ -25607,8 +25607,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Lx = {};
-Lx = {
+var Nx = {};
+Nx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -25623,8 +25623,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Rx = {};
-Rx = {
+var Px = {};
+Px = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -25639,8 +25639,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var zx = {};
-zx = {
+var Fx = {};
+Fx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -25655,8 +25655,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Bx = {};
-Bx = {
+var Ix = {};
+Ix = {
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: "Σύμπτυξη",
@@ -25671,8 +25671,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Vx = {};
-Vx = {
+var Lx = {};
+Lx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -25687,8 +25687,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Hx = {};
-Hx = {
+var Rx = {};
+Rx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -25703,8 +25703,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Ux = {};
-Ux = {
+var zx = {};
+zx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -25719,8 +25719,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Wx = {};
-Wx = {
+var Bx = {};
+Bx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -25735,8 +25735,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Gx = {};
-Gx = {
+var Vx = {};
+Vx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -25751,8 +25751,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Kx = {};
-Kx = {
+var Hx = {};
+Hx = {
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: "כווץ",
@@ -25767,8 +25767,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var qx = {};
-qx = {
+var Ux = {};
+Ux = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -25783,8 +25783,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Jx = {};
-Jx = {
+var Wx = {};
+Wx = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -25799,8 +25799,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Yx = {};
-Yx = {
+var Gx = {};
+Gx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -25815,8 +25815,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Xx = {};
-Xx = {
+var Kx = {};
+Kx = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -25831,8 +25831,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Zx = {};
-Zx = {
+var qx = {};
+qx = {
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: "접기",
@@ -25847,8 +25847,8 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Qx = {};
-Qx = {
+var Jx = {};
+Jx = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -25863,8 +25863,8 @@ Qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var $x = {};
-$x = {
+var Yx = {};
+Yx = {
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",
@@ -25879,8 +25879,8 @@ $x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var eS = {};
-eS = {
+var Xx = {};
+Xx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -25895,8 +25895,8 @@ eS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var tS = {};
-tS = {
+var Zx = {};
+Zx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -25911,8 +25911,8 @@ tS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var nS = {};
-nS = {
+var Qx = {};
+Qx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -25927,8 +25927,8 @@ nS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var rS = {};
-rS = {
+var $x = {};
+$x = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -25943,8 +25943,8 @@ rS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var iS = {};
-iS = {
+var eS = {};
+eS = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -25959,8 +25959,8 @@ iS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var aS = {};
-aS = {
+var tS = {};
+tS = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -25975,8 +25975,8 @@ aS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var oS = {};
-oS = {
+var nS = {};
+nS = {
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: "Свернуть",
@@ -25991,8 +25991,8 @@ oS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var sS = {};
-sS = {
+var rS = {};
+rS = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -26007,8 +26007,8 @@ sS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var cS = {};
-cS = {
+var iS = {};
+iS = {
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",
@@ -26023,8 +26023,8 @@ cS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var lS = {};
-lS = {
+var aS = {};
+aS = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -26039,8 +26039,8 @@ lS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var uS = {};
-uS = {
+var oS = {};
+oS = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -26055,8 +26055,8 @@ uS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var dS = {};
-dS = {
+var sS = {};
+sS = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -26071,8 +26071,8 @@ dS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var fS = {};
-fS = {
+var cS = {};
+cS = {
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: "Згорнути",
@@ -26087,8 +26087,8 @@ fS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var pS = {};
-pS = {
+var lS = {};
+lS = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -26103,8 +26103,8 @@ pS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var mS = {};
-mS = {
+var uS = {};
+uS = {
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: "收合",
@@ -26119,46 +26119,46 @@ mS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var hS = {};
-hS = {
- "ar-AE": Fx,
- "bg-BG": Ix,
- "cs-CZ": Lx,
- "da-DK": Rx,
- "de-DE": zx,
- "el-GR": Bx,
- "en-US": Vx,
- "es-ES": Hx,
- "et-EE": Ux,
- "fi-FI": Wx,
- "fr-FR": Gx,
- "he-IL": Kx,
- "hr-HR": qx,
- "hu-HU": Jx,
- "it-IT": Yx,
- "ja-JP": Xx,
- "ko-KR": Zx,
- "lt-LT": Qx,
- "lv-LV": $x,
- "nb-NO": eS,
- "nl-NL": tS,
- "pl-PL": nS,
- "pt-BR": rS,
- "pt-PT": iS,
- "ro-RO": aS,
- "ru-RU": oS,
- "sk-SK": sS,
- "sl-SI": cS,
- "sr-SP": lS,
- "sv-SE": uS,
- "tr-TR": dS,
- "uk-UA": fS,
- "zh-CN": pS,
- "zh-TW": mS
+var dS = {};
+dS = {
+ "ar-AE": jx,
+ "bg-BG": Mx,
+ "cs-CZ": Nx,
+ "da-DK": Px,
+ "de-DE": Fx,
+ "el-GR": Ix,
+ "en-US": Lx,
+ "es-ES": Rx,
+ "et-EE": zx,
+ "fi-FI": Bx,
+ "fr-FR": Vx,
+ "he-IL": Hx,
+ "hr-HR": Ux,
+ "hu-HU": Wx,
+ "it-IT": Gx,
+ "ja-JP": Kx,
+ "ko-KR": qx,
+ "lt-LT": Jx,
+ "lv-LV": Yx,
+ "nb-NO": Xx,
+ "nl-NL": Zx,
+ "pl-PL": Qx,
+ "pt-BR": $x,
+ "pt-PT": eS,
+ "ro-RO": tS,
+ "ru-RU": nS,
+ "sk-SK": rS,
+ "sl-SI": iS,
+ "sr-SP": aS,
+ "sv-SE": oS,
+ "tr-TR": sS,
+ "uk-UA": cS,
+ "zh-CN": lS,
+ "zh-TW": uS
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var mne = class extends kx {
+var vne = class extends Tx {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -26236,14 +26236,14 @@ var mne = class extends kx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function hne(e) {
+function yne(e) {
return e && e.__esModule ? e.default : e;
}
-function gne(e, t, n) {
+function bne(e, t, n) {
let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = E_({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Lf(), l = t.selectionManager.disabledBehavior, u = (0, L.useMemo)(() => r || new mne({
+ }), { direction: c } = Lf(), l = t.selectionManager.disabledBehavior, u = (0, L.useMemo)(() => r || new vne({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -26263,14 +26263,14 @@ function gne(e, t, n) {
a,
o
]), d = wu(e.id);
- jx.set(t, d);
- let { gridProps: f } = fne({
+ Dx.set(t, d);
+ let { gridProps: f } = gne({
...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 = Zf(hne(hS), "@react-aria/table"), g = (0, L.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Zf(yne(dS), "@react-aria/table"), g = (0, L.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
@@ -26284,13 +26284,13 @@ function gne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function gS(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Lf(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Ax.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, L.useRef)(null), h = () => {
+function fS(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Lf(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Ex.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, L.useRef)(null), h = () => {
if (n.current) {
let e = p_(n.current);
if (p === "child") {
if (td(n.current) && n.current !== Y(Wu(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? _S(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? pS(e) : e.firstChild();
if (r) {
yp(r);
return;
@@ -26322,7 +26322,7 @@ function gS(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (yp(n.current), Sh(n.current, { containingElement: vh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : _S(a), t && (yp(t), Sh(t, { containingElement: vh(n.current) })));
+ p === "cell" && l === "rtl" ? (yp(n.current), Sh(n.current, { containingElement: vh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : pS(a), t && (yp(t), Sh(t, { containingElement: vh(n.current) })));
}
break;
}
@@ -26334,7 +26334,7 @@ function gS(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (yp(n.current), Sh(n.current, { containingElement: vh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? _S(a) : a.firstChild(), t && (yp(t), Sh(t, { containingElement: vh(n.current) })));
+ p === "cell" && l === "ltr" ? (yp(n.current), Sh(n.current, { containingElement: vh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? pS(a) : a.firstChild(), t && (yp(t), Sh(t, { containingElement: vh(n.current) })));
}
break;
}
@@ -26379,7 +26379,7 @@ function gS(e, t, n) {
isPressed: _
};
}
-function _S(e) {
+function pS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -26388,11 +26388,11 @@ function _S(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function _ne(e) {
+function xne(e) {
return e && e.__esModule ? e.default : e;
}
-function vne(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = gS({
+function Sne(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = fS({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Im({
@@ -26403,7 +26403,7 @@ function vne(e, t, n) {
ref: n
}), { focusableProps: l } = Rp({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !Id() && (u = d ? f : "none");
- let p = Zf(_ne(hS), "@react-aria/table"), m;
+ let p = Zf(xne(dS), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && Id() && (m = `${m}, ${p.format(f)}`));
let h = Th(m), g = t.collection.size === 0;
return (0, L.useEffect)(() => {
@@ -26416,7 +26416,7 @@ function vne(e, t, n) {
columnHeaderProps: {
...q(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: pne(t, r.key),
+ id: _ne(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -26425,8 +26425,8 @@ function vne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function yne(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Ax.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = k_({
+function Cne(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Ex.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = k_({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -26447,10 +26447,10 @@ function yne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function bne(e) {
+function wne(e) {
return e && e.__esModule ? e.default : e;
}
-var vS = {
+var mS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26460,21 +26460,21 @@ var vS = {
rtl: "ArrowRight"
}
};
-function xne(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = yne(e, t, n), { direction: s } = Lf();
+function Tne(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Cne(e, t, n), { direction: s } = Lf();
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 = Zf(bne(hS), "@react-aria/table"), u = Ef({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Zf(wne(dS), "@react-aria/table"), u = Ef({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": Px(t, r.key)
+ "aria-labelledby": Ax(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = yS(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 = yS(t.collection, a);
+ let n = hS(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 = hS(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === vS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === vS.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 === mS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === mS.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,
@@ -26496,46 +26496,46 @@ function xne(e, t, n) {
return {
rowProps: {
...q(a, d, m),
- "aria-labelledby": Px(t, r.key)
+ "aria-labelledby": Ax(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function yS(e, t) {
+function hS(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Sne(e, t, n) {
+function Ene(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Cne(e, t, n) {
- let { gridCellProps: r, isPressed: i } = gS(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Nx(t, e.node.parentKey, a)), {
+function Dne(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = fS(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = kx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function wne(e) {
+function One(e) {
return e && e.__esModule ? e.default : e;
}
-function Tne(e, t) {
- let { key: n } = e, { checkboxProps: r } = kte(e, t);
+function kne(e, t) {
+ let { key: n } = e, { checkboxProps: r } = Nte(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${Px(t, n)}`
+ "aria-labelledby": `${r.id} ${Ax(t, n)}`
} };
}
-function Ene(e) {
+function Ane(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Zf(wne(hS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Zf(One(dS), "@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,
@@ -26544,17 +26544,17 @@ function Ene(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Dne() {
+function jne() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function bS() {
- return Dne();
+function gS() {
+ return jne();
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var One = class extends sp {
+var Mne = class extends sp {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -26569,7 +26569,7 @@ var One = class extends sp {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new DS(-2);
+ return new CS(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -26595,7 +26595,7 @@ var One = class extends sp {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Ox(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 = wx(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;
@@ -26676,10 +26676,10 @@ var One = class extends sp {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new wS(-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 bS(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, kne = /*#__PURE__*/ (0, L.createContext)(null), Ane = /*#__PURE__*/ (0, L.createContext)(null), xS = /*#__PURE__*/ (0, L.createContext)(null), SS = /*#__PURE__*/ (0, L.createContext)(null), jne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- [e, t] = Iu(e, t, Ane);
+}, Nne = /*#__PURE__*/ (0, L.createContext)(null), Pne = /*#__PURE__*/ (0, L.createContext)(null), _S = /*#__PURE__*/ (0, L.createContext)(null), vS = /*#__PURE__*/ (0, L.createContext)(null), Fne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Iu(e, t, Pne);
let n = U_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, L.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
@@ -26690,17 +26690,17 @@ var One = class extends sp {
i,
a,
o
- ]), c = /*#__PURE__*/ L.createElement(Pne.Provider, { value: s }, /*#__PURE__*/ L.createElement(om, e));
+ ]), c = /*#__PURE__*/ L.createElement(Rne.Provider, { value: s }, /*#__PURE__*/ L.createElement(om, e));
return /*#__PURE__*/ L.createElement(Jp, {
content: c,
- createCollection: () => new One()
- }, (r) => /*#__PURE__*/ L.createElement(Nne, {
+ createCollection: () => new Mne()
+ }, (r) => /*#__PURE__*/ L.createElement(Lne, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Mne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}), Ine = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, L.useContext)(fm);
return n ? /*#__PURE__*/ L.createElement(Vu.div, {
...e,
@@ -26709,7 +26709,7 @@ var One = class extends sp {
...e,
ref: t
});
-}), CS = {
+}), yS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26719,26 +26719,26 @@ var One = class extends sp {
rtl: "ArrowRight"
}
};
-function Nne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+function Lne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[e, t] = Iu(e, t, ep);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, L.useContext)(kne);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, L.useContext)(Nne);
t = ju((0, L.useMemo)(() => Du(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = $f(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, L.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = lne({
+ let d = pne({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = une(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, L.useContext)(fm), { dragAndDropHooks: _ } = e, { gridProps: v } = gne({
+ }), f = mne(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, L.useContext)(fm), { dragAndDropHooks: _ } = e, { gridProps: v } = bne({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, L.useRef)(b), (0, L.useRef)(x), (0, L.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, L.useRef)(null), { direction: O } = Lf(), [k] = (0, L.useState)(() => new ine());
+ let S, C, w, T = !1, E = null, D = (0, L.useRef)(null), { direction: O } = Lf(), [k] = (0, L.useState)(() => new cne());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -26773,7 +26773,7 @@ function Nne({ 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 === CS.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === CS.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === yS.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === yS.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
@@ -26796,17 +26796,17 @@ function Nne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
}));
let F = bm(e, { global: !0 });
return /*#__PURE__*/ L.createElement(Nu, { values: [
- [xS, f],
- [SS, P],
- [Vg, {
+ [_S, f],
+ [vS, P],
+ [Bg, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [Hg, { render: Wne }],
+ [Vg, { render: Jne }],
[ep, null],
[tp, null]
- ] }, /*#__PURE__*/ L.createElement(t_, null, /*#__PURE__*/ L.createElement(Mne, {
+ ] }, /*#__PURE__*/ L.createElement(t_, null, /*#__PURE__*/ L.createElement(Ine, {
...q(F, N, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -26819,14 +26819,14 @@ function Nne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
}, /*#__PURE__*/ L.createElement(qg, null, /*#__PURE__*/ L.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: Gg(y, _, C)
+ persistedKeys: Wg(y, _, C)
})))), E);
}
-var Pne = /*#__PURE__*/ (0, L.createContext)(null), wS = class extends np {
+var Rne = /*#__PURE__*/ (0, L.createContext)(null), bS = class extends np {
static {
this.type = "tableheader";
}
-}, Fne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}, zne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, L.useContext)(fm);
return n ? /*#__PURE__*/ L.createElement(Vu.div, {
...e,
@@ -26835,16 +26835,16 @@ var Pne = /*#__PURE__*/ (0, L.createContext)(null), wS = class extends np {
...e,
ref: t
});
-}), TS = /*#__PURE__*/ rm(wS, (e, t) => {
- let n = (0, L.useContext)(xS).collection, r = fp({
+}), xS = /*#__PURE__*/ rm(bS, (e, t) => {
+ let n = (0, L.useContext)(_S).collection, r = fp({
items: n.headerRows,
children: (0, L.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ L.createElement(Lne, { item: e });
+ case "headerrow": return /*#__PURE__*/ L.createElement(Vne, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = bS(), { hoverProps: a, isHovered: o } = Zm({
+ }), { rowGroupProps: i } = gS(), { hoverProps: a, isHovered: o } = Zm({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -26854,7 +26854,7 @@ var Pne = /*#__PURE__*/ (0, L.createContext)(null), wS = class extends np {
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ L.createElement(Fne, {
+ return /*#__PURE__*/ L.createElement(zne, {
...q(bm(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -26863,7 +26863,7 @@ var Pne = /*#__PURE__*/ (0, L.createContext)(null), wS = class extends np {
}, (e) => /*#__PURE__*/ L.createElement(om, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Ine = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}, e.children)), Bne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, L.useContext)(fm);
return n ? /*#__PURE__*/ L.createElement("div", {
...e,
@@ -26873,12 +26873,12 @@ var Pne = /*#__PURE__*/ (0, L.createContext)(null), wS = class extends np {
ref: t
});
});
-function Lne({ item: e }) {
- let t = (0, L.useRef)(null), n = (0, L.useContext)(xS), { isVirtualized: r, CollectionBranch: i } = (0, L.useContext)(fm), { rowProps: a } = Sne({
+function Vne({ item: e }) {
+ let t = (0, L.useRef)(null), n = (0, L.useContext)(_S), { isVirtualized: r, CollectionBranch: i } = (0, L.useContext)(fm), { rowProps: a } = Ene({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Ene(n);
- return /*#__PURE__*/ L.createElement(Ine, {
+ }, n, t), { checkboxProps: o } = Ane(n);
+ return /*#__PURE__*/ L.createElement(Bne, {
...a,
ref: t
}, /*#__PURE__*/ L.createElement(Nu, { values: [[eg, { slots: { selection: o } }], [tg, { slots: { selection: o } }]] }, /*#__PURE__*/ L.createElement(i, {
@@ -26886,11 +26886,11 @@ function Lne({ item: e }) {
parent: e
})));
}
-var Rne = class extends np {
+var Hne = class extends np {
static {
this.type = "column";
}
-}, zne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}, Une = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, L.useContext)(fm);
return n ? /*#__PURE__*/ L.createElement(Vu.div, {
...e,
@@ -26899,13 +26899,13 @@ var Rne = class extends np {
...e,
ref: t
});
-}), ES = /*#__PURE__*/ nm(Rne, (e, t, n) => {
- let r = ju(t), i = (0, L.useContext)(xS), { isVirtualized: a } = (0, L.useContext)(fm), { columnHeaderProps: o, isPressed: s } = vne({
+}), SS = /*#__PURE__*/ nm(Hne, (e, t, n) => {
+ let r = ju(t), i = (0, L.useContext)(_S), { isVirtualized: a } = (0, L.useContext)(fm), { columnHeaderProps: o, isPressed: s } = Sne({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Gm(), d = (0, L.useContext)(SS), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Gm(), d = (0, L.useContext)(vS), f = !1;
d && (f = d.resizingColumn === n.key);
let { hoverProps: p, isHovered: m } = Zm({ isDisabled: !e.allowsSorting }), h = Pu({
...e,
@@ -26934,7 +26934,7 @@ var Rne = class extends np {
width: d.getColumnWidth(n.key)
});
let _ = bm(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ L.createElement(zne, {
+ return delete _.id, /*#__PURE__*/ L.createElement(Une, {
...q(_, o, u, p),
...h,
style: g,
@@ -26946,15 +26946,15 @@ var Rne = class extends np {
"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__*/ L.createElement(Nu, { values: [[Bne, {
+ }, /*#__PURE__*/ L.createElement(Nu, { values: [[Wne, {
column: n,
triggerRef: r
}], [fm, lm]] }, h.children));
-}), Bne = /*#__PURE__*/ (0, L.createContext)(null), DS = class extends rp {
+}), Wne = /*#__PURE__*/ (0, L.createContext)(null), CS = class extends rp {
static {
this.type = "tablebody";
}
-}, Vne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}, Gne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, L.useContext)(fm);
return n ? /*#__PURE__*/ L.createElement(Vu.div, {
...e,
@@ -26963,8 +26963,8 @@ var Rne = class extends np {
...e,
ref: t
});
-}), OS = /*#__PURE__*/ rm(DS, (e, t, n) => {
- let r = (0, L.useContext)(xS), { isVirtualized: i } = (0, L.useContext)(fm), a = r.collection, { CollectionBranch: o } = (0, L.useContext)(fm), { dragAndDropHooks: s, dropState: c } = (0, L.useContext)(Vg), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), wS = /*#__PURE__*/ rm(CS, (e, t, n) => {
+ let r = (0, L.useContext)(_S), { isVirtualized: i } = (0, L.useContext)(fm), a = r.collection, { CollectionBranch: o } = (0, L.useContext)(fm), { dragAndDropHooks: s, dropState: c } = (0, L.useContext)(Bg), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
}, p = Pu({
@@ -26976,25 +26976,25 @@ var Rne = class extends np {
}), 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__*/ L.createElement(AS, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ L.createElement(ES, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ L.createElement(MS, {
+ }, /*#__PURE__*/ L.createElement(OS, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = bS(), _ = bm(e, { global: !0 });
- return /*#__PURE__*/ L.createElement(Vne, {
+ let { rowGroupProps: g } = gS(), _ = bm(e, { global: !0 });
+ return /*#__PURE__*/ L.createElement(Gne, {
...q(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ L.createElement(RS, null), /*#__PURE__*/ L.createElement(o, {
+ }, l && /*#__PURE__*/ L.createElement($ne, null), /*#__PURE__*/ L.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: Wg(s, c)
+ renderDropIndicator: Ug(s, c)
}), m);
});
(class extends rp {
@@ -27002,7 +27002,7 @@ var Rne = class extends np {
this.type = "tablefooter";
}
});
-var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hne = class extends np {
+var TS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Kne = class extends np {
static {
this.type = "item";
}
@@ -27014,7 +27014,7 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
}
return null;
}
-}, AS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}, ES = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, L.useContext)(fm);
return n ? /*#__PURE__*/ L.createElement(Vu.div, {
...e,
@@ -27023,8 +27023,8 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
...e,
ref: t
});
-}), jS = /*#__PURE__*/ rm(Hne, (e, t, n) => {
- let r = ju(t), i = (0, L.useContext)(xS), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, L.useContext)(Vg), { isVirtualized: c, CollectionBranch: l } = (0, L.useContext)(fm), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = xne({
+}), DS = /*#__PURE__*/ rm(Kne, (e, t, n) => {
+ let r = ju(t), i = (0, L.useContext)(_S), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, L.useContext)(Bg), { isVirtualized: c, CollectionBranch: l } = (0, L.useContext)(fm), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Tne({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -27033,7 +27033,7 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Tne({ key: n.key }, i), S;
+ }), { checkboxProps: x } = kne({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -27070,10 +27070,10 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
level: n.level + 1
}
}), N = bm(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ L.createElement(L.Fragment, null, C && !C.isHidden && /*#__PURE__*/ L.createElement(AS, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ L.createElement(L.Fragment, null, C && !C.isHidden && /*#__PURE__*/ L.createElement(ES, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ L.createElement(MS, {
+ }, /*#__PURE__*/ L.createElement(OS, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -27082,7 +27082,7 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ L.createElement(AS, {
+ }))), /*#__PURE__*/ L.createElement(ES, {
...q(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -27117,7 +27117,7 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
}
} }],
[Jg, { isSelected: p.isSelected }],
- [kS, { isFocusVisibleWithinRow: _ }]
+ [TS, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ L.createElement(l, {
collection: i.collection,
parent: n
@@ -27130,11 +27130,11 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
items: e.columns,
idScope: e.id
}, e.children);
-}), Une = class extends np {
+}), qne = class extends np {
static {
this.type = "cell";
}
-}, MS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}, OS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, L.useContext)(fm);
return n ? /*#__PURE__*/ L.createElement(Vu.div, {
...e,
@@ -27143,16 +27143,16 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
...e,
ref: t
});
-}), NS = /*#__PURE__*/ nm(Une, (e, t, n) => {
- let r = ju(t), i = (0, L.useContext)(xS), { dragState: a } = (0, L.useContext)(Vg), { isVirtualized: o } = (0, L.useContext)(fm);
+}), kS = /*#__PURE__*/ nm(qne, (e, t, n) => {
+ let r = ju(t), i = (0, L.useContext)(_S), { dragState: a } = (0, L.useContext)(Bg), { isVirtualized: o } = (0, L.useContext)(fm);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Cne({
+ let { gridCellProps: s, isPressed: c } = Dne({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Gm(), { hoverProps: f, isHovered: p } = Zm({}), { isFocusVisibleWithinRow: m } = (0, L.useContext)(kS), 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 = Pu({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Gm(), { hoverProps: f, isHovered: p } = Zm({}), { isFocusVisibleWithinRow: m } = (0, L.useContext)(TS), 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 = Pu({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -27172,7 +27172,7 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
isTreeColumn: n.column.key === i.treeColumn
}
}), S = bm(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ L.createElement(MS, {
+ return delete S.id, /*#__PURE__*/ L.createElement(OS, {
...q(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -27188,12 +27188,12 @@ var kS = /*#__PURE__*/ (0, L.createContext)({ isFocusVisibleWithinRow: !1 }), Hn
"data-disabled": b || void 0
}, /*#__PURE__*/ L.createElement(fm.Provider, { value: lm }, x.children));
});
-function Wne(e, t) {
+function Jne(e, t) {
t = ju(t);
- let { dragAndDropHooks: n, dropState: r } = (0, L.useContext)(Vg), i = (0, L.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, L.useContext)(Bg), i = (0, L.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__*/ L.createElement(LS, {
+ return /*#__PURE__*/ L.createElement(Qne, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -27202,7 +27202,7 @@ function Wne(e, t) {
ref: t
});
}
-var PS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+var Yne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, L.useContext)(fm);
return n ? /*#__PURE__*/ L.createElement(Vu.div, {
...e,
@@ -27211,7 +27211,7 @@ var PS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
...e,
ref: t
});
-}), FS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+}), Xne = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, L.useContext)(fm);
return n ? /*#__PURE__*/ L.createElement(Vu.div, {
...e,
@@ -27221,21 +27221,21 @@ var PS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
ref: t
});
});
-function IS(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, L.useContext)(xS), { visuallyHiddenProps: c } = Dh(), l = Pu({
+function Zne(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, L.useContext)(_S), { visuallyHiddenProps: c } = Dh(), l = Pu({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ L.createElement(PS, {
+ return /*#__PURE__*/ L.createElement(Yne, {
...bm(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ L.createElement(FS, {
+ }, /*#__PURE__*/ L.createElement(Xne, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -27246,14 +27246,14 @@ function IS(e, t) {
ref: i
}), l.children));
}
-var LS = /*#__PURE__*/ (0, L.forwardRef)(IS);
-function RS() {
- let e = (0, L.useContext)(xS), { dragAndDropHooks: t, dropState: n } = (0, L.useContext)(Vg), r = (0, L.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Dh();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ L.createElement(AS, {
+var Qne = /*#__PURE__*/ (0, L.forwardRef)(Zne);
+function $ne() {
+ let e = (0, L.useContext)(_S), { dragAndDropHooks: t, dropState: n } = (0, L.useContext)(Bg), r = (0, L.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Dh();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ L.createElement(ES, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ L.createElement(MS, {
+ }, /*#__PURE__*/ L.createElement(OS, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -27265,7 +27265,7 @@ function RS() {
})));
}
nm(ip, function(e, t, n) {
- let r = (0, L.useContext)(xS), { isVirtualized: i } = (0, L.useContext)(fm), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, L.useRef)(null);
+ let r = (0, L.useContext)(_S), { isVirtualized: i } = (0, L.useContext)(fm), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, L.useRef)(null);
Z_((0, L.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
@@ -27284,10 +27284,10 @@ nm(ip, 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__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(AS, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(ES, {
style: { height: 0 },
inert: B_(!0)
- }, /*#__PURE__*/ L.createElement(MS, { style: {
+ }, /*#__PURE__*/ L.createElement(OS, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ L.createElement("div", {
@@ -27298,14 +27298,14 @@ nm(ip, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ L.createElement(AS, {
+ }))), a && d.children && /*#__PURE__*/ L.createElement(ES, {
...q(bm(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ L.createElement(MS, {
+ }, /*#__PURE__*/ L.createElement(OS, {
role: "rowheader",
...p,
style: m
@@ -27313,13 +27313,13 @@ nm(ip, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var zS = /* @__PURE__ */ new WeakMap();
-function BS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${zS.get(e)}-${n}-${t}`) : "";
+var AS = /* @__PURE__ */ new WeakMap();
+function jS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${AS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function VS(e, t, n) {
+function ere(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 } = k_({
selectionManager: o,
key: r,
@@ -27327,7 +27327,7 @@ function VS(e, t, n) {
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = BS(t, r, "tab"), m = BS(t, r, "tabpanel"), { tabIndex: h } = d, g = bm(u?.props, { labelable: !0 });
+ }), p = jS(t, r, "tab"), m = jS(t, r, "tabpanel"), { tabIndex: h } = d, g = bm(u?.props, { labelable: !0 });
delete g.id;
let _ = qd(u?.props), { focusableProps: v } = Rp({
...u?.props,
@@ -27349,12 +27349,12 @@ function VS(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function HS(e, t, n) {
- let r = sx(n) ? void 0 : 0, i = BS(t, e.id ?? t?.selectedKey, "tabpanel");
+function MS(e, t, n) {
+ let r = rx(n) ? void 0 : 0, i = jS(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: q(Ef({
...e,
id: i,
- "aria-labelledby": BS(t, t?.selectedKey, "tab")
+ "aria-labelledby": jS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -27364,7 +27364,7 @@ function HS(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var US = class {
+var NS = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -27408,11 +27408,11 @@ var US = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function WS(e, t, n) {
+function PS(e, t, n) {
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Lf(), { collectionProps: l } = S_({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, L.useMemo)(() => new US(a, c, r, s), [
+ keyboardDelegate: (0, L.useMemo)(() => new NS(a, c, r, s), [
a,
s,
r,
@@ -27423,7 +27423,7 @@ function WS(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = wu();
- return zS.set(t, u), { tabListProps: {
+ return AS.set(t, u), { tabListProps: {
...q(l, Ef({
...e,
id: u
@@ -27435,7 +27435,7 @@ function WS(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function GS(e) {
+function FS(e) {
let [t, n] = $f(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, L.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Y_({
...e,
selectionMode: "single",
@@ -27459,24 +27459,24 @@ function GS(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function KS(e) {
- let t = GS({
+function IS(e) {
+ let t = FS({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? qS(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? LS(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, L.useRef)(i);
return (0, L.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = qS(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 = LS(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 qS(e, t) {
+function LS(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);
@@ -27486,20 +27486,20 @@ function qS(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var JS = /*#__PURE__*/ (0, L.createContext)(null), YS = /*#__PURE__*/ (0, L.createContext)(null), XS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- [e, t] = Iu(e, t, JS);
+var RS = /*#__PURE__*/ (0, L.createContext)(null), zS = /*#__PURE__*/ (0, L.createContext)(null), BS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ [e, t] = Iu(e, t, RS);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, L.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ L.createElement(Jp, { content: n }, (n) => /*#__PURE__*/ L.createElement(ZS, {
+ }) : n, [n, r]), /*#__PURE__*/ L.createElement(Jp, { content: n }, (n) => /*#__PURE__*/ L.createElement(VS, {
props: e,
collection: n,
tabsRef: t
}));
});
-function ZS({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = KS({
+function VS({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = IS({
...e,
collection: n,
children: void 0
@@ -27524,16 +27524,16 @@ function ZS({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ L.createElement(Nu, { values: [[JS, e], [YS, i]] }, l.children));
+ }, /*#__PURE__*/ L.createElement(Nu, { values: [[RS, e], [zS, i]] }, l.children));
}
-var QS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- return (0, L.useContext)(YS) ? /*#__PURE__*/ L.createElement($S, {
+var HS = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
+ return (0, L.useContext)(zS) ? /*#__PURE__*/ L.createElement(US, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ L.createElement(om, e);
});
-function $S({ props: e, forwardedRef: t }) {
- let n = (0, L.useContext)(YS), { CollectionRoot: r } = (0, L.useContext)(fm), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Fu(JS), o = ju(t), { tabListProps: s } = WS({
+function US({ props: e, forwardedRef: t }) {
+ let n = (0, L.useContext)(zS), { CollectionRoot: r } = (0, L.useContext)(fm), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Fu(RS), o = ju(t), { tabListProps: s } = PS({
...e,
orientation: i,
keyboardActivation: a
@@ -27555,12 +27555,12 @@ function $S({ props: e, forwardedRef: t }) {
persistedKeys: pm(n.selectionManager.focusedKey)
})));
}
-var eC = /*#__PURE__*/ nm(class extends np {
+var WS = /*#__PURE__*/ nm(class extends np {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, L.useContext)(YS), i = ju(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = VS({
+ let r = (0, L.useContext)(zS), i = ju(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = ere({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Gm(), { hoverProps: f, isHovered: p } = Zm({
@@ -27592,19 +27592,19 @@ var eC = /*#__PURE__*/ nm(class extends np {
"data-pressed": c || void 0,
"data-hovered": p || void 0
}, /*#__PURE__*/ L.createElement(Jg.Provider, { value: { isSelected: o } }, m.children));
-}), tC = /*#__PURE__*/ Vp(function(e, t) {
- let n = (0, L.useContext)(YS), r = ju(t), i = n.selectedKey === e.id, [a, o] = (0, L.useState)(n.selectedKey == null ? null : i);
+}), GS = /*#__PURE__*/ Vp(function(e, t) {
+ let n = (0, L.useContext)(zS), r = ju(t), i = n.selectedKey === e.id, [a, o] = (0, L.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = xy(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ L.createElement(nC, {
+ let s = Sy(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ L.createElement(KS, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function nC(e) {
- let t = (0, L.useContext)(YS), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = HS(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Gm(), d = t.selectedKey === e.id, f = by(r) && !i, p = Pu({
+function KS(e) {
+ let t = (0, L.useContext)(zS), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = MS(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Gm(), d = t.selectedKey === e.id, f = xy(r) && !i, p = Pu({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -27627,15 +27627,15 @@ function nC(e) {
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ L.createElement(Nu, { values: [[JS, null], [YS, null]] }, /*#__PURE__*/ L.createElement(fm.Provider, { value: lm }, p.children)));
+ }, /*#__PURE__*/ L.createElement(Nu, { values: [[RS, null], [zS, null]] }, /*#__PURE__*/ L.createElement(fm.Provider, { value: lm }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var rC = /*#__PURE__*/ (0, L.createContext)({}), iC = /*#__PURE__*/ (0, L.createContext)(null), aC = /*#__PURE__*/ Vp(function(e, t) {
- [e, t] = Iu(e, t, iC);
+var qS = /*#__PURE__*/ (0, L.createContext)({}), JS = /*#__PURE__*/ (0, L.createContext)(null), YS = /*#__PURE__*/ Vp(function(e, t) {
+ [e, t] = Iu(e, t, JS);
let { validationBehavior: n } = Fu(Vh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, L.useRef)(null);
[e, i] = Iu(e, i, tp);
- let [a, o] = Lu(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, L.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = see({
+ let [a, o] = Lu(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, L.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = cee({
...Ru(e),
inputElementType: s,
label: o,
@@ -27666,15 +27666,15 @@ var rC = /*#__PURE__*/ (0, L.createContext)({}), iC = /*#__PURE__*/ (0, L.create
...l,
ref: a
}],
- [ag, {
+ [ig, {
...u,
ref: m
}],
- [rC, {
+ [qS, {
...u,
ref: m
}],
- [ig, {
+ [rg, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
@@ -27688,34 +27688,34 @@ var rC = /*#__PURE__*/ (0, L.createContext)({}), iC = /*#__PURE__*/ (0, L.create
});
//#endregion
//#region node_modules/motion-utils/dist/es/array.mjs
-function oC(e, t) {
+function XS(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function sC(e, t) {
+function ZS(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var cC = (e, t, n) => n > t ? t : n < e ? e : n, lC = {}, uC = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), dC = (e) => typeof e == "object" && !!e, fC = (e) => /^0[^.\s]+$/u.test(e);
+var QS = (e, t, n) => n > t ? t : n < e ? e : n, $S = {}, eC = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), tC = (e) => typeof e == "object" && !!e, nC = (e) => /^0[^.\s]+$/u.test(e);
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function pC(e) {
+function rC(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var mC = /* @__NO_SIDE_EFFECTS__ */ (e) => e, hC = (...e) => e.reduce((e, t) => (n) => t(e(n))), gC = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var iC = /* @__NO_SIDE_EFFECTS__ */ (e) => e, aC = (...e) => e.reduce((e, t) => (n) => t(e(n))), oC = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, _C = class {
+}, sC = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return oC(this.subscriptions, e), () => sC(this.subscriptions, e);
+ return XS(this.subscriptions, e), () => ZS(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -27733,42 +27733,42 @@ var mC = /* @__NO_SIDE_EFFECTS__ */ (e) => e, hC = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, vC = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, yC = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, bC = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, xC = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, SC = 1e-7, CC = 12;
-function wC(e, t, n, r, i) {
+}, cC = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, lC = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, uC = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, dC = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, fC = 1e-7, pC = 12;
+function mC(e, t, n, r, i) {
let a, o, s = 0;
do
- o = t + (n - t) / 2, a = xC(o, r, i) - e, a > 0 ? n = o : t = o;
- while (Math.abs(a) > SC && ++s < CC);
+ o = t + (n - t) / 2, a = dC(o, r, i) - e, a > 0 ? n = o : t = o;
+ while (Math.abs(a) > fC && ++s < pC);
return o;
}
/*#__NO_SIDE_EFFECTS__*/
-function TC(e, t, n, r) {
- if (e === t && n === r) return mC;
- let i = (t) => wC(t, 0, 1, e, n);
- return (e) => e === 0 || e === 1 ? e : xC(i(e), t, r);
+function hC(e, t, n, r) {
+ if (e === t && n === r) return iC;
+ let i = (t) => mC(t, 0, 1, e, n);
+ return (e) => e === 0 || e === 1 ? e : dC(i(e), t, r);
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var EC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, DC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), OC = /*@__PURE__*/ TC(.33, 1.53, .69, .99), kC = /*@__PURE__*/ DC(OC), AC = /*@__PURE__*/ EC(kC), jC = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * kC(e) : .5 * (2 - 2 ** (-10 * (e - 1))), MC = (e) => 1 - Math.sin(Math.acos(e)), NC = /* @__PURE__ */ DC(MC), PC = /* @__PURE__ */ EC(MC), FC = /*@__PURE__*/ TC(.42, 0, 1, 1), IC = /*@__PURE__*/ TC(0, 0, .58, 1), LC = /*@__PURE__*/ TC(.42, 0, .58, 1), RC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", zC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", BC = {
- linear: mC,
- easeIn: FC,
- easeInOut: LC,
- easeOut: IC,
- circIn: MC,
- circInOut: PC,
- circOut: NC,
- backIn: kC,
- backInOut: AC,
- backOut: OC,
- anticipate: jC
-}, VC = (e) => typeof e == "string", HC = (e) => {
- if (/* @__PURE__ */ zC(e)) {
+var gC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, _C = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), vC = /*@__PURE__*/ hC(.33, 1.53, .69, .99), yC = /*@__PURE__*/ _C(vC), bC = /*@__PURE__*/ gC(yC), xC = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * yC(e) : .5 * (2 - 2 ** (-10 * (e - 1))), SC = (e) => 1 - Math.sin(Math.acos(e)), CC = /* @__PURE__ */ _C(SC), wC = /* @__PURE__ */ gC(SC), TC = /*@__PURE__*/ hC(.42, 0, 1, 1), EC = /*@__PURE__*/ hC(0, 0, .58, 1), DC = /*@__PURE__*/ hC(.42, 0, .58, 1), OC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", kC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", AC = {
+ linear: iC,
+ easeIn: TC,
+ easeInOut: DC,
+ easeOut: EC,
+ circIn: SC,
+ circInOut: wC,
+ circOut: CC,
+ backIn: yC,
+ backInOut: bC,
+ backOut: vC,
+ anticipate: xC
+}, jC = (e) => typeof e == "string", MC = (e) => {
+ if (/* @__PURE__ */ kC(e)) {
e.length;
let [t, n, r, i] = e;
- return /* @__PURE__ */ TC(t, n, r, i);
+ return /* @__PURE__ */ hC(t, n, r, i);
}
- return VC(e) ? (BC[e], `${e}`, BC[e]) : e;
-}, UC = [
+ return jC(e) ? (AC[e], `${e}`, AC[e]) : e;
+}, NC = [
"setup",
"read",
"resolveKeyframes",
@@ -27780,7 +27780,7 @@ var EC = /* @__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 WC(e) {
+function PC(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a = /* @__PURE__ */ new WeakSet(), o = {
delta: 0,
timestamp: 0,
@@ -27811,25 +27811,25 @@ function WC(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var GC = 40;
-function KC(e, t) {
+var FC = 40;
+function IC(e, t) {
let n = !1, r = !0, i = {
delta: 0,
timestamp: 0,
isProcessing: !1
- }, a = () => n = !0, o = UC.reduce((e, t) => (e[t] = WC(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = lC.useManualTiming, o = a ? i.timestamp : performance.now();
- n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, GC), 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 = NC.reduce((e, t) => (e[t] = PC(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = $S.useManualTiming, o = a ? i.timestamp : performance.now();
+ n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, FC), 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: UC.reduce((e, t) => {
+ schedule: NC.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 < UC.length; t++) o[UC[t]].cancel(e);
+ for (let t = 0; t < NC.length; t++) o[NC[t]].cancel(e);
},
state: i,
steps: o
@@ -27837,59 +27837,59 @@ function KC(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: qC, cancel: JC, state: YC, steps: XC } = /* @__PURE__ */ KC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : mC, !0), ZC;
-function Gne() {
- ZC = void 0;
+var { schedule: LC, cancel: RC, state: zC, steps: BC } = /* @__PURE__ */ IC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : iC, !0), VC;
+function HC() {
+ VC = void 0;
}
-var QC = {
- now: () => (ZC === void 0 && QC.set(YC.isProcessing || lC.useManualTiming ? YC.timestamp : performance.now()), ZC),
+var UC = {
+ now: () => (VC === void 0 && UC.set(zC.isProcessing || $S.useManualTiming ? zC.timestamp : performance.now()), VC),
set: (e) => {
- ZC = e, queueMicrotask(Gne);
+ VC = e, queueMicrotask(HC);
}
-}, $C = (e) => (t) => typeof t == "string" && t.startsWith(e), ew = /*@__PURE__*/ $C("--"), Kne = /*@__PURE__*/ $C("var(--"), tw = (e) => Kne(e) ? qne.test(e.split("/*")[0].trim()) : !1, qne = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function nw(e) {
+}, WC = (e) => (t) => typeof t == "string" && t.startsWith(e), GC = /*@__PURE__*/ WC("--"), tre = /*@__PURE__*/ WC("var(--"), KC = (e) => tre(e) ? nre.test(e.split("/*")[0].trim()) : !1, nre = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function qC(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var rw = {
+var JC = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, iw = {
- ...rw,
- transform: (e) => cC(0, 1, e)
-}, aw = {
- ...rw,
+}, YC = {
+ ...JC,
+ transform: (e) => QS(0, 1, e)
+}, XC = {
+ ...JC,
default: 1
-}, ow = (e) => Math.round(e * 1e5) / 1e5, sw = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, ZC = (e) => Math.round(e * 1e5) / 1e5, QC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function Jne(e) {
+function rre(e) {
return e == null;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var Yne = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, cw = (e, t) => (n) => !!(typeof n == "string" && Yne.test(n) && n.startsWith(e) || t && !Jne(n) && Object.prototype.hasOwnProperty.call(n, t)), lw = (e, t, n) => (r) => {
+var ire = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, $C = (e, t) => (n) => !!(typeof n == "string" && ire.test(n) && n.startsWith(e) || t && !rre(n) && Object.prototype.hasOwnProperty.call(n, t)), ew = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(sw);
+ let [i, a, o, s] = r.match(QC);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, Xne = (e) => cC(0, 255, e), uw = {
- ...rw,
- transform: (e) => Math.round(Xne(e))
-}, dw = {
- test: /*@__PURE__*/ cw("rgb", "red"),
- parse: /*@__PURE__*/ lw("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + uw.transform(e) + ", " + uw.transform(t) + ", " + uw.transform(n) + ", " + ow(iw.transform(r)) + ")"
+}, are = (e) => QS(0, 255, e), tw = {
+ ...JC,
+ transform: (e) => Math.round(are(e))
+}, nw = {
+ test: /*@__PURE__*/ $C("rgb", "red"),
+ parse: /*@__PURE__*/ ew("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + tw.transform(e) + ", " + tw.transform(t) + ", " + tw.transform(n) + ", " + ZC(YC.transform(r)) + ")"
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
-function Zne(e) {
+function ore(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),
@@ -27898,38 +27898,38 @@ function Zne(e) {
alpha: i ? parseInt(i, 16) / 255 : 1
};
}
-var fw = {
- test: /*@__PURE__*/ cw("#"),
- parse: Zne,
- transform: dw.transform
-}, pw = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var rw = {
+ test: /*@__PURE__*/ $C("#"),
+ parse: ore,
+ transform: nw.transform
+}, iw = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), mw = /*@__PURE__*/ pw("deg"), hw = /*@__PURE__*/ pw("%"), gw = /*@__PURE__*/ pw("px"), Qne = /*@__PURE__*/ pw("vh"), $ne = /*@__PURE__*/ pw("vw"), _w = {
- ...hw,
- parse: (e) => hw.parse(e) / 100,
- transform: (e) => hw.transform(e * 100)
-}, vw = {
- test: /*@__PURE__*/ cw("hsl", "hue"),
- parse: /*@__PURE__*/ lw("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + hw.transform(ow(t)) + ", " + hw.transform(ow(n)) + ", " + ow(iw.transform(r)) + ")"
-}, yw = {
- test: (e) => dw.test(e) || fw.test(e) || vw.test(e),
- parse: (e) => dw.test(e) ? dw.parse(e) : vw.test(e) ? vw.parse(e) : fw.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? dw.transform(e) : vw.transform(e),
+}), aw = /*@__PURE__*/ iw("deg"), ow = /*@__PURE__*/ iw("%"), sw = /*@__PURE__*/ iw("px"), sre = /*@__PURE__*/ iw("vh"), cre = /*@__PURE__*/ iw("vw"), cw = {
+ ...ow,
+ parse: (e) => ow.parse(e) / 100,
+ transform: (e) => ow.transform(e * 100)
+}, lw = {
+ test: /*@__PURE__*/ $C("hsl", "hue"),
+ parse: /*@__PURE__*/ ew("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + ow.transform(ZC(t)) + ", " + ow.transform(ZC(n)) + ", " + ZC(YC.transform(r)) + ")"
+}, uw = {
+ test: (e) => nw.test(e) || rw.test(e) || lw.test(e),
+ parse: (e) => nw.test(e) ? nw.parse(e) : lw.test(e) ? lw.parse(e) : rw.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? nw.transform(e) : lw.transform(e),
getAnimatableNone: (e) => {
- let t = yw.parse(e);
- return t.alpha = 0, yw.transform(t);
+ let t = uw.parse(e);
+ return t.alpha = 0, uw.transform(t);
}
-}, ere = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
+}, lre = /(?:#[\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 tre(e) {
- return isNaN(e) && typeof e == "string" && (e.match(sw)?.length || 0) + (e.match(ere)?.length || 0) > 0;
+function ure(e) {
+ return isNaN(e) && typeof e == "string" && (e.match(QC)?.length || 0) + (e.match(lre)?.length || 0) > 0;
}
-var bw = "number", xw = "color", nre = "var", rre = "var(", Sw = "${}", ire = /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 Cw(e) {
+var dw = "number", fw = "color", dre = "var", fre = "var(", pw = "${}", pre = /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 mw(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -27937,51 +27937,51 @@ function Cw(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(ire, (e) => (yw.test(e) ? (r.color.push(a), i.push(xw), n.push(yw.parse(e))) : e.startsWith(rre) ? (r.var.push(a), i.push(nre), n.push(e)) : (r.number.push(a), i.push(bw), n.push(parseFloat(e))), ++a, Sw)).split(Sw),
+ split: t.replace(pre, (e) => (uw.test(e) ? (r.color.push(a), i.push(fw), n.push(uw.parse(e))) : e.startsWith(fre) ? (r.var.push(a), i.push(dre), n.push(e)) : (r.number.push(a), i.push(dw), n.push(parseFloat(e))), ++a, pw)).split(pw),
indexes: r,
types: i
};
}
-function are(e) {
- return Cw(e).values;
+function mre(e) {
+ return mw(e).values;
}
-function ww({ split: e, types: t }) {
+function hw({ 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 === bw ? ow(r[a]) : e === xw ? yw.transform(r[a]) : r[a];
+ i += e === dw ? ZC(r[a]) : e === fw ? uw.transform(r[a]) : r[a];
}
return i;
};
}
-function ore(e) {
- return ww(Cw(e));
-}
-var sre = (e) => typeof e == "number" ? 0 : yw.test(e) ? yw.getAnimatableNone(e) : e, cre = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : sre(e);
-function lre(e) {
- let t = Cw(e);
- return ww(t)(t.values.map((e, n) => cre(e, t.split[n])));
-}
-var Tw = {
- test: tre,
- parse: are,
- createTransformer: ore,
- getAnimatableNone: lre
+function hre(e) {
+ return hw(mw(e));
+}
+var gre = (e) => typeof e == "number" ? 0 : uw.test(e) ? uw.getAnimatableNone(e) : e, _re = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : gre(e);
+function vre(e) {
+ let t = mw(e);
+ return hw(t)(t.values.map((e, n) => _re(e, t.split[n])));
+}
+var gw = {
+ test: ure,
+ parse: mre,
+ createTransformer: hre,
+ getAnimatableNone: vre
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function Ew(e, t, n) {
+function _w(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 ure({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function yre({ 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 = Ew(s, r, e + 1 / 3), a = Ew(s, r, e), o = Ew(s, r, e - 1 / 3);
+ i = _w(s, r, e + 1 / 3), a = _w(s, r, e), o = _w(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -27992,61 +27992,61 @@ function ure({ hue: e, saturation: t, lightness: n, alpha: r }) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function Dw(e, t) {
+function vw(e, t) {
return (n) => n > 0 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var Ow = (e, t, n) => e + (t - e) * n, kw = (e, t, n) => {
+var yw = (e, t, n) => e + (t - e) * n, bw = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, dre = [
- fw,
- dw,
- vw
-], fre = (e) => dre.find((t) => t.test(e));
-function Aw(e) {
- let t = fre(e);
+}, bre = [
+ rw,
+ nw,
+ lw
+], xre = (e) => bre.find((t) => t.test(e));
+function xw(e) {
+ let t = xre(e);
if (`${e}`, !t) return !1;
let n = t.parse(e);
- return t === vw && (n = ure(n)), n;
+ return t === lw && (n = yre(n)), n;
}
-var jw = (e, t) => {
- let n = Aw(e), r = Aw(t);
- if (!n || !r) return Dw(e, t);
+var Sw = (e, t) => {
+ let n = xw(e), r = xw(t);
+ if (!n || !r) return vw(e, t);
let i = { ...n };
- return (e) => (i.red = kw(n.red, r.red, e), i.green = kw(n.green, r.green, e), i.blue = kw(n.blue, r.blue, e), i.alpha = Ow(n.alpha, r.alpha, e), dw.transform(i));
-}, Mw = /* @__PURE__ */ new Set(["none", "hidden"]);
-function pre(e, t) {
- return Mw.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return (e) => (i.red = bw(n.red, r.red, e), i.green = bw(n.green, r.green, e), i.blue = bw(n.blue, r.blue, e), i.alpha = yw(n.alpha, r.alpha, e), nw.transform(i));
+}, Cw = /* @__PURE__ */ new Set(["none", "hidden"]);
+function Sre(e, t) {
+ return Cw.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 mre(e, t) {
- return (n) => Ow(e, t, n);
+function Cre(e, t) {
+ return (n) => yw(e, t, n);
}
-function Nw(e) {
- return typeof e == "number" ? mre : typeof e == "string" ? tw(e) ? Dw : yw.test(e) ? jw : _re : Array.isArray(e) ? Pw : typeof e == "object" ? yw.test(e) ? jw : hre : Dw;
+function ww(e) {
+ return typeof e == "number" ? Cre : typeof e == "string" ? KC(e) ? vw : uw.test(e) ? Sw : Ere : Array.isArray(e) ? Tw : typeof e == "object" ? uw.test(e) ? Sw : wre : vw;
}
-function Pw(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => Nw(e)(e, t[n]));
+function Tw(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => ww(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
};
}
-function hre(e, t) {
+function wre(e, t) {
let n = {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Nw(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = ww(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
};
}
-function gre(e, t) {
+function Tre(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -28058,50 +28058,50 @@ function gre(e, t) {
}
return n;
}
-var _re = (e, t) => {
- let n = Tw.createTransformer(t), r = Cw(e), i = Cw(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 ? Mw.has(e) && !i.values.length || Mw.has(t) && !r.values.length ? pre(e, t) : hC(Pw(gre(r, i), i.values), n) : (`${e}${t}`, Dw(e, t));
+var Ere = (e, t) => {
+ let n = gw.createTransformer(t), r = mw(e), i = mw(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 ? Cw.has(e) && !i.values.length || Cw.has(t) && !r.values.length ? Sre(e, t) : aC(Tw(Tre(r, i), i.values), n) : (`${e}${t}`, vw(e, t));
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
-function Fw(e, t, n) {
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Ow(e, t, n) : Nw(e)(e, t);
+function Ew(e, t, n) {
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? yw(e, t, n) : ww(e)(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
-var vre = (e) => {
+var Dre = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => qC.update(t, e),
- stop: () => JC(t),
- now: () => YC.isProcessing ? YC.timestamp : QC.now()
+ start: (e = !0) => LC.update(t, e),
+ stop: () => RC(t),
+ now: () => zC.isProcessing ? zC.timestamp : UC.now()
};
-}, Iw = (e, t, n = 10) => {
+}, Dw = (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)})`;
-}, Lw = 2e4;
-function Rw(e) {
+}, Ow = 2e4;
+function kw(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 yre(e, t = 100, n) {
+function Ore(e, t = 100, n) {
let r = n({
...e,
keyframes: [0, t]
- }), i = Math.min(Rw(r), Lw);
+ }), i = Math.min(kw(r), Ow);
return {
type: "keyframes",
ease: (e) => r.next(i * e).value / t,
- duration: /* @__PURE__ */ yC(i)
+ duration: /* @__PURE__ */ lC(i)
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var zw = {
+var Aw = {
stiffness: 100,
damping: 10,
mass: 1,
@@ -28122,31 +28122,31 @@ var zw = {
minDamping: .05,
maxDamping: 1
};
-function Bw(e, t) {
+function jw(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var bre = 12;
-function xre(e, t, n) {
+var kre = 12;
+function Are(e, t, n) {
let r = n;
- for (let n = 1; n < bre; n++) r -= e(r) / t(r);
+ for (let n = 1; n < kre; n++) r -= e(r) / t(r);
return r;
}
-var Vw = .001;
-function Sre({ duration: e = zw.duration, bounce: t = zw.bounce, velocity: n = zw.velocity, mass: r = zw.mass }) {
+var Mw = .001;
+function jre({ duration: e = Aw.duration, bounce: t = Aw.bounce, velocity: n = Aw.velocity, mass: r = Aw.mass }) {
let i, a;
- zw.maxDuration;
+ Aw.maxDuration;
let o = 1 - t;
- o = cC(zw.minDamping, zw.maxDamping, o), e = cC(zw.minDuration, zw.maxDuration, /* @__PURE__ */ yC(e)), o < 1 ? (i = (t) => {
- let r = t * o, i = r * e, a = r - n, s = Bw(t, o), c = Math.exp(-i);
- return Vw - a / s * c;
+ o = QS(Aw.minDamping, Aw.maxDamping, o), e = QS(Aw.minDuration, Aw.maxDuration, /* @__PURE__ */ lC(e)), o < 1 ? (i = (t) => {
+ let r = t * o, i = r * e, a = r - n, s = jw(t, o), c = Math.exp(-i);
+ return Mw - 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 = Bw(t ** 2, o);
- return (-i(t) + Vw > 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 = jw(t ** 2, o);
+ return (-i(t) + Mw > 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 = xre(i, a, s);
- if (e = /* @__PURE__ */ vC(e), isNaN(c)) return {
- stiffness: zw.stiffness,
- damping: zw.damping,
+ let s = 5 / e, c = Are(i, a, s);
+ if (e = /* @__PURE__ */ cC(e), isNaN(c)) return {
+ stiffness: Aw.stiffness,
+ damping: Aw.damping,
duration: e
};
{
@@ -28158,47 +28158,47 @@ function Sre({ duration: e = zw.duration, bounce: t = zw.bounce, velocity: n = z
};
}
}
-var Cre = ["duration", "bounce"], wre = [
+var Mre = ["duration", "bounce"], Nre = [
"stiffness",
"damping",
"mass"
];
-function Hw(e, t) {
+function Nw(e, t) {
return t.some((t) => e[t] !== void 0);
}
-function Tre(e) {
+function Pre(e) {
let t = {
- velocity: zw.velocity,
- stiffness: zw.stiffness,
- damping: zw.damping,
- mass: zw.mass,
+ velocity: Aw.velocity,
+ stiffness: Aw.stiffness,
+ damping: Aw.damping,
+ mass: Aw.mass,
isResolvedFromDuration: !1,
...e
};
- if (!Hw(e, wre) && Hw(e, Cre)) {
+ if (!Nw(e, Nre) && Nw(e, Mre)) {
if (t.velocity = 0, e.visualDuration) {
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * cC(.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 * QS(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
t = {
...t,
- mass: zw.mass,
+ mass: Aw.mass,
stiffness: i,
damping: a
};
} else {
- let n = Sre({
+ let n = jre({
...e,
velocity: 0
});
t = {
...t,
...n,
- mass: zw.mass
+ mass: Aw.mass
}, t.isResolvedFromDuration = !0;
}
}
return t;
}
-function Uw(e = zw.visualDuration, t = zw.bounce) {
+function Pw(e = Aw.visualDuration, t = Aw.bounce) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -28206,13 +28206,13 @@ function Uw(e = zw.visualDuration, t = zw.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 } = Tre({
+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = Pre({
...n,
- velocity: -/* @__PURE__ */ yC(n.velocity || 0)
- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ yC(Math.sqrt(c / u)), v = Math.abs(g) < 5;
- r ||= v ? zw.restSpeed.granular : zw.restSpeed.default, i ||= v ? zw.restDelta.granular : zw.restDelta.default;
+ velocity: -/* @__PURE__ */ lC(n.velocity || 0)
+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ lC(Math.sqrt(c / u)), v = Math.abs(g) < 5;
+ r ||= v ? Aw.restSpeed.granular : Aw.restSpeed.default, i ||= v ? Aw.restDelta.granular : Aw.restDelta.default;
let y, b, x, S, C, w;
- if (h < 1) x = Bw(_, h), S = (m + h * _ * g) / x, y = (e) => {
+ if (h < 1) x = jw(_, 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));
@@ -28234,42 +28234,42 @@ function Uw(e = zw.visualDuration, t = zw.bounce) {
}
let T = {
calculatedDuration: p && d || null,
- velocity: (e) => /* @__PURE__ */ vC(b(e)),
+ velocity: (e) => /* @__PURE__ */ cC(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__ */ vC(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__ */ cC(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__ */ vC(b(e));
+ let n = /* @__PURE__ */ cC(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(Rw(T), Lw), t = Iw((t) => T.next(e * t).value, e, 30);
+ let e = Math.min(kw(T), Ow), t = Dw((t) => T.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return T;
}
-Uw.applyToOptions = (e) => {
- let t = yre(e, 100, Uw);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ vC(t.duration), e.type = "keyframes", e;
+Pw.applyToOptions = (e) => {
+ let t = Ore(e, 100, Pw);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ cC(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Ere = 5;
-function Ww(e, t, n) {
- let r = Math.max(t - Ere, 0);
- return /* @__PURE__ */ bC(n - e(r), t - r);
+var Fre = 5;
+function Fw(e, t, n) {
+ let r = Math.max(t - Fre, 0);
+ return /* @__PURE__ */ uC(n - e(r), t - r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Gw({ 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 Iw({ 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
@@ -28279,9 +28279,9 @@ function Gw({ 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 = Uw({
+ p(f.value) && (x = e, S = Pw({
keyframes: [f.value, m(f.value)],
- velocity: Ww(y, e, f.value),
+ velocity: Fw(y, e, f.value),
damping: i,
stiffness: a,
restDelta: l,
@@ -28298,59 +28298,59 @@ function Gw({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function Dre(e, t, n) {
- let r = [], i = n || lC.mix || Fw, a = e.length - 1;
+function Ire(e, t, n) {
+ let r = [], i = n || $S.mix || Ew, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
- t && (a = hC(Array.isArray(t) ? t[n] || mC : t, a)), r.push(a);
+ t && (a = aC(Array.isArray(t) ? t[n] || iC : t, a)), r.push(a);
}
return r;
}
-function Kw(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Lw(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 = Dre(t, r, i), c = s.length, l = (n) => {
+ let s = Ire(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__ */ gC(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ oC(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(cC(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(QS(e[0], e[a - 1], t)) : l;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Ore(e, t) {
+function Lre(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ gC(0, t, r);
- e.push(Ow(n, 1, i));
+ let i = /* @__PURE__ */ oC(0, t, r);
+ e.push(yw(n, 1, i));
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function kre(e) {
+function Rre(e) {
let t = [0];
- return Ore(t, e.length - 1), t;
+ return Lre(t, e.length - 1), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function Are(e, t) {
+function zre(e, t) {
return e.map((e) => e * t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function jre(e, t) {
- return e.map(() => t || LC).splice(0, e.length - 1);
+function Bre(e, t) {
+ return e.map(() => t || DC).splice(0, e.length - 1);
}
-function qw({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ RC(r) ? r.map(HC) : HC(r), a = {
+function Rw({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
+ let i = /* @__PURE__ */ OC(r) ? r.map(MC) : MC(r), a = {
done: !1,
value: t[0]
- }, o = Kw(Are(n && n.length === t.length ? n : kre(t), e), t, { ease: Array.isArray(i) ? i : jre(t, i) });
+ }, o = Lw(zre(n && n.length === t.length ? n : Rre(t), e), t, { ease: Array.isArray(i) ? i : Bre(t, i) });
return {
calculatedDuration: e,
next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -28358,26 +28358,26 @@ function qw({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var Mre = (e) => e !== null;
-function Jw(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(Mre), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var Vre = (e) => e !== null;
+function zw(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(Vre), 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 Nre = {
- decay: Gw,
- inertia: Gw,
- tween: qw,
- keyframes: qw,
- spring: Uw
+var Hre = {
+ decay: Iw,
+ inertia: Iw,
+ tween: Rw,
+ keyframes: Rw,
+ spring: Pw
};
-function Yw(e) {
- typeof e.type == "string" && (e.type = Nre[e.type]);
+function Bw(e) {
+ typeof e.type == "string" && (e.type = Hre[e.type]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Xw = class {
+var Vw = class {
constructor() {
this.updateFinished();
}
@@ -28395,21 +28395,21 @@ var Xw = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Pre = (e) => e / 100, Zw = class extends Xw {
+}, Ure = (e) => e / 100, Hw = class extends Vw {
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 !== QC.now() && this.tick(QC.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ e && e.updatedAt !== UC.now() && this.tick(UC.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;
- Yw(e);
- let { type: t = qw, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || qw;
- s !== qw && typeof o[0] != "number" && (this.mixKeyframes = hC(Pre, Fw(o[0], o[1])), o = [0, 100]);
+ Bw(e);
+ let { type: t = Rw, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Rw;
+ s !== Rw && typeof o[0] != "number" && (this.mixKeyframes = aC(Ure, Ew(o[0], o[1])), o = [0, 100]);
let c = s({
...e,
keyframes: o
@@ -28418,7 +28418,7 @@ var Xw = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = Rw(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = kw(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -28436,54 +28436,54 @@ var Xw = 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 = cC(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 = QS(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 !== Gw && (b.value = Jw(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
+ return S && p !== Iw && (b.value = zw(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__ */ yC(this.calculatedDuration);
+ return /* @__PURE__ */ lC(this.calculatedDuration);
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ yC(e);
+ return this.duration + /* @__PURE__ */ lC(e);
}
get time() {
- return /* @__PURE__ */ yC(this.currentTime);
+ return /* @__PURE__ */ lC(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ vC(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__ */ cC(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 Ww((e) => this.generator.next(e).value, e, t);
+ return Fw((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(QC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ yC(this.currentTime));
+ t && this.driver && this.updateTime(UC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ lC(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = vre, startTime: t } = this.options;
+ let { driver: e = Dre, 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(QC.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(UC.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -28509,12 +28509,12 @@ var Xw = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function Qw(e) {
+function Uw(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 $w = (e) => e * 180 / Math.PI, eT = (e) => tT($w(Math.atan2(e[1], e[0]))), Fre = {
+var Ww = (e) => e * 180 / Math.PI, Gw = (e) => Kw(Ww(Math.atan2(e[1], e[0]))), Wre = {
x: 4,
y: 5,
translateX: 4,
@@ -28522,54 +28522,54 @@ var $w = (e) => e * 180 / Math.PI, eT = (e) => tT($w(Math.atan2(e[1], e[0]))), F
scaleX: 0,
scaleY: 3,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: eT,
- rotateZ: eT,
- skewX: (e) => $w(Math.atan(e[1])),
- skewY: (e) => $w(Math.atan(e[2])),
+ rotate: Gw,
+ rotateZ: Gw,
+ skewX: (e) => Ww(Math.atan(e[1])),
+ skewY: (e) => Ww(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, tT = (e) => (e %= 360, e < 0 && (e += 360), e), nT = eT, rT = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), iT = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Ire = {
+}, Kw = (e) => (e %= 360, e < 0 && (e += 360), e), qw = Gw, Jw = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Yw = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Gre = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: rT,
- scaleY: iT,
- scale: (e) => (rT(e) + iT(e)) / 2,
- rotateX: (e) => tT($w(Math.atan2(e[6], e[5]))),
- rotateY: (e) => tT($w(Math.atan2(-e[2], e[0]))),
- rotateZ: nT,
- rotate: nT,
- skewX: (e) => $w(Math.atan(e[4])),
- skewY: (e) => $w(Math.atan(e[1])),
+ scaleX: Jw,
+ scaleY: Yw,
+ scale: (e) => (Jw(e) + Yw(e)) / 2,
+ rotateX: (e) => Kw(Ww(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => Kw(Ww(Math.atan2(-e[2], e[0]))),
+ rotateZ: qw,
+ rotate: qw,
+ skewX: (e) => Ww(Math.atan(e[4])),
+ skewY: (e) => Ww(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function aT(e) {
+function Xw(e) {
return +!!e.includes("scale");
}
-function oT(e, t) {
- if (!e || e === "none") return aT(t);
+function Zw(e, t) {
+ if (!e || e === "none") return Xw(t);
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
- if (n) r = Ire, i = n;
+ if (n) r = Gre, i = n;
else {
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
- r = Fre, i = t;
+ r = Wre, i = t;
}
- if (!i) return aT(t);
- let a = r[t], o = i[1].split(",").map(Rre);
+ if (!i) return Xw(t);
+ let a = r[t], o = i[1].split(",").map(qre);
return typeof a == "function" ? a(o) : o[a];
}
-var Lre = (e, t) => {
+var Kre = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return oT(n, t);
+ return Zw(n, t);
};
-function Rre(e) {
+function qre(e) {
return parseFloat(e.trim());
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
-var sT = [
+var Qw = [
"transformPerspective",
"x",
"y",
@@ -28587,19 +28587,19 @@ var sT = [
"skew",
"skewX",
"skewY"
-], cT = /* @__PURE__ */ new Set([...sT, "pathRotation"]), lT = (e) => e === rw || e === gw, zre = /* @__PURE__ */ new Set([
+], $w = /* @__PURE__ */ new Set([...Qw, "pathRotation"]), eT = (e) => e === JC || e === sw, Jre = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Bre = sT.filter((e) => !zre.has(e));
-function Vre(e) {
+]), Yre = Qw.filter((e) => !Jre.has(e));
+function Xre(e) {
let t = [];
- return Bre.forEach((n) => {
+ return Yre.forEach((n) => {
let r = e.getValue(n);
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
}), t;
}
-var uT = {
+var tT = {
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);
@@ -28612,18 +28612,18 @@ var uT = {
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 }) => oT(t, "x"),
- y: (e, { transform: t }) => oT(t, "y")
+ x: (e, { transform: t }) => Zw(t, "x"),
+ y: (e, { transform: t }) => Zw(t, "y")
};
-uT.translateX = uT.x, uT.translateY = uT.y;
+tT.translateX = tT.x, tT.translateY = tT.y;
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
-var dT = /* @__PURE__ */ new Set(), fT = !1, pT = !1, mT = !1;
-function hT() {
- if (pT) {
- let e = Array.from(dT).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
+var nT = /* @__PURE__ */ new Set(), rT = !1, iT = !1, aT = !1;
+function oT() {
+ if (iT) {
+ let e = Array.from(nT).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
t.forEach((e) => {
- let t = Vre(e);
+ let t = Xre(e);
t.length && (n.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -28635,22 +28635,22 @@ function hT() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- pT = !1, fT = !1, dT.forEach((e) => e.complete(mT)), dT.clear();
+ iT = !1, rT = !1, nT.forEach((e) => e.complete(aT)), nT.clear();
}
-function gT() {
- dT.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (pT = !0);
+function sT() {
+ nT.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (iT = !0);
});
}
-function Hre() {
- mT = !0, gT(), hT(), mT = !1;
+function Zre() {
+ aT = !0, sT(), oT(), aT = !1;
}
-var _T = class {
+var cT = 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 ? (dT.add(this), fT || (fT = !0, qC.read(gT), qC.resolveKeyframes(hT))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (nT.add(this), rT || (rT = !0, LC.read(sT), LC.resolveKeyframes(oT))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -28663,70 +28663,70 @@ var _T = class {
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- Qw(e);
+ Uw(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), dT.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), nT.delete(this);
}
cancel() {
- this.state === "scheduled" && (dT.delete(this), this.state = "pending");
+ this.state === "scheduled" && (nT.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, vT = (e) => e.startsWith("--");
+}, lT = (e) => e.startsWith("--");
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function yT(e, t, n) {
- vT(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function uT(e, t, n) {
+ lT(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Ure = {};
+var Qre = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function bT(e, t) {
- let n = /* @__PURE__ */ pC(e);
- return () => Ure[t] ?? n();
+function dT(e, t) {
+ let n = /* @__PURE__ */ rC(e);
+ return () => Qre[t] ?? n();
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var Wre = /* @__PURE__ */ bT(() => window.ScrollTimeline !== void 0, "scrollTimeline"), xT = /*@__PURE__*/ bT(() => {
+var $re = /* @__PURE__ */ dT(() => window.ScrollTimeline !== void 0, "scrollTimeline"), fT = /*@__PURE__*/ dT(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), ST = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, CT = {
+}, "linearEasing"), pT = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, mT = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ ST([
+ circIn: /*@__PURE__*/ pT([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ ST([
+ circOut: /*@__PURE__*/ pT([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ ST([
+ backIn: /*@__PURE__*/ pT([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ ST([
+ backOut: /*@__PURE__*/ pT([
.33,
1.53,
.69,
@@ -28735,15 +28735,15 @@ var Wre = /* @__PURE__ */ bT(() => window.ScrollTimeline !== void 0, "scrollTime
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function wT(e, t) {
- if (e) return typeof e == "function" ? xT() ? Iw(e, t) : "ease-out" : /* @__PURE__ */ zC(e) ? ST(e) : Array.isArray(e) ? e.map((e) => wT(e, t) || CT.easeOut) : CT[e];
+function hT(e, t) {
+ if (e) return typeof e == "function" ? fT() ? Dw(e, t) : "ease-out" : /* @__PURE__ */ kC(e) ? pT(e) : Array.isArray(e) ? e.map((e) => hT(e, t) || mT.easeOut) : mT[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Gre(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function eie(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 = wT(s, i);
+ let d = hT(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -28757,26 +28757,26 @@ function Gre(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function TT(e) {
+function gT(e) {
return typeof e == "function" && "applyToOptions" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Kre({ type: e, ...t }) {
- return TT(e) && xT() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function tie({ type: e, ...t }) {
+ return gT(e) && fT() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var ET = class extends Xw {
+var _T = class extends Vw {
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 = Kre(e);
- this.animation = Gre(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = tie(e);
+ this.animation = eie(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Jw(r, this.options, o, this.speed);
- this.updateMotionValue && this.updateMotionValue(e), yT(t, n, e), this.animation.cancel();
+ let e = zw(r, this.options, o, this.speed);
+ this.updateMotionValue && this.updateMotionValue(e), uT(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
};
@@ -28807,18 +28807,18 @@ var ET = class extends Xw {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ yC(Number(e));
+ return /* @__PURE__ */ lC(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ yC(e);
+ return this.duration + /* @__PURE__ */ lC(e);
}
get time() {
- return /* @__PURE__ */ yC(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ lC(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ vC(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ cC(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -28836,24 +28836,24 @@ var ET = class extends Xw {
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 && Wre() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), mC) : r(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && $re() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), iC) : r(this);
}
-}, DT = {
- anticipate: jC,
- backInOut: AC,
- circInOut: PC
+}, vT = {
+ anticipate: xC,
+ backInOut: bC,
+ circInOut: wC
};
-function qre(e) {
- return e in DT;
+function nie(e) {
+ return e in vT;
}
-function Jre(e) {
- typeof e.ease == "string" && qre(e.ease) && (e.ease = DT[e.ease]);
+function rie(e) {
+ typeof e.ease == "string" && nie(e.ease) && (e.ease = vT[e.ease]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
-var OT = 10, Yre = class extends ET {
+var yT = 10, iie = class extends _T {
constructor(e) {
- Jre(e), Yw(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ rie(e), Bw(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;
@@ -28862,48 +28862,48 @@ var OT = 10, Yre = class extends ET {
t.set(e);
return;
}
- let o = new Zw({
+ let o = new Hw({
...a,
autoplay: !1
- }), s = Math.max(OT, QC.now() - this.startTime), c = cC(0, OT, s - OT), l = o.sample(s).value, { name: u } = this.options;
- i && u && yT(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
+ }), s = Math.max(yT, UC.now() - this.startTime), c = QS(0, yT, s - yT), l = o.sample(s).value, { name: u } = this.options;
+ i && u && uT(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
}
-}, kT = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Tw.test(e) || e === "0") && !e.startsWith("url("));
+}, bT = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (gw.test(e) || e === "0") && !e.startsWith("url("));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function Xre(e) {
+function aie(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 Zre(e, t, n, r) {
+function oie(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 = kT(i, t), s = kT(a, t);
- return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : Xre(e) || (n === "spring" || TT(n)) && r;
+ let a = e[e.length - 1], o = bT(i, t), s = bT(a, t);
+ return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : aie(e) || (n === "spring" || gT(n)) && r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function AT(e) {
+function xT(e) {
e.duration = 0, e.type = "keyframes";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var jT = /* @__PURE__ */ new Set([
+var ST = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform",
"backgroundColor"
-]), Qre = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function $re(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Qre.test(e[t])) return !0;
+]), sie = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function cie(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && sie.test(e[t])) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
-var eie = /* @__PURE__ */ new Set([
+var lie = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -28914,20 +28914,20 @@ var eie = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), tie = /*@__PURE__*/ pC(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
-function nie(e) {
+]), uie = /*@__PURE__*/ rC(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+function die(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 tie() && n && (jT.has(n) || eie.has(n) && $re(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
+ return uie() && n && (ST.has(n) || lie.has(n) && cie(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var rie = 40, iie = class extends Xw {
+var fie = 40, pie = class extends Vw {
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 = QC.now();
+ }, this.createdAt = UC.now();
let d = {
autoplay: e,
delay: t,
@@ -28939,33 +28939,33 @@ var rie = 40, iie = class extends Xw {
motionValue: c,
element: l,
...u
- }, f = l?.KeyframeResolver || _T;
+ }, f = l?.KeyframeResolver || cT;
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 = QC.now();
+ this.resolvedAt = UC.now();
let u = !0;
- Zre(e, i, a, o) || (u = !1, (lC.instantAnimations || !s) && l?.(Jw(e, n, t)), e[0] = e[e.length - 1], AT(n), n.repeat = 0);
+ oie(e, i, a, o) || (u = !1, ($S.instantAnimations || !s) && l?.(zw(e, n, t)), e[0] = e[e.length - 1], xT(n), n.repeat = 0);
let d = {
- startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > rie ? this.resolvedAt : this.createdAt : void 0,
+ startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > fie ? this.resolvedAt : this.createdAt : void 0,
finalKeyframe: t,
...n,
keyframes: e
- }, f = u && !c && nie(d), p = d.motionValue?.owner?.current, m;
+ }, f = u && !c && die(d), p = d.motionValue?.owner?.current, m;
if (f) try {
- m = new Yre({
+ m = new iie({
...d,
element: p
});
} catch {
- m = new Zw(d);
+ m = new Hw(d);
}
- else m = new Zw(d);
+ else m = new Hw(d);
m.finished.then(() => {
this.notifyFinished();
- }).catch(mC), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
+ }).catch(iC), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
return this._animation ? this.animation.finished : this._finished;
@@ -28974,7 +28974,7 @@ var rie = 40, iie = class extends Xw {
return this.finished.finally(e).then(() => {});
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Hre()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Zre()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -29015,7 +29015,7 @@ var rie = 40, iie = class extends Xw {
cancel() {
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
}
-}, aie = class {
+}, mie = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -29055,10 +29055,10 @@ var rie = 40, iie = class extends Xw {
return this.getAll("startTime");
}
get duration() {
- return MT(this.animations, "duration");
+ return CT(this.animations, "duration");
}
get iterationDuration() {
- return MT(this.animations, "iterationDuration");
+ return CT(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -29076,7 +29076,7 @@ var rie = 40, iie = class extends Xw {
this.runAll("complete");
}
};
-function MT(e, t) {
+function CT(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -29086,32 +29086,32 @@ function MT(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var oie = class extends aie {
+var hie = class extends mie {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, NT = /* @__PURE__ */ new WeakMap(), sie = (e, t = "") => `${e}:${t}`;
-function cie(e) {
- let t = NT.get(e);
- return t || (t = /* @__PURE__ */ new Map(), NT.set(e, t)), t;
+}, wT = /* @__PURE__ */ new WeakMap(), gie = (e, t = "") => `${e}:${t}`;
+function _ie(e) {
+ let t = wT.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), wT.set(e, t)), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function PT(e, t, n, r = 0, i = 1) {
+function TT(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 FT = 30, lie = (e) => !isNaN(parseFloat(e)), IT = { current: void 0 }, uie = class {
+var ET = 30, vie = (e) => !isNaN(parseFloat(e)), DT = { current: void 0 }, yie = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = QC.now();
+ let t = UC.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 = QC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = lie(this.current));
+ this.current = e, this.updatedAt = UC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = vie(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -29120,10 +29120,10 @@ var FT = 30, lie = (e) => !isNaN(parseFloat(e)), IT = { current: void 0 }, uie =
return this.on("change", e);
}
on(e, t) {
- this.events[e] || (this.events[e] = new _C());
+ this.events[e] || (this.events[e] = new sC());
let n = this.events[e].add(t);
return e === "change" ? () => {
- n(), qC.read(() => {
+ n(), LC.read(() => {
this.events.change.getSize() || this.stop();
});
} : n;
@@ -29153,16 +29153,16 @@ var FT = 30, lie = (e) => !isNaN(parseFloat(e)), IT = { current: void 0 }, uie =
this.dependents && this.dependents.delete(e);
}
get() {
- return IT.current && IT.current.push(this), this.current;
+ return DT.current && DT.current.push(this), this.current;
}
getPrevious() {
return this.prev;
}
getVelocity() {
- let e = QC.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > FT) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, FT);
- return /* @__PURE__ */ bC(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = UC.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ET) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, ET);
+ return /* @__PURE__ */ uC(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -29184,12 +29184,12 @@ var FT = 30, lie = (e) => !isNaN(parseFloat(e)), IT = { current: void 0 }, uie =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
}
};
-function LT(e, t) {
- return new uie(e, t);
+function OT(e, t) {
+ return new yie(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function RT(e, t) {
+function kT(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -29201,26 +29201,26 @@ function RT(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function zT(e, t) {
+function AT(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : RT(n, e);
+ return n === e ? n : kT(n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var die = {
+var bie = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, fie = (e) => ({
+}, xie = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), pie = {
+}), Sie = {
type: "keyframes",
duration: .8
-}, mie = {
+}, Cie = {
type: "keyframes",
ease: [
.25,
@@ -29229,7 +29229,7 @@ var die = {
1
],
duration: .3
-}, hie = (e, { keyframes: t }) => t.length > 2 ? pie : cT.has(e) ? e.startsWith("scale") ? fie(t[1]) : die : mie, gie = /* @__PURE__ */ new Set([
+}, wie = (e, { keyframes: t }) => t.length > 2 ? Sie : $w.has(e) ? e.startsWith("scale") ? xie(t[1]) : bie : Cie, Tie = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -29241,15 +29241,15 @@ var die = {
"from",
"elapsed"
]);
-function _ie(e) {
- for (let t in e) if (!gie.has(t)) return !0;
+function Eie(e) {
+ for (let t in e) if (!Tie.has(t)) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var BT = (e, t, n, r = {}, i, a) => (o) => {
- let s = zT(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ vC(c);
+var jT = (e, t, n, r = {}, i, a) => (o) => {
+ let s = AT(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ cC(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -29266,160 +29266,160 @@ var BT = (e, t, n, r = {}, i, a) => (o) => {
motionValue: t,
element: a ? void 0 : i
};
- _ie(s) || Object.assign(u, hie(e, u)), u.duration &&= /* @__PURE__ */ vC(u.duration), u.repeatDelay &&= /* @__PURE__ */ vC(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ Eie(s) || Object.assign(u, wie(e, u)), u.duration &&= /* @__PURE__ */ cC(u.duration), u.repeatDelay &&= /* @__PURE__ */ cC(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (AT(u), u.delay === 0 && (d = !0)), (lC.instantAnimations || lC.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, AT(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Jw(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (xT(u), u.delay === 0 && (d = !0)), ($S.instantAnimations || $S.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, xT(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = zw(u.keyframes, s);
if (e !== void 0) {
- qC.update(() => {
+ LC.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Zw(u) : new iie(u);
-}, vie = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function yie(e) {
- let t = vie.exec(e);
+ return s.isSync ? new Hw(u) : new pie(u);
+}, Die = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function Oie(e) {
+ let t = Die.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function VT(e, t, n = 1) {
+function MT(e, t, n = 1) {
`${e}`;
- let [r, i] = yie(e);
+ let [r, i] = Oie(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return uC(e) ? parseFloat(e) : e;
+ return eC(e) ? parseFloat(e) : e;
}
- return tw(i) ? VT(i, t, n + 1) : i;
+ return KC(i) ? MT(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function HT(e) {
+function NT(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function UT(e, t, n, r) {
+function PT(e, t, n, r) {
if (typeof t == "function") {
- let [i, a] = HT(r);
+ let [i, a] = NT(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] = HT(r);
+ let [i, a] = NT(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 WT(e, t, n) {
+function FT(e, t, n) {
let r = e.getProps();
- return UT(r, t, n === void 0 ? r.custom : n, e);
+ return PT(r, t, n === void 0 ? r.custom : n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
-var GT = /* @__PURE__ */ new Set([
+var IT = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...sT
-]), KT = (e) => Array.isArray(e);
+ ...Qw
+]), LT = (e) => Array.isArray(e);
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function bie(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, LT(n));
+function kie(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, OT(n));
}
-function xie(e) {
- return KT(e) ? e[e.length - 1] || 0 : e;
+function Aie(e) {
+ return LT(e) ? e[e.length - 1] || 0 : e;
}
-function Sie(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = WT(e, t) || {};
+function jie(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = FT(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) bie(e, t, xie(i[t]));
+ for (let t in i) kie(e, t, Aie(i[t]));
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var qT = (e) => !!(e && e.getVelocity);
+var RT = (e) => !!(e && e.getVelocity);
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Cie(e) {
- return !!(qT(e) && e.add);
+function Mie(e) {
+ return !!(RT(e) && e.add);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function JT(e, t) {
+function zT(e, t) {
let n = e.getValue("willChange");
- if (Cie(n)) return n.add(t);
- if (!n && lC.WillChange) {
- let n = new lC.WillChange("auto");
+ if (Mie(n)) return n.add(t);
+ if (!n && $S.WillChange) {
+ let n = new $S.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 YT(e) {
+function BT(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
-var XT = "data-" + YT("framerAppearId");
+var VT = "data-" + BT("framerAppearId");
//#endregion
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function ZT(e) {
- return e.props[XT];
+function HT(e) {
+ return e.props[VT];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-function wie({ protectedKeys: e, needsAnimating: t }, n) {
+function Nie({ protectedKeys: e, needsAnimating: t }, n) {
let r = e.hasOwnProperty(n) && t[n] !== !0;
return t[n] = !1, r;
}
-function QT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function UT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? RT(a, c) : c;
+ a = a ? kT(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 && wie(f, t)) continue;
+ if (i === void 0 || f && Nie(f, t)) continue;
let o = {
delay: n,
- ...zT(a || {}, t)
+ ...AT(a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- qC.update(() => r.set(i));
+ LC.update(() => r.set(i));
continue;
}
let p = !1;
if (window.MotionHandoffAnimation) {
- let n = ZT(e);
+ let n = HT(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, qC);
+ let e = window.MotionHandoffAnimation(n, t, LC);
e !== null && (o.startTime = e, p = !0);
}
}
- JT(e, t);
+ zT(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(BT(t, r, i, m && GT.has(t) ? { type: !1 } : o, e, p));
+ r.start(jT(t, r, i, m && IT.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => qC.update(() => {
- o && Sie(e, o);
+ let t = () => LC.update(() => {
+ o && jie(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
@@ -29427,12 +29427,12 @@ function QT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function $T(e, t, n = {}) {
- let r = WT(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
+function WT(e, t, n = {}) {
+ let r = FT(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(QT(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
+ let a = r ? () => Promise.all(UT(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
- return Tie(e, t, r, a, o, s, n);
+ return Pie(e, t, r, a, o, s, n);
} : () => Promise.resolve(), { when: s } = i;
if (s) {
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
@@ -29440,26 +29440,26 @@ function $T(e, t, n = {}) {
}
return Promise.all([a(), o(n.delay)]);
}
-function Tie(e, t, n = 0, r = 0, i = 0, a = 1, o) {
+function Pie(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($T(c, t, {
+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(WT(c, t, {
...o,
- delay: n + (typeof r == "function" ? 0 : r) + PT(e.variantChildren, c, r, i, a)
+ delay: n + (typeof r == "function" ? 0 : r) + TT(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 Eie(e, t, n = {}) {
+function Fie(e, t, n = {}) {
e.notify("AnimationStart", t);
let r;
if (Array.isArray(t)) {
- let i = t.map((t) => $T(e, t, n));
+ let i = t.map((t) => WT(e, t, n));
r = Promise.all(i);
- } else if (typeof t == "string") r = $T(e, t, n);
+ } else if (typeof t == "string") r = WT(e, t, n);
else {
- let i = typeof t == "function" ? WT(e, t, n.custom) : t;
- r = Promise.all(QT(e, i, n));
+ let i = typeof t == "function" ? FT(e, t, n.custom) : t;
+ r = Promise.all(UT(e, i, n));
}
return r.then(() => {
e.notify("AnimationComplete", t);
@@ -29467,176 +29467,176 @@ function Eie(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/auto.mjs
-var Die = {
+var Iie = {
test: (e) => e === "auto",
parse: (e) => e
-}, eE = (e) => (t) => t.test(e), tE = [
- rw,
- gw,
- hw,
- mw,
- $ne,
- Qne,
- Die
-], nE = (e) => tE.find(eE(e));
+}, GT = (e) => (t) => t.test(e), KT = [
+ JC,
+ sw,
+ ow,
+ aw,
+ cre,
+ sre,
+ Iie
+], qT = (e) => KT.find(GT(e));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function Oie(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || fC(e);
+function Lie(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || nC(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
-var kie = /* @__PURE__ */ new Set([
+var Rie = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function Aie(e) {
+function zie(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(sw) || [];
+ let [r] = n.match(QC) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!kie.has(t);
+ let i = n.replace(r, ""), a = +!!Rie.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var jie = /\b([a-z-]*)\(.*?\)/gu, rE = {
- ...Tw,
+var Bie = /\b([a-z-]*)\(.*?\)/gu, JT = {
+ ...gw,
getAnimatableNone: (e) => {
- let t = e.match(jie);
- return t ? t.map(Aie).join(" ") : e;
+ let t = e.match(Bie);
+ return t ? t.map(zie).join(" ") : e;
}
-}, iE = {
- ...Tw,
+}, YT = {
+ ...gw,
getAnimatableNone: (e) => {
- let t = Tw.parse(e);
- return Tw.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = gw.parse(e);
+ return gw.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, aE = {
- ...rw,
+}, XT = {
+ ...JC,
transform: Math.round
-}, oE = {
- borderWidth: gw,
- borderTopWidth: gw,
- borderRightWidth: gw,
- borderBottomWidth: gw,
- borderLeftWidth: gw,
- borderRadius: gw,
- borderTopLeftRadius: gw,
- borderTopRightRadius: gw,
- borderBottomRightRadius: gw,
- borderBottomLeftRadius: gw,
- width: gw,
- maxWidth: gw,
- height: gw,
- maxHeight: gw,
- top: gw,
- right: gw,
- bottom: gw,
- left: gw,
- inset: gw,
- insetBlock: gw,
- insetBlockStart: gw,
- insetBlockEnd: gw,
- insetInline: gw,
- insetInlineStart: gw,
- insetInlineEnd: gw,
- padding: gw,
- paddingTop: gw,
- paddingRight: gw,
- paddingBottom: gw,
- paddingLeft: gw,
- paddingBlock: gw,
- paddingBlockStart: gw,
- paddingBlockEnd: gw,
- paddingInline: gw,
- paddingInlineStart: gw,
- paddingInlineEnd: gw,
- margin: gw,
- marginTop: gw,
- marginRight: gw,
- marginBottom: gw,
- marginLeft: gw,
- marginBlock: gw,
- marginBlockStart: gw,
- marginBlockEnd: gw,
- marginInline: gw,
- marginInlineStart: gw,
- marginInlineEnd: gw,
- fontSize: gw,
- backgroundPositionX: gw,
- backgroundPositionY: gw,
- rotate: mw,
- pathRotation: mw,
- rotateX: mw,
- rotateY: mw,
- rotateZ: mw,
- scale: aw,
- scaleX: aw,
- scaleY: aw,
- scaleZ: aw,
- skew: mw,
- skewX: mw,
- skewY: mw,
- distance: gw,
- translateX: gw,
- translateY: gw,
- translateZ: gw,
- x: gw,
- y: gw,
- z: gw,
- perspective: gw,
- transformPerspective: gw,
- opacity: iw,
- originX: _w,
- originY: _w,
- originZ: gw,
- zIndex: aE,
- fillOpacity: iw,
- strokeOpacity: iw,
- numOctaves: aE
-}, Mie = {
- ...oE,
- color: yw,
- backgroundColor: yw,
- outlineColor: yw,
- fill: yw,
- stroke: yw,
- borderColor: yw,
- borderTopColor: yw,
- borderRightColor: yw,
- borderBottomColor: yw,
- borderLeftColor: yw,
- filter: rE,
- WebkitFilter: rE,
- mask: iE,
- WebkitMask: iE
-}, sE = (e) => Mie[e], Nie = /*@__PURE__*/ new Set([rE, iE]);
-function cE(e, t) {
- let n = sE(e);
- return Nie.has(n) || (n = Tw), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+}, ZT = {
+ borderWidth: sw,
+ borderTopWidth: sw,
+ borderRightWidth: sw,
+ borderBottomWidth: sw,
+ borderLeftWidth: sw,
+ borderRadius: sw,
+ borderTopLeftRadius: sw,
+ borderTopRightRadius: sw,
+ borderBottomRightRadius: sw,
+ borderBottomLeftRadius: sw,
+ width: sw,
+ maxWidth: sw,
+ height: sw,
+ maxHeight: sw,
+ top: sw,
+ right: sw,
+ bottom: sw,
+ left: sw,
+ inset: sw,
+ insetBlock: sw,
+ insetBlockStart: sw,
+ insetBlockEnd: sw,
+ insetInline: sw,
+ insetInlineStart: sw,
+ insetInlineEnd: sw,
+ padding: sw,
+ paddingTop: sw,
+ paddingRight: sw,
+ paddingBottom: sw,
+ paddingLeft: sw,
+ paddingBlock: sw,
+ paddingBlockStart: sw,
+ paddingBlockEnd: sw,
+ paddingInline: sw,
+ paddingInlineStart: sw,
+ paddingInlineEnd: sw,
+ margin: sw,
+ marginTop: sw,
+ marginRight: sw,
+ marginBottom: sw,
+ marginLeft: sw,
+ marginBlock: sw,
+ marginBlockStart: sw,
+ marginBlockEnd: sw,
+ marginInline: sw,
+ marginInlineStart: sw,
+ marginInlineEnd: sw,
+ fontSize: sw,
+ backgroundPositionX: sw,
+ backgroundPositionY: sw,
+ rotate: aw,
+ pathRotation: aw,
+ rotateX: aw,
+ rotateY: aw,
+ rotateZ: aw,
+ scale: XC,
+ scaleX: XC,
+ scaleY: XC,
+ scaleZ: XC,
+ skew: aw,
+ skewX: aw,
+ skewY: aw,
+ distance: sw,
+ translateX: sw,
+ translateY: sw,
+ translateZ: sw,
+ x: sw,
+ y: sw,
+ z: sw,
+ perspective: sw,
+ transformPerspective: sw,
+ opacity: YC,
+ originX: cw,
+ originY: cw,
+ originZ: sw,
+ zIndex: XT,
+ fillOpacity: YC,
+ strokeOpacity: YC,
+ numOctaves: XT
+}, Vie = {
+ ...ZT,
+ color: uw,
+ backgroundColor: uw,
+ outlineColor: uw,
+ fill: uw,
+ stroke: uw,
+ borderColor: uw,
+ borderTopColor: uw,
+ borderRightColor: uw,
+ borderBottomColor: uw,
+ borderLeftColor: uw,
+ filter: JT,
+ WebkitFilter: JT,
+ mask: YT,
+ WebkitMask: YT
+}, QT = (e) => Vie[e], Hie = /*@__PURE__*/ new Set([JT, YT]);
+function $T(e, t) {
+ let n = QT(e);
+ return Hie.has(n) || (n = gw), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Pie = /* @__PURE__ */ new Set([
+var Uie = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Fie(e, t, n) {
+function Wie(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Pie.has(t) && Cw(t).values.length && (i = e[r]), r++;
+ typeof t == "string" && !Uie.has(t) && mw(t).values.length && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] = cE(n, i);
+ if (i && n) for (let r of t) e[r] = $T(n, i);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Iie = class extends _T {
+var Gie = class extends cT {
constructor(e, t, n, r, i) {
super(e, t, n, r, i, !0);
}
@@ -29646,34 +29646,34 @@ var Iie = class extends _T {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), tw(r))) {
- let i = VT(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), KC(r))) {
+ let i = MT(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !GT.has(n) || e.length !== 2) return;
- let [r, i] = e, a = nE(r), o = nE(i);
- if (nw(r) !== nw(i) && uT[n]) {
+ if (this.resolveNoneKeyframes(), !IT.has(n) || e.length !== 2) return;
+ let [r, i] = e, a = qT(r), o = qT(i);
+ if (qC(r) !== qC(i) && tT[n]) {
this.needsMeasurement = !0;
return;
}
if (a !== o) {
- if (lT(a) && lT(o)) for (let t = 0; t < e.length; t++) {
+ if (eT(a) && eT(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else uT[n] && (this.needsMeasurement = !0);
+ else tT[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || Oie(e[t])) && n.push(t);
- n.length && Fie(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Lie(e[t])) && n.push(t);
+ n.length && Wie(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 = uT[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
+ n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = tT[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);
}
@@ -29683,23 +29683,23 @@ var Iie = class extends _T {
let r = e.getValue(t);
r && r.jump(this.measuredOrigin, !1);
let i = n.length - 1, a = n[i];
- n[i] = uT[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] = tT[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();
}
-}, lE = [
+}, eE = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Lie = /* @__PURE__ */ new Set([
+], Kie = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...lE,
+ ...eE,
"width",
"maxWidth",
"height",
@@ -29743,12 +29743,12 @@ var Iie = class extends _T {
]);
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Rie(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Lie.has(t) && (e[n] = e[n] + "px");
+function qie(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Kie.has(t) && (e[n] = e[n] + "px");
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function uE(e, t, n) {
+function tE(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
@@ -29761,34 +29761,34 @@ function uE(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var dE = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
+var nE = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function fE(e) {
- return dC(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function rE(e) {
+ return tC(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs
-var { schedule: pE, cancel: zie } = /* @__PURE__ */ KC(queueMicrotask, !1), mE = {
+var { schedule: iE, cancel: Jie } = /* @__PURE__ */ IC(queueMicrotask, !1), aE = {
x: !1,
y: !1
};
-function hE() {
- return mE.x || mE.y;
+function oE() {
+ return aE.x || aE.y;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function Bie(e) {
- return e === "x" || e === "y" ? mE[e] ? null : (mE[e] = !0, () => {
- mE[e] = !1;
- }) : mE.x || mE.y ? null : (mE.x = mE.y = !0, () => {
- mE.x = mE.y = !1;
+function Yie(e) {
+ return e === "x" || e === "y" ? aE[e] ? null : (aE[e] = !0, () => {
+ aE[e] = !1;
+ }) : aE.x || aE.y ? null : (aE.x = aE.y = !0, () => {
+ aE.x = aE.y = !1;
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function gE(e, t) {
- let n = uE(e), r = new AbortController();
+function sE(e, t) {
+ let n = tE(e), r = new AbortController();
return [
n,
{
@@ -29801,11 +29801,11 @@ function gE(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Vie(e) {
- return !(e.pointerType === "touch" || hE());
+function Xie(e) {
+ return !(e.pointerType === "touch" || oE());
}
-function Hie(e, t, n = {}) {
- let [r, i, a] = gE(e, n);
+function Zie(e, t, n = {}) {
+ let [r, i, a] = sE(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -29825,7 +29825,7 @@ function Hie(e, t, n = {}) {
}
};
e.addEventListener("pointerenter", (n) => {
- if (!Vie(n)) return;
+ if (!Xie(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -29834,130 +29834,130 @@ function Hie(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var _E = (e, t) => t ? e === t || _E(e, t.parentElement) : !1, vE = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Uie = /* @__PURE__ */ new Set([
+var cE = (e, t) => t ? e === t || cE(e, t.parentElement) : !1, lE = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Qie = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Wie(e) {
- return Uie.has(e.tagName) || e.isContentEditable === !0;
+function $ie(e) {
+ return Qie.has(e.tagName) || e.isContentEditable === !0;
}
-var Gie = /* @__PURE__ */ new Set([
+var eae = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Kie(e) {
- return Gie.has(e.tagName) || e.isContentEditable === !0;
+function tae(e) {
+ return eae.has(e.tagName) || e.isContentEditable === !0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
-var yE = /* @__PURE__ */ new WeakSet();
+var uE = /* @__PURE__ */ new WeakSet();
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function bE(e) {
+function dE(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function xE(e, t) {
+function fE(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var qie = (e, t) => {
+var nae = (e, t) => {
let n = e.currentTarget;
if (!n) return;
- let r = bE(() => {
- if (yE.has(n)) return;
- xE(n, "down");
- let e = bE(() => {
- xE(n, "up");
+ let r = dE(() => {
+ if (uE.has(n)) return;
+ fE(n, "down");
+ let e = dE(() => {
+ fE(n, "up");
});
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => xE(n, "cancel"), t);
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => fE(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 SE(e) {
- return vE(e) && !hE();
+function pE(e) {
+ return lE(e) && !oE();
}
-var CE = /* @__PURE__ */ new WeakSet();
-function Jie(e, t, n = {}) {
- let [r, i, a] = gE(e, n), o = (e) => {
+var mE = /* @__PURE__ */ new WeakSet();
+function rae(e, t, n = {}) {
+ let [r, i, a] = sE(e, n), o = (e) => {
let r = e.currentTarget;
- if (!SE(e) || CE.has(e)) return;
- yE.add(r), n.stopPropagation && CE.add(e);
+ if (!pE(e) || mE.has(e)) return;
+ uE.add(r), n.stopPropagation && mE.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), yE.has(r) && yE.delete(r), SE(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), uE.has(r) && uE.delete(r), pE(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || _E(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || cE(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), fE(e) && (e.addEventListener("focus", (e) => qie(e, i)), !Wie(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), rE(e) && (e.addEventListener("focus", (e) => nae(e, i)), !$ie(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function wE(e, t) {
+function hE(e, t) {
let n = window.getComputedStyle(e);
- return vT(t) ? n.getPropertyValue(t) : n[t];
+ return lT(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function TE(e) {
- return dC(e) && "ownerSVGElement" in e;
+function gE(e) {
+ return tC(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var EE = /* @__PURE__ */ new WeakMap(), DE, OE = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : TE(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Yie = /*@__PURE__*/ OE("inline", "width", "offsetWidth"), Xie = /*@__PURE__*/ OE("block", "height", "offsetHeight");
-function Zie({ target: e, borderBoxSize: t }) {
- EE.get(e)?.forEach((n) => {
+var _E = /* @__PURE__ */ new WeakMap(), vE, yE = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : gE(r) && "getBBox" in r ? r.getBBox()[t] : r[n], iae = /*@__PURE__*/ yE("inline", "width", "offsetWidth"), aae = /*@__PURE__*/ yE("block", "height", "offsetHeight");
+function oae({ target: e, borderBoxSize: t }) {
+ _E.get(e)?.forEach((n) => {
n(e, {
get width() {
- return Yie(e, t);
+ return iae(e, t);
},
get height() {
- return Xie(e, t);
+ return aae(e, t);
}
});
});
}
-function Qie(e) {
- e.forEach(Zie);
+function sae(e) {
+ e.forEach(oae);
}
-function $ie() {
- typeof ResizeObserver > "u" || (DE = new ResizeObserver(Qie));
+function cae() {
+ typeof ResizeObserver > "u" || (vE = new ResizeObserver(sae));
}
-function eae(e, t) {
- DE || $ie();
- let n = uE(e);
+function lae(e, t) {
+ vE || cae();
+ let n = tE(e);
return n.forEach((e) => {
- let n = EE.get(e);
- n || (n = /* @__PURE__ */ new Set(), EE.set(e, n)), n.add(t), DE?.observe(e);
+ let n = _E.get(e);
+ n || (n = /* @__PURE__ */ new Set(), _E.set(e, n)), n.add(t), vE?.observe(e);
}), () => {
n.forEach((e) => {
- let n = EE.get(e);
- n?.delete(t), n?.size || DE?.unobserve(e);
+ let n = _E.get(e);
+ n?.delete(t), n?.size || vE?.unobserve(e);
});
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var kE = /* @__PURE__ */ new Set(), AE;
-function tae() {
- AE = () => {
+var bE = /* @__PURE__ */ new Set(), xE;
+function uae() {
+ xE = () => {
let e = {
get width() {
return window.innerWidth;
@@ -29966,49 +29966,49 @@ function tae() {
return window.innerHeight;
}
};
- kE.forEach((t) => t(e));
- }, window.addEventListener("resize", AE);
+ bE.forEach((t) => t(e));
+ }, window.addEventListener("resize", xE);
}
-function nae(e) {
- return kE.add(e), AE || tae(), () => {
- kE.delete(e), !kE.size && typeof AE == "function" && (window.removeEventListener("resize", AE), AE = void 0);
+function dae(e) {
+ return bE.add(e), xE || uae(), () => {
+ bE.delete(e), !bE.size && typeof xE == "function" && (window.removeEventListener("resize", xE), xE = void 0);
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/index.mjs
-function jE(e, t) {
- return typeof e == "function" ? nae(e) : eae(e, t);
+function SE(e, t) {
+ return typeof e == "function" ? dae(e) : lae(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/stats/buffer.mjs
-var ME = {
+var CE = {
value: null,
addProjectionMetrics: null
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function rae(e) {
- return TE(e) && e.tagName === "svg";
+function fae(e) {
+ return gE(e) && e.tagName === "svg";
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/transform.mjs
-function iae(...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 = Kw(i, a, o);
+function pae(...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 = Lw(i, a, o);
return t ? s(r) : s;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/follow-value.mjs
-function aae(e, t, n = {}) {
+function mae(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 = PE(e.get()), r = PE(a);
+ let t = TE(e.get()), r = TE(a);
if (t === r) {
c();
return;
}
let s = i ? i.getGeneratorVelocity() : e.getVelocity();
- c(), i = new Zw({
+ c(), i = new Hw({
keyframes: [t, r],
velocity: s,
type: "spring",
@@ -30023,10 +30023,10 @@ function aae(e, t, n = {}) {
});
};
if (e.attach((e, t) => {
- a = e, o = (e) => t(NE(e, s)), qC.postRender(u);
- }, c), qT(t)) {
+ a = e, o = (e) => t(wE(e, s)), LC.postRender(u);
+ }, c), RT(t)) {
let r = n.skipInitialAnimation === !0, i = t.on("change", (t) => {
- r ? (r = !1, e.jump(NE(t, s), !1)) : e.set(NE(t, s));
+ r ? (r = !1, e.jump(wE(t, s), !1)) : e.set(wE(t, s));
}), a = e.on("destroy", i);
return () => {
i(), a();
@@ -30034,46 +30034,46 @@ function aae(e, t, n = {}) {
}
return c;
}
-function NE(e, t) {
+function wE(e, t) {
return t ? e + t : e;
}
-function PE(e) {
+function TE(e) {
return typeof e == "number" ? e : parseFloat(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/find.mjs
-var oae = [
- ...tE,
- yw,
- Tw
-], sae = (e) => oae.find(eE(e)), FE = () => ({
+var hae = [
+ ...KT,
+ uw,
+ gw
+], gae = (e) => hae.find(GT(e)), EE = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), IE = () => ({
- x: FE(),
- y: FE()
-}), LE = () => ({
+}), DE = () => ({
+ x: EE(),
+ y: EE()
+}), OE = () => ({
min: 0,
max: 0
-}), RE = () => ({
- x: LE(),
- y: LE()
-}), cae = /* @__PURE__ */ new WeakMap();
+}), kE = () => ({
+ x: OE(),
+ y: OE()
+}), _ae = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function zE(e) {
+function AE(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 BE(e) {
+function jE(e) {
return typeof e == "string" || Array.isArray(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var VE = [
+var ME = [
"animate",
"whileInView",
"whileFocus",
@@ -30081,29 +30081,29 @@ var VE = [
"whileTap",
"whileDrag",
"exit"
-], HE = ["initial", ...VE];
+], NE = ["initial", ...ME];
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function UE(e) {
- return zE(e.animate) || HE.some((t) => BE(e[t]));
+function PE(e) {
+ return AE(e.animate) || NE.some((t) => jE(e[t]));
}
-function WE(e) {
- return !!(UE(e) || e.variants);
+function FE(e) {
+ return !!(PE(e) || e.variants);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function lae(e, t, n) {
+function vae(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (qT(i)) e.addValue(r, i);
- else if (qT(a)) e.addValue(r, LT(i, { owner: e }));
+ if (RT(i)) e.addValue(r, i);
+ else if (RT(a)) e.addValue(r, OT(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, LT(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, OT(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -30112,18 +30112,18 @@ function lae(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var GE = { current: null }, KE = { current: !1 }, uae = typeof window < "u";
-function qE() {
- if (KE.current = !0, uae) {
+var IE = { current: null }, LE = { current: !1 }, yae = typeof window < "u";
+function RE() {
+ if (LE.current = !0, yae) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => GE.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => IE.current = e.matches;
e.addEventListener("change", t), t();
- } else GE.current = !1;
+ } else IE.current = !1;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var JE = [
+var zE = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -30131,38 +30131,38 @@ var JE = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], YE = {};
-function XE(e) {
- YE = e;
+], BE = {};
+function VE(e) {
+ BE = e;
}
-function dae() {
- return YE;
+function bae() {
+ return BE;
}
-var fae = class {
+var xae = 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 = _T, 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 = cT, 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 = QC.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, qC.render(this.render, !1, !0));
+ let e = UC.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, LC.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 = UE(t), this.isVariantNode = WE(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 = PE(t), this.isVariantNode = FE(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 && qT(t) && t.set(c[e]);
+ c[e] !== void 0 && RT(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, cae.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 : (KE.current || qE(), this.shouldReduceMotion = GE.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.current = e, _ae.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 : (LE.current || RE(), this.shouldReduceMotion = IE.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(), JC(this.notifyUpdate), JC(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), RC(this.notifyUpdate), RC(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];
@@ -30177,24 +30177,24 @@ var fae = 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 && jT.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new ET({
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && ST.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new _T({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ vC(o)
+ duration: /* @__PURE__ */ cC(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = cT.has(e);
+ let n = $w.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && qC.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && LC.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();
@@ -30205,8 +30205,8 @@ var fae = class {
}
updateFeatures() {
let e = "animation";
- for (e in YE) {
- let t = YE[e];
+ for (e in BE) {
+ let t = BE[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]) {
@@ -30219,7 +30219,7 @@ var fae = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : RE();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : kE();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -30229,13 +30229,13 @@ var fae = 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 < JE.length; t++) {
- let n = JE[t];
+ for (let t = 0; t < zE.length; t++) {
+ let n = zE[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 = lae(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
+ this.prevMotionValues = vae(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
}
getProps() {
return this.props;
@@ -30271,11 +30271,11 @@ var fae = 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 = LT(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
+ return n === void 0 && t !== void 0 && (n = OT(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" && (uC(n) || fC(n)) ? n = parseFloat(n) : !sae(n) && Tw.test(t) && (n = cE(e, t)), this.setBaseTarget(e, qT(n) ? n.get() : n)), qT(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (eC(n) || nC(n)) ? n = parseFloat(n) : !gae(n) && gw.test(t) && (n = $T(e, t)), this.setBaseTarget(e, RT(n) ? n.get() : n)), RT(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -30283,25 +30283,25 @@ var fae = class {
getBaseTarget(e) {
let { initial: t } = this.props, n;
if (typeof t == "string" || typeof t == "object") {
- let r = UT(this.props, t, this.presenceContext?.custom);
+ let r = PT(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 && !qT(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
+ return r !== void 0 && !RT(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 _C()), this.events[e].add(t);
+ return this.events[e] || (this.events[e] = new sC()), this.events[e].add(t);
}
notify(e, ...t) {
this.events[e] && this.events[e].notify(...t);
}
scheduleRenderMicrotask() {
- pE.render(this.render);
+ iE.render(this.render);
}
-}, ZE = class extends fae {
+}, HE = class extends xae {
constructor() {
- super(...arguments), this.KeyframeResolver = Iie;
+ super(...arguments), this.KeyframeResolver = Gie;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -30316,11 +30316,11 @@ var fae = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- qT(e) && (this.childSubscription = e.on("change", (e) => {
+ RT(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
-}, QE = class {
+}, UE = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
@@ -30328,7 +30328,7 @@ var fae = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function $E({ top: e, left: t, right: n, bottom: r }) {
+function WE({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -30340,7 +30340,7 @@ function $E({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function pae({ x: e, y: t }) {
+function Sae({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -30348,7 +30348,7 @@ function pae({ x: e, y: t }) {
left: e.min
};
}
-function mae(e, t) {
+function Cae(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -30366,37 +30366,37 @@ function mae(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function eD(e) {
+function GE(e) {
return e === void 0 || e === 1;
}
-function tD({ scale: e, scaleX: t, scaleY: n }) {
- return !eD(e) || !eD(t) || !eD(n);
+function KE({ scale: e, scaleX: t, scaleY: n }) {
+ return !GE(e) || !GE(t) || !GE(n);
}
-function nD(e) {
- return tD(e) || rD(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
+function qE(e) {
+ return KE(e) || JE(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
}
-function rD(e) {
- return iD(e.x) || iD(e.y);
+function JE(e) {
+ return YE(e.x) || YE(e.y);
}
-function iD(e) {
+function YE(e) {
return e && e !== "0%";
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function aD(e, t, n) {
+function XE(e, t, n) {
return n + t * (e - n);
}
-function oD(e, t, n, r, i) {
- return i !== void 0 && (e = aD(e, i, r)), aD(e, n, r) + t;
+function ZE(e, t, n, r, i) {
+ return i !== void 0 && (e = XE(e, i, r)), XE(e, n, r) + t;
}
-function sD(e, t = 0, n = 1, r, i) {
- e.min = oD(e.min, t, n, r, i), e.max = oD(e.max, t, n, r, i);
+function QE(e, t = 0, n = 1, r, i) {
+ e.min = ZE(e.min, t, n, r, i), e.max = ZE(e.max, t, n, r, i);
}
-function cD(e, { x: t, y: n }) {
- sD(e.x, t.translate, t.scale, t.originPoint), sD(e.y, n.translate, n.scale, n.originPoint);
+function $E(e, { x: t, y: n }) {
+ QE(e.x, t.translate, t.scale, t.originPoint), QE(e.y, n.translate, n.scale, n.originPoint);
}
-var lD = .999999999999, uD = 1.0000000000001;
-function hae(e, t, n, r = !1) {
+var eD = .999999999999, tD = 1.0000000000001;
+function wae(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
@@ -30404,44 +30404,44 @@ function hae(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 && (dD(e.x, -a.scroll.offset.x), dD(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, cD(e, o)), r && nD(a.latestValues) && mD(e, a.latestValues, a.layout?.layoutBox));
+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (nD(e.x, -a.scroll.offset.x), nD(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, $E(e, o)), r && qE(a.latestValues) && aD(e, a.latestValues, a.layout?.layoutBox));
}
- t.x < uD && t.x > lD && (t.x = 1), t.y < uD && t.y > lD && (t.y = 1);
+ t.x < tD && t.x > eD && (t.x = 1), t.y < tD && t.y > eD && (t.y = 1);
}
-function dD(e, t) {
+function nD(e, t) {
e.min += t, e.max += t;
}
-function fD(e, t, n, r, i = .5) {
- sD(e, t, n, Ow(e.min, e.max, i), r);
+function rD(e, t, n, r, i = .5) {
+ QE(e, t, n, yw(e.min, e.max, i), r);
}
-function pD(e, t) {
+function iD(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function mD(e, t, n) {
+function aD(e, t, n) {
let r = n ?? e;
- fD(e.x, pD(t.x, r.x), t.scaleX, t.scale, t.originX), fD(e.y, pD(t.y, r.y), t.scaleY, t.scale, t.originY);
+ rD(e.x, iD(t.x, r.x), t.scaleX, t.scale, t.originX), rD(e.y, iD(t.y, r.y), t.scaleY, t.scale, t.originY);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function hD(e, t) {
- return $E(mae(e.getBoundingClientRect(), t));
+function oD(e, t) {
+ return WE(Cae(e.getBoundingClientRect(), t));
}
-function gae(e, t, n) {
- let r = hD(e, n), { scroll: i } = t;
- return i && (dD(r.x, i.offset.x), dD(r.y, i.offset.y)), r;
+function Tae(e, t, n) {
+ let r = oD(e, n), { scroll: i } = t;
+ return i && (nD(r.x, i.offset.x), nD(r.y, i.offset.y)), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
-var _ae = {
+var Eae = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, vae = sT.length;
-function yae(e, t, n) {
+}, Dae = Qw.length;
+function Oae(e, t, n) {
let r = "", i = !0;
- for (let a = 0; a < vae; a++) {
- let o = sT[a], s = e[o];
+ for (let a = 0; a < Dae; a++) {
+ let o = Qw[a], s = e[o];
if (s === void 0) continue;
let c = !0;
if (typeof s == "number") c = s === +!!o.startsWith("scale");
@@ -30450,154 +30450,154 @@ function yae(e, t, n) {
c = o.startsWith("scale") ? e === 1 : e === 0;
}
if (!c || n) {
- let e = dE(s, oE[o]);
+ let e = nE(s, ZT[o]);
if (!c) {
i = !1;
- let t = _ae[o] || o;
+ let t = Eae[o] || o;
r += `${t}(${e}) `;
}
n && (t[o] = e);
}
}
let a = e.pathRotation;
- return a && (i = !1, r += `rotate(${dE(a, oE.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
+ return a && (i = !1, r += `rotate(${nE(a, ZT.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 gD(e, t, n) {
+function sD(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 (cT.has(e)) {
+ if ($w.has(e)) {
o = !0;
continue;
}
- if (ew(e)) {
+ if (GC(e)) {
i[e] = n;
continue;
}
{
- let t = dE(n, oE[e]);
+ let t = nE(n, ZT[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = yae(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = Oae(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 _D(e, { style: t, vars: n }, r, i) {
+function cD(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 vD(e, t) {
+function lD(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var yD = { correct: (e, t) => {
+var uD = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (gw.test(e)) e = parseFloat(e);
+ if (sw.test(e)) e = parseFloat(e);
else return e;
}
- return `${vD(e, t.target.x)}% ${vD(e, t.target.y)}%`;
-} }, bae = { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = Tw.parse(e);
+ return `${lD(e, t.target.x)}% ${lD(e, t.target.y)}%`;
+} }, kae = { correct: (e, { treeScale: t, projectionDelta: n }) => {
+ let r = e, i = gw.parse(e);
if (i.length > 5) return r;
- let a = Tw.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = gw.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 = Ow(s, c, .5);
+ let l = yw(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
-} }, bD = {
+} }, dD = {
borderRadius: {
- ...yD,
- applyTo: [...lE]
+ ...uD,
+ applyTo: [...eE]
},
- borderTopLeftRadius: yD,
- borderTopRightRadius: yD,
- borderBottomLeftRadius: yD,
- borderBottomRightRadius: yD,
- boxShadow: bae
+ borderTopLeftRadius: uD,
+ borderTopRightRadius: uD,
+ borderBottomLeftRadius: uD,
+ borderBottomRightRadius: uD,
+ boxShadow: kae
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function xD(e, { layout: t, layoutId: n }) {
- return cT.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!bD[e] || e === "opacity");
+function fD(e, { layout: t, layoutId: n }) {
+ return $w.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!dD[e] || e === "opacity");
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function SD(e, t, n) {
+function pD(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (qT(r[t]) || i && qT(i[t]) || xD(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (RT(r[t]) || i && RT(i[t]) || fD(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 xae(e) {
+function Aae(e) {
return window.getComputedStyle(e);
}
-var Sae = class extends ZE {
+var jae = class extends HE {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = _D;
+ super(...arguments), this.type = "html", this.renderInstance = cD;
}
mount(e) {
e.style, super.mount(e);
}
readValueFromInstance(e, t) {
- if (cT.has(t)) return this.projection?.isProjecting ? aT(t) : Lre(e, t);
+ if ($w.has(t)) return this.projection?.isProjecting ? Xw(t) : Kre(e, t);
{
- let n = xae(e), r = (ew(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = Aae(e), r = (GC(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return hD(e, t);
+ return oD(e, t);
}
build(e, t, n) {
- gD(e, t, n.transformTemplate);
+ sD(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return SD(e, t, n);
+ return pD(e, t, n);
}
-}, Cae = {
+}, Mae = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, wae = {
+}, Nae = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function Tae(e, t, n = 1, r = 0, i = !0) {
+function Pae(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? Cae : wae;
+ let a = i ? Mae : Nae;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Eae = [
+var Fae = [
"offsetDistance",
"offsetPath",
"offsetRotate",
"offsetAnchor"
];
-function CD(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (gD(e, s, l), c) {
+function mD(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (sD(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 Eae) 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 && Tae(d, i, a, o, !1);
+ for (let e of Fae) 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 && Pae(d, i, a, o, !1);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
-var wD = /* @__PURE__ */ new Set([
+var hD = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -30621,68 +30621,68 @@ var wD = /* @__PURE__ */ new Set([
"startOffset",
"textLength",
"lengthAdjust"
-]), TD = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), gD = (e) => typeof e == "string" && e.toLowerCase() === "svg";
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Dae(e, t, n, r) {
- _D(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(wD.has(n) ? n : YT(n), t.attrs[n]);
+function Iae(e, t, n, r) {
+ cD(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(hD.has(n) ? n : BT(n), t.attrs[n]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function ED(e, t, n) {
- let r = SD(e, t, n);
- for (let n in e) if (qT(e[n]) || qT(t[n])) {
- let t = sT.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function _D(e, t, n) {
+ let r = pD(e, t, n);
+ for (let n in e) if (RT(e[n]) || RT(t[n])) {
+ let t = Qw.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 Oae = class extends ZE {
+var Lae = class extends HE {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = RE;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = kE;
}
getBaseTargetFromProps(e, t) {
return e[t];
}
readValueFromInstance(e, t) {
- if (cT.has(t)) {
- let e = sE(t);
+ if ($w.has(t)) {
+ let e = QT(t);
return e && e.default || 0;
}
- return t = wD.has(t) ? t : YT(t), e.getAttribute(t);
+ return t = hD.has(t) ? t : BT(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return ED(e, t, n);
+ return _D(e, t, n);
}
build(e, t, n) {
- CD(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ mD(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Dae(e, t, n, r);
+ Iae(e, t, n, r);
}
mount(e) {
- this.isSVGTag = TD(e.tagName), super.mount(e);
+ this.isSVGTag = gD(e.tagName), super.mount(e);
}
-}, kae = HE.length;
-function DD(e) {
+}, Rae = NE.length;
+function vD(e) {
if (!e) return;
if (!e.isControllingVariants) {
- let t = e.parent && DD(e.parent) || {};
+ let t = e.parent && vD(e.parent) || {};
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
}
let t = {};
- for (let n = 0; n < kae; n++) {
- let r = HE[n], i = e.props[r];
- (BE(i) || i === !1) && (t[r] = i);
+ for (let n = 0; n < Rae; n++) {
+ let r = NE[n], i = e.props[r];
+ (jE(i) || i === !1) && (t[r] = i);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function OD(e, t) {
+function yD(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -30691,13 +30691,13 @@ function OD(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Aae = [...VE].reverse(), jae = VE.length;
-function Mae(e) {
- return (t) => Promise.all(t.map(({ animation: t, options: n }) => Eie(e, t, n)));
+var zae = [...ME].reverse(), Bae = ME.length;
+function Vae(e) {
+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => Fie(e, t, n)));
}
-function Nae(e) {
- let t = Mae(e), n = AD(), r = !0, i = !1, a = (t) => (n, r) => {
- let i = WT(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
+function Hae(e) {
+ let t = Vae(e), n = xD(), r = !0, i = !1, a = (t) => (n, r) => {
+ let i = FT(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
if (i) {
let { transition: e, transitionEnd: t, ...r } = i;
n = {
@@ -30712,12 +30712,12 @@ function Nae(e) {
t = n(e);
}
function s(o) {
- let { props: s } = e, c = DD(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
- for (let t = 0; t < jae; t++) {
- let p = Aae[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = BE(h), _ = p === o ? m.isActive : null;
+ let { props: s } = e, c = vD(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
+ for (let t = 0; t < Bae; t++) {
+ let p = zae[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = jE(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 || zE(h) || typeof h == "boolean") continue;
+ if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || AE(h) || typeof h == "boolean") continue;
if (p === "exit" && m.isActive && _ !== !0) {
m.prevResolvedValues && (d = {
...d,
@@ -30725,7 +30725,7 @@ function Nae(e) {
});
continue;
}
- let y = Pae(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 = Uae(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,
@@ -30739,7 +30739,7 @@ function Nae(e) {
let t = C[e], n = w[e];
if (d.hasOwnProperty(e)) continue;
let r = !1;
- r = KT(t) && KT(n) ? !OD(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 = LT(t) && LT(n) ? !yD(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,
@@ -30749,10 +30749,10 @@ function Nae(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 = WT(r, t);
+ let { parent: r } = e, i = FT(r, t);
if (r.enteringChildren && i) {
let { delayChildren: t } = i.transition || {};
- n.delay = PT(r.enteringChildren, e, t);
+ n.delay = TT(r.enteringChildren, e, t);
}
}
return {
@@ -30764,7 +30764,7 @@ function Nae(e) {
if (u.size) {
let t = {};
if (typeof s.initial != "boolean") {
- let n = WT(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
+ let n = FT(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
n && n.transition && (t.transition = n.transition);
}
u.forEach((n) => {
@@ -30788,14 +30788,14 @@ function Nae(e) {
setAnimateFunction: o,
getState: () => n,
reset: () => {
- n = AD(), i = !0;
+ n = xD(), i = !0;
}
};
}
-function Pae(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !OD(t, e) : !1;
+function Uae(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !yD(t, e) : !1;
}
-function kD(e = !1) {
+function bD(e = !1) {
return {
isActive: e,
protectedKeys: {},
@@ -30803,115 +30803,115 @@ function kD(e = !1) {
prevResolvedValues: {}
};
}
-function AD() {
+function xD() {
return {
- animate: kD(!0),
- whileInView: kD(),
- whileHover: kD(),
- whileTap: kD(),
- whileDrag: kD(),
- whileFocus: kD(),
- exit: kD()
+ animate: bD(!0),
+ whileInView: bD(),
+ whileHover: bD(),
+ whileTap: bD(),
+ whileDrag: bD(),
+ whileFocus: bD(),
+ exit: bD()
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function jD(e, t) {
+function SD(e, t) {
e.min = t.min, e.max = t.max;
}
-function MD(e, t) {
- jD(e.x, t.x), jD(e.y, t.y);
+function CD(e, t) {
+ SD(e.x, t.x), SD(e.y, t.y);
}
-function ND(e, t) {
+function wD(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 Fae = .9999, Iae = 1.0001, Lae = -.01, Rae = .01;
-function PD(e) {
+var Wae = .9999, Gae = 1.0001, Kae = -.01, qae = .01;
+function TD(e) {
return e.max - e.min;
}
-function zae(e, t, n) {
+function Jae(e, t, n) {
return Math.abs(e - t) <= n;
}
-function FD(e, t, n, r = .5) {
- e.origin = r, e.originPoint = Ow(t.min, t.max, e.origin), e.scale = PD(n) / PD(t), e.translate = Ow(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Fae && e.scale <= Iae || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Lae && e.translate <= Rae || isNaN(e.translate)) && (e.translate = 0);
+function ED(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = yw(t.min, t.max, e.origin), e.scale = TD(n) / TD(t), e.translate = yw(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Wae && e.scale <= Gae || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Kae && e.translate <= qae || isNaN(e.translate)) && (e.translate = 0);
}
-function ID(e, t, n, r) {
- FD(e.x, t.x, n.x, r ? r.originX : void 0), FD(e.y, t.y, n.y, r ? r.originY : void 0);
+function DD(e, t, n, r) {
+ ED(e.x, t.x, n.x, r ? r.originX : void 0), ED(e.y, t.y, n.y, r ? r.originY : void 0);
}
-function LD(e, t, n, r = 0) {
- e.min = (r ? Ow(n.min, n.max, r) : n.min) + t.min, e.max = e.min + PD(t);
+function OD(e, t, n, r = 0) {
+ e.min = (r ? yw(n.min, n.max, r) : n.min) + t.min, e.max = e.min + TD(t);
}
-function Bae(e, t, n, r) {
- LD(e.x, t.x, n.x, r?.x), LD(e.y, t.y, n.y, r?.y);
+function Yae(e, t, n, r) {
+ OD(e.x, t.x, n.x, r?.x), OD(e.y, t.y, n.y, r?.y);
}
-function RD(e, t, n, r = 0) {
- let i = r ? Ow(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + PD(t);
+function kD(e, t, n, r = 0) {
+ let i = r ? yw(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + TD(t);
}
-function zD(e, t, n, r) {
- RD(e.x, t.x, n.x, r?.x), RD(e.y, t.y, n.y, r?.y);
+function AD(e, t, n, r) {
+ kD(e.x, t.x, n.x, r?.x), kD(e.y, t.y, n.y, r?.y);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function BD(e, t, n, r, i) {
- return e -= t, e = aD(e, 1 / n, r), i !== void 0 && (e = aD(e, 1 / i, r)), e;
+function jD(e, t, n, r, i) {
+ return e -= t, e = XE(e, 1 / n, r), i !== void 0 && (e = XE(e, 1 / i, r)), e;
}
-function Vae(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (hw.test(t) && (t = parseFloat(t), t = Ow(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = Ow(a.min, a.max, r);
- e === a && (s -= t), e.min = BD(e.min, t, n, s, i), e.max = BD(e.max, t, n, s, i);
+function Xae(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (ow.test(t) && (t = parseFloat(t), t = yw(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = yw(a.min, a.max, r);
+ e === a && (s -= t), e.min = jD(e.min, t, n, s, i), e.max = jD(e.max, t, n, s, i);
}
-function VD(e, t, [n, r, i], a, o) {
- Vae(e, t[n], t[r], t[i], t.scale, a, o);
+function MD(e, t, [n, r, i], a, o) {
+ Xae(e, t[n], t[r], t[i], t.scale, a, o);
}
-var Hae = [
+var Zae = [
"x",
"scaleX",
"originX"
-], Uae = [
+], Qae = [
"y",
"scaleY",
"originY"
];
-function HD(e, t, n, r) {
- VD(e.x, t, Hae, n ? n.x : void 0, r ? r.x : void 0), VD(e.y, t, Uae, n ? n.y : void 0, r ? r.y : void 0);
+function ND(e, t, n, r) {
+ MD(e.x, t, Zae, n ? n.x : void 0, r ? r.x : void 0), MD(e.y, t, Qae, n ? n.y : void 0, r ? r.y : void 0);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function UD(e) {
+function PD(e) {
return e.translate === 0 && e.scale === 1;
}
-function WD(e) {
- return UD(e.x) && UD(e.y);
+function FD(e) {
+ return PD(e.x) && PD(e.y);
}
-function GD(e, t) {
+function ID(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Wae(e, t) {
- return GD(e.x, t.x) && GD(e.y, t.y);
+function $ae(e, t) {
+ return ID(e.x, t.x) && ID(e.y, t.y);
}
-function KD(e, t) {
+function LD(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function qD(e, t) {
- return KD(e.x, t.x) && KD(e.y, t.y);
+function RD(e, t) {
+ return LD(e.x, t.x) && LD(e.y, t.y);
}
-function JD(e) {
- return PD(e.x) / PD(e.y);
+function zD(e) {
+ return TD(e.x) / TD(e.y);
}
-function YD(e, t) {
+function BD(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 XD(e) {
+function VD(e) {
return [e("x"), e("y")];
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Gae(e, t, n) {
+function eoe(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;
@@ -30922,81 +30922,81 @@ function Gae(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var Kae = lE.length, ZD = (e) => typeof e == "string" ? parseFloat(e) : e, QD = (e) => typeof e == "number" || gw.test(e);
-function qae(e, t, n, r, i, a) {
- i ? (e.opacity = Ow(0, n.opacity ?? 1, Jae(r)), e.opacityExit = Ow(t.opacity ?? 1, 0, Yae(r))) : a && (e.opacity = Ow(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < Kae; i++) {
- let a = lE[i], o = $D(t, a), s = $D(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || QD(o) === QD(s) ? (e[a] = Math.max(Ow(ZD(o), ZD(s), r), 0), (hw.test(s) || hw.test(o)) && (e[a] += "%")) : e[a] = s);
+var toe = eE.length, HD = (e) => typeof e == "string" ? parseFloat(e) : e, UD = (e) => typeof e == "number" || sw.test(e);
+function noe(e, t, n, r, i, a) {
+ i ? (e.opacity = yw(0, n.opacity ?? 1, roe(r)), e.opacityExit = yw(t.opacity ?? 1, 0, ioe(r))) : a && (e.opacity = yw(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < toe; i++) {
+ let a = eE[i], o = WD(t, a), s = WD(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || UD(o) === UD(s) ? (e[a] = Math.max(yw(HD(o), HD(s), r), 0), (ow.test(s) || ow.test(o)) && (e[a] += "%")) : e[a] = s);
}
- (t.rotate || n.rotate) && (e.rotate = Ow(t.rotate || 0, n.rotate || 0, r));
+ (t.rotate || n.rotate) && (e.rotate = yw(t.rotate || 0, n.rotate || 0, r));
}
-function $D(e, t) {
+function WD(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Jae = /*@__PURE__*/ eO(0, .5, NC), Yae = /*@__PURE__*/ eO(.5, .95, mC);
-function eO(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ gC(e, t, r));
+var roe = /*@__PURE__*/ GD(0, .5, CC), ioe = /*@__PURE__*/ GD(.5, .95, iC);
+function GD(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ oC(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function Xae(e, t, n) {
- let r = qT(e) ? e : LT(e);
- return r.start(BT("", r, t, n)), r.animation;
+function aoe(e, t, n) {
+ let r = RT(e) ? e : OT(e);
+ return r.start(jT("", r, t, n)), r.animation;
}
//#endregion
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function tO(e, t, n, r = { passive: !0 }) {
+function KD(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 Zae = (e, t) => e.depth - t.depth, Qae = class {
+var ooe = (e, t) => e.depth - t.depth, soe = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- oC(this.children, e), this.isDirty = !0;
+ XS(this.children, e), this.isDirty = !0;
}
remove(e) {
- sC(this.children, e), this.isDirty = !0;
+ ZS(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(Zae), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(ooe), this.isDirty = !1, this.children.forEach(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
-function $ae(e, t) {
- let n = QC.now(), r = ({ timestamp: i }) => {
+function coe(e, t) {
+ let n = UC.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (JC(r), e(a - t));
+ a >= t && (RC(r), e(a - t));
};
- return qC.setup(r, !0), () => JC(r);
+ return LC.setup(r, !0), () => RC(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function nO(e) {
- return qT(e) ? e.get() : e;
+function qD(e) {
+ return RT(e) ? e.get() : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var eoe = class {
+var loe = class {
constructor() {
this.members = [];
}
add(e) {
- oC(this.members, e);
+ XS(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 && (sC(this.members, n), n.unmount());
+ (!r || r.isConnected === !1) && !n.snapshot && (ZS(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (sC(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (ZS(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);
}
@@ -31027,51 +31027,51 @@ var eoe = class {
removeLeadSnapshot() {
this.lead?.snapshot && (this.lead.snapshot = void 0);
}
-}, rO = {
+}, JD = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, iO = {
+}, YD = {
nodes: 0,
calculatedTargetDeltas: 0,
calculatedProjections: 0
-}, aO = [
+}, XD = [
"",
"X",
"Y",
"Z"
-], toe = 1e3, noe = 0;
-function oO(e, t, n, r) {
+], uoe = 1e3, doe = 0;
+function ZD(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-function sO(e) {
+function QD(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = ZT(t);
+ let n = HT(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", qC, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", LC, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && sO(r);
+ r && !r.hasCheckedOptimisedAppear && QD(r);
}
-function cO({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+function $D({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
return class {
constructor(e = {}, n = t?.()) {
- this.id = noe++, 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 = doe++, 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, ME.value && (iO.nodes = iO.calculatedTargetDeltas = iO.calculatedProjections = 0), this.nodes.forEach(aoe), this.nodes.forEach(doe), this.nodes.forEach(foe), this.nodes.forEach(ooe), ME.addProjectionMetrics && ME.addProjectionMetrics(iO);
+ this.projectionUpdateScheduled = !1, CE.value && (YD.nodes = YD.calculatedTargetDeltas = YD.calculatedProjections = 0), this.nodes.forEach(moe), this.nodes.forEach(boe), this.nodes.forEach(xoe), this.nodes.forEach(hoe), CE.addProjectionMetrics && CE.addProjectionMetrics(YD);
}, 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 Qae());
+ this.root === this && (this.nodes = new soe());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new _C()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new sC()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
let n = this.eventHandlers.get(e);
@@ -31082,15 +31082,15 @@ function cO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = TE(t) && !rae(t), this.instance = t;
+ this.isSVG = gE(t) && !fae(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;
- qC.read(() => {
+ LC.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = $ae(i, 250), rO.hasAnimatedSinceResize && (rO.hasAnimatedSinceResize = !1, this.nodes.forEach(dO)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = coe(i, 250), JD.hasAnimatedSinceResize && (JD.hasAnimatedSinceResize = !1, this.nodes.forEach(nO)));
});
}
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
@@ -31098,23 +31098,23 @@ function cO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || i.getDefaultTransition() || _oe, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !qD(this.targetLayout, r), l = !t && n;
+ let a = this.options.transition || i.getDefaultTransition() || Eoe, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !RD(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 = {
- ...zT(a, "layout"),
+ ...AT(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 || dO(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ } else t || nO(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(), JC(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), RC(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -31129,7 +31129,7 @@ function cO({ 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(poe), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Soe), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -31140,7 +31140,7 @@ function cO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete && this.options.onExitComplete();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && sO(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && QD(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];
@@ -31154,39 +31154,39 @@ function cO({ 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(coe), this.nodes.forEach(lO);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(_oe), this.nodes.forEach(eO);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(uO);
+ this.nodes.forEach(tO);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(loe), this.nodes.forEach(uoe), this.nodes.forEach(roe), this.nodes.forEach(ioe)) : this.nodes.forEach(uO), this.clearAllSnapshots();
- let e = QC.now();
- YC.delta = cC(0, 1e3 / 60, e - YC.timestamp), YC.timestamp = e, YC.isProcessing = !0, XC.update.process(YC), XC.preRender.process(YC), XC.render.process(YC), YC.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(voe), this.nodes.forEach(yoe), this.nodes.forEach(foe), this.nodes.forEach(poe)) : this.nodes.forEach(tO), this.clearAllSnapshots();
+ let e = UC.now();
+ zC.delta = QS(0, 1e3 / 60, e - zC.timestamp), zC.timestamp = e, zC.isProcessing = !0, BC.update.process(zC), BC.preRender.process(zC), BC.render.process(zC), zC.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, pE.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, iE.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(soe), this.sharedNodes.forEach(moe);
+ this.nodes.forEach(goe), this.sharedNodes.forEach(Coe);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, qC.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, LC.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- qC.postRender(() => {
+ LC.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !PD(this.snapshot.measuredBox.x) && !PD(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !TD(this.snapshot.measuredBox.x) && !TD(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 ||= RE(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= kE(), 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);
}
@@ -31205,12 +31205,12 @@ function cO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
resetTransform() {
if (!i) return;
- let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !WD(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || nD(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !FD(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || qE(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)), voe(n), {
+ return e && (n = this.removeTransform(n)), Doe(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -31220,42 +31220,42 @@ function cO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return RE();
+ if (!e) return kE();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(yoe))) {
+ if (!(this.scroll?.wasRoot || this.path.some(Ooe))) {
let { scroll: e } = this.root;
- e && (dD(t.x, e.offset.x), dD(t.y, e.offset.y));
+ e && (nD(t.x, e.offset.x), nD(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = RE();
- if (MD(t, e), this.scroll?.wasRoot) return t;
+ let t = kE();
+ if (CD(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 && MD(t, e), dD(t.x, i.offset.x), dD(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && CD(t, e), nD(t.x, i.offset.x), nD(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n) {
- let r = n || RE();
- MD(r, e);
+ let r = n || kE();
+ CD(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 && (dD(r.x, -n.scroll.offset.x), dD(r.y, -n.scroll.offset.y)), nD(n.latestValues) && mD(r, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (nD(r.x, -n.scroll.offset.x), nD(r.y, -n.scroll.offset.y)), qE(n.latestValues) && aD(r, n.latestValues, n.layout?.layoutBox);
}
- return nD(this.latestValues) && mD(r, this.latestValues, this.layout?.layoutBox), r;
+ return qE(this.latestValues) && aD(r, this.latestValues, this.layout?.layoutBox), r;
}
removeTransform(e) {
- let t = RE();
- MD(t, e);
+ let t = kE();
+ CD(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!nD(n.latestValues)) continue;
+ if (!qE(n.latestValues)) continue;
let r;
- n.instance && (tD(n.latestValues) && n.updateSnapshot(), r = RE(), MD(r, n.measurePageBox())), HD(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (KE(n.latestValues) && n.updateSnapshot(), r = kE(), CD(r, n.measurePageBox())), ND(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return nD(this.latestValues) && HD(t, this.latestValues), t;
+ return qE(this.latestValues) && ND(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -31271,7 +31271,7 @@ function cO({ 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 !== YC.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== zC.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -31280,36 +31280,36 @@ function cO({ 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 = YC.timestamp;
+ this.resolvedRelativeTargetAt = zC.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 = RE(), this.targetWithTransforms = RE()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Bae(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : MD(this.target, this.layout.layoutBox), cD(this.target, this.targetDelta)) : MD(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), ME.value && iO.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 = kE(), this.targetWithTransforms = kE()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Yae(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : CD(this.target, this.layout.layoutBox), $E(this.target, this.targetDelta)) : CD(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), CE.value && YD.calculatedTargetDeltas++);
}
getClosestProjectingParent() {
- if (!(!this.parent || tD(this.parent.latestValues) || rD(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || KE(this.parent.latestValues) || JE(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 = RE(), this.relativeTargetOrigin = RE(), zD(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), MD(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = kE(), this.relativeTargetOrigin = kE(), AD(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), CD(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 === YC.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === zC.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;
- MD(this.layoutCorrected, this.layout.layoutBox);
+ CD(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- hae(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 = RE());
+ wae(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 = kE());
let { target: s } = e;
if (!s) {
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
return;
}
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ND(this.prevProjectionDelta.x, this.projectionDelta.x), ND(this.prevProjectionDelta.y, this.projectionDelta.y)), ID(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !YD(this.projectionDelta.x, this.prevProjectionDelta.x) || !YD(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), ME.value && iO.calculatedProjections++;
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (wD(this.prevProjectionDelta.x, this.projectionDelta.x), wD(this.prevProjectionDelta.y, this.projectionDelta.y)), DD(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !BD(this.projectionDelta.x, this.prevProjectionDelta.x) || !BD(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), CE.value && YD.calculatedProjections++;
}
hide() {
this.isVisible = !1;
@@ -31325,22 +31325,22 @@ function cO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = IE(), this.projectionDelta = IE(), this.projectionDeltaWithTransform = IE();
+ this.prevProjectionDelta = DE(), this.projectionDelta = DE(), this.projectionDeltaWithTransform = DE();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = IE();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = DE();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = RE(), 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(goe));
+ let s = kE(), 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(Toe));
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 = Ow(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 = Ow(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (fO(o.x, e.x, n), fO(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (zD(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), hoe(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Wae(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= RE(), MD(f, this.relativeTarget)), c && (this.animationValues = a, qae(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 = yw(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 = yw(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (rO(o.x, e.x, n), rO(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (AD(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), woe(this.relativeTarget, this.relativeTargetOrigin, s, n), f && $ae(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= kE(), CD(f, this.relativeTarget)), c && (this.animationValues = a, noe(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 &&= (JC(this.pendingAnimation), void 0), this.pendingAnimation = qC.update(() => {
- rO.hasAnimatedSinceResize = !0, this.motionValue ||= LT(0), this.motionValue.jump(0, !1), this.currentAnimation = Xae(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (RC(this.pendingAnimation), void 0), this.pendingAnimation = LC.update(() => {
+ JD.hasAnimatedSinceResize = !0, this.motionValue ||= OT(0), this.motionValue.jump(0, !1), this.currentAnimation = aoe(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -31359,23 +31359,23 @@ function cO({ 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(toe), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(uoe), 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 && _O(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
- n = this.target || RE();
- let t = PD(this.layout.layoutBox.x);
+ if (this !== e && this.layout && r && cO(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
+ n = this.target || kE();
+ let t = TD(this.layout.layoutBox.x);
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
- let r = PD(this.layout.layoutBox.y);
+ let r = TD(this.layout.layoutBox.y);
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
}
- MD(t, n), mD(t, i), ID(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
+ CD(t, n), aD(t, i), DD(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new eoe()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new loe()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n ? n.transition : void 0,
@@ -31412,8 +31412,8 @@ function cO({ 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 && oO("z", e, r, this.animationValues);
- for (let t = 0; t < aO.length; t++) oO(`rotate${aO[t]}`, e, r, this.animationValues), oO(`skew${aO[t]}`, e, r, this.animationValues);
+ n.z && ZD("z", e, r, this.animationValues);
+ for (let t = 0; t < XD.length; t++) ZD(`rotate${XD[t]}`, e, r, this.animationValues), ZD(`skew${XD[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();
@@ -31426,71 +31426,71 @@ function cO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let n = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = nO(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = qD(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 = nO(t?.pointerEvents) || ""), this.hasProjected && !nD(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 = qD(t?.pointerEvents) || ""), this.hasProjected && !qE(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = r.animationValues || r.latestValues;
this.applyTransformsToTarget();
- let a = Gae(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = eoe(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 bD) {
+ for (let t in dD) {
if (i[t] === void 0) continue;
- let { correct: n, applyTo: o, isCSSVariable: s } = bD[t], c = a === "none" ? i[t] : n(i[t], r);
+ let { correct: n, applyTo: o, isCSSVariable: s } = dD[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 ? nO(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = r === this ? qD(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(lO), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(eO), this.root.sharedNodes.clear();
}
};
}
-function roe(e) {
+function foe(e) {
e.updateLayout();
}
-function ioe(e) {
+function poe(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") XD((e) => {
- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = PD(r);
+ if (i === "size") VD((e) => {
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = TD(r);
r.min = n[e].min, r.max = r.min + i;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- jD(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
- } else _O(i, t.layoutBox, n) && XD((r) => {
- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = PD(n[r]);
+ SD(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
+ } else cO(i, t.layoutBox, n) && VD((r) => {
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = TD(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 = IE();
- ID(o, n, t.layoutBox);
- let s = IE();
- a ? ID(s, e.applyTransform(r, !0), t.measuredBox) : ID(s, n, t.layoutBox);
- let c = !WD(o), l = !1;
+ let o = DE();
+ DD(o, n, t.layoutBox);
+ let s = DE();
+ a ? DD(s, e.applyTransform(r, !0), t.measuredBox) : DD(s, n, t.layoutBox);
+ let c = !FD(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 = RE();
- zD(s, t.layoutBox, i.layoutBox, o);
- let c = RE();
- zD(c, n, a.layoutBox, o), qD(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
+ let o = e.options.layoutAnchor || void 0, s = kE();
+ AD(s, t.layoutBox, i.layoutBox, o);
+ let c = kE();
+ AD(c, n, a.layoutBox, o), RD(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
}
}
}
@@ -31508,59 +31508,59 @@ function ioe(e) {
}
e.options.transition = void 0;
}
-function aoe(e) {
- ME.value && iO.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 moe(e) {
+ CE.value && YD.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 ooe(e) {
+function hoe(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function soe(e) {
+function goe(e) {
e.clearSnapshot();
}
-function lO(e) {
+function eO(e) {
e.clearMeasurements();
}
-function coe(e) {
+function _oe(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function uO(e) {
+function tO(e) {
e.isLayoutDirty = !1;
}
-function loe(e) {
+function voe(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
}
-function uoe(e) {
+function yoe(e) {
let { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function dO(e) {
+function nO(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function doe(e) {
+function boe(e) {
e.resolveTargetDelta();
}
-function foe(e) {
+function xoe(e) {
e.calcProjection();
}
-function poe(e) {
+function Soe(e) {
e.resetSkewAndRotation();
}
-function moe(e) {
+function Coe(e) {
e.removeLeadSnapshot();
}
-function fO(e, t, n) {
- e.translate = Ow(t.translate, 0, n), e.scale = Ow(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function rO(e, t, n) {
+ e.translate = yw(t.translate, 0, n), e.scale = yw(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function pO(e, t, n, r) {
- e.min = Ow(t.min, n.min, r), e.max = Ow(t.max, n.max, r);
+function iO(e, t, n, r) {
+ e.min = yw(t.min, n.min, r), e.max = yw(t.max, n.max, r);
}
-function hoe(e, t, n, r) {
- pO(e.x, t.x, n.x, r), pO(e.y, t.y, n.y, r);
+function woe(e, t, n, r) {
+ iO(e.x, t.x, n.x, r), iO(e.y, t.y, n.y, r);
}
-function goe(e) {
+function Toe(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
}
-var _oe = {
+var Eoe = {
duration: .45,
ease: [
.4,
@@ -31568,39 +31568,39 @@ var _oe = {
.1,
1
]
-}, mO = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), hO = mO("applewebkit/") && !mO("chrome/") ? Math.round : mC;
-function gO(e) {
- e.min = hO(e.min), e.max = hO(e.max);
+}, aO = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), oO = aO("applewebkit/") && !aO("chrome/") ? Math.round : iC;
+function sO(e) {
+ e.min = oO(e.min), e.max = oO(e.max);
}
-function voe(e) {
- gO(e.x), gO(e.y);
+function Doe(e) {
+ sO(e.x), sO(e.y);
}
-function _O(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !zae(JD(t), JD(n), .2);
+function cO(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !Jae(zD(t), zD(n), .2);
}
-function yoe(e) {
+function Ooe(e) {
return e !== e.root && e.scroll?.wasRoot;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var boe = cO({
- attachResizeListener: (e, t) => tO(e, "resize", t),
+var koe = $D({
+ attachResizeListener: (e, t) => KD(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
}),
checkIsScrollRoot: () => !0
-}), vO = { current: void 0 }, yO = cO({
+}), lO = { current: void 0 }, uO = $D({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!vO.current) {
- let e = new boe({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), vO.current = e;
+ if (!lO.current) {
+ let e = new koe({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), lO.current = e;
}
- return vO.current;
+ return lO.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
@@ -31609,18 +31609,18 @@ var boe = cO({
});
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function xoe(e, t, n, r) {
+function Aoe(e, t, n, r) {
if (e == null) return [];
- let i = uE(e, r), a = i.length, o = [];
+ let i = tE(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 = { ...zT(s, e) };
- i.duration &&= /* @__PURE__ */ vC(i.duration), i.delay &&= /* @__PURE__ */ vC(i.delay);
- let a = cie(r), c = sie(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...AT(s, e) };
+ i.duration &&= /* @__PURE__ */ cC(i.duration), i.delay &&= /* @__PURE__ */ cC(i.delay);
+ let a = _ie(r), c = gie(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -31636,40 +31636,40 @@ function xoe(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] = wE(r, i)), Qw(t), Rie(t, i), !a && t.length < 2 && t.unshift(wE(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = hE(r, i)), Uw(t), qie(t, i), !a && t.length < 2 && t.unshift(hE(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 ET(r);
+ let { map: t, key: n, options: r } = o[e], i = new _T(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var Soe = /*@__PURE__*/ ((e) => {
+var joe = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new oie(xoe(t, n, r, e));
+ return new hie(Aoe(t, n, r, e));
}
return t;
-})(), bO = (e, t) => Math.abs(e - t);
-function Coe(e, t) {
- let n = bO(e.x, t.x), r = bO(e.y, t.y);
+})(), dO = (e, t) => Math.abs(e - t);
+function Moe(e, t) {
+ let n = dO(e.x, t.x), r = dO(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var woe = {
+var Noe = {
selection: {
- type: Uw,
+ type: Pw,
duration: .16,
bounce: 0
},
hover: {
- type: Uw,
+ type: Pw,
duration: .08,
bounce: 0
}
};
-function xO(e) {
+function fO(e) {
let [t, n] = (0, L.useState)(null);
return (0, L.useLayoutEffect)(() => {
if (!t) return;
@@ -31690,7 +31690,7 @@ function xO(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 = Soe(n, { transform: [r, E] }, woe[e]);
+ l = joe(n, { transform: [r, E] }, Noe[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -31727,16 +31727,16 @@ function xO(e) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function SO(e) {
- let t = xO("hover");
- return /* @__PURE__ */ (0, R.jsx)(Cb, {
+function pO(e) {
+ let t = fO("hover");
+ return /* @__PURE__ */ (0, R.jsx)(bb, {
...e,
ref: t
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var CO = Fi({
+var mO = Fi({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -31760,15 +31760,15 @@ var CO = Fi({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function wO({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Pi(CO.base, CO.size[t], CO.variant[e], a), l = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+function hO({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Pi(mO.base, mO.size[t], mO.variant[e], a), l = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
n ? /* @__PURE__ */ (0, R.jsx)(n, {
- className: CO.icon[t],
+ className: mO.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, R.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, R.jsx)(r, {
- className: CO.icon[t],
+ className: mO.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -31795,7 +31795,7 @@ function wO({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var TO = [
+var gO = [
"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",
@@ -31803,74 +31803,74 @@ var TO = [
"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(" "), Toe = "w-[266px]", Eoe = "flex w-full flex-col gap-1 outline-none", EO = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), DO = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), Poe = "w-[266px]", Foe = "flex w-full flex-col gap-1 outline-none", _O = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), vO = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
({
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
}).medium;
//#endregion
//#region src/management.ts
-var Doe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Ooe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", koe = Xi({
+var Ioe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Loe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Roe = Xi({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), Aoe = {
+}), zoe = {
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"
-}, joe = {
+}, Boe = {
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"
-}, Moe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Noe = {
+}, Voe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Hoe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, Poe = Xi({
+}, Uoe = Xi({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), OO = "border-t border-border-button-default p-4 first:border-t-0";
-function kO({ tone: e = "neutral", status: t, children: n }) {
+}), yO = "border-t border-border-button-default p-4 first:border-t-0";
+function bO({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
- className: `${Moe} ${Noe[e]}`,
+ className: `${Voe} ${Hoe[e]}`,
children: [t ? /* @__PURE__ */ (0, R.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 AO({ id: e, children: t }) {
+function xO({ id: e, children: t }) {
return /* @__PURE__ */ (0, R.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function jO({ id: e, gap: t = "none", children: n }) {
+function SO({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, R.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function MO({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function CO({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, R.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${koe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${Roe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, R.jsx)("div", {
- className: Aoe[e],
+ className: zoe[e],
children: a
}), i ? /* @__PURE__ */ (0, R.jsx)("footer", {
- className: joe[e],
+ className: Boe[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function NO() {
+function wO() {
let e = (0, L.useRef)(null);
return (0, L.useEffect)(() => {
v(e.current);
@@ -31878,7 +31878,7 @@ function NO() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var PO = Fi({
+var TO = Fi({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -31899,21 +31899,21 @@ var PO = Fi({
small: "size-4 shrink-0"
}
});
-function FO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function EO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, R.jsx)("button", {
ref: i,
type: r,
- className: Pi(PO.base, PO.size[t], n),
+ className: Pi(TO.base, TO.size[t], n),
...a,
children: /* @__PURE__ */ (0, R.jsx)(e, {
- className: PO.icon[t],
+ className: TO.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function Foe({ className: e }) {
+function Woe({ className: e }) {
return /* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -31926,8 +31926,8 @@ function Foe({ className: e }) {
children: /* @__PURE__ */ (0, R.jsx)("use", { href: "#i-folder-open" })
});
}
-var Ioe = "打开文件管理器失败,请重试";
-function IO({ path: e, prefix: t, className: n, onRevealed: r }) {
+var Goe = "打开文件管理器失败,请重试";
+function DO({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, L.useState)(!1), [o, s] = (0, L.useState)(""), c = (0, L.useRef)(!0);
(0, L.useEffect)(() => () => {
c.current = !1;
@@ -31938,7 +31938,7 @@ function IO({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await U("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof Bi ? e.message : Ioe);
+ c.current && s(e instanceof Bi ? e.message : Goe);
} finally {
c.current && a(!1);
}
@@ -31951,8 +31951,8 @@ function IO({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, R.jsxs)("p", {
className: Pi("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, R.jsx)(FO, {
- icon: Foe,
+ }), /* @__PURE__ */ (0, R.jsx)(EO, {
+ icon: Woe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -31967,7 +31967,7 @@ function IO({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function LO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function OO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-task-progress": !0,
className: r ? "flex flex-col gap-1.5" : Xi({
@@ -31987,19 +31987,19 @@ function LO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Loe({ className: e, children: t }) {
+function Koe({ className: e, children: t }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
className: Pi("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function RO({ className: e, children: t }) {
+function kO({ className: e, children: t }) {
return /* @__PURE__ */ (0, R.jsx)("p", {
className: Pi("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function zO({ label: e, description: t, children: n }) {
+function AO({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: Pi("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, R.jsxs)("div", {
@@ -32016,14 +32016,14 @@ function zO({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function BO({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function jO({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [n ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, R.jsx)(RO, { children: e })
+ children: /* @__PURE__ */ (0, R.jsx)(kO, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, R.jsx)(RO, { children: e }), /* @__PURE__ */ (0, R.jsx)(Loe, { children: i })] });
+ }) : /* @__PURE__ */ (0, R.jsx)(kO, { children: e }), /* @__PURE__ */ (0, R.jsx)(Koe, { children: i })] });
return r ? /* @__PURE__ */ (0, R.jsx)("form", {
id: t,
"aria-label": e,
@@ -32038,13 +32038,13 @@ function BO({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function VO({ children: e }) {
+function MO({ children: e }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function HO({ divided: e = !1, children: t }) {
+function NO({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -32053,7 +32053,7 @@ function HO({ divided: e = !1, children: t }) {
children: t
});
}
-function UO({ status: e, children: t }) {
+function PO({ status: e, children: t }) {
return /* @__PURE__ */ (0, R.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, R.jsx)("div", {
@@ -32062,28 +32062,28 @@ function UO({ status: e, children: t }) {
}) : null, t]
});
}
-function WO({ role: e, children: t }) {
+function FO({ role: e, children: t }) {
return /* @__PURE__ */ (0, R.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function GO({ children: e }) {
+function IO({ children: e }) {
return /* @__PURE__ */ (0, R.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function KO({ children: e }) {
+function LO({ children: e }) {
return /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function qO({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, R.jsx)(wO, {
+function RO({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, R.jsx)(hO, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
@@ -32097,13 +32097,13 @@ function qO({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function JO({ children: e }) {
+function zO({ children: e }) {
return /* @__PURE__ */ (0, R.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function YO({ term: e, children: t }) {
+function BO({ term: e, children: t }) {
return /* @__PURE__ */ (0, R.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, R.jsx)("dt", {
@@ -32115,7 +32115,7 @@ function YO({ term: e, children: t }) {
})]
});
}
-function XO({ summary: e, defaultOpen: t = !1, children: n }) {
+function VO({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, L.useId)(), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(!1), [s, c] = (0, L.useState)(t);
return /* @__PURE__ */ (0, R.jsxs)("details", {
ref: (e) => {
@@ -32143,7 +32143,7 @@ function XO({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function Roe({ name: e }) {
+function qoe({ name: e }) {
return /* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32152,18 +32152,18 @@ function Roe({ name: e }) {
children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
-function ZO({ mark: e }) {
+function HO({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, R.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, R.jsx)(Roe, { name: e });
+ }) : /* @__PURE__ */ (0, R.jsx)(qoe, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function QO({ toast: e, mode: t, monitor: n }) {
+function UO({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Zn({
queryKey: us,
queryFn: ({ signal: e }) => ds(e),
@@ -32187,7 +32187,7 @@ function QO({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var zoe = [
+var Joe = [
{
label: "扫描并补全资料",
icon: Ze,
@@ -32203,13 +32203,13 @@ var zoe = [
icon: rt,
command: { stage: "collect" }
}
-], Boe = Pi(EO, DO, "text-body-2-medium"), Voe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Hoe = (e) => {
+], Yoe = Pi(_O, vO, "text-body-2-medium"), Xoe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Zoe = (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(",")}。`;
-}, Uoe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Hoe(e);
-function Woe({ busy: e, onRun: t }) {
+}, Qoe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Zoe(e);
+function $oe({ busy: e, onRun: t }) {
let n = (0, L.useRef)(null), [r, i] = (0, L.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -32234,19 +32234,19 @@ function Woe({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, R.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ey, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: TO,
- children: /* @__PURE__ */ (0, R.jsx)(SO, {
+ className: gO,
+ children: /* @__PURE__ */ (0, R.jsx)(pO, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: zoe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, R.jsxs)("button", {
+ children: Joe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
- className: Boe,
+ className: Yoe,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, R.jsx)(t, {
"aria-hidden": !0,
@@ -32256,8 +32256,8 @@ function Woe({ busy: e, onRun: t }) {
})
})] });
}
-function Goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = xs(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = ys(e.notes || {}), c = NO();
+function ese({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = xs(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = ys(e.notes || {}), c = wO();
return /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -32265,7 +32265,7 @@ function Goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "warning",
title: "处理较慢",
- children: Voe
+ children: Xoe
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
@@ -32277,7 +32277,7 @@ function Goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, R.jsxs)(XO, {
+ children: /* @__PURE__ */ (0, R.jsxs)(VO, {
summary: a.label,
children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "relative",
@@ -32308,7 +32308,7 @@ function Goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, R.jsx)(IO, {
+ children: /* @__PURE__ */ (0, R.jsx)(DO, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -32322,13 +32322,13 @@ function Goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "success",
title: "处理完成",
- children: Uoe(n)
+ children: Qoe(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, R.jsx)(IO, {
+ children: /* @__PURE__ */ (0, R.jsx)(DO, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -32340,8 +32340,8 @@ function Goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function $O(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = QO(e), o = Qn({
+function WO(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = UO(e), o = Qn({
mutationFn: (e) => U(ls, e),
onSuccess: (e) => {
a(), K.setQueryData(us, e), K.invalidateQueries({ queryKey: us });
@@ -32355,23 +32355,23 @@ function $O(e) {
};
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, R.jsx)(MO, {
+ children: [/* @__PURE__ */ (0, R.jsx)(CO, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
- /* @__PURE__ */ (0, R.jsx)(wO, {
+ /* @__PURE__ */ (0, R.jsx)(hO, {
href: "/scraping",
size: "small",
trailingIcon: Ue,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, R.jsx)(wO, {
+ s.candidates ? /* @__PURE__ */ (0, R.jsx)(hO, {
href: "/review",
size: "small",
trailingIcon: Ue,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, R.jsx)(Woe, {
+ /* @__PURE__ */ (0, R.jsx)($oe, {
busy: l,
onRun: d
})
@@ -32379,12 +32379,12 @@ function $O(e) {
children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, R.jsx)(jO, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, R.jsx)(SO, { children: "扫描与采集" }),
/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Doe
+ children: Ioe
}),
- s.status === "running" ? /* @__PURE__ */ (0, R.jsx)(LO, {
+ s.status === "running" ? /* @__PURE__ */ (0, R.jsx)(OO, {
embedded: !0,
label: u,
value: s.checked,
@@ -32392,7 +32392,7 @@ function $O(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, R.jsx)(Goe, {
+ }), /* @__PURE__ */ (0, R.jsx)(ese, {
state: s,
problem: c,
settled: i,
@@ -32408,7 +32408,7 @@ function $O(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function Koe(e) {
+function tse(e) {
return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -32422,7 +32422,7 @@ function Koe(e) {
})
});
}
-function qoe(e) {
+function nse(e) {
return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -32436,7 +32436,7 @@ function qoe(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Joe(e, t, n) {
+function rse(e, t, n) {
(0, L.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -32450,7 +32450,7 @@ function Joe(e, t, n) {
n
]);
}
-function Yoe(e, t) {
+function ise(e, t) {
let n = (0, L.useRef)(!1);
return (0, L.useEffect)(() => {
if (!e) return;
@@ -32464,12 +32464,12 @@ function Yoe(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var ek = (0, L.createContext)("md");
-function tk({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var GO = (0, L.createContext)("md");
+function KO({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, L.useRef)(null), u = (0, L.useRef)(null), [d, f] = (0, L.useState)(!1);
- Joe(d, () => f(!1), [l, u]);
- let p = Yoe(d, l);
- return /* @__PURE__ */ (0, R.jsx)(Xte, {
+ rse(d, () => f(!1), [l, u]);
+ let p = ise(d, l);
+ return /* @__PURE__ */ (0, R.jsx)(ene, {
ref: s,
...c,
isOpen: d,
@@ -32478,19 +32478,19 @@ function tk({ className: e, triggerClassName: t, popoverClassName: n, size: r =
children: ({ isOpen: e }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)(lh, {
ref: l,
className: Pi("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, R.jsx)($te, {
+ children: [/* @__PURE__ */ (0, R.jsx)(rne, {
className: Pi("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, R.jsx)(Koe, { className: Pi("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, R.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, R.jsx)(tse, { className: Pi("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, R.jsx)(Ey, {
ref: u,
isNonModal: !0,
offset: 4,
- className: Pi(Toe, TO, "p-2", n),
+ className: Pi(Poe, gO, "p-2", n),
children: /* @__PURE__ */ (0, R.jsx)(Pee, {
items: a,
- className: Pi(Eoe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, R.jsx)(ek.Provider, {
+ className: Pi(Foe, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, R.jsx)(GO.Provider, {
value: r,
children: i
})
@@ -32498,19 +32498,19 @@ function tk({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function nk({ className: e, children: t, ...n }) {
- let r = (0, L.useContext)(ek);
+function qO({ className: e, children: t, ...n }) {
+ let r = (0, L.useContext)(GO);
return /* @__PURE__ */ (0, R.jsx)(Lee, {
...n,
- className: (t) => Pi(EO, 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) => Pi(_O, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/background-job.ts
-var rk = 2e3, Xoe = (e) => e, Zoe = (e, t) => t;
-function ik(e) {
- let { queryKey: t, jobOf: n = Xoe, withJob: r = Zoe, idlePollMs: i } = e, [a, o] = (0, L.useState)(!1), [s, c] = (0, L.useState)(null), l = (0, L.useRef)(e);
+var JO = 2e3, ase = (e) => e, ose = (e, t) => t;
+function YO(e) {
+ let { queryKey: t, jobOf: n = ase, withJob: r = ose, idlePollMs: i } = e, [a, o] = (0, L.useState)(!1), [s, c] = (0, L.useState)(null), l = (0, L.useRef)(e);
(0, L.useEffect)(() => {
l.current = e;
});
@@ -32519,7 +32519,7 @@ function ik(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? rk : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? JO : i ?? !1;
}
}), d = Qn({
mutationFn: (e) => l.current.start(e),
@@ -32550,12 +32550,12 @@ function ik(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Qoe = (e) => _[e] || e, ak = (e) => K.setQueryData(Es, e);
-function $oe() {
+var sse = (e) => _[e] || e, XO = (e) => K.setQueryData(Es, e);
+function cse() {
let e = Zn({
queryKey: Es,
queryFn: ({ signal: e }) => ks(e),
- refetchInterval: (e) => e.state.data?.status === "running" && rk
+ refetchInterval: (e) => e.state.data?.status === "running" && JO
}), t = Zn({
queryKey: Ds,
queryFn: ({ signal: e }) => As(e)
@@ -32564,18 +32564,18 @@ function $oe() {
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => ak(await U(Ts, {
+ onConfirm: async () => XO(await U(Ts, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => U(Ts, { stop: !0 }, "POST", e), ak), d = Ns(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => U(Ts, { stop: !0 }, "POST", e), XO), d = Ns(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, R.jsx)(MO, {
+ children: [/* @__PURE__ */ (0, R.jsx)(CO, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(tk, {
+ footer: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -32583,10 +32583,10 @@ function $oe() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, R.jsxs)(nk, {
+ children: o.map((e) => /* @__PURE__ */ (0, R.jsxs)(qO, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, R.jsx)(ZO, { mark: Qoe(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, R.jsx)(HO, { mark: sse(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, R.jsx)(V, {
onClick: u,
@@ -32600,10 +32600,10 @@ function $oe() {
children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, R.jsx)(jO, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, R.jsx)(SO, { children: "媒体修复" }),
/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Ooe
+ children: Loe
}),
s && a.total ? /* @__PURE__ */ (0, R.jsx)(ra, {
label: "修复进度",
@@ -32641,7 +32641,7 @@ function $oe() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var ok = {
+var ZO = {
md: {
box: "size-4",
glyph: "size-4",
@@ -32655,8 +32655,8 @@ var ok = {
gap: "gap-1.5"
}
};
-function sk({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = ok[t], c = n || r, l = o && !a;
+function QO({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = ZO[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: Pi("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Pi("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Pi("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"),
@@ -32683,13 +32683,13 @@ function sk({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function ck({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = ok[n];
- return /* @__PURE__ */ (0, R.jsx)(nee, {
+function $O({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = ZO[n];
+ return /* @__PURE__ */ (0, R.jsx)(ree, {
ref: r,
...i,
className: (t) => Pi("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, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(sk, {
+ children: (e) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(QO, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, R.jsx)("span", {
@@ -32700,10 +32700,10 @@ function ck({ className: e, children: t, size: n = "md", ref: r, ...i }) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function lk({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function ek({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
className: Pi("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, R.jsx)(jne, {
+ children: /* @__PURE__ */ (0, R.jsx)(Fne, {
ref: r,
...i,
className: Pi("bui-table", e === "sm" && "bui-table-sm", t)
@@ -32712,7 +32712,7 @@ function lk({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
}
//#endregion
//#region src/react/components/row-click.ts
-var ese = [
+var lse = [
"a",
"button",
"input",
@@ -32725,15 +32725,15 @@ var ese = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function uk(e, t) {
+function tk(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(ese);
+ let r = n.closest(lse);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function dk({ children: e, follow: t = !1, onRowClick: n }) {
+function nk({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -32741,15 +32741,15 @@ function dk({ 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 && uk(e, r) && n(r.dataset.key);
+ r && tk(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var tse = To("unlink"), fk = To("rotate-cw"), nse = "站点返回 404 或 410,确认这个地址不存在。", rse = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", pk = "删除前会逐条重验一次;此操作不可撤销。", ise = "暂时无法读取进度,正在重新连接…", mk = (e) => Number(e || 0).toLocaleString();
-function hk({ label: e, value: t, note: n }) {
+var use = To("unlink"), rk = To("rotate-cw"), dse = "站点返回 404 或 410,确认这个地址不存在。", fse = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", pse = "删除前会逐条重验一次;此操作不可撤销。", mse = "暂时无法读取进度,正在重新连接…", ik = (e) => Number(e || 0).toLocaleString();
+function ak({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -32768,11 +32768,11 @@ function hk({ label: e, value: t, note: n }) {
]
});
}
-function gk({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function ok({ 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, R.jsxs)("div", {
- className: OO,
+ className: yO,
children: [
/* @__PURE__ */ (0, R.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -32785,13 +32785,13 @@ function gk({ 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, R.jsx)(dk, { children: /* @__PURE__ */ (0, R.jsxs)(lk, {
+ /* @__PURE__ */ (0, R.jsx)(nk, { children: /* @__PURE__ */ (0, R.jsxs)(ek, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, R.jsxs)(TS, { children: [
- i ? /* @__PURE__ */ (0, R.jsx)(ES, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(xS, { children: [
+ i ? /* @__PURE__ */ (0, R.jsx)(SS, {
id: "pick",
- children: /* @__PURE__ */ (0, R.jsx)(ck, {
+ children: /* @__PURE__ */ (0, R.jsx)($O, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -32799,44 +32799,44 @@ function gk({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, R.jsx)(OS, { children: t.map((e) => /* @__PURE__ */ (0, R.jsxs)(jS, {
+ ] }), /* @__PURE__ */ (0, R.jsx)(wS, { children: t.map((e) => /* @__PURE__ */ (0, R.jsxs)(DS, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, R.jsx)(NS, { children: /* @__PURE__ */ (0, R.jsx)(ck, {
+ i ? /* @__PURE__ */ (0, R.jsx)(kS, { children: /* @__PURE__ */ (0, R.jsx)($O, {
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, R.jsx)(NS, { children: e.entity }),
- /* @__PURE__ */ (0, R.jsx)(NS, { children: kc[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, R.jsx)(NS, { children: e.label || "" }),
- /* @__PURE__ */ (0, R.jsx)(NS, { children: /* @__PURE__ */ (0, R.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: e.entity }),
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: kc[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: e.label || "" }),
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, R.jsx)(NS, { children: /* @__PURE__ */ (0, R.jsxs)("a", {
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: /* @__PURE__ */ (0, R.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -32858,11 +32858,11 @@ function gk({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function _k() {
+function hse() {
let e = Zn({
queryKey: Ec,
queryFn: ({ signal: e }) => jc(e)
- }), [t, n] = (0, L.useState)([]), r = ik({
+ }), [t, n] = (0, L.useState)([]), r = YO({
queryKey: Oc,
queryFn: ({ signal: e }) => Pc(e),
start: Fc,
@@ -32875,7 +32875,7 @@ function _k() {
exact: !0
});
}
- }), i = ik({
+ }), i = YO({
queryKey: Dc,
queryFn: ({ signal: e }) => Mc(e),
start: Nc,
@@ -32918,7 +32918,7 @@ function _k() {
else if (i.query.isError && a) x = /* @__PURE__ */ (0, R.jsx)(W, {
tone: "neutral",
title: "任务状态",
- children: ise
+ children: mse
});
else if (a?.status === "failed") x = /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
@@ -32926,12 +32926,12 @@ function _k() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- y = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, R.jsx)(LO, {
+ y = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, R.jsx)(OO, {
embedded: !0,
label: Rc(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, R.jsx)(LO, {
+ }) : null, c ? /* @__PURE__ */ (0, R.jsx)(OO, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
@@ -32939,38 +32939,38 @@ function _k() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
x = l || u.length || d.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
- className: Poe,
+ className: Uoe,
children: [
- /* @__PURE__ */ (0, R.jsx)(gk, {
+ /* @__PURE__ */ (0, R.jsx)(ok, {
title: "地址已失效",
items: u,
- hint: nse
+ hint: dse
}),
- /* @__PURE__ */ (0, R.jsx)(gk, {
+ /* @__PURE__ */ (0, R.jsx)(ok, {
title: "本次未访问成功",
items: d,
- hint: rse,
+ hint: fse,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, R.jsxs)(kO, { children: [/* @__PURE__ */ (0, R.jsx)(V, {
- leadingIcon: fk,
+ children: /* @__PURE__ */ (0, R.jsxs)(bO, { children: [/* @__PURE__ */ (0, R.jsx)(V, {
+ leadingIcon: rk,
disabled: !t.length,
...G(s),
onClick: () => h(t),
children: e
}), /* @__PURE__ */ (0, R.jsx)(V, {
- leadingIcon: fk,
+ leadingIcon: rk,
...G(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, R.jsx)(kO, {
+ l && u.length ? /* @__PURE__ */ (0, R.jsx)(bO, {
tone: "error",
- status: pk,
+ status: pse,
children: /* @__PURE__ */ (0, R.jsx)(V, {
variant: "danger",
...G(c),
@@ -32979,7 +32979,7 @@ function _k() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, R.jsx)("p", {
- className: `${OO} text-body-regular text-notification-success-foreground`,
+ className: `${yO} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -32990,21 +32990,21 @@ function _k() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, R.jsx)(AO, {
+ /* @__PURE__ */ (0, R.jsx)(xO, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, R.jsxs)(MO, {
+ /* @__PURE__ */ (0, R.jsxs)(CO, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, R.jsx)(V, {
- leadingIcon: tse,
+ leadingIcon: use,
...G(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, R.jsx)(jO, {
+ /* @__PURE__ */ (0, R.jsx)(SO, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -33015,13 +33015,13 @@ function _k() {
children: H(e.error)
}) : p ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, R.jsx)(hk, {
+ children: [/* @__PURE__ */ (0, R.jsx)(ak, {
label: "链接总数",
- value: mk(p.total),
- note: `分布在 ${mk(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(hk, {
+ value: ik(p.total),
+ note: `分布在 ${ik(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(ak, {
label: kc[e] || e,
- value: mk(t)
+ value: ik(t)
}, e))]
}), m ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -33050,7 +33050,7 @@ function _k() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function ase({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+function sk({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
return /* @__PURE__ */ (0, R.jsxs)($m, {
"data-label": "true",
...a,
@@ -33071,7 +33071,7 @@ function ase({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function ose({ isInvalid: e = !1, className: t, ...n }) {
+function ck({ isInvalid: e = !1, className: t, ...n }) {
return /* @__PURE__ */ (0, R.jsx)(hh, {
slot: e ? "errorMessage" : "description",
...n,
@@ -33080,15 +33080,15 @@ function ose({ isInvalid: e = !1, className: t, ...n }) {
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var vk = (0, L.createContext)({});
-function yk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, R.jsx)(vk.Provider, {
+var lk = (0, L.createContext)({});
+function uk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, R.jsx)(lk.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, R.jsx)(aC, {
+ children: /* @__PURE__ */ (0, R.jsx)(YS, {
...a,
"data-input-size": e,
className: Pi("group flex h-max w-full flex-col items-start gap-1", r),
@@ -33096,8 +33096,8 @@ function yk({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-yk.displayName = "TextField";
-var bk = Fi({
+uk.displayName = "TextField";
+var dk = Fi({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -33126,44 +33126,44 @@ var bk = Fi({
].join(" "),
icon: "size-5 shrink-0"
});
-function xk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, L.useContext)(vk), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, R.jsx)(iee, {
+function fk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, L.useContext)(lk), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, R.jsx)(aee, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Pi(bk.field, d ? bk.fieldWithAddonSize[u] : bk.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 }) => Pi(dk.field, d ? dk.fieldWithAddonSize[u] : dk.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, R.jsxs)("div", {
- className: bk.content,
+ className: dk.content,
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
- className: bk.leftSection,
+ className: dk.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, R.jsx)(t, {
- className: bk.icon,
+ className: dk.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, R.jsx)(oee, {
+ }) : null, /* @__PURE__ */ (0, R.jsx)(see, {
ref: o,
...c,
- className: Pi(bk.input, l.inputClassName, a)
+ className: Pi(dk.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, R.jsx)(n, {
- className: bk.icon,
+ className: dk.icon,
"aria-hidden": !0
}) : null]
})
});
}
-xk.displayName = "InputBase";
-function Sk({ 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, R.jsx)(yk, {
+fk.displayName = "InputBase";
+function pk({ 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, R.jsx)(uk, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
- e && /* @__PURE__ */ (0, R.jsx)(ase, {
+ e && /* @__PURE__ */ (0, R.jsx)(sk, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, R.jsx)(xk, {
+ /* @__PURE__ */ (0, R.jsx)(fk, {
ref: c,
groupRef: l,
placeholder: r,
@@ -33172,21 +33172,21 @@ function Sk({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, R.jsx)(ose, {
+ t && /* @__PURE__ */ (0, R.jsx)(ck, {
isInvalid: d,
children: t
})
] })
});
}
-Sk.displayName = "Input";
+pk.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var Ck = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, sse = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", cse = 8;
-function lse({ plan: e }) {
+var mk = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, gse = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", _se = 8;
+function vse({ plan: e }) {
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, cse).map((e) => /* @__PURE__ */ (0, R.jsxs)("li", {
+ children: e.rows.slice(0, _se).map((e) => /* @__PURE__ */ (0, R.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, R.jsx)("span", {
@@ -33212,7 +33212,7 @@ function lse({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function use({ toast: t, failure: n }) {
+function yse({ toast: t, failure: n }) {
let r = Zn({
queryKey: il,
queryFn: ({ signal: e }) => al(e)
@@ -33240,7 +33240,7 @@ function use({ toast: t, failure: n }) {
let t = dl.test(H(e)) ? "dir" : "file";
h(t), (t === "dir" ? v : g).current?.focus();
}
- }), S = ik({
+ }), S = YO({
queryKey: il,
queryFn: ({ signal: e }) => al(e),
start: cl,
@@ -33259,7 +33259,7 @@ function use({ toast: t, failure: n }) {
x.isPending || !c || (h(null), x.mutate(y()));
}, k = () => void b({
title: "按模板整理文件",
- body: Ck(E),
+ body: mk(E),
confirmLabel: "整理文件",
onConfirm: () => S.start.mutateAsync({
kind: "apply",
@@ -33267,13 +33267,13 @@ function use({ toast: t, failure: n }) {
})
}), A = () => void b({
title: "回滚上一批整理",
- body: sse,
+ body: gse,
confirmLabel: "回滚整理",
onConfirm: () => S.start.mutateAsync({ kind: "rollback" })
}), j = null, M = S.job, N = S.outcome;
if (M?.status === "running") {
let e = M.message || M.stage || "正在整理文件…";
- j = /* @__PURE__ */ (0, R.jsx)(LO, {
+ j = /* @__PURE__ */ (0, R.jsx)(OO, {
embedded: !0,
label: e,
value: M.checked,
@@ -33295,7 +33295,7 @@ function use({ toast: t, failure: n }) {
tone: "error",
title: "整理失败",
children: H(S.start.error)
- }) : x.isPending ? j = /* @__PURE__ */ (0, R.jsx)(LO, {
+ }) : x.isPending ? j = /* @__PURE__ */ (0, R.jsx)(OO, {
embedded: !0,
label: "正在按模板算计划…"
}) : x.isError ? j = /* @__PURE__ */ (0, R.jsx)(W, {
@@ -33306,8 +33306,8 @@ function use({ toast: t, failure: n }) {
tone: "neutral",
title: "预览结果",
children: ml(w)
- }), T ? /* @__PURE__ */ (0, R.jsx)(lse, { plan: w }) : null] }));
- return /* @__PURE__ */ (0, R.jsxs)(MO, {
+ }), T ? /* @__PURE__ */ (0, R.jsx)(vse, { plan: w }) : null] }));
+ return /* @__PURE__ */ (0, R.jsxs)(CO, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -33331,7 +33331,7 @@ function use({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, R.jsx)(jO, {
+ /* @__PURE__ */ (0, R.jsx)(SO, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -33351,20 +33351,20 @@ function use({ toast: t, failure: n }) {
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, R.jsx)(tk, {
+ a.length ? /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: c || null,
onSelectionChange: (e) => {
e !== null && (s(String(e)), h(null), x.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, R.jsxs)(nk, {
+ children: a.map((t) => /* @__PURE__ */ (0, R.jsxs)(qO, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, R.jsx)(ZO, { mark: _[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, R.jsx)(HO, { mark: _[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, R.jsx)(Sk, {
+ /* @__PURE__ */ (0, R.jsx)(pk, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: f.file,
@@ -33375,7 +33375,7 @@ function use({ toast: t, failure: n }) {
p({ file: e }), h(null);
}
}),
- /* @__PURE__ */ (0, R.jsx)(Sk, {
+ /* @__PURE__ */ (0, R.jsx)(pk, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: f.dir,
@@ -33415,36 +33415,36 @@ function use({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var dse = To("git-compare"), fse = To("rotate-cw"), pse = "暂时无法读取进度,正在重新连接…", wk = "清理失效条目", Tk = "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", Ek = (e) => Number(e || 0).toLocaleString();
-function mse({ scan: e }) {
+var bse = To("git-compare"), xse = To("rotate-cw"), Sse = "暂时无法读取进度,正在重新连接…", hk = "清理失效条目", gk = "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", _k = (e) => Number(e || 0).toLocaleString();
+function vk({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", {
- className: Tk,
+ className: gk,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, R.jsx)("article", {
className: tu(),
children: /* @__PURE__ */ (0, R.jsx)(ru, {
label: Dl[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, R.jsx)(ZO, { mark: _[e.location] ?? "database" }),
+ mark: /* @__PURE__ */ (0, R.jsx)(HO, { mark: _[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, R.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${Ek(e.missing)} 项` : "—",
+ figure: e.online ? `${_k(e.missing)} 项` : "—",
meta: Ml(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, R.jsxs)("div", {
- className: Tk,
+ className: gk,
children: [
/* @__PURE__ */ (0, R.jsx)("article", {
className: tu(),
children: /* @__PURE__ */ (0, R.jsx)(ru, {
label: "待永久删除",
- figure: `${Ek(e.missing)} 项`,
+ figure: `${_k(e.missing)} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
@@ -33452,7 +33452,7 @@ function mse({ scan: e }) {
className: tu(),
children: /* @__PURE__ */ (0, R.jsx)(ru, {
label: "空文件夹",
- figure: `${Ek(e.empty)} 个`,
+ figure: `${_k(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
@@ -33460,15 +33460,15 @@ function mse({ scan: e }) {
className: tu(),
children: /* @__PURE__ */ (0, R.jsx)(ru, {
label: "可清理的缓存",
- figure: `${Ek(t.files)} 个`,
+ figure: `${_k(t.files)} 个`,
meta: t.files ? s(t.bytes) : ""
})
})
]
})] });
}
-function hse({ toast: e }) {
- let t = ik({
+function Cse({ toast: e }) {
+ let t = YO({
queryKey: yl,
queryFn: ({ signal: e }) => Sl(e),
start: Cl,
@@ -33481,17 +33481,17 @@ function hse({ toast: e }) {
exact: !0
}), t.status !== "complete") return;
let { done: n, left: r } = Nl(t);
- r ? e(`已完成 ${Ek(n)} 项,${Ek(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ r ? e(`已完成 ${_k(n)} 项,${_k(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = ik({
+ }), n = YO({
queryKey: vl,
queryFn: ({ signal: e }) => bl(e),
start: xl,
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", c = i ? "扫描中" : o ? "重新扫描" : "检查文件", l = (e) => void b({
- title: wk,
+ title: hk,
body: jl(e),
- confirmLabel: wk,
+ confirmLabel: hk,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
@@ -33508,7 +33508,7 @@ function hse({ toast: e }) {
children: u.error || "请查看任务记录,核对已处理的文件。"
});
else if (u) p = d(u);
- else if (t.running) f = /* @__PURE__ */ (0, R.jsx)(LO, {
+ else if (t.running) f = /* @__PURE__ */ (0, R.jsx)(OO, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -33520,11 +33520,11 @@ function hse({ toast: e }) {
else if (n.query.isError && r) p = /* @__PURE__ */ (0, R.jsx)(W, {
tone: "neutral",
title: "任务状态",
- children: pse
+ children: Sse
});
else if (r?.status === "running") {
let e = kl(r);
- f = /* @__PURE__ */ (0, R.jsx)(LO, {
+ f = /* @__PURE__ */ (0, R.jsx)(OO, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -33543,7 +33543,7 @@ function hse({ toast: e }) {
else if (r?.status === "complete") {
let e = El(r);
p = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
- /* @__PURE__ */ (0, R.jsx)(mse, { scan: r }),
+ /* @__PURE__ */ (0, R.jsx)(vk, { scan: r }),
e ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "neutral",
title: "清理内容",
@@ -33555,7 +33555,7 @@ function hse({ toast: e }) {
variant: "danger",
...G(a),
onClick: () => l(r),
- children: a ? "正在复核并清理…" : wk
+ children: a ? "正在复核并清理…" : hk
}) : /* @__PURE__ */ (0, R.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -33572,16 +33572,16 @@ function hse({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, R.jsx)(AO, {
+ /* @__PURE__ */ (0, R.jsx)(xO, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, R.jsxs)(MO, {
+ /* @__PURE__ */ (0, R.jsxs)(CO, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, R.jsx)(V, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? fse : dse,
+ leadingIcon: o && !i ? xse : bse,
...G(i),
onClick: () => {
i || n.start.mutate();
@@ -33589,7 +33589,7 @@ function hse({ toast: e }) {
children: c
}),
children: [
- /* @__PURE__ */ (0, R.jsx)(jO, {
+ /* @__PURE__ */ (0, R.jsx)(SO, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -33615,10 +33615,10 @@ function hse({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function Dk(e, t) {
+function yk(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function Ok({ section: e, label: t, icon: n, value: r, open: i }) {
+function bk({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
className: tu({ interactive: !0 }),
@@ -33632,17 +33632,17 @@ function Ok({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var gse = To("square-check-big"), _se = To("sparkles"), vse = To("file-stack"), yse = To("file-archive"), bse = To("trash"), xse = [
+var wse = To("square-check-big"), Tse = To("sparkles"), Ese = To("file-stack"), Dse = To("file-archive"), Ose = To("trash"), kse = [
Il,
Is,
Qo
-], Sse = () => {
- for (let e of xse) K.invalidateQueries({
+], Ase = () => {
+ for (let e of kse) K.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function kk({ toast: e, failure: t, open: n }) {
+function jse({ toast: e, failure: t, open: n }) {
let r = Zn({
queryKey: Il,
queryFn: ({ signal: e }) => Hl(e)
@@ -33666,46 +33666,46 @@ function kk({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, R.jsxs)("div", {
className: nu,
children: [
- /* @__PURE__ */ (0, R.jsx)(Ok, {
+ /* @__PURE__ */ (0, R.jsx)(bk, {
section: "review",
label: "人工复核",
- icon: gse,
+ icon: wse,
open: n,
- value: Dk(r, Kl)
+ value: yk(r, Kl)
}),
- /* @__PURE__ */ (0, R.jsx)(Ok, {
+ /* @__PURE__ */ (0, R.jsx)(bk, {
section: "quality",
label: "高清版",
- icon: _se,
+ icon: Tse,
open: n,
- value: Dk(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: yk(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, R.jsx)(Ok, {
+ /* @__PURE__ */ (0, R.jsx)(bk, {
section: "duplicates",
label: "重复文件",
- icon: vse,
+ icon: Ese,
open: n,
- value: Dk(a, (e) => Number(e.total || 0) ? {
+ value: yk(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${s(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, R.jsx)(Ok, {
+ /* @__PURE__ */ (0, R.jsx)(bk, {
section: "ads",
label: "垃圾文件",
- icon: yse,
+ icon: Dse,
open: n,
- value: Dk(o, (e) => ({
+ value: yk(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
meta: ql(e)
}))
}),
- /* @__PURE__ */ (0, R.jsx)(Ok, {
+ /* @__PURE__ */ (0, R.jsx)(bk, {
section: "trash",
label: "回收站",
- icon: bse,
+ icon: Ose,
open: n,
- value: Dk(c, (e) => ({
+ value: yk(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${s(e.bytes || 0)}` : ""
}))
@@ -33718,29 +33718,29 @@ function kk({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, R.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, R.jsx)($O, {
+ children: /* @__PURE__ */ (0, R.jsx)(WO, {
toast: u,
monitor: !0,
- onComplete: Sse
+ onComplete: Ase
})
}),
/* @__PURE__ */ (0, R.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, R.jsx)($oe, {})
+ children: /* @__PURE__ */ (0, R.jsx)(cse, {})
}),
- /* @__PURE__ */ (0, R.jsx)(use, {
+ /* @__PURE__ */ (0, R.jsx)(yse, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, R.jsx)(_k, {}),
- wl(l.data) ? /* @__PURE__ */ (0, R.jsx)(hse, { toast: e }) : null
+ /* @__PURE__ */ (0, R.jsx)(hse, {}),
+ wl(l.data) ? /* @__PURE__ */ (0, R.jsx)(Cse, { toast: e }) : null
] });
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function Ak({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function xk({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, R.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
@@ -33767,7 +33767,7 @@ function Ak({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/components/use-stuck.ts
-function jk(e) {
+function Sk(e) {
(0, L.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -33785,9 +33785,9 @@ function jk(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function Mk({ title: e, children: t }) {
+function Mse({ title: e, children: t }) {
let n = (0, L.useRef)(null);
- return jk(n), /* @__PURE__ */ (0, R.jsxs)("div", {
+ return Sk(n), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -33800,9 +33800,9 @@ function Mk({ title: e, children: t }) {
}), t]
});
}
-function Nk({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function Ck({ 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, L.useRef)(null);
- return jk(d), /* @__PURE__ */ (0, R.jsxs)("div", {
+ return Sk(d), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -33829,22 +33829,22 @@ function Nk({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
]
});
}
-var Pk = "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 Fk({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Nse = "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 wk({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: Pi(Pk, r),
+ className: Pi(Nse, r),
onClick: n,
children: e
});
}
-var Cse = "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 hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function Ik({ children: e, onPress: t, busy: n = !1 }) {
+var Pse = "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 hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function Tk({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
- className: Cse,
+ className: Pse,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -33855,11 +33855,11 @@ function Ik({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var wse = To("play"), Tse = To("file-stack"), Ese = Xi({
+var Fse = To("play"), Ise = To("file-stack"), Lse = Xi({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), Lk = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", Rk = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", zk = "font-mono text-caption-1-regular leading-5 text-text-secondary", Bk = () => {
+}), Ek = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", Dk = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", Ok = "font-mono text-caption-1-regular leading-5 text-text-secondary", kk = () => {
K.invalidateQueries({
queryKey: Qo,
exact: !0
@@ -33868,16 +33868,16 @@ var wse = To("play"), Tse = To("file-stack"), Ese = Xi({
exact: !0
});
};
-function Dse(e) {
+function Ak(e) {
return e.identical ? /* @__PURE__ */ (0, R.jsx)("span", {
- className: `${Rk} text-(--keep)`,
+ className: `${Dk} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, R.jsx)("span", {
- className: `${Rk} text-text-secondary`,
+ className: `${Dk} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function Ose({ file: t, openItem: n }) {
+function Rse({ file: t, openItem: n }) {
let r = () => n(t.id);
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -33887,7 +33887,7 @@ function Ose({ file: t, openItem: n }) {
onClick: r,
"aria-label": `预览 ${t.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, R.jsx)(wse, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Fse, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, R.jsx)("img", {
@@ -33911,39 +33911,39 @@ function Ose({ file: t, openItem: n }) {
}), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex flex-none gap-1",
children: [t.is_largest ? /* @__PURE__ */ (0, R.jsx)("i", {
- className: `${Lk} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${Ek} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, R.jsx)("i", {
- className: `${Lk} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${Ek} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, R.jsxs)("span", {
- className: `${zk} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, R.jsx)(ZO, { mark: _[t.location] || "database" }), /* @__PURE__ */ (0, R.jsx)("span", {
+ className: `${Ok} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, R.jsx)(HO, { mark: _[t.location] || "database" }), /* @__PURE__ */ (0, R.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
}),
/* @__PURE__ */ (0, R.jsx)("span", {
- className: zk,
+ className: Ok,
children: s(t.size || 0)
}),
/* @__PURE__ */ (0, R.jsx)("span", {
- className: zk,
+ className: Ok,
children: o(t.duration)
}),
/* @__PURE__ */ (0, R.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${zk} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${Ok} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: t.path ?? ""
})
]
});
}
-function kse({ openItem: t, toast: n, failure: r }) {
+function zse({ openItem: t, toast: n, failure: r }) {
let i = Zn({
queryKey: Qo,
queryFn: ({ signal: e }) => es(e)
@@ -33953,13 +33953,13 @@ function kse({ openItem: t, toast: n, failure: r }) {
}), [o, c] = (0, L.useState)(""), l = Qn({
mutationFn: (e) => cs(e, "dispose"),
onSuccess: (e, t) => {
- Bk(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ kk(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
await cs(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
- Bk();
+ kk();
}
} });
},
@@ -33986,15 +33986,15 @@ function kse({ openItem: t, toast: n, failure: r }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, R.jsx)(Ak, {
+ /* @__PURE__ */ (0, R.jsx)(xk, {
label: "重复内容",
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${s(u.reclaimable)}`
}),
- d.length ? /* @__PURE__ */ (0, R.jsxs)(Mk, {
+ d.length ? /* @__PURE__ */ (0, R.jsxs)(Mse, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, R.jsx)(Ik, {
+ /* @__PURE__ */ (0, R.jsx)(Tk, {
busy: o === "all:largest",
onPress: () => p({
groups: d,
@@ -34003,7 +34003,7 @@ function kse({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, R.jsx)(Ik, {
+ /* @__PURE__ */ (0, R.jsx)(Tk, {
busy: o === "all:longest",
onPress: () => p({
groups: d,
@@ -34012,7 +34012,7 @@ function kse({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- as(d, f).map((t) => /* @__PURE__ */ (0, R.jsx)(Ik, {
+ as(d, f).map((t) => /* @__PURE__ */ (0, R.jsx)(Tk, {
busy: o === `all:${t}`,
onPress: () => p({
groups: d,
@@ -34035,7 +34035,7 @@ function kse({ openItem: t, toast: n, failure: r }) {
let i = [n], a = (e) => `${r}:${e}`;
return /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": n.code,
- className: Ese,
+ className: Lse,
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -34047,9 +34047,9 @@ function kse({ openItem: t, toast: n, failure: r }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${s(n.reclaimable)}`
}),
- Dse(n),
+ Ak(n),
n.cross_drive ? /* @__PURE__ */ (0, R.jsx)("span", {
- className: `${Rk} text-text-secondary`,
+ className: `${Dk} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, R.jsxs)("span", {
@@ -34102,13 +34102,13 @@ function kse({ openItem: t, toast: n, failure: r }) {
]
})
]
- }), /* @__PURE__ */ (0, R.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, R.jsx)(Ose, {
+ }), /* @__PURE__ */ (0, R.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, R.jsx)(Rse, {
file: e,
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
}) : /* @__PURE__ */ (0, R.jsx)(Qi, {
- icon: Tse,
+ icon: Ise,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -34117,7 +34117,7 @@ function kse({ openItem: t, toast: n, failure: r }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-function Ase(e, t) {
+function Bse(e, t) {
if (!t.contains(e)) return null;
let n = 0, r = 0;
for (let i = e; i && i !== t; i = i.offsetParent) n += i.offsetLeft, r += i.offsetTop;
@@ -34133,11 +34133,11 @@ function Ase(e, t) {
h: e.offsetHeight
};
}
-function Vk(e, t, n, r) {
+function jk(e, t, n, r) {
let i = (0, L.useRef)(null), a = (0, L.useCallback)((r, a) => {
let o = e.current, s = t.current, c = o?.parentElement;
if (!o) return;
- let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? Ase(l, c) : null;
+ let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? Bse(l, c) : null;
if (!u || !u.w) {
o.hidden = !0;
return;
@@ -34175,33 +34175,33 @@ function Vk(e, t, n, r) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function Hk(e) {
- let t = xO("selection");
- return /* @__PURE__ */ (0, R.jsx)(QS, {
+function Mk(e) {
+ let t = fO("selection");
+ return /* @__PURE__ */ (0, R.jsx)(HS, {
...e,
ref: t
});
}
-function Uk(e) {
- let t = xO("selection");
- return /* @__PURE__ */ (0, R.jsx)(hx, {
+function Nk(e) {
+ let t = fO("selection");
+ return /* @__PURE__ */ (0, R.jsx)(dx, {
...e,
ref: t
});
}
-var Wk = "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", Gk = "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", jse = "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", Kk = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", qk = "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)", Mse = (e) => e === "videos", Jk = () => /* @__PURE__ */ (0, R.jsx)("span", {
+var Pk = "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", Fk = "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", Vse = "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", Ik = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", Lk = "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)", Hse = (e) => e === "videos", Rk = () => /* @__PURE__ */ (0, R.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function Nse(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Mse(t), u = (0, L.useRef)(null), d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(null), m = (0, L.useRef)(null), h = (0, L.useRef)(null), g = (0, L.useRef)(null), _ = Vk(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = Vk(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function Use(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Hse(t), u = (0, L.useRef)(null), d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(null), m = (0, L.useRef)(null), h = (0, L.useRef)(null), g = (0, L.useRef)(null), _ = jk(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = jk(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, L.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Yk, {
+ }, [c]), /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(zk, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, R.jsx)(Nk, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ck, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -34221,13 +34221,13 @@ function Nse(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [n ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Pse, {
+ top: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [n ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Wse, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, R.jsx)(Jk, {}) : null] }) : null, /* @__PURE__ */ (0, R.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, R.jsx)(Rk, {}) : null] }) : null, /* @__PURE__ */ (0, R.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
@@ -34247,11 +34247,11 @@ function Nse(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, R.jsx)(Jk, {})]
+ }, e.k)), /* @__PURE__ */ (0, R.jsx)(Rk, {})]
}), /* @__PURE__ */ (0, R.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, R.jsxs)(Fk, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, R.jsxs)(wk, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -34263,10 +34263,10 @@ function Nse(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, R.jsx)(Fse, { ...e })
+ bottom: /* @__PURE__ */ (0, R.jsx)(Gse, { ...e })
})] });
}
-function Pse({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Wse({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -34308,7 +34308,7 @@ function Pse({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function Yk({ items: e, hidden: t, actions: n }) {
+function zk({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -34328,7 +34328,7 @@ function Yk({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Fse(e) {
+function Gse(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, R.jsxs)("button", {
@@ -34340,22 +34340,22 @@ function Fse(e) {
dangerouslySetInnerHTML: { __html: l("chevron-left") }
}), /* @__PURE__ */ (0, R.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, R.jsx)(Ise, {
+ /* @__PURE__ */ (0, R.jsx)(Kse, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, R.jsx)(Lse, {
+ t === "videos" && i ? /* @__PURE__ */ (0, R.jsx)(qse, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, R.jsx)(Rse, {
+ t === "photos" && a ? /* @__PURE__ */ (0, R.jsx)(Jse, {
head: a,
actions: o,
helpers: s
}) : null
] });
}
-function Ise({ text: e, busy: t }) {
+function Kse({ text: e, busy: t }) {
return /* @__PURE__ */ (0, R.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, R.jsx)("span", {
@@ -34365,22 +34365,22 @@ function Ise({ text: e, busy: t }) {
}) : e
});
}
-function Xk({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, R.jsx)(hx, {
+function Bk({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, R.jsx)(dx, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: Kk,
+ className: Ik,
children: r.map(([e, t, n]) => {
let r = To(n);
- return /* @__PURE__ */ (0, R.jsx)(gx, {
+ return /* @__PURE__ */ (0, R.jsx)(fx, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: qk,
+ className: Lk,
children: /* @__PURE__ */ (0, R.jsx)("span", {
title: t,
className: "contents",
@@ -34390,7 +34390,7 @@ function Xk({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function Zk({ onPress: e, busy: t = !1 }) {
+function Vk({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -34404,25 +34404,25 @@ function Zk({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? ie("正在换一批") : l("shuffle") }
});
}
-function Lse({ head: e, actions: t }) {
+function qse({ head: e, actions: t }) {
return /* @__PURE__ */ (0, R.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, R.jsx)(Zk, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, R.jsx)(Xk, {
+ /* @__PURE__ */ (0, R.jsx)(Vk, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, R.jsx)(Bk, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, R.jsx)(Qk, {
+ /* @__PURE__ */ (0, R.jsx)(Hk, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function Qk({ sorts: e, onSort: t }) {
+function Hk({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: e.map((e) => {
let n = To(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, R.jsxs)("button", {
@@ -34436,20 +34436,20 @@ function Qk({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function Rse({ head: e, actions: t, helpers: n }) {
+function Jse({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, L.useState)(!1), a = (0, L.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, L.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, R.jsx)(Zk, {
+ e.shuffle ? /* @__PURE__ */ (0, R.jsx)(Vk, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, R.jsx)(Xk, {
+ /* @__PURE__ */ (0, R.jsx)(Bk, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -34465,34 +34465,34 @@ function Rse({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var $k = "";
-function zse(e) {
- let t = !e.tiers, n = Kse(e.comboHost);
+var Uk = "";
+function Yse(e) {
+ let t = !e.tiers, n = nce(e.comboHost);
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Re.createPortal)(/* @__PURE__ */ (0, R.jsx)(Yk, {
+ n ? (0, Re.createPortal)(/* @__PURE__ */ (0, R.jsx)(zk, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, R.jsx)(Hse, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, R.jsx)(Bse, { ...e })
+ /* @__PURE__ */ (0, R.jsx)(Qse, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, R.jsx)(Xse, { ...e })
]
});
}
-function Bse(e) {
- let { actions: t, helpers: n } = e, r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)(null), c = Vk(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function Xse(e) {
+ let { actions: t, helpers: n } = e, r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)(null), c = jk(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, L.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = tA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = Gk(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, L.useLayoutEffect)(() => {
j(o.current, "tagbar");
- }, [u]), /* @__PURE__ */ (0, R.jsx)(Nk, {
+ }, [u]), /* @__PURE__ */ (0, R.jsx)(Ck, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -34535,17 +34535,17 @@ function Bse(e) {
}), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, R.jsx)(eA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, R.jsx)(Vse, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, R.jsx)(Wk, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, R.jsx)(Zse, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, R.jsx)(Wse, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, R.jsx)(ece, { ...e })
});
}
-function Vse({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, R.jsxs)(Fk, {
+function Zse({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, R.jsxs)(wk, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -34556,12 +34556,12 @@ function Vse({ tag: e, onPress: t }) {
})]
});
}
-function Hse(e) {
+function Qse(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useCallback)((e) => () => t.moreTops(e), [t]), c = tA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = tA(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, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useCallback)((e) => () => t.moreTops(e), [t]), c = Gk(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = Gk(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, L.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -34574,7 +34574,7 @@ function Hse(e) {
children: [u ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, R.jsx)(eA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, R.jsx)(Wk, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -34591,18 +34591,18 @@ function Hse(e) {
}) : null, d ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, R.jsx)(eA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, R.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, R.jsx)(Wk, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, R.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, R.jsx)(Use, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, R.jsx)($se, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function Use({ studio: e }) {
+function $se({ studio: e }) {
let [t, n] = (0, L.useState)(!1);
return /* @__PURE__ */ (0, R.jsx)("span", {
"data-tier-mark": "",
@@ -34616,7 +34616,7 @@ function Use({ studio: e }) {
}) : e.fallback
});
}
-function eA({ kind: e }) {
+function Wk({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -34632,32 +34632,32 @@ function eA({ kind: e }) {
children: [/* @__PURE__ */ (0, R.jsx)("span", {}), /* @__PURE__ */ (0, R.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function Wse({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function ece({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, L.useState)(!1);
- return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Gse, { count: e }), /* @__PURE__ */ (0, R.jsxs)("span", {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(tce, { count: e }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, R.jsx)(Zk, {
+ /* @__PURE__ */ (0, R.jsx)(Vk, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, R.jsx)(Xk, {
+ n ? /* @__PURE__ */ (0, R.jsx)(Bk, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, R.jsx)(Qk, {
+ /* @__PURE__ */ (0, R.jsx)(Hk, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function Gse({ count: e }) {
+function tce({ count: e }) {
let t = (0, L.useRef)(null), n = (0, L.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
return (0, L.useLayoutEffect)(() => {
if (!e) {
@@ -34665,7 +34665,7 @@ function Gse({ count: e }) {
return;
}
let i = t.current;
- i && ($k && i.dataset.popCount === void 0 && (i.dataset.popCount = $k), $k = r, M(i, r));
+ i && (Uk && i.dataset.popCount === void 0 && (i.dataset.popCount = Uk), Uk = r, M(i, r));
}, [e, r]), e ? /* @__PURE__ */ (0, R.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -34681,7 +34681,7 @@ function Gse({ count: e }) {
})
}, "skeleton");
}
-function Kse(e) {
+function nce(e) {
let [t, n] = (0, L.useState)(null);
return (0, L.useLayoutEffect)(() => {
if (!e) return;
@@ -34691,7 +34691,7 @@ function Kse(e) {
};
}, [e]), t;
}
-function tA(e, t, n, r, i) {
+function Gk(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -34737,15 +34737,15 @@ function tA(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function nA({ value: e }) {
+function Kk({ value: e }) {
return /* @__PURE__ */ (0, R.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var rA = "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 iA({ tabs: e, value: t, label: n, onChange: r }) {
+var rce = "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 qk({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, L.useRef)(null), a = (0, L.useRef)(null);
return (0, L.useLayoutEffect)(() => {
let e = i.current;
@@ -34780,7 +34780,7 @@ function iA({ tabs: e, value: t, label: n, onChange: r }) {
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: rA,
+ className: rce,
onClick: () => {
i || r(e.value);
},
@@ -34796,21 +34796,21 @@ function iA({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/search/search.ts
-var aA = /* @__PURE__ */ new Set([
+var Jk = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), oA = /* @__PURE__ */ new Set(["asset"]), sA = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function cA({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+]), Yk = /* @__PURE__ */ new Set(["asset"]), Xk = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function ice({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
...e,
index: s++
};
return c.push(t), t;
- }, u = t.filter((t) => !e || sA(t).includes(sA(e)));
+ }, u = t.filter((t) => !e || Xk(t).includes(Xk(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -34848,7 +34848,7 @@ function cA({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a,
kind: e.kind,
item: t
}))
- }), h = p.filter((e) => !oA.has(e.kind)).map(m), g = p.filter((e) => oA.has(e.kind)).map(m);
+ }), h = p.filter((e) => !Yk.has(e.kind)).map(m), g = p.filter((e) => Yk.has(e.kind)).map(m);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -34857,17 +34857,17 @@ function cA({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a,
options: c
};
}
-function lA(e, t, n = Math.random) {
+function ace(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => sA(t) === sA(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => Xk(t) === Xk(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var uA = () => ({
+var oce = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -34882,7 +34882,7 @@ var uA = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), dA = (e) => cA({
+}), Zk = (e) => ice({
query: e.query,
history: e.history,
picks: e.picks,
@@ -34890,18 +34890,18 @@ var uA = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), qse = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), fA = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("svg", {
+}), sce = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), Qk = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
-function Jse(e) {
+function cce(e) {
let t = (0, L.useRef)(e);
t.current = e;
let n = (0, L.useRef)(null);
- n.current ??= uA();
+ n.current ??= oce();
let r = n.current, i = (0, L.useRef)(null), [, a] = (0, L.useReducer)((e) => e + 1, 0), o = (0, L.useRef)(null);
- o.current ??= Yse(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= lce(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, L.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -34914,7 +34914,7 @@ function Jse(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 = dA(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, R.jsx)(Zse, {
+ let c = Zk(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, R.jsx)(tA, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -34934,7 +34934,7 @@ function Jse(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, R.jsx)(Xse, {
+ c.tabs ? /* @__PURE__ */ (0, R.jsx)($k, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -34955,7 +34955,7 @@ function Jse(e) {
]
});
}
-function Yse(e, t, n, r) {
+function lce(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -34969,7 +34969,7 @@ function Yse(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) => sA(e) !== sA(t))]), U("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => Xk(e) !== Xk(t))]), U("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -35002,9 +35002,9 @@ function Yse(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, m = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : lA(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : ace(t.pool, o()), t.active = -1;
let a = n();
- a && (qse(dA(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (sce(Zk(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -35016,7 +35016,7 @@ function Yse(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() ? dA(t).options : [], v = (e) => {
+ }, _ = () => f() ? Zk(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) => {
@@ -35029,7 +35029,7 @@ function Yse(e, t, n, r) {
i().blur(), e().actions.openItem(t.item.id);
return;
}
- if (t.type === "suggest" && aA.has(t.kind)) {
+ if (t.type === "suggest" && Jk.has(t.kind)) {
b(t.kind, t.value);
return;
}
@@ -35081,12 +35081,12 @@ function Yse(e, t, n, r) {
await U("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => sA(t) !== sA(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => Xk(t) !== Xk(e))), t.active = -1, r();
},
pickKind: g
};
}
-function Xse({ tabs: e, kind: t, onPick: n, wire: r }) {
+function $k({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, L.useRef)(null);
(0, L.useLayoutEffect)(() => {
r(i.current);
@@ -35098,7 +35098,7 @@ function Xse({ tabs: e, kind: t, onPick: n, wire: r }) {
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, R.jsx)(nA, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, R.jsx)(Kk, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, R.jsxs)("div", {
ref: i,
@@ -35108,8 +35108,8 @@ function Xse({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var pA = (e) => e.preventDefault();
-function Zse({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var eA = (e) => e.preventDefault();
+function tA({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -35121,28 +35121,28 @@ function Zse({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, R.jsx)(fA, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, R.jsx)(Qk, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, R.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: pA,
+ onMouseDown: eA,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, R.jsx)(fA, { name: "x" })
+ children: /* @__PURE__ */ (0, R.jsx)(Qk, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = aA.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = Jk.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, R.jsx)(mA, {
+ children: [/* @__PURE__ */ (0, R.jsx)(nA, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, R.jsxs)("span", {
@@ -35168,7 +35168,7 @@ function Zse({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, R.jsx)(hA, {
+ /* @__PURE__ */ (0, R.jsx)(rA, {
item: s,
kind: c,
helpers: n
@@ -35189,11 +35189,11 @@ function Zse({ 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: pA,
+ onMouseDown: eA,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, R.jsx)(mA, {
+ children: /* @__PURE__ */ (0, R.jsx)(nA, {
card: e,
helpers: n
})
@@ -35207,7 +35207,7 @@ function Zse({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, R.jsx)(hA, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, R.jsx)(rA, {
item: s,
kind: c,
helpers: n
@@ -35221,13 +35221,13 @@ function Zse({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function mA({ card: e, helpers: t }) {
+function nA({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, R.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function hA({ item: e, kind: t, helpers: n }) {
+function rA({ item: e, kind: t, helpers: n }) {
return /* @__PURE__ */ (0, R.jsx)("span", {
"data-search-face": "",
"data-kind": t,
@@ -35235,8 +35235,45 @@ function hA({ item: e, kind: t, helpers: n }) {
});
}
//#endregion
+//#region src/react/feed-new/feed-new.ts
+var iA = (e) => ["feed-new", e ?? "home"], aA = 8, oA = 1500;
+function sA(e, t, n) {
+ let r = document.createElement("template");
+ r.innerHTML = e;
+ let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
+ let t = new Image();
+ return t.referrerPolicy = e.getAttribute("referrerpolicy") || "", t.src = e.getAttribute("src") || "", t.decode().catch(() => {});
+ });
+ return Promise.race([Promise.all(i), new Promise((e) => {
+ setTimeout(e, n);
+ })]);
+}
+async function cA(e, n, r) {
+ let i = new URLSearchParams({ limit: "12" });
+ e && i.set("entity", String(e));
+ let a = await t(`/api/feeds/discoveries?${i}`).catch(() => null), o = a && !a.error ? a : null, s = o?.items || [], c = n(o);
+ return r && s.length && await sA(c, aA, oA), {
+ items: s,
+ html: c
+ };
+}
+var lA = (e, t, n = !1) => ({
+ queryKey: iA(e),
+ queryFn: () => cA(e, t, n),
+ staleTime: Infinity
+}), uA = (e, n) => t("/api/feeds/discovery", {
+ method: "POST",
+ body: JSON.stringify({
+ action: n,
+ ids: [e]
+ })
+}).then(() => void 0, () => void 0);
+async function uce(e) {
+ K.removeQueries({ queryKey: iA(null) }), await K.fetchQuery(lA(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+}
+//#endregion
//#region src/react/entity-page/entity-page.ts
-var Qse = [
+var dce = [
"loc",
"creator",
"tag",
@@ -35246,78 +35283,52 @@ var Qse = [
"orient",
"sort",
"dir"
-], gA = {
+], dA = {
media: "videos",
set: 0
-}, _A = (e, t) => [
+}, fA = (e, t) => [
"entity",
e,
t
-], vA = (e) => ["feed-new", e], $se = (e, t, n, r) => [
+], fce = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], yA = (e, t, n, r) => [
+], pA = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], bA = (e) => String(e || "").split(",").filter(Boolean), ece = (e, t) => bA(e).includes(t);
-function xA(e, t, n, r, i = 0) {
+], mA = (e) => String(e || "").split(",").filter(Boolean), pce = (e, t) => mA(e).includes(t);
+function hA(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 Qse) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of dce) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function SA(e, n, r, i, a, o, s) {
- let c = await t(`/api/items?${xA(e, n, r, i, a)}`, s ? { signal: s } : {});
+async function gA(e, n, r, i, a, o, s) {
+ let c = await t(`/api/items?${hA(e, n, r, i, a)}`, s ? { signal: s } : {});
return o(c.items || []), c;
}
-var CA = (e) => {
+var _A = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = xA(e.kind, e.name, e.filters, t).toString();
+ }, n = hA(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: $se(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => SA(e.kind, e.name, e.filters, t, 0, e.cache, n),
+ queryKey: fce(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => gA(e.kind, e.name, e.filters, t, 0, e.cache, n),
staleTime: Infinity
};
-}, wA = (e, n) => ({
- queryKey: _A(e, n),
+}, vA = (e, n) => ({
+ queryKey: fA(e, n),
queryFn: ({ signal: r }) => t(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(n)}`, { signal: r }),
staleTime: Infinity
-}), tce = 8, nce = 1500;
-function rce(e, t, n) {
- let r = document.createElement("template");
- r.innerHTML = e;
- let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
- let t = new Image();
- return t.referrerPolicy = e.getAttribute("referrerpolicy") || "", t.src = e.getAttribute("src") || "", t.decode().catch(() => {});
- });
- return Promise.race([Promise.all(i), new Promise((e) => {
- setTimeout(e, n);
- })]);
-}
-async function ice(e, n, r) {
- let i = await t(`/api/feeds/discoveries?${new URLSearchParams({
- limit: "12",
- entity: String(e)
- })}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = n(a);
- return r && o.length && await rce(s, tce, nce), {
- items: o,
- html: s
- };
-}
-var TA = (e, t, n = !1) => ({
- queryKey: vA(e),
- queryFn: () => ice(e, t, n),
- staleTime: Infinity
});
-function ace(e, t, n, r, i, a) {
+function mce(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)}` : ""}`;
@@ -35326,10 +35337,10 @@ function ace(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 EA = (e, n, r, i) => ({
- queryKey: yA(e, n, r, i),
+var yA = (e, n, r, i) => ({
+ queryKey: pA(e, n, r, i),
queryFn: async ({ pageParam: a }) => {
- let o = await t(ace(e, n, r, i, a?.offset || 0, a?.seed || "")).catch((e) => {
+ let o = await t(mce(e, n, r, i, a?.offset || 0, a?.seed || "")).catch((e) => {
if (a) throw e;
return { error: String(e) };
});
@@ -35342,8 +35353,8 @@ var EA = (e, n, r, i) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), DA = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function oce(e) {
+}), bA = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function hce(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -35355,51 +35366,51 @@ async function oce(e) {
n
] });
await Promise.all([
- K.fetchQuery(wA(t, n)).then((t) => !t || t.error || !t.id ? null : (K.removeQueries({ queryKey: vA(Number(t.id)) }), K.fetchQuery(TA(Number(t.id), e.helpers.feedRowHtml, !0)))),
- K.fetchQuery(CA(e)),
- K.fetchInfiniteQuery(EA(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? K.fetchInfiniteQuery(EA(t, n, e.media.set, "")) : null
+ K.fetchQuery(vA(t, n)).then((t) => !t || t.error || !t.id ? null : (K.removeQueries({ queryKey: iA(Number(t.id)) }), K.fetchQuery(lA(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ K.fetchQuery(_A(e)),
+ K.fetchInfiniteQuery(yA(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? K.fetchInfiniteQuery(yA(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var sce = "/api/follow/authors", cce = "/api/follow/tags", lce = (e) => [
+var gce = "/api/follow/authors", _ce = "/api/follow/tags", vce = (e) => [
"follow",
"authors",
e
-], uce = (e, t) => [
+], yce = (e, t) => [
"follow",
"tags",
e,
t
];
-function dce(e, t, n) {
+function bce(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${sce}?${r}`;
+ return e && r.set("q", e), `${gce}?${r}`;
}
-function fce(e, t, n, r) {
+function xce(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), `${cce}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${_ce}?${i}`;
}
-var pce = (e, t, n, r) => Hi(dce(e, t, n), r), mce = (e, t, n, r, i) => Hi(fce(e, t, n, r), i), hce = "/api/index", OA = {
+var Sce = (e, t, n, r) => Hi(bce(e, t, n), r), Cce = (e, t, n, r, i) => Hi(xce(e, t, n, r), i), wce = "/api/index", xA = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, gce = {
+}, Tce = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, kA = [
+}, SA = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -35409,26 +35420,26 @@ var pce = (e, t, n, r) => Hi(dce(e, t, n), r), mce = (e, t, n, r, i) => Hi(fce(e
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], AA = [
+], CA = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], jA = {
+], wA = {
people: 120,
tags: 180
-}, MA = (e) => e !== "tags", NA = (e) => e === "studios" || e === "agencies";
-function PA(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? AA : kA).some(([t]) => t === e.category);
+}, TA = (e) => e !== "tags", EA = (e) => e === "studios" || e === "agencies";
+function DA(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? CA : SA).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function FA(e) {
+function OA(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -35447,50 +35458,50 @@ function FA(e) {
q: n
};
}
-var IA = (e, t, n = "all") => [
+var kA = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function LA(e, t, n, r, i) {
+function AA(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), `${hce}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${wce}?${a}`;
}
-function RA(e) {
- let t = e.what === "people" || e.what === "online-authors" ? jA.people : jA.tags, n = {
+function jA(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? wA.people : wA.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: IA(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => Hi(LA(e.kind, e.q, "all", t, n), r)
+ queryKey: kA(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Hi(AA(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: IA("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Hi(LA("tags", e.q, e.category, t, n), r)
+ queryKey: kA("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Hi(AA("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: lce(e.q),
- queryFn: ({ pageParam: n, signal: r }) => pce(e.q, t, n, r)
+ queryKey: vce(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Sce(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: uce(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => mce(e.q, e.category, t, n, r)
+ queryKey: yce(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Cce(e.q, e.category, t, n, r)
};
}
}
-async function _ce(e, t) {
- let n = RA(FA(PA(e)));
+async function Ece(e, t) {
+ let n = jA(OA(DA(e)));
K.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -35504,13 +35515,13 @@ async function _ce(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var vce = (e) => e ? e.pages.flatMap((e) => e.items) : [], yce = (e, t) => `${e}${t ? "+" : ""} 项`, zA = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", bce = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), xce = {
+var Dce = (e) => e ? e.pages.flatMap((e) => e.items) : [], Oce = (e, t) => `${e}${t ? "+" : ""} 项`, MA = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", kce = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Ace = {
numeric: !0,
sensitivity: "base"
};
-function Sce(e, t) {
+function jce(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", xce))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Ace))) {
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]);
}
@@ -35518,7 +35529,7 @@ function Sce(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function BA({ html: e, face: t, company: n, big: r }) {
+function NA({ html: e, face: t, company: n, big: r }) {
let i = (0, L.useRef)(null);
return (0, L.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -35530,8 +35541,8 @@ function BA({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Cce = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function VA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var Mce = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function PA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
...a,
@@ -35541,7 +35552,7 @@ function VA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Cce} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Mce} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -35558,8 +35569,8 @@ function VA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function HA({ kind: e, items: t, layout: n, props: r }) {
- let i = gce[e], a = NA(e), o = n === "big";
+function FA({ kind: e, items: t, layout: n, props: r }) {
+ let i = Tce[e], a = EA(e), o = n === "big";
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -35567,14 +35578,14 @@ function HA({ 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, R.jsx)(VA, {
+ return /* @__PURE__ */ (0, R.jsx)(PA, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: bce(e, t),
+ readout: kce(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, R.jsx)(BA, {
+ children: /* @__PURE__ */ (0, R.jsx)(NA, {
html: n.html,
face: n.face,
company: a,
@@ -35584,21 +35595,21 @@ function HA({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function wce({ items: e, layout: t, props: n }) {
+function Nce({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, R.jsx)(VA, {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsx)(PA, {
"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, R.jsx)(BA, {
+ children: /* @__PURE__ */ (0, R.jsx)(NA, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -35608,7 +35619,7 @@ function wce({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function Tce(e) {
+function Pce(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}%`);
let a = e.closest(".dual-range");
@@ -35620,8 +35631,8 @@ function Tce(e) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var UA = "/vendor/swiper/14.2.0/", WA = null, Ece = () => WA ??= Promise.all([new Promise((e, t) => {
- let n = `${UA}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var IA = "/vendor/swiper/14.2.0/", LA = null, Fce = () => LA ??= Promise.all([new Promise((e, t) => {
+ let n = `${IA}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -35635,11 +35646,11 @@ var UA = "/vendor/swiper/14.2.0/", WA = null, Ece = () => WA ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${UA}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${IA}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 WA = null, e;
+ throw LA = null, e;
});
-function Dce(e, t, n) {
+function Ice(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);
@@ -35660,48 +35671,48 @@ function Dce(e, t, n) {
}
};
}
-var GA = (e) => {
+var RA = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : s(t)).replace(" ", "\xA0") : "大小未知";
-}, Oce = (e) => e.asset?.name || e.name || "未命名图片";
-function kce(t, n) {
+}, Lce = (e) => e.asset?.name || e.name || "未命名图片";
+function Rce(t, n) {
let r = t.asset;
- if (r) return [e[r.location ?? ""] || r.location || "来源未知", GA(r.size)].join(" · ");
+ if (r) return [e[r.location ?? ""] || r.location || "来源未知", RA(r.size)].join(" · ");
let i = (t.total ?? 0) > 1 ? `第 ${t.position} / ${t.total} 张` : "", a = n?.[0] && n[1] ? `${n[0]} × ${n[1]}` : "";
return [
t.source || "在线图片",
i,
a,
- t.size ? GA(t.size) : ""
+ t.size ? RA(t.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var KA = null, qA = null, Ace = 0;
-function jce() {
- return (!qA || !KA?.isConnected) && (qA?.unmount(), KA = document.createElement("div"), KA.className = "peach-react", KA.dataset.photoLightboxHost = "", document.body.append(KA), qA = (0, ze.createRoot)(KA)), qA;
+var zA = null, BA = null, zce = 0;
+function Bce() {
+ return (!BA || !zA?.isConnected) && (BA?.unmount(), zA = document.createElement("div"), zA.className = "peach-react", zA.dataset.photoLightboxHost = "", document.body.append(zA), BA = (0, ze.createRoot)(zA)), BA;
}
-async function JA(e, t, n) {
+async function VA(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await Ece();
+ r = await Fce();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = jce();
- (0, Re.flushSync)(() => i.render(/* @__PURE__ */ (0, R.jsx)(Mce, {
+ let i = Bce();
+ (0, Re.flushSync)(() => i.render(/* @__PURE__ */ (0, R.jsx)(Vce, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++Ace)));
+ }, ++zce)));
}
-function YA() {
- qA && (0, Re.flushSync)(() => qA.render(null));
+function HA() {
+ BA && (0, Re.flushSync)(() => BA.render(null));
}
-function Mce({ slides: e, index: t, Swiper: n, host: r }) {
+function Vce({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, L.useId)(), o = (0, L.useRef)(null), s = (0, L.useRef)(null), c = (0, L.useRef)(null), u = (0, L.useRef)(null), d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(null), m = (0, L.useRef)(null), h = (0, L.useRef)(null), g = (0, L.useRef)(null), _ = (0, L.useRef)(null), [v, y] = (0, L.useState)(t), [b, x] = (0, L.useState)(100), [S, C] = (0, L.useState)({}), [w, T] = (0, L.useState)(() => /* @__PURE__ */ new Set()), [E, D] = (0, L.useState)(!1), [O, k] = (0, L.useState)({
at: t,
text: ""
@@ -35744,7 +35755,7 @@ function Mce({ slides: e, index: t, Swiper: n, host: r }) {
y(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), g.current = Dce(e, a, x);
+ i(t, 0), g.current = Ice(e, a, x);
let l = oe(e, p.current, m.current), h = (e = !1) => {
l.hide(), p.current?.setAttribute("aria-expanded", "false"), e && p.current && document.contains(p.current) && p.current.focus();
};
@@ -35761,13 +35772,13 @@ function Mce({ slides: e, index: t, Swiper: n, host: r }) {
});
v.observe(e);
let b = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : YA());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : HA());
};
return document.addEventListener("keydown", b, !0), () => {
document.removeEventListener("keydown", b, !0), h(), v.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), g.current = null, _.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, L.useLayoutEffect)(() => {
- h.current && Tce(h.current);
+ h.current && Pce(h.current);
}, [b]);
let A = e[v], j = A.asset ?? null, M = async (e) => {
if (!j || !r || e.getAttribute("aria-busy") === "true") return;
@@ -35798,18 +35809,18 @@ function Mce({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), YA();
+ e.preventDefault(), HA();
},
onClick: (e) => {
let t = e.target;
- _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && YA();
+ _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && HA();
},
children: [
/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: YA,
+ onClick: HA,
dangerouslySetInnerHTML: { __html: l("x") }
}),
/* @__PURE__ */ (0, R.jsxs)("div", {
@@ -35942,10 +35953,10 @@ function Mce({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Oce(A)
+ children: Lce(A)
}, v), /* @__PURE__ */ (0, R.jsx)("span", {
"data-photo-detail-meta": "",
- children: kce(A, S[v])
+ children: Rce(A, S[v])
})]
}),
/* @__PURE__ */ (0, R.jsx)("button", {
@@ -35984,28 +35995,28 @@ function Mce({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function Nce(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, R.jsx)(Pce, {
+function Hce(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, R.jsx)(Uce, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, R.jsx)(Fce, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, R.jsx)(Rce, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, R.jsx)(Wce, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, R.jsx)(qce, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function Pce({ roster: e, props: t }) {
+function Uce({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, L.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, R.jsx)(HA, {
+ return /* @__PURE__ */ (0, R.jsx)(FA, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function Fce(e) {
+function Wce(e) {
let t = no(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-grid": "",
@@ -36030,16 +36041,16 @@ function Fce(e) {
}) : null]
});
}
-var Ice = (e) => Array.from({ length: e.n }, (t, n) => ({
+var Gce = (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 || "官方样张"
-})), XA = (e) => e.sample === !0, ZA = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, QA = (e) => XA(e) ? `/sample-thumb?${ZA(e)}` : `/photo-thumb?id=${e.id}`, Lce = (e) => XA(e) ? {
- src: `/sample-image?${ZA(e)}`,
- thumb: QA(e),
+})), UA = (e) => e.sample === !0, WA = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, GA = (e) => UA(e) ? `/sample-thumb?${WA(e)}` : `/photo-thumb?id=${e.id}`, Kce = (e) => UA(e) ? {
+ src: `/sample-image?${WA(e)}`,
+ thumb: GA(e),
name: e.name,
asset: null,
source: e.source,
@@ -36047,18 +36058,18 @@ var Ice = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: QA(e),
+ thumb: GA(e),
name: e.name || "",
asset: e
};
-function Rce({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, L.useMemo)(() => [...e.codeSets.flatMap(Ice), ...e.items], [e]), [s, c] = (0, L.useState)(() => /* @__PURE__ */ new Set()), l = (0, L.useCallback)((e) => c((t) => {
+function qce({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, L.useMemo)(() => [...e.codeSets.flatMap(Gce), ...e.items], [e]), [s, c] = (0, L.useState)(() => /* @__PURE__ */ new Set()), l = (0, L.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, L.useCallback)((e) => {
- JA(e, o.map(Lce), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, R.jsx)(zce, {
+ VA(e, o.map(Kce), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, R.jsx)(Jce, {
item: e,
index: t,
lost: s.has(t),
@@ -36076,7 +36087,7 @@ function Rce({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, R.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)($A, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, R.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(KA, {
label: e.code,
title: e.name,
meta: [
@@ -36088,7 +36099,7 @@ function Rce({ 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, R.jsx)($A, {
+ m.length && e.total ? /* @__PURE__ */ (0, R.jsx)(KA, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -36104,7 +36115,7 @@ function Rce({ photos: e, props: t }) {
}, e.items.length) : null
] });
}
-function $A({ label: e, title: t, meta: n }) {
+function KA({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -36121,7 +36132,7 @@ function $A({ label: e, title: t, meta: n }) {
]
});
}
-function zce({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function Jce({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
@@ -36130,7 +36141,7 @@ function zce({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, R.jsx)("img", {
- src: QA(e),
+ src: GA(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -36139,7 +36150,7 @@ function zce({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
})
});
}
-function ej(e) {
+function qA(e) {
return {
x0: 0,
y0: 0,
@@ -36147,7 +36158,7 @@ function ej(e) {
y1: e.height
};
}
-function tj(e) {
+function JA(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -36155,40 +36166,40 @@ function tj(e) {
y1: Math.round(e.y1)
};
}
-function nj(e) {
+function YA(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function rj(e, t) {
- if (!nj(e)) return {
+function XA(e, t) {
+ if (!YA(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return ej(e);
+ if (t == null || !(t > 0)) return qA(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 tj({
+ return JA({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function Bce(e, t) {
- if (!nj(e) || !(t > 0)) return ej(e);
+function Yce(e, t) {
+ if (!YA(e) || !(t > 0)) return qA(e);
let n = Math.min(e.width, e.height * t);
- return tj({
+ return JA({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function Vce(e, t, n) {
- if (!nj(t) || !(n > 0)) return ej(t);
- let r = ij(e, t), i = rj({
+function Xce(e, t, n) {
+ if (!YA(t) || !(n > 0)) return qA(t);
+ let r = ZA(e, t), i = XA({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -36199,8 +36210,8 @@ function Vce(e, t, n) {
y1: r.y0 + i.y1
};
}
-function ij(e, t, n = null, r = "width") {
- if (!nj(t)) return {
+function ZA(e, t, n = null, r = "width") {
+ if (!YA(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -36209,43 +36220,43 @@ function ij(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 tj({
+ return JA({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function aj(e, t, n, r) {
+function QA(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 tj({
+ return JA({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function oj(e, t, n, r = null) {
- if (!nj(n) || !(t > 0)) return e;
+function $A(e, t, n, r = null) {
+ if (!YA(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 ij({
+ return ZA({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function sj(e, t, n, r, i = null) {
+function Zce(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 ij(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return ZA(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function cj(e, t) {
- return nj(t) ? {
+function Qce(e, t) {
+ return YA(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -36257,8 +36268,8 @@ function cj(e, t) {
height: 0
};
}
-function lj(e, t) {
- if (!nj(t)) return {
+function $ce(e, t) {
+ if (!YA(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -36268,7 +36279,7 @@ function lj(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function uj(e, t) {
+function ele(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}%`,
@@ -36277,29 +36288,29 @@ function uj(e, t) {
height: `${t.height / r * 100}%`
};
}
-function dj(e, t, n) {
+function ej(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var fj = {
+var tle = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function pj({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+function tj({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = vf();
- return /* @__PURE__ */ (0, R.jsx)(dx, {
+ return /* @__PURE__ */ (0, R.jsx)(sx, {
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, R.jsx)(Nte, {
+ children: /* @__PURE__ */ (0, R.jsx)(Lte, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${fj[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, R.jsx)(Cb, {
+ className: `flex max-h-full w-full ${tle[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, R.jsx)(bb, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -36307,7 +36318,7 @@ function pj({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function mj({ children: e }) {
+function nj({ children: e }) {
return /* @__PURE__ */ (0, R.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",
@@ -36316,8 +36327,8 @@ function mj({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var hj = .02, gj = 1.08;
-function _j({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var nle = .02, rj = 1.08;
+function ij({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, L.useRef)(null), c = (0, L.useRef)(null), [l, u] = (0, L.useState)(!1);
(0, L.useEffect)(() => {
u(!1);
@@ -36328,8 +36339,8 @@ function _j({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: dj(e, n.clientWidth, r.width),
- dy: dj(t, n.clientHeight, r.height)
+ dx: ej(e, n.clientWidth, r.width),
+ dy: ej(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -36347,29 +36358,29 @@ function _j({ 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(aj(n.box, o.dx, o.dy, r));
+ i(QA(n.box, o.dx, o.dy, r));
return;
}
- i(sj(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(Zce(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) * hj), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * nle), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(aj(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(QA(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(oj(n, e.key === "-" ? 1 / gj : gj, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i($A(n, e.key === "-" ? 1 / rj : rj, r, t)));
}
- let g = n && r ? cj(ij(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? Qce(ZA(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -36388,7 +36399,7 @@ function _j({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- nj({
+ YA({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -36427,7 +36438,7 @@ function _j({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(oj(n, e.deltaY > 0 ? gj : 1 / gj, r, t));
+ !n || !r || i($A(n, e.deltaY > 0 ? rj : 1 / rj, 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, R.jsx)("span", {
@@ -36449,29 +36460,29 @@ function _j({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var vj = "/api/avatar-choices", yj = "/api/avatar-pick", bj = "/api/avatar-code-cover", xj = "/avatar-choice", Sj = (e, t) => [
+var rle = "/api/avatar-choices", aj = "/api/avatar-pick", ile = "/api/avatar-code-cover", ale = "/avatar-choice", oj = (e, t) => [
"avatar-choices",
e,
t
-], Cj = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, wj = (e, t, n) => `${xj}${Cj(e, t)}&ref=${encodeURIComponent(n)}`, Tj = (e, t, n) => Hi(vj + Cj(e, t), n), Ej = (e) => U(bj, { code: e });
-function Dj(e, t, n) {
+], sj = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, cj = (e, t, n) => `${ale}${sj(e, t)}&ref=${encodeURIComponent(n)}`, lj = (e, t, n) => Hi(rle + sj(e, t), n), uj = (e) => U(ile, { code: e });
+function dj(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? Vce(e.focus, t, n) : rj(t, n);
+ return e.focus && r ? Xce(e.focus, t, n) : XA(t, n);
}
-var Oj = (e) => e.crop && nj({
+var fj = (e) => e.crop && YA({
width: e.width,
height: e.height
});
-async function kj(e, t, n) {
+async function pj(e, t, n) {
if (!("file" in n)) {
- await U(yj, {
+ await U(aj, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${yj}${Cj(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${aj}${sj(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
@@ -36480,30 +36491,30 @@ async function kj(e, t, n) {
let a = await i.json().catch(() => null);
throw new Bi(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function Aj(e, t) {
+function mj(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 jj = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Mj(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${jj(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var hj = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function gj(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${hj(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var Nj = (e) => e.cast > 1, Pj = (e) => Nj(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Fj = {
+var _j = (e) => e.cast > 1, vj = (e) => _j(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, yj = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function Ij(e) {
+function bj(e) {
if (e.startsWith("cover:")) return "封面";
let t = e.split(":")[2] || "";
if (t === "cover") return "封面";
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var Lj = (e) => `${Fj[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (Nj(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Rj = 8, zj = 3 / 4;
-function Bj({ kind: e, entityId: t, name: n, onPicked: r }) {
+var xj = (e) => `${yj[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (_j(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Sj = 8, Cj = 3 / 4;
+function wj({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, L.useState)(!1);
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -36518,12 +36529,12 @@ function Bj({ kind: e, entityId: t, name: n, onPicked: r }) {
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, R.jsx)(pj, {
+ }), /* @__PURE__ */ (0, R.jsx)(tj, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, R.jsx)(Vj, {
+ children: /* @__PURE__ */ (0, R.jsx)(Tj, {
kind: e,
entityId: t,
name: n,
@@ -36532,33 +36543,33 @@ function Bj({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function Vj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, L.useRef)(null), o = NO(), [s, c] = (0, L.useState)(""), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)(null), h = Sj(e, t), g = (0, L.useRef)(!1), _ = Zn({
+function Tj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, L.useRef)(null), o = wO(), [s, c] = (0, L.useState)(""), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)(null), h = oj(e, t), g = (0, L.useRef)(!1), _ = Zn({
queryKey: h,
- queryFn: ({ signal: n }) => Tj(e, t, n),
+ queryFn: ({ signal: n }) => lj(e, t, n),
retryOnMount: !0
});
(0, L.useEffect)(() => () => {
- g.current && K.removeQueries({ queryKey: Sj(e, t) });
+ g.current && K.removeQueries({ queryKey: oj(e, t) });
}, [e, t]);
let v = Qn({
- mutationFn: (n) => kj(e, t, n),
+ mutationFn: (n) => pj(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), y = Qn({
- mutationFn: (e) => Ej(e),
+ mutationFn: (e) => uj(e),
onSuccess: (e) => m(e)
});
function b(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && v.mutate({ file: n });
}
- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? H(v.error) : "") || (!p && y.error ? H(y.error) : "") || (_.error ? H(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Mj(x);
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? H(v.error) : "") || (!p && y.error ? H(y.error) : "") || (_.error ? H(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : gj(x);
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, R.jsx)(mj, { children: /* @__PURE__ */ (0, R.jsx)(bt, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, R.jsx)(nj, { children: /* @__PURE__ */ (0, R.jsx)(bt, { className: "size-6" }) }),
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -36575,7 +36586,7 @@ function Vj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? Pj(p) : Aj(n, x)
+ children: p ? vj(p) : mj(n, x)
}),
T ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "neutral",
@@ -36587,14 +36598,14 @@ function Vj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, R.jsx)(FO, {
+ /* @__PURE__ */ (0, R.jsx)(EO, {
icon: Ye,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, R.jsx)(Uce, {
+ }), p ? /* @__PURE__ */ (0, R.jsx)(Dj, {
kind: e,
entityId: t,
choice: p,
@@ -36617,7 +36628,7 @@ function Vj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": _.isPending || void 0,
"data-skeleton": _.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: Rj }, (e, t) => /* @__PURE__ */ (0, R.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: Sj }, (e, t) => /* @__PURE__ */ (0, R.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -36630,15 +36641,15 @@ function Vj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Lj(n),
+ title: xj(n),
...G(w),
onClick: () => {
w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, R.jsx)(Hce, {
- src: wj(e, t, n.ref),
+ /* @__PURE__ */ (0, R.jsx)(Ej, {
+ src: cj(e, t, n.ref),
choice: n
}),
/* @__PURE__ */ (0, R.jsx)("span", {
@@ -36653,7 +36664,7 @@ function Vj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: "在用"
})
}) : null,
- Nj(n) ? /* @__PURE__ */ (0, R.jsx)("span", {
+ _j(n) ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "absolute top-1 right-1",
children: /* @__PURE__ */ (0, R.jsxs)(Li, {
variant: "caption",
@@ -36674,7 +36685,7 @@ function Vj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, R.jsx)(Sk, {
+ children: /* @__PURE__ */ (0, R.jsx)(pk, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -36709,7 +36720,7 @@ function Vj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, R.jsx)(Sk, {
+ children: /* @__PURE__ */ (0, R.jsx)(pk, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -36729,7 +36740,7 @@ function Vj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function Hce({ src: e, choice: t }) {
+function Ej({ src: e, choice: t }) {
let n = (0, L.useRef)(null), [r, i] = (0, L.useState)(!1);
(0, L.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -36737,7 +36748,7 @@ function Hce({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = Oj(t) ? uj(Dj(t, a, zj), a) : null, s = r ? !0 : void 0;
+ }, o = fj(t) ? ele(dj(t, a, Cj), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, R.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, R.jsx)("img", {
@@ -36762,23 +36773,23 @@ function Hce({ src: e, choice: t }) {
})]
});
}
-function Uce({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, L.useState)(o[0]), [l, u] = (0, L.useState)(null), [d, f] = (0, L.useState)(null), p = wj(e, t, s), m = NO();
+function Dj({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, L.useState)(o[0]), [l, u] = (0, L.useState)(null), [d, f] = (0, L.useState)(null), p = cj(e, t, s), m = wO();
function h(e) {
c(e), u(null), f(null);
}
- let g = d && l ? lj(d, l) : null;
+ let g = d && l ? $ce(d, l) : null;
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
ref: m,
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, R.jsx)(_j, {
+ children: [/* @__PURE__ */ (0, R.jsx)(ij, {
src: p,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), nj(e) && f(s === n.ref ? Dj(n, e, 1) : rj(e, 1));
+ u(e), YA(e) && f(s === n.ref ? dj(n, e, 1) : XA(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, R.jsx)("div", {
@@ -36792,7 +36803,7 @@ function Uce({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => h(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: Ij(e)
+ children: bj(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, R.jsxs)("div", {
@@ -36825,13 +36836,42 @@ function Uce({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
})] });
}
//#endregion
+//#region src/react/feed-new/feed-new-row.tsx
+function Oj({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, L.useRef)(null), o = e?.items.length ? e.html : "";
+ (0, L.useLayoutEffect)(() => {
+ t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);
+ }, [
+ t,
+ o,
+ e,
+ i
+ ]), (0, L.useEffect)(() => {
+ o && n(a.current?.querySelector(".feednewrow") ?? null);
+ }, [n, o]);
+ let s = async (e) => {
+ let n = e.target.closest("[data-feed-action]"), o = n?.closest("[data-feed-id]");
+ if (!n || !o) return;
+ let s = n.dataset.feedAction || "";
+ await r(Number(o.dataset.feedId), s), s === "ignore" ? o.remove() : o.classList.add("isread"), a.current?.querySelector("[data-feed-id]") || (t.hidden = !0, i?.(!1));
+ };
+ return o ? /* @__PURE__ */ (0, R.jsx)("div", {
+ ref: a,
+ className: "contents",
+ onClick: (e) => {
+ s(e);
+ },
+ dangerouslySetInnerHTML: { __html: o }
+ }) : null;
+}
+//#endregion
//#region src/react/entity-hero/glyph.tsx
-var Wce = {
+var kj = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function Hj({ name: e }) {
- let t = Wce[e];
+function Aj({ name: e }) {
+ let t = kj[e];
return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -36841,19 +36881,19 @@ function Hj({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function Uj(e, t) {
+function jj(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 Wj = (e) => !!e?.isConnected && e.matches(":popover-open");
-function Gj(e, t, n, r) {
+var Mj = (e) => !!e?.isConnected && e.matches(":popover-open");
+function Nj(e, t, n, r) {
let i = (0, L.useRef)(r);
i.current = r, (0, L.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && Wj(n.current) ? Uj(t.current, n.current) : i.current();
+ t.current && Mj(n.current) ? jj(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -36867,17 +36907,17 @@ function Gj(e, t, n, r) {
n
]);
}
-function Kj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function Pj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, L.useRef)(null), s = (0, L.useRef)(null), [c, l] = (0, L.useState)(!1), u = (0, L.useRef)(!1), d = (0, L.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, Wj(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, Mj(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || Wj(s.current)) && (s.current.showPopover(), Uj(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || Mj(s.current)) && (s.current.showPopover(), jj(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 Gj(c, o, s, f), (0, L.useEffect)(() => {
+ return Nj(c, o, s, f), (0, L.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -36903,7 +36943,7 @@ function Kj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && Wj(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && Mj(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, R.jsxs)("div", {
@@ -36921,16 +36961,16 @@ function Kj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function Gce({ following: e, busy: t, onToggle: n, tip: r }) {
+function Fj({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(null), [s, c] = (0, L.useState)(!1), l = (0, L.useRef)(!1), u = () => {
- Wj(o.current) && o.current.hidePopover(), c(!1);
+ Mj(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || Wj(o.current) || (o.current.showPopover(), Uj(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || Mj(o.current) || (o.current.showPopover(), jj(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return Gj(s, i, o, () => c(!1)), (0, L.useEffect)(() => {
- i.current && Wj(o.current) && Uj(i.current, o.current);
+ return Nj(s, i, o, () => c(!1)), (0, L.useEffect)(() => {
+ i.current && Mj(o.current) && jj(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, R.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -36939,7 +36979,7 @@ function Gce({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, R.jsx)(Hj, { name: "rss" }),
+ /* @__PURE__ */ (0, R.jsx)(Aj, { name: "rss" }),
/* @__PURE__ */ (0, R.jsx)("input", {
ref: a,
type: "checkbox",
@@ -36974,29 +37014,29 @@ function Gce({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function Kce({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function Ij({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, L.useState)(!1), o = (0, L.useRef)(null);
return (0, L.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, R.jsxs)(yte, {
+ }, []), /* @__PURE__ */ (0, R.jsxs)(bte, {
isOpen: i,
onOpenChange: a,
children: [/* @__PURE__ */ (0, R.jsx)(lh, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, R.jsx)(Hj, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, R.jsx)(Ty, {
+ children: /* @__PURE__ */ (0, R.jsx)(Aj, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, R.jsx)(Ey, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: TO,
+ className: gO,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, R.jsxs)(xte, {
+ children: /* @__PURE__ */ (0, R.jsxs)(Ste, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, R.jsx)(_b, {
+ /* @__PURE__ */ (0, R.jsx)(gb, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -37004,31 +37044,31 @@ function Kce({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, R.jsxs)(yb, {
+ children: t.map((e) => /* @__PURE__ */ (0, R.jsxs)(vb, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, R.jsx)(Hj, { name: "check" }), /* @__PURE__ */ (0, R.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, R.jsx)(Aj, { name: "check" }), /* @__PURE__ */ (0, R.jsx)("span", { children: e })]
}, e))
}),
/* @__PURE__ */ (0, R.jsx)(uee, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, R.jsx)(_b, { children: /* @__PURE__ */ (0, R.jsxs)(yb, {
+ /* @__PURE__ */ (0, R.jsx)(gb, { children: /* @__PURE__ */ (0, R.jsxs)(vb, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, R.jsx)(Hj, { name: "plus" }), /* @__PURE__ */ (0, R.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, R.jsx)(Aj, { name: "plus" }), /* @__PURE__ */ (0, R.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var qce = (e) => e === "studio" || e === "agency", Jce = (e) => e === "performer" || e === "creator", Yce = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function Xce(e) {
+var Lj = (e) => e === "studio" || e === "agency", Rj = (e) => e === "performer" || e === "creator", zj = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
+function Bj(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function qj(e) {
+function Vj(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -37039,13 +37079,13 @@ function qj(e) {
linked: !1
} : null;
}
-function Jj(e, t) {
+function Hj(e, t) {
let n = f(e, "performer"), r = c(t);
return r && [e.label, n].map(c).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var Yj = (e) => ({ site: u(e) });
-function Zce(e, t) {
- let r = qj(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var Uj = (e) => ({ site: u(e) });
+function Wj(e, t) {
+ let r = Vj(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -37055,7 +37095,7 @@ function Zce(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${Jj(e, r)} · ${t}`
+ title: `${Hj(e, r)} · ${t}`
};
}
let i = e.url || "";
@@ -37066,8 +37106,8 @@ function Zce(e, t) {
if (t === "performer" && e.link_kind !== "social") return {
type: "icon",
url: i,
- title: Jj(e, r),
- mark: Yj(e)
+ title: Hj(e, r),
+ mark: Uj(e)
};
if (e.link_kind === "social") {
let t = n(i);
@@ -37075,7 +37115,7 @@ function Zce(e, t) {
type: "icon",
url: i,
title: e.label || "",
- mark: t ? { brand: t } : Yj(e)
+ mark: t ? { brand: t } : Uj(e)
};
}
return {
@@ -37083,13 +37123,13 @@ function Zce(e, t) {
url: i,
title: e.label || "",
text: f(e, t, a),
- mark: Yj(e)
+ mark: Uj(e)
};
});
return [...i, ...o];
}
-var Xj = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function Qce(e) {
+var Gj = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function ole(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -37146,14 +37186,14 @@ function Qce(e) {
tags: e.tags
}), t;
}
-function $ce(e) {
+function sle(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function ele(e) {
+function cle(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -37164,8 +37204,8 @@ function ele(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function tle({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o, helpers: s }) {
- let c = Jce(e), l = qce(e), u = e === "performer" ? Qce(n.profile) : [], d = Zce(n, e), f = Xj(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, L.useRef)(null), h = (0, L.useRef)(null);
+function lle({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o, helpers: s }) {
+ let c = Rj(e), l = Lj(e), u = e === "performer" ? ole(n.profile) : [], d = Wj(n, e), f = Gj(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, L.useRef)(null), h = (0, L.useRef)(null);
return (0, L.useEffect)(() => {
s.wireScroller(m.current);
}, [s, d.length]), (0, L.useEffect)(() => {
@@ -37178,7 +37218,7 @@ function tle({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, R.jsx)(nle, {
+ children: [/* @__PURE__ */ (0, R.jsx)(ule, {
kind: e,
name: t,
helpers: s,
@@ -37186,7 +37226,7 @@ function tle({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
company: l
}), c && n.id ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, R.jsx)(Bj, {
+ children: /* @__PURE__ */ (0, R.jsx)(wj, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -37199,14 +37239,14 @@ function tle({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, R.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, R.jsx)(Kce, {
+ children: [/* @__PURE__ */ (0, R.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, R.jsx)(Ij, {
current: n.canonical_name,
- choices: Xce(n),
+ choices: Bj(n),
onChoose: o.chooseName,
onAddAlias: o.addAlias
})]
}),
- /* @__PURE__ */ (0, R.jsx)(rle, {
+ /* @__PURE__ */ (0, R.jsx)(dle, {
kind: e,
entity: n,
actions: o
@@ -37214,9 +37254,9 @@ function tle({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
d.length ? /* @__PURE__ */ (0, R.jsx)("div", {
ref: m,
"data-entity-links": "",
- children: d.map((e, t) => /* @__PURE__ */ (0, R.jsx)(sle, { link: e }, t))
+ children: d.map((e, t) => /* @__PURE__ */ (0, R.jsx)(hle, { link: e }, t))
}) : null,
- f.length || n.feed ? /* @__PURE__ */ (0, R.jsx)(cle, {
+ f.length || n.feed ? /* @__PURE__ */ (0, R.jsx)(gle, {
entity: n,
actions: o,
helpers: s
@@ -37225,11 +37265,11 @@ function tle({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
}),
u.length ? /* @__PURE__ */ (0, R.jsx)("dl", {
"data-entity-facts": "",
- children: u.map((e) => /* @__PURE__ */ (0, R.jsx)(ale, {
+ children: u.map((e) => /* @__PURE__ */ (0, R.jsx)(ple, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, R.jsx)(ole, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, R.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, R.jsx)(mle, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, R.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -37256,14 +37296,14 @@ function tle({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
}, e.k))
})
}) : null]
- }), a ? (0, Re.createPortal)(/* @__PURE__ */ (0, R.jsx)(lle, {
+ }), a ? (0, Re.createPortal)(/* @__PURE__ */ (0, R.jsx)(Oj, {
feedNew: r,
host: a,
- actions: o,
- helpers: s
+ wire: s.wireFeedRow,
+ act: (e, t) => o.feedAction(e, t)
}), a) : null] });
}
-function nle({ kind: e, name: t, helpers: n, people: r, company: a }) {
+function ule({ kind: e, name: t, helpers: n, people: r, company: a }) {
let [o] = (0, L.useState)(() => `${n.portraitImg()}<span>${i(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -37272,8 +37312,8 @@ function nle({ kind: e, name: t, helpers: n, people: r, company: a }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function rle({ kind: e, entity: t, actions: n }) {
- let i = qj(t), a = (e, t) => (r) => {
+function dle({ kind: e, entity: t, actions: n }) {
+ let i = Vj(t), a = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, o = i ? i.linked ? /* @__PURE__ */ (0, R.jsx)("a", {
href: r("agency", i.name),
@@ -37282,36 +37322,36 @@ function rle({ kind: e, entity: t, actions: n }) {
children: i.name
}) : i.name : null, s = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer") {
- let e = ele(t.name_groups);
+ let e = cle(t.name_groups);
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entity-alias": "meta",
children: [
/* @__PURE__ */ (0, R.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, R.jsx)(Hj, { name: "film" }), /* @__PURE__ */ (0, R.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, R.jsx)(Aj, { name: "film" }), /* @__PURE__ */ (0, R.jsx)("span", { children: s })]
}),
o ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, R.jsx)(Hj, { name: "briefcase" }), /* @__PURE__ */ (0, R.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, R.jsx)(Aj, { name: "briefcase" }), /* @__PURE__ */ (0, R.jsx)("span", { children: o })]
}) : null,
e ? /* @__PURE__ */ (0, R.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, R.jsx)(Hj, { name: "id-card" }),
+ /* @__PURE__ */ (0, R.jsx)(Aj, { name: "id-card" }),
/* @__PURE__ */ (0, R.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, R.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, R.jsx)(Kj, {
+ e.rest > 0 ? /* @__PURE__ */ (0, R.jsx)(Pj, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, R.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, R.jsx)(ile, {
+ children: /* @__PURE__ */ (0, R.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, R.jsx)(fle, {
label: e.label,
names: e.names
}, t)) })
@@ -37346,25 +37386,25 @@ function rle({ kind: e, entity: t, actions: n }) {
]
});
}
-function ile({ label: e, names: t }) {
+function fle({ label: e, names: t }) {
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [e ? /* @__PURE__ */ (0, R.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, R.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, R.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, R.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function ale({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("dt", { children: [/* @__PURE__ */ (0, R.jsx)(Hj, { name: e }), t] }), /* @__PURE__ */ (0, R.jsx)("dd", {
+function ple({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("dt", { children: [/* @__PURE__ */ (0, R.jsx)(Aj, { name: e }), t] }), /* @__PURE__ */ (0, R.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function ole({ tags: e }) {
- let { shown: t, rest: n } = $ce(e);
+function mle({ tags: e }) {
+ let { shown: t, rest: n } = sle(e);
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, R.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, R.jsx)(Kj, {
+ }, e)), n ? /* @__PURE__ */ (0, R.jsx)(Pj, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -37379,10 +37419,10 @@ function ole({ tags: e }) {
})
}) : null] });
}
-function Zj({ mark: e }) {
+function Kj({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, R.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, R.jsx)(Hj, { name: e.brand })
+ children: /* @__PURE__ */ (0, R.jsx)(Aj, { name: e.brand })
});
let t = l("globe") + ("site" in e ? `<img src="${i(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, R.jsx)("span", {
@@ -37390,7 +37430,7 @@ function Zj({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function sle({ link: e }) {
+function hle({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, R.jsx)("a", {
"data-link": "icon",
@@ -37399,19 +37439,19 @@ function sle({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, R.jsx)(Zj, { mark: e.mark })
+ children: /* @__PURE__ */ (0, R.jsx)(Kj, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, R.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, R.jsx)(Zj, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, R.jsx)(Kj, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, R.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, R.jsx)(Zj, { mark: { globe: !0 } }), /* @__PURE__ */ (0, R.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(Kj, { mark: { globe: !0 } }), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -37422,14 +37462,14 @@ function sle({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, R.jsx)(Zj, { mark: e.mark }), /* @__PURE__ */ (0, R.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(Kj, { mark: e.mark }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function cle({ entity: e, actions: t, helpers: n }) {
+function gle({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, L.useState)(!!e.feed?.following), [a, o] = (0, L.useState)(!1), s = (0, L.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -37447,56 +37487,34 @@ function cle({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-entry-marks": "",
- children: [Xj(e).map((e, t) => /* @__PURE__ */ (0, R.jsxs)("a", {
+ children: [Gj(e).map((e, t) => /* @__PURE__ */ (0, R.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, R.jsx)(Hj, { name: e.mark }) : /* @__PURE__ */ (0, R.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, R.jsx)(Aj, { name: e.mark }) : /* @__PURE__ */ (0, R.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, R.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, R.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, R.jsx)(Gce, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, R.jsx)(Fj, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: Yce(r)
+ tip: zj(r)
}) : null]
});
}
-function lle({ feedNew: e, host: t, actions: n, helpers: r }) {
- let i = (0, L.useRef)(null), a = e?.items.length ? e.html : "";
- (0, L.useLayoutEffect)(() => {
- t.removeAttribute("aria-busy"), t.hidden = !a;
- }, [t, a]), (0, L.useEffect)(() => {
- a && r.wireFeedRow(i.current?.querySelector(".feednewrow") ?? null);
- }, [r, a]);
- let o = async (e) => {
- let r = e.target.closest("[data-feed-action]"), a = r?.closest("[data-feed-id]");
- if (!r || !a) return;
- let o = r.dataset.feedAction || "";
- await n.feedAction(Number(a.dataset.feedId), o), o === "ignore" ? a.remove() : a.classList.add("isread"), i.current?.querySelector("[data-feed-id]") || (t.hidden = !0);
- };
- return a ? /* @__PURE__ */ (0, R.jsx)("div", {
- ref: i,
- className: "contents",
- onClick: (e) => {
- o(e);
- },
- dangerouslySetInnerHTML: { __html: a }
- }) : null;
-}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function ule(e) {
- let { kind: t, name: n } = e, r = Zn(wA(t, n)), i = !!r.data?.error, { actions: a } = e;
+function _le(e) {
+ let { kind: t, name: n } = e, r = Zn(vA(t, n)), i = !!r.data?.error, { actions: a } = e;
return (0, L.useLayoutEffect)(() => {
i && a.missing();
}, [a, i]), r.isError ? /* @__PURE__ */ (0, R.jsx)(ro, {
@@ -37504,12 +37522,12 @@ function ule(e) {
onRetry: () => {
r.refetch();
}
- }) : !r.data || i ? null : /* @__PURE__ */ (0, R.jsx)(ple, {
+ }) : !r.data || i ? null : /* @__PURE__ */ (0, R.jsx)(ble, {
...e,
entity: r.data
});
}
-function Qj(e) {
+function qj(e) {
let [t, n] = (0, L.useState)({
key: e,
n: 1
@@ -37521,14 +37539,14 @@ function Qj(e) {
};
return n(r), r.n;
}
-var dle = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function fle(e, t) {
+var vle = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function yle(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function ple(e) {
- let { kind: n, name: r, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = n === "agency" || n === "studio", d = n === "agency" ? i.related_performers || [] : n === "studio" && i.labels || [], f = Number(i.id) || 0, p = $n(EA(n, r, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || DA(m).length > 0, _ = o.media === "photos" && g ? o : gA, [v, y] = (0, L.useState)("people"), x = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [S, C] = (0, L.useState)(x);
+function ble(e) {
+ let { kind: n, name: r, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = n === "agency" || n === "studio", d = n === "agency" ? i.related_performers || [] : n === "studio" && i.labels || [], f = Number(i.id) || 0, p = $n(yA(n, r, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || bA(m).length > 0, _ = o.media === "photos" && g ? o : dA, [v, y] = (0, L.useState)("people"), x = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [S, C] = (0, L.useState)(x);
S !== x && (C(x), y("videos"));
- let w = u && v === "people" && d.length ? "people" : _.media, T = CA(e), E = Zn(T), D = Qj(JSON.stringify(T.queryKey)), [O] = (0, L.useState)(() => (n === "performer" || n === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));
+ let w = u && v === "people" && d.length ? "people" : _.media, T = _A(e), E = Zn(T), D = qj(JSON.stringify(T.queryKey)), [O] = (0, L.useState)(() => (n === "performer" || n === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));
(0, L.useLayoutEffect)(() => {
c.javContext(O);
}, [c, O]);
@@ -37538,26 +37556,26 @@ function ple(e) {
}, [e.layout, O]), A = {
jav: e.jav,
seed: e.seed
- }, j = (0, L.useCallback)((t, i) => SA(n, r, a, A, t, e.cache, i), [D]), [M, N] = (0, L.useState)({}), ee = _.set, te = M[ee] || "", P = $n({
- ...EA(n, r, ee, te),
+ }, j = (0, L.useCallback)((t, i) => gA(n, r, a, A, t, e.cache, i), [D]), [M, N] = (0, L.useState)({}), ee = _.set, te = M[ee] || "", P = $n({
+ ...yA(n, r, ee, te),
enabled: w === "photos"
- }), F = P.data?.pages[0], ne = Qj(JSON.stringify(yA(n, r, ee, te))), re = (0, L.useMemo)(() => {
+ }), F = P.data?.pages[0], ne = qj(JSON.stringify(pA(n, r, ee, te))), re = (0, L.useMemo)(() => {
let e = P.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: ne,
- codeSets: t.id ? [] : DA(t),
+ codeSets: t.id ? [] : bA(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [P.data, ne]), ie = P.refetch, ae = P.fetchNextPage, oe = Zn({
- ...TA(f, s.feedRowHtml),
+ ...lA(f, s.feedRowHtml),
enabled: !!f
}), se = (0, L.useRef)(e.feedRevision);
(0, L.useEffect)(() => {
- se.current !== e.feedRevision && (se.current = e.feedRevision, K.invalidateQueries({ queryKey: vA(f) }));
+ se.current !== e.feedRevision && (se.current = e.feedRevision, K.invalidateQueries({ queryKey: iA(f) }));
}, [f, e.feedRevision]);
let ce = !!E.data;
(0, L.useEffect)(() => {
@@ -37574,7 +37592,7 @@ function ple(e) {
le.current = !1;
}, []);
let [ue, de] = (0, L.useState)(0), I = (0, L.useCallback)(async () => {
- await K.invalidateQueries({ queryKey: _A(n, r) }), await K.invalidateQueries({ queryKey: [
+ await K.invalidateQueries({ queryKey: fA(n, r) }), await K.invalidateQueries({ queryKey: [
"entity-items",
n,
r
@@ -37605,7 +37623,7 @@ function ple(e) {
enabled: e
})
}),
- onSuccess: (e, t) => K.setQueryData(_A(n, r), (e) => e && {
+ onSuccess: (e, t) => K.setQueryData(fA(n, r), (e) => e && {
...e,
feed: {
...e.feed,
@@ -37653,18 +37671,12 @@ function ple(e) {
let e = await t("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- le.current && await K.invalidateQueries({ queryKey: vA(f) });
+ le.current && await K.invalidateQueries({ queryKey: iA(f) });
})();
},
- feedAction: (e, n) => t("/api/feeds/discovery", {
- method: "POST",
- body: JSON.stringify({
- action: n,
- ids: [e]
- })
- }).then(() => void 0, () => void 0),
+ feedAction: uA,
avatarPicked: () => {
- K.refetchQueries({ queryKey: _A(n, r) }).then(() => {
+ K.refetchQueries({ queryKey: fA(n, r) }).then(() => {
le.current && de((e) => e + 1);
});
}
@@ -37693,19 +37705,19 @@ function ple(e) {
e === w && !_.set || (y(e === "people" ? "people" : "videos"), c.route(a, e === "photos" ? {
media: "photos",
set: 0
- } : gA));
+ } : dA));
},
setState: (e) => c.route({
...a,
state: e
- }, gA),
+ }, dA),
toggleTag: c.toggleTag,
clearFilter: c.clearFilter,
clearAll: c.clearAll,
setSort: c.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let t = c.reshuffleVideos(), i = CA({
+ let t = c.reshuffleVideos(), i = _A({
kind: n,
name: r,
filters: {
@@ -37720,7 +37732,7 @@ function ple(e) {
await K.fetchQuery(i).catch(() => null);
return;
}
- let t = dle(), i = await K.fetchInfiniteQuery(EA(n, r, ee, t)).catch(() => null);
+ let t = vle(), i = await K.fetchInfiniteQuery(yA(n, r, ee, t)).catch(() => null);
!le.current || !i?.pages[0] || i.pages[0].error || N((e) => ({
...e,
[ee]: t
@@ -37754,7 +37766,7 @@ function ple(e) {
k: e.k,
label: s.tagLabel(e.k),
n: e.n,
- selected: ece(a.tag, e.k)
+ selected: pce(a.tag, e.k)
})), be = h || d.length ? {
label: d.length ? "页面视图" : "媒体类型",
people: d.length ? {
@@ -37780,9 +37792,9 @@ function ple(e) {
if (w === "people") we = `${n === "studio" ? "厂牌" : "艺人"} · ${d.length.toLocaleString()}`;
else if (w === "videos") {
Te = !E.data;
- let e = bA(a.tag).map(s.tagLabel);
+ let e = mA(a.tag).map(s.tagLabel);
we = `视频 · ${(E.data?.total || 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else F && !F.error ? we = Se ? `${F.title} · ${(F.total || 0).toLocaleString()} 张` : fle(F, DA(F).length) : Te = P.isPending;
+ } else F && !F.error ? we = Se ? `${F.title} · ${(F.total || 0).toLocaleString()} 张` : yle(F, bA(F).length) : Te = P.isPending;
let Ee = (0, L.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -37799,7 +37811,7 @@ function ple(e) {
d
]);
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
- /* @__PURE__ */ (0, R.jsx)(tle, {
+ /* @__PURE__ */ (0, R.jsx)(lle, {
kind: n,
name: r,
entity: i,
@@ -37809,7 +37821,7 @@ function ple(e) {
actions: he,
helpers: ge
}, ue),
- (0, Re.createPortal)(/* @__PURE__ */ (0, R.jsx)(Nse, {
+ (0, Re.createPortal)(/* @__PURE__ */ (0, R.jsx)(Use, {
kind: n,
name: r,
view: w,
@@ -37830,7 +37842,7 @@ function ple(e) {
onRetry: () => {
E.refetch();
}
- }) : /* @__PURE__ */ (0, R.jsx)(Nce, {
+ }) : /* @__PURE__ */ (0, R.jsx)(Hce, {
kind: n,
name: r,
view: w,
@@ -37856,8 +37868,22 @@ function ple(e) {
] });
}
//#endregion
+//#region src/react/feed-new/feed-new-page.tsx
+function xle({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Zn(lA(null, n.feedRowHtml)), a = (0, L.useRef)(t);
+ return (0, L.useEffect)(() => {
+ a.current !== t && (a.current = t, K.invalidateQueries({ queryKey: iA(null) }));
+ }, [t]), (0, Re.createPortal)(/* @__PURE__ */ (0, R.jsx)(Oj, {
+ feedNew: i.data ?? null,
+ host: e,
+ wire: n.wireFeedRow,
+ act: uA,
+ settled: r.settled
+ }), e);
+}
+//#endregion
//#region src/follow-sort.ts
-var $j = [
+var Jj = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -37865,7 +37891,7 @@ var $j = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], mle = "checked", eM = {
+], Sle = "checked", Yj = {
checked: "desc",
added: "desc",
name: "asc",
@@ -37873,32 +37899,32 @@ var $j = [
source: "asc",
provider: "asc",
status: "asc"
-}, hle = (e) => $j.some(([t]) => t === e);
-function tM(e, t) {
- let n = hle(e) ? e : mle;
+}, Cle = (e) => Jj.some(([t]) => t === e);
+function Xj(e, t) {
+ let n = Cle(e) ? e : Sle;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : eM[n]
+ dir: t === "asc" || t === "desc" ? t : Yj[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var nM = "/api/follow", rM = "/api/follow/credentials", iM = "/api/follow/check", aM = "/api/follow/source", oM = "/api/follow/resolve", gle = "/api/follow/suggest", sM = "/api/follow/author-alias", _le = "/api/follow/credential", cM = "/api/follow/status", vle = "/api/feeds", lM = "/api/feeds/source", yle = "/api/feeds/check", ble = "/api/feeds/lookup", uM = ["follow-manage"], dM = ["follow-manage", "credentials"], xle = ["follow-manage", "check"], Sle = ["follow-manage", "resolve"], fM = ["follow-manage", "feeds"], Cle = (e) => [
+var Zj = "/api/follow", Qj = "/api/follow/credentials", $j = "/api/follow/check", eM = "/api/follow/source", tM = "/api/follow/resolve", wle = "/api/follow/suggest", nM = "/api/follow/author-alias", Tle = "/api/follow/credential", rM = "/api/follow/status", Ele = "/api/feeds", iM = "/api/feeds/source", Dle = "/api/feeds/check", Ole = "/api/feeds/lookup", aM = ["follow-manage"], oM = ["follow-manage", "credentials"], kle = ["follow-manage", "check"], Ale = ["follow-manage", "resolve"], sM = ["follow-manage", "feeds"], jle = (e) => [
"follow-manage",
"suggest",
e
-], pM = [["default", "默认视图"], ["table", "表格视图"]], mM = [
+], cM = [["default", "默认视图"], ["table", "表格视图"]], lM = [
10,
20,
50,
100
-], wle = Object.fromEntries($j), hM = {
+], Mle = Object.fromEntries(Jj), uM = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Tle = (e) => pM.some(([t]) => t === e), Ele = (e) => mM.includes(Number(e)) ? Number(e) : 20, Dle = {
+}, Nle = (e) => cM.some(([t]) => t === e), Ple = (e) => lM.includes(Number(e)) ? Number(e) : 20, Fle = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -37906,25 +37932,25 @@ var nM = "/api/follow", rM = "/api/follow/credentials", iM = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Ole = (e, t) => `按${wle[e]}${Dle[e][t === "asc" ? 0 : 1]}排序`;
-function gM(e) {
+}, Ile = (e, t) => `按${Mle[e]}${Fle[e][t === "asc" ? 0 : 1]}排序`;
+function dM(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function kle(e) {
+function Lle(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var _M = (e) => e.last_status === "error" || e.last_status === "unauthorized", vM = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), yM = {
- source: vM,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || vM(e, t),
- status: (e, t) => gM(e) - gM(t) || vM(e, t)
-}, bM = (e) => Date.parse(e || "") || 0, xM = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function SM(e, t = []) {
+var fM = (e) => e.last_status === "error" || e.last_status === "unauthorized", pM = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), mM = {
+ source: pM,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || pM(e, t),
+ status: (e, t) => dM(e) - dM(t) || pM(e, t)
+}, hM = (e) => Date.parse(e || "") || 0, gM = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function _M(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || xM(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || gM(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 xM(i.canonical_name);
+ if (i) return gM(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);
@@ -37932,18 +37958,18 @@ function SM(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 Ale(e) {
+function vM(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function jle(e) {
+function yM(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 CM(e) {
+function bM(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -37951,31 +37977,31 @@ function CM(e) {
}
return t.map((e) => n.get(e));
}
-function Mle(e, t, n, r = []) {
- let i = CM(e), a = n === eM[t] ? 1 : -1, o = (e) => SM(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = yM[t];
+function Rle(e, t, n, r = []) {
+ let i = bM(e), a = n === Yj[t] ? 1 : -1, o = (e) => _M(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = mM[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) => bM(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => bM(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => hM(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => hM(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 Nle(e, t, n, r = []) {
+function zle(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = SM(e, r);
+ let t = _M(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = yM[t];
+ }), a = mM[t];
if (a) {
- let e = n === eM[t] ? 1 : -1;
+ let e = n === Yj[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function wM(e, t, n) {
+function xM(e, t, n) {
let r = Vs(e, t), i = Hs(n, r), a = (i - 1) * t;
return {
page: i,
@@ -37985,91 +38011,91 @@ function wM(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Ple(e, t) {
+function Ble(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function TM(e, t) {
+function SM(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 EM(e, t, n) {
+function CM(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var DM = (e) => Hi(`${nM}?summary=1`, e), OM = (e) => Hi(rM, e), Fle = (e) => Hi(iM, e), Ile = (e) => Hi(oM, e), Lle = (e, t) => Hi(`${gle}?q=${encodeURIComponent(e)}`, t), kM = (e) => U(iM, {
+var wM = (e) => Hi(`${Zj}?summary=1`, e), TM = (e) => Hi(Qj, e), Vle = (e) => Hi($j, e), Hle = (e) => Hi(tM, e), Ule = (e, t) => Hi(`${wle}?q=${encodeURIComponent(e)}`, t), EM = (e) => U($j, {
...e?.length ? { sources: e } : {},
background: !0
-}), Rle = (e) => U(oM, {
+}), Wle = (e) => U(tM, {
lines: e,
background: !0
-}), AM = (e, t) => U(aM, {
+}), DM = (e, t) => U(eM, {
action: "enabled",
id: e,
enabled: t
-}), jM = (e) => U(aM, {
+}), OM = (e) => U(eM, {
action: "remove",
id: e
-}), zle = (e) => U(aM, {
+}), Gle = (e) => U(eM, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), MM = (e, t) => U(sM, {
+}), kM = (e, t) => U(nM, {
action: "add",
canonical: e,
alias: t
-}), Ble = (e) => U(sM, {
+}), Kle = (e) => U(nM, {
action: "remove",
alias: e
-}), Vle = (e, t) => U(_le, {
+}), qle = (e, t) => U(Tle, {
provider: e,
values: t
-}), Hle = (e, t) => U(cM, {
+}), Jle = (e, t) => U(rM, {
item: e,
to: t
-}), Ule = () => Hi(`${nM}?status=new&limit=1000`);
-async function NM(e) {
- let t = await Hi(vle, e);
+}), Yle = () => Hi(`${Zj}?status=new&limit=1000`);
+async function AM(e) {
+ let t = await Hi(Ele, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var PM = (e, t, n) => U(lM, {
+var jM = (e, t, n) => U(iM, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), FM = (e, t) => U(lM, {
+}, "POST", n), MM = (e, t) => U(iM, {
action: "remove",
id: e
-}, "POST", t), IM = (e, t) => U(yle, t?.length ? { sources: t } : { all: !0 }, "POST", e), Wle = (e, t) => Hi(`${ble}?q=${encodeURIComponent(e)}`, t), Gle = (e, t, n) => U(lM, {
+}, "POST", t), NM = (e, t) => U(Dle, t?.length ? { sources: t } : { all: !0 }, "POST", e), Xle = (e, t) => Hi(`${Ole}?q=${encodeURIComponent(e)}`, t), Zle = (e, t, n) => U(iM, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function Kle(e, t = "") {
+async function Qle(e, t = "") {
await Promise.all([
K.fetchQuery({
- queryKey: uM,
- queryFn: () => DM(e)
+ queryKey: aM,
+ queryFn: () => wM(e)
}),
K.fetchQuery({
- queryKey: dM,
- queryFn: () => OM(e)
+ queryKey: oM,
+ queryFn: () => TM(e)
}),
t === "feeds" ? K.fetchQuery({
- queryKey: fM,
- queryFn: () => NM(e)
+ queryKey: sM,
+ queryFn: () => AM(e)
}) : null
]);
}
-function LM(e, t) {
- K.setQueryData(uM, (n) => n && {
+function PM(e, t) {
+ K.setQueryData(aM, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -38077,24 +38103,24 @@ function LM(e, t) {
} : n)
});
}
-function RM(e) {
+function FM(e) {
let t = new Set(e);
- K.setQueryData(uM, (e) => e && {
+ K.setQueryData(aM, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var zM = () => K.invalidateQueries({
- queryKey: uM,
+var IM = () => K.invalidateQueries({
+ queryKey: aM,
exact: !0
});
-function qle(e) {
+function $le(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Jle = (e) => (e?.results || []).filter((e) => !e.ok), Yle = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", BM = (e) => e.last_checked_at ? Ws(e.last_checked_at) : "未检查", Xle = /* @__PURE__ */ new Set([
+var eue = (e) => (e?.results || []).filter((e) => !e.ok), tue = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", LM = (e) => e.last_checked_at ? Ws(e.last_checked_at) : "未检查", nue = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -38107,50 +38133,50 @@ var Jle = (e) => (e?.results || []).filter((e) => !e.ok), Yle = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), Zle = (e) => Xle.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Qle = {
+]), RM = (e) => nue.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", rue = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, VM = (e) => !!e.present && !e.missing.length, $le = [
+}, zM = (e) => !!e.present && !e.missing.length, iue = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], eue = [
+], aue = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], HM = {
+], BM = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function UM(e, t) {
+function VM(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 WM(e, t) {
+function HM(e, t) {
return {
queryKey: [
"follow-feed",
- UM(e, 0),
+ VM(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => Hi(UM(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => Hi(VM(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
placeholderData: Yt
};
}
-var GM = ["follow-feed", "credentials"], KM = (e) => Hi(rM, e).catch(() => ({ providers: [] }));
-async function tue(e, t) {
- let n = WM(e.view, e.revision);
+var UM = ["follow-feed", "credentials"], WM = (e) => Hi(Qj, e).catch(() => ({ providers: [] }));
+async function oue(e, t) {
+ let n = HM(e.view, e.revision);
K.removeQueries({
queryKey: n.queryKey,
exact: !0
}), K.removeQueries({
- queryKey: GM,
+ queryKey: UM,
exact: !0
}), await Promise.all([K.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -38161,11 +38187,11 @@ async function tue(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), K.fetchQuery({
- queryKey: GM,
- queryFn: () => KM(t)
+ queryKey: UM,
+ queryFn: () => WM(t)
})]);
}
-function qM(e) {
+function GM(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -38174,10 +38200,10 @@ function qM(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function JM(e, t, n) {
+function KM(e, t, n) {
return [...e].sort((e, r) => h(n, t(e)) - h(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function YM(e) {
+function qM(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -38185,12 +38211,12 @@ function YM(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function nue(e) {
+function sue(e) {
for (let [, t] of K.getQueriesData({ queryKey: ["follow-feed"] })) {
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let n = t.pages[t.pages.length - 1];
for (let r of t.pages) for (let t of r.groups || []) {
- let r = YM(t).find((t) => t.id === e);
+ let r = qM(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -38201,7 +38227,7 @@ function nue(e) {
}
return null;
}
-function rue(e) {
+function cue(e) {
K.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -38211,7 +38237,7 @@ function rue(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return YM(t).some((t) => t.id === e.id) ? {
+ return qM(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -38221,39 +38247,39 @@ function rue(e) {
}))
});
}
-function iue(e, t) {
+function lue(e, t) {
K.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && rN(n, null, e, t));
+ }, (n) => n && tN(n, null, e, t));
}
-function XM(e) {
- return YM(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+function JM(e) {
+ return qM(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function ZM(e) {
+function YM(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 QM(e) {
+function XM(e) {
let t = /* @__PURE__ */ new Set();
- return YM(e).forEach((e) => ZM(e).forEach((e) => t.add(e))), t;
+ return qM(e).forEach((e) => YM(e).forEach((e) => t.add(e))), t;
}
-function $M(e, t) {
+function ZM(e, t) {
let n = t === "images" ? "image" : "video";
- return XM(e).find((e) => ZM(e).has(n)) || e.primary;
+ return JM(e).find((e) => YM(e).has(n)) || e.primary;
}
-function eN(e) {
- return XM(e).filter((e) => e.playable && e.media_kind === "video");
+function QM(e) {
+ return JM(e).filter((e) => e.playable && e.media_kind === "video");
}
-var tN = {
+var $M = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function aue({ 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} ${tN[s] || tN.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function uue({ 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} ${$M[s] || $M.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,
@@ -38262,14 +38288,14 @@ function aue({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function oue(e) {
+function due(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function nN(e, t, n) {
- return e === t ? HM[e] ? {
+function eN(e, t, n) {
+ return e === t ? BM[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -38277,13 +38303,13 @@ function nN(e, t, n) {
dir: "desc"
};
}
-function sue(e, t, n, r) {
- let i = nN(e, n, r);
+function fue(e, t, n, r) {
+ let i = eN(e, n, r);
if (!i) return "";
- let a = HM[i.sort];
+ let a = BM[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function rN(e, t, n, r) {
+function tN(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -38313,7 +38339,7 @@ function rN(e, t, n, r) {
})
};
}
-function cue(e, t) {
+function pue(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -38333,7 +38359,7 @@ function cue(e, t) {
label: e
})), n;
}
-function lue(e, t) {
+function mue(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -38348,7 +38374,7 @@ function lue(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function uue(e, t) {
+function hue(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -38357,18 +38383,93 @@ function uue(e, t) {
}
//#endregion
//#region src/sidebar.ts
-function due(e) {
+function gue(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
+//#region src/react/follow-feed/follow-marks.ts
+var nN = (e) => typeof e == "string" ? e : "", rN = (e) => e.aliases;
+function iN(e, t = "") {
+ let n = RM(e);
+ return n ? `<img class="ficon" src="${n}" alt="${i(t)}"${t ? ` title="${i(t)}"` : ""} loading="lazy" data-drop="self">` : "";
+}
+var aN = (e, t) => _M(e, rN(t));
+function oN(e, t) {
+ let { src: n, fallback: r } = yM(e), a = vM(t);
+ if (!n) return `<span class="favatar none" title="没有可用头像">${i(a)}</span>`;
+ let o = r ? ` data-fallbacks="${i(r)}"` : "";
+ return `<img class="favatar" src="${i(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${o} data-initial="${i(a)}" data-drop-class="favatar none">`;
+}
+function sN(e, t, n) {
+ let r = rN(n), i = e.credit, a = i?.poster;
+ if (!a) {
+ let n = _M(t, r);
+ return {
+ author: n || nN(e.author) || nN(e.source_label) || "创作者未取得",
+ avatar: oN(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 && _M(c, r) || a;
+ return {
+ author: l,
+ avatar: oN(c, l),
+ credited: i.credited || ""
+ };
+}
+function cN(e, t = e.primary) {
+ let n = [];
+ e.primary.variant_kind === "wip" ? n.push("<small class=\"javedition followmark wip\">WIP</small>") : e.has_wip && n.push("<small class=\"javedition followmark wip partial\">含 WIP</small>");
+ let r = nN(e.primary.version);
+ r && n.push(`<small class="javedition followmark ver">${i(r)}</small>`);
+ let a = nN(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ return o && n.push(`<small class="javedition followmark ${a}">${o}</small>`), n.join("");
+}
+function lN(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]) => iN(e, t) || `<span>${i(t)}</span>`).join("");
+ return `<span class="fbadge dup" title="另见 ${i([...n.values()].join("、"))}">另见 ${r}</span>`;
+}
+function uN(e, t) {
+ let n = nN(e.media_error);
+ return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
+}
+var dN = (e) => e.published_at ? Ws(e.published_at) : "时间未取得", fN = /* @__PURE__ */ new Set(), pN = [], mN = null;
+function hN() {
+ if (mN = null, !pN.length) return;
+ let e = pN.splice(0, 200);
+ t("/api/follow/image-dims", {
+ method: "POST",
+ body: JSON.stringify({ entries: e })
+ }).catch(() => {}), pN.length && (mN = setTimeout(hN, 800));
+}
+function _ue(e, t, n, r) {
+ let i = `${e}:${t ?? ""}`;
+ fN.has(i) || (fN.add(i), pN.push(t === null ? {
+ item: e,
+ width: n,
+ height: r
+ } : {
+ item: e,
+ width: n,
+ height: r,
+ media: t
+ }), mN ||= setTimeout(hN, 800));
+}
+//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var fue = (e) => Number(e) > 0;
-function pue(e) {
+var vue = (e) => Number(e) > 0;
+function yue(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function mue({ src: e, width: t, height: n, onLearn: r }) {
+function bue({ src: e, width: t, height: n, onLearn: r }) {
let [i, a] = (0, L.useState)(!1);
return i ? null : /* @__PURE__ */ (0, R.jsx)("img", {
src: e,
@@ -38384,8 +38485,8 @@ function mue({ src: e, width: t, height: n, onLearn: r }) {
} : void 0
});
}
-function hue(e) {
- let { group: t, authorSources: n, media: r, context: a, selected: s, selectMode: c, busy: u, failure: d, helpers: f, actions: p } = e, m = $M(t, r), h = r === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => f.learnDims(m.id, v ? v.index : null, e, t) : void 0, S = r === "videos" ? eN(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = aue({
+function xue(e) {
+ let { group: t, authorSources: n, media: r, context: a, selected: s, selectMode: c, busy: u, failure: d, helpers: f, actions: p } = e, m = ZM(t, r), h = r === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => _ue(m.id, v ? v.index : null, e, t) : void 0, S = r === "videos" ? QM(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = uue({
cover: _,
coverFace: (g?.thumb_url ? g : m).face,
stack: t.stack,
@@ -38401,7 +38502,7 @@ function hue(e) {
D.current = E.onPointerLeave;
let O = (0, L.useCallback)((e) => {
e && (e._stopHover = () => D.current());
- }, []), k = f.identity(m, n, a), A = f.when(m), j = (m.tags || []).slice(0, 3), M = f.mediaIssue(m, a), N = f.badges(t, m), ee = m.status === "saved", te = (e) => {
+ }, []), k = sN(m, n, a), A = dN(m), j = (m.tags || []).slice(0, 3), M = uN(m, a), N = lN(t, m), ee = m.status === "saved", te = (e) => {
if (!e.target.closest("[data-media-tag]")) {
if (c || e.shiftKey || e.ctrlKey || e.metaKey) {
e.preventDefault(), p.toggleSelection(m.id, e.shiftKey);
@@ -38435,14 +38536,14 @@ function hue(e) {
"data-follow-open": "",
"aria-label": `打开 ${m.title} 详情`
}),
- _ ? /* @__PURE__ */ (0, R.jsx)(mue, {
+ _ ? /* @__PURE__ */ (0, R.jsx)(bue, {
src: _,
width: b?.width,
height: b?.height,
onLearn: x
}, _) : /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: f.sourceIcon(m.resource_provider || m.provider) }
+ dangerouslySetInnerHTML: { __html: iN(m.resource_provider || m.provider) }
}),
w.faces.length > 1 ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-mix-faces": "",
@@ -38461,7 +38562,7 @@ function hue(e) {
"data-media-badge": "",
title: m.provider_label,
"aria-label": `来源:${m.provider_label || ""}`,
- dangerouslySetInnerHTML: { __html: f.sourceIcon(m.provider) }
+ dangerouslySetInnerHTML: { __html: iN(m.provider) }
}),
/* @__PURE__ */ (0, R.jsx)("span", {
"data-media-check": "",
@@ -38470,7 +38571,7 @@ function hue(e) {
},
dangerouslySetInnerHTML: { __html: l("check") }
}),
- fue(m.duration) ? /* @__PURE__ */ (0, R.jsx)("span", {
+ vue(m.duration) ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-duration": "",
children: o(m.duration)
}) : null,
@@ -38552,7 +38653,7 @@ function hue(e) {
/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: f.titleMarks(t, m) + i(m.title) }
+ dangerouslySetInnerHTML: { __html: cN(t, m) + i(m.title) }
}),
/* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-byline": "",
@@ -38563,7 +38664,7 @@ function hue(e) {
}), /* @__PURE__ */ (0, R.jsx)("time", {
dateTime: m.published_at || "",
title: A,
- children: pue(A)
+ children: yue(A)
})]
}),
k.credited ? /* @__PURE__ */ (0, R.jsx)("div", {
@@ -38599,10 +38700,10 @@ function hue(e) {
]
});
}
-var gue = (0, L.memo)(hue), iN = () => /* @__PURE__ */ (0, R.jsx)("span", {
+var Sue = (0, L.memo)(xue), gN = () => /* @__PURE__ */ (0, R.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), _ue = To("settings"), vue = To("chevron-down"), yue = To("history"), bue = [[
+}), Cue = To("settings"), wue = To("chevron-down"), Tue = To("history"), Eue = [[
"fixed",
"固定比例",
"layout-grid"
@@ -38611,19 +38712,19 @@ var gue = (0, L.memo)(hue), iN = () => /* @__PURE__ */ (0, R.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function xue(e, t, n) {
+function Due(e, t, n) {
return (0, L.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = JM([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = JM(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = KM([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = KM(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 = JM([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = KM([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -38631,7 +38732,7 @@ function xue(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => QM(e).forEach((e) => {
+ r.forEach((e) => XM(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -38646,7 +38747,7 @@ function xue(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => QM(e).has(_)),
+ visible: r.filter((e) => XM(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]])),
@@ -38659,15 +38760,15 @@ function xue(e, t, n) {
n
]);
}
-function Sue(e) {
- let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = WM(t, r), s = $n(o), c = Zn({
- queryKey: GM,
- queryFn: ({ signal: e }) => KM(e)
- }), l = (0, L.useMemo)(() => qM(s.data), [s.data]), u = (0, L.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), d = (0, L.useMemo)(() => ({
+function Oue(e) {
+ let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = HM(t, r), s = $n(o), c = Zn({
+ queryKey: UM,
+ queryFn: ({ signal: e }) => WM(e)
+ }), l = (0, L.useMemo)(() => GM(s.data), [s.data]), u = (0, L.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), d = (0, L.useMemo)(() => ({
sources: l?.sources || [],
aliases: l?.author_aliases || [],
credentials: u
- }), [l, u]), f = xue(l, t, n), p = s.isPending || s.isPlaceholderData, h = !p && !!l, g = (0, L.useMemo)(() => due(f.visible.flatMap(YM).map((e) => ({ tags: e.tags || [] }))), [f.visible]);
+ }), [l, u]), f = Due(l, t, n), p = s.isPending || s.isPlaceholderData, h = !p && !!l, g = (0, L.useMemo)(() => gue(f.visible.flatMap(qM).map((e) => ({ tags: e.tags || [] }))), [f.visible]);
(0, L.useEffect)(() => {
h && a.loaded(g);
}, [
@@ -38675,7 +38776,7 @@ function Sue(e) {
g,
a
]);
- let _ = Cue(e, !!l);
+ let _ = kue(e, !!l);
if (!l) return s.isError ? /* @__PURE__ */ (0, R.jsx)(ro, {
message: m(s.error),
onRetry: () => void s.refetch()
@@ -38683,12 +38784,12 @@ function Sue(e) {
let v = (e) => a.route({
...t,
...e
- }), y = cue({
+ }), y = pue({
...t,
author: f.author,
provider: f.provider
}, {
- authors: new Map([...f.authorSources].map(([e, t]) => [e, i.authorName(t, d)])),
+ authors: new Map([...f.authorSources].map(([e, t]) => [e, aN(t, d)])),
providers: f.providers,
works: f.workNames
}), b = t.status ? f.counts[t.status] || 0 : f.allCount, x = f.sources.some((e) => e.can_backfill);
@@ -38708,7 +38809,7 @@ function Sue(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
- leadingIcon: _ue,
+ leadingIcon: Cue,
"data-follow-manage": "",
onClick: a.openManage,
children: "管理关注"
@@ -38725,20 +38826,20 @@ function Sue(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, R.jsx)(wue, {
+ /* @__PURE__ */ (0, R.jsx)(Aue, {
facets: f,
pressed: f.author,
context: d,
props: e,
onPick: (e) => v({ author: f.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, R.jsx)(Tue, {
+ /* @__PURE__ */ (0, R.jsx)(jue, {
rows: f.workRows,
pressed: t.work,
props: e,
onPick: (e) => v({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, R.jsx)(Eue, {
+ /* @__PURE__ */ (0, R.jsx)(Mue, {
facets: f,
view: t,
total: b,
@@ -38746,9 +38847,9 @@ function Sue(e) {
props: e,
route: v
}),
- /* @__PURE__ */ (0, R.jsx)(Due, {
+ /* @__PURE__ */ (0, R.jsx)(Nue, {
conditions: y,
- onDrop: (e) => a.route(lue(t, e)),
+ onDrop: (e) => a.route(mue(t, e)),
onClear: () => v({
author: "",
provider: "",
@@ -38756,11 +38857,11 @@ function Sue(e) {
tags: []
})
}),
- f.broken.length ? /* @__PURE__ */ (0, R.jsx)(Oue, {
+ f.broken.length ? /* @__PURE__ */ (0, R.jsx)(Pue, {
count: f.broken.length,
onManage: a.openManage
}) : null,
- /* @__PURE__ */ (0, R.jsx)(kue, {
+ /* @__PURE__ */ (0, R.jsx)(Fue, {
pending: p,
facets: f,
data: l,
@@ -38777,13 +38878,13 @@ function Sue(e) {
load: async () => {
await s.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, R.jsx)(vue, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, R.jsx)(wue, { className: "size-3.5" }), "加载更多"]
}, s.data?.pages.length)
}) : null, x ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
- leadingIcon: _.olderBusy ? void 0 : yue,
+ leadingIcon: _.olderBusy ? void 0 : Tue,
"data-follow-older": "",
"aria-busy": _.busy || void 0,
onClick: () => void _.start(!0),
@@ -38793,14 +38894,14 @@ function Sue(e) {
}), /* @__PURE__ */ (0, R.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-backfill": "",
- children: oue(f.sources)
+ children: due(f.sources)
})]
}) : null]
}) : null
]
})] });
}
-function Cue(e, t) {
+function kue(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, L.useState)(0), [o, s] = (0, L.useState)(!1), [c, l] = (0, L.useState)(""), [u, d] = (0, L.useState)(!1), f = (0, L.useRef)(!1), p = (0, L.useRef)(null), h = (0, L.useRef)({
helpers: n,
actions: r
@@ -38815,7 +38916,7 @@ function Cue(e, t) {
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => Hi(iM, e),
+ read: (e) => Hi($j, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -38840,7 +38941,7 @@ function Cue(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await U(iM, e ? {
+ let n = await U($j, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -38858,7 +38959,7 @@ function Cue(e, t) {
olderBusy: c === "older" || u && o
};
}
-function wue({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function Aue({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, L.useRef)(null);
return (0, L.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -38866,25 +38967,25 @@ function wue({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
ref: a,
"data-follow-authors": "",
"aria-label": "按创作者筛选",
- children: e.authorOrder.map((a) => {
- let o = e.authorSources.get(a) || [];
+ children: e.authorOrder.map((r) => {
+ let a = e.authorSources.get(r) || [];
return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
- "data-follow-author": a,
- "aria-pressed": t === a,
- onClick: () => i(a),
+ "data-follow-author": r,
+ "aria-pressed": t === r,
+ onClick: () => i(r),
children: [/* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: r.helpers.authorAvatar(o, n) }
+ dangerouslySetInnerHTML: { __html: oN(a, aN(a, n)) }
}), /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-name": "",
- children: r.helpers.authorName(o, n)
+ children: aN(a, n)
})]
- }, a);
+ }, r);
})
}) : null;
}
-function Tue({ rows: e, pressed: t, props: n, onPick: r }) {
+function jue({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, L.useRef)(null);
return (0, L.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -38905,13 +39006,13 @@ function Tue({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function Eue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, L.useRef)(null), u = (0, L.useRef)(null), d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(null), m = (0, L.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = Vk(c, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = Vk(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
+function Mue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, L.useRef)(null), u = (0, L.useRef)(null), d = (0, L.useRef)(null), f = (0, L.useRef)(null), p = (0, L.useRef)(null), m = (0, L.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = jk(c, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = jk(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
(0, L.useEffect)(() => {
o.wireDrag(p.current), o.wireDrag(m.current), o.wireScroller(m.current);
}, [o]);
let v = [...e.providers], y = v.length + e.tagRows.length > 0, b = t.media === "images";
- return /* @__PURE__ */ (0, R.jsx)(Nk, {
+ return /* @__PURE__ */ (0, R.jsx)(Ck, {
label: "筛选与排序",
topLabel: h ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -38963,7 +39064,7 @@ function Eue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: l(i) }
}, e);
})
- }), /* @__PURE__ */ (0, R.jsx)(iN, {})] }) : null, /* @__PURE__ */ (0, R.jsxs)("div", {
+ }), /* @__PURE__ */ (0, R.jsx)(gN, {})] }) : null, /* @__PURE__ */ (0, R.jsxs)("div", {
ref: p,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
@@ -38972,7 +39073,7 @@ function Eue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: g.leave,
- children: [$le.map(([e, n]) => /* @__PURE__ */ (0, R.jsx)("button", {
+ children: [iue.map(([e, n]) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -38983,7 +39084,7 @@ function Eue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), y ? /* @__PURE__ */ (0, R.jsx)(iN, {}) : null]
+ }, e)), y ? /* @__PURE__ */ (0, R.jsx)(gN, {}) : null]
}), /* @__PURE__ */ (0, R.jsxs)("div", {
ref: m,
"data-entity-tags": "",
@@ -38996,13 +39097,13 @@ function Eue({ 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: o.sourceIcon(t) }
+ dangerouslySetInnerHTML: { __html: iN(t) }
}, t)),
- v.length && e.tagRows.length ? /* @__PURE__ */ (0, R.jsx)(iN, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, R.jsxs)(Fk, {
+ v.length && e.tagRows.length ? /* @__PURE__ */ (0, R.jsx)(gN, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, R.jsxs)(wk, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${uue(e.groups, n)}`,
+ "data-tag-cat": `r34-${hue(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
children: [o.tagLabel(n), r ? /* @__PURE__ */ (0, R.jsx)("span", {
@@ -39020,11 +39121,11 @@ function Eue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, R.jsx)(Zk, { onPress: s.shuffle }),
- b ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Xk, {
+ /* @__PURE__ */ (0, R.jsx)(Vk, { onPress: s.shuffle }),
+ b ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Bk, {
label: "图片布局",
value: i.photoLayout,
- options: bue,
+ options: Eue,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
@@ -39041,7 +39142,7 @@ function Eue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: l("captions-off") }
})]
})] }) : null,
- eue.map(([e, n]) => {
+ aue.map(([e, n]) => {
let r = t.sort === e, i = To(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
@@ -39049,9 +39150,9 @@ function Eue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": sue(e, n, t.sort, t.dir) || void 0,
+ "aria-label": fue(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = nN(e, t.sort, t.dir);
+ let n = eN(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, R.jsx)(i, { className: "size-3.5" }) : null]
@@ -39061,7 +39162,7 @@ function Eue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function Due({ conditions: e, onDrop: t, onClear: n }) {
+function Nue({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -39086,7 +39187,7 @@ function Due({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Oue({ count: e, onManage: t }) {
+function Pue({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -39095,12 +39196,12 @@ function Oue({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${l("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function kue({ pending: e, facets: t, data: n, context: r, props: i }) {
+function Fue({ pending: e, facets: t, data: n, context: r, props: i }) {
let { view: a, helpers: o } = i, s = a.media === "images", c = no(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, R.jsx)(Aue, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, R.jsx)(Iue, {
facets: t,
data: n,
context: r,
@@ -39109,39 +39210,39 @@ function kue({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function Aue({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, helpers: o, actions: s } = r, c = Nue(r), l = i ? {
+function Iue({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, helpers: o, actions: s } = r, c = zue(r), l = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, u;
return u = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), l = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, R.jsx)(gue, {
+ return /* @__PURE__ */ (0, R.jsx)(Sue, {
group: t,
authorSources: l,
media: a.media,
context: n,
- selected: r.selected.has(aN(t, a)),
+ selected: r.selected.has(_N(t, a)),
selectMode: r.selectMode,
- busy: c.busy.get(aN(t, a)) || "",
- failure: c.failures.get(aN(t, a)) || "",
+ busy: c.busy.get(_N(t, a)) || "",
+ failure: c.failures.get(_N(t, a)) || "",
helpers: o,
actions: s,
onStatus: c.status,
onSave: c.save
}, `${u}:${a.media}`);
- }) : /* @__PURE__ */ (0, R.jsx)(jue, { data: t }), /* @__PURE__ */ (0, R.jsx)("div", {
+ }) : /* @__PURE__ */ (0, R.jsx)(Lue, { data: t }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...l,
children: u
});
}
-function aN(e, t) {
- return $M(e, t.media).id;
+function _N(e, t) {
+ return ZM(e, t.media).id;
}
-function jue({ data: e }) {
+function Lue({ data: e }) {
let t = (e.groups || []).length ? C("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? C("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : C("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-follow-empty": "",
@@ -39149,22 +39250,22 @@ function jue({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var Mue = {
+var Rue = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function Nue(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, L.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, L.useState)(() => /* @__PURE__ */ new Map()), c = WM(t, n).queryKey, l = (e, t, n) => n((n) => {
+function zue(e) {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, L.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, L.useState)(() => /* @__PURE__ */ new Map()), c = HM(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) => {
- K.setQueryData(c, (r) => r && rN(r, t, e, n));
+ K.setQueryData(c, (r) => r && tN(r, t, e, n));
}, d = () => void K.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = qM(K.getQueryData(c));
+ let t = GM(K.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
@@ -39172,13 +39273,13 @@ function Nue(e) {
]) if (t.id === e) return t.status;
return "new";
}, p = Qn({
- mutationFn: ({ id: e, to: t }) => U(cM, {
+ mutationFn: ({ id: e, to: t }) => U(rM, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Mue[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await U(cM, {
+ u(t, n), d(), r.toast(Rue[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await U(rM, {
item: t,
to: i
}), u(t, i), d();
@@ -39223,8 +39324,8 @@ function Nue(e) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function oN({ provider: e, label: t }) {
- let n = Zle(e), [r, i] = (0, L.useState)(!1);
+function vN({ provider: e, label: t }) {
+ let n = RM(e), [r, i] = (0, L.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: t }) : null : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("img", {
src: n,
alt: "",
@@ -39235,8 +39336,8 @@ function oN({ provider: e, label: t }) {
className: "size-3.5 shrink-0 rounded-sm object-contain"
}), t ? /* @__PURE__ */ (0, R.jsx)(Oh, { children: t }) : null] });
}
-function sN({ group: e, name: t }) {
- let { src: n, fallback: r } = jle(e), [i, a] = (0, L.useState)(0), o = [n, r].filter(Boolean)[i];
+function yN({ group: e, name: t }) {
+ let { src: n, fallback: r } = yM(e), [i, a] = (0, L.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, R.jsx)("img", {
src: o,
alt: "",
@@ -39249,18 +39350,18 @@ function sN({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, R.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: Ale(t)
+ children: vM(t)
});
}
-function cN({ source: e }) {
- let t = _M(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+function bN({ source: e }) {
+ let t = fM(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
return /* @__PURE__ */ (0, R.jsx)(Li, {
variant: "caption",
color: t,
- children: kle(e)
+ children: Lle(e)
});
}
-function lN({ source: e }) {
+function xN({ source: e }) {
return /* @__PURE__ */ (0, R.jsx)("a", {
href: e.url,
target: "_blank",
@@ -39272,11 +39373,11 @@ function lN({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var uN = Pi(EO, DO, "text-body-2-medium"), Pue = "粘贴来源链接,或输入创作者名、id…", Fue = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Iue = "识别中…", Lue = "站内没有查到来源", dN = (e, t) => `${e}:${t.url}`;
-function Rue({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var SN = Pi(_O, vO, "text-body-2-medium"), Bue = "粘贴来源链接,或输入创作者名、id…", Vue = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Hue = "识别中…", Uue = "站内没有查到来源", CN = (e, t) => `${e}:${t.url}`;
+function Wue({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, L.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, R.jsxs)(Ty, {
+ }, [t, r]), /* @__PURE__ */ (0, R.jsxs)(Ey, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -39288,7 +39389,7 @@ function Rue({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: Pi(TO, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: Pi(gO, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "px-2 py-1.5",
children: /* @__PURE__ */ (0, R.jsx)($i, { label: "正在查找建议" })
@@ -39298,7 +39399,7 @@ function Rue({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
}), /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? Pi(uN, "bg-background-secondary-default") : uN,
+ className: t === r ? Pi(SN, "bg-background-secondary-default") : SN,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -39318,7 +39419,7 @@ function Rue({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function zue({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function Gue({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, L.useRef)(null), [a, o] = (0, L.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -39332,14 +39433,14 @@ function zue({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, R.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ey, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: TO,
- children: /* @__PURE__ */ (0, R.jsxs)(Cb, {
+ className: gO,
+ children: /* @__PURE__ */ (0, R.jsxs)(bb, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
@@ -39355,16 +39456,16 @@ function zue({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, R.jsx)(WO, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, R.jsx)(FO, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, R.jsx)(ck, {
+ children: [/* @__PURE__ */ (0, R.jsx)($O, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, R.jsx)(oN, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, R.jsx)(vN, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
@@ -39380,7 +39481,7 @@ function zue({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function Bue({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function Kue({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
title: e.line,
@@ -39399,15 +39500,15 @@ function Bue({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = dN(t, e);
- return /* @__PURE__ */ (0, R.jsx)(ck, {
+ let n = CN(t, e);
+ return /* @__PURE__ */ (0, R.jsx)($O, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, R.jsx)(oN, { provider: e.provider }),
+ /* @__PURE__ */ (0, R.jsx)(vN, { provider: e.provider }),
/* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -39423,22 +39524,22 @@ function Bue({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, R.jsx)(WO, { children: Lue }),
+ }) : /* @__PURE__ */ (0, R.jsx)(FO, { children: Uue }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, R.jsx)(qO, {
+ }), /* @__PURE__ */ (0, R.jsx)(RO, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, R.jsx)(WO, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, R.jsx)(FO, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function Vue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function que({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, L.useState)(""), [s, c] = (0, L.useState)(""), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(!1), [p, m] = (0, L.useState)(null), [h, g] = (0, L.useState)(-1), _ = (0, L.useRef)(null), v = (0, L.useRef)(null), [y, b] = (0, L.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, L.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, L.useState)(""), [T, E] = (0, L.useState)(0);
(0, L.useEffect)(() => {
let e = a.trim();
@@ -39450,18 +39551,18 @@ function Vue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
return () => clearTimeout(t);
}, [a]);
let D = Zn({
- queryKey: Cle(l),
- queryFn: ({ signal: e }) => Lle(l, e),
+ queryKey: jle(l),
+ queryFn: ({ signal: e }) => Ule(l, e),
enabled: l.length > 0 && d
}), O = (0, L.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = ik({
- queryKey: Sle,
- queryFn: ({ signal: e }) => Ile(e),
- start: (e) => Rle([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = YO({
+ queryKey: Ale,
+ queryFn: ({ signal: e }) => Hle(e),
+ start: (e) => Wle([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(H(e)),
onFinish: (e) => {
@@ -39495,14 +39596,14 @@ function Vue({ 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: dN(t, e)
+ key: CN(t, e)
})).filter((e) => !x.has(e.key))), ae = Qn({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await zle(r.candidate);
+ let e = await Gle(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${H(e)}`);
@@ -39510,7 +39611,7 @@ function Vue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await kM(n);
+ await EM(n);
} catch (e) {
t.push(H(e));
}
@@ -39520,7 +39621,7 @@ function Vue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (zM(), e.failures.length) {
+ if (IM(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -39549,15 +39650,15 @@ function Vue({ 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, R.jsx)(Sk, {
+ children: [/* @__PURE__ */ (0, R.jsx)(pk, {
"aria-label": "来源链接、名字或 id",
- placeholder: Pue,
+ placeholder: Bue,
value: a,
leadingIcon: ht,
isDisabled: n,
onChange: o,
onKeyDown: ne
- }), P ? /* @__PURE__ */ (0, R.jsx)(Rue, {
+ }), P ? /* @__PURE__ */ (0, R.jsx)(Wue, {
field: _,
menu: v,
options: O,
@@ -39567,7 +39668,7 @@ function Vue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: F
}) : null]
}),
- /* @__PURE__ */ (0, R.jsx)(zue, {
+ /* @__PURE__ */ (0, R.jsx)(Gue, {
credentials: t,
hidden: y,
onHidden: b,
@@ -39585,9 +39686,9 @@ function Vue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, R.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, R.jsx)(LO, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, R.jsx)(OO, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? Fue : Iue),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? Vue : Hue),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, R.jsx)(W, {
@@ -39599,8 +39700,8 @@ function Vue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
re.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, R.jsx)(KO, { children: "查找结果" }),
- re.map((e, t) => /* @__PURE__ */ (0, R.jsx)(Bue, {
+ /* @__PURE__ */ (0, R.jsx)(LO, { children: "查找结果" }),
+ re.map((e, t) => /* @__PURE__ */ (0, R.jsx)(Kue, {
row: e,
at: t,
hidden: y,
@@ -39655,16 +39756,16 @@ function Vue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var Hue = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, fN = (e) => e.alias;
-function Uue(e, t, n) {
+var Jue = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, wN = (e) => e.alias;
+function Yue(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 pN({ sources: e, name: t, canonicalKey: n }) {
+function TN({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, R.jsx)(sN, {
- group: Uue(e, t, n),
+ children: [/* @__PURE__ */ (0, R.jsx)(yN, {
+ group: Yue(e, t, n),
name: t
}), /* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-medium",
@@ -39672,15 +39773,15 @@ function pN({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function Xue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
let [a, o] = (0, L.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, L.useState)(""), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), p = Qn({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await MM(n.canonical, n.alias);
+ await kM(n.canonical, n.alias);
} catch (n) {
- throw t && zM(), Error(`${H(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && IM(), Error(`${H(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -39690,19 +39791,19 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), zM(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), IM(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(H(e))
}), m = Qn({
- mutationFn: (e) => MM(e.canonical, e.alias),
+ mutationFn: (e) => kM(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), zM(), i("已保存创作者别名");
+ c(""), u(""), f(""), IM(), i("已保存创作者别名");
},
onError: (e) => c(H(e))
}), h = Qn({
- mutationFn: (e) => Ble(e),
+ mutationFn: (e) => Kle(e),
onSuccess: () => {
- c(""), zM(), i("已移除创作者别名");
+ c(""), IM(), i("已移除创作者别名");
},
onError: (e) => c(H(e))
}), g = (e, t) => {
@@ -39712,7 +39813,7 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(fN(e))), v = t.length > 0 && _.length === t.length, y = G(p.isPending);
+ }, _ = t.filter((e) => a.has(wN(e))), v = t.length > 0 && _.length === t.length, y = G(p.isPending);
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: Xi({
padding: "none",
@@ -39725,10 +39826,10 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, R.jsx)(KO, { children: "手动添加别名" }), /* @__PURE__ */ (0, R.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, R.jsx)(LO, { children: "手动添加别名" }), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, R.jsx)(Sk, {
+ /* @__PURE__ */ (0, R.jsx)(pk, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -39736,7 +39837,7 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, R.jsx)(Sk, {
+ /* @__PURE__ */ (0, R.jsx)(pk, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -39757,13 +39858,13 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, R.jsx)(GO, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, R.jsx)(IO, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, R.jsx)(KO, { children: "待合并" }),
+ /* @__PURE__ */ (0, R.jsx)(LO, { children: "待合并" }),
/* @__PURE__ */ (0, R.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -39785,44 +39886,44 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, R.jsx)(dk, { children: /* @__PURE__ */ (0, R.jsxs)(lk, {
+ }), /* @__PURE__ */ (0, R.jsx)(nk, { children: /* @__PURE__ */ (0, R.jsxs)(ek, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, R.jsxs)(TS, { children: [
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(xS, { children: [
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "select",
- children: /* @__PURE__ */ (0, R.jsx)(ck, {
+ children: /* @__PURE__ */ (0, R.jsx)($O, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(fN)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(wN)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, R.jsx)(ES, {
+ /* @__PURE__ */ (0, R.jsx)(SS, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, R.jsx)(OS, { children: t.map((e) => {
- let t = fN(e);
- return /* @__PURE__ */ (0, R.jsxs)(jS, {
+ ] }), /* @__PURE__ */ (0, R.jsx)(wS, { children: t.map((e) => {
+ let t = wN(e);
+ return /* @__PURE__ */ (0, R.jsxs)(DS, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, R.jsx)(NS, { children: /* @__PURE__ */ (0, R.jsx)(ck, {
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: /* @__PURE__ */ (0, R.jsx)($O, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -39831,16 +39932,16 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, R.jsx)(NS, { children: /* @__PURE__ */ (0, R.jsx)(pN, {
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: /* @__PURE__ */ (0, R.jsx)(TN, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, R.jsx)(NS, { children: e.alias }),
- /* @__PURE__ */ (0, R.jsx)(NS, { children: /* @__PURE__ */ (0, R.jsx)("span", {
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: e.alias }),
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, R.jsx)(NS, { children: /* @__PURE__ */ (0, R.jsx)(V, {
+ /* @__PURE__ */ (0, R.jsx)(kS, { children: /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
size: "small",
disabled: r,
@@ -39857,27 +39958,27 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, R.jsx)(KO, { children: "已保存别名" }), /* @__PURE__ */ (0, R.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(LO, { children: "已保存别名" }), /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, R.jsx)(dk, { children: /* @__PURE__ */ (0, R.jsxs)(lk, {
+ }), e.length ? /* @__PURE__ */ (0, R.jsx)(nk, { children: /* @__PURE__ */ (0, R.jsxs)(ek, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, R.jsxs)(TS, { children: [/* @__PURE__ */ (0, R.jsx)(ES, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(xS, { children: [/* @__PURE__ */ (0, R.jsx)(SS, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, R.jsx)(ES, {
+ }), /* @__PURE__ */ (0, R.jsx)(SS, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, R.jsx)(OS, { children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)(jS, {
+ })] }), /* @__PURE__ */ (0, R.jsx)(wS, { children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)(DS, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, R.jsx)(NS, { children: /* @__PURE__ */ (0, R.jsx)(pN, {
+ children: [/* @__PURE__ */ (0, R.jsx)(kS, { children: /* @__PURE__ */ (0, R.jsx)(TN, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, R.jsx)(NS, { children: /* @__PURE__ */ (0, R.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, R.jsx)(kS, { children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, R.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",
@@ -39891,7 +39992,7 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
...G(h.isPending),
onClick: () => void b({
title: "移除创作者别名",
- body: Hue(e.name),
+ body: Jue(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -39911,12 +40012,12 @@ function Wue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var Gue = "这些账号信息存在哪里", Kue = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", que = "将清除这个来源在本机和共享副本中的登录凭据。", Jue = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function Yue(e, t) {
+var Zue = "这些账号信息存在哪里", Que = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", $ue = "将清除这个来源在本机和共享副本中的登录凭据。", ede = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function tde(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function Xue({ row: e }) {
- if (VM(e)) return /* @__PURE__ */ (0, R.jsx)(Li, {
+function nde({ row: e }) {
+ if (zM(e)) return /* @__PURE__ */ (0, R.jsx)(Li, {
variant: "caption",
color: "lime",
children: "已配置"
@@ -39925,19 +40026,19 @@ function Xue({ row: e }) {
return /* @__PURE__ */ (0, R.jsx)(Li, {
variant: "caption",
color: t,
- children: Qle[e.requirement] || ""
+ children: rue[e.requirement] || ""
});
}
-function Zue({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, L.useState)({}), [a, o] = (0, L.useState)(""), s = VM(e), c = Qn({
- mutationFn: (t) => Vle(e.provider, t),
+function rde({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, L.useState)({}), [a, o] = (0, L.useState)(""), s = zM(e), c = Qn({
+ mutationFn: (t) => qle(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), K.invalidateQueries({
- queryKey: dM,
+ queryKey: oM,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -39953,17 +40054,17 @@ function Zue({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, R.jsxs)(WO, { children: [e.why, e.where ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [" ", /* @__PURE__ */ (0, R.jsx)(qO, {
+ /* @__PURE__ */ (0, R.jsxs)(FO, { children: [e.why, e.where ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [" ", /* @__PURE__ */ (0, R.jsx)(RO, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, R.jsx)(WO, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, R.jsx)(FO, { children: e.howto }) : null,
/* @__PURE__ */ (0, R.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, R.jsx)(Sk, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, R.jsx)(pk, {
type: "password",
label: n,
- placeholder: Yue(e, n),
+ placeholder: tde(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -39991,7 +40092,7 @@ function Zue({ row: e, readOnly: t, toast: n }) {
...G(c.isPending),
onClick: () => void b({
title: "清除来源凭据",
- body: que,
+ body: $ue,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -39999,9 +40100,9 @@ function Zue({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, R.jsx)(GO, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, R.jsx)(WO, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, R.jsx)(IO, {
+ a ? /* @__PURE__ */ (0, R.jsx)(IO, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, R.jsx)(FO, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, R.jsx)(DO, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -40009,24 +40110,24 @@ function Zue({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
title: "凭据文件权限过宽",
- children: Jue
+ children: ede
}) : null
]
});
}
-function Que({ row: e, readOnly: t, toast: n }) {
+function ide({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, R.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, R.jsx)(oN, { provider: e.provider })
+ children: /* @__PURE__ */ (0, R.jsx)(vN, { provider: e.provider })
}),
/* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, R.jsx)(Xue, { row: e }),
+ /* @__PURE__ */ (0, R.jsx)(nde, { row: e }),
e.missing.length ? /* @__PURE__ */ (0, R.jsx)(Li, {
variant: "caption",
color: "rose",
@@ -40036,13 +40137,13 @@ function Que({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, R.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, R.jsx)(WO, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, R.jsx)(FO, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, R.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, R.jsx)(XO, {
- summary: VM(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !VM(e),
- children: /* @__PURE__ */ (0, R.jsx)(Zue, {
+ children: [r, /* @__PURE__ */ (0, R.jsx)(VO, {
+ summary: zM(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !zM(e),
+ children: /* @__PURE__ */ (0, R.jsx)(rde, {
row: e,
readOnly: t,
toast: n
@@ -40050,8 +40151,8 @@ function Que({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function $ue({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !VM(e));
+function ade({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !zM(e));
return r.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: Xi({
padding: "none",
@@ -40093,7 +40194,7 @@ function $ue({ data: e, readOnly: t, toast: n }) {
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, R.jsx)(Que, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, R.jsx)(ide, {
row: e,
readOnly: t,
toast: n
@@ -40105,13 +40206,13 @@ function $ue({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, R.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: Gue
+ children: Zue
}),
/* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Kue
+ children: Que
}),
- /* @__PURE__ */ (0, R.jsx)(IO, {
+ /* @__PURE__ */ (0, R.jsx)(DO, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -40129,7 +40230,7 @@ function $ue({ data: e, readOnly: t, toast: n }) {
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function mN() {
+function EN() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -40142,24 +40243,24 @@ function mN() {
group: (e) => e
};
}
-function hN(e, t) {
+function DN(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function gN(e, t) {
+function ON(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: hN(n, t[e])
+ [e]: DN(n, t[e])
}));
};
}
-function _N(e) {
+function kN(e) {
return e instanceof Function;
}
-function ede(e) {
+function ode(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function tde(e, t) {
+function sde(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -40169,7 +40270,7 @@ function tde(e, t) {
};
return r(e), n;
}
-function vN(e, t, n) {
+function AN(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -40191,21 +40292,21 @@ function vN(e, t, n) {
return i;
};
}
-function yN(e, t, n, r) {
+function jN(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function nde(e, t, n, r) {
+function cde(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
column: n,
getValue: () => t.getValue(r),
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
- getContext: vN(() => [
+ getContext: AN(() => [
e,
n,
t,
@@ -40217,13 +40318,13 @@ function nde(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), yN(e.options, "debugCells", "cell.getContext"))
+ }), jN(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function rde(e, t, n, r) {
+function lde(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -40240,17 +40341,17 @@ function rde(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: vN(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], yN(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: vN(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: AN(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], jN(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: AN(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, yN(e.options, "debugColumns", "column.getLeafColumns"))
+ }, jN(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var bN = "debugHeaders";
-function xN(e, t, n) {
+var MN = "debugHeaders";
+function NN(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -40278,42 +40379,42 @@ function xN(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var ide = { createTable: (e) => {
- e.getHeaderGroups = vN(() => [
+var ude = { createTable: (e) => {
+ e.getHeaderGroups = AN(() => [
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 SN(t, [
+ return PN(t, [
...a,
...s,
...o
], e);
- }, yN(e.options, bN, "getHeaderGroups")), e.getCenterHeaderGroups = vN(() => [
+ }, jN(e.options, MN, "getHeaderGroups")), e.getCenterHeaderGroups = AN(() => [
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))), SN(t, n, e, "center")), yN(e.options, bN, "getCenterHeaderGroups")), e.getLeftHeaderGroups = vN(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), PN(t, n, e, "center")), jN(e.options, MN, "getCenterHeaderGroups")), e.getLeftHeaderGroups = AN(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => SN(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), yN(e.options, bN, "getLeftHeaderGroups")), e.getRightHeaderGroups = vN(() => [
+ ], (t, n, r) => PN(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), jN(e.options, MN, "getLeftHeaderGroups")), e.getRightHeaderGroups = AN(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => SN(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), yN(e.options, bN, "getRightHeaderGroups")), e.getFooterGroups = vN(() => [e.getHeaderGroups()], (e) => [...e].reverse(), yN(e.options, bN, "getFooterGroups")), e.getLeftFooterGroups = vN(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), yN(e.options, bN, "getLeftFooterGroups")), e.getCenterFooterGroups = vN(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), yN(e.options, bN, "getCenterFooterGroups")), e.getRightFooterGroups = vN(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), yN(e.options, bN, "getRightFooterGroups")), e.getFlatHeaders = vN(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yN(e.options, bN, "getFlatHeaders")), e.getLeftFlatHeaders = vN(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yN(e.options, bN, "getLeftFlatHeaders")), e.getCenterFlatHeaders = vN(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yN(e.options, bN, "getCenterFlatHeaders")), e.getRightFlatHeaders = vN(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yN(e.options, bN, "getRightFlatHeaders")), e.getCenterLeafHeaders = vN(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => PN(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), jN(e.options, MN, "getRightHeaderGroups")), e.getFooterGroups = AN(() => [e.getHeaderGroups()], (e) => [...e].reverse(), jN(e.options, MN, "getFooterGroups")), e.getLeftFooterGroups = AN(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), jN(e.options, MN, "getLeftFooterGroups")), e.getCenterFooterGroups = AN(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), jN(e.options, MN, "getCenterFooterGroups")), e.getRightFooterGroups = AN(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), jN(e.options, MN, "getRightFooterGroups")), e.getFlatHeaders = AN(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), jN(e.options, MN, "getFlatHeaders")), e.getLeftFlatHeaders = AN(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), jN(e.options, MN, "getLeftFlatHeaders")), e.getCenterFlatHeaders = AN(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), jN(e.options, MN, "getCenterFlatHeaders")), e.getRightFlatHeaders = AN(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), jN(e.options, MN, "getRightFlatHeaders")), e.getCenterLeafHeaders = AN(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), yN(e.options, bN, "getCenterLeafHeaders")), e.getLeftLeafHeaders = vN(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), jN(e.options, MN, "getCenterLeafHeaders")), e.getLeftLeafHeaders = AN(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), yN(e.options, bN, "getLeftLeafHeaders")), e.getRightLeafHeaders = vN(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), jN(e.options, MN, "getLeftLeafHeaders")), e.getRightLeafHeaders = AN(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), yN(e.options, bN, "getRightLeafHeaders")), e.getLeafHeaders = vN(() => [
+ }), jN(e.options, MN, "getRightLeafHeaders")), e.getLeafHeaders = AN(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -40321,9 +40422,9 @@ var ide = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), yN(e.options, bN, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), jN(e.options, MN, "getLeafHeaders"));
} };
-function SN(e, t, n, r) {
+function PN(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;
@@ -40341,7 +40442,7 @@ function SN(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 = xN(n, c, {
+ let i = NN(n, c, {
id: [
r,
t,
@@ -40358,7 +40459,7 @@ function SN(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) => xN(n, e, {
+ s(t.map((e, t) => NN(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -40376,7 +40477,7 @@ function SN(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var ade = (e, t, n, r, i, a, o) => {
+var dde = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -40397,7 +40498,7 @@ var ade = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => tde(s.subRows, (e) => e.subRows),
+ getLeafRows: () => sde(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -40408,95 +40509,95 @@ var ade = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: vN(() => [e.getAllLeafColumns()], (t) => t.map((t) => nde(e, s, t, t.id)), yN(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: vN(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), yN(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: AN(() => [e.getAllLeafColumns()], (t) => t.map((t) => cde(e, s, t, t.id)), jN(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: AN(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), jN(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
let n = e._features[t];
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, ode = { createColumn: (e, t) => {
+}, fde = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, CN = (e, t, n) => {
+} }, FN = (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));
};
-CN.autoRemove = (e) => NN(e);
-var wN = (e, t, n) => {
+FN.autoRemove = (e) => GN(e);
+var IN = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-wN.autoRemove = (e) => NN(e);
-var TN = (e, t, n) => {
+IN.autoRemove = (e) => GN(e);
+var LN = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-TN.autoRemove = (e) => NN(e);
-var EN = (e, t, n) => e.getValue(t)?.includes(n);
-EN.autoRemove = (e) => NN(e);
-var DN = (e, t, n) => !n.some((n) => {
+LN.autoRemove = (e) => GN(e);
+var RN = (e, t, n) => e.getValue(t)?.includes(n);
+RN.autoRemove = (e) => GN(e);
+var zN = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-DN.autoRemove = (e) => NN(e) || !(e != null && e.length);
-var ON = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-ON.autoRemove = (e) => NN(e) || !(e != null && e.length);
-var kN = (e, t, n) => e.getValue(t) === n;
-kN.autoRemove = (e) => NN(e);
-var AN = (e, t, n) => e.getValue(t) == n;
-AN.autoRemove = (e) => NN(e);
-var jN = (e, t, n) => {
+zN.autoRemove = (e) => GN(e) || !(e != null && e.length);
+var BN = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+BN.autoRemove = (e) => GN(e) || !(e != null && e.length);
+var VN = (e, t, n) => e.getValue(t) === n;
+VN.autoRemove = (e) => GN(e);
+var HN = (e, t, n) => e.getValue(t) == n;
+HN.autoRemove = (e) => GN(e);
+var UN = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-jN.resolveFilterValue = (e) => {
+UN.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];
-}, jN.autoRemove = (e) => NN(e) || NN(e[0]) && NN(e[1]);
-var MN = {
- includesString: CN,
- includesStringSensitive: wN,
- equalsString: TN,
- arrIncludes: EN,
- arrIncludesAll: DN,
- arrIncludesSome: ON,
- equals: kN,
- weakEquals: AN,
- inNumberRange: jN
+}, UN.autoRemove = (e) => GN(e) || GN(e[0]) && GN(e[1]);
+var WN = {
+ includesString: FN,
+ includesStringSensitive: IN,
+ equalsString: LN,
+ arrIncludes: RN,
+ arrIncludesAll: zN,
+ arrIncludesSome: BN,
+ equals: VN,
+ weakEquals: HN,
+ inNumberRange: UN
};
-function NN(e) {
+function GN(e) {
return e == null || e === "";
}
-var sde = {
+var pde = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: gN("columnFilters", e),
+ onColumnFiltersChange: ON("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? MN.includesString : typeof n == "number" ? MN.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? MN.equals : Array.isArray(n) ? MN.arrIncludes : MN.weakEquals;
- }, e.getFilterFn = () => _N(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? MN[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" ? WN.includesString : typeof n == "number" ? WN.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? WN.equals : Array.isArray(n) ? WN.arrIncludes : WN.weakEquals;
+ }, e.getFilterFn = () => kN(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? WN[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 = hN(n, i ? i.value : void 0);
- if (PN(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = DN(n, i ? i.value : void 0);
+ if (KN(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -40511,19 +40612,19 @@ var sde = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => hN(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => DN(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && PN(t.getFilterFn(), e.value, t));
+ return !(t && KN(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 PN(e, t, n) {
+function KN(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var FN = {
+var qN = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -40559,7 +40660,7 @@ var FN = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!ede(n)) return;
+ if (!ode(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -40567,7 +40668,7 @@ var FN = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, cde = {
+}, mde = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -40580,7 +40681,7 @@ var FN = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: gN("grouping", e),
+ onGroupingChange: ON("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -40593,11 +40694,11 @@ var FN = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return FN.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return FN.extent;
+ if (typeof n == "number") return qN.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return qN.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return _N(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? FN[e.columnDef.aggregationFn];
+ return kN(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? qN[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -40619,27 +40720,27 @@ var FN = {
};
}
};
-function lde(e, t, n) {
+function hde(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var ude = {
+var gde = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: gN("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: ON("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = vN((e) => [VN(t, e)], (t) => t.findIndex((t) => t.id === e.id), yN(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => VN(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = VN(t, n);
+ e.getIndex = AN((e) => [$N(t, e)], (t) => t.findIndex((t) => t.id === e.id), jN(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => $N(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = $N(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 = vN(() => [
+ }, e._getOrderColumnsFn = AN(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -40654,18 +40755,18 @@ var ude = {
}
i = [...i, ...n];
}
- return lde(i, t, n);
- }, yN(e.options, "debugTable", "_getOrderColumnsFn"));
+ return hde(i, t, n);
+ }, jN(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, IN = () => ({
+}, JN = () => ({
left: [],
right: []
-}), dde = {
+}), _de = {
getInitialState: (e) => ({
- columnPinning: IN(),
+ columnPinning: JN(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: gN("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: ON("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -40689,75 +40790,75 @@ var ude = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = vN(() => [
+ e.getCenterVisibleCells = AN(() => [
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));
- }, yN(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = vN(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, jN(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = AN(() => [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"
- })), yN(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = vN(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), jN(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = AN(() => [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"
- })), yN(t.options, "debugRows", "getRightVisibleCells"));
+ })), jN(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 ? IN() : e.initialState?.columnPinning ?? IN()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? JN() : e.initialState?.columnPinning ?? JN()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = vN(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yN(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = vN(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yN(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = vN(() => [
+ }, e.getLeftLeafColumns = AN(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), jN(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = AN(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), jN(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = AN(() => [
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));
- }, yN(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, jN(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function fde(e) {
+function vde(e) {
return e || (typeof document < "u" ? document : null);
}
-var LN = {
+var YN = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, RN = () => ({
+}, XN = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), pde = {
- getDefaultColumnDef: () => LN,
+}), yde = {
+ getDefaultColumnDef: () => YN,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: RN(),
+ columnSizingInfo: XN(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: gN("columnSizing", e),
- onColumnSizingInfoChange: gN("columnSizingInfo", e)
+ onColumnSizingChange: ON("columnSizing", e),
+ onColumnSizingInfoChange: ON("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? LN.minSize, n ?? e.columnDef.size ?? LN.size), e.columnDef.maxSize ?? LN.maxSize);
- }, e.getStart = vN((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? YN.minSize, n ?? e.columnDef.size ?? YN.size), e.columnDef.maxSize ?? YN.maxSize);
+ }, e.getStart = AN((e) => [
e,
- VN(t, e),
+ $N(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), yN(t.options, "debugColumns", "getStart")), e.getAfter = vN((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), jN(t.options, "debugColumns", "getStart")), e.getAfter = AN((e) => [
e,
- VN(t, e),
+ $N(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), yN(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), jN(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -40779,8 +40880,8 @@ var LN = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), BN(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 = BN(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), QN(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 = QN(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) => {
@@ -40805,7 +40906,7 @@ var LN = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = fde(n), m = {
+ }, p = vde(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -40815,8 +40916,8 @@ var LN = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = mde() ? { passive: !1 } : !1;
- BN(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = bde() ? { passive: !1 } : !1;
+ QN(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,
@@ -40832,12 +40933,12 @@ var LN = {
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 ? RN() : e.initialState.columnSizingInfo ?? RN());
+ e.setColumnSizingInfo(t ? XN() : e.initialState.columnSizingInfo ?? XN());
}, 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;
}
-}, zN = null;
-function mde() {
- if (typeof zN == "boolean") return zN;
+}, ZN = null;
+function bde() {
+ if (typeof ZN == "boolean") return ZN;
let e = !1;
try {
let t = { get passive() {
@@ -40847,17 +40948,17 @@ function mde() {
} catch {
e = !1;
}
- return zN = e, zN;
+ return ZN = e, ZN;
}
-function BN(e) {
+function QN(e) {
return e.type === "touchstart";
}
-var hde = {
+var xde = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: gN("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: ON("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -40872,7 +40973,7 @@ var hde = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = vN(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), yN(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = vN(() => [
+ e._getAllVisibleCells = AN(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), jN(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = AN(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -40880,10 +40981,10 @@ var hde = {
...e,
...t,
...n
- ], yN(t.options, "debugRows", "getVisibleCells"));
+ ], jN(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => vN(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), yN(e.options, "debugColumns", t));
+ let t = (t, n) => AN(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), jN(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) => {
@@ -40896,20 +40997,20 @@ var hde = {
};
}
};
-function VN(e, t) {
+function $N(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var gde = { createTable: (e) => {
+var Sde = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, _de = {
+} }, Cde = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: gN("globalFilter", e),
+ onGlobalFilterChange: ON("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -40921,22 +41022,22 @@ var gde = { 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 = () => MN.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => WN.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return _N(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? MN[t];
+ return kN(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? WN[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, vde = {
+}, wde = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: gN("expanded", e),
+ onExpandedChange: ON("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -41007,18 +41108,18 @@ var gde = { createTable: (e) => {
};
};
}
-}, HN = 0, UN = 10, WN = () => ({
- pageIndex: HN,
- pageSize: UN
-}), yde = {
+}, eP = 0, tP = 10, nP = () => ({
+ pageIndex: eP,
+ pageSize: tP
+}), Tde = {
getInitialState: (e) => ({
...e,
pagination: {
- ...WN(),
+ ...nP(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: gN("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: ON("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -41034,11 +41135,11 @@ var gde = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => hN(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? WN() : e.initialState.pagination ?? WN());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => DN(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? nP() : e.initialState.pagination ?? nP());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = hN(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = DN(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
@@ -41046,13 +41147,13 @@ var gde = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? HN : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? HN);
+ e.setPageIndex(t ? eP : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? eP);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? UN : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? UN);
+ e.setPageSize(t ? tP : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? tP);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, hN(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, DN(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -41060,28 +41161,28 @@ var gde = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = hN(t, e.options.pageCount ?? -1);
+ let r = DN(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = vN(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = AN(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, yN(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, jN(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;
}
-}, GN = () => ({
+}, rP = () => ({
top: [],
bottom: []
-}), bde = {
+}), Ede = {
getInitialState: (e) => ({
- rowPinning: GN(),
+ rowPinning: rP(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: gN("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: ON("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -41120,7 +41221,7 @@ var gde = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? GN() : e.initialState?.rowPinning ?? GN()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? rP() : e.initialState?.rowPinning ?? rP()), 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) => {
@@ -41129,22 +41230,22 @@ var gde = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = vN(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), yN(e.options, "debugRows", "getTopRows")), e.getBottomRows = vN(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), yN(e.options, "debugRows", "getBottomRows")), e.getCenterRows = vN(() => [
+ })), e.getTopRows = AN(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), jN(e.options, "debugRows", "getTopRows")), e.getBottomRows = AN(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), jN(e.options, "debugRows", "getBottomRows")), e.getCenterRows = AN(() => [
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));
- }, yN(e.options, "debugRows", "getCenterRows"));
+ }, jN(e.options, "debugRows", "getCenterRows"));
}
-}, xde = {
+}, Dde = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: gN("rowSelection", e),
+ onRowSelectionChange: ON("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -41163,21 +41264,21 @@ var gde = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- KN(i, t.id, r, !0, e);
+ iP(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = vN(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? qN(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = AN(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? aP(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, yN(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = vN(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? qN(e, n) : {
+ }, jN(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = AN(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? aP(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, yN(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = vN(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? qN(e, n) : {
+ }, jN(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = AN(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? aP(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, yN(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, jN(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 = () => {
@@ -41201,17 +41302,17 @@ var gde = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return KN(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return iP(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return JN(e, n);
+ return oP(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return YN(e, n) === "some";
+ return sP(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return YN(e, n) === "all";
+ return sP(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) => {
@@ -41219,16 +41320,16 @@ var gde = { createTable: (e) => {
};
};
}
-}, KN = (e, t, n, r, i) => {
+}, iP = (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) => KN(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) => iP(e, t.id, n, r, i));
};
-function qN(e, t) {
+function aP(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = JN(e, n);
+ let o = oP(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -41241,32 +41342,32 @@ function qN(e, t) {
rowsById: i
};
}
-function JN(e, t) {
+function oP(e, t) {
return t[e.id] ?? !1;
}
-function YN(e, t, n) {
+function sP(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() && (JN(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = YN(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (oP(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = sP(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var XN = /([0-9]+)/gm, ZN = (e, t, n) => aP(iP(e.getValue(n)).toLowerCase(), iP(t.getValue(n)).toLowerCase()), QN = (e, t, n) => aP(iP(e.getValue(n)), iP(t.getValue(n))), $N = (e, t, n) => rP(iP(e.getValue(n)).toLowerCase(), iP(t.getValue(n)).toLowerCase()), eP = (e, t, n) => rP(iP(e.getValue(n)), iP(t.getValue(n))), tP = (e, t, n) => {
+var cP = /([0-9]+)/gm, lP = (e, t, n) => _P(gP(e.getValue(n)).toLowerCase(), gP(t.getValue(n)).toLowerCase()), uP = (e, t, n) => _P(gP(e.getValue(n)), gP(t.getValue(n))), dP = (e, t, n) => hP(gP(e.getValue(n)).toLowerCase(), gP(t.getValue(n)).toLowerCase()), fP = (e, t, n) => hP(gP(e.getValue(n)), gP(t.getValue(n))), pP = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, nP = (e, t, n) => rP(e.getValue(n), t.getValue(n));
-function rP(e, t) {
+}, mP = (e, t, n) => hP(e.getValue(n), t.getValue(n));
+function hP(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function iP(e) {
+function gP(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function aP(e, t) {
- let n = e.split(XN).filter(Boolean), r = t.split(XN).filter(Boolean);
+function _P(e, t) {
+ let n = e.split(cP).filter(Boolean), r = t.split(cP).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])) {
@@ -41280,22 +41381,22 @@ function aP(e, t) {
}
return n.length - r.length;
}
-var oP = {
- alphanumeric: ZN,
- alphanumericCaseSensitive: QN,
- text: $N,
- textCaseSensitive: eP,
- datetime: tP,
- basic: nP
-}, sP = [
- ide,
- hde,
+var vP = {
+ alphanumeric: lP,
+ alphanumericCaseSensitive: uP,
+ text: dP,
+ textCaseSensitive: fP,
+ datetime: pP,
+ basic: mP
+}, yP = [
ude,
- dde,
- ode,
- sde,
+ xde,
gde,
_de,
+ fde,
+ pde,
+ Sde,
+ Cde,
{
getInitialState: (e) => ({
sorting: [],
@@ -41306,7 +41407,7 @@ var oP = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: gN("sorting", e),
+ onSortingChange: ON("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -41314,13 +41415,13 @@ var oP = {
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 oP.datetime;
- if (typeof n == "string" && (r = !0, n.split(XN).length > 1)) return oP.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return vP.datetime;
+ if (typeof n == "string" && (r = !0, n.split(cP).length > 1)) return vP.alphanumeric;
}
- return r ? oP.text : oP.basic;
+ return r ? vP.text : vP.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return _N(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? oP[e.columnDef.sortingFn];
+ return kN(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? vP[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -41357,15 +41458,15 @@ var oP = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- cde,
- vde,
- yde,
- bde,
- xde,
- pde
+ mde,
+ wde,
+ Tde,
+ Ede,
+ Dde,
+ yde
];
-function cP(e) {
- let t = [...sP, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function bP(e) {
+ let t = [...yP, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -41391,7 +41492,7 @@ function cP(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = hN(e, n.options);
+ let t = DN(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -41406,7 +41507,7 @@ function cP(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: vN(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: AN(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -41417,20 +41518,20 @@ function cP(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), yN(e, "debugColumns", "_getDefaultColumnDef")),
+ }), jN(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: vN(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: AN(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = rde(n, e, i, r), o = e;
+ let a = lde(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, yN(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: vN(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), yN(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: vN(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), yN(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: vN(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), yN(e, "debugColumns", "getAllLeafColumns")),
+ }, jN(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: AN(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), jN(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: AN(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), jN(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: AN(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), jN(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -41440,8 +41541,8 @@ function cP(e) {
}
return n;
}
-function lP() {
- return (e) => vN(() => [e.options.data], (t) => {
+function xP() {
+ return (e) => AN(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -41450,7 +41551,7 @@ function lP() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = ade(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = dde(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -41459,9 +41560,9 @@ function lP() {
return o;
};
return n.rows = r(t), n;
- }, yN(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, jN(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function uP(e) {
+function SP(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -41472,8 +41573,8 @@ function uP(e) {
rowsById: e.rowsById
};
}
-function dP(e) {
- return (e) => vN(() => [
+function CP(e) {
+ return (e) => AN(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -41486,7 +41587,7 @@ function dP(e) {
rows: a,
flatRows: o,
rowsById: s
- } : uP({
+ } : SP({
rows: a,
flatRows: o,
rowsById: s
@@ -41495,32 +41596,32 @@ function dP(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, yN(e.options, "debugTable", "getPaginationRowModel"));
+ }, jN(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function fP(e, t) {
- return e ? pP(e) ? /*#__PURE__*/ L.createElement(e, t) : e : null;
+function wP(e, t) {
+ return e ? TP(e) ? /*#__PURE__*/ L.createElement(e, t) : e : null;
}
-function pP(e) {
- return mP(e) || typeof e == "function" || hP(e);
+function TP(e) {
+ return EP(e) || typeof e == "function" || DP(e);
}
-function mP(e) {
+function EP(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function hP(e) {
+function DP(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function gP(e) {
+function OP(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = L.useState(() => ({ current: cP(t) })), [r, i] = L.useState(() => n.current.initialState);
+ }, [n] = L.useState(() => ({ current: bP(t) })), [r, i] = L.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -41535,7 +41636,7 @@ function gP(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var _P = Fi({
+var kP = Fi({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -41597,8 +41698,8 @@ var _P = Fi({
}
}
});
-function vP({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = _P[t];
+function AP({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = kP[t];
return /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
className: Pi("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Pi("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"),
@@ -41608,12 +41709,12 @@ function vP({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function yP({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, R.jsx)(nne, {
+function jP({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, R.jsx)(one, {
ref: i,
...a,
className: (t) => Pi("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, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(vP, {
+ children: (e) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(AP, {
state: e,
size: n,
shape: r
@@ -41625,50 +41726,50 @@ function yP({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var bP = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", xP = (0, L.createContext)({});
+var MP = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", NP = (0, L.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function SP(e) {
+function PP(e) {
let t = (0, L.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 CP = typeof window < "u" ? L.useLayoutEffect : L.useEffect, wP = /* @__PURE__ */ (0, L.createContext)(null), TP = (0, L.createContext)({
+var FP = typeof window < "u" ? L.useLayoutEffect : L.useEffect, IP = /* @__PURE__ */ (0, L.createContext)(null), LP = (0, L.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function EP(e, t) {
+function RP(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function DP(...e) {
+function zP(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = EP(e, t);
+ let r = RP(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() : EP(e[t], null);
+ typeof n == "function" ? n() : RP(e[t], null);
}
};
};
}
-function OP(...e) {
- return L.useCallback(DP(...e), e);
+function BP(...e) {
+ return L.useCallback(zP(...e), e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var kP = class extends L.Component {
+var VP = class extends L.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.childRef.current;
- if (fE(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = fE(e) && e.offsetWidth || 0, r = fE(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ if (rE(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = rE(e) && e.offsetWidth || 0, r = rE(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;
@@ -41678,7 +41779,7 @@ var kP = class extends L.Component {
return this.props.children;
}
};
-function AP({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
+function HP({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
let o = (0, L.useId)(), s = (0, L.useRef)(null), c = (0, L.useRef)({
width: 0,
height: 0,
@@ -41687,7 +41788,7 @@ function AP({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: l } = (0, L.useContext)(TP), u = OP(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ }), { nonce: l } = (0, L.useContext)(LP), u = BP(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
return (0, L.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;
@@ -41707,7 +41808,7 @@ function AP({ 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, R.jsx)(kP, {
+ }, [t]), (0, R.jsx)(VP, {
isPresent: t,
childRef: s,
sizeRef: c,
@@ -41717,9 +41818,9 @@ function AP({ 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 jP = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = SP(MP), d = (0, L.useId)(), f = (0, L.useRef)(n), p = (0, L.useRef)(r);
- CP(() => {
+var UP = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = PP(WP), d = (0, L.useId)(), f = (0, L.useRef)(n), p = (0, L.useRef)(r);
+ FP(() => {
f.current = n, p.current = r;
});
let m = !0, h = (0, L.useMemo)(() => (m = !1, {
@@ -41744,25 +41845,25 @@ var jP = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i,
u.forEach((e, t) => u.set(t, !1));
}, [n]), L.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, R.jsx)(AP, {
+ }, [n]), e = (0, R.jsx)(HP, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
anchorY: c,
root: l,
children: e
- }), (0, R.jsx)(wP.Provider, {
+ }), (0, R.jsx)(IP.Provider, {
value: h,
children: e
});
};
-function MP() {
+function WP() {
return /* @__PURE__ */ new Map();
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function NP(e = !0) {
- let t = (0, L.useContext)(wP);
+function GP(e = !0) {
+ let t = (0, L.useContext)(IP);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, L.useId)();
(0, L.useEffect)(() => {
@@ -41775,16 +41876,16 @@ function NP(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function PP() {
- return FP((0, L.useContext)(wP));
+function KP() {
+ return qP((0, L.useContext)(IP));
}
-function FP(e) {
+function qP(e) {
return e === null || e.isPresent;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var IP = (e) => e.key || "";
-function LP(e) {
+var JP = (e) => e.key || "";
+function YP(e) {
let t = [];
return L.Children.forEach(e, (e) => {
(0, L.isValidElement)(e) && t.push(e);
@@ -41792,12 +41893,12 @@ function LP(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var RP = ({ 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] = NP(o), f = (0, L.useMemo)(() => LP(e), [e]), p = o && !u ? [] : f.map(IP), m = (0, L.useRef)(!0), h = (0, L.useRef)(f), g = SP(() => /* @__PURE__ */ new Map()), _ = (0, L.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, L.useState)(f), [b, x] = (0, L.useState)(f);
- CP(() => {
+var XP = ({ 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] = GP(o), f = (0, L.useMemo)(() => YP(e), [e]), p = o && !u ? [] : f.map(JP), m = (0, L.useRef)(!0), h = (0, L.useRef)(f), g = PP(() => /* @__PURE__ */ new Map()), _ = (0, L.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, L.useState)(f), [b, x] = (0, L.useState)(f);
+ FP(() => {
m.current = !1, h.current = f;
for (let e = 0; e < b.length; e++) {
- let t = IP(b[e]);
+ let t = JP(b[e]);
p.includes(t) ? (g.delete(t), _.current.delete(t)) : g.get(t) !== !0 && g.set(t, !1);
}
}, [
@@ -41809,15 +41910,15 @@ var RP = ({ 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 = IP(n);
+ let n = b[t], r = JP(n);
p.includes(r) || (e.splice(t, 0, n), S.push(n));
}
- return a === "wait" && S.length && (e = S), x(LP(e)), y(f), null;
+ return a === "wait" && S.length && (e = S), x(YP(e)), y(f), null;
}
- let { forceRender: C } = (0, L.useContext)(xP);
+ let { forceRender: C } = (0, L.useContext)(NP);
return (0, R.jsx)(R.Fragment, { children: b.map((e) => {
- let v = IP(e), y = o && !u ? !1 : f === b || p.includes(v);
- return (0, R.jsx)(jP, {
+ let v = JP(e), y = o && !u ? !1 : f === b || p.includes(v);
+ return (0, R.jsx)(UP, {
isPresent: y,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -41838,7 +41939,7 @@ var RP = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, v);
}) });
-}, zP = (0, L.createContext)({ strict: !1 }), BP = {
+}, ZP = (0, L.createContext)({ strict: !1 }), QP = {
animation: [
"animate",
"variants",
@@ -41875,98 +41976,98 @@ var RP = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, VP = !1;
-function HP() {
- if (VP) return;
+}, $P = !1;
+function eF() {
+ if ($P) return;
let e = {};
- for (let t in BP) e[t] = { isEnabled: (e) => BP[t].some((t) => !!e[t]) };
- XE(e), VP = !0;
+ for (let t in QP) e[t] = { isEnabled: (e) => QP[t].some((t) => !!e[t]) };
+ VE(e), $P = !0;
}
-function UP() {
- return HP(), dae();
+function tF() {
+ return eF(), bae();
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function WP(e) {
- let t = UP();
+function nF(e) {
+ let t = tF();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- XE(t);
+ VE(t);
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var GP = /* @__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 KP(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || GP.has(e);
+var rF = /* @__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 iF(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || rF.has(e);
}
//#endregion
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
-var qP = /* @__PURE__ */ Ee({ default: () => JP }), JP, YP = we((() => {
- throw JP = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
-})), XP = (e) => !KP(e);
-function ZP(e) {
- typeof e == "function" && (XP = (t) => t.startsWith("on") ? !KP(t) : e(t));
+var aF = /* @__PURE__ */ Ee({ default: () => oF }), oF, sF = we((() => {
+ throw oF = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
+})), cF = (e) => !iF(e);
+function lF(e) {
+ typeof e == "function" && (cF = (t) => t.startsWith("on") ? !iF(t) : e(t));
}
try {
- ZP((YP(), ke(qP)).default);
+ lF((sF(), ke(aF)).default);
} catch {}
-function QP(e, t, n) {
+function uF(e, t, n) {
let r = {};
- for (let i in e) (i !== "values" || typeof e.values != "object") && (qT(e[i]) || (XP(i) || n === !0 && KP(i) || !t && !KP(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
+ for (let i in e) (i !== "values" || typeof e.values != "object") && (RT(e[i]) || (cF(i) || n === !0 && iF(i) || !t && !iF(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 $P({ children: e, isValidProp: t, ...n }) {
- t && ZP(t);
- let r = (0, L.useContext)(TP);
+function dF({ children: e, isValidProp: t, ...n }) {
+ t && lF(t);
+ let r = (0, L.useContext)(LP);
n = {
...r,
...n
- }, n.transition = RT(n.transition, r.transition), n.isStatic = SP(() => n.isStatic);
+ }, n.transition = kT(n.transition, r.transition), n.isStatic = PP(() => n.isStatic);
let i = (0, L.useMemo)(() => n, [
JSON.stringify(n.transition),
n.transformPagePoint,
n.reducedMotion,
n.skipAnimations
]);
- return (0, R.jsx)(TP.Provider, {
+ return (0, R.jsx)(LP.Provider, {
value: i,
children: e
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var eF = /* @__PURE__ */ (0, L.createContext)({});
+var fF = /* @__PURE__ */ (0, L.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function tF(e, t) {
- if (UE(e)) {
+function pF(e, t) {
+ if (PE(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || BE(t) ? t : void 0,
- animate: BE(n) ? n : void 0
+ initial: t === !1 || jE(t) ? t : void 0,
+ animate: jE(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function nF(e) {
- let { initial: t, animate: n } = tF(e, (0, L.useContext)(eF));
+function mF(e) {
+ let { initial: t, animate: n } = pF(e, (0, L.useContext)(fF));
return (0, L.useMemo)(() => ({
initial: t,
animate: n
- }), [rF(t), rF(n)]);
+ }), [hF(t), hF(n)]);
}
-function rF(e) {
+function hF(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var iF = () => ({
+var gF = () => ({
style: {},
transform: {},
transformOrigin: {},
@@ -41974,42 +42075,42 @@ var iF = () => ({
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function aF(e, t, n) {
- for (let r in t) !qT(t[r]) && !xD(r, n) && (e[r] = t[r]);
+function _F(e, t, n) {
+ for (let r in t) !RT(t[r]) && !fD(r, n) && (e[r] = t[r]);
}
-function oF({ transformTemplate: e }, t) {
+function vF({ transformTemplate: e }, t) {
return (0, L.useMemo)(() => {
- let n = iF();
- return gD(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = gF();
+ return sD(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function sF(e, t) {
+function yF(e, t) {
let n = e.style || {}, r = {};
- return aF(r, n, e), Object.assign(r, oF(e, t)), r;
+ return _F(r, n, e), Object.assign(r, vF(e, t)), r;
}
-function cF(e, t) {
- let n = {}, r = sF(e, t);
+function bF(e, t) {
+ let n = {}, r = yF(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 lF = () => ({
- ...iF(),
+var xF = () => ({
+ ...gF(),
attrs: {}
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function uF(e, t, n, r) {
+function SF(e, t, n, r) {
let i = (0, L.useMemo)(() => {
- let n = lF();
- return CD(n, t, TD(r), e.transformTemplate, e.style), {
+ let n = xF();
+ return mD(n, t, gD(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- aF(t, e.style, e), i.style = {
+ _F(t, e.style, e), i.style = {
...t,
...i.style
};
@@ -42018,7 +42119,7 @@ function uF(e, t, n, r) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var dF = [
+var CF = [
"animate",
"circle",
"defs",
@@ -42047,17 +42148,17 @@ var dF = [
];
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function fF(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(dF.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function wF(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(CF.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function pF(e, t, n, { latestValues: r }, i, a = !1, o) {
- let s = (o ?? fF(e) ? uF : cF)(t, r, i, e), c = QP(t, typeof e == "string", a), l = e === L.Fragment ? {} : {
+function TF(e, t, n, { latestValues: r }, i, a = !1, o) {
+ let s = (o ?? wF(e) ? SF : bF)(t, r, i, e), c = uF(t, typeof e == "string", a), l = e === L.Fragment ? {} : {
...c,
...s,
ref: n
- }, { children: u } = t, d = (0, L.useMemo)(() => qT(u) ? u.get() : u, [u]);
+ }, { children: u } = t, d = (0, L.useMemo)(() => RT(u) ? u.get() : u, [u]);
return (0, L.createElement)(e, {
...l,
children: d
@@ -42065,24 +42166,24 @@ function pF(e, t, n, { latestValues: r }, i, a = !1, o) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function mF({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function EF({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: hF(n, r, i, e),
+ latestValues: DF(n, r, i, e),
renderState: t()
};
}
-function hF(e, t, n, r) {
+function DF(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = nO(a[e]);
- let { initial: o, animate: s } = e, c = UE(e), l = WE(e);
+ for (let e in a) i[e] = qD(a[e]);
+ let { initial: o, animate: s } = e, c = PE(e), l = FE(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" && !zE(d)) {
+ if (d && typeof d != "boolean" && !AE(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = UT(e, t[n]);
+ let r = PT(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -42099,19 +42200,19 @@ function hF(e, t, n, r) {
}
return i;
}
-var gF = (e) => (t, n) => {
- let r = (0, L.useContext)(eF), i = (0, L.useContext)(wP), a = () => mF(e, t, r, i);
- return n ? a() : SP(a);
-}, _F = /*@__PURE__*/ gF({
- scrapeMotionValuesFromProps: SD,
- createRenderState: iF
-}), vF = /*@__PURE__*/ gF({
- scrapeMotionValuesFromProps: ED,
- createRenderState: lF
-}), yF = Symbol.for("motionComponentSymbol");
+var OF = (e) => (t, n) => {
+ let r = (0, L.useContext)(fF), i = (0, L.useContext)(IP), a = () => EF(e, t, r, i);
+ return n ? a() : PP(a);
+}, kF = /*@__PURE__*/ OF({
+ scrapeMotionValuesFromProps: pD,
+ createRenderState: gF
+}), AF = /*@__PURE__*/ OF({
+ scrapeMotionValuesFromProps: _D,
+ createRenderState: xF
+}), jF = Symbol.for("motionComponentSymbol");
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function bF(e, t, n) {
+function Ode(e, t, n) {
let r = (0, L.useRef)(n);
(0, L.useInsertionEffect)(() => {
r.current = n;
@@ -42130,16 +42231,16 @@ function bF(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var xF = (0, L.createContext)({});
+var MF = (0, L.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function SF(e) {
+function NF(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 Sde(e, t, n, r, i, a) {
- let { visualElement: o } = (0, L.useContext)(eF), s = (0, L.useContext)(zP), c = (0, L.useContext)(wP), l = (0, L.useContext)(TP), u = l.reducedMotion, d = l.skipAnimations, f = (0, L.useRef)(null), p = (0, L.useRef)(!1);
+function kde(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, L.useContext)(fF), s = (0, L.useContext)(ZP), c = (0, L.useContext)(IP), l = (0, L.useContext)(LP), u = l.reducedMotion, d = l.skipAnimations, f = (0, L.useRef)(null), p = (0, L.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -42150,14 +42251,14 @@ function Sde(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, L.useContext)(xF);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && Cde(f.current, n, i, h);
+ let m = f.current, h = (0, L.useContext)(MF);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && Ade(f.current, n, i, h);
let g = (0, L.useRef)(!1);
(0, L.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
});
- let _ = n[XT], v = (0, L.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
- return CP(() => {
+ let _ = n[VT], v = (0, L.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
+ return FP(() => {
p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
}), (0, L.useEffect)(() => {
m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
@@ -42165,12 +42266,12 @@ function Sde(e, t, n, r, i, a) {
}), !1), m.enteringChildren = void 0);
}), m;
}
-function Cde(e, t, n, r) {
+function Ade(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 : CF(e.parent)), e.projection.setOptions({
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : PF(e.parent)), e.projection.setOptions({
layoutId: i,
layout: a,
- alwaysMeasureLayout: !!o || s && SF(s),
+ alwaysMeasureLayout: !!o || s && NF(s),
visualElement: e,
animationType: typeof a == "string" ? a : "both",
initialPromotionConfig: r,
@@ -42180,46 +42281,46 @@ function Cde(e, t, n, r) {
layoutAnchor: u
});
}
-function CF(e) {
- if (e) return e.options.allowProjection === !1 ? CF(e.parent) : e.projection;
+function PF(e) {
+ if (e) return e.options.allowProjection === !1 ? PF(e.parent) : e.projection;
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function wF(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && WP(r);
- let a = n ? n === "svg" : fF(e), o = a ? vF : _F;
+function FF(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && nF(r);
+ let a = n ? n === "svg" : wF(e), o = a ? AF : kF;
function s(n, s) {
let c, l = {
- ...(0, L.useContext)(TP),
+ ...(0, L.useContext)(LP),
...n,
- layoutId: wde(n)
- }, { isStatic: u } = l, d = nF(n), f = o(n, u);
+ layoutId: jde(n)
+ }, { isStatic: u } = l, d = mF(n), f = o(n, u);
if (!u && typeof window < "u") {
- Tde(l, r);
- let t = Ede(l);
- c = t.MeasureLayout, d.visualElement = Sde(e, f, l, i, t.ProjectionNode, a);
+ Mde(l, r);
+ let t = Nde(l);
+ c = t.MeasureLayout, d.visualElement = kde(e, f, l, i, t.ProjectionNode, a);
}
- return (0, R.jsxs)(eF.Provider, {
+ return (0, R.jsxs)(fF.Provider, {
value: d,
children: [c && d.visualElement ? (0, R.jsx)(c, {
visualElement: d.visualElement,
...l
- }) : null, pF(e, n, bF(f, d.visualElement, s), f, u, t, a)]
+ }) : null, TF(e, n, Ode(f, d.visualElement, s), f, u, t, a)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, L.forwardRef)(s);
- return c[yF] = e, c;
+ return c[jF] = e, c;
}
-function wde({ layoutId: e }) {
- let t = (0, L.useContext)(xP).id;
+function jde({ layoutId: e }) {
+ let t = (0, L.useContext)(NP).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Tde(e, t) {
- (0, L.useContext)(zP).strict;
+function Mde(e, t) {
+ (0, L.useContext)(ZP).strict;
}
-function Ede(e) {
- let { drag: t, layout: n } = UP();
+function Nde(e) {
+ let { drag: t, layout: n } = tF();
if (!t && !n) return {};
let r = {
...t,
@@ -42232,20 +42333,20 @@ function Ede(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Dde(e, t) {
- if (typeof Proxy > "u") return wF;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => wF(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, wF(a, void 0, e, t)), n.get(a)) });
+function Pde(e, t) {
+ if (typeof Proxy > "u") return FF;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => FF(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, FF(a, void 0, e, t)), n.get(a)) });
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Ode = (e, t) => t.isSVG ?? fF(e) ? new Oae(t) : new Sae(t, { allowProjection: e !== L.Fragment }), kde = class extends QE {
+var Fde = (e, t) => t.isSVG ?? wF(e) ? new Lae(t) : new jae(t, { allowProjection: e !== L.Fragment }), Ide = class extends UE {
constructor(e) {
- super(e), e.animationState ||= Nae(e);
+ super(e), e.animationState ||= Hae(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- zE(e) && (this.unmountControls = e.subscribe(this.node));
+ AE(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -42257,11 +42358,11 @@ var Ode = (e, t) => t.isSVG ?? fF(e) ? new Oae(t) : new Sae(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Ade = 0, jde = {
- animation: { Feature: kde },
- exit: { Feature: class extends QE {
+}, Lde = 0, Rde = {
+ animation: { Feature: Ide },
+ exit: { Feature: class extends UE {
constructor() {
- super(...arguments), this.id = Ade++, this.isExitComplete = !1;
+ super(...arguments), this.id = Lde++, this.isExitComplete = !1;
}
update() {
if (!this.node.presenceContext) return;
@@ -42271,7 +42372,7 @@ var Ode = (e, t) => t.isSVG ?? fF(e) ? new Oae(t) : new Sae(t, { allowProjection
if (this.isExitComplete) {
let { initial: e, custom: t } = this.node.getProps();
if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {
- let n = WT(this.node, e, t);
+ let n = FT(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]);
@@ -42296,21 +42397,21 @@ var Ode = (e, t) => t.isSVG ?? fF(e) ? new Oae(t) : new Sae(t, { allowProjection
};
//#endregion
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function TF(e) {
+function IF(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var Mde = (e) => (t) => vE(t) && e(t, TF(t));
+var zde = (e) => (t) => lE(t) && e(t, IF(t));
//#endregion
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function EF(e, t, n, r) {
- return tO(e, t, Mde(n), r);
+function LF(e, t, n, r) {
+ return KD(e, t, zde(n), r);
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var DF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, OF = /*#__PURE__*/ new Set(["auto", "scroll"]), kF = class {
+var RF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, zF = /*#__PURE__*/ new Set(["auto", "scroll"]), BF = 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);
@@ -42318,13 +42419,13 @@ var DF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, OF = /*#__P
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = AF(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = MF(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Coe(e.offset, {
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = VF(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = UF(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Moe(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
if (!t && !n) return;
- let { point: r } = e, { timestamp: i } = YC;
+ let { point: r } = e, { timestamp: i } = zC;
this.history.push({
...r,
timestamp: i
@@ -42332,33 +42433,33 @@ var DF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, OF = /*#__P
let { onStart: a, onMove: o } = this.handlers;
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = AF(t, this.transformPagePoint), qC.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = VF(t, this.transformPagePoint), LC.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 = MF(e.type === "pointercancel" ? this.lastMoveEventInfo : AF(t, this.transformPagePoint), this.history);
+ let a = UF(e.type === "pointercancel" ? this.lastMoveEventInfo : VF(t, this.transformPagePoint), this.history);
this.startEvent && n && n(e, a), r && r(e, a);
- }, !vE(e)) return;
+ }, !lE(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = AF(TF(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = YC;
+ let s = VF(IF(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = zC;
this.history = [{
...c,
timestamp: l
}];
let { onSessionStart: u } = t;
- u && u(e, MF(s, this.history));
+ u && u(e, UF(s, this.history));
let d = {
passive: !0,
capture: !0
};
- this.removeListeners = hC(EF(this.contextWindow, "pointermove", this.handlePointerMove, d), EF(this.contextWindow, "pointerup", this.handlePointerUp, d), EF(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = aC(LF(this.contextWindow, "pointermove", this.handlePointerMove, d), LF(this.contextWindow, "pointerup", this.handlePointerUp, d), LF(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (OF.has(e.overflowX) || OF.has(e.overflowY)) && this.scrollPositions.set(t, {
+ (zF.has(e.overflowX) || zF.has(e.overflowY)) && this.scrollPositions.set(t, {
x: t.scrollLeft,
y: t.scrollTop
}), t = t.parentElement;
@@ -42383,51 +42484,51 @@ var DF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, OF = /*#__P
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), qC.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), LC.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), JC(this.updatePoint);
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), RC(this.updatePoint);
}
};
-function AF(e, t) {
+function VF(e, t) {
return t ? { point: t(e.point) } : e;
}
-function jF(e, t) {
+function HF(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function MF({ point: e }, t) {
+function UF({ point: e }, t) {
return {
point: e,
- delta: jF(e, NF(t)),
- offset: jF(e, Nde(t)),
- velocity: Pde(t, .1)
+ delta: HF(e, WF(t)),
+ offset: HF(e, Bde(t)),
+ velocity: Vde(t, .1)
};
}
-function Nde(e) {
+function Bde(e) {
return e[0];
}
-function NF(e) {
+function WF(e) {
return e[e.length - 1];
}
-function Pde(e, t) {
+function Vde(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = NF(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ vC(t)));) n--;
+ let n = e.length - 1, r = null, i = WF(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ cC(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ vC(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ yC(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ cC(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ lC(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -42440,86 +42541,86 @@ function Pde(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
-function Fde(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? Ow(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Ow(n, e, r.max) : Math.min(e, n)), e;
+function Hde(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? yw(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? yw(n, e, r.max) : Math.min(e, n)), e;
}
-function PF(e, t, n) {
+function GF(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 Ide(e, { top: t, left: n, bottom: r, right: i }) {
+function Ude(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: PF(e.x, n, i),
- y: PF(e.y, t, r)
+ x: GF(e.x, n, i),
+ y: GF(e.y, t, r)
};
}
-function FF(e, t) {
+function KF(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 Lde(e, t) {
+function Wde(e, t) {
return {
- x: FF(e.x, t.x),
- y: FF(e.y, t.y)
+ x: KF(e.x, t.x),
+ y: KF(e.y, t.y)
};
}
-function Rde(e, t) {
- let n = .5, r = PD(e), i = PD(t);
- return i > r ? n = /* @__PURE__ */ gC(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ gC(e.min, e.max - i, t.min)), cC(0, 1, n);
+function Gde(e, t) {
+ let n = .5, r = TD(e), i = TD(t);
+ return i > r ? n = /* @__PURE__ */ oC(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ oC(e.min, e.max - i, t.min)), QS(0, 1, n);
}
-function zde(e, t) {
+function Kde(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 IF = .35;
-function Bde(e = IF) {
- return e === !1 ? e = 0 : e === !0 && (e = IF), {
- x: LF(e, "left", "right"),
- y: LF(e, "top", "bottom")
+var qF = .35;
+function qde(e = qF) {
+ return e === !1 ? e = 0 : e === !0 && (e = qF), {
+ x: JF(e, "left", "right"),
+ y: JF(e, "top", "bottom")
};
}
-function LF(e, t, n) {
+function JF(e, t, n) {
return {
- min: RF(e, t),
- max: RF(e, n)
+ min: YF(e, t),
+ max: YF(e, n)
};
}
-function RF(e, t) {
+function YF(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var Vde = /* @__PURE__ */ new WeakMap(), Hde = class {
+var Jde = /* @__PURE__ */ new WeakMap(), Yde = 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 = RE(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = kE(), 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(TF(e).point), this.stopAnimation();
+ t && this.snapToCursor(IF(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 = Bie(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), XD((e) => {
+ if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Yie(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), VD((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (hw.test(t)) {
+ if (ow.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
- r && (t = PD(r) * (parseFloat(t) / 100));
+ r && (t = TD(r) * (parseFloat(t) / 100));
}
}
this.originPoint[e] = t;
- }), i && qC.update(() => i(e, t), !1, !0), JT(this.visualElement, "transform");
+ }), i && LC.update(() => i(e, t), !1, !0), zT(this.visualElement, "transform");
let { animationState: a } = this.visualElement;
a && a.setActive("whileDrag", !0);
}, o = (e, t) => {
@@ -42528,10 +42629,10 @@ var Vde = /* @__PURE__ */ new WeakMap(), Hde = class {
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- this.currentDirection = Wde(o), this.currentDirection !== null && i && i(this.currentDirection);
+ this.currentDirection = Zde(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 && qC.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && LC.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 = () => {
@@ -42541,7 +42642,7 @@ var Vde = /* @__PURE__ */ new WeakMap(), Hde = class {
y: 0
});
}, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new kF(e, {
+ this.panSession = new BF(e, {
onSessionStart: i,
onStart: a,
onMove: o,
@@ -42551,7 +42652,7 @@ var Vde = /* @__PURE__ */ new WeakMap(), Hde = class {
transformPagePoint: this.visualElement.getTransformPagePoint(),
dragSnapToOrigin: l,
distanceThreshold: n,
- contextWindow: DF(this.visualElement),
+ contextWindow: RF(this.visualElement),
element: this.visualElement.current
});
}
@@ -42561,7 +42662,7 @@ var Vde = /* @__PURE__ */ new WeakMap(), Hde = class {
let { velocity: a } = r;
this.startAnimation(a);
let { onDragEnd: o } = this.getProps();
- o && qC.postRender(() => o(n, r));
+ o && LC.postRender(() => o(n, r));
}
cancel() {
this.isDragging = !1;
@@ -42575,32 +42676,32 @@ var Vde = /* @__PURE__ */ new WeakMap(), Hde = class {
}
updateAxis(e, t, n) {
let { drag: r } = this.getProps();
- if (!n || !BF(e, r, this.currentDirection)) return;
+ if (!n || !ZF(e, r, this.currentDirection)) return;
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
- this.constraints && this.constraints[e] && (a = Fde(a, this.constraints[e], this.elastic[e])), i.set(a);
+ this.constraints && this.constraints[e] && (a = Hde(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 && SF(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? Ide(n.layoutBox, e) : !1, this.elastic = Bde(t), r !== this.constraints && !SF(e) && n && this.constraints && !this.hasMutatedConstraints && XD((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = zde(n.layoutBox[e], this.constraints[e]));
+ e && NF(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? Ude(n.layoutBox, e) : !1, this.elastic = qde(t), r !== this.constraints && !NF(e) && n && this.constraints && !this.hasMutatedConstraints && VD((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Kde(n.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!e || !SF(e)) return !1;
+ if (!e || !NF(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 = gae(n, r.root, this.visualElement.getTransformPagePoint()), a = Lde(r.layout.layoutBox, i);
+ let i = Tae(n, r.root, this.visualElement.getTransformPagePoint()), a = Wde(r.layout.layoutBox, i);
if (t) {
- let e = t(pae(a));
- this.hasMutatedConstraints = !!e, e && (a = $E(e));
+ let e = t(Sae(a));
+ this.hasMutatedConstraints = !!e, e && (a = WE(e));
}
return a;
}
startAnimation(e) {
- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = XD((o) => {
- if (!BF(o, t, this.currentDirection)) return;
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = VD((o) => {
+ if (!ZF(o, t, this.currentDirection)) return;
let c = s && s[o] || {};
(a === !0 || a === o) && (c = {
min: 0,
@@ -42623,65 +42724,65 @@ var Vde = /* @__PURE__ */ new WeakMap(), Hde = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return JT(this.visualElement, e), n.start(BT(e, n, 0, t, this.visualElement, !1));
+ return zT(this.visualElement, e), n.start(jT(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- XD((e) => this.getAxisMotionValue(e).stop());
+ VD((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) {
- XD((t) => {
+ VD((t) => {
let { drag: n } = this.getProps();
- if (!BF(t, n, this.currentDirection)) return;
+ if (!ZF(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] - Ow(n, a, .5) + o);
+ i.set(e[t] - yw(n, a, .5) + o);
}
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!SF(t) || !n || !this.constraints) return;
+ if (!NF(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = {
x: 0,
y: 0
};
- XD((e) => {
+ VD((e) => {
let t = this.getAxisMotionValue(e);
if (t && this.constraints !== !1) {
let n = t.get();
- r[e] = Rde({
+ r[e] = Gde({
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(), XD((t) => {
- if (!BF(t, e, null)) return;
+ this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), VD((t) => {
+ if (!ZF(t, e, null)) return;
let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
- n.set(Ow(i, a, r[t]));
+ n.set(yw(i, a, r[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Vde.set(this.visualElement, this);
- let e = this.visualElement.current, t = EF(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Kie(i);
+ Jde.set(this.visualElement, this);
+ let e = this.visualElement.current, t = LF(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && tae(i);
n && r && !a && this.start(t);
}), n, r = () => {
let { dragConstraints: t } = this.getProps();
- SF(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Ude(e, t.current, () => this.scalePositionWithinConstraints()));
+ NF(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Xde(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), qC.read(r);
- let o = tO(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (XD((t) => {
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), LC.read(r);
+ let o = KD(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (VD((t) => {
let n = this.getAxisMotionValue(t);
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
}), this.visualElement.render());
@@ -42691,7 +42792,7 @@ var Vde = /* @__PURE__ */ new WeakMap(), Hde = class {
};
}
getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = IF, dragMomentum: o = !0 } = e;
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = qF, dragMomentum: o = !0 } = e;
return {
...e,
drag: t,
@@ -42703,7 +42804,7 @@ var Vde = /* @__PURE__ */ new WeakMap(), Hde = class {
};
}
};
-function zF(e) {
+function XF(e) {
let t = !0;
return () => {
if (t) {
@@ -42713,28 +42814,28 @@ function zF(e) {
e();
};
}
-function Ude(e, t, n) {
- let r = jE(e, zF(n)), i = jE(t, zF(n));
+function Xde(e, t, n) {
+ let r = SE(e, XF(n)), i = SE(t, XF(n));
return () => {
r(), i();
};
}
-function BF(e, t, n) {
+function ZF(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function Wde(e, t = 10) {
+function Zde(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 Gde = class extends QE {
+var Qde = class extends UE {
constructor(e) {
- super(e), this.removeGroupControls = mC, this.removeListeners = mC, this.controls = new Hde(e);
+ super(e), this.removeGroupControls = iC, this.removeListeners = iC, this.controls = new Yde(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || mC;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || iC;
}
update() {
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
@@ -42743,31 +42844,31 @@ var Gde = class extends QE {
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, VF = (e) => (t, n) => {
- e && qC.update(() => e(t, n), !1, !0);
-}, Kde = class extends QE {
+}, QF = (e) => (t, n) => {
+ e && LC.update(() => e(t, n), !1, !0);
+}, $de = class extends UE {
constructor() {
- super(...arguments), this.removePointerDownListener = mC;
+ super(...arguments), this.removePointerDownListener = iC;
}
onPointerDown(e) {
- this.session = new kF(e, this.createPanHandlers(), {
+ this.session = new BF(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: DF(this.node)
+ contextWindow: RF(this.node)
});
}
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: VF(e),
- onStart: VF(t),
- onMove: VF(n),
+ onSessionStart: QF(e),
+ onStart: QF(t),
+ onMove: QF(n),
onEnd: (e, t) => {
- delete this.session, r && qC.postRender(() => r(e, t));
+ delete this.session, r && LC.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = EF(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = LF(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -42775,36 +42876,36 @@ var Gde = class extends QE {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, HF = !1, qde = class extends L.Component {
+}, $F = !1, efe = class extends L.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), HF && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), $F && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
this.safeToRemove();
}), i.setOptions({
...i.options,
layoutDependency: this.props.layoutDependency,
onExitComplete: () => this.safeToRemove()
- })), rO.hasEverUpdated = !0;
+ })), JD.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
- }), HF = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || qC.postRender(() => {
+ }), $F = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || LC.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(), pE.postRender(() => {
+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), iE.postRender(() => {
!n.currentAnimation && n.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- HF = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ $F = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
}
safeToRemove() {
let { safeToRemove: e } = this.props;
@@ -42814,41 +42915,41 @@ var Gde = class extends QE {
return null;
}
};
-function UF(e) {
- let [t, n] = NP(), r = (0, L.useContext)(xP);
- return (0, R.jsx)(qde, {
+function eI(e) {
+ let [t, n] = GP(), r = (0, L.useContext)(NP);
+ return (0, R.jsx)(efe, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, L.useContext)(xF),
+ switchLayoutGroup: (0, L.useContext)(MF),
isPresent: t,
safeToRemove: n
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Jde = {
- pan: { Feature: Kde },
+var tfe = {
+ pan: { Feature: $de },
drag: {
- Feature: Gde,
- ProjectionNode: yO,
- MeasureLayout: UF
+ Feature: Qde,
+ ProjectionNode: uO,
+ MeasureLayout: eI
}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function WF(e, t, n) {
+function tI(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && qC.postRender(() => i(t, TF(t)));
+ i && LC.postRender(() => i(t, IF(t)));
}
-var Yde = class extends QE {
+var nfe = class extends UE {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Hie(e, (e, t) => (WF(this.node, t, "Start"), (e) => WF(this.node, e, "End"))));
+ e && (this.unmount = Zie(e, (e, t) => (tI(this.node, t, "Start"), (e) => tI(this.node, e, "End"))));
}
unmount() {}
-}, Xde = class extends QE {
+}, rfe = class extends UE {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -42865,57 +42966,57 @@ var Yde = class extends QE {
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = hC(tO(this.node.current, "focus", () => this.onFocus()), tO(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = aC(KD(this.node.current, "focus", () => this.onFocus()), KD(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function GF(e, t, n) {
+function nI(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 && qC.postRender(() => i(t, TF(t)));
+ i && LC.postRender(() => i(t, IF(t)));
}
-var Zde = class extends QE {
+var ife = class extends UE {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Jie(e, (e, t) => (GF(this.node, t, "Start"), (e, { success: t }) => GF(this.node, e, t ? "End" : "Cancel")), {
+ this.unmount = rae(e, (e, t) => (nI(this.node, t, "Start"), (e, { success: t }) => nI(this.node, e, t ? "End" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, KF = /* @__PURE__ */ new WeakMap(), qF = /* @__PURE__ */ new WeakMap(), Qde = (e) => {
- let t = KF.get(e.target);
+}, rI = /* @__PURE__ */ new WeakMap(), iI = /* @__PURE__ */ new WeakMap(), afe = (e) => {
+ let t = rI.get(e.target);
t && t(e);
-}, $de = (e) => {
- e.forEach(Qde);
+}, ofe = (e) => {
+ e.forEach(afe);
};
-function efe({ root: e, ...t }) {
+function sfe({ root: e, ...t }) {
let n = e || document;
- qF.has(n) || qF.set(n, {});
- let r = qF.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver($de, {
+ iI.has(n) || iI.set(n, {});
+ let r = iI.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(ofe, {
root: e,
...t
})), r[i];
}
-function tfe(e, t, n) {
- let r = efe(t);
- return KF.set(e, n), r.observe(e), () => {
- KF.delete(e), r.unobserve(e);
+function cfe(e, t, n) {
+ let r = sfe(t);
+ return rI.set(e, n), r.observe(e), () => {
+ rI.delete(e), r.unobserve(e);
};
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var nfe = {
+var lfe = {
some: 0,
all: 1
-}, rfe = class extends QE {
+}, ufe = class extends UE {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -42924,7 +43025,7 @@ var nfe = {
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 : nfe[r]
+ threshold: typeof r == "number" ? r : lfe[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -42932,7 +43033,7 @@ var nfe = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = tfe(this.node.current, a, o);
+ this.stopObserver = cfe(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -42944,34 +43045,34 @@ var nfe = {
"amount",
"margin",
"root"
- ].some(ife(e, t)) && this.startObserver();
+ ].some(dfe(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function ife({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function dfe({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
-var afe = {
- inView: { Feature: rfe },
- tap: { Feature: Zde },
- focus: { Feature: Xde },
- hover: { Feature: Yde }
-}, ofe = { layout: {
- ProjectionNode: yO,
- MeasureLayout: UF
-} }, sfe = /*@__PURE__*/ Dde({
- ...jde,
- ...afe,
- ...Jde,
- ...ofe
-}, Ode);
+var ffe = {
+ inView: { Feature: ufe },
+ tap: { Feature: ife },
+ focus: { Feature: rfe },
+ hover: { Feature: nfe }
+}, pfe = { layout: {
+ ProjectionNode: uO,
+ MeasureLayout: eI
+} }, mfe = /*@__PURE__*/ Pde({
+ ...Rde,
+ ...ffe,
+ ...tfe,
+ ...pfe
+}, Fde);
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs
-function JF(e, t, n) {
+function aI(e, t, n) {
(0, L.useInsertionEffect)(() => e.on(t, n), [
e,
t,
@@ -42980,8 +43081,8 @@ function JF(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-motion-value.mjs
-function YF(e) {
- let t = SP(() => LT(e)), { isStatic: n } = (0, L.useContext)(TP);
+function oI(e) {
+ let t = PP(() => OT(e)), { isStatic: n } = (0, L.useContext)(LP);
if (n) {
let [, n] = (0, L.useState)(e);
(0, L.useEffect)(() => t.on("change", n), []);
@@ -42990,28 +43091,28 @@ function YF(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-combine-values.mjs
-function XF(e, t) {
- let n = YF(t()), r = () => n.set(t());
- return r(), CP(() => {
- let t = () => qC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
+function sI(e, t) {
+ let n = oI(t()), r = () => n.set(t());
+ return r(), FP(() => {
+ let t = () => LC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
return () => {
- n.forEach((e) => e()), JC(r);
+ n.forEach((e) => e()), RC(r);
};
}), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-computed.mjs
-function cfe(e) {
- IT.current = [], e();
- let t = XF(IT.current, e);
- return IT.current = void 0, t;
+function hfe(e) {
+ DT.current = [], e();
+ let t = sI(DT.current, e);
+ return DT.current = void 0, t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-transform.mjs
-function ZF(e, t, n, r) {
- if (typeof e == "function") return cfe(e);
- if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return lfe(e, t, n, r);
- let i = typeof t == "function" ? t : iae(t, n, r), a = Array.isArray(e) ? QF(e, i) : QF([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
+function cI(e, t, n, r) {
+ if (typeof e == "function") return hfe(e);
+ if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return gfe(e, t, n, r);
+ let i = typeof t == "function" ? t : pae(t, n, r), a = Array.isArray(e) ? lI(e, i) : lI([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,
@@ -43020,55 +43121,55 @@ function ZF(e, t, n, r) {
...r?.ease ? { ease: r.ease } : {}
}), a;
}
-function QF(e, t) {
- let n = SP(() => []);
- return XF(e, () => {
+function lI(e, t) {
+ let n = PP(() => []);
+ return sI(e, () => {
n.length = 0;
let r = e.length;
for (let t = 0; t < r; t++) n[t] = e[t].get();
return t(n);
});
}
-function lfe(e, t, n, r) {
- let i = SP(() => Object.keys(n)), a = SP(() => ({}));
- for (let o of i) a[o] = ZF(e, t, n[o], r);
+function gfe(e, t, n, r) {
+ let i = PP(() => Object.keys(n)), a = PP(() => ({}));
+ for (let o of i) a[o] = cI(e, t, n[o], r);
return a;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-follow-value.mjs
-function ufe(e, t = {}) {
- let { isStatic: n } = (0, L.useContext)(TP), r = () => qT(e) ? e.get() : e;
- if (n) return ZF(r);
- let i = YF(r());
- return (0, L.useInsertionEffect)(() => aae(i, e, t), [i, JSON.stringify(t)]), i;
+function _fe(e, t = {}) {
+ let { isStatic: n } = (0, L.useContext)(LP), r = () => RT(e) ? e.get() : e;
+ if (n) return cI(r);
+ let i = oI(r());
+ return (0, L.useInsertionEffect)(() => mae(i, e, t), [i, JSON.stringify(t)]), i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-spring.mjs
-function $F(e, t = {}) {
- return ufe(e, {
+function uI(e, t = {}) {
+ return _fe(e, {
type: "spring",
...t
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function dfe() {
- !KE.current && qE();
- let [e] = (0, L.useState)(GE.current);
+function vfe() {
+ !LE.current && RE();
+ let [e] = (0, L.useState)(IE.current);
return e;
}
//#endregion
//#region node_modules/motion/dist/es/react.mjs
-var eI = sfe, tI = "(prefers-reduced-motion: reduce)", ffe = () => matchMedia(tI).matches, pfe = (e) => {
- let t = matchMedia(tI);
+var dI = mfe, fI = "(prefers-reduced-motion: reduce)", yfe = () => matchMedia(fI).matches, bfe = (e) => {
+ let t = matchMedia(fI);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function mfe({ children: e, count: t, label: n }) {
- let r = PP(), i = (0, L.useSyncExternalStore)(pfe, ffe, () => !1), { isFocusVisible: a } = vf(), o = i || a, s = {
+function xfe({ children: e, count: t, label: n }) {
+ let r = KP(), i = (0, L.useSyncExternalStore)(bfe, yfe, () => !1), { isFocusVisible: a } = vf(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
- return /* @__PURE__ */ (0, R.jsxs)(eI.div, {
+ return /* @__PURE__ */ (0, R.jsxs)(dI.div, {
role: "group",
"aria-label": n,
"data-selection-dock": !0,
@@ -43100,13 +43201,13 @@ function mfe({ children: e, count: t, label: n }) {
}), e]
});
}
-function nI({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, R.jsx)(RP, { children: e ? /* @__PURE__ */ (0, R.jsx)(mfe, { ...t }, "selection") : null });
+function pI({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, R.jsx)(XP, { children: e ? /* @__PURE__ */ (0, R.jsx)(xfe, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/follow-manage/add-feed.tsx
-var hfe = "输入女优名,到 JavDB 找她的演员页";
-function gfe(e, t) {
+var Sfe = "输入女优名,到 JavDB 找她的演员页";
+function Cfe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);
if (n.size > 1) return {
@@ -43125,10 +43226,10 @@ function gfe(e, t) {
blocked: !1
};
}
-function _fe({ card: e, picked: t, onPick: n }) {
+function wfe({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, R.jsx)(ck, {
+ children: [/* @__PURE__ */ (0, R.jsx)($O, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, R.jsxs)("span", {
@@ -43149,16 +43250,16 @@ function _fe({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, R.jsx)(qO, {
+ }), /* @__PURE__ */ (0, R.jsx)(RO, {
href: e.url,
children: e.id
})]
});
}
-function vfe({ readOnly: e, toast: t, onAdded: n }) {
+function Tfe({ readOnly: e, toast: t, onAdded: n }) {
let [r, i] = (0, L.useState)(""), [a, o] = (0, L.useState)(null), [s, c] = (0, L.useState)(/* @__PURE__ */ new Set()), l = ia(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => Wle(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => Xle(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -43166,10 +43267,10 @@ function vfe({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => Gle(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => Zle(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? gfe(a, s) : null;
+ }, m = a ? Cfe(a, s) : null;
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: Xi({
padding: "none",
@@ -43184,9 +43285,9 @@ function vfe({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, R.jsx)(Sk, {
+ children: /* @__PURE__ */ (0, R.jsx)(pk, {
"aria-label": "女优名",
- placeholder: hfe,
+ placeholder: Sfe,
value: r,
leadingIcon: ht,
isDisabled: e,
@@ -43209,16 +43310,16 @@ function vfe({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, R.jsx)(KO, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, R.jsx)(_fe, {
+ /* @__PURE__ */ (0, R.jsx)(LO, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, R.jsx)(wfe, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, R.jsx)(WO, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, R.jsx)(WO, {
+ }, e.id)) : /* @__PURE__ */ (0, R.jsx)(FO, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, R.jsx)(FO, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -43245,19 +43346,19 @@ function vfe({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var yfe = Object.fromEntries(Object.entries(hM).map(([e, t]) => [t, e])), rI = 740;
-function bfe() {
+var Efe = Object.fromEntries(Object.entries(uM).map(([e, t]) => [t, e])), mI = 740;
+function Dfe() {
let [e, t] = (0, L.useState)(!1), n = (0, L.useRef)(null), r = (0, L.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < rI));
- r.observe(e), n.current = r, t(e.clientWidth < rI);
+ let r = new ResizeObserver(() => t(e.clientWidth < mI));
+ r.observe(e), n.current = r, t(e.clientWidth < mI);
}, []);
return (0, L.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var xfe = {
+var Ofe = {
select: "选择",
author: "创作者",
source: "来源",
@@ -43266,7 +43367,7 @@ var xfe = {
checked: "上次检查",
actions: "操作"
};
-function iI({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function hI({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, R.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -43303,22 +43404,22 @@ function iI({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function Sfe({ source: e, selected: t, onToggle: n, handlers: r }) {
+function kfe({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- uk(e, e.currentTarget) && n(!t);
+ tk(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, R.jsx)(ck, {
+ /* @__PURE__ */ (0, R.jsx)($O, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, R.jsx)(lN, { source: e }), e.last_error ? /* @__PURE__ */ (0, R.jsx)("small", {
+ children: [/* @__PURE__ */ (0, R.jsx)(xN, { source: e }), e.last_error ? /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -43326,17 +43427,17 @@ function Sfe({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, R.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, R.jsx)(oN, {
+ children: /* @__PURE__ */ (0, R.jsx)(vN, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, R.jsx)(cN, { source: e }),
+ /* @__PURE__ */ (0, R.jsx)(bN, { source: e }),
/* @__PURE__ */ (0, R.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: BM(e)
+ children: LM(e)
}),
- /* @__PURE__ */ (0, R.jsx)(yP, {
+ /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -43366,8 +43467,8 @@ function Sfe({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function Cfe({ 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(_M).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = TM(r, c);
+function Afe({ 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(fM).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = SM(r, c);
return /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
className: Xi({
@@ -43380,7 +43481,7 @@ function Cfe({ 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, R.jsx)(sN, {
+ /* @__PURE__ */ (0, R.jsx)(yN, {
group: e,
name: t
}),
@@ -43401,7 +43502,7 @@ function Cfe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, R.jsx)(oN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, R.jsx)(Oh, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, R.jsx)(vN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, R.jsx)(Oh, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -43431,7 +43532,7 @@ function Cfe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, R.jsx)(Sfe, {
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsx)(kfe, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -43440,37 +43541,37 @@ function Cfe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function wfe(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, L.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [x, S] = (0, L.useState)(/* @__PURE__ */ new Set()), [C, w] = bfe(), [T, E] = (0, L.useState)(""), D = (0, L.useMemo)(() => Mle(_, n, r, v), [
+function jfe(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, L.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [x, S] = (0, L.useState)(/* @__PURE__ */ new Set()), [C, w] = Dfe(), [T, E] = (0, L.useState)(""), D = (0, L.useMemo)(() => Rle(_, n, r, v), [
_,
n,
r,
v
- ]), O = (0, L.useMemo)(() => Nle(D, n, r, v), [
+ ]), O = (0, L.useMemo)(() => zle(D, n, r, v), [
D,
n,
r,
v
- ]), { job: k, running: A, outcome: j, start: M } = ik({
- queryKey: xle,
- queryFn: ({ signal: e }) => Fle(e),
- start: (e) => kM(e),
+ ]), { job: k, running: A, outcome: j, start: M } = YO({
+ queryKey: kle,
+ queryFn: ({ signal: e }) => Vle(e),
+ start: (e) => EM(e),
onError: (e) => E(H(e)),
onFinish: (e) => {
- zM(), h(e.status === "failed" ? e.error || "检查失败" : qle(e));
+ IM(), h(e.status === "failed" ? e.error || "检查失败" : $le(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, ee = (e, t) => m(EM(s, [e], t)), te = (e, t) => m(EM(s, e, t)), P = Qn({
- mutationFn: (e) => jM(e),
+ }, ee = (e, t) => m(CM(s, [e], t)), te = (e, t) => m(CM(s, e, t)), P = Qn({
+ mutationFn: (e) => OM(e),
onSuccess: (e, t) => {
- RM([t]), m(EM(s, [t], !1)), h("已取消关注来源");
+ FM([t]), m(CM(s, [t], !1)), h("已取消关注来源");
},
onError: (e) => E(H(e))
}), F = Qn({
- mutationFn: (e) => AM(e.id, e.enabled),
+ mutationFn: (e) => DM(e.id, e.enabled),
onSuccess: (e, t) => {
- LM(t.id, { enabled: t.enabled }), E("");
+ PM(t.id, { enabled: t.enabled }), E("");
},
onError: (e) => E(H(e))
}), ne = (e) => void b({
@@ -43482,7 +43583,7 @@ function wfe(e) {
}), re = Qn({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
- e.action === "remove" ? await jM(t) : await AM(t, e.action === "enabled");
+ e.action === "remove" ? await OM(t) : await DM(t, e.action === "enabled");
});
return {
...e,
@@ -43491,9 +43592,9 @@ function wfe(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") RM(e.done);
- else for (let t of e.done) LM(t, { enabled: e.action === "enabled" });
- m(EM(s, e.done, !1));
+ if (e.action === "remove") FM(e.done);
+ else for (let t of e.done) PM(t, { enabled: e.action === "enabled" });
+ m(CM(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
E(`${t.length}/${e.ids.length} 个来源未更新:${H(t[0]?.error)}`);
@@ -43506,18 +43607,18 @@ function wfe(e) {
onError: (e) => E(H(e))
}), ie = Qn({
mutationFn: async (e) => {
- let t = ((await Ule()).groups || []).flatMap((e) => [
+ let t = ((await Yle()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await d(t, 6, (t) => Hle(t, e))).filter((e) => !e.ok)
+ failed: (await d(t, 6, (t) => Jle(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (zM(), e.failed.length) {
+ if (IM(), e.failed.length) {
E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -43542,12 +43643,12 @@ function wfe(e) {
readOnly: c
};
let se = oe.current, ce = (0, L.useMemo)(() => {
- let e = mN(), t = (e) => () => xfe[e] || e;
+ let e = EN(), t = (e) => () => Ofe[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, R.jsx)(ck, {
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)($O, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -43559,7 +43660,7 @@ function wfe(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, R.jsx)(sN, {
+ children: [/* @__PURE__ */ (0, R.jsx)(yN, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, R.jsx)("span", {
@@ -43573,7 +43674,7 @@ function wfe(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, R.jsx)(lN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, R.jsx)("small", {
+ children: [/* @__PURE__ */ (0, R.jsx)(xN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -43584,18 +43685,18 @@ function wfe(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, R.jsx)(oN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, R.jsx)(vN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, R.jsx)(cN, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)(bN, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => BM(e.row.original.source)
+ cell: (e) => LM(e.row.original.source)
}),
e.display({
id: "actions",
@@ -43603,7 +43704,7 @@ function wfe(e) {
cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, R.jsx)(yP, {
+ /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: se.readOnly,
@@ -43633,12 +43734,12 @@ function wfe(e) {
})
];
}, [se]), le = (0, L.useMemo)(() => {
- let e = yfe[n];
+ let e = Efe[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), ue = (0, L.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), de = a === "table", I = wM(de ? O.length : D.length, o, i), fe = gP({
+ }, [n, r]), ue = (0, L.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), de = a === "table", I = xM(de ? O.length : D.length, o, i), fe = OP({
data: O,
columns: ce,
getRowId: (e) => String(e.source.id),
@@ -43655,7 +43756,7 @@ function wfe(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(le) : e)[0];
if (!t) return;
- let n = hM[t.id];
+ let n = uM[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -43669,9 +43770,9 @@ function wfe(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : p(n.pageSize);
},
- getCoreRowModel: lP(),
- getPaginationRowModel: dP()
- }), pe = fe.getRowModel().rows, me = de ? pe.map((e) => e.original.source.id) : D.slice(I.start, I.end).flatMap((e) => e.map((e) => e.id)), he = TM(s, me), ge = [...s], _e = Jle(j), ve = Yle(j), ye = D.length > 0 && x.size >= D.length;
+ getCoreRowModel: xP(),
+ getPaginationRowModel: CP()
+ }), pe = fe.getRowModel().rows, me = de ? pe.map((e) => e.original.source.id) : D.slice(I.start, I.end).flatMap((e) => e.map((e) => e.id)), he = SM(s, me), ge = [...s], _e = eue(j), ve = tue(j), ye = D.length > 0 && x.size >= D.length;
return _.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: Xi({
padding: "none",
@@ -43708,27 +43809,27 @@ function wfe(e) {
variant: "ghost",
iconOnly: !0,
leadingIcon: ut,
- "aria-label": pM[0][1],
+ "aria-label": cM[0][1],
"aria-pressed": !de,
onClick: () => f("default")
}), /* @__PURE__ */ (0, R.jsx)(V, {
variant: "ghost",
iconOnly: !0,
leadingIcon: gt,
- "aria-label": pM[1][1],
+ "aria-label": cM[1][1],
"aria-pressed": de,
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, R.jsx)(tk, {
+ /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- l(t, eM[t]);
+ l(t, Yj[t]);
},
- children: $j.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ children: Jj.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: e,
children: t
}, e))
@@ -43737,7 +43838,7 @@ function wfe(e) {
variant: "secondary",
iconOnly: !0,
leadingIcon: r === "asc" ? Ge : Ve,
- "aria-label": Ole(n, r),
+ "aria-label": Ile(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
de ? null : /* @__PURE__ */ (0, R.jsx)(V, {
@@ -43754,7 +43855,7 @@ function wfe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? /* @__PURE__ */ (0, R.jsx)(LO, {
+ A ? /* @__PURE__ */ (0, R.jsx)(OO, {
embedded: !0,
label: k?.message || (k?.total ? `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源` : "正在准备检查任务"),
value: k?.checked,
@@ -43780,7 +43881,7 @@ function wfe(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, R.jsxs)(nI, {
+ /* @__PURE__ */ (0, R.jsxs)(pI, {
label: "关注来源批量操作",
visible: ge.length > 0,
count: `已选 ${ge.length} 个来源`,
@@ -43840,10 +43941,10 @@ function wfe(e) {
})
]
}),
- de ? /* @__PURE__ */ (0, R.jsx)(dk, {
+ de ? /* @__PURE__ */ (0, R.jsx)(nk, {
follow: !0,
onRowClick: (e) => ee(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, R.jsxs)(lk, {
+ children: /* @__PURE__ */ (0, R.jsxs)(ek, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: le[0] ? {
@@ -43854,9 +43955,9 @@ function wfe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, R.jsx)(TS, { children: fe.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in hM, n = fP(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, R.jsx)(ES, {
+ children: [/* @__PURE__ */ (0, R.jsx)(xS, { children: fe.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in uM, n = wP(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, R.jsx)(SS, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -43865,20 +43966,20 @@ function wfe(e) {
children: [n, /* @__PURE__ */ (0, R.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, R.jsx)(qoe, {})
+ children: /* @__PURE__ */ (0, R.jsx)(nse, {})
})]
}) : /* @__PURE__ */ (0, R.jsx)(Oh, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, R.jsx)(OS, {
+ }) }), /* @__PURE__ */ (0, R.jsx)(wS, {
renderEmptyState: () => "这一页没有来源",
- children: pe.map((e) => /* @__PURE__ */ (0, R.jsx)(jS, {
+ children: pe.map((e) => /* @__PURE__ */ (0, R.jsx)(DS, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, R.jsx)(NS, { children: fP(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, R.jsx)(kS, { children: wP(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(ck, {
+ }) : /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)($O, {
isSelected: he.all,
isIndeterminate: he.some,
onChange: (e) => te(me, e),
@@ -43888,9 +43989,9 @@ function wfe(e) {
className: "flex flex-col gap-3",
children: D.slice(I.start, I.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, R.jsx)(Cfe, {
+ return /* @__PURE__ */ (0, R.jsx)(Afe, {
group: e,
- name: SM(e, v),
+ name: _M(e, v),
handlers: se,
selected: s,
open: !x.has(t),
@@ -43910,19 +44011,19 @@ function wfe(e) {
className: "text-body-2-regular text-text-secondary",
children: `${I.start + 1}–${I.end} / ${I.total} ${de ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, R.jsx)(tk, {
+ /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && fe.setPageSize(Number(e));
},
- children: mM.map((e) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ children: lM.map((e) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: String(e),
children: `每页 ${e} ${de ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, R.jsx)(iI, {
+ /* @__PURE__ */ (0, R.jsx)(hI, {
page: I.page,
pages: I.pages,
onPage: (e) => fe.setPageIndex(e - 1)
@@ -43986,7 +44087,7 @@ function wfe(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var Tfe = {
+var Mfe = {
select: "选择",
name: "名称",
kind: "类型",
@@ -43996,18 +44097,18 @@ var Tfe = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, Efe = /* @__PURE__ */ new Set(["select", "actions"]), aI = () => K.invalidateQueries({
- queryKey: fM,
+}, Nfe = /* @__PURE__ */ new Set(["select", "actions"]), gI = () => K.invalidateQueries({
+ queryKey: sM,
exact: !0
-}), oI = (e) => e.name || e.url, Dfe = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function Ofe(e) {
+}), _I = (e) => e.name || e.url, Pfe = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function Ffe(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function kfe({ source: e }) {
+function Ife({ source: e }) {
return e.last_error ? /* @__PURE__ */ (0, R.jsx)(Li, {
variant: "caption",
color: "rose",
@@ -44022,7 +44123,7 @@ function kfe({ source: e }) {
children: "已暂停"
});
}
-function Afe({ source: e, avatarInner: t }) {
+function Lfe({ source: e, avatarInner: t }) {
let n = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -44030,31 +44131,31 @@ function Afe({ source: e, avatarInner: t }) {
} : null;
return /* @__PURE__ */ (0, R.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 ${bP}`,
- dangerouslySetInnerHTML: { __html: t(oI(e), n, 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 ${MP}`,
+ dangerouslySetInnerHTML: { __html: t(_I(e), n, null, "performer") }
});
}
-var jfe = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function Mfe(e) {
+var Rfe = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function zfe(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
return n;
}
-function sI(e, t) {
+function vI(e, t) {
let n = e.length === 1 ? e[0] : null;
return b({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${oI(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${_I(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
+function Bfe({ readOnly: e, toast: t, avatarInner: n }) {
let r = Zn({
- queryKey: fM,
- queryFn: ({ signal: e }) => NM(e)
- }), i = ia(), a = r.data, o = (0, L.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, L.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, L.useState)(1), [f, p] = (0, L.useState)(20), m = wM(o.length, f, l);
+ queryKey: sM,
+ queryFn: ({ signal: e }) => AM(e)
+ }), i = ia(), a = r.data, o = (0, L.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, L.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, L.useState)(1), [f, p] = (0, L.useState)(20), m = xM(o.length, f, l);
(0, L.useEffect)(() => {
u((e) => Math.min(e, m.pages));
}, [m.pages]), (0, L.useEffect)(() => {
@@ -44066,7 +44167,7 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
let h = Qn({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
- e.action === "remove" ? await FM(t) : await PM(t, e.action === "enabled");
+ e.action === "remove" ? await MM(t) : await jM(t, e.action === "enabled");
});
return {
...e,
@@ -44075,13 +44176,13 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), r = e.ids.length - n.length;
- if (c(/* @__PURE__ */ new Set()), aI(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
+ if (c(/* @__PURE__ */ new Set()), gI(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
let e = n[0];
i.setError(`${n.length} 条没有写入:${e.ok ? "" : H(e.error)}`);
}
},
onError: (e) => i.setError(H(e))
- }), g = (0, L.useMemo)(() => Mfe(o), [o]), _ = (0, L.useRef)({
+ }), g = (0, L.useMemo)(() => zfe(o), [o]), _ = (0, L.useRef)({
readOnly: e,
avatarInner: n,
shared: g,
@@ -44095,34 +44196,34 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
avatarInner: n,
shared: g,
busy: i.busy,
- toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => PM(e.id, t, n), () => void aI()),
- fetch: (e) => void i.run(`check-${e.id}`, (t) => IM(t, [e.id]), () => void aI()),
- remove: (e) => void sI([e], async () => {
- await FM(e.id), t(`已移除订阅源「${oI(e)}」`), aI();
+ toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => jM(e.id, t, n), () => void gI()),
+ fetch: (e) => void i.run(`check-${e.id}`, (t) => NM(t, [e.id]), () => void gI()),
+ remove: (e) => void vI([e], async () => {
+ await MM(e.id), t(`已移除订阅源「${_I(e)}」`), gI();
})
};
let v = (0, L.useMemo)(() => {
- let e = mN(), t = (e) => () => Tfe[e] || e;
+ let e = EN(), t = (e) => () => Mfe[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, R.jsx)(ck, {
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)($O, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${oI(e.row.original)}`
+ "aria-label": `选择 ${_I(e.row.original)}`
})
}),
- e.accessor(oI, {
+ e.accessor(_I, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = jfe(e.row.original, _.current.shared);
+ let t = Rfe(e.row.original, _.current.shared);
return /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, R.jsx)(Afe, {
+ /* @__PURE__ */ (0, R.jsx)(Lfe, {
source: e.row.original,
avatarInner: _.current.avatarInner
}),
@@ -44153,15 +44254,15 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: Ofe(e.getValue())
+ children: Ffe(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, R.jsx)(kfe, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, R.jsx)(Ife, { source: e.row.original })
}),
- e.accessor((e) => Dfe(e.interval_minutes), {
+ e.accessor((e) => Pfe(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, R.jsx)("span", {
@@ -44191,8 +44292,8 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
cell: (e) => /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, R.jsx)(yP, {
- "aria-label": `启用 ${oI(e.row.original)}`,
+ /* @__PURE__ */ (0, R.jsx)(jP, {
+ "aria-label": `启用 ${_I(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: _.current.readOnly,
onChange: (t) => _.current.toggle(e.row.original, t)
@@ -44202,7 +44303,7 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
size: "xs",
iconOnly: !0,
leadingIcon: pt,
- "aria-label": `拉取 ${oI(e.row.original)}`,
+ "aria-label": `拉取 ${_I(e.row.original)}`,
disabled: _.current.readOnly,
...G(_.current.busy === `check-${e.row.original.id}`),
onClick: () => _.current.fetch(e.row.original)
@@ -44212,7 +44313,7 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
size: "xs",
iconOnly: !0,
leadingIcon: Qe,
- "aria-label": `移除 ${oI(e.row.original)}`,
+ "aria-label": `移除 ${_I(e.row.original)}`,
disabled: _.current.readOnly,
onClick: () => _.current.remove(e.row.original)
})
@@ -44220,7 +44321,7 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
})
})
];
- }, []), y = (0, L.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), b = gP({
+ }, []), y = (0, L.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), b = OP({
data: o,
columns: v,
getRowId: (e) => String(e.id),
@@ -44236,24 +44337,24 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
let t = typeof e == "function" ? e(y) : e;
c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: lP(),
- getPaginationRowModel: dP()
+ getCoreRowModel: xP(),
+ getPaginationRowModel: CP()
});
if (!a) return r.error ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
title: "打不开订阅源",
children: H(r.error)
- }) : /* @__PURE__ */ (0, R.jsx)(WO, { children: "正在读订阅源。" });
- let x = () => void i.run("check", (e) => IM(e), () => void aI()), S = (e) => c((t) => {
+ }) : /* @__PURE__ */ (0, R.jsx)(FO, { children: "正在读订阅源。" });
+ let x = () => void i.run("check", (e) => NM(e), () => void gI()), S = (e) => c((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), C = o.filter((e) => s.has(e.id)), w = o.filter((e) => e.last_error);
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, R.jsx)(vfe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Tfe, {
readOnly: e,
toast: t,
- onAdded: () => void aI()
+ onAdded: () => void gI()
}), /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": "JAV 订阅列表",
className: Xi({
@@ -44284,11 +44385,11 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
className: "flex flex-col gap-3",
children: [w.map((e) => /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
- title: `${oI(e)} 拉取失败`,
+ title: `${_I(e)} 拉取失败`,
children: e.last_error
- }, e.id)), i.error ? /* @__PURE__ */ (0, R.jsx)(GO, { children: i.error }) : null]
+ }, e.id)), i.error ? /* @__PURE__ */ (0, R.jsx)(IO, { children: i.error }) : null]
}) : null,
- /* @__PURE__ */ (0, R.jsxs)(nI, {
+ /* @__PURE__ */ (0, R.jsxs)(pI, {
visible: C.length > 0,
label: "订阅源批量操作",
count: `已选 ${C.length} 条订阅源`,
@@ -44320,7 +44421,7 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
size: "small",
disabled: e,
...G(h.isPending),
- onClick: () => void sI(C, () => h.mutateAsync({
+ onClick: () => void vI(C, () => h.mutateAsync({
ids: C.map((e) => e.id),
action: "remove"
})),
@@ -44334,22 +44435,22 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
})
]
}),
- o.length ? /* @__PURE__ */ (0, R.jsx)(dk, {
+ o.length ? /* @__PURE__ */ (0, R.jsx)(nk, {
onRowClick: (e) => S(Number(e)),
- children: /* @__PURE__ */ (0, R.jsxs)(lk, {
+ children: /* @__PURE__ */ (0, R.jsxs)(ek, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, R.jsx)(TS, { children: b.getHeaderGroups()[0].headers.map((e) => {
- let t = fP(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, R.jsx)(ES, {
+ children: [/* @__PURE__ */ (0, R.jsx)(xS, { children: b.getHeaderGroups()[0].headers.map((e) => {
+ let t = wP(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, R.jsx)(SS, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: Efe.has(e.column.id) ? /* @__PURE__ */ (0, R.jsx)(Oh, { children: t }) : t
+ children: Nfe.has(e.column.id) ? /* @__PURE__ */ (0, R.jsx)(Oh, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, R.jsx)(OS, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, R.jsx)(jS, {
+ }) }), /* @__PURE__ */ (0, R.jsx)(wS, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, R.jsx)(DS, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, R.jsx)(NS, { children: fP(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, R.jsx)(kS, { children: wP(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
}) : /* @__PURE__ */ (0, R.jsx)(Qi, {
@@ -44365,19 +44466,19 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
className: "text-body-2-regular text-text-secondary",
children: `${m.start + 1}–${m.end} / ${m.total} 个订阅源`
}),
- /* @__PURE__ */ (0, R.jsx)(tk, {
+ /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(f),
onSelectionChange: (e) => {
e !== null && (p(Number(e)), u(1));
},
- children: mM.map((e) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ children: lM.map((e) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, R.jsx)(iI, {
+ /* @__PURE__ */ (0, R.jsx)(hI, {
label: "JAV 订阅分页",
page: m.page,
pages: m.pages,
@@ -44399,13 +44500,13 @@ function Nfe({ readOnly: e, toast: t, avatarInner: n }) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var cI = [
+var yI = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["source", "来源和凭证"]
-], lI = (e) => cI.some(([t]) => t === e);
-function uI({ term: e, figure: t, unit: n }) {
+], bI = (e) => yI.some(([t]) => t === e);
+function xI({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: Xi({
padding: "none",
@@ -44423,23 +44524,23 @@ function uI({ term: e, figure: t, unit: n }) {
})]
});
}
-function Pfe(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, L.useState)(lI(e.tab) ? e.tab : "list"), [u, d] = (0, L.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, L.useState)(() => tM(e.sort, e.dir).sort), [m, h] = (0, L.useState)(() => tM(e.sort, e.dir).dir), [g, _] = (0, L.useState)(Tle(e.layout) ? e.layout : "default"), [v, y] = (0, L.useState)(Ele(e.pageSize)), [b, x] = (0, L.useState)(/* @__PURE__ */ new Set()), S = Zn({
- queryKey: uM,
- queryFn: ({ signal: e }) => DM(e)
+function Vfe(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, L.useState)(bI(e.tab) ? e.tab : "list"), [u, d] = (0, L.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, L.useState)(() => Xj(e.sort, e.dir).sort), [m, h] = (0, L.useState)(() => Xj(e.sort, e.dir).dir), [g, _] = (0, L.useState)(Nle(e.layout) ? e.layout : "default"), [v, y] = (0, L.useState)(Ple(e.pageSize)), [b, x] = (0, L.useState)(/* @__PURE__ */ new Set()), S = Zn({
+ queryKey: aM,
+ queryFn: ({ signal: e }) => wM(e)
}), C = Zn({
- queryKey: dM,
- queryFn: ({ signal: e }) => OM(e)
+ queryKey: oM,
+ queryFn: ({ signal: e }) => TM(e)
}), w = Zn({
- queryKey: fM,
- queryFn: ({ signal: e }) => NM(e)
+ queryKey: sM,
+ queryFn: ({ signal: e }) => AM(e)
}), T = S.data || { sources: [] }, E = C.data || {
root: "",
providers: []
}, D = T.sources;
(0, L.useEffect)(() => {
x((e) => {
- let t = Ple(e, D);
+ let t = Ble(e, D);
return t.size === e.size ? e : t;
});
}, [D]);
@@ -44449,9 +44550,9 @@ function Pfe(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === eM[n] ? "" : r
+ dir: r === Yj[n] ? "" : r
});
- }, k = CM(D), A = D.filter(_M).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !VM(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ }, k = bM(D), A = D.filter(fM).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !zM(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
return /* @__PURE__ */ (0, R.jsxs)(ea, { children: [
a ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "warning",
@@ -44470,61 +44571,61 @@ function Pfe(e) {
className: eu,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, R.jsx)(uI, {
+ /* @__PURE__ */ (0, R.jsx)(xI, {
term: "关注创作者",
figure: k.length,
unit: "位"
}),
- /* @__PURE__ */ (0, R.jsx)(uI, {
+ /* @__PURE__ */ (0, R.jsx)(xI, {
term: "启用来源",
figure: j,
unit: `/ ${D.length}`
}),
- /* @__PURE__ */ (0, R.jsx)(uI, {
+ /* @__PURE__ */ (0, R.jsx)(xI, {
term: "检查失败",
figure: A,
unit: "个来源"
}),
- /* @__PURE__ */ (0, R.jsx)(uI, {
+ /* @__PURE__ */ (0, R.jsx)(xI, {
term: "未看更新",
figure: T.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, R.jsx)(uI, {
+ /* @__PURE__ */ (0, R.jsx)(xI, {
term: "JAV 订阅",
figure: N,
unit: "位"
}),
- /* @__PURE__ */ (0, R.jsx)(uI, {
+ /* @__PURE__ */ (0, R.jsx)(xI, {
term: "未看新作",
figure: w.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, R.jsxs)(XS, {
+ /* @__PURE__ */ (0, R.jsxs)(BS, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- lI(t) && (l(t), O({ tab: t }));
+ bI(t) && (l(t), O({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, R.jsx)(QS, {
+ /* @__PURE__ */ (0, R.jsx)(HS, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: cI.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(eC, {
+ children: yI.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(WS, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, R.jsx)(tC, {
+ /* @__PURE__ */ (0, R.jsx)(GS, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, R.jsx)(wfe, {
+ children: /* @__PURE__ */ (0, R.jsx)(jfe, {
data: T,
sort: f,
dir: m,
@@ -44554,10 +44655,10 @@ function Pfe(e) {
}
})
}),
- /* @__PURE__ */ (0, R.jsxs)(tC, {
+ /* @__PURE__ */ (0, R.jsxs)(GS, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, R.jsx)(Vue, {
+ children: [/* @__PURE__ */ (0, R.jsx)(que, {
data: T,
credentials: E,
readOnly: a,
@@ -44565,7 +44666,7 @@ function Pfe(e) {
openCredentials: () => {
l("source"), O({ tab: "source" });
}
- }), /* @__PURE__ */ (0, R.jsx)(Wue, {
+ }), /* @__PURE__ */ (0, R.jsx)(Xue, {
groups: T.author_aliases || [],
readOnly: a,
toast: r,
@@ -44573,19 +44674,19 @@ function Pfe(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, R.jsx)(tC, {
+ /* @__PURE__ */ (0, R.jsx)(GS, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, R.jsx)(Nfe, {
+ children: /* @__PURE__ */ (0, R.jsx)(Bfe, {
readOnly: a,
toast: r,
avatarInner: e.avatarInner
})
}),
- /* @__PURE__ */ (0, R.jsx)(tC, {
+ /* @__PURE__ */ (0, R.jsx)(GS, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, R.jsx)($ue, {
+ children: /* @__PURE__ */ (0, R.jsx)(ade, {
data: E,
readOnly: a,
toast: r
@@ -44597,23 +44698,23 @@ function Pfe(e) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var dI = () => /* @__PURE__ */ (0, R.jsx)("span", {
+var SI = () => /* @__PURE__ */ (0, R.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function Ffe({ tag: e, actions: t }) {
+function Hfe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": zA(t.online, e.cat),
+ "data-tag-cat": MA(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, R.jsx)(dI, {}),
+ /* @__PURE__ */ (0, R.jsx)(SI, {}),
/* @__PURE__ */ (0, R.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -44625,7 +44726,7 @@ function Ffe({ tag: e, actions: t }) {
]
});
}
-function Ife({ groups: e, actions: t }) {
+function Ufe({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
@@ -44638,10 +44739,10 @@ function Ife({ groups: e, actions: t }) {
}),
children: [/* @__PURE__ */ (0, R.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, R.jsx)(nA, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, R.jsx)(Kk, { value: n.length })]
}), /* @__PURE__ */ (0, R.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, R.jsx)(Ffe, {
+ children: n.map((e) => /* @__PURE__ */ (0, R.jsx)(Hfe, {
tag: e,
actions: t
}, e.k))
@@ -44649,8 +44750,8 @@ function Ife({ groups: e, actions: t }) {
}, e))
});
}
-var Lfe = "\xA0";
-function Rfe({ tags: e, actions: t }) {
+var Wfe = "\xA0";
+function Gfe({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -44658,11 +44759,11 @@ function Rfe({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": zA(t.online, e.cat),
+ "data-tag-cat": MA(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + Lfe, /* @__PURE__ */ (0, R.jsx)("span", {
+ children: [e.label + Wfe, /* @__PURE__ */ (0, R.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -44670,7 +44771,7 @@ function Rfe({ tags: e, actions: t }) {
}, e.k))
});
}
-var zfe = [[
+var Kfe = [[
"cloud",
"标签云",
"tags"
@@ -44679,16 +44780,16 @@ var zfe = [[
"字母表",
"text-aa"
]];
-function Bfe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, R.jsx)(Nk, {
+function qfe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, R.jsx)(Ck, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, R.jsxs)(Fk, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, R.jsxs)(wk, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : zA(n, e),
+ "data-tag-cat": e === "all" ? "all" : MA(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, R.jsx)(dI, {}), r]
+ children: [/* @__PURE__ */ (0, R.jsx)(SI, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
/* @__PURE__ */ (0, R.jsx)("span", {
@@ -44707,19 +44808,19 @@ function Bfe({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, R.jsx)(hx, {
+ /* @__PURE__ */ (0, R.jsx)(dx, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${Kk}`,
- children: zfe.map(([e, t, n]) => {
+ className: `ml-auto ${Ik}`,
+ children: Kfe.map(([e, t, n]) => {
let r = To(n);
- return /* @__PURE__ */ (0, R.jsx)(gx, {
+ return /* @__PURE__ */ (0, R.jsx)(fx, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: qk,
+ className: Lk,
children: /* @__PURE__ */ (0, R.jsx)("span", {
title: t,
className: "contents",
@@ -44731,13 +44832,13 @@ function Bfe({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function Vfe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, R.jsxs)(nI, {
+function Jfe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, R.jsxs)(pI, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, R.jsx)(ck, {
+ /* @__PURE__ */ (0, R.jsx)($O, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, R.jsxs)("span", {
@@ -44769,7 +44870,7 @@ function Vfe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var Hfe = [{
+var Yfe = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -44777,7 +44878,7 @@ var Hfe = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], fI = [{
+}], CI = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -44785,7 +44886,7 @@ var Hfe = [{
value: "online",
label: "在线",
symbol: "rss"
-}], Ufe = {
+}], Xfe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -44805,20 +44906,20 @@ var Hfe = [{
"layout-grid"
]]
};
-function Wfe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, R.jsx)(Uk, {
- "aria-label": `${OA[e]}索引版式`,
+function Zfe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, R.jsx)(Nk, {
+ "aria-label": `${xA[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${Wk}`,
- children: Ufe[NA(e) ? "company" : "people"].map(([e, t, n]) => {
+ className: `flex-none max-board-narrow:order-3 ${Pk}`,
+ children: Xfe[EA(e) ? "company" : "people"].map(([e, t, n]) => {
let r = To(n);
- return /* @__PURE__ */ (0, R.jsx)(gx, {
+ return /* @__PURE__ */ (0, R.jsx)(fx, {
value: e,
"aria-label": t,
- className: jse,
+ className: Vse,
children: /* @__PURE__ */ (0, R.jsx)("span", {
title: t,
className: "contents",
@@ -44828,8 +44929,8 @@ function Wfe({ kind: e, layout: t, onChange: n }) {
})
});
}
-var Gfe = To("search");
-function Kfe({ label: e, value: t, onQuery: n }) {
+var Qfe = To("search");
+function $fe({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, L.useState)(t), a = (0, L.useRef)(!1), o = (0, L.useRef)(void 0);
(0, L.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -44844,15 +44945,15 @@ function Kfe({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, R.jsx)(yk, {
+ children: /* @__PURE__ */ (0, R.jsx)(uk, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, R.jsx)(xk, {
+ children: /* @__PURE__ */ (0, R.jsx)(fk, {
type: "search",
- leadingIcon: Gfe,
+ leadingIcon: Qfe,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -44862,14 +44963,14 @@ function Kfe({ label: e, value: t, onQuery: n }) {
})
});
}
-function qfe(e) {
- let [t, n] = (0, L.useState)(() => PA({
+function epe(e) {
+ let [t, n] = (0, L.useState)(() => DA({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, L.useState)(e.layout), [a, o] = (0, L.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, L.useState)("any"), l = (0, L.useRef)(null), { kind: u, q: d, scope: f, view: p, category: h } = t, g = OA[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
+ })), [r, i] = (0, L.useState)(e.layout), [a, o] = (0, L.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, L.useState)("any"), l = (0, L.useRef)(null), { kind: u, q: d, scope: f, view: p, category: h } = t, g = xA[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
(0, L.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -44879,7 +44980,7 @@ function qfe(e) {
...r
};
b(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, S = RA(FA(t)), C = $n({
+ }, S = jA(OA(t)), C = $n({
queryKey: S.queryKey,
queryFn: ({ pageParam: e, signal: t }) => S.queryFn({
pageParam: e,
@@ -44888,21 +44989,21 @@ function qfe(e) {
initialPageParam: 0,
getNextPageParam: S.getNextPageParam,
placeholderData: y ? Yt : void 0
- }), w = vce(C.data), T = !!C.hasNextPage && !C.isPlaceholderData, E = yce(w.length, !!C.hasNextPage);
+ }), w = Dce(C.data), T = !!C.hasNextPage && !C.isPlaceholderData, E = Oce(w.length, !!C.hasNextPage);
(0, L.useEffect)(() => {
l.current && e.refitImages(l.current);
}, [r]);
let O = (0, L.useMemo)(() => u === "tags" ? w.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [w, u]), k = (0, L.useMemo)(() => u === "tags" && p === "alphabet" ? Sce(O, (t) => e.tagLabel(t)) : [], [
+ })) : [], [w, u]), k = (0, L.useMemo)(() => u === "tags" && p === "alphabet" ? jce(O, (t) => e.tagLabel(t)) : [], [
O,
p,
u
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = u === "tags" ? /* @__PURE__ */ (0, R.jsx)(iA, {
- tabs: fI,
+ }, j = u === "tags" ? /* @__PURE__ */ (0, R.jsx)(qk, {
+ tabs: CI,
value: f,
label: "词表",
onChange: (e) => {
@@ -44912,15 +45013,15 @@ function qfe(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, R.jsx)(iA, {
- tabs: fI,
+ }) : u === "performers" ? /* @__PURE__ */ (0, R.jsx)(qk, {
+ tabs: CI,
value: f,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), x({ scope: t });
}
- }) : NA(u) ? /* @__PURE__ */ (0, R.jsx)(iA, {
- tabs: Hfe,
+ }) : EA(u) ? /* @__PURE__ */ (0, R.jsx)(qk, {
+ tabs: Yfe,
value: u,
label: "公司类型",
onChange: (e) => x({ kind: e })
@@ -44937,7 +45038,7 @@ function qfe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (_ ? AA : kA).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (_ ? CA : SA).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, R.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -44952,12 +45053,12 @@ function qfe(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- MA(u) ? /* @__PURE__ */ (0, R.jsx)("span", {
+ TA(u) ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: C.isPending ? "" : E
}) : null,
- MA(u) ? /* @__PURE__ */ (0, R.jsx)(Wfe, {
+ TA(u) ? /* @__PURE__ */ (0, R.jsx)(Zfe, {
kind: u,
layout: r,
onChange: A
@@ -44966,7 +45067,7 @@ function qfe(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, R.jsx)(Kfe, {
+ /* @__PURE__ */ (0, R.jsx)($fe, {
label: `过滤${g}`,
value: d,
onQuery: (e) => {
@@ -44976,7 +45077,7 @@ function qfe(e) {
]
}),
j,
- u === "tags" ? /* @__PURE__ */ (0, R.jsx)(Bfe, {
+ u === "tags" ? /* @__PURE__ */ (0, R.jsx)(qfe, {
categories: N,
category: h,
online: _,
@@ -45011,18 +45112,18 @@ function qfe(e) {
}),
children: m(C.error)
});
- if (!w.length) return /* @__PURE__ */ (0, R.jsx)(Yfe, {
+ if (!w.length) return /* @__PURE__ */ (0, R.jsx)(npe, {
kind: u,
filtered: !!d || u === "tags" && h !== "all",
online: _ || v,
configurable: e.configurable
});
- if (v) return /* @__PURE__ */ (0, R.jsx)(wce, {
+ if (v) return /* @__PURE__ */ (0, R.jsx)(Nce, {
items: w,
layout: r,
props: e
});
- if (MA(u)) return /* @__PURE__ */ (0, R.jsx)(HA, {
+ if (TA(u)) return /* @__PURE__ */ (0, R.jsx)(FA, {
kind: u,
items: w,
layout: r,
@@ -45033,10 +45134,10 @@ function qfe(e) {
picked: a,
press: M
};
- return p === "alphabet" ? /* @__PURE__ */ (0, R.jsx)(Ife, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, R.jsx)(Ufe, {
groups: k,
actions: t
- }) : /* @__PURE__ */ (0, R.jsx)(Rfe, {
+ }) : /* @__PURE__ */ (0, R.jsx)(Gfe, {
tags: O,
actions: t
});
@@ -45057,7 +45158,7 @@ function qfe(e) {
}) : "载入更多"
})
}) : null,
- u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, R.jsx)(Vfe, {
+ u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, R.jsx)(Jfe, {
count: a.size,
match: s,
onMatch: c,
@@ -45070,14 +45171,14 @@ function qfe(e) {
]
});
}
-var Jfe = {
+var tpe = {
tags: "标签",
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所"
};
-function Yfe({ kind: e, filtered: t, online: n, configurable: r }) {
+function npe({ kind: e, filtered: t, online: n, configurable: r }) {
if (t) return /* @__PURE__ */ (0, R.jsx)(Qi, {
icon: To("search"),
title: "没有符合条件的内容",
@@ -45088,7 +45189,7 @@ function Yfe({ kind: e, filtered: t, online: n, configurable: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Jfe[e], a = /* @__PURE__ */ (0, R.jsx)(zi, {
+ let i = n && e === "performers" ? "创作者" : tpe[e], a = /* @__PURE__ */ (0, R.jsx)(zi, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
@@ -45104,15 +45205,15 @@ function Yfe({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var pI = {
+var wI = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Xfe = (e) => pI[e.junk_kind || "other"] || pI.other;
-function Zfe(e) {
+}, rpe = (e) => wI[e.junk_kind || "other"] || wI.other;
+function ipe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -45123,21 +45224,21 @@ function Zfe(e) {
glyph: "check"
};
}
-var Qfe = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), $fe = (e, t) => [
+var ape = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), ope = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function epe({ kind: e, view: t }) {
+function spe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function tpe(e, t) {
- let n = await Hi(`/api/ads?${epe(e)}`, t);
+async function cpe(e, t) {
+ let n = await Hi(`/api/ads?${spe(e)}`, t);
return {
...n,
items: n.items || []
@@ -45145,19 +45246,19 @@ async function tpe(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function mI({ name: e }) {
+function TI({ name: e }) {
return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
-var hI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function npe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions: o }) {
- let c = (0, L.useRef)(null), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), p = e.junk_kind || "other", [m, h] = Xfe(e), g = String(e.name || ""), _ = Zfe(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {
- t.target.closest("[data-junk-actions]") || hI(r, t) && (t.preventDefault(), o.toggleSelection(e.id, t.shiftKey));
+var EI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function lpe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions: o }) {
+ let c = (0, L.useRef)(null), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), p = e.junk_kind || "other", [m, h] = rpe(e), g = String(e.name || ""), _ = ipe(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {
+ t.target.closest("[data-junk-actions]") || EI(r, t) && (t.preventDefault(), o.toggleSelection(e.id, t.shiftKey));
}, x = (t) => {
- if (t.stopPropagation(), hI(r, t)) {
+ if (t.stopPropagation(), EI(r, t)) {
t.preventDefault(), o.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -45199,7 +45300,7 @@ function npe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
children: [
/* @__PURE__ */ (0, R.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, R.jsx)(mI, { name: h }), /* @__PURE__ */ (0, R.jsx)("b", { children: m })]
+ children: [/* @__PURE__ */ (0, R.jsx)(TI, { name: h }), /* @__PURE__ */ (0, R.jsx)("b", { children: m })]
}),
v ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-media-art": "thumb",
@@ -45211,7 +45312,7 @@ function npe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
}),
/* @__PURE__ */ (0, R.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, R.jsx)(mI, { name: "check" })
+ children: /* @__PURE__ */ (0, R.jsx)(TI, { name: "check" })
})
]
}),
@@ -45248,7 +45349,7 @@ function npe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
children: [l === "reveal" ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: ie("正在定位") }
- }) : /* @__PURE__ */ (0, R.jsx)(mI, { name: "folder-open" }), /* @__PURE__ */ (0, R.jsx)("span", {
+ }) : /* @__PURE__ */ (0, R.jsx)(TI, { name: "folder-open" }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -45260,7 +45361,7 @@ function npe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
"aria-label": _.label,
...w(_.operation),
onClick: C(_.operation),
- children: [/* @__PURE__ */ (0, R.jsx)(mI, { name: _.glyph }), /* @__PURE__ */ (0, R.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(TI, { name: _.glyph }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-label": "",
children: _.label
})]
@@ -45272,7 +45373,7 @@ function npe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
"aria-label": "移入回收站",
...w("dispose"),
onClick: C("dispose"),
- children: [/* @__PURE__ */ (0, R.jsx)(mI, { name: "trash" }), /* @__PURE__ */ (0, R.jsx)("span", {
+ children: [/* @__PURE__ */ (0, R.jsx)(TI, { name: "trash" }), /* @__PURE__ */ (0, R.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -45287,7 +45388,7 @@ function npe({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
]
});
}
-var rpe = (0, L.memo)(npe), ipe = [
+var upe = (0, L.memo)(lpe), dpe = [
[
"",
"全部",
@@ -45324,53 +45425,53 @@ var rpe = (0, L.memo)(npe), ipe = [
"hard-drive"
]
];
-function gI(e = "", t = "pending") {
+function DI(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 ape(e) {
+function fpe(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: gI("", "pending")
+ href: DI("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: gI("", "dismissed")
+ href: DI("", "dismissed")
};
}
-var ope = (e) => e === "dismissed" ? "已排除" : "待判断";
+var ppe = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function _I({ name: e }) {
+function OI({ name: e }) {
return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
-function vI({ scope: e, count: t }) {
+function kI({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [" ", /* @__PURE__ */ (0, R.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function spe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = NO(), { kind: a, view: o } = e, s = ape(o), c = (e) => {
+function mpe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = wO(), { kind: a, view: o } = e, s = fpe(o), c = (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") || gI()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || DI()));
}, l = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, R.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, R.jsx)(Ak, {
- label: ope(o),
+ children: /* @__PURE__ */ (0, R.jsx)(xk, {
+ label: ppe(o),
figure: l,
pending: !t && !n,
flush: !0
@@ -45383,16 +45484,16 @@ function spe({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-label": "垃圾文件分类",
onClick: c,
children: [
- ipe.map(([e, n, r]) => /* @__PURE__ */ (0, R.jsxs)("a", {
- href: gI(e, o),
+ dpe.map(([e, n, r]) => /* @__PURE__ */ (0, R.jsxs)("a", {
+ href: DI(e, o),
"data-junk-kind-link": e,
"aria-current": e === a ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, R.jsx)(_I, { name: r }),
+ /* @__PURE__ */ (0, R.jsx)(OI, { name: r }),
n,
- /* @__PURE__ */ (0, R.jsx)(vI, {
+ /* @__PURE__ */ (0, R.jsx)(kI, {
scope: e,
- count: t ? Qfe(t, e) : 0
+ count: t ? ape(t, e) : 0
})
]
}, e || "all")),
@@ -45405,9 +45506,9 @@ function spe({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-view-link": s.view,
"aria-current": o === "dismissed" ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, R.jsx)(_I, { name: s.glyph }),
+ /* @__PURE__ */ (0, R.jsx)(OI, { name: s.glyph }),
s.label,
- /* @__PURE__ */ (0, R.jsx)(vI, {
+ /* @__PURE__ */ (0, R.jsx)(kI, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -45420,38 +45521,38 @@ function spe({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var cpe = To("check"), lpe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function upe(e) {
+var hpe = To("check"), gpe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function _pe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = (0, L.useRef)(e.cache);
n.current = e.cache;
let r = Zn({
- queryKey: $fe(t, e.revision),
+ queryKey: ope(t, e.revision),
queryFn: async ({ signal: e }) => {
- let r = await tpe(t, e);
+ let r = await cpe(t, e);
return n.current(r.items), r;
},
- placeholderData: (e, n) => n && lpe(n.queryKey, t) ? e : void 0
+ placeholderData: (e, n) => n && gpe(n.queryKey, t) ? e : void 0
});
(0, L.useEffect)(() => {
r.isFetching || e.settled?.(e.revision);
}, [r.isFetching, e.revision]);
- let i = dpe(e.countRow), a = r.isPending;
+ let i = vpe(e.countRow), a = r.isPending;
(0, L.useLayoutEffect)(() => {
let t = e.countRow;
t && (a ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, a]), (0, L.useLayoutEffect)(() => {
i && r.data && j(i, "junk");
}, [i, r.data]);
- let { navigate: o } = e.actions, s = i ? (0, Re.createPortal)(/* @__PURE__ */ (0, R.jsx)(spe, {
+ let { navigate: o } = e.actions, s = i ? (0, Re.createPortal)(/* @__PURE__ */ (0, R.jsx)(mpe, {
route: t,
page: r.data,
failed: r.isError && !r.data,
onNavigate: o
}), i) : null;
- return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [s, /* @__PURE__ */ (0, R.jsx)(fpe, {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [s, /* @__PURE__ */ (0, R.jsx)(ype, {
props: e,
data: r.data,
pending: a,
@@ -45459,7 +45560,7 @@ function upe(e) {
retry: () => void r.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function dpe(e) {
+function vpe(e) {
let [t, n] = (0, L.useState)(null);
return (0, L.useLayoutEffect)(() => {
if (!e) return;
@@ -45469,7 +45570,7 @@ function dpe(e) {
};
}, [e]), t;
}
-function fpe({ props: e, data: t, pending: n, error: r, retry: i }) {
+function ype({ props: e, data: t, pending: n, error: r, retry: i }) {
let a = no(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, L.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, L.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
@@ -45485,7 +45586,7 @@ function fpe({ props: e, data: t, pending: n, error: r, retry: i }) {
if (!l.length) {
let t = e.view === "dismissed";
return /* @__PURE__ */ (0, R.jsx)(Qi, {
- icon: cpe,
+ icon: hpe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -45494,7 +45595,7 @@ function fpe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, R.jsx)(rpe, {
+ children: u.map((t) => /* @__PURE__ */ (0, R.jsx)(upe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -45502,11 +45603,11 @@ function fpe({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, R.jsx)(ppe, { onMore: f }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, R.jsx)(bpe, { onMore: f }, s) : null] });
})()]
});
}
-function ppe({ onMore: e }) {
+function bpe({ onMore: e }) {
let t = (0, L.useRef)(null);
return (0, L.useEffect)(() => {
let n = t.current;
@@ -45524,12 +45625,12 @@ function ppe({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var yI = "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", mpe = {
- gray: `${yI} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${yI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${yI} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var AI = "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", xpe = {
+ gray: `${AI} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${AI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${AI} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function hpe({ value: e, max: t }) {
+function Spe({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, R.jsxs)("svg", {
role: "progressbar",
@@ -45557,16 +45658,16 @@ function hpe({ value: e, max: t }) {
})]
});
}
-function gpe(e) {
- let { job: t } = QO(e), n = t.data, r = t.isError ? n ? hs : H(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function Cpe(e) {
+ let { job: t } = UO(e), n = t.data, r = t.isError ? n ? hs : H(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 ? "扫描与资料采集未完成" : bs(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? ct : $e;
return /* @__PURE__ */ (0, R.jsxs)("aside", {
role: a ? "alert" : "status",
- className: mpe[s],
+ className: xpe[s],
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, R.jsx)(hpe, {
+ children: [o && l ? /* @__PURE__ */ (0, R.jsx)(Spe, {
value: c,
max: l
}) : /* @__PURE__ */ (0, R.jsx)(d, {
@@ -45576,7 +45677,7 @@ function gpe(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, R.jsx)(wO, {
+ }), /* @__PURE__ */ (0, R.jsx)(hO, {
href: "/data-cleanup#libraryProcessing",
size: "small",
trailingIcon: Ue,
@@ -45586,32 +45687,32 @@ function gpe(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var _pe = "/api/playlists", bI = "/api/playlist", xI = ["playlists"], SI = (e) => Hi(_pe, e);
-async function vpe(e) {
+var wpe = "/api/playlists", jI = "/api/playlist", MI = ["playlists"], NI = (e) => Hi(wpe, e);
+async function Tpe(e) {
await K.fetchQuery({
- queryKey: xI,
- queryFn: () => SI(e),
+ queryKey: MI,
+ queryFn: () => NI(e),
staleTime: 0
});
}
-var CI = () => K.invalidateQueries({
- queryKey: xI,
+var PI = () => K.invalidateQueries({
+ queryKey: MI,
exact: !0
-}), ype = (e) => e.current_asset_id || e.preview_asset_id || null, wI = (e) => `/poster?id=${e}&c=4`, bpe = (e) => U(bI, {
+}), Epe = (e) => e.current_asset_id || e.preview_asset_id || null, FI = (e) => `/poster?id=${e}&c=4`, Dpe = (e) => U(jI, {
action: "create",
name: e,
asset_ids: []
-}), TI = (e, t) => U(bI, {
+}), II = (e, t) => U(jI, {
action: "rename",
id: e,
name: t
-}), EI = (e) => U(bI, {
+}), LI = (e) => U(jI, {
action: "delete",
id: e
-}), xpe = (e) => Hi(`${bI}?id=${e}`).catch(() => null);
-function Spe(e) {
+}), Ope = (e) => Hi(`${jI}?id=${e}`).catch(() => null);
+function kpe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return U(bI, {
+ return U(jI, {
action: "create",
name: e.name,
asset_ids: t,
@@ -45621,18 +45722,18 @@ function Spe(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var Cpe = To("ellipsis"), wpe = To("pencil"), Tpe = To("trash"), Epe = To("playlist"), DI = Pi(EO, DO, "text-body-2-medium"), OI = "播放列表名称不能为空", kI = (e) => async () => {
+var Ape = To("ellipsis"), jpe = To("pencil"), Mpe = To("trash"), Npe = To("playlist"), RI = Pi(_O, vO, "text-body-2-medium"), zI = "播放列表名称不能为空", BI = (e) => async () => {
try {
await e();
} finally {
- CI();
+ PI();
}
};
-function Dpe({ toast: e }) {
+function Ppe({ toast: e }) {
let [t, n] = (0, L.useState)(""), [r, i] = (0, L.useState)(""), a = Qn({
- mutationFn: (e) => bpe(e),
+ mutationFn: (e) => Dpe(e),
onSuccess: (t) => {
- n(""), i(""), CI(), e("已新建播放列表", { undo: kI(() => EI(t.playlist.id)) });
+ n(""), i(""), PI(), e("已新建播放列表", { undo: BI(() => LI(t.playlist.id)) });
},
onError: (e) => i(H(e) || "新建失败")
});
@@ -45642,7 +45743,7 @@ function Dpe({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(OI);
+ i(zI);
return;
}
a.mutate(t);
@@ -45651,7 +45752,7 @@ function Dpe({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, R.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, R.jsx)(Sk, {
+ children: /* @__PURE__ */ (0, R.jsx)(pk, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -45670,7 +45771,7 @@ function Dpe({ toast: e }) {
})]
});
}
-function Ope({ target: e, close: t, toast: n }) {
+function Fpe({ target: e, close: t, toast: n }) {
let [r, i] = (0, L.useState)(""), [a, o] = (0, L.useState)(""), s = (0, L.useRef)(null);
(0, L.useEffect)(() => {
if (!e) return;
@@ -45681,13 +45782,13 @@ function Ope({ target: e, close: t, toast: n }) {
return () => cancelAnimationFrame(t);
}, [e]);
let c = Qn({
- mutationFn: ({ row: e, value: t }) => TI(e.id, t),
+ mutationFn: ({ row: e, value: t }) => II(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), CI(), n("已重命名播放列表", { undo: kI(() => TI(r.id, r.name)) });
+ t(), PI(), n("已重命名播放列表", { undo: BI(() => II(r.id, r.name)) });
},
onError: (e) => o(H(e))
});
- return /* @__PURE__ */ (0, R.jsx)(pj, {
+ return /* @__PURE__ */ (0, R.jsx)(tj, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -45699,7 +45800,7 @@ function Ope({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(OI);
+ o(zI);
return;
}
c.mutate({
@@ -45714,7 +45815,7 @@ function Ope({ target: e, close: t, toast: n }) {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, R.jsx)(Sk, {
+ }), /* @__PURE__ */ (0, R.jsx)(pk, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -45742,7 +45843,7 @@ function Ope({ target: e, close: t, toast: n }) {
})
});
}
-function kpe({ name: e, onRename: t, onDelete: n }) {
+function Ipe({ name: e, onRename: t, onDelete: n }) {
let r = (0, L.useRef)(null), [i, a] = (0, L.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -45756,33 +45857,33 @@ function kpe({ name: e, onRename: t, onDelete: n }) {
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, R.jsx)(Cpe, {
+ children: /* @__PURE__ */ (0, R.jsx)(Ape, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, R.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ey, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: TO,
- children: /* @__PURE__ */ (0, R.jsxs)(SO, {
+ className: gO,
+ children: /* @__PURE__ */ (0, R.jsxs)(pO, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
- className: DI,
+ className: RI,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, R.jsx)(wpe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(jpe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, R.jsxs)("button", {
type: "button",
- className: DI,
+ className: RI,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, R.jsx)(Tpe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(Mpe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -45790,13 +45891,13 @@ function kpe({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function Ape({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
+function Lpe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
let o = Zn({
- queryKey: xI,
- queryFn: ({ signal: e }) => SI(e)
+ queryKey: MI,
+ queryFn: ({ signal: e }) => NI(e)
}), [s, c] = (0, L.useState)(null), l = (0, L.useRef)(a);
(0, L.useEffect)(() => {
- l.current !== a && (l.current = a, CI());
+ l.current !== a && (l.current = a, PI());
}, [a]);
let u = o.data;
if (!u) return /* @__PURE__ */ (0, R.jsx)("div", {
@@ -45814,8 +45915,8 @@ function Ape({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await xpe(e.id);
- await EI(e.id), CI(), i("已删除播放列表", t ? { undo: kI(() => Spe(t)) } : void 0);
+ let t = await Ope(e.id);
+ await LI(e.id), PI(), i("已删除播放列表", t ? { undo: BI(() => kpe(t)) } : void 0);
}
});
};
@@ -45830,27 +45931,27 @@ function Ape({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}), /* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, R.jsx)(Dpe, { toast: i })]
+ })] }), /* @__PURE__ */ (0, R.jsx)(Ppe, { toast: i })]
}),
d.length ? /* @__PURE__ */ (0, R.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: d.map((i) => {
- let a = ype(i);
+ let a = Epe(i);
return /* @__PURE__ */ (0, R.jsx)(Fo, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: i.item_count,
- poster: i.preview_asset_id ? wI(i.preview_asset_id) : null,
- flipImages: async () => (i.preview_ids || []).map(wI),
+ poster: i.preview_asset_id ? FI(i.preview_asset_id) : null,
+ flipImages: async () => (i.preview_ids || []).map(FI),
canFlip: r,
faces: i.faces || [],
faceAvatar: n,
onOpenEntity: t,
...a ? { onOpen: () => e(i.id, a) } : {},
openLabel: `打开播放列表 ${i.name}`,
- menu: /* @__PURE__ */ (0, R.jsx)(kpe, {
+ menu: /* @__PURE__ */ (0, R.jsx)(Ipe, {
name: i.name,
onRename: () => c(i),
onDelete: () => f(i)
@@ -45858,11 +45959,11 @@ function Ape({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}, i.id);
})
}) : /* @__PURE__ */ (0, R.jsx)(Qi, {
- icon: Epe,
+ icon: Npe,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, R.jsx)(Ope, {
+ /* @__PURE__ */ (0, R.jsx)(Fpe, {
target: s,
close: () => c(null),
toast: i
@@ -45872,7 +45973,7 @@ function Ape({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function jpe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function Rpe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let c = () => n(t.id);
return /* @__PURE__ */ (0, R.jsxs)("li", {
"data-goal-id": t.id,
@@ -45940,7 +46041,7 @@ function jpe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
})]
});
}
-function Mpe(e) {
+function zpe(e) {
let t = Zn({
queryKey: Is,
queryFn: ({ signal: e }) => Ls(e)
@@ -45965,7 +46066,7 @@ function Mpe(e) {
})]
}), /* @__PURE__ */ (0, R.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, R.jsx)(jpe, {
+ children: r.map((t) => /* @__PURE__ */ (0, R.jsx)(Rpe, {
item: t,
...e
}, t.id))
@@ -45978,17 +46079,17 @@ function Mpe(e) {
}
//#endregion
//#region src/react/providers.tsx
-var AI = null;
-function Npe() {
- return AI?.isConnected || (AI = document.createElement("div"), AI.className = "peach-react", AI.dataset.reactOverlays = "", document.body.append(AI)), AI;
+var VI = null;
+function Bpe() {
+ return VI?.isConnected || (VI = document.createElement("div"), VI.className = "peach-react", VI.dataset.reactOverlays = "", document.body.append(VI)), VI;
}
-function jI({ children: e }) {
+function HI({ children: e }) {
return /* @__PURE__ */ (0, R.jsx)(Et, {
client: K,
- children: /* @__PURE__ */ (0, R.jsx)($P, {
+ children: /* @__PURE__ */ (0, R.jsx)(dF, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, R.jsx)(my, {
- getContainer: Npe,
+ children: /* @__PURE__ */ (0, R.jsx)(hy, {
+ getContainer: Bpe,
children: e
})
})
@@ -45996,7 +46097,7 @@ function jI({ children: e }) {
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function Ppe(e) {
+function Vpe(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 = ic(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
role: "group",
@@ -46005,29 +46106,29 @@ function Ppe(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, R.jsx)(tk, {
+ /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, R.jsxs)(tk, {
+ i.length > 1 ? /* @__PURE__ */ (0, R.jsxs)(KO, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, R.jsx)(nk, {
+ children: [/* @__PURE__ */ (0, R.jsx)(qO, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ }), i.map((e) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -46046,12 +46147,12 @@ function Ppe(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, R.jsxs)(nI, {
+ }), /* @__PURE__ */ (0, R.jsxs)(pI, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, R.jsxs)(tk, {
+ b ? /* @__PURE__ */ (0, R.jsxs)(KO, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -46059,10 +46160,10 @@ function Ppe(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, R.jsx)(nk, {
+ children: [/* @__PURE__ */ (0, R.jsx)(qO, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ }), y.map((e) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: e,
children: e
}, e))]
@@ -46098,7 +46199,7 @@ function Ppe(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var Fpe = {
+var Hpe = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -46108,14 +46209,14 @@ var Fpe = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, MI = "reviewgenretags";
-function Ipe({ tags: e }) {
+}, UI = "reviewgenretags";
+function Upe({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, R.jsx)("datalist", {
- id: MI,
+ id: UI,
children: e.map((e) => /* @__PURE__ */ (0, R.jsx)("option", { value: e }, e))
}) : null;
}
-function NI({ candidate: e, selectable: t = !1 }) {
+function WI({ 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, R.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -46152,7 +46253,7 @@ function NI({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, R.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: Fpe[e] || e
+ children: Hpe[e] || e
}),
/* @__PURE__ */ (0, R.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -46167,28 +46268,28 @@ function NI({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function Lpe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function Wpe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, R.jsx)(NI, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, R.jsx)(hx, {
+ children: /* @__PURE__ */ (0, R.jsx)(WI, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, R.jsx)(dx, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, R.jsx)(gx, {
+ children: a.map((e) => /* @__PURE__ */ (0, R.jsx)(fx, {
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, R.jsx)(NI, {
+ children: /* @__PURE__ */ (0, R.jsx)(WI, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function Rpe({ genre: e, tags: t, locked: n, toast: r }) {
+function Gpe({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, L.useState)(""), [o, s] = (0, L.useState)(""), c = Qn({
mutationFn: (t) => vc(e, t),
onSuccess: async (t, n) => {
@@ -46215,16 +46316,16 @@ function Rpe({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, R.jsx)(yk, {
+ /* @__PURE__ */ (0, R.jsx)(uk, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, R.jsx)(xk, {
+ children: /* @__PURE__ */ (0, R.jsx)(fk, {
size: "small",
- list: t.length ? MI : void 0,
+ list: t.length ? UI : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -46256,7 +46357,7 @@ function Rpe({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function zpe({ row: e, tags: t, locked: n, toast: r }) {
+function Kpe({ row: e, tags: t, locked: n, toast: r }) {
let i = fc(e);
return i.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
role: "group",
@@ -46265,7 +46366,7 @@ function zpe({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, R.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, R.jsx)(Rpe, {
+ }), i.map((e) => /* @__PURE__ */ (0, R.jsx)(Gpe, {
genre: e,
tags: t,
locked: n,
@@ -46275,9 +46376,9 @@ function zpe({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var PI = (e = "") => /^https?:\/\//i.test(e) ? e : "", Bpe = (e = "") => PI(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function FI({ url: e }) {
- let t = Bpe(e || ""), [n, r] = (0, L.useState)(!1);
+var GI = (e = "") => /^https?:\/\//i.test(e) ? e : "", qpe = (e = "") => GI(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function KI({ url: e }) {
+ let t = qpe(e || ""), [n, r] = (0, L.useState)(!1);
return /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, R.jsx)("img", {
@@ -46292,7 +46393,7 @@ function FI({ url: e }) {
})
});
}
-function II({ asset: e, openItem: t }) {
+function qI({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -46325,14 +46426,14 @@ function II({ asset: e, openItem: t }) {
})]
});
}
-function Vpe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function Jpe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${bP}`,
+ 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 ${MP}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -46348,8 +46449,8 @@ function Vpe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Hpe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = PI(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function Ype({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = GI(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, R.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -46374,7 +46475,7 @@ function Hpe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, R.jsx)(FI, { url: e.preview_url }),
+ /* @__PURE__ */ (0, R.jsx)(KI, { url: e.preview_url }),
/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -46417,7 +46518,7 @@ function Hpe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function Upe({ assets: e, picked: t, onPicked: n, locked: r }) {
+function Xpe({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, L.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -46473,7 +46574,7 @@ function Upe({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, R.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, R.jsx)(sk, {
+ children: /* @__PURE__ */ (0, R.jsx)(QO, {
size: "sm",
state: {
isSelected: n,
@@ -46493,19 +46594,19 @@ function Upe({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Wpe = Xi({
+var Zpe = Xi({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), LI = "flex min-h-6 min-w-0 items-center", Gpe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Kpe(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, L.useRef)(!1), m = NO(), h = NO(), g = t === "metadata_fields", _ = $s[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = lc(t, n), x = cc(t, n), S = sc(t, n), C = uc(n), w = dc(n), T = oc(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, R.jsx)("div", {
+}), JI = "flex min-h-6 min-w-0 items-center", Qpe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function $pe(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, L.useRef)(!1), m = wO(), h = wO(), g = t === "metadata_fields", _ = $s[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = lc(t, n), x = cc(t, n), S = sc(t, n), C = uc(n), w = dc(n), T = oc(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, R.jsx)(II, {
+ children: E.map((e) => /* @__PURE__ */ (0, R.jsx)(qI, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, R.jsx)(Vpe, {
+ }) : y ? /* @__PURE__ */ (0, R.jsx)(Jpe, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -46515,14 +46616,14 @@ function Kpe(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, R.jsx)(II, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, R.jsx)(qI, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, A = g ? /* @__PURE__ */ (0, R.jsx)(Lpe, {
+ }) : null, A = g ? /* @__PURE__ */ (0, R.jsx)(Wpe, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -46531,7 +46632,7 @@ function Kpe(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, R.jsx)(Upe, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, R.jsx)(Xpe, {
assets: D,
picked: r.assets,
locked: s,
@@ -46544,15 +46645,15 @@ function Kpe(e) {
icon: ot,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, R.jsx)(Hpe, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, R.jsx)(Ype, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, R.jsx)(FI, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, R.jsxs)("h4", {
- className: `${LI} flex-wrap gap-2`,
+ }) : /* @__PURE__ */ (0, R.jsx)(KI, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, R.jsxs)("h4", {
+ className: `${JI} flex-wrap gap-2`,
children: [/* @__PURE__ */ (0, R.jsx)(Li, {
variant: "caption",
color: "blue",
@@ -46563,7 +46664,7 @@ function Kpe(e) {
children: S
})]
}) : /* @__PURE__ */ (0, R.jsx)("h4", {
- className: LI,
+ className: JI,
children: /* @__PURE__ */ (0, R.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -46573,20 +46674,20 @@ function Kpe(e) {
return /* @__PURE__ */ (0, R.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Wpe} ${Gpe(t)} overflow-hidden`,
+ className: `${Zpe} ${Qpe(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, R.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, R.jsx)("span", {
- className: `${LI} shrink-0`,
+ className: `${JI} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, R.jsx)(ck, {
+ children: /* @__PURE__ */ (0, R.jsx)($O, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -46630,7 +46731,7 @@ function Kpe(e) {
})
}) : null,
A,
- /* @__PURE__ */ (0, R.jsx)(zpe, {
+ /* @__PURE__ */ (0, R.jsx)(Kpe, {
row: n,
tags: u,
locked: s,
@@ -46692,8 +46793,8 @@ function Kpe(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var qpe = "flex cursor-pointer items-center justify-between gap-2";
-function Jpe({ page: e, pages: t, onPage: n }) {
+var eme = "flex cursor-pointer items-center justify-between gap-2";
+function tme({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, R.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -46730,7 +46831,7 @@ function Jpe({ page: e, pages: t, onPage: n }) {
]
});
}
-function Ype(e) {
+function nme(e) {
let [t, n] = (0, L.useState)(() => matchMedia("(max-width:900px)").matches);
(0, L.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
@@ -46840,8 +46941,8 @@ function Ype(e) {
}) : void 0,
children: ye
}) : null,
- /* @__PURE__ */ (0, R.jsx)(Ipe, { tags: be }),
- /* @__PURE__ */ (0, R.jsxs)(XS, {
+ /* @__PURE__ */ (0, R.jsx)(Upe, { tags: be }),
+ /* @__PURE__ */ (0, R.jsxs)(BS, {
orientation: t ? "horizontal" : "vertical",
selectedKey: f,
onSelectionChange: (e) => {
@@ -46855,15 +46956,15 @@ function Ype(e) {
children: [/* @__PURE__ */ (0, R.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, R.jsx)(QS, {
+ }), /* @__PURE__ */ (0, R.jsx)(HS, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
children: Xs.map((e) => {
let t = Number(ee.counts[e] || 0);
- return /* @__PURE__ */ (0, R.jsxs)(eC, {
+ return /* @__PURE__ */ (0, R.jsxs)(WS, {
id: e,
- className: qpe,
+ className: eme,
children: [Ys[e], t ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
@@ -46871,11 +46972,11 @@ function Ype(e) {
}, e);
})
})]
- }), /* @__PURE__ */ (0, R.jsxs)(tC, {
+ }), /* @__PURE__ */ (0, R.jsxs)(GS, {
id: f,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- te.length && !F ? /* @__PURE__ */ (0, R.jsx)(Ppe, {
+ te.length && !F ? /* @__PURE__ */ (0, R.jsx)(Vpe, {
groupOptions: ne,
groupBy: re,
onGroupBy: (e) => {
@@ -46916,7 +47017,7 @@ function Ype(e) {
})]
}) : null, /* @__PURE__ */ (0, R.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, R.jsx)(Kpe, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, R.jsx)($pe, {
category: f,
row: e,
choice: ue(e),
@@ -46944,7 +47045,7 @@ function Ype(e) {
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, R.jsx)(Jpe, {
+ /* @__PURE__ */ (0, R.jsx)(tme, {
page: oe.page,
pages: oe.pages,
onPage: y
@@ -46957,30 +47058,30 @@ function Ype(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Xpe = "/api/scraping", Zpe = "/api/scraping/settings", Qpe = "/api/scraping/check", RI = "/api/scraping/cover", $pe = "/api/scraping/amane-bridge", eme = "/api/scraping/amane-bridge/check", tme = "/api/scraping/amane-bridge/rebuild", zI = ["scraping"], BI = ["scraping", "cover"], VI = ["scraping", "amane-bridge"], HI = (e) => Hi(Xpe, e), UI = (e) => Hi(RI, e), WI = (e) => Hi($pe, e);
-async function nme(e) {
+var rme = "/api/scraping", ime = "/api/scraping/settings", ame = "/api/scraping/check", YI = "/api/scraping/cover", ome = "/api/scraping/amane-bridge", sme = "/api/scraping/amane-bridge/check", cme = "/api/scraping/amane-bridge/rebuild", XI = ["scraping"], ZI = ["scraping", "cover"], QI = ["scraping", "amane-bridge"], $I = (e) => Hi(rme, e), eL = (e) => Hi(YI, e), tL = (e) => Hi(ome, e);
+async function lme(e) {
await Promise.all([
K.fetchQuery({
- queryKey: zI,
- queryFn: () => HI(e)
+ queryKey: XI,
+ queryFn: () => $I(e)
}),
K.fetchQuery({
- queryKey: BI,
- queryFn: () => UI(e)
+ queryKey: ZI,
+ queryFn: () => eL(e)
}),
K.fetchQuery({
- queryKey: VI,
- queryFn: () => WI(e)
+ queryKey: QI,
+ queryFn: () => tL(e)
})
]);
}
-function rme(e, t) {
+function ume(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var ime = [["peach", "Peach 代理"], ["direct", "直接连接"]], GI = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function KI({ source: e }) {
+var dme = [["peach", "Peach 代理"], ["direct", "直接连接"]], nL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function rL({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -46997,16 +47098,16 @@ function KI({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function ame() {
- return /* @__PURE__ */ (0, R.jsx)(KI, { source: "github" });
+function fme() {
+ return /* @__PURE__ */ (0, R.jsx)(rL, { source: "github" });
}
-function ome({ source: e, toast: t }) {
- let [n, r] = (0, L.useState)(e.network), [i, a] = (0, L.useState)(""), [o, s] = (0, L.useState)(""), [c, l] = (0, L.useState)(GI[0][0]), [u, d] = (0, L.useState)(""), [f, p] = (0, L.useState)(""), m = (0, L.useRef)(null);
+function pme({ source: e, toast: t }) {
+ let [n, r] = (0, L.useState)(e.network), [i, a] = (0, L.useState)(""), [o, s] = (0, L.useState)(""), [c, l] = (0, L.useState)(nL[0][0]), [u, d] = (0, L.useState)(""), [f, p] = (0, L.useState)(""), m = (0, L.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = Qn({
- mutationFn: (t) => U(Zpe, {
+ mutationFn: (t) => U(ime, {
source: e.source,
network: n,
cookie: i,
@@ -47014,12 +47115,12 @@ function ome({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- K.setQueryData(zI, (t) => t && {
+ K.setQueryData(XI, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = Qn({ mutationFn: () => U(Qpe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = Qn({ mutationFn: () => U(ame, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -47044,37 +47145,37 @@ function ome({ source: e, toast: t }) {
}
}
let C = f || (g.error ? H(g.error) : "") || (_.error ? H(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, R.jsx)(KI, { source: e.source }), /* @__PURE__ */ (0, R.jsx)(qO, {
+ children: [/* @__PURE__ */ (0, R.jsx)(rL, { source: e.source }), /* @__PURE__ */ (0, R.jsx)(RO, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, R.jsx)(VO, { children: /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsx)(MO, { children: /* @__PURE__ */ (0, R.jsx)(AO, {
label: "连接方式",
- children: /* @__PURE__ */ (0, R.jsx)(tk, {
+ children: /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: ime.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ children: dme.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, R.jsxs)(HO, {
+ T ? /* @__PURE__ */ (0, R.jsxs)(NO, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, R.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, R.jsx)(wO, {
+ children: /* @__PURE__ */ (0, R.jsx)(hO, {
href: "/configuration#peachProxy",
size: "small",
trailingIcon: Ue,
@@ -47090,20 +47191,20 @@ function ome({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, R.jsx)(Uk, {
+ /* @__PURE__ */ (0, R.jsx)(Nk, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: Wk,
- children: GI.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(gx, {
+ className: Pk,
+ children: nL.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(fx, {
value: e,
- className: Gk,
+ className: Fk,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, R.jsx)(Sk, {
+ c === "paste" ? /* @__PURE__ */ (0, R.jsx)(pk, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -47112,7 +47213,7 @@ function ome({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, R.jsx)(KO, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, R.jsx)(LO, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, R.jsx)(V, {
@@ -47138,14 +47239,14 @@ function ome({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, R.jsx)(GO, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, R.jsx)(IO, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, R.jsx)(W, {
tone: t.ok ? "success" : "error",
- children: rme(t, e.label)
+ children: ume(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, R.jsxs)(UO, { children: [
+ /* @__PURE__ */ (0, R.jsxs)(PO, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: b,
@@ -47167,26 +47268,26 @@ function ome({ source: e, toast: t }) {
]
});
}
-function sme({ toast: e }) {
- let [t, n] = (0, L.useState)(""), { running: r, outcome: i, start: a } = ik({
- queryKey: BI,
- queryFn: ({ signal: e }) => UI(e),
- start: () => U(RI, { code: t }),
+function mme({ toast: e }) {
+ let [t, n] = (0, L.useState)(""), { running: r, outcome: i, start: a } = YO({
+ queryKey: ZI,
+ queryFn: ({ signal: e }) => eL(e),
+ start: () => U(YI, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? H(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, R.jsx)(BO, {
+ return /* @__PURE__ */ (0, R.jsx)(jO, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, R.jsxs)(HO, { children: [
+ children: /* @__PURE__ */ (0, R.jsxs)(NO, { children: [
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, R.jsx)(Sk, {
+ children: /* @__PURE__ */ (0, R.jsx)(pk, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -47213,11 +47314,11 @@ function sme({ toast: e }) {
] })
});
}
-function cme({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = ik({
- queryKey: VI,
- queryFn: ({ signal: e }) => WI(e),
- start: () => U(tme, {}),
+function hme({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = YO({
+ queryKey: QI,
+ queryFn: ({ signal: e }) => tL(e),
+ start: () => U(cme, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -47226,45 +47327,45 @@ function cme({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = Qn({ mutationFn: () => U(eme, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, R.jsx)(BO, {
+ }), a = Qn({ mutationFn: () => U(sme, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, R.jsx)(jO, {
title: "amane",
- children: /* @__PURE__ */ (0, R.jsx)(HO, { children: /* @__PURE__ */ (0, R.jsx)(W, {
+ children: /* @__PURE__ */ (0, R.jsx)(NO, { children: /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
children: H(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? H(i.error) : a.error ? H(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "amane",
- aside: /* @__PURE__ */ (0, R.jsx)(qO, {
+ aside: /* @__PURE__ */ (0, R.jsx)(RO, {
href: o.repository,
- leadingIcon: ame,
+ leadingIcon: fme,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, R.jsxs)(JO, { children: [
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsxs)(zO, { children: [
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, R.jsxs)(HO, {
+ /* @__PURE__ */ (0, R.jsxs)(NO, {
divided: !0,
children: [
- /* @__PURE__ */ (0, R.jsxs)(WO, { children: [
+ /* @__PURE__ */ (0, R.jsxs)(FO, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -47284,7 +47385,7 @@ function cme({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, R.jsxs)(UO, { children: [/* @__PURE__ */ (0, R.jsx)(V, {
+ /* @__PURE__ */ (0, R.jsxs)(PO, { children: [/* @__PURE__ */ (0, R.jsx)(V, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -47301,22 +47402,22 @@ function cme({ toast: e }) {
]
});
}
-function lme({ toast: e }) {
+function gme({ toast: e }) {
let t = Zn({
- queryKey: zI,
- queryFn: ({ signal: e }) => HI(e)
+ queryKey: XI,
+ queryFn: ({ signal: e }) => $I(e)
}), n = t.data;
return n ? /* @__PURE__ */ (0, R.jsxs)(ea, { children: [
/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, R.jsx)(sme, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, R.jsx)(ome, {
+ /* @__PURE__ */ (0, R.jsx)(mme, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, R.jsx)(pme, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, R.jsx)(cme, { toast: e })
+ /* @__PURE__ */ (0, R.jsx)(hme, { toast: e })
] }) : /* @__PURE__ */ (0, R.jsx)(ea, { children: /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
title: "采集来源读取失败",
@@ -47325,24 +47426,24 @@ function lme({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var qI = "/api/configuration", ume = "/api/pick-folder", JI = ["configuration"], YI = (e) => Hi(qI, e);
-async function XI(e) {
+var iL = "/api/configuration", _me = "/api/pick-folder", aL = ["configuration"], oL = (e) => Hi(iL, e);
+async function sL(e) {
await K.fetchQuery({
- queryKey: JI,
- queryFn: () => YI(e)
+ queryKey: aL,
+ queryFn: () => oL(e)
});
}
//#endregion
//#region src/configuration-copy.ts
-var dme = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", fme = "仅填域名;留空使用默认地址";
+var vme = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", yme = "仅填域名;留空使用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function pme({ initial: e, receipt: t }) {
+function bme({ initial: e, receipt: t }) {
let [n, r] = (0, L.useState)(e.sites), i = ia(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -47351,9 +47452,9 @@ function pme({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, R.jsxs)(HO, { children: [
- /* @__PURE__ */ (0, R.jsx)(WO, { children: dme }),
- n.map((e) => /* @__PURE__ */ (0, R.jsx)(Sk, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(NO, { children: [
+ /* @__PURE__ */ (0, R.jsx)(FO, { children: vme }),
+ n.map((e) => /* @__PURE__ */ (0, R.jsx)(pk, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -47362,10 +47463,10 @@ function pme({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: fme
+ hint: yme
}, e.key)),
- i.error ? /* @__PURE__ */ (0, R.jsx)(GO, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, R.jsx)(UO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
+ i.error ? /* @__PURE__ */ (0, R.jsx)(IO, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, R.jsx)(PO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
...G(i.busy === "save"),
children: "保存配置"
@@ -47374,21 +47475,21 @@ function pme({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function mme({ data: e, receipt: t }) {
+function xme({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, R.jsx)(hme, {
+ children: [e.startup ? /* @__PURE__ */ (0, R.jsx)(Sme, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, R.jsx)(pme, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, R.jsx)(bme, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function hme({ startup: e, receipt: t }) {
+function Sme({ startup: e, receipt: t }) {
let [n, r] = (0, L.useState)(e.enabled), [i, a] = (0, L.useState)(e.silent), [o, s] = (0, L.useState)(e.desktop), c = ia(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => U("/api/configuration/startup", {
@@ -47398,30 +47499,30 @@ function hme({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, R.jsxs)(VO, { children: [
- /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsxs)(MO, { children: [
+ /* @__PURE__ */ (0, R.jsx)(AO, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, R.jsx)(yP, {
+ children: /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsx)(AO, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, R.jsx)(yP, {
+ children: /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsx)(AO, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, R.jsx)(yP, {
+ children: /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -47429,11 +47530,11 @@ function hme({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, R.jsxs)(HO, {
+ e.message || c.error ? /* @__PURE__ */ (0, R.jsxs)(NO, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, R.jsx)(WO, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, R.jsx)(GO, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, R.jsx)(FO, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, R.jsx)(IO, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, R.jsx)(UO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
+ /* @__PURE__ */ (0, R.jsx)(PO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
disabled: !e.available,
...G(c.busy === "save"),
@@ -47444,23 +47545,23 @@ function hme({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var ZI = /* @__PURE__ */ new Set([
+var cL = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), gme = [
+]), Cme = [
65,
67,
90
-], QI = 120;
-function _me({ initial: e, initialJob: t }) {
+], lL = 120;
+function wme({ initial: e, initialJob: t }) {
let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, L.useState)(""), c = ia(), l = (0, L.useRef)(!1), u = (0, L.useRef)(!0), d = ZI.has(i.state);
+ }), [o, s] = (0, L.useState)(""), c = ia(), l = (0, L.useRef)(!1), u = (0, L.useRef)(!0), d = cL.has(i.state);
(0, L.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -47477,7 +47578,7 @@ function _me({ initial: e, initialJob: t }) {
(0, L.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, L.useEffect)(() => {
- let e = new AbortController(), t = ZI.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = cL.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await Hi("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -47490,9 +47591,9 @@ function _me({ initial: e, initialJob: t }) {
let n = await Hi("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= QI && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= lL && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < QI && (n = setTimeout(c, t));
+ !e.signal.aborted && o < lL && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -47506,40 +47607,40 @@ function _me({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(H(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, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, R.jsxs)(JO, { children: [
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsxs)(zO, { children: [
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, R.jsxs)(HO, {
+ /* @__PURE__ */ (0, R.jsxs)(NO, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, R.jsxs)(WO, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, R.jsxs)(FO, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, R.jsx)(GO, { children: g || n.message }) : /* @__PURE__ */ (0, R.jsx)(WO, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, R.jsx)(IO, { children: g || n.message }) : /* @__PURE__ */ (0, R.jsx)(FO, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, R.jsx)(GO, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, R.jsx)(IO, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
@@ -47547,16 +47648,16 @@ function _me({ initial: e, initialJob: t }) {
/* @__PURE__ */ (0, R.jsx)(ra, {
label: "更新准备进度",
value: i.progress,
- stops: gme
+ stops: Cme
}),
- /* @__PURE__ */ (0, R.jsxs)(WO, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, R.jsx)(WO, { children: _ })
+ /* @__PURE__ */ (0, R.jsxs)(FO, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, R.jsx)(FO, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, R.jsxs)(UO, {
- status: /* @__PURE__ */ (0, R.jsx)(qO, {
+ /* @__PURE__ */ (0, R.jsxs)(PO, {
+ status: /* @__PURE__ */ (0, R.jsx)(RO, {
href: n.release_url,
children: "查看发布页"
}),
@@ -47583,98 +47684,98 @@ function _me({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var vme = [
+var Tme = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function yme({ data: e, receipt: t, reopenTutorial: n }) {
+function Eme({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, R.jsx)(xme, {
+ e.automatic_updates ? /* @__PURE__ */ (0, R.jsx)(Ome, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, R.jsx)(_me, {
+ e.updates ? /* @__PURE__ */ (0, R.jsx)(wme, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, R.jsx)(Sme, { facts: e.facts }),
- /* @__PURE__ */ (0, R.jsx)(bme, {
+ /* @__PURE__ */ (0, R.jsx)(kme, { facts: e.facts }),
+ /* @__PURE__ */ (0, R.jsx)(Dme, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, R.jsx)(Cme, {
+ e.uninstall ? /* @__PURE__ */ (0, R.jsx)(Ame, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function bme({ receipt: e, reopenTutorial: t }) {
+function Dme({ receipt: e, reopenTutorial: t }) {
let n = ia();
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, R.jsxs)(HO, { children: [/* @__PURE__ */ (0, R.jsx)(WO, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, R.jsx)(GO, { children: n.error }) : null] }), /* @__PURE__ */ (0, R.jsx)(UO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(NO, { children: [/* @__PURE__ */ (0, R.jsx)(FO, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, R.jsx)(IO, { children: n.error }) : null] }), /* @__PURE__ */ (0, R.jsx)(PO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...G(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function xme({ initial: e, receipt: t }) {
+function Ome({ initial: e, receipt: t }) {
let [n, r] = (0, L.useState)(e.mode), [i, a] = (0, L.useState)(e.interval_hours), o = ia(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => U("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, R.jsxs)(VO, { children: [
- /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsxs)(MO, { children: [
+ /* @__PURE__ */ (0, R.jsx)(AO, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, R.jsx)(yP, {
+ children: /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsx)(AO, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, R.jsx)(yP, {
+ children: /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsx)(AO, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, R.jsx)(tk, {
+ children: /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: vme.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ children: Tme.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, R.jsx)(HO, {
+ o.error ? /* @__PURE__ */ (0, R.jsx)(NO, {
divided: !0,
- children: /* @__PURE__ */ (0, R.jsx)(GO, { children: o.error })
+ children: /* @__PURE__ */ (0, R.jsx)(IO, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, R.jsx)(UO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
+ /* @__PURE__ */ (0, R.jsx)(PO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
disabled: !e.available,
...G(o.busy === "save"),
@@ -47683,19 +47784,19 @@ function xme({ initial: e, receipt: t }) {
]
});
}
-function Sme({ facts: e }) {
- return /* @__PURE__ */ (0, R.jsx)(BO, {
+function kme({ facts: e }) {
+ return /* @__PURE__ */ (0, R.jsx)(jO, {
title: "运行信息",
- children: /* @__PURE__ */ (0, R.jsx)(JO, { children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)(YO, {
+ children: /* @__PURE__ */ (0, R.jsx)(zO, { children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)(BO, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, R.jsx)(qO, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, R.jsx)(RO, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Cme({ uninstall: e, receipt: t }) {
+function Ame({ uninstall: e, receipt: t }) {
let [n, r] = (0, L.useState)(!1), [i, a] = (0, L.useState)(""), o = () => void b({
title: "卸载 Peach",
danger: !0,
@@ -47709,26 +47810,26 @@ function Cme({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, R.jsxs)(HO, { children: [
- e.available ? /* @__PURE__ */ (0, R.jsx)(WO, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, R.jsx)(ck, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(NO, { children: [
+ e.available ? /* @__PURE__ */ (0, R.jsx)(FO, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, R.jsx)($O, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, R.jsx)(XO, {
+ /* @__PURE__ */ (0, R.jsx)(VO, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, R.jsx)(IO, {
+ children: c.map((e) => /* @__PURE__ */ (0, R.jsx)(DO, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, R.jsx)(UO, {
+ ] }), /* @__PURE__ */ (0, R.jsx)(PO, {
status: s ? /* @__PURE__ */ (0, R.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -47744,7 +47845,7 @@ function Cme({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var wme = [
+var jme = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -47763,32 +47864,32 @@ var wme = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Tme = [
+], Mme = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Eme() {
+function Nme() {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, R.jsxs)(WO, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, R.jsx)(qO, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(FO, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, R.jsx)(RO, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, R.jsxs)(XO, {
+ })] }), /* @__PURE__ */ (0, R.jsxs)(VO, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, R.jsx)(WO, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, R.jsx)(FO, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, R.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: wme.map((e) => /* @__PURE__ */ (0, R.jsxs)("li", {
+ children: jme.map((e) => /* @__PURE__ */ (0, R.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, R.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Tme.map(([t, n]) => /* @__PURE__ */ (0, R.jsxs)("div", {
+ children: Mme.map(([t, n]) => /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, R.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -47809,9 +47910,9 @@ function Eme() {
/* @__PURE__ */ (0, R.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, R.jsxs)(WO, { children: [
+ /* @__PURE__ */ (0, R.jsxs)(FO, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, R.jsx)(qO, {
+ /* @__PURE__ */ (0, R.jsx)(RO, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -47823,7 +47924,7 @@ function Eme() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var $I = [
+var uL = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -47867,13 +47968,13 @@ var $I = [
["star", "收藏"],
["tags", "主题"]
];
-function Dme(e) {
+function Pme(e) {
let t = e === "local" ? "" : _[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var eL = "auto";
-function Ome({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, L.useRef)(null), [a, o] = (0, L.useState)(!1), [s, c] = (0, L.useState)(e), [l, u] = Dme(n);
+var dL = "auto";
+function Fme({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, L.useRef)(null), [a, o] = (0, L.useState)(!1), [s, c] = (0, L.useState)(e), [l, u] = Pme(n);
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(V, {
ref: i,
variant: "secondary",
@@ -47887,16 +47988,16 @@ function Ome({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, R.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, R.jsx)(ZO, { mark: e || l }), ((e) => e && $I.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, R.jsx)(HO, { mark: e || l }), ((e) => e && uL.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, R.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ey, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: TO,
- children: /* @__PURE__ */ (0, R.jsxs)(Cb, {
+ className: gO,
+ children: /* @__PURE__ */ (0, R.jsxs)(bb, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
@@ -47905,17 +48006,17 @@ function Ome({ value: e, label: t, kind: n = "local", onChange: r }) {
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, R.jsx)(hx, {
+ /* @__PURE__ */ (0, R.jsx)(dx, {
"aria-label": "候选图标",
- value: s || eL,
- onChange: (e) => c(e === eL ? "" : e),
+ value: s || dL,
+ onChange: (e) => c(e === dL ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: $I.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(gx, {
- value: e || eL,
+ children: uL.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(fx, {
+ value: e || dL,
"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, R.jsx)(ZO, { mark: e || l })
- }, e || eL))
+ children: /* @__PURE__ */ (0, R.jsx)(HO, { mark: e || l })
+ }, e || dL))
}),
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -47937,15 +48038,15 @@ function Ome({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var kme = "/api/configuration/push-discovery", Ame = "/api/configuration/push-discovery/secret";
-function jme({ initial: e, receipt: t }) {
- let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(e.prefixes), [o, s] = (0, L.useState)(""), c = ia(), l = NO(), u = n.media_roots, [d, f] = (0, L.useState)(e), p = (e, n) => {
+var Ime = "/api/configuration/push-discovery", Lme = "/api/configuration/push-discovery/secret";
+function Rme({ initial: e, receipt: t }) {
+ let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(e.prefixes), [o, s] = (0, L.useState)(""), c = ia(), l = wO(), u = n.media_roots, [d, f] = (0, L.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, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -47955,14 +48056,14 @@ function jme({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => U(kme, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(H(e)));
+ c.run("save", (e) => U(Ime, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(H(e)));
},
children: [
- /* @__PURE__ */ (0, R.jsxs)(VO, { children: [
- /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsxs)(MO, { children: [
+ /* @__PURE__ */ (0, R.jsx)(AO, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, R.jsx)(yP, {
+ children: /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -47972,10 +48073,10 @@ function jme({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsx)(AO, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, R.jsx)(yP, {
+ children: /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -47985,10 +48086,10 @@ function jme({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsx)(AO, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, R.jsx)(yP, {
+ children: /* @__PURE__ */ (0, R.jsx)(jP, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -47999,30 +48100,30 @@ function jme({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, R.jsx)(HO, {
+ d.enabled ? /* @__PURE__ */ (0, R.jsx)(NO, {
divided: !0,
- children: /* @__PURE__ */ (0, R.jsxs)(JO, { children: [d.watch_local ? /* @__PURE__ */ (0, R.jsx)(YO, {
+ children: /* @__PURE__ */ (0, R.jsxs)(zO, { children: [d.watch_local ? /* @__PURE__ */ (0, R.jsx)(BO, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, R.jsx)(YO, {
+ }) : null, /* @__PURE__ */ (0, R.jsx)(BO, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, R.jsx)(HO, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, R.jsx)(NO, {
divided: !0,
children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, R.jsx)(KO, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, R.jsx)(WO, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, R.jsx)(LO, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, R.jsx)(FO, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("div", { children: /* @__PURE__ */ (0, R.jsx)(V, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, R.jsx)(XO, {
+ }) }), /* @__PURE__ */ (0, R.jsx)(VO, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, R.jsx)("div", {
className: "relative",
@@ -48033,17 +48134,17 @@ function jme({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, R.jsx)(WO, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
+ })] }) : /* @__PURE__ */ (0, R.jsx)(FO, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, R.jsx)(HO, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, R.jsx)(NO, {
divided: !0,
children: /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, R.jsx)(KO, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, R.jsx)(WO, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
+ /* @__PURE__ */ (0, R.jsx)(LO, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, R.jsx)(FO, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
/* @__PURE__ */ (0, R.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -48051,7 +48152,7 @@ function jme({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, R.jsx)(Sk, {
+ /* @__PURE__ */ (0, R.jsx)(pk, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -48060,18 +48161,18 @@ function jme({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, R.jsx)(tk, {
+ /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ children: u.map((e) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, R.jsx)(FO, {
+ /* @__PURE__ */ (0, R.jsx)(EO, {
icon: Ye,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
@@ -48090,15 +48191,15 @@ function jme({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, R.jsx)(HO, {
+ o || c.error ? /* @__PURE__ */ (0, R.jsx)(NO, {
divided: !0,
- children: /* @__PURE__ */ (0, R.jsx)(GO, { children: o || c.error })
+ children: /* @__PURE__ */ (0, R.jsx)(IO, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, R.jsxs)(UO, {
+ /* @__PURE__ */ (0, R.jsxs)(PO, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, R.jsx)(V, {
onClick: () => {
- c.run("secret", (e) => U(Ame, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(H(e)));
+ c.run("secret", (e) => U(Lme, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(H(e)));
},
disabled: !n.available,
...G(c.busy === "secret"),
@@ -48115,8 +48216,8 @@ function jme({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Mme = 8e3;
-function Nme({ className: e }) {
+var zme = 8e3;
+function Bme({ className: e }) {
return /* @__PURE__ */ (0, R.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -48129,33 +48230,33 @@ function Nme({ className: e }) {
children: /* @__PURE__ */ (0, R.jsx)("use", { href: "#i-folder-search" })
});
}
-var tL = [
+var fL = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Pme = (e) => tL.find(([t]) => t === e)?.[1] ?? e, nL = (e) => _[e] || "database", rL = (e = "") => ({
+], Vme = (e) => fL.find(([t]) => t === e)?.[1] ?? e, pL = (e) => _[e] || "database", mL = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Fme(e) {
- let t = e.media_sources?.filter((e) => tL.some(([t]) => t === e.location));
+function Hme(e) {
+ let t = e.media_sources?.filter((e) => fL.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) => rL(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => mL(e));
}
-var Ime = (e) => !(e instanceof Bi) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Lme({ data: e, receipt: t }) {
+var Ume = (e) => !(e instanceof Bi) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Wme({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, R.jsx)(Rme, {
+ e.editable ? /* @__PURE__ */ (0, R.jsx)(Gme, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, R.jsx)(W, {
@@ -48163,21 +48264,21 @@ function Lme({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, R.jsx)(Bme, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, R.jsx)(jme, {
+ /* @__PURE__ */ (0, R.jsx)(qme, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, R.jsx)(Rme, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function Rme({ data: e, receipt: t }) {
- let [n, r] = (0, L.useState)(() => Fme(e)), [i, a] = (0, L.useState)(String(e.port)), [o, s] = (0, L.useState)(!1), [c, l] = (0, L.useState)([]), [u, d] = (0, L.useState)(""), [f, p] = (0, L.useState)(""), [m, h] = (0, L.useState)(null), [g, _] = (0, L.useState)(null), [v, y] = (0, L.useState)(null), b = (0, L.useRef)(!1), x = (0, L.useRef)(e.revision), S = (0, L.useRef)([]), C = ia();
+function Gme({ data: e, receipt: t }) {
+ let [n, r] = (0, L.useState)(() => Hme(e)), [i, a] = (0, L.useState)(String(e.port)), [o, s] = (0, L.useState)(!1), [c, l] = (0, L.useState)([]), [u, d] = (0, L.useState)(""), [f, p] = (0, L.useState)(""), [m, h] = (0, L.useState)(null), [g, _] = (0, L.useState)(null), [v, y] = (0, L.useState)(null), b = (0, L.useRef)(!1), x = (0, L.useRef)(e.revision), S = (0, L.useRef)([]), C = ia();
(0, L.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, L.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), Mme);
+ let e = setTimeout(() => location.assign(m.url), zme);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -48188,14 +48289,14 @@ function Rme({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, rL()]);
+ _(n.length), r((e) => [...e, mL()]);
}, D = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, O = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await U(ume, { initial: n[e]?.path ?? "" });
+ let { path: t } = await U(_me, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, H(t));
@@ -48204,7 +48305,7 @@ function Rme({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => U(qI, {
+ r.preventDefault(), p(""), C.run("save", (t) => U(iL, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -48213,18 +48314,18 @@ function Rme({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Ime(e);
+ let t = Ume(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(H(e));
});
};
- if (m) return /* @__PURE__ */ (0, R.jsx)(BO, {
+ if (m) return /* @__PURE__ */ (0, R.jsx)(jO, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, R.jsx)(HO, { children: /* @__PURE__ */ (0, R.jsxs)(W, {
+ children: /* @__PURE__ */ (0, R.jsx)(NO, { children: /* @__PURE__ */ (0, R.jsxs)(W, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, R.jsx)(wO, {
+ /* @__PURE__ */ (0, R.jsx)(hO, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -48234,14 +48335,14 @@ function Rme({ data: e, receipt: t }) {
}) })
});
let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, R.jsxs)(HO, { children: [
+ children: [/* @__PURE__ */ (0, R.jsxs)(NO, { children: [
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, R.jsx)(KO, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, R.jsx)(LO, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, R.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -48252,7 +48353,7 @@ function Rme({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, R.jsx)(Sk, {
+ /* @__PURE__ */ (0, R.jsx)(pk, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -48265,13 +48366,13 @@ function Rme({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, R.jsx)(FO, {
- icon: Nme,
+ /* @__PURE__ */ (0, R.jsx)(EO, {
+ icon: Bme,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...G(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, R.jsx)(FO, {
+ n.length > 1 ? /* @__PURE__ */ (0, R.jsx)(EO, {
icon: Ye,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
@@ -48280,7 +48381,7 @@ function Rme({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, R.jsx)(Sk, {
+ /* @__PURE__ */ (0, R.jsx)(pk, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -48289,7 +48390,7 @@ function Rme({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, R.jsx)(KO, { children: "媒体库图标" }), /* @__PURE__ */ (0, R.jsx)(Ome, {
+ children: [/* @__PURE__ */ (0, R.jsx)(LO, { children: "媒体库图标" }), /* @__PURE__ */ (0, R.jsx)(Fme, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -48298,20 +48399,20 @@ function Rme({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, R.jsx)(KO, { children: "媒体来源" }), /* @__PURE__ */ (0, R.jsx)(tk, {
+ children: [/* @__PURE__ */ (0, R.jsx)(LO, { children: "媒体来源" }), /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: tL.map(([e, t]) => /* @__PURE__ */ (0, R.jsxs)(nk, {
+ children: fL.map(([e, t]) => /* @__PURE__ */ (0, R.jsxs)(qO, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, R.jsx)(ZO, { mark: nL(e) }), t]
+ children: [/* @__PURE__ */ (0, R.jsx)(HO, { mark: pL(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, R.jsx)(Sk, {
+ e.windows === !1 ? /* @__PURE__ */ (0, R.jsx)(pk, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -48328,18 +48429,18 @@ function Rme({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, R.jsx)(Eme, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, R.jsxs)(WO, { children: [
+ A ? /* @__PURE__ */ (0, R.jsx)(Nme, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, R.jsxs)(FO, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, R.jsxs)(qO, {
+ /* @__PURE__ */ (0, R.jsxs)(RO, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, R.jsx)(WO, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, R.jsx)(Sk, {
+ e.windows === !1 ? /* @__PURE__ */ (0, R.jsx)(FO, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, R.jsx)(pk, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -48349,7 +48450,7 @@ function Rme({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, R.jsx)(ck, {
+ /* @__PURE__ */ (0, R.jsx)($O, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -48359,7 +48460,7 @@ function Rme({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, R.jsx)(UO, {
+ ] }), /* @__PURE__ */ (0, R.jsx)(PO, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
@@ -48369,7 +48470,7 @@ function Rme({ data: e, receipt: t }) {
})]
});
}
-function zme({ online: e }) {
+function Kme({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, R.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -48393,21 +48494,21 @@ function zme({ online: e }) {
}), "未检测"]
});
}
-function Bme({ data: e }) {
+function qme({ data: e }) {
let t = e.media_sources, n = ia();
- return t ? /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return t ? /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, R.jsx)(JO, { children: t.map((e, t) => /* @__PURE__ */ (0, R.jsxs)(YO, {
- term: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(ZO, { mark: nL(e.location) }), Pme(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, R.jsx)(zme, { online: e.online })]
+ /* @__PURE__ */ (0, R.jsx)(zO, { children: t.map((e, t) => /* @__PURE__ */ (0, R.jsxs)(BO, {
+ term: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(HO, { mark: pL(e.location) }), Vme(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, R.jsx)(Kme, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, R.jsx)(HO, {
+ n.error ? /* @__PURE__ */ (0, R.jsx)(NO, {
divided: !0,
- children: /* @__PURE__ */ (0, R.jsx)(GO, { children: n.error })
+ children: /* @__PURE__ */ (0, R.jsx)(IO, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, R.jsx)(UO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
- onClick: () => void n.run("refresh", (e) => YI(e), (e) => K.setQueryData(JI, e)),
+ /* @__PURE__ */ (0, R.jsx)(PO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
+ onClick: () => void n.run("refresh", (e) => oL(e), (e) => K.setQueryData(aL, e)),
...G(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -48416,12 +48517,12 @@ function Bme({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Vme = {
+var Jme = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Hme({ initial: e, receipt: t }) {
+function Yme({ initial: e, receipt: t }) {
let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(""), [o, s] = (0, L.useState)(""), [c, l] = (0, L.useState)(""), [u, d] = (0, L.useState)(!1), [f, p] = (0, L.useState)({}), m = (0, L.useRef)(null), h = ia(), g = (e) => {
e.preventDefault();
let f = {};
@@ -48442,25 +48543,25 @@ function Hme({ initial: e, receipt: t }) {
let t = e instanceof Bi ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(H(e));
});
- }, _ = Vme[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ }, _ = Jme[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, R.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, R.jsxs)(HO, { children: [
- _ ? /* @__PURE__ */ (0, R.jsx)(WO, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, R.jsxs)(NO, { children: [
+ _ ? /* @__PURE__ */ (0, R.jsx)(FO, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, R.jsx)(ck, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, R.jsx)($O, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, R.jsx)(Sk, {
+ n.mode === "password" ? /* @__PURE__ */ (0, R.jsx)(pk, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -48473,7 +48574,7 @@ function Hme({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Sk, {
+ v ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(pk, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -48486,7 +48587,7 @@ function Hme({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, R.jsx)(Sk, {
+ }), /* @__PURE__ */ (0, R.jsx)(pk, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -48505,9 +48606,9 @@ function Hme({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, R.jsx)(GO, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, R.jsx)(IO, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, R.jsx)(UO, {
+ }), v ? /* @__PURE__ */ (0, R.jsx)(PO, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
@@ -48519,19 +48620,19 @@ function Hme({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var Ume = 2e3, Wme = [["quick", "临时链接"], ["named", "命名隧道"]], Gme = {
+var Xme = 2e3, Zme = [["quick", "临时链接"], ["named", "命名隧道"]], Qme = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function Kme({ revision: e, initial: t, receipt: n }) {
+function $me({ revision: e, initial: t, receipt: n }) {
let [r, i] = (0, L.useState)(t), [a, o] = (0, L.useState)(e), [s, c] = (0, L.useState)(t.mode), [l, u] = (0, L.useState)(t.hostname), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)({}), h = ia(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, L.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- YI(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (K.setQueryData(JI, t), i(t.tunnel), o(t.revision));
+ oL(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (K.setQueryData(aL, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, Ume);
+ }, Xme);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -48550,26 +48651,26 @@ function Kme({ revision: e, initial: t, receipt: n }) {
n ? m(n) : h.setError(H(e));
});
};
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, R.jsxs)(HO, { children: [
- r.named_available ? /* @__PURE__ */ (0, R.jsx)(Uk, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(NO, { children: [
+ r.named_available ? /* @__PURE__ */ (0, R.jsx)(Nk, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: Wk,
- children: Wme.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(gx, {
+ className: Pk,
+ children: Zme.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(fx, {
value: e,
- className: Gk,
+ className: Fk,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, R.jsx)(WO, { children: Gme[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(Sk, {
+ /* @__PURE__ */ (0, R.jsx)(FO, { children: Qme[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(pk, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -48580,7 +48681,7 @@ function Kme({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, R.jsx)(Sk, {
+ }), /* @__PURE__ */ (0, R.jsx)(pk, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -48600,7 +48701,7 @@ function Kme({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, R.jsx)(qO, {
+ children: /* @__PURE__ */ (0, R.jsx)(RO, {
href: r.url,
children: r.url
})
@@ -48610,9 +48711,9 @@ function Kme({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, R.jsx)(GO, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, R.jsx)(GO, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, R.jsxs)(UO, {
+ r.error ? /* @__PURE__ */ (0, R.jsx)(IO, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, R.jsx)(IO, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, R.jsxs)(PO, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, R.jsx)(V, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -48628,24 +48729,24 @@ function Kme({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var qme = [
+var ehe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Jme({ data: e, receipt: t }) {
+function the({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, R.jsx)(Yme, {
+ e.peach_proxy ? /* @__PURE__ */ (0, R.jsx)(nhe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, R.jsx)(Hme, {
+ e.access ? /* @__PURE__ */ (0, R.jsx)(Yme, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, R.jsx)(Kme, {
+ e.tunnel ? /* @__PURE__ */ (0, R.jsx)($me, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -48653,9 +48754,9 @@ function Jme({ data: e, receipt: t }) {
]
});
}
-function Yme({ initial: e, receipt: t }) {
+function nhe({ initial: e, receipt: t }) {
let [n, r] = (0, L.useState)(e), [i, a] = (0, L.useState)(e.mode), [o, s] = (0, L.useState)(""), c = ia();
- return /* @__PURE__ */ (0, R.jsxs)(BO, {
+ return /* @__PURE__ */ (0, R.jsxs)(jO, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -48667,25 +48768,25 @@ function Yme({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, R.jsx)(VO, { children: /* @__PURE__ */ (0, R.jsx)(zO, {
+ /* @__PURE__ */ (0, R.jsx)(MO, { children: /* @__PURE__ */ (0, R.jsx)(AO, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, R.jsx)(tk, {
+ children: /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: qme.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ children: ehe.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, R.jsxs)(HO, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, R.jsxs)(NO, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, R.jsx)(Sk, {
+ i === "proxy" ? /* @__PURE__ */ (0, R.jsx)(pk, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -48699,10 +48800,10 @@ function Yme({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, R.jsx)(GO, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, R.jsx)(IO, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, R.jsx)(UO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
+ /* @__PURE__ */ (0, R.jsx)(PO, { children: /* @__PURE__ */ (0, R.jsx)(V, {
type: "submit",
...G(c.busy === "save"),
children: "保存配置"
@@ -48712,10 +48813,10 @@ function Yme({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Xme({ receipt: e, reopenTutorial: t }) {
+function rhe({ receipt: e, reopenTutorial: t }) {
let n = Zn({
- queryKey: JI,
- queryFn: ({ signal: e }) => YI(e)
+ queryKey: aL,
+ queryFn: ({ signal: e }) => oL(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, R.jsx)("div", {
className: "configpage",
@@ -48736,22 +48837,22 @@ function Xme({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, R.jsx)(mme, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, R.jsx)(xme, { ...i }) : null,
/* @__PURE__ */ (0, R.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, R.jsx)(Lme, { ...i }),
+ /* @__PURE__ */ (0, R.jsx)(Wme, { ...i }),
o ? /* @__PURE__ */ (0, R.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, R.jsx)(Jme, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, R.jsx)(the, { ...i }) : null,
/* @__PURE__ */ (0, R.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, R.jsx)(yme, {
+ /* @__PURE__ */ (0, R.jsx)(Eme, {
...i,
reopenTutorial: t
})
@@ -48760,14 +48861,14 @@ function Xme({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Zme = "/api/stats", iL = ["stats"], aL = (e) => Hi(Zme, e);
-async function Qme(e) {
+var ihe = "/api/stats", hL = ["stats"], gL = (e) => Hi(ihe, e);
+async function ahe(e) {
await K.fetchQuery({
- queryKey: iL,
- queryFn: () => aL(e)
+ queryKey: hL,
+ queryFn: () => gL(e)
});
}
-var oL = (e, t) => t ? Math.round(e / t * 100) : 0, $me = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, sL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, cL = (e) => (e.max_reached || 0) * 100, ehe = (e) => e.kind === "online" ? "在线直接观看" : sL(e) < cL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", the = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, nhe = (e) => Math.max(1, ...e) * 1.1, rhe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), ihe = {
+var _L = (e, t) => t ? Math.round(e / t * 100) : 0, ohe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, vL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, yL = (e) => (e.max_reached || 0) * 100, she = (e) => e.kind === "online" ? "在线直接观看" : vL(e) < yL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", che = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, lhe = (e) => Math.max(1, ...e) * 1.1, uhe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), dhe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -48775,18 +48876,18 @@ var oL = (e, t) => t ? Math.round(e / t * 100) : 0, $me = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, ahe = (e) => e.map((e) => ({
- name: ihe[e.k] ?? e.k,
+}, fhe = (e) => e.map((e) => ({
+ name: dhe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), ohe = {
+})).sort((e, t) => t.value - e.value), phe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, lL = (e, t = {}) => e.map((e) => ({
+}, bL = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), she = (e) => lL(e, ohe), che = [
+})), mhe = (e) => bL(e, phe), hhe = [
[
1,
1,
@@ -48822,49 +48923,49 @@ var oL = (e, t) => t ? Math.round(e / t * 100) : 0, $me = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], lhe = (e) => che.map(([t, n, r]) => ({
+], ghe = (e) => hhe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), uhe = /* @__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 uL(e) {
- return typeof e == "string" && uhe.includes(e);
+})), _he = /* @__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 xL(e) {
+ return typeof e == "string" && _he.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var dhe = /* @__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 dL(e) {
- return typeof e == "string" && dhe.has(e);
+var vhe = /* @__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 SL(e) {
+ return typeof e == "string" && vhe.has(e);
}
-function fL(e) {
+function CL(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function pL(e) {
+function wL(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (dL(n) || fL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (SL(n) || CL(n)) && (t[n] = e[n]);
return t;
}
-function mL(e) {
+function TL(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, L.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return pL(t);
+ return wL(t);
}
- return typeof e == "object" && !Array.isArray(e) ? pL(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? wL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function hL(e) {
+function EL(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (dL(n) || fL(n) || uL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (SL(n) || CL(n) || xL(n)) && (t[n] = e[n]);
return t;
}
-function fhe(e) {
- return e == null ? null : /*#__PURE__*/ (0, L.isValidElement)(e) ? hL(e.props) : typeof e == "object" && !Array.isArray(e) ? hL(e) : null;
+function yhe(e) {
+ return e == null ? null : /*#__PURE__*/ (0, L.isValidElement)(e) ? EL(e.props) : typeof e == "object" && !Array.isArray(e) ? EL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var phe = [
+var bhe = [
"children",
"width",
"height",
@@ -48874,25 +48975,25 @@ var phe = [
"title",
"desc"
];
-function gL() {
- return gL = Object.assign ? Object.assign.bind() : function(e) {
+function DL() {
+ return DL = 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;
- }, gL.apply(null, arguments);
+ }, DL.apply(null, arguments);
}
-function mhe(e, t) {
+function xhe(e, t) {
if (e == null) return {};
- var n, r, i = hhe(e, t);
+ var n, r, i = She(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function hhe(e, t) {
+function She(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -48901,14 +49002,14 @@ function hhe(e, t) {
}
return n;
}
-var _L = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = mhe(e, phe), d = a || {
+var OL = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = xhe(e, bhe), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = Au("recharts-surface", o);
- return /*#__PURE__*/ L.createElement("svg", gL({}, hL(u), {
+ return /*#__PURE__*/ L.createElement("svg", DL({}, EL(u), {
className: f,
width: r,
height: i,
@@ -48916,26 +49017,26 @@ var _L = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ L.createElement("title", null, c), /*#__PURE__*/ L.createElement("desc", null, l), n);
-}), ghe = ["children", "className"];
-function vL() {
- return vL = Object.assign ? Object.assign.bind() : function(e) {
+}), Che = ["children", "className"];
+function kL() {
+ return kL = 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;
- }, vL.apply(null, arguments);
+ }, kL.apply(null, arguments);
}
-function _he(e, t) {
+function whe(e, t) {
if (e == null) return {};
- var n, r, i = vhe(e, t);
+ var n, r, i = The(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function vhe(e, t) {
+function The(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -48944,39 +49045,39 @@ function vhe(e, t) {
}
return n;
}
-var yL = /*#__PURE__*/ L.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = _he(e, ghe), a = Au("recharts-layer", r);
- return /*#__PURE__*/ L.createElement("g", vL({ className: a }, hL(i), { ref: t }), n);
-}), bL = /*#__PURE__*/ (0, L.createContext)(null), yhe = () => (0, L.useContext)(bL);
+var AL = /*#__PURE__*/ L.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = whe(e, Che), a = Au("recharts-layer", r);
+ return /*#__PURE__*/ L.createElement("g", kL({ className: a }, EL(i), { ref: t }), n);
+}), jL = /*#__PURE__*/ (0, L.createContext)(null), Ehe = () => (0, L.useContext)(jL);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function xL(e) {
+function ML(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var SL = Math.cos, CL = Math.sin, wL = Math.sqrt, TL = Math.PI;
-TL / 2;
-var EL = 2 * TL, DL = Math.PI, OL = 2 * DL, kL = 1e-6, bhe = OL - kL;
-function AL(e) {
+var NL = Math.cos, PL = Math.sin, FL = Math.sqrt, IL = Math.PI;
+IL / 2;
+var LL = 2 * IL, RL = Math.PI, zL = 2 * RL, BL = 1e-6, Dhe = zL - BL;
+function VL(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function xhe(e) {
+function Ohe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return AL;
+ if (t > 15) return VL;
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 jL = class {
+var HL = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? AL : xhe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? VL : Ohe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -48997,18 +49098,18 @@ var jL = 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 > kL) {
- if (!(Math.abs(u * s - c * l) > kL) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > BL) {
+ if (!(Math.abs(u * s - c * l) > BL) || !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((DL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > kL && 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((RL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > BL && 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) > kL || Math.abs(this._y1 - l) > kL) && this._append`L${c},${l}`, n && (d < 0 && (d = d % OL + OL), d > bhe ? 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 > kL && this._append`A${n},${n},0,${+(d >= DL)},${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) > BL || Math.abs(this._y1 - l) > BL) && this._append`L${c},${l}`, n && (d < 0 && (d = d % zL + zL), d > Dhe ? 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 > BL && this._append`A${n},${n},0,${+(d >= RL)},${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`;
@@ -49017,10 +49118,10 @@ var jL = class {
return this._;
}
};
-jL.prototype;
+HL.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function ML(e) {
+function UL(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -49031,18 +49132,18 @@ function ML(e) {
t = e;
}
return e;
- }, () => new jL(t);
+ }, () => new HL(t);
}
Array.prototype.slice;
-function NL(e) {
+function WL(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 PL(e) {
+function GL(e) {
this._context = e;
}
-PL.prototype = {
+GL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49065,33 +49166,33 @@ PL.prototype = {
}
}
};
-function FL(e) {
- return new PL(e);
+function KL(e) {
+ return new GL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function IL(e) {
+function qL(e) {
return e[0];
}
-function LL(e) {
+function JL(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function RL(e, t) {
- var n = xL(!0), r = null, i = FL, a = null, o = ML(s);
- e = typeof e == "function" ? e : e === void 0 ? IL : xL(e), t = typeof t == "function" ? t : t === void 0 ? LL : xL(t);
+function YL(e, t) {
+ var n = ML(!0), r = null, i = KL, a = null, o = UL(s);
+ e = typeof e == "function" ? e : e === void 0 ? qL : ML(e), t = typeof t == "function" ? t : t === void 0 ? JL : ML(t);
function s(s) {
- var c, l = (s = NL(s)).length, u, d = !1, f;
+ var c, l = (s = WL(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 : xL(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ML(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : xL(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : ML(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : xL(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : ML(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -49100,11 +49201,11 @@ function RL(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function zL(e, t, n) {
- var r = null, i = xL(!0), a = null, o = FL, s = null, c = ML(l);
- e = typeof e == "function" ? e : e === void 0 ? IL : xL(+e), t = typeof t == "function" ? t : xL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? LL : xL(+n);
+function XL(e, t, n) {
+ var r = null, i = ML(!0), a = null, o = KL, s = null, c = UL(l);
+ e = typeof e == "function" ? e : e === void 0 ? qL : ML(+e), t = typeof t == "function" ? t : ML(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? JL : ML(+n);
function l(l) {
- var u, d, f, p = (l = NL(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = WL(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();
@@ -49118,20 +49219,20 @@ function zL(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return RL().defined(i).curve(o).context(a);
+ return YL().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : xL(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ML(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : xL(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ML(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : xL(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : ML(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : xL(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : ML(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : xL(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : ML(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : xL(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : ML(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -49139,7 +49240,7 @@ function zL(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : xL(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : ML(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -49148,7 +49249,7 @@ function zL(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var BL = class {
+var ZL = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -49175,70 +49276,70 @@ var BL = class {
this._x0 = e, this._y0 = t;
}
};
-function She(e) {
- return new BL(e, !0);
+function khe(e) {
+ return new ZL(e, !0);
}
-function Che(e) {
- return new BL(e, !1);
+function Ahe(e) {
+ return new ZL(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var VL = { draw(e, t) {
- let n = wL(t / TL);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, EL);
-} }, whe = { draw(e, t) {
- let n = wL(t / 5) / 2;
+var QL = { draw(e, t) {
+ let n = FL(t / IL);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, LL);
+} }, jhe = { draw(e, t) {
+ let n = FL(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();
-} }, HL = wL(1 / 3), The = HL * 2, Ehe = { draw(e, t) {
- let n = wL(t / The), r = n * HL;
+} }, $L = FL(1 / 3), Mhe = $L * 2, Nhe = { draw(e, t) {
+ let n = FL(t / Mhe), r = n * $L;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, Dhe = { draw(e, t) {
- let n = wL(t), r = -n / 2;
+} }, Phe = { draw(e, t) {
+ let n = FL(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, Ohe = .8908130915292852, UL = CL(TL / 10) / CL(7 * TL / 10), khe = CL(EL / 10) * UL, Ahe = -SL(EL / 10) * UL, jhe = { draw(e, t) {
- let n = wL(t * Ohe), r = khe * n, i = Ahe * n;
+} }, Fhe = .8908130915292852, eR = PL(IL / 10) / PL(7 * IL / 10), Ihe = PL(LL / 10) * eR, Lhe = -NL(LL / 10) * eR, Rhe = { draw(e, t) {
+ let n = FL(t * Fhe), r = Ihe * n, i = Lhe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = EL * t / 5, o = SL(a), s = CL(a);
+ let a = LL * t / 5, o = NL(a), s = PL(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, WL = wL(3), Mhe = { draw(e, t) {
- let n = -wL(t / (WL * 3));
- e.moveTo(0, n * 2), e.lineTo(-WL * n, -n), e.lineTo(WL * n, -n), e.closePath();
-} }, GL = -.5, KL = wL(3) / 2, qL = 1 / wL(12), Nhe = (qL / 2 + 1) * 3, Phe = { draw(e, t) {
- let n = wL(t / Nhe), r = n / 2, i = n * qL, a = r, o = n * qL + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(GL * r - KL * i, KL * r + GL * i), e.lineTo(GL * a - KL * o, KL * a + GL * o), e.lineTo(GL * s - KL * c, KL * s + GL * c), e.lineTo(GL * r + KL * i, GL * i - KL * r), e.lineTo(GL * a + KL * o, GL * o - KL * a), e.lineTo(GL * s + KL * c, GL * c - KL * s), e.closePath();
+} }, tR = FL(3), zhe = { draw(e, t) {
+ let n = -FL(t / (tR * 3));
+ e.moveTo(0, n * 2), e.lineTo(-tR * n, -n), e.lineTo(tR * n, -n), e.closePath();
+} }, nR = -.5, rR = FL(3) / 2, iR = 1 / FL(12), Bhe = (iR / 2 + 1) * 3, Vhe = { draw(e, t) {
+ let n = FL(t / Bhe), r = n / 2, i = n * iR, a = r, o = n * iR + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(nR * r - rR * i, rR * r + nR * i), e.lineTo(nR * a - rR * o, rR * a + nR * o), e.lineTo(nR * s - rR * c, rR * s + nR * c), e.lineTo(nR * r + rR * i, nR * i - rR * r), e.lineTo(nR * a + rR * o, nR * o - rR * a), e.lineTo(nR * s + rR * c, nR * c - rR * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function Fhe(e, t) {
- let n = null, r = ML(i);
- e = typeof e == "function" ? e : xL(e || VL), t = typeof t == "function" ? t : xL(t === void 0 ? 64 : +t);
+function Hhe(e, t) {
+ let n = null, r = UL(i);
+ e = typeof e == "function" ? e : ML(e || QL), t = typeof t == "function" ? t : ML(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 : xL(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ML(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : xL(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : ML(+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 JL() {}
+function aR() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function YL(e, t, n) {
+function oR(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 XL(e) {
+function sR(e) {
this._context = e;
}
-XL.prototype = {
+sR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49250,7 +49351,7 @@ XL.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: YL(this, this._x1, this._y1);
+ case 3: oR(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;
@@ -49264,22 +49365,22 @@ XL.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: YL(this, e, t);
+ default: oR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Ihe(e) {
- return new XL(e);
+function Uhe(e) {
+ return new sR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function ZL(e) {
+function cR(e) {
this._context = e;
}
-ZL.prototype = {
- areaStart: JL,
- areaEnd: JL,
+cR.prototype = {
+ areaStart: aR,
+ areaEnd: aR,
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;
},
@@ -49305,20 +49406,20 @@ ZL.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: YL(this, e, t);
+ default: oR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Lhe(e) {
- return new ZL(e);
+function Whe(e) {
+ return new cR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function QL(e) {
+function lR(e) {
this._context = e;
}
-QL.prototype = {
+lR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49345,22 +49446,22 @@ QL.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: YL(this, e, t);
+ default: oR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Rhe(e) {
- return new QL(e);
+function Ghe(e) {
+ return new lR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function $L(e) {
+function uR(e) {
this._context = e;
}
-$L.prototype = {
- areaStart: JL,
- areaEnd: JL,
+uR.prototype = {
+ areaStart: aR,
+ areaEnd: aR,
lineStart: function() {
this._point = 0;
},
@@ -49371,30 +49472,30 @@ $L.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function zhe(e) {
- return new $L(e);
+function Khe(e) {
+ return new uR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function eR(e) {
+function dR(e) {
return e < 0 ? -1 : 1;
}
-function tR(e, t, n) {
+function fR(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 (eR(a) + eR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (dR(a) + dR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function nR(e, t) {
+function pR(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function rR(e, t, n) {
+function mR(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 iR(e) {
+function hR(e) {
this._context = e;
}
-iR.prototype = {
+hR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49409,7 +49510,7 @@ iR.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: rR(this, this._t0, nR(this, this._t0));
+ case 3: mR(this, this._t0, pR(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -49424,24 +49525,24 @@ iR.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, rR(this, nR(this, n = tR(this, e, t)), n);
+ this._point = 3, mR(this, pR(this, n = fR(this, e, t)), n);
break;
- default: rR(this, this._t0, n = tR(this, e, t));
+ default: mR(this, this._t0, n = fR(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function aR(e) {
- this._context = new oR(e);
+function gR(e) {
+ this._context = new _R(e);
}
-(aR.prototype = Object.create(iR.prototype)).point = function(e, t) {
- iR.prototype.point.call(this, t, e);
+(gR.prototype = Object.create(hR.prototype)).point = function(e, t) {
+ hR.prototype.point.call(this, t, e);
};
-function oR(e) {
+function _R(e) {
this._context = e;
}
-oR.prototype = {
+_R.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -49455,18 +49556,18 @@ oR.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Bhe(e) {
- return new iR(e);
+function qhe(e) {
+ return new hR(e);
}
-function Vhe(e) {
- return new aR(e);
+function Jhe(e) {
+ return new gR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function sR(e) {
+function vR(e) {
this._context = e;
}
-sR.prototype = {
+vR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49480,7 +49581,7 @@ sR.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 = cR(e), i = cR(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 = yR(e), i = yR(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;
},
@@ -49488,7 +49589,7 @@ sR.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function cR(e) {
+function yR(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];
@@ -49496,15 +49597,15 @@ function cR(e) {
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
-function Hhe(e) {
- return new sR(e);
+function Yhe(e) {
+ return new vR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function lR(e, t) {
+function bR(e, t) {
this._context = e, this._t = t;
}
-lR.prototype = {
+bR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49532,78 +49633,78 @@ lR.prototype = {
this._x = e, this._y = t;
}
};
-function Uhe(e) {
- return new lR(e, .5);
+function Xhe(e) {
+ return new bR(e, .5);
}
-function Whe(e) {
- return new lR(e, 0);
+function Zhe(e) {
+ return new bR(e, 0);
}
-function Ghe(e) {
- return new lR(e, 1);
+function Qhe(e) {
+ return new bR(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function uR(e, t) {
+function xR(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 dR(e) {
+function SR(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function Khe(e, t) {
+function $he(e, t) {
return e[t];
}
-function qhe(e) {
+function ege(e) {
let t = [];
return t.key = e, t;
}
-function Jhe() {
- var e = xL([]), t = dR, n = uR, r = Khe;
+function tge() {
+ var e = ML([]), t = SR, n = xR, r = $he;
function i(i) {
- var a = Array.from(e.apply(this, arguments), qhe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), ege), 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 = NL(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = WL(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 : xL(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : ML(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : xL(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : ML(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? dR : typeof e == "function" ? e : xL(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? SR : typeof e == "function" ? e : ML(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? uR, i) : n;
+ return arguments.length ? (n = e ?? xR, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Yhe(e, t) {
+function nge(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- uR(e, t);
+ xR(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Xhe(e, t) {
+function rge(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- uR(e, t);
+ xR(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function Zhe(e, t) {
+function ige(e, t) {
if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@ -49615,53 +49716,53 @@ function Zhe(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, uR(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, xR(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function fR(e) {
+function CR(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var Qhe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function pR(e) {
+var age = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function wR(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Qhe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : age.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function mR(e) {
+function TR(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 hR(e) {
+function ER(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function $he(e) {
- return e == null ? "" : gR(e);
+function oge(e) {
+ return e == null ? "" : DR(e);
}
-function gR(e) {
+function DR(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(gR).join(",");
- if (hR(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(DR).join(",");
+ if (ER(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 _R(e) {
- if (Array.isArray(e)) return e.map(mR);
+function OR(e) {
+ if (Array.isArray(e)) return e.map(TR);
if (typeof e == "symbol") return [e];
- e = $he(e);
+ e = oge(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -49689,100 +49790,100 @@ function _R(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function vR(e, t, n) {
+function kR(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (fR(t)) return n;
+ if (CR(t)) return n;
let r = e[t];
- return r === void 0 ? pR(t) && !Object.hasOwn(e, t) ? vR(e, _R(t), n) : n : r;
+ return r === void 0 ? wR(t) && !Object.hasOwn(e, t) ? kR(e, OR(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = mR(t));
+ typeof t == "number" && (t = TR(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return ege(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), fR(t)) return n;
+ if (Array.isArray(t)) return sge(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), CR(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function ege(e, t, n) {
+function sge(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || fR(t[e])) return n;
+ if (r == null || CR(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var tge = 4;
-function yR(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : tge), n = Math.round(e * t) / t;
+var cge = 4;
+function AR(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : cge), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function bR(e) {
+function jR(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 + yR(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + AR(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var xR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, SR = (e) => typeof e == "number" && e != +e, CR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !SR(e), wR = (e) => Z(e) || typeof e == "string", nge = 0, TR = (e) => {
- var t = ++nge;
+var MR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, NR = (e) => typeof e == "number" && e != +e, PR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !NR(e), FR = (e) => Z(e) || typeof e == "string", lge = 0, IR = (e) => {
+ var t = ++lge;
return `${e || ""}${t}`;
-}, ER = function(e, t) {
+}, LR = 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 (CR(e)) {
+ if (PR(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return SR(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, DR = (e) => {
+ return NR(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, RR = (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 OR(e, t, n) {
- return Z(e) && Z(t) ? yR(e + n * (t - e)) : t;
+function zR(e, t, n) {
+ return Z(e) && Z(t) ? AR(e + n * (t - e)) : t;
}
-function kR(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : vR(e, t)) === n);
+function BR(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : kR(e, t)) === n);
}
-var AR = (e) => e == null, jR = (e) => AR(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function MR(e) {
+var VR = (e) => e == null, HR = (e) => VR(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function UR(e) {
return e != null;
}
-function NR() {}
+function WR() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var rge = [
+var uge = [
"type",
"size",
"sizeType"
];
-function PR() {
- return PR = Object.assign ? Object.assign.bind() : function(e) {
+function GR() {
+ return GR = 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;
- }, PR.apply(null, arguments);
+ }, GR.apply(null, arguments);
}
-function FR(e, t) {
+function KR(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49792,30 +49893,30 @@ function FR(e, t) {
}
return n;
}
-function IR(e) {
+function qR(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? FR(Object(n), !0).forEach(function(t) {
- ige(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FR(Object(n)).forEach(function(t) {
+ t % 2 ? KR(Object(n), !0).forEach(function(t) {
+ dge(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KR(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ige(e, t, n) {
- return (t = age(t)) in e ? Object.defineProperty(e, t, {
+function dge(e, t, n) {
+ return (t = fge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function age(e) {
- var t = oge(e, "string");
+function fge(e) {
+ var t = pge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oge(e, t) {
+function pge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -49825,16 +49926,16 @@ function oge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function sge(e, t) {
+function mge(e, t) {
if (e == null) return {};
- var n, r, i = cge(e, t);
+ var n, r, i = hge(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function cge(e, t) {
+function hge(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -49843,68 +49944,68 @@ function cge(e, t) {
}
return n;
}
-var LR = {
- symbolCircle: VL,
- symbolCross: whe,
- symbolDiamond: Ehe,
- symbolSquare: Dhe,
- symbolStar: jhe,
- symbolTriangle: Mhe,
- symbolWye: Phe
-}, lge = Math.PI / 180, uge = (e) => LR[`symbol${jR(e)}`] || VL, dge = (e, t, n) => {
+var JR = {
+ symbolCircle: QL,
+ symbolCross: jhe,
+ symbolDiamond: Nhe,
+ symbolSquare: Phe,
+ symbolStar: Rhe,
+ symbolTriangle: zhe,
+ symbolWye: Vhe
+}, gge = Math.PI / 180, _ge = (e) => JR[`symbol${HR(e)}`] || QL, vge = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * lge;
+ var r = 18 * gge;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
-}, fge = (e, t) => {
- LR[`symbol${jR(e)}`] = t;
-}, RR = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = IR(IR({}, sge(e, rge)), {}, {
+}, yge = (e, t) => {
+ JR[`symbol${HR(e)}`] = t;
+}, YR = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = qR(qR({}, mge(e, uge)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = uge(a), t = Fhe().type(e).size(dge(n, r, a))();
+ var e = _ge(a), t = Hhe().type(e).size(vge(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = hL(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ L.createElement("path", PR({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = EL(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ L.createElement("path", GR({}, u, {
className: Au("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-RR.registerSymbol = fge;
+YR.registerSymbol = yge;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var zR = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, BR = (e, t) => {
+var XR = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, ZR = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, L.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- uL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ xL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, pge = (e, t, n) => (r) => (e(t, n, r), null), VR = (e, t, n) => {
+}, bge = (e, t, n) => (r) => (e(t, n, r), null), QR = (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];
- uL(i) && typeof a == "function" && (r ||= {}, r[i] = pge(a, t, n));
+ xL(i) && typeof a == "function" && (r ||= {}, r[i] = bge(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function HR(e, t) {
+function $R(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49914,30 +50015,30 @@ function HR(e, t) {
}
return n;
}
-function mge(e) {
+function xge(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? HR(Object(n), !0).forEach(function(t) {
- hge(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HR(Object(n)).forEach(function(t) {
+ t % 2 ? $R(Object(n), !0).forEach(function(t) {
+ Sge(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $R(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hge(e, t, n) {
- return (t = gge(t)) in e ? Object.defineProperty(e, t, {
+function Sge(e, t, n) {
+ return (t = Cge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gge(e) {
- var t = _ge(e, "string");
+function Cge(e) {
+ var t = wge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _ge(e, t) {
+function wge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -49947,22 +50048,22 @@ function _ge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function UR(e, t) {
- var n = mge({}, e), r = t;
+function ez(e, t) {
+ var n = xge({}, 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 WR() {
- return WR = Object.assign ? Object.assign.bind() : function(e) {
+function tz() {
+ return tz = 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;
- }, WR.apply(null, arguments);
+ }, tz.apply(null, arguments);
}
-function GR(e, t) {
+function nz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49972,30 +50073,30 @@ function GR(e, t) {
}
return n;
}
-function KR(e) {
+function rz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? GR(Object(n), !0).forEach(function(t) {
- vge(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GR(Object(n)).forEach(function(t) {
+ t % 2 ? nz(Object(n), !0).forEach(function(t) {
+ Tge(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vge(e, t, n) {
- return (t = yge(t)) in e ? Object.defineProperty(e, t, {
+function Tge(e, t, n) {
+ return (t = Ege(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yge(e) {
- var t = bge(e, "string");
+function Ege(e) {
+ var t = Dge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bge(e, t) {
+function Dge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50005,7 +50106,7 @@ function bge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var qR = 32, xge = {
+var iz = 32, Oge = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -50013,20 +50114,20 @@ var qR = 32, xge = {
verticalAlign: "middle",
labelStyle: {}
};
-function Sge(e) {
+function kge(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function Cge(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = qR / 2, a = qR / 6, o = qR / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function Age(e) {
+ var { data: t, iconType: n, inactiveColor: r } = e, i = iz / 2, a = iz / 6, o = iz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ L.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: Sge(t.payload),
+ strokeDasharray: kge(t.payload),
x1: 0,
y1: i,
- x2: qR,
+ x2: iz,
y2: i,
className: "recharts-legend-icon"
});
@@ -50036,35 +50137,35 @@ function Cge(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${qR}M${2 * o},${i}
+ H${iz}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ L.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${qR / 8}h${qR}v${qR * 3 / 4}h${-qR}z`,
+ d: `M0,${iz / 8}h${iz}v${iz * 3 / 4}h${-iz}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ L.isValidElement(t.legendIcon)) {
- var l = KR({}, t);
+ var l = rz({}, t);
return delete l.legendIcon, /*#__PURE__*/ L.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ L.createElement(RR, {
+ return /*#__PURE__*/ L.createElement(YR, {
fill: s,
cx: i,
cy: i,
- size: qR,
+ size: iz,
sizeType: "diameter",
type: c
});
}
-function wge(e) {
+function jge(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: qR,
- height: qR
+ width: iz,
+ height: iz
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -50080,20 +50181,20 @@ function wge(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? KR({}, s) : {};
+ var p = typeof s == "object" ? rz({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ L.createElement("li", WR({
+ return /*#__PURE__*/ L.createElement("li", tz({
className: f,
style: l,
key: `legend-item-${r}`
- }, VR(e, t, r)), /*#__PURE__*/ L.createElement(_L, {
+ }, QR(e, t, r)), /*#__PURE__*/ L.createElement(OL, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ L.createElement(Cge, {
+ }, /*#__PURE__*/ L.createElement(Age, {
data: t,
iconType: o,
inactiveColor: a
@@ -50103,8 +50204,8 @@ function wge(e) {
}, m));
});
}
-var Tge = (e) => {
- var t = UR(e, xge), { payload: n, layout: r, align: i } = t;
+var Mge = (e) => {
+ var t = ez(e, Oge), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -50114,11 +50215,11 @@ var Tge = (e) => {
return /*#__PURE__*/ L.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ L.createElement(wge, WR({}, t, { payload: n })));
+ }, /*#__PURE__*/ L.createElement(jge, tz({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function Ege(e, t) {
+function Nge(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -50128,77 +50229,77 @@ function Ege(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function Dge(e, t) {
+function Pge(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function JR(e) {
+function az(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function Oge(e) {
+function Fge(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function YR(e) {
- return e != null && typeof e != "function" && Oge(e.length);
+function oz(e) {
+ return e != null && typeof e != "function" && Fge(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function kge(e) {
+function Ige(e) {
return function(t) {
- return vR(t, e);
+ return kR(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function XR(e) {
+function sz(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function Age(e) {
+function Lge(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function jge(e) {
+function Rge(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function ZR(e) {
+function cz(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 Mge = "[object RegExp]", QR = "[object String]", $R = "[object Number]", ez = "[object Boolean]", tz = "[object Arguments]", Nge = "[object Symbol]", Pge = "[object Date]", Fge = "[object Map]", Ige = "[object Set]", Lge = "[object Array]", Rge = "[object ArrayBuffer]", zge = "[object Object]", Bge = "[object DataView]", Vge = "[object Uint8Array]", Hge = "[object Uint8ClampedArray]", Uge = "[object Uint16Array]", Wge = "[object Uint32Array]", Gge = "[object Int8Array]", Kge = "[object Int16Array]", qge = "[object Int32Array]", Jge = "[object Float32Array]", Yge = "[object Float64Array]", nz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var zge = "[object RegExp]", lz = "[object String]", uz = "[object Number]", dz = "[object Boolean]", fz = "[object Arguments]", Bge = "[object Symbol]", Vge = "[object Date]", Hge = "[object Map]", Uge = "[object Set]", Wge = "[object Array]", Gge = "[object ArrayBuffer]", Kge = "[object Object]", qge = "[object DataView]", Jge = "[object Uint8Array]", Yge = "[object Uint8ClampedArray]", Xge = "[object Uint16Array]", Zge = "[object Uint32Array]", Qge = "[object Int8Array]", $ge = "[object Int16Array]", e_e = "[object Int32Array]", t_e = "[object Float32Array]", n_e = "[object Float64Array]", pz = 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 Xge(e) {
- return nz.Buffer !== void 0 && nz.Buffer.isBuffer(e);
+function r_e(e) {
+ return pz.Buffer !== void 0 && pz.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function Zge(e, t) {
- return rz(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function i_e(e, t) {
+ return mz(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function rz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function mz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (XR(e)) return e;
+ if (sz(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] = rz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = mz(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());
@@ -50209,132 +50310,132 @@ function rz(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, rz(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, mz(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(rz(a, void 0, n, r, i));
+ for (let a of e) t.add(mz(a, void 0, n, r, i));
return t;
}
- if (Xge(e)) return e.subarray();
- if (Age(e)) {
+ if (r_e(e)) return e.subarray();
+ if (Lge(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = rz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = mz(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), iz(t, e, n, r, i), t;
+ return r.set(e, t), hz(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), iz(t, e, n, r, i), t;
+ return r.set(e, t), hz(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), iz(t, e, n, r, i), t;
+ return r.set(e, t), hz(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, iz(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, hz(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), iz(t, e, n, r, i), t;
+ return r.set(e, t), hz(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), iz(t, e, n, r, i), t;
+ return r.set(e, t), hz(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), iz(t, e, n, r, i), t;
+ return r.set(e, t), hz(t, e, n, r, i), t;
}
- if (typeof e == "object" && Qge(e)) {
+ if (typeof e == "object" && a_e(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), iz(t, e, n, r, i), t;
+ return r.set(e, t), hz(t, e, n, r, i), t;
}
return e;
}
-function iz(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...jge(t)];
+function hz(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...Rge(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = rz(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = mz(t[s], s, n, r, i));
}
}
-function Qge(e) {
- switch (ZR(e)) {
- case tz:
- case Lge:
- case Rge:
- case Bge:
- case ez:
- case Pge:
- case Jge:
- case Yge:
+function a_e(e) {
+ switch (cz(e)) {
+ case fz:
+ case Wge:
case Gge:
- case Kge:
case qge:
- case Fge:
- case $R:
- case zge:
- case Mge:
- case Ige:
- case QR:
- case Nge:
+ case dz:
case Vge:
+ case t_e:
+ case n_e:
+ case Qge:
+ case $ge:
+ case e_e:
case Hge:
+ case uz:
+ case Kge:
+ case zge:
case Uge:
- case Wge: return !0;
+ case lz:
+ case Bge:
+ case Jge:
+ case Yge:
+ case Xge:
+ case Zge: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function $ge(e) {
- return rz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function o_e(e) {
+ return mz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function az(e, t) {
+function gz(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function oz(e) {
+function _z(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function sz(e, t, n) {
- return typeof n == "function" ? cz(e, t, function e(t, r, i, a, o, s) {
+function vz(e, t, n) {
+ return typeof n == "function" ? yz(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? cz(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : sz(e, t, () => void 0);
+ return c === void 0 ? yz(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : vz(e, t, () => void 0);
}
-function cz(e, t, n, r, i = !1) {
+function yz(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return e_e(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? cz(e, { ...t }, n, r, i) : az(e, t);
- default: return oz(e) && i ? typeof t != "string" || t === "" : az(e, t);
+ case "object": return s_e(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? yz(e, { ...t }, n, r, i) : gz(e, t);
+ default: return _z(e) && i ? typeof t != "string" || t === "" : gz(e, t);
}
}
-function e_e(e, t, n, r, i = !1) {
+function s_e(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return lz(e, t, n, r);
- if (t instanceof Map) return t_e(e, t, n, r);
- if (t instanceof Set) return n_e(e, t, n, r);
+ if (Array.isArray(t)) return bz(e, t, n, r);
+ if (t instanceof Map) return c_e(e, t, n, r);
+ if (t instanceof Set) return l_e(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) XR(e) && (e = Object(e));
+ if (i) sz(e) && (e = Object(e));
else {
- let t = ZR(e);
+ let t = cz(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -50350,13 +50451,13 @@ function e_e(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function t_e(e, t, n, r) {
+function c_e(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function lz(e, t, n, r) {
+function bz(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -50374,40 +50475,40 @@ function lz(e, t, n, r) {
}
return !0;
}
-function n_e(e, t, n, r) {
- return t.size === 0 || e instanceof Set && lz([...e], [...t], n, r);
+function l_e(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && bz([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function uz(e, t) {
- return sz(e, t, () => void 0);
+function xz(e, t) {
+ return vz(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function r_e(e) {
- return e = $ge(e), (t) => uz(t, e);
+function u_e(e) {
+ return e = o_e(e), (t) => xz(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function i_e(e, t) {
- return Zge(e, (n, r, i, a) => {
+function d_e(e, t) {
+ return i_e(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (ZR(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (cz(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), iz(t, e, i, a), t;
+ return a.set(e, t), hz(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case $R:
- case QR:
- case ez: {
+ case uz:
+ case lz:
+ case dz: {
let t = new e.constructor(e?.valueOf());
- return iz(t, e), t;
+ return hz(t, e), t;
}
- case tz: {
+ case fz: {
let t = {};
- return iz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return hz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -50416,79 +50517,79 @@ function i_e(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function a_e(e) {
- return i_e(e);
+function f_e(e) {
+ return d_e(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var o_e = /^(?:0|[1-9]\d*)$/;
-function dz(e, t = 2 ** 53 - 1) {
+var p_e = /^(?:0|[1-9]\d*)$/;
+function Sz(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
- case "string": return o_e.test(e);
+ case "string": return p_e.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function s_e(e) {
- return typeof e == "object" && !!e && ZR(e) === "[object Arguments]";
+function m_e(e) {
+ return typeof e == "object" && !!e && cz(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function c_e(e, t) {
+function h_e(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && pR(t) && !(t in Object(e)) ? _R(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && wR(t) && !(t in Object(e)) ? OR(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = mR(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || s_e(r)) && dz(t) && Number(t) < r.length)) return !1;
+ let t = TR(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || m_e(r)) && Sz(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function l_e(e, t) {
+function g_e(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = mR(e);
+ case "number": e = TR(e);
}
- return t = a_e(t), function(n) {
- let r = vR(n, e);
- return r === void 0 ? c_e(n, e) : t === void 0 ? r === void 0 : uz(r, t);
+ return t = f_e(t), function(n) {
+ let r = kR(n, e);
+ return r === void 0 ? h_e(n, e) : t === void 0 ? r === void 0 : xz(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function fz(e) {
- if (e == null) return JR;
+function Cz(e) {
+ if (e == null) return az;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? l_e(e[0], e[1]) : r_e(e);
- default: return kge(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? g_e(e[0], e[1]) : u_e(e);
+ default: return Ige(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function u_e(e) {
+function __e(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function pz(e, t = JR) {
- return YR(e) ? Ege(Array.from(e), Dge(fz(t), 1)).map(u_e) : [];
+function wz(e, t = az) {
+ return oz(e) ? Nge(Array.from(e), Pge(Cz(t), 1)).map(__e) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function mz(e, t, n) {
- return t === !0 ? pz(e, n) : typeof t == "function" ? pz(e, t) : e;
+function Tz(e, t, n) {
+ return t === !0 ? wz(e, n) : typeof t == "function" ? wz(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var d_e = /* @__PURE__ */ Te(((e) => {
+var v_e = /* @__PURE__ */ Te(((e) => {
var t = Ne(), n = Wp();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -50533,60 +50634,60 @@ var d_e = /* @__PURE__ */ Te(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), f_e = /* @__PURE__ */ Te(((e, t) => {
- t.exports = d_e();
-})), hz = /*#__PURE__*/ (0, L.createContext)(null), p_e = f_e(), m_e = (e) => e, gz = () => {
- var e = (0, L.useContext)(hz);
- return e ? e.store.dispatch : m_e;
-}, _z = () => {}, h_e = () => _z, g_e = (e, t) => e === t;
+})), y_e = /* @__PURE__ */ Te(((e, t) => {
+ t.exports = v_e();
+})), Ez = /*#__PURE__*/ (0, L.createContext)(null), b_e = y_e(), x_e = (e) => e, Dz = () => {
+ var e = (0, L.useContext)(Ez);
+ return e ? e.store.dispatch : x_e;
+}, Oz = () => {}, S_e = () => Oz, C_e = (e, t) => e === t;
function Q(e) {
- var t = (0, L.useContext)(hz), n = (0, L.useMemo)(() => t ? (t) => {
+ var t = (0, L.useContext)(Ez), n = (0, L.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : _z, [t, e]);
- return (0, p_e.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : h_e, t ? t.store.getState : _z, t ? t.store.getState : _z, n, g_e);
+ } : Oz, [t, e]);
+ return (0, b_e.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : S_e, t ? t.store.getState : Oz, t ? t.store.getState : Oz, n, C_e);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function __e(e, t = `expected a function, instead received ${typeof e}`) {
+function w_e(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function v_e(e, t = `expected an object, instead received ${typeof e}`) {
+function T_e(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function y_e(e, t = "expected all items to be functions, instead received the following types: ") {
+function E_e(e, t = "expected all items to be functions, instead received the following types: ") {
if (!e.every((e) => typeof e == "function")) {
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
throw TypeError(`${t}[${n}]`);
}
}
-var vz = (e) => Array.isArray(e) ? e : [e];
-function b_e(e) {
+var kz = (e) => Array.isArray(e) ? e : [e];
+function D_e(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return y_e(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return E_e(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function x_e(e, t) {
+function O_e(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var S_e = class {
+var k_e = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, C_e = typeof WeakRef < "u" ? WeakRef : S_e, w_e = 0, yz = 1;
-function bz() {
+}, A_e = typeof WeakRef < "u" ? WeakRef : k_e, j_e = 0, Az = 1;
+function jz() {
return {
- s: w_e,
+ s: j_e,
v: void 0,
o: null,
p: null
};
}
-function xz(e, t = {}) {
- let n = bz(), { resultEqualityCheck: r } = t, i, a = 0;
+function Mz(e, t = {}) {
+ let n = jz(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -50595,43 +50696,43 @@ function xz(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = bz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = jz(), 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 = bz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = jz(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === yz) c = t.v;
+ if (t.s === Az) 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 C_e(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new A_e(c) : c;
}
- return s.s = yz, s.v = c, c;
+ return s.s = Az, s.v = c, c;
}
return o.clearCache = () => {
- n = bz(), o.resetResultsCount();
+ n = jz(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function T_e(e, ...t) {
+function M_e(e, ...t) {
let n = typeof e == "function" ? {
memoize: e,
memoizeOptions: t
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
- typeof o == "object" && (a = o, o = e.pop()), __e(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = xz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ typeof o == "object" && (a = o, o = e.pop()), w_e(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = Mz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = vz(c), p = vz(u), m = b_e(e), h = s(function() {
+ }, f = kz(c), p = kz(u), m = D_e(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = x_e(m, arguments);
+ let e = O_e(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -50653,14 +50754,14 @@ function T_e(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ T_e(xz), E_e = Object.assign((e, t = $) => {
- v_e(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ M_e(Mz), N_e = Object.assign((e, t = $) => {
+ T_e(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => E_e });
+}, { withTypes: () => N_e });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function D_e(e, t = 1) {
+function P_e(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -50671,17 +50772,17 @@ function D_e(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function Sz(e, t, n) {
- return oz(n) && (typeof t == "number" && YR(n) && dz(t) && t < n.length || typeof t == "string" && t in n) ? az(n[t], e) : !1;
+function Nz(e, t, n) {
+ return _z(n) && (typeof t == "number" && oz(n) && Sz(t) && t < n.length || typeof t == "string" && t in n) ? gz(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function Cz(e) {
+function Pz(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var O_e = (e, t, n) => {
+var F_e = (e, t, n) => {
if (e !== t) {
- let r = Cz(e), i = Cz(t);
+ let r = Pz(e), i = Pz(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -50689,15 +50790,15 @@ var O_e = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, k_e = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, A_e = /^\w*$/;
-function j_e(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || hR(e) ? !0 : typeof e == "string" && (A_e.test(e) || !k_e.test(e)) || t != null && Object.hasOwn(t, e);
+}, I_e = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, L_e = /^\w*$/;
+function R_e(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || ER(e) ? !0 : typeof e == "string" && (L_e.test(e) || !I_e.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function M_e(e, t, n, r) {
+function z_e(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = YR(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 = oz(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]];
@@ -50705,16 +50806,16 @@ function M_e(e, t, n, r) {
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || j_e(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || R_e(e) ? e : {
key: e,
- path: _R(e)
+ path: OR(e)
}));
return e.map((e) => ({
original: e,
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = O_e(e.criteria[r], t.criteria[r], n[r]);
+ let i = F_e(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -50722,25 +50823,25 @@ function M_e(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function wz(e, ...t) {
+function Fz(e, ...t) {
let n = t.length;
- return n > 1 && Sz(e, t[0], t[1]) ? t = [] : n > 2 && Sz(t[0], t[1], t[2]) && (t = [t[0]]), M_e(e, D_e(t), ["asc"]);
+ return n > 1 && Nz(e, t[0], t[1]) ? t = [] : n > 2 && Nz(t[0], t[1], t[2]) && (t = [t[0]]), z_e(e, P_e(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var Tz = (e) => e.legend.settings, N_e = (e) => e.legend.size, P_e = $([(e) => e.legend.payload, Tz], (e, t) => {
+var Iz = (e) => e.legend.settings, B_e = (e) => e.legend.size, V_e = $([(e) => e.legend.payload, Iz], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? wz(r, n) : r;
+ return n ? Fz(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function F_e() {
- return Q(P_e);
+function H_e() {
+ return Q(V_e);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var Ez = 1;
-function Dz() {
+var Lz = 1;
+function Rz() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, L.useState)({
height: 0,
left: 0,
@@ -50755,7 +50856,7 @@ function Dz() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > Ez || Math.abs(i.left - t.left) > Ez || Math.abs(i.top - t.top) > Ez || Math.abs(i.width - t.width) > Ez) && n({
+ (Math.abs(i.height - t.height) > Lz || Math.abs(i.left - t.left) > Lz || Math.abs(i.top - t.top) > Lz || Math.abs(i.width - t.width) > Lz) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -50772,26 +50873,26 @@ function Dz() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function Oz(e) {
+function zz(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 kz = typeof Symbol == "function" && Symbol.observable || "@@observable", Az = () => Math.random().toString(36).substring(7).split("").join("."), jz = {
- INIT: `@@redux/INIT${/* @__PURE__ */ Az()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Az()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Az()}`
+var Bz = typeof Symbol == "function" && Symbol.observable || "@@observable", Vz = () => Math.random().toString(36).substring(7).split("").join("."), Hz = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ Vz()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Vz()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Vz()}`
};
-function Mz(e) {
+function Uz(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 Nz(e, t, n) {
- if (typeof e != "function") throw Error(Oz(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(Oz(0));
+function Wz(e, t, n) {
+ if (typeof e != "function") throw Error(zz(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(zz(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(Oz(1));
- return n(Nz)(e, t);
+ if (typeof n != "function") throw Error(zz(1));
+ return n(Wz)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -50800,27 +50901,27 @@ function Nz(e, t, n) {
}));
}
function u() {
- if (c) throw Error(Oz(3));
+ if (c) throw Error(zz(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(Oz(4));
- if (c) throw Error(Oz(5));
+ if (typeof e != "function") throw Error(zz(4));
+ if (c) throw Error(zz(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(Oz(6));
+ if (c) throw Error(zz(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!Mz(e)) throw Error(Oz(7));
- if (e.type === void 0) throw Error(Oz(8));
- if (typeof e.type != "string") throw Error(Oz(17));
- if (c) throw Error(Oz(9));
+ if (!Uz(e)) throw Error(zz(7));
+ if (e.type === void 0) throw Error(zz(8));
+ if (typeof e.type != "string") throw Error(zz(17));
+ if (c) throw Error(zz(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -50831,41 +50932,41 @@ function Nz(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(Oz(10));
- r = e, f({ type: jz.REPLACE });
+ if (typeof e != "function") throw Error(zz(10));
+ r = e, f({ type: Hz.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(Oz(11));
+ if (typeof t != "object" || !t) throw Error(zz(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [kz]() {
+ [Bz]() {
return this;
}
};
}
- return f({ type: jz.INIT }), {
+ return f({ type: Hz.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [kz]: m
+ [Bz]: m
};
}
-function I_e(e) {
+function U_e(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: jz.INIT }) === void 0) throw Error(Oz(12));
- if (n(void 0, { type: jz.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(Oz(13));
+ if (n(void 0, { type: Hz.INIT }) === void 0) throw Error(zz(12));
+ if (n(void 0, { type: Hz.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(zz(13));
});
}
-function Pz(e) {
+function Gz(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -50873,7 +50974,7 @@ function Pz(e) {
}
let r = Object.keys(n), i;
try {
- I_e(n);
+ U_e(n);
} catch (e) {
i = e;
}
@@ -50882,124 +50983,124 @@ function Pz(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(Oz(14));
+ if (u === void 0) throw t && t.type, Error(zz(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function Fz(...e) {
+function Kz(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function L_e(...e) {
+function W_e(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(Oz(15));
+ throw Error(zz(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = Fz(...e.map((e) => e(o)))(i.dispatch), {
+ return a = Kz(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function Iz(e) {
- return Mz(e) && "type" in e && typeof e.type == "string";
+function qz(e) {
+ return Uz(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var Lz = Symbol.for("immer-nothing"), Rz = Symbol.for("immer-draftable"), zz = Symbol.for("immer-state");
-function Bz(e, ...t) {
+var Jz = Symbol.for("immer-nothing"), Yz = Symbol.for("immer-draftable"), Xz = Symbol.for("immer-state");
+function Zz(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var Vz = Object, Hz = Vz.getPrototypeOf, Uz = "constructor", Wz = "prototype", Gz = "configurable", Kz = "enumerable", qz = "writable", Jz = "value", Yz = (e) => !!e && !!e[zz];
-function Xz(e) {
- return e ? Qz(e) || iB(e) || !!e[Rz] || !!e[Uz]?.[Rz] || aB(e) || oB(e) : !1;
+var Qz = Object, $z = Qz.getPrototypeOf, eB = "constructor", tB = "prototype", nB = "configurable", rB = "enumerable", iB = "writable", aB = "value", oB = (e) => !!e && !!e[Xz];
+function sB(e) {
+ return e ? lB(e) || hB(e) || !!e[Yz] || !!e[eB]?.[Yz] || gB(e) || _B(e) : !1;
}
-var R_e = Vz[Wz][Uz].toString(), Zz = /* @__PURE__ */ new WeakMap();
-function Qz(e) {
- if (!e || !sB(e)) return !1;
- let t = Hz(e);
- if (t === null || t === Vz[Wz]) return !0;
- let n = Vz.hasOwnProperty.call(t, Uz) && t[Uz];
+var G_e = Qz[tB][eB].toString(), cB = /* @__PURE__ */ new WeakMap();
+function lB(e) {
+ if (!e || !vB(e)) return !1;
+ let t = $z(e);
+ if (t === null || t === Qz[tB]) return !0;
+ let n = Qz.hasOwnProperty.call(t, eB) && t[eB];
if (n === Object) return !0;
- if (!cB(n)) return !1;
- let r = Zz.get(n);
- return r === void 0 && (r = Function.toString.call(n), Zz.set(n, r)), r === R_e;
+ if (!yB(n)) return !1;
+ let r = cB.get(n);
+ return r === void 0 && (r = Function.toString.call(n), cB.set(n, r)), r === G_e;
}
-function $z(e, t, n = !0) {
- eB(e) === 0 ? (n ? Reflect.ownKeys(e) : Vz.keys(e)).forEach((n) => {
+function uB(e, t, n = !0) {
+ dB(e) === 0 ? (n ? Reflect.ownKeys(e) : Qz.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function eB(e) {
- let t = e[zz];
- return t ? t.type_ : iB(e) ? 1 : aB(e) ? 2 : oB(e) ? 3 : 0;
+function dB(e) {
+ let t = e[Xz];
+ return t ? t.type_ : hB(e) ? 1 : gB(e) ? 2 : _B(e) ? 3 : 0;
}
-var tB = (e, t, n = eB(e)) => n === 2 ? e.has(t) : Vz[Wz].hasOwnProperty.call(e, t), nB = (e, t, n = eB(e)) => n === 2 ? e.get(t) : e[t], rB = (e, t, n, r = eB(e)) => {
+var fB = (e, t, n = dB(e)) => n === 2 ? e.has(t) : Qz[tB].hasOwnProperty.call(e, t), pB = (e, t, n = dB(e)) => n === 2 ? e.get(t) : e[t], mB = (e, t, n, r = dB(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function z_e(e, t) {
+function K_e(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var iB = Array.isArray, aB = (e) => e instanceof Map, oB = (e) => e instanceof Set, sB = (e) => typeof e == "object", cB = (e) => typeof e == "function", lB = (e) => typeof e == "boolean";
-function B_e(e) {
+var hB = Array.isArray, gB = (e) => e instanceof Map, _B = (e) => e instanceof Set, vB = (e) => typeof e == "object", yB = (e) => typeof e == "function", bB = (e) => typeof e == "boolean";
+function q_e(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var uB = (e) => e.copy_ || e.base_, dB = (e) => e.modified_ ? e.copy_ : e.base_;
-function fB(e, t) {
- if (aB(e)) return new Map(e);
- if (oB(e)) return new Set(e);
- if (iB(e)) return Array[Wz].slice.call(e);
- let n = Qz(e);
+var xB = (e) => e.copy_ || e.base_, SB = (e) => e.modified_ ? e.copy_ : e.base_;
+function CB(e, t) {
+ if (gB(e)) return new Map(e);
+ if (_B(e)) return new Set(e);
+ if (hB(e)) return Array[tB].slice.call(e);
+ let n = lB(e);
if (t === !0 || t === "class_only" && !n) {
- let t = Vz.getOwnPropertyDescriptors(e);
- delete t[zz];
+ let t = Qz.getOwnPropertyDescriptors(e);
+ delete t[Xz];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[qz] === !1 && (a[qz] = !0, a[Gz] = !0), (a.get || a.set) && (t[i] = {
- [Gz]: !0,
- [qz]: !0,
- [Kz]: a[Kz],
- [Jz]: e[i]
+ a[iB] === !1 && (a[iB] = !0, a[nB] = !0), (a.get || a.set) && (t[i] = {
+ [nB]: !0,
+ [iB]: !0,
+ [rB]: a[rB],
+ [aB]: e[i]
});
}
- return Vz.create(Hz(e), t);
+ return Qz.create($z(e), t);
}
{
- let t = Hz(e);
+ let t = $z(e);
if (t !== null && n) return { ...e };
- let r = Vz.create(t);
- return Vz.assign(r, e);
- }
-}
-function pB(e, t = !1) {
- return hB(e) || Yz(e) || !Xz(e) ? e : (eB(e) > 1 && Vz.defineProperties(e, {
- set: mB,
- add: mB,
- clear: mB,
- delete: mB
- }), Vz.freeze(e), t && $z(e, (e, t) => {
- pB(t, !0);
+ let r = Qz.create(t);
+ return Qz.assign(r, e);
+ }
+}
+function wB(e, t = !1) {
+ return EB(e) || oB(e) || !sB(e) ? e : (dB(e) > 1 && Qz.defineProperties(e, {
+ set: TB,
+ add: TB,
+ clear: TB,
+ delete: TB
+ }), Qz.freeze(e), t && uB(e, (e, t) => {
+ wB(t, !0);
}, !1), e);
}
-function V_e() {
- Bz(2);
+function J_e() {
+ Zz(2);
}
-var mB = { [Jz]: V_e };
-function hB(e) {
- return e === null || !sB(e) || Vz.isFrozen(e);
+var TB = { [aB]: J_e };
+function EB(e) {
+ return e === null || !vB(e) || Qz.isFrozen(e);
}
-var gB = "MapSet", _B = "Patches", vB = "ArrayMethods", yB = {};
-function bB(e) {
- let t = yB[e];
- return t || Bz(0, e), t;
+var DB = "MapSet", OB = "Patches", kB = "ArrayMethods", AB = {};
+function jB(e) {
+ let t = AB[e];
+ return t || Zz(0, e), t;
}
-var xB = (e) => !!yB[e], SB, CB = () => SB, H_e = (e, t) => ({
+var MB = (e) => !!AB[e], NB, PB = () => NB, Y_e = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -51007,114 +51108,114 @@ var xB = (e) => !!yB[e], SB, CB = () => SB, H_e = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: xB(gB) ? bB(gB) : void 0,
- arrayMethodsPlugin_: xB(vB) ? bB(vB) : void 0
+ mapSetPlugin_: MB(DB) ? jB(DB) : void 0,
+ arrayMethodsPlugin_: MB(kB) ? jB(kB) : void 0
});
-function wB(e, t) {
- t && (e.patchPlugin_ = bB(_B), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function FB(e, t) {
+ t && (e.patchPlugin_ = jB(OB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function TB(e) {
- EB(e), e.drafts_.forEach(U_e), e.drafts_ = null;
+function IB(e) {
+ LB(e), e.drafts_.forEach(X_e), e.drafts_ = null;
}
-function EB(e) {
- e === SB && (SB = e.parent_);
+function LB(e) {
+ e === NB && (NB = e.parent_);
}
-var DB = (e) => SB = H_e(SB, e);
-function U_e(e) {
- let t = e[zz];
+var RB = (e) => NB = Y_e(NB, e);
+function X_e(e) {
+ let t = e[Xz];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function OB(e, t) {
+function zB(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[zz].modified_ && (TB(t), Bz(4)), Xz(e) && (e = kB(t, e));
+ n[Xz].modified_ && (IB(t), Zz(4)), sB(e) && (e = BB(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[zz].base_, e, t);
- } else e = kB(t, n);
- return W_e(t, e, !0), TB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === Lz ? void 0 : e;
-}
-function kB(e, t) {
- if (hB(t)) return t;
- let n = t[zz];
- if (!n) return PB(t, e.handledSet_, e);
- if (!jB(n, e)) return t;
+ r && r.generateReplacementPatches_(n[Xz].base_, e, t);
+ } else e = BB(t, n);
+ return Z_e(t, e, !0), IB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === Jz ? void 0 : e;
+}
+function BB(e, t) {
+ if (EB(t)) return t;
+ let n = t[Xz];
+ if (!n) return GB(t, e.handledSet_, e);
+ if (!HB(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);
- NB(n, e);
+ WB(n, e);
}
return n.copy_;
}
-function W_e(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && pB(t, n);
+function Z_e(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && wB(t, n);
}
-function AB(e) {
+function VB(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var jB = (e, t) => e.scope_ === t, G_e = [];
-function MB(e, t, n, r) {
- let i = uB(e), a = e.type_;
- if (r !== void 0 && nB(i, r, a) === t) {
- rB(i, r, n, a);
+var HB = (e, t) => e.scope_ === t, Q_e = [];
+function UB(e, t, n, r) {
+ let i = xB(e), a = e.type_;
+ if (r !== void 0 && pB(i, r, a) === t) {
+ mB(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- $z(i, (e, n) => {
- if (Yz(n)) {
+ uB(i, (e, n) => {
+ if (oB(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? G_e;
- for (let e of o) rB(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? Q_e;
+ for (let e of o) mB(i, e, n, a);
}
-function K_e(e, t, n) {
+function $_e(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !jB(i, r)) return;
+ if (!i || !HB(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = dB(i);
- MB(e, i.draft_ ?? i, a, n), NB(i, r);
+ let a = SB(i);
+ UB(e, i.draft_ ?? i, a, n), WB(i, r);
});
}
-function NB(e, t) {
+function WB(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);
}
- AB(e);
+ VB(e);
}
}
-function q_e(e, t, n) {
+function eve(e, t, n) {
let { scope_: r } = e;
- if (Yz(n)) {
- let i = n[zz];
- jB(i, r) && i.callbacks_.push(function() {
- BB(e), MB(e, n, dB(i), t);
+ if (oB(n)) {
+ let i = n[Xz];
+ HB(i, r) && i.callbacks_.push(function() {
+ ZB(e), UB(e, n, SB(i), t);
});
- } else Xz(n) && e.callbacks_.push(function() {
- let i = uB(e);
- e.type_ === 3 ? i.has(n) && PB(n, r.handledSet_, r) : nB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && PB(nB(e.copy_, t, e.type_), r.handledSet_, r);
+ } else sB(n) && e.callbacks_.push(function() {
+ let i = xB(e);
+ e.type_ === 3 ? i.has(n) && GB(n, r.handledSet_, r) : pB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && GB(pB(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function PB(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || Yz(e) || t.has(e) || !Xz(e) || hB(e) ? e : (t.add(e), $z(e, (r, i) => {
- if (Yz(i)) {
- let t = i[zz];
- jB(t, n) && (rB(e, r, dB(t), e.type_), AB(t));
- } else Xz(i) && PB(i, t, n);
+function GB(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || oB(e) || t.has(e) || !sB(e) || EB(e) ? e : (t.add(e), uB(e, (r, i) => {
+ if (oB(i)) {
+ let t = i[Xz];
+ HB(t, n) && (mB(e, r, SB(t), e.type_), VB(t));
+ } else sB(i) && GB(i, t, n);
}), e);
}
-function J_e(e, t) {
- let n = iB(e), r = {
+function tve(e, t) {
+ let n = hB(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : CB(),
+ scope_: t ? t.scope_ : PB(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -51125,108 +51226,108 @@ function J_e(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = FB;
- n && (i = [r], a = IB);
+ }, i = r, a = KB;
+ n && (i = [r], a = qB);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var FB = {
+var KB = {
get(e, t) {
- if (t === zz) return e;
+ if (t === Xz) 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 = uB(e);
- if (!tB(i, t, e.type_)) return X_e(e, i, t);
+ let i = xB(e);
+ if (!fB(i, t, e.type_)) return rve(e, i, t);
let a = i[t];
- if (e.finalized_ || !Xz(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && B_e(t)) return a;
- if (a === LB(e.base_, t) || Y_e(e, t, a)) {
- BB(e);
- let n = e.type_ === 1 ? +t : t, r = VB(e.scope_, a, e, n);
+ if (e.finalized_ || !sB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && q_e(t)) return a;
+ if (a === JB(e.base_, t) || nve(e, t, a)) {
+ ZB(e);
+ let n = e.type_ === 1 ? +t : t, r = QB(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in uB(e);
+ return t in xB(e);
},
ownKeys(e) {
- return Reflect.ownKeys(uB(e));
+ return Reflect.ownKeys(xB(e));
},
set(e, t, n) {
- let r = RB(uB(e), t);
+ let r = YB(xB(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = LB(uB(e), t), i = r?.[zz];
+ let r = JB(xB(e), t), i = r?.[Xz];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (z_e(n, r) && (n !== void 0 || tB(e.base_, t, e.type_))) return !0;
- BB(e), zB(e);
+ if (K_e(n, r) && (n !== void 0 || fB(e.base_, t, e.type_))) return !0;
+ ZB(e), XB(e);
}
- return e.copy_[t] === n && (n !== void 0 || tB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), q_e(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || fB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), eve(e, t, n), !0);
},
deleteProperty(e, t) {
- return BB(e), LB(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), zB(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return ZB(e), JB(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), XB(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = uB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = xB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [qz]: !0,
- [Gz]: e.type_ !== 1 || t !== "length",
- [Kz]: r[Kz],
- [Jz]: n[t]
+ [iB]: !0,
+ [nB]: e.type_ !== 1 || t !== "length",
+ [rB]: r[rB],
+ [aB]: n[t]
};
},
defineProperty() {
- Bz(11);
+ Zz(11);
},
getPrototypeOf(e) {
- return Hz(e.base_);
+ return $z(e.base_);
},
setPrototypeOf() {
- Bz(12);
+ Zz(12);
}
-}, IB = {};
-for (let e in FB) {
- let t = FB[e];
- IB[e] = function() {
+}, qB = {};
+for (let e in KB) {
+ let t = KB[e];
+ qB[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-IB.deleteProperty = function(e, t) {
- return IB.set.call(this, e, t, void 0);
-}, IB.set = function(e, t, n) {
- return FB.set.call(this, e[0], t, n, e[0]);
+qB.deleteProperty = function(e, t) {
+ return qB.set.call(this, e, t, void 0);
+}, qB.set = function(e, t, n) {
+ return KB.set.call(this, e[0], t, n, e[0]);
};
-function LB(e, t) {
- let n = e[zz];
- return (n ? uB(n) : e)[t];
+function JB(e, t) {
+ let n = e[Xz];
+ return (n ? xB(n) : e)[t];
}
-function Y_e(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !Xz(n) || n[zz] ? !1 : e.baseRefs_.has(n);
+function nve(e, t, n) {
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !sB(n) || n[Xz] ? !1 : e.baseRefs_.has(n);
}
-function X_e(e, t, n) {
- let r = RB(t, n);
- return r ? Jz in r ? r[Jz] : r.get?.call(e.draft_) : void 0;
+function rve(e, t, n) {
+ let r = YB(t, n);
+ return r ? aB in r ? r[aB] : r.get?.call(e.draft_) : void 0;
}
-function RB(e, t) {
+function YB(e, t) {
if (!(t in e)) return;
- let n = Hz(e);
+ let n = $z(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = Hz(n);
+ n = $z(n);
}
}
-function zB(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && zB(e.parent_));
+function XB(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && XB(e.parent_));
}
-function BB(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), fB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function ZB(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), CB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var Z_e = class {
+var ive = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (cB(e) && !cB(t)) {
+ if (yB(e) && !yB(t)) {
let n = t;
t = e;
let r = this;
@@ -51234,30 +51335,30 @@ var Z_e = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- cB(t) || Bz(6), n !== void 0 && !cB(n) && Bz(7);
+ yB(t) || Zz(6), n !== void 0 && !yB(n) && Zz(7);
let r;
- if (Xz(e)) {
- let i = DB(this), a = VB(i, e, void 0), o = !0;
+ if (sB(e)) {
+ let i = RB(this), a = QB(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? TB(i) : EB(i);
+ o ? IB(i) : LB(i);
}
- return wB(i, n), OB(r, i);
+ return FB(i, n), zB(r, i);
}
- if (!e || !sB(e)) {
- if (r = t(e), r === void 0 && (r = e), r === Lz && (r = void 0), this.autoFreeze_ && pB(r, !0), n) {
+ if (!e || !vB(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === Jz && (r = void 0), this.autoFreeze_ && wB(r, !0), n) {
let t = [], i = [];
- bB(_B).generateReplacementPatches_(e, r, {
+ jB(OB).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- Bz(1, e);
+ Zz(1, e);
}, this.produceWithPatches = (e, t) => {
- if (cB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (yB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -51266,18 +51367,18 @@ var Z_e = class {
n,
r
];
- }, lB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), lB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), lB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, bB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), bB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), bB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- Xz(e) || Bz(8), Yz(e) && (e = HB(e));
- let t = DB(this), n = VB(t, e, void 0);
- return n[zz].isManual_ = !0, EB(t), n;
+ sB(e) || Zz(8), oB(e) && (e = $B(e));
+ let t = RB(this), n = QB(t, e, void 0);
+ return n[Xz].isManual_ = !0, LB(t), n;
}
finishDraft(e, t) {
- let n = e && e[zz];
- (!n || !n.isManual_) && Bz(9);
+ let n = e && e[Xz];
+ (!n || !n.isManual_) && Zz(9);
let { scope_: r } = n;
- return wB(r, t), OB(void 0, r);
+ return FB(r, t), zB(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -51301,48 +51402,48 @@ var Z_e = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = bB(_B).applyPatches_;
- return Yz(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = jB(OB).applyPatches_;
+ return oB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function VB(e, t, n, r) {
- let [i, a] = aB(t) ? bB(gB).proxyMap_(t, n) : oB(t) ? bB(gB).proxySet_(t, n) : J_e(t, n);
- return (n?.scope_ ?? CB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? K_e(n, a, r) : a.callbacks_.push(function(e) {
+function QB(e, t, n, r) {
+ let [i, a] = gB(t) ? jB(DB).proxyMap_(t, n) : _B(t) ? jB(DB).proxySet_(t, n) : tve(t, n);
+ return (n?.scope_ ?? PB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? $_e(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 HB(e) {
- return Yz(e) || Bz(10, e), UB(e);
+function $B(e) {
+ return oB(e) || Zz(10, e), eV(e);
}
-function UB(e) {
- if (!Xz(e) || hB(e)) return e;
- let t = e[zz], n, r = !0;
+function eV(e) {
+ if (!sB(e) || EB(e)) return e;
+ let t = e[Xz], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = fB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = fB(e, !0);
- return $z(n, (e, t) => {
- rB(n, e, UB(t));
+ t.finalized_ = !0, n = CB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = CB(e, !0);
+ return uB(n, (e, t) => {
+ mB(n, e, eV(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var WB = new Z_e().produce;
+var tV = new ive().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function GB(e) {
+function nV(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var Q_e = GB(), $_e = GB, eve = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? Fz : Fz.apply(null, arguments);
+var ave = nV(), ove = nV, sve = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? Kz : Kz.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function KB(e, t) {
+function rV(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(DV(0));
+ if (!r) throw Error(RV(0));
return {
type: e,
payload: r.payload,
@@ -51355,9 +51456,9 @@ function KB(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => Iz(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => qz(t) && t.type === e, n;
}
-var qB = class e extends Array {
+var iV = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -51371,29 +51472,29 @@ var qB = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function JB(e) {
- return Xz(e) ? WB(e, () => {}) : e;
+function aV(e) {
+ return sB(e) ? tV(e, () => {}) : e;
}
-function YB(e, t, n) {
+function oV(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function tve(e) {
+function cve(e) {
return typeof e == "boolean";
}
-var nve = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new qB();
- return t && (tve(t) ? a.push(Q_e) : a.push($_e(t.extraArgument))), a;
-}, XB = "RTK_autoBatch", ZB = () => (e) => ({
+var lve = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new iV();
+ return t && (cve(t) ? a.push(ave) : a.push(ove(t.extraArgument))), a;
+}, sV = "RTK_autoBatch", cV = () => (e) => ({
payload: e,
- meta: { [XB]: !0 }
-}), QB = (e) => (t) => {
+ meta: { [sV]: !0 }
+}), lV = (e) => (t) => {
setTimeout(t, e);
-}, rve = (e, t) => (n) => {
+}, uve = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, $B = (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 ? rve(window.requestAnimationFrame, 100) : QB(10) : e.type === "callback" ? e.queueNotification : QB(e.timeout), l = () => {
+}, uV = (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 ? uve(window.requestAnimationFrame, 100) : lV(10) : e.type === "callback" ? e.queueNotification : lV(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -51405,37 +51506,37 @@ var nve = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[XB], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[sV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, ive = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new qB(e);
- return n && r.push($B(typeof n == "object" ? n : void 0)), r;
+}, dve = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new iV(e);
+ return n && r.push(uV(typeof n == "object" ? n : void 0)), r;
};
-function ave(e) {
- let t = nve(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function fve(e) {
+ let t = lve(), { 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 (Mz(n)) c = Pz(n);
- else throw Error(DV(1));
+ else if (Uz(n)) c = Gz(n);
+ else throw Error(RV(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = Fz;
- i && (u = eve({
+ let u = Kz;
+ i && (u = sve({
trace: !1,
...typeof i == "object" && i
}));
- let d = ive(L_e(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return Nz(c, o, p);
+ let d = dve(W_e(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return Wz(c, o, p);
}
-function eV(e) {
+function dV(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(DV(28));
- if (r in t) throw Error(DV(29));
+ if (!r) throw Error(RV(28));
+ if (r in t) throw Error(RV(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -51460,25 +51561,25 @@ function eV(e) {
r
];
}
-function ove(e) {
+function pve(e) {
return typeof e == "function";
}
-function sve(e, t) {
- let [n, r, i] = eV(t), a;
- if (ove(e)) a = () => JB(e());
+function mve(e, t) {
+ let [n, r, i] = dV(t), a;
+ if (pve(e)) a = () => aV(e());
else {
- let t = JB(e);
+ let t = aV(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 (Yz(e)) {
+ if (oB(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (Xz(e)) return WB(e, (e) => n(e, t));
+ if (sB(e)) return tV(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -51493,20 +51594,20 @@ function sve(e, t) {
}
return o.getInitialState = a, o;
}
-var cve = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", lve = (e = 21) => {
+var hve = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", gve = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += cve[Math.random() * 64 | 0];
+ for (; n--;) t += hve[Math.random() * 64 | 0];
return t;
-}, uve = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function dve(e, t) {
+}, _ve = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function vve(e, t) {
return `${e}/${t}`;
}
-function fve({ creators: e } = {}) {
- let t = e?.asyncThunk?.[uve];
+function yve({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[_ve];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(DV(11));
- let i = (typeof e.reducers == "function" ? e.reducers(mve()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(RV(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(xve()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -51514,8 +51615,8 @@ function fve({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(DV(12));
- if (n in o.sliceCaseReducersByType) throw Error(DV(13));
+ if (!n) throw Error(RV(12));
+ if (n in o.sliceCaseReducersByType) throw Error(RV(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -51534,17 +51635,17 @@ function fve({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: dve(n, r),
+ type: vve(n, r),
createNotation: typeof e.reducers == "function"
};
- gve(a) ? vve(o, a, s, t) : hve(o, a, s);
+ Cve(a) ? Tve(o, a, s, t) : Sve(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? eV(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? dV(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return sve(e.initialState, (e) => {
+ return mve(e.initialState, (e) => {
for (let t in i) e.addCase(t, i[t]);
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -51561,12 +51662,12 @@ function fve({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = YB(d, r, m)), i;
+ return i === void 0 && n && (i = oV(d, r, m)), i;
}
function i(t = l) {
- return YB(YB(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return oV(oV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = pve(a, t, () => YB(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = bve(a, t, () => oV(d, t, m), n);
return r;
});
}
@@ -51600,15 +51701,15 @@ function fve({ creators: e } = {}) {
return g;
};
}
-function pve(e, t, n, r) {
+function bve(e, t, n, r) {
function i(i, ...a) {
let o = t(i);
return o === void 0 && r && (o = n()), e(o, ...a);
}
return i.unwrapped = e, i;
}
-var tV = /* @__PURE__ */ fve();
-function mve() {
+var fV = /* @__PURE__ */ yve();
+function xve() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -51632,57 +51733,57 @@ function mve() {
asyncThunk: e
};
}
-function hve({ type: e, reducerName: t, createNotation: n }, r, i) {
+function Sve({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !_ve(r)) throw Error(DV(17));
+ if (n && !wve(r)) throw Error(RV(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? KB(e, o) : KB(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? rV(e, o) : rV(e));
}
-function gve(e) {
+function Cve(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function _ve(e) {
+function wve(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function vve({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(DV(18));
+function Tve({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(RV(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 || nV,
- pending: s || nV,
- rejected: c || nV,
- settled: l || nV
+ fulfilled: o || pV,
+ pending: s || pV,
+ rejected: c || pV,
+ settled: l || pV
});
}
-function nV() {}
-var yve = "task", rV = "listener", iV = "completed", aV = "cancelled", bve = `task-${aV}`, xve = `task-${iV}`, oV = `${rV}-${aV}`, Sve = `${rV}-${iV}`, sV = class {
+function pV() {}
+var Eve = "task", mV = "listener", hV = "completed", gV = "cancelled", Dve = `task-${gV}`, Ove = `task-${hV}`, _V = `${mV}-${gV}`, kve = `${mV}-${hV}`, vV = class {
constructor(e) {
- this.code = e, this.message = `${yve} ${aV} (reason: ${e})`;
+ this.code = e, this.message = `${Eve} ${gV} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, cV = (e, t) => {
- if (typeof e != "function") throw TypeError(DV(32));
-}, lV = () => {}, uV = (e, t = lV) => (e.catch(t), e), dV = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), fV = (e) => {
- if (e.aborted) throw new sV(e.reason);
+}, yV = (e, t) => {
+ if (typeof e != "function") throw TypeError(RV(32));
+}, bV = () => {}, xV = (e, t = bV) => (e.catch(t), e), SV = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), CV = (e) => {
+ if (e.aborted) throw new vV(e.reason);
};
-function pV(e, t) {
- let n = lV;
+function wV(e, t) {
+ let n = bV;
return new Promise((r, i) => {
- let a = () => i(new sV(e.reason));
+ let a = () => i(new vV(e.reason));
if (e.aborted) {
a();
return;
}
- n = dV(e, a), t.finally(() => n()).then(r, i);
+ n = SV(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = lV;
+ n = bV;
});
}
-var Cve = async (e, t) => {
+var Ave = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -51690,40 +51791,40 @@ var Cve = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof sV ? "cancelled" : "rejected",
+ status: e instanceof vV ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, mV = (e) => (t) => uV(pV(e, t).then((t) => (fV(e), t))), hV = (e) => {
- let t = mV(e);
+}, TV = (e) => (t) => xV(wV(e, t).then((t) => (CV(e), t))), EV = (e) => {
+ let t = TV(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: gV } = Object, _V = {}, vV = "listenerMiddleware", wve = (e, t) => {
- let n = (t) => dV(e, () => t.abort(e.reason));
+}, { assign: DV } = Object, OV = {}, kV = "listenerMiddleware", jve = (e, t) => {
+ let n = (t) => SV(e, () => t.abort(e.reason));
return (r, i) => {
- cV(r, "taskExecutor");
+ yV(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = Cve(async () => {
- fV(e), fV(a.signal);
+ let o = Ave(async () => {
+ CV(e), CV(a.signal);
let t = await r({
- pause: mV(a.signal),
- delay: hV(a.signal),
+ pause: TV(a.signal),
+ delay: EV(a.signal),
signal: a.signal
});
- return fV(a.signal), t;
- }, () => a.abort(xve));
- return i?.autoJoin && t.push(o.catch(lV)), {
- result: mV(e)(o),
+ return CV(a.signal), t;
+ }, () => a.abort(Ove));
+ return i?.autoJoin && t.push(o.catch(bV)), {
+ result: TV(e)(o),
cancel() {
- a.abort(bve);
+ a.abort(Dve);
}
};
};
-}, Tve = (e, t) => {
+}, Mve = (e, t) => {
let n = async (n, r) => {
- fV(t);
+ CV(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -51741,47 +51842,47 @@ var Cve = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await pV(t, Promise.race(a));
- return fV(t), e;
+ let e = await wV(t, Promise.race(a));
+ return CV(t), e;
} finally {
i();
}
};
- return ((e, t) => uV(n(e, t)));
-}, yV = (e) => {
+ return ((e, t) => xV(n(e, t)));
+}, AV = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = KB(t).match;
+ if (t) i = rV(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(DV(21));
- return cV(a, "options.listener"), {
+ else if (!i) throw Error(RV(21));
+ return yV(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, bV = /* @__PURE__ */ gV((e) => {
- let { type: t, predicate: n, effect: r } = yV(e);
+}, jV = /* @__PURE__ */ DV((e) => {
+ let { type: t, predicate: n, effect: r } = AV(e);
return {
- id: lve(),
+ id: gve(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(DV(22));
+ throw Error(RV(22));
}
};
-}, { withTypes: () => bV }), xV = (e, t) => {
- let { type: n, effect: r, predicate: i } = yV(t);
+}, { withTypes: () => jV }), MV = (e, t) => {
+ let { type: n, effect: r, predicate: i } = AV(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, SV = (e) => {
+}, NV = (e) => {
e.pending.forEach((e) => {
- e.abort(oV);
+ e.abort(_V);
});
-}, Eve = (e, t) => () => {
- for (let e of t.keys()) SV(e);
+}, Nve = (e, t) => () => {
+ for (let e of t.keys()) NV(e);
e.clear();
-}, CV = (e, t, n) => {
+}, PV = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -51789,74 +51890,74 @@ var Cve = async (e, t) => {
throw e;
}, 0);
}
-}, wV = /* @__PURE__ */ gV(/* @__PURE__ */ KB(`${vV}/add`), { withTypes: () => wV }), Dve = /* @__PURE__ */ KB(`${vV}/removeAll`), TV = /* @__PURE__ */ gV(/* @__PURE__ */ KB(`${vV}/remove`), { withTypes: () => TV }), Ove = (...e) => {
- console.error(`${vV}/error`, ...e);
-}, EV = (e = {}) => {
+}, FV = /* @__PURE__ */ DV(/* @__PURE__ */ rV(`${kV}/add`), { withTypes: () => FV }), Pve = /* @__PURE__ */ rV(`${kV}/removeAll`), IV = /* @__PURE__ */ DV(/* @__PURE__ */ rV(`${kV}/remove`), { withTypes: () => IV }), Fve = (...e) => {
+ console.error(`${kV}/error`, ...e);
+}, LV = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
let t = n.get(e) ?? 0;
n.set(e, t + 1);
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = Ove } = e;
- cV(o, "onError");
+ }, { extra: a, onError: o = Fve } = e;
+ yV(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && SV(e);
+ e.unsubscribe(), t?.cancelActive && NV(e);
}), c = ((e) => {
- let n = xV(t, e) ?? bV(e);
+ let n = MV(t, e) ?? jV(e);
return s(n);
});
- gV(c, { withTypes: () => c });
+ DV(c, { withTypes: () => c });
let l = (e) => {
- let n = xV(t, e);
- return n && (n.unsubscribe(), e.cancelActive && SV(n)), !!n;
+ let n = MV(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && NV(n)), !!n;
};
- gV(l, { withTypes: () => l });
+ DV(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = Tve(c, u.signal), f = [];
+ let u = new AbortController(), d = Mve(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, gV({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, DV({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: hV(u.signal),
- pause: mV(u.signal),
+ delay: EV(u.signal),
+ pause: TV(u.signal),
extra: a,
signal: u.signal,
- fork: wve(u.signal, f),
+ fork: jve(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(oV), n.delete(e));
+ e !== u && (e.abort(_V), n.delete(e));
});
},
cancel: () => {
- u.abort(oV), e.pending.delete(u);
+ u.abort(_V), e.pending.delete(u);
},
throwIfCancelled: () => {
- fV(u.signal);
+ CV(u.signal);
}
})));
} catch (e) {
- e instanceof sV || CV(o, e, { raisedBy: "effect" });
+ e instanceof vV || PV(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(Sve), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(kve), i(e), e.pending.delete(u);
}
- }, d = Eve(t, n);
+ }, d = Nve(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!Iz(r)) return n(r);
- if (wV.match(r)) return c(r.payload);
- if (Dve.match(r)) {
+ if (!qz(r)) return n(r);
+ if (FV.match(r)) return c(r.payload);
+ if (Pve.match(r)) {
d();
return;
}
- if (TV.match(r)) return l(r.payload);
+ if (IV.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === _V) throw Error(DV(23));
+ if (i === OV) throw Error(RV(23));
return i;
}, s;
try {
@@ -51867,13 +51968,13 @@ var Cve = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, CV(o, e, { raisedBy: "predicate" });
+ s = !1, PV(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = _V;
+ i = OV;
}
return s;
},
@@ -51882,12 +51983,12 @@ var Cve = async (e, t) => {
clearListeners: d
};
};
-function DV(e) {
+function RV(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 OV = tV({
+var zV = fV({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -51915,23 +52016,23 @@ var OV = tV({
e.scale = t.payload;
}
}
-}), { setMargin: kve, setLayout: Ave, setChartSize: jve, setScale: Mve } = OV.actions, Nve = OV.reducer;
+}), { setMargin: Ive, setLayout: Lve, setChartSize: Rve, setScale: zve } = zV.actions, Bve = zV.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function kV(e, t, n) {
+function BV(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 AV(e) {
+function VV(e) {
return Number.isFinite(e);
}
-function jV(e) {
+function HV(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function MV(e, t) {
+function UV(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51941,30 +52042,30 @@ function MV(e, t) {
}
return n;
}
-function NV(e) {
+function WV(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? MV(Object(n), !0).forEach(function(t) {
- PV(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MV(Object(n)).forEach(function(t) {
+ t % 2 ? UV(Object(n), !0).forEach(function(t) {
+ GV(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UV(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function PV(e, t, n) {
- return (t = FV(t)) in e ? Object.defineProperty(e, t, {
+function GV(e, t, n) {
+ return (t = KV(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FV(e) {
- var t = IV(e, "string");
+function KV(e) {
+ var t = qV(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function IV(e, t) {
+function qV(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51974,63 +52075,63 @@ function IV(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function LV(e, t, n) {
- return AR(e) || AR(t) ? n : wR(t) ? vR(e, t, n) : typeof t == "function" ? t(e) : n;
+function JV(e, t, n) {
+ return VR(e) || VR(t) ? n : FR(t) ? kR(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var RV = (e, t, n) => {
+var YV = (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 NV(NV({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return NV(NV({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return WV(WV({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return WV(WV({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, zV = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", BV = (e, t, n, r) => {
+}, XV = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", ZV = (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;
-}, VV = (e, t, n) => {
+}, QV = (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 ? xR(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? MR(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 AV(i) ? {
+ return VV(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(MR) : c && l ? l.map((e, t) => {
+ }).filter(UR) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return AV(n) ? {
+ return VV(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(MR) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(UR) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return AV(n) ? {
+ return VV(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(MR) : o.domain().map((e, t) => {
+ }).filter(UR) : o.domain().map((e, t) => {
var n = o.map(e);
- return AV(n) ? {
+ return VV(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(MR);
-}, HV = (e, t) => {
+ }).filter(UR);
+}, $V = (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;
-}, UV = {
+}, eH = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -52038,16 +52139,16 @@ var RV = (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 = SR(c) ? l : c;
+ var c = s[1], l = s[0], u = NR(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Yhe,
- none: uR,
- silhouette: Xhe,
- wiggle: Zhe,
+ expand: nge,
+ none: xR,
+ silhouette: rge,
+ wiggle: ige,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -52055,70 +52156,70 @@ var RV = (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 = SR(o[1]) ? o[0] : o[1];
+ var s = NR(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, WV = (e, t, n) => {
- var r = UV[n] ?? uR, i = Jhe().keys(t).value((e, t) => Number(LV(e, t, 0))).order(dR).offset(r)(e);
+}, tH = (e, t, n) => {
+ var r = eH[n] ?? xR, i = tge().keys(t).value((e, t) => Number(JV(e, t, 0))).order(SR).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = LV(e[i], t[r], 0);
+ var a = JV(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 GV(e) {
+function nH(e) {
return e == null ? void 0 : String(e);
}
-function KV(e) {
+function rH(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !AR(i[t.dataKey])) {
- var s = kR(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !VR(i[t.dataKey])) {
+ var s = BR(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 = LV(i, AR(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = JV(i, VR(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var qV = (e) => {
+var iH = (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 = LV(a, t.dataKey, t.scale.domain()[o]);
- if (AR(s)) return null;
+ var s = JV(a, t.dataKey, t.scale.domain()[o]);
+ if (VR(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, JV = (e) => {
+}, aH = (e) => {
var { numericAxis: t } = e, n = t.scale.domain();
if (t.type === "number") {
var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, YV = (e) => {
+}, oH = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, XV = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], ZV = (e, t, n) => {
- if (e != null) return XV(Object.keys(e).reduce((r, i) => {
+}, sH = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], cH = (e, t, n) => {
+ if (e != null) return sH(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = YV(kV(r, t, n));
- return !AV(i[0]) || !AV(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = oH(BV(r, t, n));
+ return !VV(i[0]) || !VV(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]));
-}, QV = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, $V = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, eH = (e, t, n) => {
+}, lH = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, uH = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, dH = (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 = wz(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = Fz(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);
}
@@ -52126,26 +52227,26 @@ var qV = (e) => {
}
return n ? void 0 : 0;
};
-function tH(e) {
+function fH(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return NV(NV({}, t), {}, {
+ return WV(WV({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function nH(e, t) {
+function pH(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var rH = (e, t) => {
+var mH = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, iH = (e, t) => t === "centric" ? e.angle : e.radius, aH = (e) => e.layout.width, oH = (e) => e.layout.height, sH = (e) => e.layout.scale, cH = (e) => e.layout.margin, lH = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), uH = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), dH = "data-recharts-item-index";
+}, hH = (e, t) => t === "centric" ? e.angle : e.radius, gH = (e) => e.layout.width, _H = (e) => e.layout.height, vH = (e) => e.layout.scale, yH = (e) => e.layout.margin, bH = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), xH = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), SH = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function fH(e, t) {
+function CH(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52155,30 +52256,30 @@ function fH(e, t) {
}
return n;
}
-function pH(e) {
+function wH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fH(Object(n), !0).forEach(function(t) {
- mH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fH(Object(n)).forEach(function(t) {
+ t % 2 ? CH(Object(n), !0).forEach(function(t) {
+ TH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mH(e, t, n) {
- return (t = hH(t)) in e ? Object.defineProperty(e, t, {
+function TH(e, t, n) {
+ return (t = EH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hH(e) {
- var t = gH(e, "string");
+function EH(e) {
+ var t = DH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gH(e, t) {
+function DH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52188,58 +52289,58 @@ function gH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var _H = (e) => e.brush.height;
-function vH(e) {
- return uH(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+var OH = (e) => e.brush.height;
+function kH(e) {
+ return xH(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function yH(e) {
- return uH(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+function AH(e) {
+ return xH(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function bH(e) {
- return lH(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+function jH(e) {
+ return bH(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-function xH(e) {
- return lH(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+function MH(e) {
+ return bH(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-var SH = $([
- aH,
- oH,
- cH,
+var NH = $([
+ gH,
_H,
- vH,
yH,
- bH,
- xH,
- Tz,
- N_e
+ OH,
+ kH,
+ AH,
+ jH,
+ MH,
+ Iz,
+ B_e
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = pH(pH({}, {
+ }, d = wH(wH({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = RV(d, c, l);
+ d.bottom += r, d = YV(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return pH(pH({ brushBottom: f }, d), {}, {
+ return wH(wH({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), CH = $(SH, (e) => ({
+}), PH = $(NH, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), wH = $(aH, oH, (e, t) => ({
+})), FH = $(gH, _H, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), TH = /*#__PURE__*/ (0, L.createContext)(null), EH = () => (0, L.useContext)(TH) != null, DH = (e) => e.brush, OH = $([
- DH,
- SH,
- cH
+})), IH = /*#__PURE__*/ (0, L.createContext)(null), LH = () => (0, L.useContext)(IH) != null, RH = (e) => e.brush, zH = $([
+ RH,
+ NH,
+ yH
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -52248,7 +52349,7 @@ var SH = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function kH(e, t, { signal: n, edges: r } = {}) {
+function BH(e, t, { signal: n, edges: r } = {}) {
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
a !== null && (e.apply(i, a), i = void 0, a = null);
}, l = () => {
@@ -52273,11 +52374,11 @@ function kH(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function AH(e, t = 0, n = {}) {
+function VH(e, t = 0, n = {}) {
typeof n != "object" && (n = {});
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
r && (o[0] = "leading"), i && (o[1] = "trailing");
- let s, c = null, l = kH(function(...t) {
+ let s, c = null, l = BH(function(...t) {
s = e.apply(this, t), c = null;
}, t, { edges: o }), u = function(...t) {
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
@@ -52286,9 +52387,9 @@ function AH(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function jH(e, t = 0, n = {}) {
+function HH(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return AH(e, t, {
+ return VH(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -52296,7 +52397,7 @@ function jH(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var MH = function(e, t) {
+var UH = 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.");
@@ -52305,7 +52406,7 @@ var MH = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, NH = {
+}, WH = {
width: "100%",
height: "100%",
debounce: 0,
@@ -52314,45 +52415,45 @@ var MH = function(e, t) {
width: -1,
height: -1
}
-}, PH = (e, t, n) => {
- var { width: r = NH.width, height: i = NH.height, aspect: a, maxHeight: o } = n, s = CR(r) ? e : Number(r), c = CR(i) ? t : Number(i);
+}, GH = (e, t, n) => {
+ var { width: r = WH.width, height: i = WH.height, aspect: a, maxHeight: o } = n, s = PR(r) ? e : Number(r), c = PR(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
};
-}, FH = {
+}, KH = {
width: 0,
height: 0,
overflow: "visible"
-}, IH = {
+}, qH = {
width: 0,
overflowX: "visible"
-}, LH = {
+}, JH = {
height: 0,
overflowY: "visible"
-}, RH = {}, zH = (e) => {
- var { width: t, height: n } = e, r = CR(t), i = CR(n);
- return r && i ? FH : r ? IH : i ? LH : RH;
+}, YH = {}, XH = (e) => {
+ var { width: t, height: n } = e, r = PR(t), i = PR(n);
+ return r && i ? KH : r ? qH : i ? JH : YH;
};
-function BH(e) {
+function ZH(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = NH.width, a = NH.height) : i === void 0 ? i = r && r > 0 ? void 0 : NH.width : a === void 0 && (a = r && r > 0 ? void 0 : NH.height), {
+ return i === void 0 && a === void 0 ? (i = WH.width, a = WH.height) : i === void 0 ? i = r && r > 0 ? void 0 : WH.width : a === void 0 && (a = r && r > 0 ? void 0 : WH.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function VH() {
- return VH = Object.assign ? Object.assign.bind() : function(e) {
+function QH() {
+ return QH = 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;
- }, VH.apply(null, arguments);
+ }, QH.apply(null, arguments);
}
-function HH(e, t) {
+function $H(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52362,30 +52463,30 @@ function HH(e, t) {
}
return n;
}
-function UH(e) {
+function eU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? HH(Object(n), !0).forEach(function(t) {
- WH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HH(Object(n)).forEach(function(t) {
+ t % 2 ? $H(Object(n), !0).forEach(function(t) {
+ tU(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $H(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function WH(e, t, n) {
- return (t = GH(t)) in e ? Object.defineProperty(e, t, {
+function tU(e, t, n) {
+ return (t = nU(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GH(e) {
- var t = KH(e, "string");
+function nU(e) {
+ var t = rU(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KH(e, t) {
+function rU(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52395,19 +52496,19 @@ function KH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var qH = /*#__PURE__*/ (0, L.createContext)(NH.initialDimension);
-function JH(e) {
- return jV(e.width) && jV(e.height);
+var iU = /*#__PURE__*/ (0, L.createContext)(WH.initialDimension);
+function aU(e) {
+ return HV(e.width) && HV(e.height);
}
-function YH(e) {
+function oU(e) {
var { children: t, width: n, height: r } = e, i = (0, L.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return JH(i) ? /*#__PURE__*/ L.createElement(qH.Provider, { value: i }, t) : null;
+ return aU(i) ? /*#__PURE__*/ L.createElement(iU.Provider, { value: i }, t) : null;
}
-var XH = () => (0, L.useContext)(qH), ZH = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = NH.initialDimension, width: i, height: a, minWidth: o = NH.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = NH.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, L.useRef)(null), g = (0, L.useRef)();
+var sU = () => (0, L.useContext)(iU), cU = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = WH.initialDimension, width: i, height: a, minWidth: o = WH.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = WH.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, L.useRef)(null), g = (0, L.useRef)();
g.current = p, (0, L.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, L.useState)({
containerWidth: r.width,
@@ -52422,7 +52523,7 @@ var XH = () => (0, L.useContext)(qH), ZH = /*#__PURE__*/ (0, L.forwardRef)((e, t
});
}, []);
(0, L.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return NR;
+ if (h.current == null || typeof ResizeObserver > "u") return WR;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -52430,7 +52531,7 @@ var XH = () => (0, L.useContext)(qH), ZH = /*#__PURE__*/ (0, L.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = jH(e, u, {
+ u > 0 && (e = HH(e, u, {
trailing: !0,
leading: !1
}));
@@ -52440,17 +52541,17 @@ var XH = () => (0, L.useContext)(qH), ZH = /*#__PURE__*/ (0, L.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- MH(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = PH(b, x, {
+ UH(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = GH(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return MH(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__*/ L.createElement("div", {
+ return UH(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__*/ L.createElement("div", {
id: d ? `${d}` : void 0,
className: Au("recharts-responsive-container", f),
- style: UH(UH({}, m), {}, {
+ style: eU(eU({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -52458,30 +52559,30 @@ var XH = () => (0, L.useContext)(qH), ZH = /*#__PURE__*/ (0, L.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ L.createElement("div", { style: zH({
+ }, /*#__PURE__*/ L.createElement("div", { style: XH({
width: i,
height: a
- }) }, /*#__PURE__*/ L.createElement(YH, {
+ }) }, /*#__PURE__*/ L.createElement(oU, {
width: S,
height: C
}, l)));
-}), QH = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var n = XH();
- if (jV(n.width) && jV(n.height)) return e.children;
- var { width: r, height: i } = BH({
+}), lU = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var n = sU();
+ if (HV(n.width) && HV(n.height)) return e.children;
+ var { width: r, height: i } = ZH({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = PH(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = GH(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ L.createElement(YH, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ L.createElement(oU, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ L.createElement(ZH, VH({}, e, {
+ }, e.children) : /*#__PURE__*/ L.createElement(cU, QH({}, e, {
width: r,
height: i,
ref: t
@@ -52489,7 +52590,7 @@ var XH = () => (0, L.useContext)(qH), ZH = /*#__PURE__*/ (0, L.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function $H(e) {
+function uU(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -52499,15 +52600,15 @@ function $H(e) {
height: e.height
};
}
-var eU = () => {
- var e = EH(), t = Q(CH), n = Q(OH), r = Q(DH)?.padding;
+var dU = () => {
+ var e = LH(), t = Q(PH), n = Q(zH), r = Q(RH)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
height: n.height - r.top - r.bottom,
x: r.left,
y: r.top
};
-}, tU = {
+}, fU = {
top: 0,
bottom: 0,
left: 0,
@@ -52515,16 +52616,16 @@ var eU = () => {
width: 0,
height: 0,
brushBottom: 0
-}, nU = () => Q(SH) ?? tU, rU = () => Q(aH), iU = () => Q(oH), aU = () => Q((e) => e.layout.margin), oU = (e) => e.layout.layoutType, sU = () => Q(oU), cU = () => {
- var e = sU();
+}, pU = () => Q(NH) ?? fU, mU = () => Q(gH), hU = () => Q(_H), gU = () => Q((e) => e.layout.margin), _U = (e) => e.layout.layoutType, vU = () => Q(_U), yU = () => {
+ var e = vU();
if (e === "horizontal" || e === "vertical") return e;
-}, lU = (e) => {
+}, bU = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, uU = () => Q(lU), dU = () => sU() !== void 0, fU = (e) => {
- var t = gz(), n = EH(), { width: r, height: i } = e, a = XH(), o = r, s = i;
+}, xU = () => Q(bU), SU = () => vU() !== void 0, CU = (e) => {
+ var t = Dz(), n = LH(), { width: r, height: i } = e, a = sU(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, L.useEffect)(() => {
- !n && jV(o) && jV(s) && t(jve({
+ !n && HV(o) && HV(s) && t(Rve({
width: o,
height: s
}));
@@ -52534,64 +52635,64 @@ var eU = () => {
o,
s
]), null;
-}, pU = Symbol.for("immer-nothing"), mU = Symbol.for("immer-draftable"), hU = Symbol.for("immer-state");
-function gU(e, ...t) {
+}, wU = Symbol.for("immer-nothing"), TU = Symbol.for("immer-draftable"), EU = Symbol.for("immer-state");
+function DU(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var _U = Object.getPrototypeOf;
-function vU(e) {
- return !!e && !!e[hU];
+var OU = Object.getPrototypeOf;
+function kU(e) {
+ return !!e && !!e[EU];
}
-function yU(e) {
- return e ? SU(e) || Array.isArray(e) || !!e[mU] || !!e.constructor?.[mU] || OU(e) || kU(e) : !1;
+function AU(e) {
+ return e ? NU(e) || Array.isArray(e) || !!e[TU] || !!e.constructor?.[TU] || zU(e) || BU(e) : !1;
}
-var bU = Object.prototype.constructor.toString(), xU = /* @__PURE__ */ new WeakMap();
-function SU(e) {
+var jU = Object.prototype.constructor.toString(), MU = /* @__PURE__ */ new WeakMap();
+function NU(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 = xU.get(n);
- return r === void 0 && (r = Function.toString.call(n), xU.set(n, r)), r === bU;
+ let r = MU.get(n);
+ return r === void 0 && (r = Function.toString.call(n), MU.set(n, r)), r === jU;
}
-function CU(e, t, n = !0) {
- wU(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function PU(e, t, n = !0) {
+ FU(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 wU(e) {
- let t = e[hU];
- return t ? t.type_ : Array.isArray(e) ? 1 : OU(e) ? 2 : kU(e) ? 3 : 0;
+function FU(e) {
+ let t = e[EU];
+ return t ? t.type_ : Array.isArray(e) ? 1 : zU(e) ? 2 : BU(e) ? 3 : 0;
}
-function TU(e, t) {
- return wU(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function IU(e, t) {
+ return FU(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function EU(e, t, n) {
- let r = wU(e);
+function LU(e, t, n) {
+ let r = FU(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function DU(e, t) {
+function RU(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function OU(e) {
+function zU(e) {
return e instanceof Map;
}
-function kU(e) {
+function BU(e) {
return e instanceof Set;
}
-function AU(e) {
+function VU(e) {
return e.copy_ || e.base_;
}
-function jU(e, t) {
- if (OU(e)) return new Map(e);
- if (kU(e)) return new Set(e);
+function HU(e, t) {
+ if (zU(e)) return new Map(e);
+ if (BU(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = SU(e);
+ let n = NU(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[hU];
+ delete t[EU];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -52602,40 +52703,40 @@ function jU(e, t) {
value: e[i]
});
}
- return Object.create(_U(e), t);
+ return Object.create(OU(e), t);
}
{
- let t = _U(e);
+ let t = OU(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function MU(e, t = !1) {
- return FU(e) || vU(e) || !yU(e) ? e : (wU(e) > 1 && Object.defineProperties(e, {
- set: PU,
- add: PU,
- clear: PU,
- delete: PU
- }), Object.freeze(e), t && Object.values(e).forEach((e) => MU(e, !0)), e);
+function UU(e, t = !1) {
+ return KU(e) || kU(e) || !AU(e) ? e : (FU(e) > 1 && Object.defineProperties(e, {
+ set: GU,
+ add: GU,
+ clear: GU,
+ delete: GU
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => UU(e, !0)), e);
}
-function NU() {
- gU(2);
+function WU() {
+ DU(2);
}
-var PU = { value: NU };
-function FU(e) {
+var GU = { value: WU };
+function KU(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var IU = {};
-function LU(e) {
- let t = IU[e];
- return t || gU(0, e), t;
+var qU = {};
+function JU(e) {
+ let t = qU[e];
+ return t || DU(0, e), t;
}
-var RU;
-function zU() {
- return RU;
+var YU;
+function XU() {
+ return YU;
}
-function BU(e, t) {
+function ZU(e, t) {
return {
drafts_: [],
parent_: e,
@@ -52644,62 +52745,62 @@ function BU(e, t) {
unfinalizedDrafts_: 0
};
}
-function VU(e, t) {
- t && (LU("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function QU(e, t) {
+ t && (JU("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function HU(e) {
- UU(e), e.drafts_.forEach(GU), e.drafts_ = null;
+function $U(e) {
+ eW(e), e.drafts_.forEach(nW), e.drafts_ = null;
}
-function UU(e) {
- e === RU && (RU = e.parent_);
+function eW(e) {
+ e === YU && (YU = e.parent_);
}
-function WU(e) {
- return RU = BU(RU, e);
+function tW(e) {
+ return YU = ZU(YU, e);
}
-function GU(e) {
- let t = e[hU];
+function nW(e) {
+ let t = e[EU];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function KU(e, t) {
+function rW(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[hU].modified_ && (HU(t), gU(4)), yU(e) && (e = qU(t, e), t.parent_ || YU(t, e)), t.patches_ && LU("Patches").generateReplacementPatches_(n[hU].base_, e, t.patches_, t.inversePatches_)) : e = qU(t, n, []), HU(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === pU ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[EU].modified_ && ($U(t), DU(4)), AU(e) && (e = iW(t, e), t.parent_ || oW(t, e)), t.patches_ && JU("Patches").generateReplacementPatches_(n[EU].base_, e, t.patches_, t.inversePatches_)) : e = iW(t, n, []), $U(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === wU ? void 0 : e;
}
-function qU(e, t, n) {
- if (FU(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[hU];
- if (!i) return CU(t, (r, a) => JU(e, i, t, r, a, n), r), t;
+function iW(e, t, n) {
+ if (KU(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[EU];
+ if (!i) return PU(t, (r, a) => aW(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return YU(e, i.base_, !0), i.base_;
+ if (!i.modified_) return oW(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), CU(a, (r, a) => JU(e, i, t, r, a, n, o), r), YU(e, t, !1), n && e.patches_ && LU("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), PU(a, (r, a) => aW(e, i, t, r, a, n, o), r), oW(e, t, !1), n && e.patches_ && JU("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function JU(e, t, n, r, i, a, o) {
+function aW(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = FU(i);
+ let s = KU(i);
if (!(s && !o)) {
- if (vU(i)) {
- let o = qU(e, i, a && t && t.type_ !== 3 && !TU(t.assigned_, r) ? a.concat(r) : void 0);
- if (EU(n, r, o), vU(o)) e.canAutoFreeze_ = !1;
+ if (kU(i)) {
+ let o = iW(e, i, a && t && t.type_ !== 3 && !IU(t.assigned_, r) ? a.concat(r) : void 0);
+ if (LU(n, r, o), kU(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (yU(i) && !s) {
+ if (AU(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- qU(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (OU(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && YU(e, i);
+ iW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (zU(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && oW(e, i);
}
}
}
-function YU(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && MU(t, n);
+function oW(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && UU(t, n);
}
-function XU(e, t) {
+function sW(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : zU(),
+ scope_: t ? t.scope_ : XU(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -52709,41 +52810,41 @@ function XU(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = ZU;
- n && (i = [r], a = QU);
+ }, i = r, a = cW;
+ n && (i = [r], a = lW);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var ZU = {
+var cW = {
get(e, t) {
- if (t === hU) return e;
- let n = AU(e);
- if (!TU(n, t)) return eW(e, n, t);
+ if (t === EU) return e;
+ let n = VU(e);
+ if (!IU(n, t)) return dW(e, n, t);
let r = n[t];
- return e.finalized_ || !yU(r) ? r : r === $U(e.base_, t) ? (rW(e), e.copy_[t] = aW(r, e)) : r;
+ return e.finalized_ || !AU(r) ? r : r === uW(e.base_, t) ? (mW(e), e.copy_[t] = gW(r, e)) : r;
},
has(e, t) {
- return t in AU(e);
+ return t in VU(e);
},
ownKeys(e) {
- return Reflect.ownKeys(AU(e));
+ return Reflect.ownKeys(VU(e));
},
set(e, t, n) {
- let r = tW(AU(e), t);
+ let r = fW(VU(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = $U(AU(e), t), i = r?.[hU];
+ let r = uW(VU(e), t), i = r?.[EU];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (DU(n, r) && (n !== void 0 || TU(e.base_, t))) return !0;
- rW(e), nW(e);
+ if (RU(n, r) && (n !== void 0 || IU(e.base_, t))) return !0;
+ mW(e), pW(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 $U(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, rW(e), nW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return uW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, mW(e), pW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = AU(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = VU(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -52752,48 +52853,48 @@ var ZU = {
};
},
defineProperty() {
- gU(11);
+ DU(11);
},
getPrototypeOf(e) {
- return _U(e.base_);
+ return OU(e.base_);
},
setPrototypeOf() {
- gU(12);
+ DU(12);
}
-}, QU = {};
-CU(ZU, (e, t) => {
- QU[e] = function() {
+}, lW = {};
+PU(cW, (e, t) => {
+ lW[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), QU.deleteProperty = function(e, t) {
- return QU.set.call(this, e, t, void 0);
-}, QU.set = function(e, t, n) {
- return ZU.set.call(this, e[0], t, n, e[0]);
+}), lW.deleteProperty = function(e, t) {
+ return lW.set.call(this, e, t, void 0);
+}, lW.set = function(e, t, n) {
+ return cW.set.call(this, e[0], t, n, e[0]);
};
-function $U(e, t) {
- let n = e[hU];
- return (n ? AU(n) : e)[t];
+function uW(e, t) {
+ let n = e[EU];
+ return (n ? VU(n) : e)[t];
}
-function eW(e, t, n) {
- let r = tW(t, n);
+function dW(e, t, n) {
+ let r = fW(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function tW(e, t) {
+function fW(e, t) {
if (!(t in e)) return;
- let n = _U(e);
+ let n = OU(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = _U(n);
+ n = OU(n);
}
}
-function nW(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && nW(e.parent_));
+function pW(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && pW(e.parent_));
}
-function rW(e) {
- e.copy_ ||= jU(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function mW(e) {
+ e.copy_ ||= HU(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var iW = class {
+var hW = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -52804,25 +52905,25 @@ var iW = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && gU(6), n !== void 0 && typeof n != "function" && gU(7);
+ typeof t != "function" && DU(6), n !== void 0 && typeof n != "function" && DU(7);
let r;
- if (yU(e)) {
- let i = WU(this), a = aW(e, void 0), o = !0;
+ if (AU(e)) {
+ let i = tW(this), a = gW(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? HU(i) : UU(i);
+ o ? $U(i) : eW(i);
}
- return VU(i, n), KU(r, i);
+ return QU(i, n), rW(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === pU && (r = void 0), this.autoFreeze_ && MU(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === wU && (r = void 0), this.autoFreeze_ && UU(r, !0), n) {
let t = [], i = [];
- LU("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ JU("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- gU(1, e);
+ DU(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -52836,15 +52937,15 @@ var iW = 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) {
- yU(e) || gU(8), vU(e) && (e = oW(e));
- let t = WU(this), n = aW(e, void 0);
- return n[hU].isManual_ = !0, UU(t), n;
+ AU(e) || DU(8), kU(e) && (e = _W(e));
+ let t = tW(this), n = gW(e, void 0);
+ return n[EU].isManual_ = !0, eW(t), n;
}
finishDraft(e, t) {
- let n = e && e[hU];
- (!n || !n.isManual_) && gU(9);
+ let n = e && e[EU];
+ (!n || !n.isManual_) && DU(9);
let { scope_: r } = n;
- return VU(r, t), KU(void 0, r);
+ return QU(r, t), rW(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -52868,35 +52969,35 @@ var iW = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = LU("Patches").applyPatches_;
- return vU(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = JU("Patches").applyPatches_;
+ return kU(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function aW(e, t) {
- let n = OU(e) ? LU("MapSet").proxyMap_(e, t) : kU(e) ? LU("MapSet").proxySet_(e, t) : XU(e, t);
- return (t ? t.scope_ : zU()).drafts_.push(n), n;
+function gW(e, t) {
+ let n = zU(e) ? JU("MapSet").proxyMap_(e, t) : BU(e) ? JU("MapSet").proxySet_(e, t) : sW(e, t);
+ return (t ? t.scope_ : XU()).drafts_.push(n), n;
}
-function oW(e) {
- return vU(e) || gU(10, e), sW(e);
+function _W(e) {
+ return kU(e) || DU(10, e), vW(e);
}
-function sW(e) {
- if (!yU(e) || FU(e)) return e;
- let t = e[hU], n, r = !0;
+function vW(e) {
+ if (!AU(e) || KU(e)) return e;
+ let t = e[EU], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = jU(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = jU(e, !0);
- return CU(n, (e, t) => {
- EU(n, e, sW(t));
+ t.finalized_ = !0, n = HU(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = HU(e, !0);
+ return PU(n, (e, t) => {
+ LU(n, e, vW(t));
}, r), t && (t.finalized_ = !1), n;
}
-new iW().produce;
-function cW(e) {
+new hW().produce;
+function yW(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var lW = tV({
+var bW = fV({
name: "legend",
initialState: {
settings: {
@@ -52920,43 +53021,43 @@ var lW = tV({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(cW(t.payload));
+ e.payload.push(yW(t.payload));
},
- prepare: ZB()
+ prepare: cV()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = HB(e).payload.indexOf(cW(n));
- i > -1 && (e.payload[i] = cW(r));
+ var { prev: n, next: r } = t.payload, i = $B(e).payload.indexOf(yW(n));
+ i > -1 && (e.payload[i] = yW(r));
},
- prepare: ZB()
+ prepare: cV()
},
removeLegendPayload: {
reducer(e, t) {
- var n = HB(e).payload.indexOf(cW(t.payload));
+ var n = $B(e).payload.indexOf(yW(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: ZB()
+ prepare: cV()
}
}
-}), { setLegendSize: uW, setLegendSettings: dW, addLegendPayload: fW, replaceLegendPayload: pW, removeLegendPayload: mW } = lW.actions, hW = lW.reducer, gW = /* @__PURE__ */ Te(((e) => {
+}), { setLegendSize: xW, setLegendSettings: SW, addLegendPayload: CW, replaceLegendPayload: wW, removeLegendPayload: TW } = bW.actions, EW = bW.reducer, DW = /* @__PURE__ */ Te(((e) => {
var t = Ne();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ Te(((e, t) => {
- t.exports = gW();
+ t.exports = DW();
})))();
-function _W(e) {
+function OW(e) {
e();
}
-function vW() {
+function kW() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- _W(() => {
+ OW(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -52978,12 +53079,12 @@ function vW() {
}
};
}
-var yW = {
+var AW = {
notify() {},
get: () => []
};
-function bW(e, t) {
- let n, r = yW, i = 0, a = !1;
+function jW(e, t) {
+ let n, r = AW, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -53001,10 +53102,10 @@ function bW(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = vW());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = kW());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = yW);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = AW);
}
function f() {
a || (a = !0, u());
@@ -53023,44 +53124,44 @@ function bW(e, t) {
};
return m;
}
-var xW = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, SW = typeof navigator < "u" && navigator.product === "ReactNative", CW = xW || SW ? L.useLayoutEffect : L.useEffect;
-function wW(e, t) {
+var MW = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, NW = typeof navigator < "u" && navigator.product === "ReactNative", PW = MW || NW ? L.useLayoutEffect : L.useEffect;
+function FW(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function TW(e, t) {
- if (wW(e, t)) return !0;
+function IW(e, t) {
+ if (FW(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]) || !wW(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !FW(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var EW = /* @__PURE__ */ Symbol.for("react-redux-context"), DW = typeof globalThis < "u" ? globalThis : {};
-function OW() {
+var LW = /* @__PURE__ */ Symbol.for("react-redux-context"), RW = typeof globalThis < "u" ? globalThis : {};
+function zW() {
if (!L.createContext) return {};
- let e = DW[EW] ??= /* @__PURE__ */ new Map(), t = e.get(L.createContext);
+ let e = RW[LW] ??= /* @__PURE__ */ new Map(), t = e.get(L.createContext);
return t || (t = L.createContext(null), e.set(L.createContext, t)), t;
}
-var kW = /* @__PURE__ */ OW();
-function AW(e) {
+var BW = /* @__PURE__ */ zW();
+function VW(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = L.useMemo(() => {
- let e = bW(i);
+ let e = jW(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = L.useMemo(() => i.getState(), [i]);
- CW(() => {
+ PW(() => {
let { subscription: e } = a;
return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {
e.tryUnsubscribe(), e.onStateChange = void 0;
};
}, [a, o]);
- let s = n || kW;
+ let s = n || BW;
return /* @__PURE__ */ L.createElement(s.Provider, { value: a }, t);
}
-var jW = AW, MW = /* @__PURE__ */ new Set([
+var HW = VW, UW = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -53083,29 +53184,29 @@ var jW = AW, MW = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function NW(e, t) {
+function WW(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function PW(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (MW.has(n)) {
+function GW(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (UW.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!TW(e[n], t[n])) return !1;
- } else if (!NW(e[n], t[n])) return !1;
+ if (!IW(e[n], t[n])) return !1;
+ } else if (!WW(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var FW = ["contextPayload"];
-function IW() {
- return IW = Object.assign ? Object.assign.bind() : function(e) {
+var KW = ["contextPayload"];
+function qW() {
+ return qW = 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;
- }, IW.apply(null, arguments);
+ }, qW.apply(null, arguments);
}
-function LW(e, t) {
+function JW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53115,30 +53216,30 @@ function LW(e, t) {
}
return n;
}
-function RW(e) {
+function YW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? LW(Object(n), !0).forEach(function(t) {
- zW(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LW(Object(n)).forEach(function(t) {
+ t % 2 ? JW(Object(n), !0).forEach(function(t) {
+ XW(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zW(e, t, n) {
- return (t = BW(t)) in e ? Object.defineProperty(e, t, {
+function XW(e, t, n) {
+ return (t = ZW(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BW(e) {
- var t = VW(e, "string");
+function ZW(e) {
+ var t = QW(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VW(e, t) {
+function QW(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53148,16 +53249,16 @@ function VW(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function HW(e, t) {
+function $W(e, t) {
if (e == null) return {};
- var n, r, i = UW(e, t);
+ var n, r, i = eG(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function UW(e, t) {
+function eG(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53166,36 +53267,36 @@ function UW(e, t) {
}
return n;
}
-function WW(e) {
+function tG(e) {
return e.value;
}
-function GW(e) {
- var { contextPayload: t } = e, n = HW(e, FW), r = mz(t, e.payloadUniqBy, WW), i = RW(RW({}, n), {}, { payload: r });
- return /*#__PURE__*/ L.isValidElement(e.content) ? /*#__PURE__*/ L.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ L.createElement(e.content, i) : /*#__PURE__*/ L.createElement(Tge, i);
+function nG(e) {
+ var { contextPayload: t } = e, n = $W(e, KW), r = Tz(t, e.payloadUniqBy, tG), i = YW(YW({}, n), {}, { payload: r });
+ return /*#__PURE__*/ L.isValidElement(e.content) ? /*#__PURE__*/ L.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ L.createElement(e.content, i) : /*#__PURE__*/ L.createElement(Mge, i);
}
-function KW(e, t, n, r, i, a) {
+function rG(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 }), RW(RW({}, 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 }), YW(YW({}, l), u);
}
-function qW(e) {
- var t = gz();
+function iG(e) {
+ var t = Dz();
return (0, L.useEffect)(() => {
- t(dW(e));
+ t(SW(e));
}, [t, e]), null;
}
-function JW(e) {
- var t = gz();
- return (0, L.useEffect)(() => (t(uW(e)), () => {
- t(uW({
+function aG(e) {
+ var t = Dz();
+ return (0, L.useEffect)(() => (t(xW(e)), () => {
+ t(xW({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function YW(e, t, n, r) {
+function oG(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var XW = {
+var sG = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -53203,28 +53304,28 @@ var XW = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function ZW(e) {
- var t = UR(e, XW), n = F_e(), r = yhe(), i = aU(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = Dz([n]), d = rU(), f = iU();
+function cG(e) {
+ var t = ez(e, sG), n = H_e(), r = Ehe(), i = gU(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = Rz([n]), d = mU(), f = hU();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = YW(t.layout, o, a, p), h = c ? s : RW(RW({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = oG(t.layout, o, a, p), h = c ? s : YW(YW({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, KW(s, t, i, d, f, l)), s), g = c ?? r;
+ }, rG(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ L.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ L.createElement(qW, {
+ }, /*#__PURE__*/ L.createElement(iG, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ L.createElement(JW, {
+ }), !c && /*#__PURE__*/ L.createElement(aG, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ L.createElement(GW, IW({}, t, m, {
+ }), /*#__PURE__*/ L.createElement(nG, qW({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -53232,20 +53333,20 @@ function ZW(e) {
})));
return /*#__PURE__*/ (0, Re.createPortal)(_, g);
}
-var QW = /*#__PURE__*/ L.memo(ZW, PW);
-QW.displayName = "Legend";
+var lG = /*#__PURE__*/ L.memo(cG, GW);
+lG.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function $W() {
- return $W = Object.assign ? Object.assign.bind() : function(e) {
+function uG() {
+ return uG = 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);
+ }, uG.apply(null, arguments);
}
-function eG(e, t) {
+function dG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53255,30 +53356,30 @@ function eG(e, t) {
}
return n;
}
-function tG(e) {
+function fG(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) {
- nG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eG(Object(n)).forEach(function(t) {
+ t % 2 ? dG(Object(n), !0).forEach(function(t) {
+ pG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nG(e, t, n) {
- return (t = rG(t)) in e ? Object.defineProperty(e, t, {
+function pG(e, t, n) {
+ return (t = Vve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rG(e) {
- var t = iG(e, "string");
+function Vve(e) {
+ var t = Hve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iG(e, t) {
+function Hve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53288,10 +53389,10 @@ function iG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function aG(e) {
- return Array.isArray(e) && wR(e[0]) && wR(e[1]) ? e.join(" ~ ") : e;
+function Uve(e) {
+ return Array.isArray(e) && FR(e[0]) && FR(e[1]) ? e.join(" ~ ") : e;
}
-var oG = {
+var mG = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -53309,30 +53410,30 @@ var oG = {
labelStyle: {},
accessibilityLayer: !1
};
-function sG(e, t) {
- return t == null ? e : wz(e, t);
+function Wve(e, t) {
+ return t == null ? e : Fz(e, t);
}
-var cG = (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 Gve = (e) => {
+ var { separator: t = mG.separator, contentStyle: n, itemStyle: r, labelStyle: i = mG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = mG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = sG(a, s).map((e, n) => {
+ }, n = Wve(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || aG, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || Uve, { value: s, name: c } = e, l = s, u = c;
if (i) {
var d = i(s, c, e, n, a);
if (Array.isArray(d)) [l, u] = d;
else if (d != null) l = d;
else return null;
}
- var f = tG(tG({}, oG.itemStyle), {}, { color: e.color || oG.itemStyle.color }, r);
+ var f = fG(fG({}, mG.itemStyle), {}, { color: e.color || mG.itemStyle.color }, r);
return /*#__PURE__*/ L.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, wR(u) ? /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, wR(u) ? /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, FR(u) ? /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, FR(u) ? /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ L.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ L.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -53340,30 +53441,30 @@ var cG = (e) => {
}, n);
}
return null;
- }, m = tG(tG({}, oG.contentStyle), n), h = tG({ margin: 0 }, i), g = !AR(u), _ = g ? u : "", v = Au("recharts-default-tooltip", c), y = Au("recharts-tooltip-label", l);
+ }, m = fG(fG({}, mG.contentStyle), n), h = fG({ margin: 0 }, i), g = !VR(u), _ = g ? u : "", v = Au("recharts-default-tooltip", c), y = Au("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ L.createElement("div", $W({
+ return /*#__PURE__*/ L.createElement("div", uG({
className: v,
style: m
}, b), /*#__PURE__*/ L.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ L.isValidElement(_) ? _ : `${_}`), p());
-}, lG = "recharts-tooltip-wrapper", uG = { visibility: "hidden" };
-function dG(e) {
+}, hG = "recharts-tooltip-wrapper", Kve = { visibility: "hidden" };
+function qve(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return Au(lG, {
- [`${lG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${lG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${lG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${lG}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return Au(hG, {
+ [`${hG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${hG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${hG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${hG}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function fG(e) {
+function gG(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;
@@ -53371,13 +53472,13 @@ function fG(e) {
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function pG(e) {
+function Jve(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function mG(e) {
+function Yve(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 = fG({
+ return s.height > 0 && s.width > 0 && n ? (d = gG({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -53387,7 +53488,7 @@ function mG(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = fG({
+ }), f = gG({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -53397,27 +53498,27 @@ function mG(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = pG({
+ }), u = Jve({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = uG, {
+ })) : u = Kve, {
cssProperties: u,
- cssClasses: dG({
+ cssClasses: qve({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var hG = {
+var _G = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function gG() {
- var [e, t] = (0, L.useState)(() => hG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function vG() {
+ var [e, t] = (0, L.useState)(() => _G.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, L.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -53431,7 +53532,7 @@ function gG() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function _G(e, t) {
+function yG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53441,30 +53542,30 @@ function _G(e, t) {
}
return n;
}
-function vG(e) {
+function bG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? _G(Object(n), !0).forEach(function(t) {
- yG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _G(Object(n)).forEach(function(t) {
+ t % 2 ? yG(Object(n), !0).forEach(function(t) {
+ Xve(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yG(e, t, n) {
- return (t = bG(t)) in e ? Object.defineProperty(e, t, {
+function Xve(e, t, n) {
+ return (t = Zve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bG(e) {
- var t = Pve(e, "string");
+function Zve(e) {
+ var t = Qve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Pve(e, t) {
+function Qve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53474,11 +53575,11 @@ function Pve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Fve(e) {
+function $ve(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function Ive(e) {
- var t = gG(), [n, r] = L.useState(() => ({
+function eye(e) {
+ var t = vG(), [n, r] = L.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -53498,8 +53599,8 @@ function Ive(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(vG(vG({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = mG({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(bG(bG({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = Yve({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -53512,7 +53613,7 @@ function Ive(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = vG(vG({}, e.hasPortalFromProps ? {} : vG(vG({ transition: Fve({
+ }), o = bG(bG({}, e.hasPortalFromProps ? {} : bG(bG({ transition: $ve({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -53532,7 +53633,7 @@ function Ive(e) {
ref: e.innerRef
}, e.children);
}
-var Lve = /*#__PURE__*/ L.memo(Ive), xG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var tye = /*#__PURE__*/ L.memo(eye), xG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
function SG() {
@@ -53558,26 +53659,26 @@ function wG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? CG(Object(n), !0).forEach(function(t) {
- Rve(e, t, n[t]);
+ nye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Rve(e, t, n) {
- return (t = zve(t)) in e ? Object.defineProperty(e, t, {
+function nye(e, t, n) {
+ return (t = rye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zve(e) {
- var t = Bve(e, "string");
+function rye(e) {
+ var t = iye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Bve(e, t) {
+function iye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53588,39 +53689,39 @@ function Bve(e, t) {
return (t === "string" ? String : Number)(e);
}
var TG = {
- curveBasisClosed: Lhe,
- curveBasisOpen: Rhe,
- curveBasis: Ihe,
- curveBumpX: She,
- curveBumpY: Che,
- curveLinearClosed: zhe,
- curveLinear: FL,
- curveMonotoneX: Bhe,
- curveMonotoneY: Vhe,
- curveNatural: Hhe,
- curveStep: Uhe,
- curveStepAfter: Ghe,
- curveStepBefore: Whe
-}, EG = (e) => AV(e.x) && AV(e.y), DG = (e) => e.base != null && EG(e.base) && EG(e), OG = (e) => e.x, kG = (e) => e.y, Vve = (e, t) => {
+ curveBasisClosed: Whe,
+ curveBasisOpen: Ghe,
+ curveBasis: Uhe,
+ curveBumpX: khe,
+ curveBumpY: Ahe,
+ curveLinearClosed: Khe,
+ curveLinear: KL,
+ curveMonotoneX: qhe,
+ curveMonotoneY: Jhe,
+ curveNatural: Yhe,
+ curveStep: Xhe,
+ curveStepAfter: Qhe,
+ curveStepBefore: Zhe
+}, EG = (e) => VV(e.x) && VV(e.y), DG = (e) => e.base != null && EG(e.base) && EG(e), OG = (e) => e.x, kG = (e) => e.y, aye = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${jR(e)}`;
+ var n = `curve${HR(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
var r = TG[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return TG[n] || FL;
+ return TG[n] || KL;
}, AG = {
connectNulls: !1,
type: "linear"
-}, Hve = (e) => {
- var { type: t = AG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = AG.connectNulls } = e, o = Vve(t, i), s = a ? n.filter(EG) : n;
+}, oye = (e) => {
+ var { type: t = AG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = AG.connectNulls } = e, o = aye(t, i), s = a ? n.filter(EG) : n;
if (Array.isArray(r)) {
var c, l = n.map((e, t) => wG(wG({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? zL().y(kG).x1(OG).x0((e) => e.base.x) : zL().x(OG).y1(kG).y0((e) => e.base.y), c.defined(DG).curve(o)(a ? l.filter(DG) : l);
+ return c = i === "vertical" ? XL().y(kG).x1(OG).x0((e) => e.base.x) : XL().x(OG).y1(kG).y0((e) => e.base.y), c.defined(DG).curve(o)(a ? l.filter(DG) : l);
}
- return (i === "vertical" && Z(r) ? zL().y(kG).x1(OG).x0(r) : Z(r) ? zL().x(OG).y1(kG).y0(r) : RL().x(OG).y(kG)).defined(EG).curve(o)(s);
+ return (i === "vertical" && Z(r) ? XL().y(kG).x1(OG).x0(r) : Z(r) ? XL().x(OG).y1(kG).y0(r) : YL().x(OG).y(kG)).defined(EG).curve(o)(s);
}, jG = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = sU();
+ var { className: t, points: n, path: r, pathRef: i } = e, a = vU();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -53628,13 +53729,13 @@ var TG = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? Hve(o) : r;
- return /*#__PURE__*/ L.createElement("path", SG({}, pL(e), BR(e), {
+ }, s = n && n.length ? oye(o) : r;
+ return /*#__PURE__*/ L.createElement("path", SG({}, wL(e), ZR(e), {
className: Au("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, Uve = [
+}, sye = [
"x",
"y",
"top",
@@ -53662,30 +53763,30 @@ function NG(e, t) {
}
return n;
}
-function Wve(e) {
+function cye(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? NG(Object(n), !0).forEach(function(t) {
- Gve(e, t, n[t]);
+ lye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : NG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Gve(e, t, n) {
- return (t = Kve(t)) in e ? Object.defineProperty(e, t, {
+function lye(e, t, n) {
+ return (t = uye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Kve(e) {
- var t = qve(e, "string");
+function uye(e) {
+ var t = dye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qve(e, t) {
+function dye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53695,16 +53796,16 @@ function qve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Jve(e, t) {
+function fye(e, t) {
if (e == null) return {};
- var n, r, i = Yve(e, t);
+ var n, r, i = pye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Yve(e, t) {
+function pye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53713,8 +53814,8 @@ function Yve(e, t) {
}
return n;
}
-var Xve = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Zve = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Jve(e, Uve), l = Wve({
+var mye = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, hye = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = fye(e, sye), l = cye({
x: t,
y: n,
top: r,
@@ -53722,14 +53823,14 @@ var Xve = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Zve = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ L.createElement("path", MG({}, hL(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ L.createElement("path", MG({}, EL(l), {
className: Au("recharts-cross", s),
- d: Xve(t, n, a, o, r, i)
+ d: mye(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function Qve(e, t, n, r) {
+function gye(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -53756,26 +53857,26 @@ function FG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? PG(Object(n), !0).forEach(function(t) {
- $ve(e, t, n[t]);
+ _ye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $ve(e, t, n) {
- return (t = eye(t)) in e ? Object.defineProperty(e, t, {
+function _ye(e, t, n) {
+ return (t = vye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eye(e) {
- var t = tye(e, "string");
+function vye(e) {
+ var t = yye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tye(e, t) {
+function yye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53785,7 +53886,7 @@ function tye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var nye = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), IG = (e, t, n) => e.map((e) => `${nye(e)} ${t}ms ${n}`).join(","), rye = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), LG = (e, t) => Object.keys(t).reduce((n, r) => FG(FG({}, n), {}, { [r]: e(r, t[r]) }), {});
+var bye = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), IG = (e, t, n) => e.map((e) => `${bye(e)} ${t}ms ${n}`).join(","), xye = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), LG = (e, t) => Object.keys(t).reduce((n, r) => FG(FG({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
function RG(e, t) {
@@ -53802,26 +53903,26 @@ function zG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? RG(Object(n), !0).forEach(function(t) {
- iye(e, t, n[t]);
+ Sye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iye(e, t, n) {
- return (t = aye(t)) in e ? Object.defineProperty(e, t, {
+function Sye(e, t, n) {
+ return (t = Cye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aye(e) {
- var t = oye(e, "string");
+function Cye(e) {
+ var t = wye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oye(e, t) {
+function wye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53850,7 +53951,7 @@ var BG = (e, t, n) => e + (t - e) * n, VG = (e) => {
from: BG(t.from, r[e].from, n)
}) : t, t) : HG(e, r, n - 1);
};
-function sye(e, t, n, r, i, a) {
+function Tye(e, t, n, r, i, a) {
var o, s = r.reduce((n, r) => zG(zG({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
@@ -53865,7 +53966,7 @@ function sye(e, t, n, r, i, a) {
(e = u) == null || e();
});
}
-function cye(e, t, n, r, i, a, o) {
+function Eye(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 : zG(zG({}, n), {}, { [r]: [i, a] });
@@ -53883,15 +53984,15 @@ function cye(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var lye = (e, t, n, r, i, a) => {
- var o = rye(e, t);
- return n == null ? () => (i(zG(zG({}, e), t)), () => {}) : n.isStepper === !0 ? sye(e, t, n, o, i, a) : cye(e, t, n, r, o, i, a);
+var Dye = (e, t, n, r, i, a) => {
+ var o = xye(e, t);
+ return n == null ? () => (i(zG(zG({}, e), t)), () => {}) : n.isStepper === !0 ? Tye(e, t, n, o, i, a) : Eye(e, t, n, r, o, i, a);
}, UG = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], WG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), GG = (e, t) => (n) => WG(UG(e, t), n), uye = (e, t) => (n) => WG([...UG(e, t).map((e, t) => e * t).slice(1), 0], n), dye = (e) => {
+], WG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), GG = (e, t) => (n) => WG(UG(e, t), n), Oye = (e, t) => (n) => WG([...UG(e, t).map((e, t) => e * t).slice(1), 0], n), kye = (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(",");
@@ -53903,7 +54004,7 @@ var lye = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, fye = function() {
+}, Aye = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -53937,7 +54038,7 @@ var lye = (e, t, n, r, i, a) => {
1
];
default:
- var t = dye(e[0]);
+ var t = kye(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -53946,8 +54047,8 @@ var lye = (e, t, n, r, i, a) => {
1,
1
];
-}, pye = (e, t, n, r) => {
- var i = GG(e, n), a = GG(t, r), o = uye(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, jye = (e, t, n, r) => {
+ var i = GG(e, n), a = GG(t, r), o = Oye(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);
@@ -53957,28 +54058,28 @@ var lye = (e, t, n, r, i, a) => {
};
return c.isStepper = !1, c;
}, KG = function() {
- return pye(...fye(...arguments));
-}, mye = function() {
+ return jye(...Aye(...arguments));
+}, Mye = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;
return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];
};
return r.isStepper = !0, r.dt = n, r;
-}, hye = (e) => {
+}, Nye = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
case "linear": return KG(e);
- case "spring": return mye();
+ case "spring": return Mye();
default: if (e.split("(")[0] === "cubic-bezier") return KG(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function gye(e) {
+function Pye(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -54009,7 +54110,7 @@ function gye(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var _ye = class {
+var Fye = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));
@@ -54021,14 +54122,14 @@ var _ye = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function vye() {
- return gye(new _ye());
+function Iye() {
+ return Pye(new Fye());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var yye = /*#__PURE__*/ (0, L.createContext)(vye);
-function bye(e, t) {
- var n = (0, L.useContext)(yye);
+var Lye = /*#__PURE__*/ (0, L.createContext)(Iye);
+function Rye(e, t) {
+ var n = (0, L.useContext)(Lye);
return (0, L.useMemo)(() => t ?? n(e), [
e,
t,
@@ -54037,7 +54138,7 @@ function bye(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var xye = {
+var zye = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -54047,12 +54148,12 @@ var xye = {
onAnimationStart: () => {}
}, qG = { t: 0 }, JG = { t: 1 };
function YG(e) {
- var t = UR(e, xye), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = gG(), d = n === "auto" ? !hG.isSsr && !u : n, f = bye(t.animationId, t.animationManager), [p, m] = (0, L.useState)(d ? qG : JG), h = (0, L.useRef)(null);
+ var t = ez(e, zye), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = vG(), d = n === "auto" ? !_G.isSsr && !u : n, f = Rye(t.animationId, t.animationManager), [p, m] = (0, L.useState)(d ? qG : JG), h = (0, L.useRef)(null);
return (0, L.useEffect)(() => {
d || m(JG);
}, [d]), (0, L.useEffect)(() => {
- if (!d || !r) return NR;
- var e = lye(qG, JG, hye(a), i, m, f.getTimeoutController());
+ if (!d || !r) return WR;
+ var e = Dye(qG, JG, Nye(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -54078,12 +54179,12 @@ function YG(e) {
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
function XG(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, L.useRef)(TR(t)), r = (0, L.useRef)(e);
- return r.current !== e && (n.current = TR(t), r.current = e), n.current;
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, L.useRef)(IR(t)), r = (0, L.useRef)(e);
+ return r.current !== e && (n.current = IR(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var Sye = ["radius"], Cye = ["radius"], wye, Tye, Eye, Dye, Oye, kye, Aye, jye, Mye, Nye;
+var Bye = ["radius"], Vye = ["radius"], Hye, Uye, Wye, Gye, Kye, qye, Jye, Yye, Xye, Zye;
function ZG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -54098,26 +54199,26 @@ function QG(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) {
- Pye(e, t, n[t]);
+ Qye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Pye(e, t, n) {
- return (t = Fye(t)) in e ? Object.defineProperty(e, t, {
+function Qye(e, t, n) {
+ return (t = $ye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Fye(e) {
- var t = Iye(e, "string");
+function $ye(e) {
+ var t = ebe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Iye(e, t) {
+function ebe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54138,14 +54239,14 @@ function $G() {
}
function eK(e, t) {
if (e == null) return {};
- var n, r, i = Lye(e, t);
+ var n, r, i = tbe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Lye(e, t) {
+function tbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54158,7 +54259,7 @@ function tK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var nK = (e, t, n, r, i) => {
- var a = yR(n), o = yR(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
+ var a = AR(n), o = AR(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,
@@ -54169,44 +54270,44 @@ var nK = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = bR(wye ||= tK([
+ d = jR(Hye ||= tK([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += bR(Tye ||= tK([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += jR(Uye ||= tK([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += bR(Eye ||= tK([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += jR(Wye ||= tK([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += bR(Dye ||= tK([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += jR(Gye ||= tK([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += bR(Oye ||= tK([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += jR(Kye ||= tK([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += bR(kye ||= tK([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += jR(qye ||= tK([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += bR(Aye ||= tK([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += jR(Jye ||= tK([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += bR(jye ||= tK([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += jR(Yye ||= tK([
"A ",
",",
",0,0,",
@@ -54216,8 +54317,8 @@ var nK = (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 = bR(Mye ||= tK(/* @__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 = bR(Nye ||= tK([
+ d = jR(Xye ||= tK(/* @__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 = jR(Zye ||= tK([
"M ",
",",
" h ",
@@ -54238,7 +54339,7 @@ var nK = (e, t, n, r, i) => {
animationDuration: 1500,
animationEasing: "ease"
}, iK = (e) => {
- var t = UR(e, rK), n = (0, L.useRef)(null), [r, i] = (0, L.useState)(-1);
+ var t = ez(e, rK), n = (0, L.useRef)(null), [r, i] = (0, L.useState)(-1);
(0, L.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
@@ -54261,12 +54362,12 @@ var nK = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Au("recharts-rectangle", u);
if (!h) {
- var S = hL(t), { radius: C } = S, w = eK(S, Sye);
+ var S = EL(t), { radius: C } = S, w = eK(S, Bye);
return /*#__PURE__*/ L.createElement("path", $G({}, w, {
- x: yR(a),
- y: yR(o),
- width: yR(s),
- height: yR(c),
+ x: AR(a),
+ y: AR(o),
+ width: AR(s),
+ height: AR(c),
radius: typeof l == "number" ? l : void 0,
className: x,
d: nK(a, o, s, c, l)
@@ -54282,12 +54383,12 @@ var nK = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = OR(T, s, e), i = OR(E, c, e), u = OR(D, a, e), d = OR(O, o, e);
+ var r = zR(T, s, e), i = zR(E, c, e), u = zR(D, a, e), d = zR(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 = hL(t), { radius: h } = p, b = eK(p, Cye);
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = EL(t), { radius: h } = p, b = eK(p, Vye);
return /*#__PURE__*/ L.createElement("path", $G({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
@@ -54313,26 +54414,26 @@ function oK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? aK(Object(n), !0).forEach(function(t) {
- Rye(e, t, n[t]);
+ nbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Rye(e, t, n) {
- return (t = zye(t)) in e ? Object.defineProperty(e, t, {
+function nbe(e, t, n) {
+ return (t = rbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zye(e) {
- var t = Bye(e, "string");
+function rbe(e) {
+ var t = ibe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Bye(e, t) {
+function ibe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54342,10 +54443,10 @@ function Bye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var sK = Math.PI / 180, cK = (e) => e * Math.PI / 180, Vye = (e) => e * 180 / Math.PI, lK = (e, t, n, r) => ({
+var sK = Math.PI / 180, cK = (e) => e * Math.PI / 180, abe = (e) => e * 180 / Math.PI, lK = (e, t, n, r) => ({
x: e + Math.cos(-sK * r) * n,
y: t + Math.sin(-sK * r) * n
-}), Hye = function(e, t) {
+}), obe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -54356,11 +54457,11 @@ var sK = Math.PI / 180, cK = (e) => e * Math.PI / 180, Vye = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, Uye = (e, t) => {
+}, sbe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, Wye = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = Uye({
+}, cbe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = sbe({
x: n,
y: r
}, {
@@ -54374,25 +54475,25 @@ var sK = Math.PI / 180, cK = (e) => e * Math.PI / 180, Vye = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: Vye(c),
+ angle: abe(c),
angleInRadian: c
};
-}, Gye = (e) => {
+}, lbe = (e) => {
var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, Kye = (e, t) => {
+}, ube = (e, t) => {
var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, qye = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Wye({
+}, dbe = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = cbe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = Gye(t), u = a, d;
+ var { startAngle: c, endAngle: l } = lbe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -54404,7 +54505,7 @@ var sK = Math.PI / 180, cK = (e) => e * Math.PI / 180, Vye = (e) => e * 180 / Ma
}
return d ? oK(oK({}, t), {}, {
radius: i,
- angle: Kye(u, t)
+ angle: ube(u, t)
}) : null;
};
//#endregion
@@ -54422,7 +54523,7 @@ function uK(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var Jye, Yye, Xye, Zye, Qye, $ye, ebe;
+var fbe, pbe, mbe, hbe, gbe, _be, vbe;
function dK() {
return dK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -54435,7 +54536,7 @@ function dK() {
function fK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (e) => {
+var ybe = (e, t) => MR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (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) / sK, d = c ? i : i + a * u, f = lK(t, n, l, d), p = lK(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
@@ -54444,7 +54545,7 @@ var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (e) =>
theta: u
};
}, mK = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = tbe(a, o), c = a + s, l = lK(t, n, i, a), u = lK(t, n, i, c), d = bR(Jye ||= fK([
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = ybe(a, o), c = a + s, l = lK(t, n, i, a), u = lK(t, n, i, c), d = jR(fbe ||= fK([
"M ",
",",
"\n A ",
@@ -54457,7 +54558,7 @@ var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (e) =>
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
var f = lK(t, n, r, a), p = lK(t, n, r, c);
- d += bR(Yye ||= fK([
+ d += jR(pbe ||= fK([
"L ",
",",
"\n A ",
@@ -54468,14 +54569,14 @@ var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += bR(Xye ||= fK([
+ } else d += jR(mbe ||= fK([
"L ",
",",
" Z"
]), t, n);
return d;
-}, nbe = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = xR(l - c), { circleTangency: d, lineTangency: f, theta: p } = pK({
+}, bbe = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = MR(l - c), { circleTangency: d, lineTangency: f, theta: p } = pK({
cx: t,
cy: n,
radius: i,
@@ -54492,7 +54593,7 @@ var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? bR(Zye ||= fK([
+ if (_ < 0) return o ? jR(hbe ||= fK([
"M ",
",",
"\n a",
@@ -54510,7 +54611,7 @@ var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (e) =>
startAngle: c,
endAngle: l
});
- var v = bR(Qye ||= fK([
+ var v = jR(gbe ||= fK([
"M ",
",",
"\n A",
@@ -54552,7 +54653,7 @@ var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (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 += bR($ye ||= fK([
+ v += jR(_be ||= fK([
"L",
",",
"\n A",
@@ -54573,13 +54674,13 @@ var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (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 += bR(ebe ||= fK([
+ } else v += jR(vbe ||= fK([
"L",
",",
"Z"
]), t, n);
return v;
-}, rbe = {
+}, xbe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -54590,9 +54691,9 @@ var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (e) =>
forceCornerRadius: !1,
cornerIsExternal: !1
}, hK = (e) => {
- var t = UR(e, rbe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+ var t = ez(e, xbe), { 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 = Au("recharts-sector", d), p = a - i, m = ER(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? nbe({
+ var f = Au("recharts-sector", d), p = a - i, m = LR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? bbe({
cx: n,
cy: r,
innerRadius: i,
@@ -54610,14 +54711,14 @@ var tbe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ L.createElement("path", dK({}, hL(t), {
+ return /*#__PURE__*/ L.createElement("path", dK({}, EL(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function ibe(e, t, n) {
+function Sbe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -54632,7 +54733,7 @@ function ibe(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (zR(t)) {
+ if (XR(t)) {
if (e === "centric") {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = lK(r, i, a, s), l = lK(r, i, o, s);
return [{
@@ -54648,18 +54749,18 @@ function ibe(e, t, n) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function abe(e) {
- return hR(e) ? NaN : Number(e);
+function Cbe(e) {
+ return ER(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
function gK(e) {
- return e ? (e = abe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+ return e ? (e = Cbe(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 _K(e, t, n) {
- n && typeof n != "number" && Sz(e, t, n) && (t = n = void 0), e = gK(e), t === void 0 ? (t = e, e = 0) : t = gK(t), n = n === void 0 ? e < t ? 1 : -1 : gK(n);
+ n && typeof n != "number" && Nz(e, t, n) && (t = n = void 0), e = gK(e), t === void 0 ? (t = e, e = 0) : t = gK(t), n = n === void 0 ? e < t ? 1 : -1 : gK(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;
@@ -54680,7 +54781,7 @@ var vK = (e) => e.chartData, yK = $([vK], (e) => {
function SK(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (AV(t) && AV(n)) return !0;
+ if (VV(t) && VV(n)) return !0;
}
return !1;
}
@@ -54690,15 +54791,15 @@ function CK(e, t, n) {
function wK(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (AV(n)) i = n;
+ if (VV(n)) i = n;
else if (typeof n == "function") return;
- if (AV(r)) a = r;
+ if (VV(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
if (SK(o)) return o;
}
}
-function obe(e, t, n) {
+function wbe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
@@ -54711,8 +54812,8 @@ function obe(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && QV.test(i)) {
- var c = QV.exec(i);
+ else if (typeof i == "string" && lH.test(i)) {
+ var c = lH.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -54724,8 +54825,8 @@ function obe(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && $V.test(a)) {
- var u = $V.exec(a);
+ else if (typeof a == "string" && uH.test(a)) {
+ var u = uH.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -55145,7 +55246,7 @@ var OK = (e) => {
}
var u = r[c] ?? 1, d = new TK.default(u).mul(o);
return t ? d : new TK.default(Math.ceil(d.toNumber()));
-}, sbe = (e, t, n) => {
+}, Tbe = (e, t, n) => {
var r = new TK.default(1), i = new TK.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
@@ -55174,7 +55275,7 @@ var OK = (e) => {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return sbe(s, r, i);
+ if (s === c) return Tbe(s, r, i);
var { step: u, tickMin: d, tickMax: f } = jK(s, c, o, i, 0, a === "snap125" ? AK : kK), p = DK(d, f.add(new TK.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
}, NK = function(e, t) {
@@ -55183,7 +55284,7 @@ var OK = (e) => {
if (o === s) return [o];
var c = a === "snap125" ? AK : kK, l = Math.max(t, 2), u = c(new TK.default(s).sub(o).div(l - 1), i, 0), d = [...DK(new TK.default(o), new TK.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, PK = (e) => e.rootProps.maxBarSize, FK = (e) => e.rootProps.barGap, IK = (e) => e.rootProps.barCategoryGap, LK = (e) => e.rootProps.barSize, RK = (e) => e.rootProps.stackOffset, zK = (e) => e.rootProps.reverseStackOrder, BK = (e) => e.options.chartName, VK = (e) => e.rootProps.syncId, HK = (e) => e.rootProps.syncMethod, UK = (e) => e.options.eventEmitter, cbe = (e) => e.rootProps.baseValue, WK = {
+}, PK = (e) => e.rootProps.maxBarSize, FK = (e) => e.rootProps.barGap, IK = (e) => e.rootProps.barCategoryGap, LK = (e) => e.rootProps.barSize, RK = (e) => e.rootProps.stackOffset, zK = (e) => e.rootProps.reverseStackOrder, BK = (e) => e.options.chartName, VK = (e) => e.rootProps.syncId, HK = (e) => e.rootProps.syncMethod, UK = (e) => e.options.eventEmitter, Ebe = (e) => e.rootProps.baseValue, WK = {
grid: -100,
barBackground: -50,
area: 100,
@@ -55245,7 +55346,7 @@ var OK = (e) => {
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
function JK(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return zV(e, t) ? "category" : "number";
+ if (e != null) return XV(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
@@ -55263,26 +55364,26 @@ function XK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? YK(Object(n), !0).forEach(function(t) {
- lbe(e, t, n[t]);
+ Dbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lbe(e, t, n) {
- return (t = ube(t)) in e ? Object.defineProperty(e, t, {
+function Dbe(e, t, n) {
+ return (t = Obe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ube(e) {
- var t = dbe(e, "string");
+function Obe(e) {
+ var t = kbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dbe(e, t) {
+function kbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55328,45 +55429,45 @@ var ZK = {
niceTicks: "auto"
}, $K = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, lU], (e, t) => {
+}, bU], (e, t) => {
if (e != null) return e;
var n = JK(t, "angleAxis", ZK.type) ?? "category";
return XK(XK({}, ZK), {}, { type: n });
-}), eq = $([(e, t) => e.polarAxis.radiusAxis[t], lU], (e, t) => {
+}), eq = $([(e, t) => e.polarAxis.radiusAxis[t], bU], (e, t) => {
if (e != null) return e;
var n = JK(t, "radiusAxis", QK.type) ?? "category";
return XK(XK({}, QK), {}, { type: n });
}), tq = (e) => e.polarOptions, nq = $([
- aH,
- oH,
- SH
-], Hye), rq = $([tq, nq], (e, t) => {
- if (e != null) return ER(e.innerRadius, t, 0);
+ gH,
+ _H,
+ NH
+], obe), rq = $([tq, nq], (e, t) => {
+ if (e != null) return LR(e.innerRadius, t, 0);
}), iq = $([tq, nq], (e, t) => {
- if (e != null) return ER(e.outerRadius, t, t * .8);
+ if (e != null) return LR(e.outerRadius, t, t * .8);
}), aq = $([tq], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), fbe = $([$K, aq], qK), oq = $([
+}), Abe = $([$K, aq], qK), oq = $([
nq,
rq,
iq
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), pbe = $([eq, oq], qK), sq = $([
- oU,
+}), jbe = $([eq, oq], qK), sq = $([
+ _U,
tq,
rq,
iq,
- aH,
- oH
+ gH,
+ _H
], (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: ER(o, i, i / 2),
- cy: ER(s, a, a / 2),
+ cx: LR(o, i, i / 2),
+ cy: LR(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -55389,7 +55490,7 @@ function dq(e, t, n) {
if (t != null && t.length !== 0) {
var n = uq(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(LV(t, a, null)), c = LV(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(JV(t, a, null)), c = JV(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -55408,7 +55509,7 @@ var pq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] &&
function mq(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function mbe(e, t) {
+function Mbe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -55418,7 +55519,7 @@ function mbe(e, t) {
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
var hq = (e) => {
- var t = oU(e);
+ var t = _U(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
}, gq = (e) => e.tooltip.settings.axisId;
//#endregion
@@ -55470,7 +55571,7 @@ var vq = (e, t) => {
if (!SK(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- AV(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ VV(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;
}
@@ -55487,7 +55588,7 @@ function yq(e, t) {
//#region node_modules/d3-array/src/bisector.js
function bq(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = hbe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = Nbe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -55513,7 +55614,7 @@ function bq(e) {
right: i
};
}
-function hbe(e) {
+function Nbe(e) {
return (t, n) => yq(e(t), n);
}
//#endregion
@@ -55521,7 +55622,7 @@ function hbe(e) {
function xq(e) {
return e === null ? NaN : +e;
}
-function* gbe(e, t) {
+function* Pbe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -55535,7 +55636,7 @@ Sq.left, bq(xq).center;
//#endregion
//#region node_modules/internmap/src/index.js
var wq = class extends Map {
- constructor(e, t = ybe) {
+ constructor(e, t = Lbe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
@@ -55548,25 +55649,25 @@ var wq = class extends Map {
return super.has(Tq(this, e));
}
set(e, t) {
- return super.set(_be(this, e), t);
+ return super.set(Fbe(this, e), t);
}
delete(e) {
- return super.delete(vbe(this, e));
+ return super.delete(Ibe(this, e));
}
};
function Tq({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function _be({ _intern: e, _key: t }, n) {
+function Fbe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function vbe({ _intern: e, _key: t }, n) {
+function Ibe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function ybe(e) {
+function Lbe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -55639,15 +55740,15 @@ function Fq(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function bbe(e, t, n) {
- if (e = Float64Array.from(gbe(e, n)), r = e.length) {
+function Rbe(e, t, n) {
+ if (e = Float64Array.from(Pbe(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return Nq(e);
if (t >= 1) return Mq(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = Mq(Pq(e, a).subarray(0, a + 1));
return o + (Nq(e.subarray(a + 1)) - o) * (i - a);
}
}
-function xbe(e, t, n = xq) {
+function zbe(e, t, n = xq) {
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);
@@ -55657,7 +55758,7 @@ function xbe(e, t, n = xq) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function Sbe(e, t, n) {
+function Bbe(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
@@ -55729,7 +55830,7 @@ function Vq() {
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = Sbe(e).map(function(e) {
+ var m = Bbe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -55764,7 +55865,7 @@ function Hq(e) {
return Hq(t());
}, e;
}
-function Cbe() {
+function Vbe() {
return Hq(Vq.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -55780,7 +55881,7 @@ function Wq(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function Gq() {}
-var Kq = .7, qq = 1 / Kq, Jq = "\\s*([+-]?\\d+)\\s*", Yq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Xq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", wbe = /^#([0-9a-f]{3,8})$/, Tbe = RegExp(`^rgb\\(${Jq},${Jq},${Jq}\\)$`), Ebe = RegExp(`^rgb\\(${Xq},${Xq},${Xq}\\)$`), Dbe = RegExp(`^rgba\\(${Jq},${Jq},${Jq},${Yq}\\)$`), Obe = RegExp(`^rgba\\(${Xq},${Xq},${Xq},${Yq}\\)$`), kbe = RegExp(`^hsl\\(${Yq},${Xq},${Xq}\\)$`), Abe = RegExp(`^hsla\\(${Yq},${Xq},${Xq},${Yq}\\)$`), Zq = {
+var Kq = .7, qq = 1 / Kq, Jq = "\\s*([+-]?\\d+)\\s*", Yq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Xq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Hbe = /^#([0-9a-f]{3,8})$/, Ube = RegExp(`^rgb\\(${Jq},${Jq},${Jq}\\)$`), Wbe = RegExp(`^rgb\\(${Xq},${Xq},${Xq}\\)$`), Gbe = RegExp(`^rgba\\(${Jq},${Jq},${Jq},${Yq}\\)$`), Kbe = RegExp(`^rgba\\(${Xq},${Xq},${Xq},${Yq}\\)$`), qbe = RegExp(`^hsl\\(${Yq},${Xq},${Xq}\\)$`), Jbe = RegExp(`^hsla\\(${Yq},${Xq},${Xq},${Yq}\\)$`), Zq = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -55939,18 +56040,18 @@ Uq(Gq, eJ, {
},
hex: Qq,
formatHex: Qq,
- formatHex8: jbe,
- formatHsl: Mbe,
+ formatHex8: Ybe,
+ formatHsl: Xbe,
formatRgb: $q,
toString: $q
});
function Qq() {
return this.rgb().formatHex();
}
-function jbe() {
+function Ybe() {
return this.rgb().formatHex8();
}
-function Mbe() {
+function Xbe() {
return dJ(this).formatHsl();
}
function $q() {
@@ -55958,7 +56059,7 @@ function $q() {
}
function eJ(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = wbe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? tJ(t) : n === 3 ? new iJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? nJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? nJ(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 = Tbe.exec(e)) ? new iJ(t[1], t[2], t[3], 1) : (t = Ebe.exec(e)) ? new iJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Dbe.exec(e)) ? nJ(t[1], t[2], t[3], t[4]) : (t = Obe.exec(e)) ? nJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = kbe.exec(e)) ? uJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = Abe.exec(e)) ? uJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Zq.hasOwnProperty(e) ? tJ(Zq[e]) : e === "transparent" ? new iJ(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = Hbe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? tJ(t) : n === 3 ? new iJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? nJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? nJ(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 = Ube.exec(e)) ? new iJ(t[1], t[2], t[3], 1) : (t = Wbe.exec(e)) ? new iJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Gbe.exec(e)) ? nJ(t[1], t[2], t[3], t[4]) : (t = Kbe.exec(e)) ? nJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = qbe.exec(e)) ? uJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = Jbe.exec(e)) ? uJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Zq.hasOwnProperty(e) ? tJ(Zq[e]) : e === "transparent" ? new iJ(NaN, NaN, NaN, 0) : null;
}
function tJ(e) {
return new iJ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -55966,11 +56067,11 @@ function tJ(e) {
function nJ(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new iJ(e, t, n, r);
}
-function Nbe(e) {
+function Zbe(e) {
return e instanceof Gq || (e = eJ(e)), e ? (e = e.rgb(), new iJ(e.r, e.g, e.b, e.opacity)) : new iJ();
}
function rJ(e, t, n, r) {
- return arguments.length === 1 ? Nbe(e) : new iJ(e, t, n, r ?? 1);
+ return arguments.length === 1 ? Zbe(e) : new iJ(e, t, n, r ?? 1);
}
function iJ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -55993,14 +56094,14 @@ Uq(iJ, rJ, Wq(Gq, {
},
hex: aJ,
formatHex: aJ,
- formatHex8: Pbe,
+ formatHex8: Qbe,
formatRgb: oJ,
toString: oJ
}));
function aJ() {
return `#${lJ(this.r)}${lJ(this.g)}${lJ(this.b)}`;
}
-function Pbe() {
+function Qbe() {
return `#${lJ(this.r)}${lJ(this.g)}${lJ(this.b)}${lJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function oJ() {
@@ -56027,13 +56128,13 @@ function dJ(e) {
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 fJ(o, s, c, e.opacity);
}
-function Fbe(e, t, n, r) {
+function $be(e, t, n, r) {
return arguments.length === 1 ? dJ(e) : new fJ(e, t, n, r ?? 1);
}
function fJ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-Uq(fJ, Fbe, Wq(Gq, {
+Uq(fJ, $be, Wq(Gq, {
brighter(e) {
return e = e == null ? qq : qq ** +e, new fJ(this.h, this.s, this.l * e, this.opacity);
},
@@ -56069,29 +56170,29 @@ function hJ(e, t, n) {
var gJ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function Ibe(e, t) {
+function exe(e, t) {
return function(n) {
return e + n * t;
};
}
-function Lbe(e, t, n) {
+function txe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function Rbe(e) {
+function nxe(e) {
return (e = +e) == 1 ? _J : function(t, n) {
- return n - t ? Lbe(t, n, e) : gJ(isNaN(t) ? n : t);
+ return n - t ? txe(t, n, e) : gJ(isNaN(t) ? n : t);
};
}
function _J(e, t) {
var n = t - e;
- return n ? Ibe(e, n) : gJ(isNaN(e) ? t : e);
+ return n ? exe(e, n) : gJ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var vJ = (function e(t) {
- var n = Rbe(t);
+ var n = nxe(t);
function r(e, t) {
var r = n((e = rJ(e)).r, (t = rJ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = _J(e.opacity, t.opacity);
return function(t) {
@@ -56102,7 +56203,7 @@ var vJ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function zbe(e, t) {
+function rxe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -56110,12 +56211,12 @@ function zbe(e, t) {
return r;
};
}
-function Bbe(e) {
+function ixe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function Vbe(e, t) {
+function axe(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] = SJ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -56126,7 +56227,7 @@ function Vbe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function Hbe(e, t) {
+function oxe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -56141,7 +56242,7 @@ function yJ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function Ube(e, t) {
+function sxe(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] = SJ(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -56152,23 +56253,23 @@ function Ube(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var bJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, xJ = new RegExp(bJ.source, "g");
-function Wbe(e) {
+function cxe(e) {
return function() {
return e;
};
}
-function Gbe(e) {
+function lxe(e) {
return function(t) {
return e(t) + "";
};
}
-function Kbe(e, t) {
+function uxe(e, t) {
var n = bJ.lastIndex = xJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = bJ.exec(e)) && (i = xJ.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: yJ(r, i)
})), n = xJ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? Gbe(c[0].x) : Wbe(t) : (t = c.length, function(e) {
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? lxe(c[0].x) : cxe(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("");
});
@@ -56177,7 +56278,7 @@ function Kbe(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function SJ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? gJ(t) : (n === "number" ? yJ : n === "string" ? (r = eJ(t)) ? (t = r, vJ) : Kbe : t instanceof eJ ? vJ : t instanceof Date ? Hbe : Bbe(t) ? zbe : Array.isArray(t) ? Vbe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Ube : yJ)(e, t);
+ return t == null || n === "boolean" ? gJ(t) : (n === "number" ? yJ : n === "string" ? (r = eJ(t)) ? (t = r, vJ) : uxe : t instanceof eJ ? vJ : t instanceof Date ? oxe : ixe(t) ? rxe : Array.isArray(t) ? axe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? sxe : yJ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -56188,7 +56289,7 @@ function CJ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function qbe(e, t) {
+function dxe(e, t) {
t === void 0 && (t = e, e = SJ);
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) {
@@ -56198,7 +56299,7 @@ function qbe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function Jbe(e) {
+function fxe(e) {
return function() {
return e;
};
@@ -56217,21 +56318,21 @@ function EJ(e) {
function DJ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : Jbe(isNaN(t) ? NaN : .5);
+ } : fxe(isNaN(t) ? NaN : .5);
}
-function Ybe(e, t) {
+function pxe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function Xbe(e, t, n) {
+function mxe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
return i < r ? (r = DJ(i, r), a = n(o, a)) : (r = DJ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function Zbe(e, t, n) {
+function hxe(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] = DJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
@@ -56246,7 +56347,7 @@ function kJ() {
var e = TJ, t = TJ, n = SJ, r, i, a, o = EJ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== EJ && (o = Ybe(e[0], e[n - 1])), s = n > 2 ? Zbe : Xbe, c = l = null, d;
+ return o !== EJ && (o = pxe(e[0], e[n - 1])), s = n > 2 ? hxe : mxe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -56274,7 +56375,7 @@ function AJ() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function Qbe(e) {
+function gxe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function jJ(e, t) {
@@ -56289,7 +56390,7 @@ function MJ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function $be(e, t) {
+function _xe(e, t) {
return function(n, r) {
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
return a.reverse().join(t);
@@ -56297,7 +56398,7 @@ function $be(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function exe(e) {
+function vxe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -56306,9 +56407,9 @@ function exe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var txe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var yxe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function NJ(e) {
- if (!(t = txe.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = yxe.exec(e))) throw Error("invalid format: " + e);
var t;
return new PJ({
fill: t[1],
@@ -56332,7 +56433,7 @@ PJ.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function nxe(e) {
+function bxe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -56349,7 +56450,7 @@ function nxe(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var FJ;
-function rxe(e, t) {
+function xxe(e, t) {
var n = jJ(e, t);
if (!n) return FJ = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (FJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -56369,14 +56470,14 @@ var LJ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: Qbe,
+ d: gxe,
e: (e, t) => e.toExponential(t),
f: (e, t) => e.toFixed(t),
g: (e, t) => e.toPrecision(t),
o: (e) => Math.round(e).toString(8),
p: (e, t) => IJ(e * 100, t),
r: IJ,
- s: rxe,
+ s: xxe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -56406,8 +56507,8 @@ var zJ = Array.prototype.map, BJ = [
"Z",
"Y"
];
-function ixe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? RJ : $be(zJ.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 ? RJ : exe(zJ.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 Sxe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? RJ : _xe(zJ.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 ? RJ : vxe(zJ.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 = NJ(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;
@@ -56420,7 +56521,7 @@ function ixe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = nxe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && FJ !== void 0 ? BJ[8 + FJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = bxe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && FJ !== void 0 ? BJ[8 + FJ / 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;
@@ -56461,27 +56562,27 @@ function ixe(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var VJ, HJ, UJ;
-axe({
+Cxe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function axe(e) {
- return VJ = ixe(e), HJ = VJ.format, UJ = VJ.formatPrefix, VJ;
+function Cxe(e) {
+ return VJ = Sxe(e), HJ = VJ.format, UJ = VJ.formatPrefix, VJ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function oxe(e) {
+function wxe(e) {
return Math.max(0, -MJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function sxe(e, t) {
+function Txe(e, t) {
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(MJ(t) / 3))) * 3 - MJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function cxe(e, t) {
+function Exe(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, MJ(t) - MJ(e)) + 1;
}
//#endregion
@@ -56491,16 +56592,16 @@ function WJ(e, t, n, r) {
switch (r = NJ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = sxe(i, o)) && (r.precision = a), UJ(r, o);
+ return r.precision == null && !isNaN(a = Txe(i, o)) && (r.precision = a), UJ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = cxe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = Exe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = oxe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = wxe(i)) && (r.precision = a - (r.type === "%") * 2);
}
return HJ(r);
}
@@ -56563,19 +56664,19 @@ function YJ(e) {
function XJ(e) {
return Math.exp(e);
}
-function lxe(e) {
+function Dxe(e) {
return -Math.log(-e);
}
-function uxe(e) {
+function Oxe(e) {
return -Math.exp(-e);
}
-function dxe(e) {
+function kxe(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function fxe(e) {
- return e === 10 ? dxe : e === Math.E ? Math.exp : (t) => e ** +t;
+function Axe(e) {
+ return e === 10 ? kxe : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function pxe(e) {
+function jxe(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 ZJ(e) {
@@ -56584,7 +56685,7 @@ function ZJ(e) {
function QJ(e) {
let t = e(YJ, XJ), n = t.domain, r = 10, i, a;
function o() {
- return i = pxe(r), a = fxe(r), n()[0] < 0 ? (i = ZJ(i), a = ZJ(a), e(lxe, uxe)) : e(YJ, XJ), t;
+ return i = jxe(r), a = Axe(r), n()[0] < 0 ? (i = ZJ(i), a = ZJ(a), e(Dxe, Oxe)) : e(YJ, XJ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -56654,16 +56755,16 @@ function iY(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function mxe(e) {
+function Mxe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function hxe(e) {
+function Nxe(e) {
return e < 0 ? -e * e : e * e;
}
function aY(e) {
var t = e(EJ, EJ), n = 1;
function r() {
- return n === 1 ? e(EJ, EJ) : n === .5 ? e(mxe, hxe) : e(iY(n), iY(1 / n));
+ return n === 1 ? e(EJ, EJ) : n === .5 ? e(Mxe, Nxe) : e(iY(n), iY(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -56675,7 +56776,7 @@ function oY() {
return OJ(e, oY()).exponent(e.exponent());
}, Lq.apply(e, arguments), e;
}
-function gxe() {
+function Pxe() {
return oY.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -56683,13 +56784,13 @@ function gxe() {
function sY(e) {
return Math.sign(e) * e * e;
}
-function _xe(e) {
+function Fxe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function cY() {
var e = AJ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = _xe(e(t));
+ var i = Fxe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -56716,7 +56817,7 @@ function lY() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
- for (n = Array(i - 1); ++r < i;) n[r - 1] = xbe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = zbe(e, r / i);
return a;
}
function a(e) {
@@ -56885,8 +56986,8 @@ function jY(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * _Y) / bY);
}
-var MY = jY(0), NY = jY(1), vxe = jY(2), yxe = jY(3), PY = jY(4), bxe = jY(5), xxe = jY(6);
-MY.range, NY.range, vxe.range, yxe.range, PY.range, bxe.range, xxe.range;
+var MY = jY(0), NY = jY(1), Ixe = jY(2), Lxe = jY(3), PY = jY(4), Rxe = jY(5), zxe = jY(6);
+MY.range, NY.range, Ixe.range, Lxe.range, PY.range, Rxe.range, zxe.range;
function FY(e) {
return mY((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -56894,8 +56995,8 @@ function FY(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / bY);
}
-var IY = FY(0), LY = FY(1), Sxe = FY(2), Cxe = FY(3), RY = FY(4), wxe = FY(5), Txe = FY(6);
-IY.range, LY.range, Sxe.range, Cxe.range, RY.range, wxe.range, Txe.range;
+var IY = FY(0), LY = FY(1), Bxe = FY(2), Vxe = FY(3), RY = FY(4), Hxe = FY(5), Uxe = FY(6);
+IY.range, LY.range, Bxe.range, Vxe.range, RY.range, Hxe.range, Uxe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var zY = mY((e) => {
@@ -57042,7 +57143,7 @@ function UY(e, t, n, r, i, a) {
}
return [s, c];
}
-var [Exe, Dxe] = UY(HY, BY, IY, AY, DY, TY), [Oxe, kxe] = UY(VY, zY, MY, OY, EY, wY);
+var [Wxe, Gxe] = UY(HY, BY, IY, AY, DY, TY), [Kxe, qxe] = UY(VY, zY, MY, OY, EY, wY);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function WY(e) {
@@ -57070,7 +57171,7 @@ function KY(e, t, n) {
L: 0
};
}
-function Axe(e) {
+function Jxe(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 = XY(i), u = ZY(i), d = XY(a), f = ZY(a), p = XY(o), m = ZY(o), h = XY(s), g = ZY(s), _ = XY(c), v = ZY(c), y = {
a: N,
A: ee,
@@ -57079,30 +57180,30 @@ function Axe(e) {
c: null,
d: nX,
e: nX,
- f: $xe,
- g: lSe,
- G: dSe,
- H: Xxe,
- I: Zxe,
- j: Qxe,
+ f: _Se,
+ g: DSe,
+ G: kSe,
+ H: mSe,
+ I: hSe,
+ j: gSe,
L: rX,
- m: eSe,
- M: tSe,
+ m: vSe,
+ M: ySe,
p: F,
q: ne,
Q: lX,
s: uX,
- S: nSe,
- u: rSe,
- U: iSe,
- V: aSe,
- w: oSe,
- W: sSe,
+ S: bSe,
+ u: xSe,
+ U: SSe,
+ V: CSe,
+ w: wSe,
+ W: TSe,
x: null,
X: null,
- y: cSe,
- Y: uSe,
- Z: fSe,
+ y: ESe,
+ Y: OSe,
+ Z: ASe,
"%": cX
}, b = {
a: re,
@@ -57112,30 +57213,30 @@ function Axe(e) {
c: null,
d: aX,
e: aX,
- f: gSe,
- g: ESe,
- G: OSe,
- H: pSe,
- I: mSe,
- j: hSe,
+ f: PSe,
+ g: WSe,
+ G: KSe,
+ H: jSe,
+ I: MSe,
+ j: NSe,
L: oX,
- m: _Se,
- M: vSe,
+ m: FSe,
+ M: ISe,
p: se,
q: ce,
Q: lX,
s: uX,
- S: ySe,
- u: bSe,
- U: xSe,
- V: SSe,
- w: CSe,
- W: wSe,
+ S: LSe,
+ u: RSe,
+ U: zSe,
+ V: BSe,
+ w: VSe,
+ W: HSe,
x: null,
X: null,
- y: TSe,
- Y: DSe,
- Z: kSe,
+ y: USe,
+ Y: GSe,
+ Z: qSe,
"%": cX
}, x = {
a: E,
@@ -57145,31 +57246,31 @@ function Axe(e) {
c: A,
d: eX,
e: eX,
- f: Kxe,
+ f: uSe,
g: $Y,
G: QY,
H: tX,
I: tX,
- j: Hxe,
- L: Gxe,
- m: Vxe,
- M: Uxe,
+ j: oSe,
+ L: lSe,
+ m: aSe,
+ M: sSe,
p: T,
- q: Bxe,
- Q: Jxe,
- s: Yxe,
- S: Wxe,
- u: Fxe,
- U: Ixe,
- V: Lxe,
- w: Pxe,
- W: Rxe,
+ q: iSe,
+ Q: fSe,
+ s: pSe,
+ S: cSe,
+ u: $xe,
+ U: eSe,
+ V: tSe,
+ w: Qxe,
+ W: nSe,
x: j,
X: M,
y: $Y,
Y: QY,
- Z: zxe,
- "%": qxe
+ Z: rSe,
+ "%": dSe
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
@@ -57297,37 +57398,37 @@ var qY = {
"-": "",
_: " ",
0: "0"
-}, JY = /^\s*\d+/, jxe = /^%/, Mxe = /[\\^$*+?|[\]().{}]/g;
+}, JY = /^\s*\d+/, Yxe = /^%/, Xxe = /[\\^$*+?|[\]().{}]/g;
function YY(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 Nxe(e) {
- return e.replace(Mxe, "\\$&");
+function Zxe(e) {
+ return e.replace(Xxe, "\\$&");
}
function XY(e) {
- return RegExp("^(?:" + e.map(Nxe).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(Zxe).join("|") + ")", "i");
}
function ZY(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function Pxe(e, t, n) {
+function Qxe(e, t, n) {
var r = JY.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function Fxe(e, t, n) {
+function $xe(e, t, n) {
var r = JY.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function Ixe(e, t, n) {
+function eSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function Lxe(e, t, n) {
+function tSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function Rxe(e, t, n) {
+function nSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -57339,15 +57440,15 @@ function $Y(e, t, n) {
var r = JY.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function zxe(e, t, n) {
+function rSe(e, t, n) {
var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
-function Bxe(e, t, n) {
+function iSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function Vxe(e, t, n) {
+function aSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -57355,7 +57456,7 @@ function eX(e, t, n) {
var r = JY.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function Hxe(e, t, n) {
+function oSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -57363,159 +57464,159 @@ function tX(e, t, n) {
var r = JY.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function Uxe(e, t, n) {
+function sSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function Wxe(e, t, n) {
+function cSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function Gxe(e, t, n) {
+function lSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function Kxe(e, t, n) {
+function uSe(e, t, n) {
var r = JY.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function qxe(e, t, n) {
- var r = jxe.exec(t.slice(n, n + 1));
+function dSe(e, t, n) {
+ var r = Yxe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function Jxe(e, t, n) {
+function fSe(e, t, n) {
var r = JY.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function Yxe(e, t, n) {
+function pSe(e, t, n) {
var r = JY.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function nX(e, t) {
return YY(e.getDate(), t, 2);
}
-function Xxe(e, t) {
+function mSe(e, t) {
return YY(e.getHours(), t, 2);
}
-function Zxe(e, t) {
+function hSe(e, t) {
return YY(e.getHours() % 12 || 12, t, 2);
}
-function Qxe(e, t) {
+function gSe(e, t) {
return YY(1 + OY.count(VY(e), e), t, 3);
}
function rX(e, t) {
return YY(e.getMilliseconds(), t, 3);
}
-function $xe(e, t) {
+function _Se(e, t) {
return rX(e, t) + "000";
}
-function eSe(e, t) {
+function vSe(e, t) {
return YY(e.getMonth() + 1, t, 2);
}
-function tSe(e, t) {
+function ySe(e, t) {
return YY(e.getMinutes(), t, 2);
}
-function nSe(e, t) {
+function bSe(e, t) {
return YY(e.getSeconds(), t, 2);
}
-function rSe(e) {
+function xSe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function iSe(e, t) {
+function SSe(e, t) {
return YY(MY.count(VY(e) - 1, e), t, 2);
}
function iX(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? PY(e) : PY.ceil(e);
}
-function aSe(e, t) {
+function CSe(e, t) {
return e = iX(e), YY(PY.count(VY(e), e) + (VY(e).getDay() === 4), t, 2);
}
-function oSe(e) {
+function wSe(e) {
return e.getDay();
}
-function sSe(e, t) {
+function TSe(e, t) {
return YY(NY.count(VY(e) - 1, e), t, 2);
}
-function cSe(e, t) {
+function ESe(e, t) {
return YY(e.getFullYear() % 100, t, 2);
}
-function lSe(e, t) {
+function DSe(e, t) {
return e = iX(e), YY(e.getFullYear() % 100, t, 2);
}
-function uSe(e, t) {
+function OSe(e, t) {
return YY(e.getFullYear() % 1e4, t, 4);
}
-function dSe(e, t) {
+function kSe(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? PY(e) : PY.ceil(e), YY(e.getFullYear() % 1e4, t, 4);
}
-function fSe(e) {
+function ASe(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + YY(t / 60 | 0, "0", 2) + YY(t % 60, "0", 2);
}
function aX(e, t) {
return YY(e.getUTCDate(), t, 2);
}
-function pSe(e, t) {
+function jSe(e, t) {
return YY(e.getUTCHours(), t, 2);
}
-function mSe(e, t) {
+function MSe(e, t) {
return YY(e.getUTCHours() % 12 || 12, t, 2);
}
-function hSe(e, t) {
+function NSe(e, t) {
return YY(1 + kY.count(HY(e), e), t, 3);
}
function oX(e, t) {
return YY(e.getUTCMilliseconds(), t, 3);
}
-function gSe(e, t) {
+function PSe(e, t) {
return oX(e, t) + "000";
}
-function _Se(e, t) {
+function FSe(e, t) {
return YY(e.getUTCMonth() + 1, t, 2);
}
-function vSe(e, t) {
+function ISe(e, t) {
return YY(e.getUTCMinutes(), t, 2);
}
-function ySe(e, t) {
+function LSe(e, t) {
return YY(e.getUTCSeconds(), t, 2);
}
-function bSe(e) {
+function RSe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function xSe(e, t) {
+function zSe(e, t) {
return YY(IY.count(HY(e) - 1, e), t, 2);
}
function sX(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? RY(e) : RY.ceil(e);
}
-function SSe(e, t) {
+function BSe(e, t) {
return e = sX(e), YY(RY.count(HY(e), e) + (HY(e).getUTCDay() === 4), t, 2);
}
-function CSe(e) {
+function VSe(e) {
return e.getUTCDay();
}
-function wSe(e, t) {
+function HSe(e, t) {
return YY(LY.count(HY(e) - 1, e), t, 2);
}
-function TSe(e, t) {
+function USe(e, t) {
return YY(e.getUTCFullYear() % 100, t, 2);
}
-function ESe(e, t) {
+function WSe(e, t) {
return e = sX(e), YY(e.getUTCFullYear() % 100, t, 2);
}
-function DSe(e, t) {
+function GSe(e, t) {
return YY(e.getUTCFullYear() % 1e4, t, 4);
}
-function OSe(e, t) {
+function KSe(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? RY(e) : RY.ceil(e), YY(e.getUTCFullYear() % 1e4, t, 4);
}
-function kSe() {
+function qSe() {
return "+0000";
}
function cX() {
@@ -57530,7 +57631,7 @@ function uX(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var dX, fX, pX;
-ASe({
+JSe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -57582,15 +57683,15 @@ ASe({
"Dec"
]
});
-function ASe(e) {
- return dX = Axe(e), fX = dX.format, dX.parse, pX = dX.utcFormat, dX.utcParse, dX;
+function JSe(e) {
+ return dX = Jxe(e), fX = dX.format, dX.parse, pX = dX.utcFormat, dX.utcParse, dX;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function jSe(e) {
+function YSe(e) {
return new Date(e);
}
-function MSe(e) {
+function XSe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function mX(e, t, n, r, i, a, o, s, c, l) {
@@ -57601,7 +57702,7 @@ function mX(e, t, n, r, i, a, o, s, c, l) {
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, MSe)) : f().map(jSe);
+ return arguments.length ? f(Array.from(e, XSe)) : f().map(YSe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -57614,13 +57715,13 @@ function mX(e, t, n, r, i, a, o, s, c, l) {
return OJ(u, mX(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function NSe() {
- return Lq.apply(mX(Oxe, kxe, VY, zY, MY, OY, EY, wY, CY, fX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function ZSe() {
+ return Lq.apply(mX(Kxe, qxe, VY, zY, MY, OY, EY, wY, CY, fX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function PSe() {
- return Lq.apply(mX(Exe, Dxe, HY, BY, IY, kY, DY, TY, CY, pX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function QSe() {
+ return Lq.apply(mX(Wxe, Gxe, HY, BY, IY, kY, DY, TY, CY, pX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -57675,7 +57776,7 @@ function bX() {
return gX(e, bX()).exponent(e.exponent());
}, Rq.apply(e, arguments);
}
-function FSe() {
+function $Se() {
return bX.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -57695,7 +57796,7 @@ function xX() {
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => bbe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => Rbe(e, r / t));
}, n.copy = function() {
return xX(t).domain(e);
}, Rq.apply(n, arguments);
@@ -57721,7 +57822,7 @@ function SX() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = qbe(e, [
+ return arguments.length ? ([n, r, i] = t, l = dxe(e, [
n,
r,
i
@@ -57766,7 +57867,7 @@ function EX() {
return gX(e, EX()).exponent(e.exponent());
}, Rq.apply(e, arguments);
}
-function ISe() {
+function eCe() {
return EX.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -57776,14 +57877,14 @@ var DX = /* @__PURE__ */ Ee({
scaleDiverging: () => CX,
scaleDivergingLog: () => wX,
scaleDivergingPow: () => EX,
- scaleDivergingSqrt: () => ISe,
+ scaleDivergingSqrt: () => eCe,
scaleDivergingSymlog: () => TX,
scaleIdentity: () => qJ,
scaleImplicit: () => zq,
scaleLinear: () => KJ,
scaleLog: () => $J,
scaleOrdinal: () => Bq,
- scalePoint: () => Cbe,
+ scalePoint: () => Vbe,
scalePow: () => oY,
scaleQuantile: () => lY,
scaleQuantize: () => uY,
@@ -57792,26 +57893,26 @@ var DX = /* @__PURE__ */ Ee({
scaleSequentialLog: () => vX,
scaleSequentialPow: () => bX,
scaleSequentialQuantile: () => xX,
- scaleSequentialSqrt: () => FSe,
+ scaleSequentialSqrt: () => $Se,
scaleSequentialSymlog: () => yX,
- scaleSqrt: () => gxe,
+ scaleSqrt: () => Pxe,
scaleSymlog: () => rY,
scaleThreshold: () => dY,
- scaleTime: () => NSe,
- scaleUtc: () => PSe,
+ scaleTime: () => ZSe,
+ scaleUtc: () => QSe,
tickFormat: () => WJ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function LSe(e) {
+function tCe(e) {
if (e in DX) return DX[e]();
- var t = `scale${jR(e)}`;
+ var t = `scale${HR(e)}`;
if (t in DX) return DX[t]();
}
function OX(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = LSe(e);
+ var r = tCe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -57820,22 +57921,22 @@ function kX(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function RSe(e) {
- return `scale${jR(e)}`;
+function nCe(e) {
+ return `scale${HR(e)}`;
}
-function zSe(e) {
- return RSe(e) in DX;
+function rCe(e) {
+ return nCe(e) in DX;
}
var AX = (e, t, n) => {
if (e != null) {
var { scale: r, type: i } = e;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
- if (typeof r == "string") return zSe(r) ? r : "point";
+ if (typeof r == "string") return rCe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function BSe(e, t) {
+function iCe(e, t) {
for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {
var a = Math.floor((n + r) / 2);
(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;
@@ -57846,7 +57947,7 @@ function jX(e, t) {
if (e) {
var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();
if (!(n.length === 0 || i.length < 2)) return (e) => {
- var t = BSe(r, e);
+ var t = iCe(r, e);
if (t <= 0) return n[0];
if (t >= n.length) return n[n.length - 1];
var i = r[t - 1] ?? 0, a = r[t] ?? 0;
@@ -57856,7 +57957,7 @@ function jX(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function VSe(e) {
+function aCe(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : jX(e, void 0);
}
//#endregion
@@ -57875,26 +57976,26 @@ function NX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? MX(Object(n), !0).forEach(function(t) {
- HSe(e, t, n[t]);
+ oCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function HSe(e, t, n) {
- return (t = USe(t)) in e ? Object.defineProperty(e, t, {
+function oCe(e, t, n) {
+ return (t = sCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function USe(e) {
- var t = WSe(e, "string");
+function sCe(e) {
+ var t = cCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function WSe(e, t) {
+function cCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57962,7 +58063,7 @@ var PX = [0, "auto"], FX = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, zX = (e, t) => e.cartesianAxis.yAxis[t], BX = (e, t) => zX(e, t) ?? RX, GSe = {
+}, zX = (e, t) => e.cartesianAxis.yAxis[t], BX = (e, t) => zX(e, t) ?? RX, lCe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -57975,7 +58076,7 @@ var PX = [0, "auto"], FX = {
scale: "auto",
type: "number",
unit: ""
-}, VX = (e, t) => e.cartesianAxis.zAxis[t] ?? GSe, HX = (e, t, n) => {
+}, VX = (e, t) => e.cartesianAxis.zAxis[t] ?? lCe, HX = (e, t, n) => {
switch (t) {
case "xAxis": return LX(e, n);
case "yAxis": return BX(e, n);
@@ -57984,7 +58085,7 @@ var PX = [0, "auto"], FX = {
case "radiusAxis": return eq(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, KSe = (e, t, n) => {
+}, uCe = (e, t, n) => {
switch (t) {
case "xAxis": return LX(e, n);
case "yAxis": return BX(e, n);
@@ -58011,22 +58112,22 @@ function GX(e, t) {
}
};
}
-var KX = (e) => e.graphicalItems.cartesianItems, qSe = $([cq, lq], GX), qX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), JX = $([
+var KX = (e) => e.graphicalItems.cartesianItems, dCe = $([cq, lq], GX), qX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), JX = $([
KX,
HX,
- qSe
-], qX, { memoizeOptions: { resultEqualityCheck: mq } }), YX = $([JX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(fq)), XX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), JSe = $([JX], XX), ZX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), YSe = $([JX], ZX, { memoizeOptions: { resultEqualityCheck: mq } }), QX = (e, t) => {
+ dCe
+], qX, { memoizeOptions: { resultEqualityCheck: mq } }), YX = $([JX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(fq)), XX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), fCe = $([JX], XX), ZX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), pCe = $([JX], ZX, { memoizeOptions: { resultEqualityCheck: mq } }), QX = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, $X = $([YSe, bK], QX), eZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: LV(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: LV(e, t.dataKey) })), tZ = $([
+}, $X = $([pCe, bK], QX), eZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: JV(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: JV(e, t.dataKey) })), tZ = $([
$X,
HX,
JX
], eZ);
function nZ(e) {
- if (wR(e) || e instanceof Date) {
+ if (FR(e) || e instanceof Date) {
var t = Number(e);
- if (AV(t)) return t;
+ if (VV(t)) return t;
}
}
function rZ(e) {
@@ -58038,13 +58139,13 @@ function rZ(e) {
if (n != null) return [n, n];
}
function iZ(e) {
- return e.map(nZ).filter(MR);
+ return e.map(nZ).filter(UR);
}
-function XSe(e, t) {
+function mCe(e, t) {
var n = nZ(e), r = nZ(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var ZSe = $([tZ], (e) => e?.map((e) => e.value).sort(XSe));
+var hCe = $([tZ], (e) => e?.map((e) => e.value).sort(mCe));
function aZ(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
@@ -58052,13 +58153,13 @@ function aZ(e, t) {
default: return !1;
}
}
-function QSe(e, t, n) {
- return !n || typeof t != "number" || SR(t) || !n.length ? [] : iZ(n.flatMap((n) => {
- var r = LV(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!AV(i) || !AV(a))) return [t - i, t + a];
+function gCe(e, t, n) {
+ return !n || typeof t != "number" || NR(t) || !n.length ? [] : iZ(n.flatMap((n) => {
+ var r = JV(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!VV(i) || !VV(a))) return [t - i, t + a];
}));
}
-var oZ = (e) => UX(e, hq(e), gq(e)), sZ = $([oZ], (e) => e?.dataKey), $Se = $([
+var oZ = (e) => UX(e, hq(e), gq(e)), sZ = $([oZ], (e) => e?.dataKey), _Ce = $([
YX,
bK,
oZ
@@ -58071,22 +58172,22 @@ var oZ = (e) => UX(e, hq(e), gq(e)), sZ = $([oZ], (e) => e?.dataKey), $Se = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: WV(e, o.map(uq), n),
+ stackedData: tH(e, o.map(uq), n),
graphicalItems: o
}];
}));
}, lZ = $([
- $Se,
+ _Ce,
YX,
RK,
zK
], cZ), uZ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = ZV(e, i, a);
+ var o = cH(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, eCe = $([HX], (e) => e.allowDataOverflow), dZ = (e) => {
+}, vCe = $([HX], (e) => e.allowDataOverflow), dZ = (e) => {
if (e == null || !("domain" in e)) return PX;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
@@ -58097,12 +58198,12 @@ var oZ = (e) => UX(e, hq(e), gq(e)), sZ = $([oZ], (e) => e?.dataKey), $Se = $([
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? PX;
-}, fZ = $([HX], dZ), pZ = $([fZ, eCe], wK), tCe = $([
+}, fZ = $([HX], dZ), pZ = $([fZ, vCe], wK), yCe = $([
lZ,
vK,
cq,
pZ
-], uZ, { memoizeOptions: { resultEqualityCheck: pq } }), mZ = (e) => e.errorBars, nCe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => aZ(n, e)), hZ = function() {
+], uZ, { memoizeOptions: { resultEqualityCheck: pq } }), mZ = (e) => e.errorBars, bCe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => aZ(n, e)), hZ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
@@ -58112,7 +58213,7 @@ var oZ = (e) => UX(e, hq(e), gq(e)), sZ = $([oZ], (e) => e?.dataKey), $Se = $([
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => aZ(i, e)), c = LV(e, t.dataKey ?? n.dataKey), l = QSe(e, c, s);
+ var s = r[n.id]?.filter((e) => aZ(i, e)), c = JV(e, t.dataKey ?? n.dataKey), l = gCe(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);
@@ -58121,32 +58222,32 @@ var oZ = (e) => UX(e, hq(e), gq(e)), sZ = $([oZ], (e) => e?.dataKey), $Se = $([
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 = rZ(LV(e, t.dataKey));
+ var n = rZ(JV(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]));
- }), AV(a) && AV(o)) return [a, o];
-}, rCe = $([
+ }), VV(a) && VV(o)) return [a, o];
+}, xCe = $([
$X,
HX,
- JSe,
+ fCe,
mZ,
cq
], gZ, { memoizeOptions: { resultEqualityCheck: pq } });
-function iCe(e) {
+function SCe(e) {
var { value: t } = e;
- if (wR(t) || t instanceof Date) return t;
+ if (FR(t) || t instanceof Date) return t;
}
-var aCe = (e, t, n) => {
- var r = e.map(iCe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && DR(r)) ? _K(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, _Z = (e) => e.referenceElements.dots, vZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), oCe = $([
+var CCe = (e, t, n) => {
+ var r = e.map(SCe).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && RR(r)) ? _K(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, _Z = (e) => e.referenceElements.dots, vZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), wCe = $([
_Z,
cq,
lq
-], vZ), yZ = (e) => e.referenceElements.areas, sCe = $([
+], vZ), yZ = (e) => e.referenceElements.areas, TCe = $([
yZ,
cq,
lq
-], vZ), bZ = (e) => e.referenceElements.lines, cCe = $([
+], vZ), bZ = (e) => e.referenceElements.lines, ECe = $([
bZ,
cq,
lq
@@ -58155,49 +58256,49 @@ var aCe = (e, t, n) => {
var n = iZ(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, lCe = $(oCe, cq, xZ), SZ = (e, t) => {
+}, DCe = $(wCe, cq, xZ), SZ = (e, t) => {
if (e != null) {
var n = iZ(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)];
}
-}, uCe = $([sCe, cq], SZ);
-function dCe(e) {
+}, OCe = $([TCe, cq], SZ);
+function kCe(e) {
if (e.x != null) return iZ([e.x]);
var t = e.segment?.map((e) => e.x);
return t == null || t.length === 0 ? [] : iZ(t);
}
-function fCe(e) {
+function ACe(e) {
if (e.y != null) return iZ([e.y]);
var t = e.segment?.map((e) => e.y);
return t == null || t.length === 0 ? [] : iZ(t);
}
var CZ = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? dCe(e) : fCe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? kCe(e) : ACe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, pCe = $(lCe, $([cCe, cq], CZ), uCe, (e, t, n) => hZ(e, n, t)), wZ = (e, t, n, r, i, a, o, s) => n ?? obe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? hZ(r, a, i) : hZ(a, i), e.allowDataOverflow), mCe = $([
+}, jCe = $(DCe, $([ECe, cq], CZ), OCe, (e, t, n) => hZ(e, n, t)), wZ = (e, t, n, r, i, a, o, s) => n ?? wbe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? hZ(r, a, i) : hZ(a, i), e.allowDataOverflow), MCe = $([
HX,
fZ,
pZ,
- tCe,
- rCe,
- pCe,
- oU,
+ yCe,
+ xCe,
+ jCe,
+ _U,
cq
-], wZ, { memoizeOptions: { resultEqualityCheck: pq } }), hCe = [0, 1], TZ = (e, t, n, r, i, a, o) => {
+], wZ, { memoizeOptions: { resultEqualityCheck: pq } }), NCe = [0, 1], TZ = (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 = zV(t, a);
- return l && s == null ? _K(0, n?.length ?? 0) : c === "category" ? aCe(r, e, l) : i === "expand" ? hCe : o;
+ var { dataKey: s, type: c } = e, l = XV(t, a);
+ return l && s == null ? _K(0, n?.length ?? 0) : c === "category" ? CCe(r, e, l) : i === "expand" ? NCe : o;
}
}, EZ = $([
HX,
- oU,
+ _U,
$X,
tZ,
RK,
cq,
- mCe
+ MCe
], TZ), DZ = $([
HX,
WX,
@@ -58225,7 +58326,7 @@ var CZ = (e, t) => {
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, gCe = $([
+}, PCe = $([
HX,
EZ,
kZ,
@@ -58245,22 +58346,22 @@ var CZ = (e, t) => {
}
return n / o;
}
-}), oU, IK, SH, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!AV(e)) return 0;
+}), _U, IK, NH, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!VV(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = ER(n, e * a), s = e * a / 2;
+ var o = LR(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), _Ce = (e, t, n) => {
+}), FCe = (e, t, n) => {
var r = LX(e, t);
return r == null || typeof r.padding != "string" ? 0 : jZ(e, "xAxis", t, n, r.padding);
-}, vCe = (e, t, n) => {
+}, ICe = (e, t, n) => {
var r = BX(e, t);
return r == null || typeof r.padding != "string" ? 0 : jZ(e, "yAxis", t, n, r.padding);
-}, yCe = $(LX, _Ce, (e, t) => {
+}, LCe = $(LX, FCe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -58273,7 +58374,7 @@ var CZ = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), bCe = $(BX, vCe, (e, t) => {
+}), RCe = $(BX, ICe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -58286,29 +58387,29 @@ var CZ = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), xCe = $([
- SH,
- yCe,
- OH,
- DH,
+}), zCe = $([
+ NH,
+ LCe,
+ zH,
+ RH,
(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];
-}), SCe = $([
- SH,
- oU,
- bCe,
- OH,
- DH,
+}), BCe = $([
+ NH,
+ _U,
+ RCe,
+ zH,
+ RH,
(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];
}), MZ = (e, t, n, r) => {
switch (t) {
- case "xAxis": return xCe(e, n, r);
- case "yAxis": return SCe(e, n, r);
+ case "xAxis": return zCe(e, n, r);
+ case "yAxis": return BCe(e, n, r);
case "zAxis": return VX(e, n)?.range;
case "angleAxis": return aq(e);
case "radiusAxis": return oq(e, n);
@@ -58317,67 +58418,67 @@ var CZ = (e, t) => {
}, NZ = $([HX, MZ], qK), PZ = $([
HX,
DZ,
- $([DZ, gCe], vq),
+ $([DZ, PCe], vq),
NZ
], kX), FZ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (zV(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (XV(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
}, IZ = $([
- oU,
+ _U,
tZ,
UX,
cq
], FZ), LZ = $([PZ], _q);
-$([PZ], VSe), $([PZ, ZSe], jX), $([
+$([PZ], aCe), $([PZ, hCe], jX), $([
JX,
mZ,
cq
-], nCe);
+], bCe);
function RZ(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var zZ = (e, t) => t, BZ = (e, t, n) => n, CCe = $(lH, zZ, BZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(RZ)), wCe = $(uH, zZ, BZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(RZ)), VZ = (e, t) => ({
+var zZ = (e, t) => t, BZ = (e, t, n) => n, VCe = $(bH, zZ, BZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(RZ)), HCe = $(xH, zZ, BZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(RZ)), VZ = (e, t) => ({
width: e.width,
height: t.height
-}), TCe = (e, t) => ({
+}), UCe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), HZ = $(SH, LX, VZ), ECe = (e, t, n) => {
+}), HZ = $(NH, LX, VZ), WCe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, DCe = (e, t, n) => {
+}, GCe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, OCe = $(oH, SH, CCe, zZ, BZ, (e, t, n, r, i) => {
+}, KCe = $(_H, NH, VCe, zZ, BZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = VZ(t, n);
- o ??= ECe(t, r, e);
+ o ??= WCe(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;
-}), kCe = $(aH, SH, wCe, zZ, BZ, (e, t, n, r, i) => {
+}), qCe = $(gH, NH, HCe, zZ, BZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = TCe(t, n);
- o ??= DCe(t, r, e);
+ var s = UCe(t, n);
+ o ??= GCe(t, r, e);
var c = r === "left" && !i || r === "right" && i;
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
}), a;
-}), ACe = $([
- SH,
+}), JCe = $([
+ NH,
LX,
(e, t) => {
var n = LX(e, t);
- if (n != null) return OCe(e, n.orientation, n.mirror);
+ if (n != null) return KCe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -58391,12 +58492,12 @@ var zZ = (e, t) => t, BZ = (e, t, n) => n, CCe = $(lH, zZ, BZ, (e, t, n) => e.fi
y: i
};
}
-}), UZ = $([
- SH,
+}), YCe = $([
+ NH,
BX,
(e, t) => {
var n = BX(e, t);
- if (n != null) return kCe(e, n.orientation, n.mirror);
+ if (n != null) return qCe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -58410,38 +58511,38 @@ var zZ = (e, t) => t, BZ = (e, t, n) => n, CCe = $(lH, zZ, BZ, (e, t, n) => e.fi
y: e.top
};
}
-}), WZ = $(SH, BX, (e, t) => ({
+}), UZ = $(NH, BX, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), GZ = (e, t, n) => {
+})), WZ = (e, t, n) => {
switch (t) {
case "xAxis": return HZ(e, n).width;
- case "yAxis": return WZ(e, n).height;
+ case "yAxis": return UZ(e, n).height;
default: return;
}
-}, KZ = (e, t, n, r) => {
+}, GZ = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = zV(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && DR(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = XV(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && RR(c)) return c;
}
-}, qZ = $([
- oU,
+}, KZ = $([
+ _U,
tZ,
HX,
cq
-], KZ), JZ = $([
- oU,
- KSe,
+], GZ), qZ = $([
+ _U,
+ uCe,
DZ,
LZ,
- qZ,
+ KZ,
IZ,
MZ,
kZ,
cq
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = zV(e, c);
+ var l = XV(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -58463,93 +58564,93 @@ var zZ = (e, t) => t, BZ = (e, t, n) => n, CCe = $(lH, zZ, BZ, (e, t, n) => e.fi
scale: r
};
}
-}), YZ = (e, t, n, r, i, a, o, s, c) => {
+}), JZ = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = zV(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 ? xR(a[0] - a[1]) * 2 * m : m;
+ var l = XV(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 ? MR(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 AV(i) ? {
+ return VV(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(MR) : l && s ? s.map((e, t) => {
+ }).filter(UR) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return AV(n) ? {
+ return VV(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(MR) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(UR) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return AV(n) ? {
+ return VV(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(MR) : r.domain().map((e, t) => {
+ }).filter(UR) : r.domain().map((e, t) => {
var n = r.map(e);
- return AV(n) ? {
+ return VV(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(MR);
+ }).filter(UR);
}
-}, XZ = $([
- oU,
+}, YZ = $([
+ _U,
UX,
DZ,
LZ,
kZ,
MZ,
- qZ,
+ KZ,
IZ,
cq
-], YZ), ZZ = (e, t, n, r, i, a, o) => {
+], JZ), XZ = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = zV(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? xR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = XV(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? MR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return AV(r) ? {
+ return VV(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(MR) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(UR) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return AV(r) ? {
+ return VV(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(MR) : n.domain().map((e, t) => {
+ }).filter(UR) : n.domain().map((e, t) => {
var r = n.map(e);
- return AV(r) ? {
+ return VV(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(MR);
+ }).filter(UR);
}
-}, QZ = $([
- oU,
+}, ZZ = $([
+ _U,
UX,
LZ,
MZ,
- qZ,
+ KZ,
IZ,
cq
-], ZZ), $Z = $(HX, LZ, (e, t) => {
+], XZ), QZ = $(HX, LZ, (e, t) => {
if (e != null && t != null) return NX(NX({}, e), {}, { scale: t });
});
$((e, t, n) => VX(e, n), $([$([
@@ -58560,10 +58661,10 @@ $((e, t, n) => VX(e, n), $([$([
], kX)], _q), (e, t) => {
if (e != null && t != null) return NX(NX({}, e), {}, { scale: t });
});
-var jCe = $([
- oU,
- lH,
- uH
+var XCe = $([
+ _U,
+ bH,
+ xH
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -58585,41 +58686,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var eQ = (e) => e.options.defaultTooltipEventType, tQ = (e) => e.options.validateTooltipEventTypes;
-function nQ(e, t, n) {
+var $Z = (e) => e.options.defaultTooltipEventType, eQ = (e) => e.options.validateTooltipEventTypes;
+function tQ(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function rQ(e, t) {
- return nQ(t, eQ(e), tQ(e));
+function nQ(e, t) {
+ return tQ(t, $Z(e), eQ(e));
}
-function MCe(e) {
- return Q((t) => rQ(t, e));
+function ZCe(e) {
+ return Q((t) => nQ(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var iQ = (e, t) => {
+var rQ = (e, t) => {
var n, r = Number(t);
- if (!(SR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, NCe = (e) => e.tooltip.settings, aQ = {
+ if (!(NR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, QCe = (e) => e.tooltip.settings, iQ = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, oQ = tV({
+}, aQ = fV({
name: "tooltip",
initialState: {
itemInteraction: {
- click: aQ,
- hover: aQ
+ click: iQ,
+ hover: iQ
},
axisInteraction: {
- click: aQ,
- hover: aQ
+ click: iQ,
+ hover: iQ
},
- keyboardInteraction: aQ,
+ keyboardInteraction: iQ,
syncInteraction: {
active: !1,
index: null,
@@ -58641,23 +58742,23 @@ var iQ = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(cW(t.payload));
+ e.tooltipItemPayloads.push(yW(t.payload));
},
- prepare: ZB()
+ prepare: cV()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = HB(e).tooltipItemPayloads.indexOf(cW(n));
- i > -1 && (e.tooltipItemPayloads[i] = cW(r));
+ var { prev: n, next: r } = t.payload, i = $B(e).tooltipItemPayloads.indexOf(yW(n));
+ i > -1 && (e.tooltipItemPayloads[i] = yW(r));
},
- prepare: ZB()
+ prepare: cV()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = HB(e).tooltipItemPayloads.indexOf(cW(t.payload));
+ var n = $B(e).tooltipItemPayloads.indexOf(yW(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: ZB()
+ prepare: cV()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -58687,10 +58788,10 @@ var iQ = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: PCe, replaceTooltipEntrySettings: FCe, removeTooltipEntrySettings: ICe, setTooltipSettingsState: LCe, setActiveMouseOverItemIndex: sQ, mouseLeaveItem: RCe, mouseLeaveChart: cQ, setActiveClickItemIndex: zCe, setMouseOverAxisIndex: lQ, setMouseClickAxisIndex: BCe, setSyncInteraction: uQ, setKeyboardInteraction: dQ } = oQ.actions, VCe = oQ.reducer;
+}), { addTooltipEntrySettings: $Ce, replaceTooltipEntrySettings: ewe, removeTooltipEntrySettings: twe, setTooltipSettingsState: nwe, setActiveMouseOverItemIndex: oQ, mouseLeaveItem: rwe, mouseLeaveChart: sQ, setActiveClickItemIndex: iwe, setMouseOverAxisIndex: cQ, setMouseClickAxisIndex: awe, setSyncInteraction: lQ, setKeyboardInteraction: uQ } = aQ.actions, owe = aQ.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function fQ(e, t) {
+function dQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58700,30 +58801,30 @@ function fQ(e, t) {
}
return n;
}
-function pQ(e) {
+function fQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fQ(Object(n), !0).forEach(function(t) {
- HCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fQ(Object(n)).forEach(function(t) {
+ t % 2 ? dQ(Object(n), !0).forEach(function(t) {
+ swe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function HCe(e, t, n) {
- return (t = UCe(t)) in e ? Object.defineProperty(e, t, {
+function swe(e, t, n) {
+ return (t = cwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function UCe(e) {
- var t = WCe(e, "string");
+function cwe(e) {
+ var t = lwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function WCe(e, t) {
+function lwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58733,22 +58834,22 @@ function WCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function GCe(e, t, n) {
+function uwe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function KCe(e) {
+function dwe(e) {
return e.index != null;
}
-var mQ = (e, t, n, r) => {
- if (t == null) return aQ;
- var i = GCe(e, t, n);
- if (i == null) return aQ;
+var pQ = (e, t, n, r) => {
+ if (t == null) return iQ;
+ var i = uwe(e, t, n);
+ if (i == null) return iQ;
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 (KCe(i)) {
- if (a) return pQ(pQ({}, i), {}, { active: !0 });
+ if (dwe(i)) {
+ if (a) return fQ(fQ({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -58756,11 +58857,11 @@ var mQ = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return pQ(pQ({}, aQ), {}, { coordinate: i.coordinate });
+ return fQ(fQ({}, iQ), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function qCe(e) {
+function fwe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -58769,25 +58870,25 @@ function qCe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function JCe(e, t) {
- var n = qCe(e), r = t[0], i = t[1];
+function pwe(e, t) {
+ var n = fwe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function YCe(e, t, n) {
+function mwe(e, t, n) {
if (n == null || t == null) return !0;
- var r = LV(e, t);
- return r == null || !SK(n) || JCe(r, n);
+ var r = JV(e, t);
+ return r == null || !SK(n) || pwe(r, n);
}
-var hQ = (e, t, n, r) => {
+var mQ = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!AV(a)) return i;
+ if (!VV(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 || YCe(l, n, r) ? String(c) : null;
-}, gQ = (e, t, n, r, i, a, o) => {
+ return l == null || mwe(l, n, r) ? String(c) : null;
+}, hQ = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -58803,7 +58904,7 @@ var hQ = (e, t, n, r) => {
};
}
}
-}, _Q = (e, t, n, r) => {
+}, gQ = (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;
@@ -58813,10 +58914,10 @@ var hQ = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, vQ = (e) => e.options.tooltipPayloadSearcher, yQ = (e) => e.tooltip;
+}, _Q = (e) => e.options.tooltipPayloadSearcher, vQ = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function bQ(e, t) {
+function yQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58826,30 +58927,30 @@ function bQ(e, t) {
}
return n;
}
-function xQ(e) {
+function bQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? bQ(Object(n), !0).forEach(function(t) {
- XCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bQ(Object(n)).forEach(function(t) {
+ t % 2 ? yQ(Object(n), !0).forEach(function(t) {
+ hwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function XCe(e, t, n) {
- return (t = ZCe(t)) in e ? Object.defineProperty(e, t, {
+function hwe(e, t, n) {
+ return (t = gwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ZCe(e) {
- var t = QCe(e, "string");
+function gwe(e) {
+ var t = _we(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function QCe(e, t) {
+function _we(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58859,222 +58960,222 @@ function QCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function $Ce(e) {
+function vwe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function ewe(e) {
+function ywe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function twe(e) {
+function bwe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function SQ(e) {
+function xQ(e) {
if (typeof e == "string") return e;
}
-function nwe(e) {
+function xwe(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? $Ce(e.name) : void 0,
- unit: "unit" in e ? ewe(e.unit) : void 0,
- dataKey: "dataKey" in e ? twe(e.dataKey) : void 0,
+ name: "name" in e ? vwe(e.name) : void 0,
+ unit: "unit" in e ? ywe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? bwe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? SQ(e.color) : void 0,
- fill: "fill" in e ? SQ(e.fill) : void 0
+ color: "color" in e ? xQ(e.color) : void 0,
+ fill: "fill" in e ? xQ(e.fill) : void 0
};
}
-function rwe(e, t) {
+function Swe(e, t) {
return e ?? t;
}
-var CQ = (e, t, n, r, i, a, o) => {
+var SQ = (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 = rwe(d, s), m = Array.isArray(p) ? kV(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? kR(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = Swe(d, s), m = Array.isArray(p) ? BV(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? BR(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = nwe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = xQ(xQ({}, f), {}, {
+ var n = xwe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = bQ(bQ({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(tH({
+ e.push(fH({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: LV(a, i),
+ value: JV(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(tH({
+ }) : e.push(fH({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: LV(_, h),
- name: LV(_, g) ?? f?.name
+ value: JV(_, h),
+ name: JV(_, g) ?? f?.name
})), e;
}, []);
}
-}, wQ = $([
+}, CQ = $([
oZ,
WX,
BK
-], AX), TQ = $([
+], AX), wQ = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
oZ,
$([hq, gq], GX)
-], qX, { memoizeOptions: { resultEqualityCheck: mq } }), iwe = $([TQ], (e) => e.filter(fq)), EQ = $([$([TQ], ZX, { memoizeOptions: { resultEqualityCheck: mq } }), vK], QX), awe = $([
- iwe,
+], qX, { memoizeOptions: { resultEqualityCheck: mq } }), Cwe = $([wQ], (e) => e.filter(fq)), TQ = $([$([wQ], ZX, { memoizeOptions: { resultEqualityCheck: mq } }), vK], QX), wwe = $([
+ Cwe,
vK,
oZ
-], dq), DQ = $([
- EQ,
+], dq), EQ = $([
+ TQ,
oZ,
- TQ
-], eZ), OQ = $([oZ], dZ), kQ = $([OQ, $([oZ], (e) => e.allowDataOverflow)], wK), owe = $([
+ wQ
+], eZ), DQ = $([oZ], dZ), OQ = $([DQ, $([oZ], (e) => e.allowDataOverflow)], wK), Twe = $([
$([
- awe,
- $([TQ], (e) => e.filter(fq)),
+ wwe,
+ $([wQ], (e) => e.filter(fq)),
RK,
zK
], cZ),
vK,
hq,
- kQ
-], uZ), swe = $([
- EQ,
+ OQ
+], uZ), Ewe = $([
+ TQ,
oZ,
- $([TQ], XX),
+ $([wQ], XX),
mZ,
hq
-], gZ, { memoizeOptions: { resultEqualityCheck: pq } }), cwe = $([$([
+], gZ, { memoizeOptions: { resultEqualityCheck: pq } }), Dwe = $([$([
_Z,
hq,
gq
-], vZ), hq], xZ), lwe = $([$([
+], vZ), hq], xZ), Owe = $([$([
yZ,
hq,
gq
-], vZ), hq], SZ), AQ = $([
+], vZ), hq], SZ), kQ = $([
oZ,
- oU,
+ _U,
+ TQ,
EQ,
- DQ,
RK,
hq,
$([
oZ,
+ DQ,
OQ,
- kQ,
- owe,
- swe,
+ Twe,
+ Ewe,
$([
- cwe,
+ Dwe,
$([$([
bZ,
hq,
gq
], vZ), hq], CZ),
- lwe
+ Owe
], hZ),
- oU,
+ _U,
hq
], wZ)
-], TZ), uwe = $([
+], TZ), kwe = $([
oZ,
- AQ,
+ kQ,
$([
- AQ,
+ kQ,
oZ,
- wQ
+ CQ
], OZ),
hq
-], AZ), jQ = (e) => MZ(e, hq(e), gq(e), !1), MQ = $([oZ, jQ], qK), NQ = $([$([
+], AZ), AQ = (e) => MZ(e, hq(e), gq(e), !1), jQ = $([oZ, AQ], qK), MQ = $([$([
oZ,
- wQ,
- uwe,
- MQ
-], kX)], _q), PQ = $([
- oU,
+ CQ,
+ kwe,
+ jQ
+], kX)], _q), NQ = $([
+ _U,
oZ,
- wQ,
- NQ,
- jQ,
+ CQ,
+ MQ,
+ AQ,
$([
- oU,
- DQ,
+ _U,
+ EQ,
oZ,
hq
- ], KZ),
+ ], GZ),
$([
- oU,
- DQ,
+ _U,
+ EQ,
oZ,
hq
], FZ),
hq
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = zV(e, s);
+ var { type: c } = t, l = XV(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 ? xR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? MR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return AV(n) ? {
+ return VV(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(MR) : r.domain().map((e, t) => {
+ }).filter(UR) : r.domain().map((e, t) => {
var n = r.map(e);
- return AV(n) ? {
+ return VV(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(MR);
+ }).filter(UR);
}
}
-}), FQ = $([
+}), PQ = $([
+ $Z,
eQ,
- tQ,
- NCe
-], (e, t, n) => nQ(n.shared, e, t)), IQ = (e) => e.tooltip.settings.trigger, LQ = (e) => e.tooltip.settings.defaultIndex, RQ = $([
- yQ,
+ QCe
+], (e, t, n) => tQ(n.shared, e, t)), FQ = (e) => e.tooltip.settings.trigger, IQ = (e) => e.tooltip.settings.defaultIndex, LQ = $([
+ vQ,
+ PQ,
FQ,
- IQ,
- LQ
-], mQ), zQ = $([
- RQ,
- EQ,
+ IQ
+], pQ), RQ = $([
+ LQ,
+ TQ,
sZ,
- AQ
-], hQ), BQ = $([PQ, zQ], iQ), VQ = $([RQ], (e) => {
+ kQ
+], mQ), zQ = $([NQ, RQ], rQ), BQ = $([LQ], (e) => {
if (e) return e.dataKey;
-}), dwe = $([RQ], (e) => {
+}), Awe = $([LQ], (e) => {
if (e) return e.graphicalItemId;
-}), HQ = $([
- yQ,
+}), VQ = $([
+ vQ,
+ PQ,
FQ,
+ IQ
+], gQ), jwe = $([LQ, $([
+ gH,
+ _H,
+ _U,
+ NH,
+ NQ,
IQ,
- LQ
-], _Q), fwe = $([RQ, $([
- aH,
- oH,
- oU,
- SH,
- PQ,
- LQ,
- HQ
-], gQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), pwe = $([RQ], (e) => e?.active ?? !1), mwe = $([$([
- HQ,
- zQ,
+ VQ
+], hQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), Mwe = $([LQ], (e) => e?.active ?? !1), Nwe = $([$([
+ VQ,
+ RQ,
vK,
sZ,
- BQ,
- vQ,
- FQ
-], CQ)], (e) => {
+ zQ,
+ _Q,
+ PQ
+], SQ)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -59082,7 +59183,7 @@ var CQ = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function UQ(e, t) {
+function HQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59092,30 +59193,30 @@ function UQ(e, t) {
}
return n;
}
-function WQ(e) {
+function UQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? UQ(Object(n), !0).forEach(function(t) {
- hwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UQ(Object(n)).forEach(function(t) {
+ t % 2 ? HQ(Object(n), !0).forEach(function(t) {
+ Pwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hwe(e, t, n) {
- return (t = gwe(t)) in e ? Object.defineProperty(e, t, {
+function Pwe(e, t, n) {
+ return (t = Fwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gwe(e) {
- var t = _we(e, "string");
+function Fwe(e) {
+ var t = Iwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _we(e, t) {
+function Iwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59125,13 +59226,13 @@ function _we(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var vwe = () => Q(oZ), ywe = () => {
- var e = vwe(), t = Q(PQ), n = Q(NQ);
- return eH(!e || !n ? void 0 : WQ(WQ({}, e), {}, { scale: n }), t);
+var Lwe = () => Q(oZ), Rwe = () => {
+ var e = Lwe(), t = Q(NQ), n = Q(MQ);
+ return dH(!e || !n ? void 0 : UQ(UQ({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function GQ(e, t) {
+function WQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59141,30 +59242,30 @@ function GQ(e, t) {
}
return n;
}
-function KQ(e) {
+function GQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? GQ(Object(n), !0).forEach(function(t) {
- bwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GQ(Object(n)).forEach(function(t) {
+ t % 2 ? WQ(Object(n), !0).forEach(function(t) {
+ zwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bwe(e, t, n) {
- return (t = xwe(t)) in e ? Object.defineProperty(e, t, {
+function zwe(e, t, n) {
+ return (t = Bwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xwe(e) {
- var t = Swe(e, "string");
+function Bwe(e) {
+ var t = Vwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Swe(e, t) {
+function Vwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59174,7 +59275,7 @@ function Swe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Cwe = (e, t, n, r) => {
+var Hwe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -59190,18 +59291,18 @@ var Cwe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, wwe = (e, t, n, r) => {
+}, Uwe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return KQ(KQ(KQ({}, r), lK(r.cx, r.cy, o, a)), {}, {
+ return GQ(GQ(GQ({}, r), lK(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return KQ(KQ(KQ({}, r), lK(r.cx, r.cy, s, c)), {}, {
+ return GQ(GQ(GQ({}, r), lK(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -59220,19 +59321,19 @@ var Cwe = (e, t, n, r) => {
y: 0
};
};
-function Twe(e, t) {
+function Wwe(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 qQ = (e, t, n, r, i) => {
+var KQ = (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 (xR(c - s) !== xR(l - c)) {
+ if (MR(c - s) !== MR(l - c)) {
var d = [];
- if (xR(l - c) === xR(i[1] - i[0])) {
+ if (MR(l - c) === MR(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);
@@ -59257,78 +59358,78 @@ var qQ = (e, t, n, r, i) => {
}
}
return -1;
-}, JQ = () => Q(BK), YQ = (e, t) => t, XQ = (e, t, n) => n, ZQ = (e, t, n, r) => r, Ewe = $(PQ, (e) => wz(e, (e) => e.coordinate)), QQ = $([
- yQ,
+}, qQ = () => Q(BK), JQ = (e, t) => t, YQ = (e, t, n) => n, XQ = (e, t, n, r) => r, Gwe = $(NQ, (e) => Fz(e, (e) => e.coordinate)), ZQ = $([
+ vQ,
+ JQ,
YQ,
- XQ,
- ZQ
-], mQ), $Q = $([
- QQ,
- EQ,
+ XQ
+], pQ), QQ = $([
+ ZQ,
+ TQ,
sZ,
- AQ
-], hQ), Dwe = (e, t, n) => {
+ kQ
+], mQ), Kwe = (e, t, n) => {
if (t != null) {
- var r = yQ(e);
+ var r = vQ(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, e$ = $([
- yQ,
+}, $Q = $([
+ vQ,
+ JQ,
YQ,
+ XQ
+], gQ), e$ = $([
+ gH,
+ _H,
+ _U,
+ NH,
+ NQ,
XQ,
- ZQ
-], _Q), t$ = $([
- aH,
- oH,
- oU,
- SH,
- PQ,
- ZQ,
- e$
-], gQ), Owe = $([QQ, t$], (e, t) => e.coordinate ?? t), n$ = $([PQ, $Q], iQ), kwe = $([
- e$,
+ $Q
+], hQ), qwe = $([ZQ, e$], (e, t) => e.coordinate ?? t), t$ = $([NQ, QQ], rQ), Jwe = $([
$Q,
+ QQ,
vK,
sZ,
- n$,
- vQ,
- YQ
-], CQ), Awe = $([QQ, $Q], (e, t) => ({
+ t$,
+ _Q,
+ JQ
+], SQ), Ywe = $([ZQ, QQ], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), jwe = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && Twe(e, o)) {
- var s = qQ(rH(e, t), a, i, n, r), c = Cwe(t, i, s, e);
+})), Xwe = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && Wwe(e, o)) {
+ var s = KQ(mH(e, t), a, i, n, r), c = Hwe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, Mwe = (e, t, n, r, i, a, o) => {
+}, Zwe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = qye(e, n);
+ var s = dbe(e, n);
if (s) {
- var c = qQ(iH(s, t), o, a, r, i), l = wwe(t, a, c, s);
+ var c = KQ(hH(s, t), o, a, r, i), l = Uwe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, Nwe = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? jwe(e, t, r, i, a, o, s) : Mwe(e, t, n, r, i, a, o);
-}, Pwe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, Qwe = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? Xwe(e, t, r, i, a, o, s) : Zwe(e, t, n, r, i, a, o);
+}, $we = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), Fwe = $((e) => e.zIndex.zIndexMap, (e) => {
+}), eTe = $((e) => e.zIndex.zIndexMap, (e) => {
var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(WK));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: mbe } });
+}, { memoizeOptions: { resultEqualityCheck: Mbe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function r$(e, t) {
+function n$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59338,30 +59439,30 @@ function r$(e, t) {
}
return n;
}
-function i$(e) {
+function r$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? r$(Object(n), !0).forEach(function(t) {
- Iwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r$(Object(n)).forEach(function(t) {
+ t % 2 ? n$(Object(n), !0).forEach(function(t) {
+ tTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Iwe(e, t, n) {
- return (t = Lwe(t)) in e ? Object.defineProperty(e, t, {
+function tTe(e, t, n) {
+ return (t = nTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Lwe(e) {
- var t = Rwe(e, "string");
+function nTe(e) {
+ var t = rTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Rwe(e, t) {
+function rTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59371,17 +59472,17 @@ function Rwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zwe = { zIndexMap: Object.values(WK).reduce((e, t) => i$(i$({}, e), {}, { [t]: {
+var iTe = { zIndexMap: Object.values(WK).reduce((e, t) => r$(r$({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, Bwe = new Set(Object.values(WK));
-function Vwe(e) {
- return Bwe.has(e);
+} }), {}) }, aTe = new Set(Object.values(WK));
+function oTe(e) {
+ return aTe.has(e);
}
-var a$ = tV({
+var i$ = fV({
name: "zIndex",
- initialState: zwe,
+ initialState: iTe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -59392,61 +59493,61 @@ var a$ = tV({
panoramaElement: void 0
};
},
- prepare: ZB()
+ prepare: cV()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !Vwe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !oTe(n) && delete e.zIndexMap[n]);
},
- prepare: ZB()
+ prepare: cV()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = cW(r) : e.zIndexMap[n].element = cW(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = yW(r) : e.zIndexMap[n].element = yW(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : cW(r),
- panoramaElement: i ? cW(r) : void 0
+ element: i ? void 0 : yW(r),
+ panoramaElement: i ? yW(r) : void 0
};
},
- prepare: ZB()
+ prepare: cV()
},
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: ZB()
+ prepare: cV()
}
}
-}), { registerZIndexPortal: Hwe, unregisterZIndexPortal: Uwe, registerZIndexPortalElement: Wwe, unregisterZIndexPortalElement: Gwe } = a$.actions, Kwe = a$.reducer;
+}), { registerZIndexPortal: sTe, unregisterZIndexPortal: cTe, registerZIndexPortalElement: lTe, unregisterZIndexPortalElement: uTe } = i$.actions, dTe = i$.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function o$(e) {
- var { zIndex: t, children: n } = e, r = dU() && t !== void 0 && t !== 0, i = EH(), a = gz();
- (0, L.useLayoutEffect)(() => r ? (a(Hwe({ zIndex: t })), () => {
- a(Uwe({ zIndex: t }));
- }) : NR, [
+function a$(e) {
+ var { zIndex: t, children: n } = e, r = SU() && t !== void 0 && t !== 0, i = LH(), a = Dz();
+ (0, L.useLayoutEffect)(() => r ? (a(sTe({ zIndex: t })), () => {
+ a(cTe({ zIndex: t }));
+ }) : WR, [
a,
t,
r
]);
- var o = Q((e) => Pwe(e, t, i));
+ var o = Q((e) => $we(e, t, i));
return r ? o ? /*#__PURE__*/ (0, Re.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function s$() {
- return s$ = Object.assign ? Object.assign.bind() : function(e) {
+function o$() {
+ return o$ = 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;
- }, s$.apply(null, arguments);
+ }, o$.apply(null, arguments);
}
-function c$(e, t) {
+function s$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59456,30 +59557,30 @@ function c$(e, t) {
}
return n;
}
-function l$(e) {
+function c$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? c$(Object(n), !0).forEach(function(t) {
- qwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c$(Object(n)).forEach(function(t) {
+ t % 2 ? s$(Object(n), !0).forEach(function(t) {
+ fTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qwe(e, t, n) {
- return (t = Jwe(t)) in e ? Object.defineProperty(e, t, {
+function fTe(e, t, n) {
+ return (t = pTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jwe(e) {
- var t = Ywe(e, "string");
+function pTe(e) {
+ var t = mTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ywe(e, t) {
+function mTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59489,17 +59590,17 @@ function Ywe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Xwe(e) {
+function hTe(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, L.isValidElement)(t) ? /*#__PURE__*/ (0, L.cloneElement)(t, r) : /*#__PURE__*/ (0, L.createElement)(n, r);
}
-function Zwe(e) {
+function gTe(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 = Zve, h = WK.cursorLine;
- else if (l === "BarChart") p = Qve(o, u, i, a), m = iK, h = WK.cursorRectangle;
- else if (o === "radial" && zR(u)) {
+ if (l === "ScatterChart") p = u, m = hye, h = WK.cursorLine;
+ else if (l === "BarChart") p = gye(o, u, i, a), m = iK, h = WK.cursorRectangle;
+ else if (o === "radial" && XR(u)) {
var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = uK(u);
p = {
cx: g,
@@ -59509,24 +59610,24 @@ function Zwe(e) {
innerRadius: v,
outerRadius: v
}, m = hK, h = WK.cursorLine;
- } else p = { points: ibe(o, u, i) }, m = jG, h = WK.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = l$(l$(l$(l$({
+ } else p = { points: Sbe(o, u, i) }, m = jG, h = WK.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = c$(c$(c$(c$({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), mL(s)), {}, {
+ }, i), p), TL(s)), {}, {
payload: d,
payloadIndex: f,
className: Au("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ L.createElement(o$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ L.createElement(Xwe, {
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ L.createElement(hTe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function Qwe(e) {
- var t = ywe(), n = nU(), r = sU(), i = JQ();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ L.createElement(Zwe, s$({}, e, {
+function _Te(e) {
+ var t = Rwe(), n = pU(), r = vU(), i = qQ();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ L.createElement(gTe, o$({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -59535,7 +59636,7 @@ function Qwe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var u$ = /*#__PURE__*/ (0, L.createContext)(null), $we = () => (0, L.useContext)(u$), eTe = (/* @__PURE__ */ Oe((/* @__PURE__ */ Te(((e, t) => {
+var l$ = /*#__PURE__*/ (0, L.createContext)(null), vTe = () => (0, L.useContext)(l$), yTe = (/* @__PURE__ */ Oe((/* @__PURE__ */ Te(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -59622,12 +59723,12 @@ var u$ = /*#__PURE__*/ (0, L.createContext)(null), $we = () => (0, L.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, d$ = new eTe(), f$ = "recharts.syncEvent.tooltip", p$ = "recharts.syncEvent.brush", m$ = (e, t) => {
+})))(), 1)).default, u$ = new yTe(), d$ = "recharts.syncEvent.tooltip", f$ = "recharts.syncEvent.brush", p$ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!SR(n)) return e[n];
+ if (!NR(n)) return e[n];
}
-}, h$ = tV({
+}, m$ = fV({
name: "options",
initialState: {
chartName: "",
@@ -59638,13 +59739,13 @@ var u$ = /*#__PURE__*/ (0, L.createContext)(null), $we = () => (0, L.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), tTe = h$.reducer, { createEventEmitter: nTe } = h$.actions;
+}), bTe = m$.reducer, { createEventEmitter: xTe } = m$.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function rTe(e) {
+function STe(e) {
return e.tooltip.syncInteraction;
}
-var g$ = tV({
+var h$ = fV({
name: "chartData",
initialState: {
chartData: void 0,
@@ -59654,7 +59755,7 @@ var g$ = tV({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = cW(t.payload), t.payload == null) {
+ if (e.chartData = yW(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -59668,8 +59769,8 @@ var g$ = tV({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: _$, setDataStartEndIndexes: iTe, setComputedData: aTe } = g$.actions, oTe = g$.reducer, sTe = ["x", "y"];
-function v$(e, t) {
+}), { setChartData: g$, setDataStartEndIndexes: CTe, setComputedData: wTe } = h$.actions, TTe = h$.reducer, ETe = ["x", "y"];
+function _$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59679,30 +59780,30 @@ function v$(e, t) {
}
return n;
}
-function y$(e) {
+function v$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? v$(Object(n), !0).forEach(function(t) {
- cTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v$(Object(n)).forEach(function(t) {
+ t % 2 ? _$(Object(n), !0).forEach(function(t) {
+ DTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cTe(e, t, n) {
- return (t = lTe(t)) in e ? Object.defineProperty(e, t, {
+function DTe(e, t, n) {
+ return (t = OTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lTe(e) {
- var t = uTe(e, "string");
+function OTe(e) {
+ var t = kTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uTe(e, t) {
+function kTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59712,16 +59813,16 @@ function uTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function dTe(e, t) {
+function ATe(e, t) {
if (e == null) return {};
- var n, r, i = fTe(e, t);
+ var n, r, i = jTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function fTe(e, t) {
+function jTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59730,20 +59831,20 @@ function fTe(e, t) {
}
return n;
}
-function pTe() {
- var e = Q(VK), t = Q(UK), n = gz(), r = Q(HK), i = Q(PQ), a = sU(), o = eU(), s = Q((e) => e.rootProps.className);
+function MTe() {
+ var e = Q(VK), t = Q(UK), n = Dz(), r = Q(HK), i = Q(NQ), a = vU(), o = dU(), s = Q((e) => e.rootProps.className);
(0, L.useEffect)(() => {
- if (e == null) return NR;
+ if (e == null) return WR;
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 = dTe(d, sTe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = y$(y$({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = ATe(d, ETe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = v$(v$({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(y$(y$({}, c), {}, { payload: y$(y$({}, c.payload), {}, { coordinate: y }) }));
+ n(v$(v$({}, c), {}, { payload: v$(v$({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -59759,7 +59860,7 @@ function pTe() {
})] : 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(uQ({
+ n(lQ({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -59774,7 +59875,7 @@ function pTe() {
x: a === "horizontal" ? b.coordinate : w,
y: a === "horizontal" ? T : b.coordinate
};
- n(uQ({
+ n(lQ({
active: c.payload.active,
coordinate: E,
dataKey: c.payload.dataKey,
@@ -59786,8 +59887,8 @@ function pTe() {
}
}
};
- return d$.on(f$, s), () => {
- d$.off(f$, s);
+ return u$.on(d$, s), () => {
+ u$.off(d$, s);
};
}, [
s,
@@ -59800,15 +59901,15 @@ function pTe() {
o
]);
}
-function mTe() {
- var e = Q(VK), t = Q(UK), n = gz();
+function NTe() {
+ var e = Q(VK), t = Q(UK), n = Dz();
(0, L.useEffect)(() => {
- if (e == null) return NR;
+ if (e == null) return WR;
var r = (r, i, a) => {
- t !== a && e === r && n(iTe(i));
+ t !== a && e === r && n(CTe(i));
};
- return d$.on(p$, r), () => {
- d$.off(p$, r);
+ return u$.on(f$, r), () => {
+ u$.off(f$, r);
};
}, [
n,
@@ -59816,17 +59917,17 @@ function mTe() {
e
]);
}
-function hTe() {
- var e = gz();
+function PTe() {
+ var e = Dz();
(0, L.useEffect)(() => {
- e(nTe());
- }, [e]), pTe(), mTe();
+ e(xTe());
+ }, [e]), MTe(), NTe();
}
-function gTe(e, t, n, r, i, a) {
- var o = Q((n) => Dwe(n, e, t)), s = Q(dwe), c = Q(UK), l = Q(VK), u = Q(HK), d = Q(rTe)?.active, f = eU();
+function FTe(e, t, n, r, i, a) {
+ var o = Q((n) => Kwe(n, e, t)), s = Q(Awe), c = Q(UK), l = Q(VK), u = Q(HK), d = Q(STe)?.active, f = dU();
(0, L.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = uQ({
+ var e = lQ({
active: a,
coordinate: n,
dataKey: o,
@@ -59835,7 +59936,7 @@ function gTe(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- d$.emit(f$, l, e, c);
+ u$.emit(d$, l, e, c);
}
}, [
d,
@@ -59853,7 +59954,7 @@ function gTe(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function b$(e, t) {
+function y$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59863,30 +59964,30 @@ function b$(e, t) {
}
return n;
}
-function x$(e) {
+function b$(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) {
- _Te(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b$(Object(n)).forEach(function(t) {
+ t % 2 ? y$(Object(n), !0).forEach(function(t) {
+ ITe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function _Te(e, t, n) {
- return (t = vTe(t)) in e ? Object.defineProperty(e, t, {
+function ITe(e, t, n) {
+ return (t = LTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vTe(e) {
- var t = yTe(e, "string");
+function LTe(e) {
+ var t = RTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yTe(e, t) {
+function RTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59896,13 +59997,13 @@ function yTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function bTe(e) {
+function zTe(e) {
return e.dataKey;
}
-function xTe(e, t) {
- return /*#__PURE__*/ L.isValidElement(e) ? /*#__PURE__*/ L.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ L.createElement(e, t) : /*#__PURE__*/ L.createElement(cG, t);
+function BTe(e, t) {
+ return /*#__PURE__*/ L.isValidElement(e) ? /*#__PURE__*/ L.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ L.createElement(e, t) : /*#__PURE__*/ L.createElement(Gve, t);
}
-var S$ = [], STe = {
+var x$ = [], VTe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -59928,10 +60029,10 @@ var S$ = [], STe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function CTe(e) {
- var t = UR(e, STe), { 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 = gz(), S = typeof v == "number" ? String(v) : v;
+function HTe(e) {
+ var t = ez(e, VTe), { 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 = Dz(), S = typeof v == "number" ? String(v) : v;
(0, L.useEffect)(() => {
- x(LCe({
+ x(nwe({
shared: g,
trigger: _,
axisId: b,
@@ -59946,20 +60047,20 @@ function CTe(e) {
n,
S
]);
- var C = eU(), w = xG(), T = MCe(g), { activeIndex: E, isActive: D } = Q((e) => Awe(e, T, _, S)) ?? {}, O = Q((e) => kwe(e, T, _, S)), k = Q((e) => n$(e, T, _, S)), A = Q((e) => Owe(e, T, _, S)), j = O, M = $we(), N = n ?? D ?? !1, [ee, te] = Dz([j, N]), P = T === "axis" ? k : void 0;
- gTe(T, _, A, P, E, N);
+ var C = dU(), w = xG(), T = ZCe(g), { activeIndex: E, isActive: D } = Q((e) => Ywe(e, T, _, S)) ?? {}, O = Q((e) => Jwe(e, T, _, S)), k = Q((e) => t$(e, T, _, S)), A = Q((e) => qwe(e, T, _, S)), j = O, M = vTe(), N = n ?? D ?? !1, [ee, te] = Rz([j, N]), P = T === "axis" ? k : void 0;
+ FTe(T, _, A, P, E, N);
var F = y ?? M;
if (F == null || C == null || T == null) return null;
- var ne = j ?? S$;
- N || (ne = S$), s && ne.length && (ne = mz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, bTe));
- var re = ne.length > 0, ie = x$(x$({}, t), {}, {
+ var ne = j ?? x$;
+ N || (ne = x$), s && ne.length && (ne = Tz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, zTe));
+ var re = ne.length > 0, ie = b$(b$({}, t), {}, {
payload: ne,
label: P,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ae = /*#__PURE__*/ L.createElement(Lve, {
+ }), ae = /*#__PURE__*/ L.createElement(tye, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -59976,8 +60077,8 @@ function CTe(e) {
lastBoundingBox: ee,
innerRef: te,
hasPortalFromProps: !!y
- }, xTe(o, ie));
- return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ (0, Re.createPortal)(ae, F), N && /*#__PURE__*/ L.createElement(Qwe, {
+ }, BTe(o, ie));
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ (0, Re.createPortal)(ae, F), N && /*#__PURE__*/ L.createElement(_Te, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -59987,23 +60088,23 @@ function CTe(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var C$ = (e) => null;
-C$.displayName = "Cell";
+var S$ = (e) => null;
+S$.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function wTe(e, t, n) {
- return (t = TTe(t)) in e ? Object.defineProperty(e, t, {
+function UTe(e, t, n) {
+ return (t = WTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TTe(e) {
- var t = ETe(e, "string");
+function WTe(e) {
+ var t = GTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ETe(e, t) {
+function GTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60013,9 +60114,9 @@ function ETe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var DTe = class {
+var C$ = class {
constructor(e) {
- wTe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ UTe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -60048,30 +60149,30 @@ function w$(e, t) {
}
return n;
}
-function OTe(e) {
+function KTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? w$(Object(n), !0).forEach(function(t) {
- kTe(e, t, n[t]);
+ qTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kTe(e, t, n) {
- return (t = ATe(t)) in e ? Object.defineProperty(e, t, {
+function qTe(e, t, n) {
+ return (t = JTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ATe(e) {
- var t = jTe(e, "string");
+function JTe(e) {
+ var t = YTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jTe(e, t) {
+function YTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60081,10 +60182,10 @@ function jTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var T$ = OTe({}, {
+var T$ = KTe({}, {
cacheSize: 2e3,
enableCache: !0
-}), E$ = new DTe(T$.cacheSize), MTe = {
+}), E$ = new C$(T$.cacheSize), XTe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -60093,13 +60194,13 @@ var T$ = OTe({}, {
border: "none",
whiteSpace: "pre"
}, D$ = "recharts_measurement_span";
-function NTe(e, t) {
+function ZTe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
var O$ = (e, t) => {
try {
var n = document.getElementById(D$);
- n || (n = document.createElement("span"), n.setAttribute("id", D$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, MTe, t), n.textContent = `${e}`;
+ n || (n = document.createElement("span"), n.setAttribute("id", D$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, XTe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -60113,29 +60214,29 @@ var O$ = (e, t) => {
}
}, k$ = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || hG.isSsr) return {
+ if (e == null || _G.isSsr) return {
width: 0,
height: 0
};
if (!T$.enableCache) return O$(e, t);
- var n = NTe(e, t), r = E$.get(n);
+ var n = ZTe(e, t), r = E$.get(n);
if (r) return r;
var i = O$(e, t);
return E$.set(n, i), i;
}, A$;
-function PTe(e, t, n) {
- return (t = FTe(t)) in e ? Object.defineProperty(e, t, {
+function QTe(e, t, n) {
+ return (t = $Te(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FTe(e) {
- var t = ITe(e, "string");
+function $Te(e) {
+ var t = eEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ITe(e, t) {
+function eEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60145,7 +60246,7 @@ function ITe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var j$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, M$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, LTe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, RTe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, zTe = {
+var j$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, M$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, tEe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, nEe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, rEe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -60153,7 +60254,7 @@ var j$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, M$ = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, BTe = [
+}, iEe = [
"cm",
"mm",
"pt",
@@ -60162,20 +60263,20 @@ var j$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, M$ = /(
"Q",
"px"
];
-function VTe(e) {
- return BTe.includes(e);
+function aEe(e) {
+ return iEe.includes(e);
}
var N$ = "NaN";
-function HTe(e, t) {
- return e * zTe[t];
+function oEe(e, t) {
+ return e * rEe[t];
}
var P$ = class e {
static parse(t) {
- var [, n, r] = RTe.exec(t) ?? [];
+ var [, n, r] = nEe.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, SR(e) && (this.unit = ""), t !== "" && !LTe.test(t) && (this.num = NaN, this.unit = ""), VTe(t) && (this.num = HTe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, NR(e) && (this.unit = ""), t !== "" && !tEe.test(t) && (this.num = NaN, this.unit = ""), aEe(t) && (this.num = oEe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -60193,10 +60294,10 @@ var P$ = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return SR(this.num);
+ return NR(this.num);
}
};
-A$ = P$, PTe(P$, "NaN", new A$(NaN, ""));
+A$ = P$, QTe(P$, "NaN", new A$(NaN, ""));
function F$(e) {
if (e == null || e.includes(N$)) return N$;
for (var t = e; t.includes("*") || t.includes("/");) {
@@ -60212,31 +60313,31 @@ function F$(e) {
return t;
}
var I$ = /\(([^()]*)\)/;
-function UTe(e) {
+function sEe(e) {
for (var t = e, n; (n = I$.exec(t)) != null;) {
var [, r] = n;
t = t.replace(I$, F$(r));
}
return t;
}
-function WTe(e) {
+function cEe(e) {
var t = e.replace(/\s+/g, "");
- return t = UTe(t), t = F$(t), t;
+ return t = sEe(t), t = F$(t), t;
}
-function GTe(e) {
+function lEe(e) {
try {
- return WTe(e);
+ return cEe(e);
} catch {
return N$;
}
}
function L$(e) {
- var t = GTe(e.slice(5, -1));
+ var t = lEe(e.slice(5, -1));
return t === N$ ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var KTe = [
+var uEe = [
"x",
"y",
"lineHeight",
@@ -60245,7 +60346,7 @@ var KTe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], qTe = [
+], dEe = [
"dx",
"dy",
"angle",
@@ -60263,14 +60364,14 @@ function R$() {
}
function z$(e, t) {
if (e == null) return {};
- var n, r, i = JTe(e, t);
+ var n, r, i = fEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function JTe(e, t) {
+function fEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60283,7 +60384,7 @@ var B$ = /[ \f\n\r\t\v\u2028\u2029]+/, V$ = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return AR(t) || (i = n ? t.toString().split("") : t.toString().split(B$)), {
+ return VR(t) || (i = n ? t.toString().split("") : t.toString().split(B$)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
width: k$(e, r).width
@@ -60297,8 +60398,8 @@ var B$ = /[ \f\n\r\t\v\u2028\u2029]+/, V$ = (e) => {
function H$(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function YTe(e) {
- return AR(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function pEe(e) {
+ return VR(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var U$ = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
@@ -60311,16 +60412,16 @@ var U$ = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), W$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), XTe = "…", G$ = (e, t, n, r, i, a, o, s) => {
+}, []), W$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), mEe = "…", G$ = (e, t, n, r, i, a, o, s) => {
var c = V$({
breakAll: n,
style: r,
- children: e.slice(0, t) + XTe
+ children: e.slice(0, t) + mEe
});
if (!c) return [!1, []];
var l = U$(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || W$(l).width > Number(a), l];
-}, ZTe = (e, t, n, r, i) => {
+}, hEe = (e, t, n, r, i) => {
var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = U$(t, r, n, i);
if (!l || i || !(d.length > a || W$(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
@@ -60333,11 +60434,11 @@ var U$ = (e, t, n, r) => e.reduce((e, i) => {
}
return h || d;
}, K$ = (e) => [{
- words: AR(e) ? [] : e.toString().split(B$),
+ words: VR(e) ? [] : e.toString().split(B$),
width: void 0
-}], QTe = (e) => {
+}], gEe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !hG.isSsr) {
+ if ((t || n) && !_G.isSsr) {
var s, c, l = V$({
breakAll: a,
children: r,
@@ -60347,7 +60448,7 @@ var U$ = (e, t, n, r) => e.reduce((e, i) => {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
} else return K$(r);
- return ZTe({
+ return hEe({
breakAll: a,
children: r,
maxLines: o,
@@ -60355,7 +60456,7 @@ var U$ = (e, t, n, r) => e.reduce((e, i) => {
}, s, c, t, !!n);
}
return K$(r);
-}, q$ = "#808080", $Te = {
+}, q$ = "#808080", _Ee = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
@@ -60367,7 +60468,7 @@ var U$ = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, J$ = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var n = UR(e, $Te), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = z$(n, KTe), f = (0, L.useMemo)(() => QTe({
+ var n = ez(e, _Ee), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = z$(n, uEe), f = (0, L.useMemo)(() => gEe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -60381,10 +60482,10 @@ var U$ = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = z$(d, qTe);
- if (!wR(r) || !wR(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = z$(d, dEe);
+ if (!FR(r) || !FR(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!AV(y) || !AV(b)) return null;
+ if (!VV(y) || !VV(b)) return null;
var x;
switch (u) {
case "start":
@@ -60400,7 +60501,7 @@ var U$ = (e, t, n, r) => e.reduce((e, i) => {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ L.createElement("text", R$({}, hL(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ L.createElement("text", R$({}, EL(v), {
ref: t,
x: y,
y: b,
@@ -60433,26 +60534,26 @@ function X$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Y$(Object(n), !0).forEach(function(t) {
- eEe(e, t, n[t]);
+ vEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eEe(e, t, n) {
- return (t = tEe(t)) in e ? Object.defineProperty(e, t, {
+function vEe(e, t, n) {
+ return (t = yEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tEe(e) {
- var t = nEe(e, "string");
+function yEe(e) {
+ var t = bEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nEe(e, t) {
+function bEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60462,8 +60563,8 @@ function nEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rEe = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = $H(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 xEe = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = uU(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,
@@ -60544,9 +60645,9 @@ var rEe = (e) => {
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || CR(n.x)) && (Z(n.y) || CR(n.y)) ? X$({
- x: o + ER(n.x, m),
- y: s + ER(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || PR(n.x)) && (Z(n.y) || PR(n.y)) ? X$({
+ x: o + LR(n.x, m),
+ y: s + LR(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
}, k) : X$({
@@ -60555,17 +60656,17 @@ var rEe = (e) => {
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, iEe = ["labelRef"], aEe = ["content"];
+}, SEe = ["labelRef"], CEe = ["content"];
function Z$(e, t) {
if (e == null) return {};
- var n, r, i = oEe(e, t);
+ var n, r, i = wEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function oEe(e, t) {
+function wEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60588,26 +60689,26 @@ function $$(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) {
- sEe(e, t, n[t]);
+ TEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sEe(e, t, n) {
- return (t = cEe(t)) in e ? Object.defineProperty(e, t, {
+function TEe(e, t, n) {
+ return (t = EEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cEe(e) {
- var t = lEe(e, "string");
+function EEe(e) {
+ var t = DEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lEe(e, t) {
+function DEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60644,9 +60745,9 @@ var t1 = /*#__PURE__*/ (0, L.createContext)(null), n1 = (e) => {
]);
return /*#__PURE__*/ L.createElement(t1.Provider, { value: c }, s);
}, r1 = () => {
- var e = (0, L.useContext)(t1), t = eU();
- return e || (t ? $H(t) : void 0);
-}, i1 = /*#__PURE__*/ (0, L.createContext)(null), uEe = (e) => {
+ var e = (0, L.useContext)(t1), t = dU();
+ return e || (t ? uU(t) : void 0);
+}, i1 = /*#__PURE__*/ (0, L.createContext)(null), OEe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, L.useMemo)(() => ({
cx: t,
cy: n,
@@ -60668,11 +60769,11 @@ var t1 = /*#__PURE__*/ (0, L.createContext)(null), n1 = (e) => {
}, a1 = () => {
var e = (0, L.useContext)(i1), t = Q(sq);
return e || t;
-}, dEe = (e) => {
- var { value: t, formatter: n } = e, r = AR(e.children) ? t : e.children;
+}, kEe = (e) => {
+ var { value: t, formatter: n } = e, r = VR(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, o1 = (e) => e != null && typeof e == "function", fEe = (e, t) => xR(t - e) * Math.min(Math.abs(t - e), 360), pEe = (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 = fEe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, o1 = (e) => e != null && typeof e == "function", AEe = (e, t) => MR(t - e) * Math.min(Math.abs(t - e), 360), jEe = (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 = AEe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -60688,7 +60789,7 @@ var t1 = /*#__PURE__*/ (0, L.createContext)(null), n1 = (e) => {
v = h <= 0 ? v : !v;
var y = lK(s, c, m, _), b = lK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = AR(e.id) ? TR("recharts-radial-line-") : e.id;
+ ${b.x},${b.y}`, S = VR(e.id) ? IR("recharts-radial-line-") : e.id;
return /*#__PURE__*/ L.createElement("text", e1({}, r, {
dominantBaseline: "central",
className: Au("recharts-radial-bar-label", o)
@@ -60696,7 +60797,7 @@ var t1 = /*#__PURE__*/ (0, L.createContext)(null), n1 = (e) => {
id: S,
d: x
})), /*#__PURE__*/ L.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, mEe = (e, t, n) => {
+}, MEe = (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 } = lK(r, i, o + t, l);
@@ -60732,14 +60833,14 @@ var t1 = /*#__PURE__*/ (0, L.createContext)(null), n1 = (e) => {
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, s1 = (e) => e != null && "cx" in e && Z(e.cx), hEe = {
+}, s1 = (e) => e != null && "cx" in e && Z(e.cx), NEe = {
angle: 0,
offset: 5,
zIndex: WK.label,
position: "middle",
textBreakAll: !1
};
-function gEe(e) {
+function PEe(e) {
if (!s1(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
@@ -60752,24 +60853,24 @@ function gEe(e) {
};
}
function c1(e) {
- var t = UR(e, hEe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = a1(), f = r1(), p = n == null ? i === "center" ? f : d ?? f : s1(n) ? n : $H(n), m, h, g = gEe(p);
- if (!p || AR(a) && AR(o) && !/*#__PURE__*/ (0, L.isValidElement)(s) && typeof s != "function") return null;
+ var t = ez(e, NEe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = a1(), f = r1(), p = n == null ? i === "center" ? f : d ?? f : s1(n) ? n : uU(n), m, h, g = PEe(p);
+ if (!p || VR(a) && VR(o) && !/*#__PURE__*/ (0, L.isValidElement)(s) && typeof s != "function") return null;
var _ = $$($$({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, L.isValidElement)(s)) {
- var { labelRef: v } = _, y = Z$(_, iEe);
+ var { labelRef: v } = _, y = Z$(_, SEe);
return /*#__PURE__*/ (0, L.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = Z$(_, aEe);
+ var { content: b } = _, x = Z$(_, CEe);
if (m = /*#__PURE__*/ (0, L.createElement)(s, x), /*#__PURE__*/ (0, L.isValidElement)(m)) return m;
- } else m = dEe(t);
- var S = hL(t);
+ } else m = kEe(t);
+ var S = EL(t);
if (s1(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return pEe(t, i, m, S, p);
- h = mEe(p, t.offset, t.position);
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return jEe(t, i, m, S, p);
+ h = MEe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = rEe({
+ var C = xEe({
viewBox: g,
position: i,
offset: t.offset,
@@ -60783,7 +60884,7 @@ function c1(e) {
verticalAnchor: C.verticalAnchor
}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });
}
- return /*#__PURE__*/ L.createElement(o$, { zIndex: t.zIndex }, /*#__PURE__*/ L.createElement(J$, e1({
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: t.zIndex }, /*#__PURE__*/ L.createElement(J$, e1({
ref: u,
className: Au("recharts-label", c)
}, S, h, {
@@ -60798,7 +60899,7 @@ var l1 = (e, t, n) => {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ L.createElement(c1, e1({ key: "label-implicit" }, r)) : wR(e) ? /*#__PURE__*/ L.createElement(c1, e1({
+ return e === !0 ? /*#__PURE__*/ L.createElement(c1, e1({ key: "label-implicit" }, r)) : FR(e) ? /*#__PURE__*/ L.createElement(c1, e1({
key: "label-implicit",
value: e
}, r)) : /*#__PURE__*/ (0, L.isValidElement)(e) ? e.type === c1 ? /*#__PURE__*/ (0, L.cloneElement)(e, $$({ key: "label-implicit" }, r)) : /*#__PURE__*/ L.createElement(c1, e1({
@@ -60813,13 +60914,13 @@ function u1(e) {
var { label: t, labelRef: n } = e;
return l1(t, r1(), n) || null;
}
-function _Ee(e) {
+function FEe(e) {
var { label: t } = e;
return l1(t, a1()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var vEe = ["valueAccessor"], yEe = [
+var IEe = ["valueAccessor"], LEe = [
"dataKey",
"clockWise",
"id",
@@ -60837,14 +60938,14 @@ function d1() {
}
function f1(e, t) {
if (e == null) return {};
- var n, r, i = bEe(e, t);
+ var n, r, i = REe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function bEe(e, t) {
+function REe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60853,21 +60954,21 @@ function bEe(e, t) {
}
return n;
}
-var xEe = (e) => {
+var zEe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (YTe(t)) return t;
-}, p1 = /*#__PURE__*/ (0, L.createContext)(void 0), m1 = p1.Provider, h1 = /*#__PURE__*/ (0, L.createContext)(void 0), SEe = h1.Provider;
-function CEe() {
+ if (pEe(t)) return t;
+}, p1 = /*#__PURE__*/ (0, L.createContext)(void 0), m1 = p1.Provider, h1 = /*#__PURE__*/ (0, L.createContext)(void 0), BEe = h1.Provider;
+function VEe() {
return (0, L.useContext)(p1);
}
-function wEe() {
+function HEe() {
return (0, L.useContext)(h1);
}
function g1(e) {
- var { valueAccessor: t = xEe } = e, n = f1(e, vEe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = f1(n, yEe), l = CEe(), u = wEe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ L.createElement(o$, { zIndex: s ?? WK.label }, /*#__PURE__*/ L.createElement(yL, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = AR(r) ? t(e, i) : LV(e.payload, r), l = AR(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ L.createElement(c1, d1({ key: `label-${i}` }, hL(e), c, l, {
+ var { valueAccessor: t = zEe } = e, n = f1(e, IEe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = f1(n, LEe), l = VEe(), u = HEe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ L.createElement(a$, { zIndex: s ?? WK.label }, /*#__PURE__*/ L.createElement(AL, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = VR(r) ? t(e, i) : JV(e.payload, r), l = VR(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ L.createElement(c1, d1({ key: `label-${i}` }, EL(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -60888,12 +60989,12 @@ function _1(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var TEe = [
+var UEe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], EEe;
+], WEe;
function v1() {
return v1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -60903,16 +61004,16 @@ function v1() {
return e;
}, v1.apply(null, arguments);
}
-function DEe(e, t) {
+function GEe(e, t) {
if (e == null) return {};
- var n, r, i = OEe(e, t);
+ var n, r, i = KEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function OEe(e, t) {
+function KEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60921,10 +61022,10 @@ function OEe(e, t) {
}
return n;
}
-function kEe(e, t) {
+function qEe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var y1 = (e) => e != null && e.x === +e.x && e.y === +e.y, AEe = function() {
+var y1 = (e) => e != null && e.x === +e.x && e.y === +e.y, JEe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
@@ -60935,9 +61036,9 @@ var y1 = (e) => e != null && e.x === +e.x && e.y === +e.y, AEe = function() {
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
}, b1 = (e, t) => {
- var n = AEe(e);
+ var n = JEe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => bR(EEe ||= kEe([
+ var r = n.map((e) => e.reduce((e, t, n) => jR(WEe ||= qEe([
"",
"",
"",
@@ -60945,29 +61046,29 @@ var y1 = (e) => e != null && e.x === +e.x && e.y === +e.y, AEe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, jEe = (e, t, n) => {
+}, YEe = (e, t, n) => {
var r = b1(e, n);
return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${b1(Array.from(t).reverse(), n).slice(1)}`;
}, x1 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = DEe(e, TEe);
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = GEe(e, UEe);
if (!t || !t.length) return null;
var o = Au("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = jEe(t, r, i);
- return /*#__PURE__*/ L.createElement("g", { className: o }, /*#__PURE__*/ L.createElement("path", v1({}, hL(a), {
+ var s = a.stroke && a.stroke !== "none", c = YEe(t, r, i);
+ return /*#__PURE__*/ L.createElement("g", { className: o }, /*#__PURE__*/ L.createElement("path", v1({}, EL(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ L.createElement("path", v1({}, hL(a), {
+ })), s ? /*#__PURE__*/ L.createElement("path", v1({}, EL(a), {
fill: "none",
d: b1(t, i)
- })) : null, s ? /*#__PURE__*/ L.createElement("path", v1({}, hL(a), {
+ })) : null, s ? /*#__PURE__*/ L.createElement("path", v1({}, EL(a), {
fill: "none",
d: b1(r, i)
})) : null);
}
var l = b1(t, i);
- return /*#__PURE__*/ L.createElement("path", v1({}, hL(a), {
+ return /*#__PURE__*/ L.createElement("path", v1({}, EL(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -60986,7 +61087,7 @@ function S1() {
}
var C1 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = Au("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ L.createElement("circle", S1({}, pL(e), BR(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ L.createElement("circle", S1({}, wL(e), ZR(e), {
className: a,
cx: t,
cy: n,
@@ -61006,18 +61107,18 @@ $([
HX,
T1
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: LV(e, t.dataKey ?? n.dataKey),
+ value: JV(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: LV(e, t.dataKey),
+ value: JV(e, t.dataKey),
errorDomain: []
})));
var O1 = () => void 0, k1 = $([
HX,
- oU,
+ _U,
E1,
D1,
RK,
@@ -61035,14 +61136,14 @@ var O1 = () => void 0, k1 = $([
cq
], gZ),
O1,
- oU,
+ _U,
cq
], wZ)
], TZ), A1 = $([
k1,
UX,
DZ
-], OZ), MEe = $([DZ, $([
+], OZ), XEe = $([DZ, $([
HX,
k1,
A1,
@@ -61055,31 +61156,31 @@ var O1 = () => void 0, k1 = $([
}
}, M1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return fbe(e, n);
- case "radiusAxis": return pbe(e, n);
+ case "angleAxis": return Abe(e, n);
+ case "radiusAxis": return jbe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, N1 = $([$([
j1,
DZ,
- MEe,
+ XEe,
M1
], kX)], _q), P1 = $([
- oU,
+ _U,
D1,
UX,
cq
], FZ), F1 = $([
- oU,
+ _U,
j1,
DZ,
N1,
A1,
M1,
- qZ,
+ KZ,
P1,
cq
-], YZ), NEe = $([F1], (e) => {
+], JZ), ZEe = $([F1], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -61087,19 +61188,19 @@ var O1 = () => void 0, k1 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), PEe = $([
- oU,
+}), QEe = $([
+ _U,
j1,
N1,
M1,
- qZ,
+ KZ,
P1,
cq
-], ZZ), FEe = $([(e, t) => F1(e, "angleAxis", t, !1)], (e) => {
+], XZ), $Ee = $([(e, t) => F1(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), IEe = $([(e, t) => F1(e, "radiusAxis", t, !1)], (e) => {
+}), eDe = $([(e, t) => F1(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), LEe = [
+}), tDe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -61112,16 +61213,16 @@ var O1 = () => void 0, k1 = $([
"polarRadius",
"zIndex"
];
-function REe(e, t) {
+function nDe(e, t) {
if (e == null) return {};
- var n, r, i = zEe(e, t);
+ var n, r, i = rDe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function zEe(e, t) {
+function rDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61153,26 +61254,26 @@ function R1(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) {
- BEe(e, t, n[t]);
+ iDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BEe(e, t, n) {
- return (t = VEe(t)) in e ? Object.defineProperty(e, t, {
+function iDe(e, t, n) {
+ return (t = aDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VEe(e) {
- var t = HEe(e, "string");
+function aDe(e) {
+ var t = oDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HEe(e, t) {
+function oDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61182,16 +61283,16 @@ function HEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var UEe = (e, t, n, r) => {
+var sDe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
var o = lK(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, WEe = (e) => {
+}, cDe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = R1({ stroke: "#ccc" }, pL(e));
+ var s = R1({ stroke: "#ccc" }, wL(e));
return /*#__PURE__*/ L.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
var a = lK(t, n, r, e), o = lK(t, n, i, e);
return /*#__PURE__*/ L.createElement("line", I1({ key: `line-${e}` }, s, {
@@ -61205,7 +61306,7 @@ var UEe = (e, t, n, r) => {
var { cx: t, cy: n, radius: r } = e, i = R1({
stroke: "#ccc",
fill: "none"
- }, pL(e));
+ }, wL(e));
return /*#__PURE__*/ L.createElement("circle", I1({}, i, {
className: Au("recharts-polar-grid-concentric-circle", e.className),
cx: t,
@@ -61216,12 +61317,12 @@ var UEe = (e, t, n, r) => {
var { radius: t } = e, n = R1({
stroke: "#ccc",
fill: "none"
- }, pL(e));
+ }, wL(e));
return /*#__PURE__*/ L.createElement("path", I1({}, n, {
className: Au("recharts-polar-grid-concentric-polygon", e.className),
- d: UEe(t, e.cx, e.cy, e.polarAngles)
+ d: sDe(t, e.cx, e.cy, e.polarAngles)
}));
-}, GEe = (e) => {
+}, lDe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@ -61235,14 +61336,14 @@ var UEe = (e, t, n, r) => {
radius: t
}));
}));
-}, KEe = {
+}, uDe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
zIndex: WK.grid
}, V1 = (e) => {
- var t = UR(e, KEe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = REe(t, LEe), m = Q(sq), h = Q((e) => FEe(e, i)), g = Q((e) => IEe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = ez(e, uDe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = nDe(t, tDe), m = Q(sq), h = Q((e) => $Ee(e, i)), g = Q((e) => eDe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = R1({
cx: m?.cx ?? o ?? 0,
@@ -61253,13 +61354,13 @@ var UEe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ L.createElement(o$, { zIndex: y.zIndex }, /*#__PURE__*/ L.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ L.createElement(GEe, I1({
+ return b <= 0 ? null : /*#__PURE__*/ L.createElement(a$, { zIndex: y.zIndex }, /*#__PURE__*/ L.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ L.createElement(lDe, I1({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ L.createElement(WEe, I1({
+ })), /*#__PURE__*/ L.createElement(cDe, I1({
gridType: n,
radialLines: r
}, y, {
@@ -61275,11 +61376,11 @@ function H1(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function qEe(e, t = JR) {
+function dDe(e, t = az) {
if (e == null) return;
let n = H1(e);
if (n.length === 0) return;
- let r = fz(t), i, a;
+ let r = Cz(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);
@@ -61288,11 +61389,11 @@ function qEe(e, t = JR) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function JEe(e, t = JR) {
+function fDe(e, t = az) {
if (e == null) return;
let n = H1(e);
if (n.length === 0) return;
- let r = fz(t), i, a;
+ let r = Cz(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);
@@ -61301,7 +61402,7 @@ function JEe(e, t = JR) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var U1 = tV({
+var U1 = fV({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -61309,19 +61410,19 @@ var U1 = tV({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = cW(t.payload);
+ e.radiusAxis[t.payload.id] = yW(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = cW(t.payload);
+ e.angleAxis[t.payload.id] = yW(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: YEe, removeRadiusAxis: XEe, addAngleAxis: ZEe, removeAngleAxis: QEe } = U1.actions, $Ee = U1.reducer;
+}), { addRadiusAxis: pDe, removeRadiusAxis: mDe, addAngleAxis: hDe, removeAngleAxis: gDe } = U1.actions, _De = U1.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
function W1(e) {
@@ -61329,12 +61430,12 @@ function W1(e) {
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var eDe = ["type"], tDe = [
+var vDe = ["type"], yDe = [
"cx",
"cy",
"angle",
"axisLine"
-], nDe = [
+], bDe = [
"angle",
"tickFormatter",
"stroke",
@@ -61363,26 +61464,26 @@ function q1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K1(Object(n), !0).forEach(function(t) {
- rDe(e, t, n[t]);
+ xDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rDe(e, t, n) {
- return (t = iDe(t)) in e ? Object.defineProperty(e, t, {
+function xDe(e, t, n) {
+ return (t = SDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iDe(e) {
- var t = aDe(e, "string");
+function SDe(e) {
+ var t = CDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aDe(e, t) {
+function CDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61394,14 +61495,14 @@ function aDe(e, t) {
}
function J1(e, t) {
if (e == null) return {};
- var n, r, i = oDe(e, t);
+ var n, r, i = wDe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function oDe(e, t) {
+function wDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61410,20 +61511,20 @@ function oDe(e, t) {
}
return n;
}
-var sDe = "radiusAxis";
-function cDe(e) {
- var t = gz(), n = uU(), r = (0, L.useMemo)(() => {
- var { type: t } = e, r = J1(e, eDe), i = JK(n, "radiusAxis", t);
+var TDe = "radiusAxis";
+function EDe(e) {
+ var t = Dz(), n = xU(), r = (0, L.useMemo)(() => {
+ var { type: t } = e, r = J1(e, vDe), i = JK(n, "radiusAxis", t);
if (i != null) return q1(q1({}, r), {}, { type: i });
}, [e, n]);
- return (0, L.useEffect)(() => r == null ? NR : (t(YEe(r)), () => {
- t(XEe(r));
+ return (0, L.useEffect)(() => r == null ? WR : (t(pDe(r)), () => {
+ t(mDe(r));
}), [t, r]), null;
}
-var lDe = (e, t, n, r) => {
+var DDe = (e, t, n, r) => {
var { coordinate: i } = e;
return lK(n, r, i, t);
-}, uDe = (e) => {
+}, ODe = (e) => {
var t;
switch (e) {
case "left":
@@ -61435,49 +61536,49 @@ var lDe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, dDe = (e, t, n, r) => {
- var i = qEe(r, (e) => e.coordinate || 0);
+}, kDe = (e, t, n, r) => {
+ var i = dDe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: JEe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: fDe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, fDe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = J1(e, tDe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = lK(n, r, s[0], i), l = lK(n, r, s[1], i), u = q1(q1(q1({}, pL(o)), {}, { fill: "none" }, pL(a)), {}, {
+}, ADe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = J1(e, yDe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = lK(n, r, s[0], i), l = lK(n, r, s[1], i), u = q1(q1(q1({}, wL(o)), {}, { fill: "none" }, wL(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
return /*#__PURE__*/ L.createElement("line", G1({ className: "recharts-polar-radius-axis-line" }, u));
-}, pDe = (e, t, n) => /*#__PURE__*/ L.isValidElement(e) ? /*#__PURE__*/ L.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ L.createElement(J$, G1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), mDe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = J1(e, nDe), s = uDe(e.orientation), c = pL(o), l = mL(a), u = t.map((t, o) => {
- var u = lDe(t, e.angle, e.cx, e.cy), d = q1(q1(q1(q1({
+}, jDe = (e, t, n) => /*#__PURE__*/ L.isValidElement(e) ? /*#__PURE__*/ L.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ L.createElement(J$, G1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), MDe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = J1(e, bDe), s = ODe(e.orientation), c = wL(o), l = TL(a), u = t.map((t, o) => {
+ var u = DDe(t, e.angle, e.cx, e.cy), d = q1(q1(q1(q1({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ L.createElement(yL, G1({
+ return /*#__PURE__*/ L.createElement(AL, G1({
className: Au("recharts-polar-radius-axis-tick", W1(a)),
key: `tick-${t.coordinate}`
- }, VR(e, t, o)), pDe(a, d, r ? r(t.value, o) : t.value));
+ }, QR(e, t, o)), jDe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ L.createElement(yL, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, hDe = (e) => {
+ return /*#__PURE__*/ L.createElement(AL, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, NDe = (e) => {
var { radiusAxisId: t } = e, n = Q(sq), r = Q((e) => N1(e, "radiusAxis", t)), i = Q((e) => F1(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = q1(q1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ L.createElement(o$, { zIndex: a.zIndex }, /*#__PURE__*/ L.createElement(yL, { className: Au("recharts-polar-radius-axis", sDe, a.className) }, s && fDe(a, i), o && mDe(a, i), /*#__PURE__*/ L.createElement(uEe, dDe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ L.createElement(_Ee, { label: a.label }), a.children)));
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: a.zIndex }, /*#__PURE__*/ L.createElement(AL, { className: Au("recharts-polar-radius-axis", TDe, a.className) }, s && ADe(a, i), o && MDe(a, i), /*#__PURE__*/ L.createElement(OEe, kDe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ L.createElement(FEe, { label: a.label }), a.children)));
};
function Y1(e) {
- var t = UR(e, KK);
- return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(cDe, {
+ var t = ez(e, KK);
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(EDe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -61494,12 +61595,12 @@ function Y1(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ L.createElement(hDe, t));
+ }), /*#__PURE__*/ L.createElement(NDe, t));
}
Y1.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var gDe = ["children", "type"], _De = ["ref"];
+var PDe = ["children", "type"], FDe = ["ref"];
function X1() {
return X1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -61523,26 +61624,26 @@ function Q1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Z1(Object(n), !0).forEach(function(t) {
- vDe(e, t, n[t]);
+ IDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vDe(e, t, n) {
- return (t = yDe(t)) in e ? Object.defineProperty(e, t, {
+function IDe(e, t, n) {
+ return (t = LDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yDe(e) {
- var t = bDe(e, "string");
+function LDe(e) {
+ var t = RDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bDe(e, t) {
+function RDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61554,14 +61655,14 @@ function bDe(e, t) {
}
function $1(e, t) {
if (e == null) return {};
- var n, r, i = xDe(e, t);
+ var n, r, i = zDe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function xDe(e, t) {
+function zDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61570,17 +61671,17 @@ function xDe(e, t) {
}
return n;
}
-var e0 = 1e-5, SDe = Math.cos(cK(45)), CDe = "angleAxis";
-function wDe(e) {
- var t = gz(), n = uU(), r = (0, L.useMemo)(() => {
- var { children: t, type: r } = e, i = $1(e, gDe), a = JK(n, "angleAxis", r);
+var e0 = 1e-5, BDe = Math.cos(cK(45)), VDe = "angleAxis";
+function HDe(e) {
+ var t = Dz(), n = xU(), r = (0, L.useMemo)(() => {
+ var { children: t, type: r } = e, i = $1(e, PDe), a = JK(n, "angleAxis", r);
if (a != null) return Q1(Q1({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => $K(e, r?.id));
- return (0, L.useEffect)(() => r == null ? NR : (t(ZEe(r)), () => {
- t(QEe(r));
+ return (0, L.useEffect)(() => r == null ? WR : (t(hDe(r)), () => {
+ t(gDe(r));
}), [t, r]), i ? e.children : null;
}
-var TDe = (e, t) => {
+var UDe = (e, t) => {
var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = lK(n, r, i, e.coordinate), l = lK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
@@ -61588,16 +61689,16 @@ var TDe = (e, t) => {
x2: l.x,
y2: l.y
};
-}, EDe = (e, t) => {
+}, WDe = (e, t) => {
var n = Math.cos(cK(-e.coordinate));
return n > e0 ? t === "outer" ? "start" : "end" : n < -e0 ? t === "outer" ? "end" : "start" : "middle";
-}, DDe = (e) => {
+}, GDe = (e) => {
var t = Math.cos(cK(-e.coordinate)), n = Math.sin(cK(-e.coordinate));
- return Math.abs(t) <= SDe ? n > 0 ? "start" : "end" : "middle";
-}, ODe = (e) => {
+ return Math.abs(t) <= BDe ? n > 0 ? "start" : "end" : "middle";
+}, KDe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = Q1(Q1({}, pL(e)), {}, { fill: "none" }, pL(a));
+ var s = Q1(Q1({}, wL(e)), {}, { fill: "none" }, wL(a));
if (i === "circle") return /*#__PURE__*/ L.createElement(C1, X1({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
@@ -61605,12 +61706,12 @@ var TDe = (e, t) => {
}));
var c = o.map((e) => lK(t, n, r, e.coordinate));
return /*#__PURE__*/ L.createElement(x1, X1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, kDe = (e) => {
+}, qDe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
return t ? /*#__PURE__*/ L.isValidElement(t) ? /*#__PURE__*/ L.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ L.createElement(J$, X1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, ADe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = pL(e), { ref: s } = o, c = $1(o, _De), l = mL(t), u = Q1(Q1({}, c), {}, { fill: "none" }, pL(n)), d = a.map((a, o) => {
- var s = TDe(a, e), d = EDe(a, e.orientation), f = DDe(a), p = Q1(Q1(Q1({}, c), {}, {
+}, JDe = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = wL(e), { ref: s } = o, c = $1(o, FDe), l = TL(t), u = Q1(Q1({}, c), {}, { fill: "none" }, wL(n)), d = a.map((a, o) => {
+ var s = UDe(a, e), d = WDe(a, e.orientation), f = GDe(a), p = Q1(Q1(Q1({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -61621,28 +61722,28 @@ var TDe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ L.createElement(yL, X1({
+ return /*#__PURE__*/ L.createElement(AL, X1({
className: Au("recharts-polar-angle-axis-tick", W1(t)),
key: `tick-${a.coordinate}`
- }, VR(e, a, o)), n && /*#__PURE__*/ L.createElement("line", X1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ L.createElement(kDe, {
+ }, QR(e, a, o)), n && /*#__PURE__*/ L.createElement("line", X1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ L.createElement(qDe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ L.createElement(yL, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, jDe = (e) => {
- var { angleAxisId: t } = e, n = Q(sq), r = Q((e) => N1(e, "angleAxis", t)), i = EH(), a = Q((e) => NEe(e, "angleAxis", t, i));
+ return /*#__PURE__*/ L.createElement(AL, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, YDe = (e) => {
+ var { angleAxisId: t } = e, n = Q(sq), r = Q((e) => N1(e, "angleAxis", t)), i = LH(), a = Q((e) => ZEe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = Q1(Q1(Q1({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ L.createElement(o$, { zIndex: o.zIndex }, /*#__PURE__*/ L.createElement(yL, { className: Au("recharts-polar-angle-axis", CDe, o.className) }, /*#__PURE__*/ L.createElement(ODe, o), /*#__PURE__*/ L.createElement(ADe, o)));
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: o.zIndex }, /*#__PURE__*/ L.createElement(AL, { className: Au("recharts-polar-angle-axis", VDe, o.className) }, /*#__PURE__*/ L.createElement(KDe, o), /*#__PURE__*/ L.createElement(JDe, o)));
};
function t0(e) {
- var t = UR(e, GK);
- return /*#__PURE__*/ L.createElement(wDe, {
+ var t = ez(e, GK);
+ return /*#__PURE__*/ L.createElement(HDe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -61659,12 +61760,12 @@ function t0(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ L.createElement(jDe, t));
+ }, /*#__PURE__*/ L.createElement(YDe, t));
}
t0.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var MDe = /* @__PURE__ */ Te(((e) => {
+var XDe = /* @__PURE__ */ Te(((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) {
@@ -61693,26 +61794,26 @@ var MDe = /* @__PURE__ */ Te(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), NDe = (/* @__PURE__ */ Te(((e, t) => {
- t.exports = MDe();
+})), ZDe = (/* @__PURE__ */ Te(((e, t) => {
+ t.exports = XDe();
})))(), n0 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", r0 = null, i0 = null, a0 = (e) => {
if (e === r0 && Array.isArray(i0)) return i0;
var t = [];
return L.Children.forEach(e, (e) => {
- AR(e) || ((0, NDe.isFragment)(e) ? t = t.concat(a0(e.props.children)) : t.push(e));
+ VR(e) || ((0, ZDe.isFragment)(e) ? t = t.concat(a0(e.props.children)) : t.push(e));
}), i0 = t, r0 = e, t;
};
function o0(e, t) {
var n = [], r = [];
return r = Array.isArray(t) ? t.map((e) => n0(e)) : [n0(t)], a0(e).forEach((e) => {
- var t = vR(e, "type.displayName") || vR(e, "type.name");
+ var t = kR(e, "type.displayName") || kR(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
var s0 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function PDe(e) {
+function QDe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -61725,7 +61826,7 @@ function PDe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var FDe, IDe, LDe, RDe, zDe;
+var $De, eOe, tOe, nOe, rOe;
function c0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -61740,26 +61841,26 @@ function l0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? c0(Object(n), !0).forEach(function(t) {
- BDe(e, t, n[t]);
+ iOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BDe(e, t, n) {
- return (t = VDe(t)) in e ? Object.defineProperty(e, t, {
+function iOe(e, t, n) {
+ return (t = aOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VDe(e) {
- var t = HDe(e, "string");
+function aOe(e) {
+ var t = oOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HDe(e, t) {
+function oOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61782,29 +61883,29 @@ function d0(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var f0 = (e, t, n, r, i) => {
- var a = n - r, o = bR(FDe ||= d0([
+ var a = n - r, o = jR($De ||= d0([
"M ",
",",
""
]), e, t);
- return o += bR(IDe ||= d0([
+ return o += jR(eOe ||= d0([
"L ",
",",
""
- ]), e + n, t), o += bR(LDe ||= d0([
+ ]), e + n, t), o += jR(tOe ||= d0([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += bR(RDe ||= d0([
+ ]), e + n - a / 2, t + i), o += jR(nOe ||= d0([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += bR(zDe ||= d0([
+ ]), e + n - a / 2 - r, t + i), o += jR(rOe ||= d0([
"L ",
",",
" Z"
]), e, t), o;
-}, UDe = {
+}, sOe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -61814,8 +61915,8 @@ var f0 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, WDe = (e) => {
- var t = UR(e, UDe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, L.useRef)(null), [p, m] = (0, L.useState)(-1), h = (0, L.useRef)(i), g = (0, L.useRef)(a), _ = (0, L.useRef)(o), v = (0, L.useRef)(n), y = (0, L.useRef)(r), b = XG(e, "trapezoid-");
+}, cOe = (e) => {
+ var t = ez(e, sOe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, L.useRef)(null), [p, m] = (0, L.useState)(-1), h = (0, L.useRef)(i), g = (0, L.useRef)(a), _ = (0, L.useRef)(o), v = (0, L.useRef)(n), y = (0, L.useRef)(r), b = XG(e, "trapezoid-");
if ((0, L.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -61823,7 +61924,7 @@ var f0 = (e, t, n, r, i) => {
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
var x = Au("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ L.createElement("g", null, /*#__PURE__*/ L.createElement("path", u0({}, hL(t), {
+ if (!d) return /*#__PURE__*/ L.createElement("g", null, /*#__PURE__*/ L.createElement("path", u0({}, EL(t), {
className: x,
d: f0(n, r, i, a, o)
})));
@@ -61837,35 +61938,35 @@ var f0 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = OR(S, i, e), c = OR(C, a, e), l = OR(w, o, e), u = OR(T, n, e), d = OR(E, r, e);
+ var s = zR(S, i, e), c = zR(C, a, e), l = zR(w, o, e), u = zR(T, n, e), d = zR(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__*/ L.createElement("path", u0({}, hL(t), {
+ return /*#__PURE__*/ L.createElement("path", u0({}, EL(t), {
className: x,
d: f0(u, d, s, c, l),
ref: f,
style: l0(l0({}, p), t.style)
}));
});
-}, GDe = [
+}, lOe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function KDe(e, t) {
+function uOe(e, t) {
if (e == null) return {};
- var n, r, i = qDe(e, t);
+ var n, r, i = dOe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function qDe(e, t) {
+function dOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61888,26 +61989,26 @@ function m0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? p0(Object(n), !0).forEach(function(t) {
- JDe(e, t, n[t]);
+ fOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JDe(e, t, n) {
- return (t = YDe(t)) in e ? Object.defineProperty(e, t, {
+function fOe(e, t, n) {
+ return (t = pOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YDe(e) {
- var t = XDe(e, "string");
+function pOe(e) {
+ var t = mOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XDe(e, t) {
+function mOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61917,34 +62018,34 @@ function XDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ZDe(e, t) {
+function hOe(e, t) {
return m0(m0({}, t), e);
}
-function QDe(e, t) {
+function gOe(e, t) {
return e === "symbols";
}
function h0(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
case "rectangle": return /*#__PURE__*/ L.createElement(iK, n);
- case "trapezoid": return /*#__PURE__*/ L.createElement(WDe, n);
+ case "trapezoid": return /*#__PURE__*/ L.createElement(cOe, n);
case "sector": return /*#__PURE__*/ L.createElement(hK, n);
case "symbols":
- if (QDe(t, n)) return /*#__PURE__*/ L.createElement(RR, n);
+ if (gOe(t, n)) return /*#__PURE__*/ L.createElement(YR, n);
break;
case "curve": return /*#__PURE__*/ L.createElement(jG, n);
default: return null;
}
}
-function $De(e) {
+function _Oe(e) {
return /*#__PURE__*/ (0, L.isValidElement)(e) ? e.props : e;
}
function g0(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = KDe(e, GDe), o;
- if (/*#__PURE__*/ (0, L.isValidElement)(t)) o = /*#__PURE__*/ (0, L.cloneElement)(t, m0(m0({}, a), $De(t)));
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = uOe(e, lOe), o;
+ if (/*#__PURE__*/ (0, L.isValidElement)(t)) o = /*#__PURE__*/ (0, L.cloneElement)(t, m0(m0({}, a), _Oe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (PDe(t) && typeof t != "boolean") {
- var s = ZDe(t, a);
+ else if (QDe(t) && typeof t != "boolean") {
+ var s = hOe(t, a);
o = /*#__PURE__*/ L.createElement(h0, {
shapeType: n,
elementProps: s
@@ -61956,14 +62057,14 @@ function g0(e) {
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ L.createElement(yL, { className: r }, o) : /*#__PURE__*/ L.createElement(yL, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ L.createElement(AL, { className: r }, o) : /*#__PURE__*/ L.createElement(AL, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
var _0 = (e, t, n) => {
- var r = gz();
+ var r = Dz();
return (i, a) => (o) => {
- e?.(i, a, o), r(sQ({
+ e?.(i, a, o), r(oQ({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -61971,14 +62072,14 @@ var _0 = (e, t, n) => {
}));
};
}, v0 = (e) => {
- var t = gz();
+ var t = Dz();
return (n, r) => (i) => {
- e?.(n, r, i), t(RCe());
+ e?.(n, r, i), t(rwe());
};
}, y0 = (e, t, n) => {
- var r = gz();
+ var r = Dz();
return (i, a) => (o) => {
- e?.(i, a, o), r(zCe({
+ e?.(i, a, o), r(iwe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -61989,9 +62090,9 @@ var _0 = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function b0(e) {
- var { tooltipEntrySettings: t } = e, n = gz(), r = EH(), i = (0, L.useRef)(null);
+ var { tooltipEntrySettings: t } = e, n = Dz(), r = LH(), i = (0, L.useRef)(null);
return (0, L.useLayoutEffect)(() => {
- r || (i.current === null ? n(PCe(t)) : i.current !== t && n(FCe({
+ r || (i.current === null ? n($Ce(t)) : i.current !== t && n(ewe({
prev: i.current,
next: t
})), i.current = t);
@@ -62000,15 +62101,15 @@ function b0(e) {
n,
r
]), (0, L.useLayoutEffect)(() => () => {
- i.current &&= (n(ICe(i.current)), null);
+ i.current &&= (n(twe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function x0(e) {
- var { legendPayload: t } = e, n = gz(), r = EH(), i = (0, L.useRef)(null);
+ var { legendPayload: t } = e, n = Dz(), r = LH(), i = (0, L.useRef)(null);
return (0, L.useLayoutEffect)(() => {
- r || (i.current === null ? n(fW(t)) : i.current !== t && n(pW({
+ r || (i.current === null ? n(CW(t)) : i.current !== t && n(wW({
prev: i.current,
next: t
})), i.current = t);
@@ -62017,13 +62118,13 @@ function x0(e) {
r,
t
]), (0, L.useLayoutEffect)(() => () => {
- i.current &&= (n(mW(i.current)), null);
+ i.current &&= (n(TW(i.current)), null);
}, [n]), null;
}
function S0(e) {
- var { legendPayload: t } = e, n = gz(), r = Q(oU), i = (0, L.useRef)(null);
+ var { legendPayload: t } = e, n = Dz(), r = Q(_U), i = (0, L.useRef)(null);
return (0, L.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(fW(t)) : i.current !== t && n(pW({
+ (r === "centric" || r === "radial") && (i.current === null ? n(CW(t)) : i.current !== t && n(wW({
prev: i.current,
next: t
})), i.current = t);
@@ -62032,27 +62133,27 @@ function S0(e) {
r,
t
]), (0, L.useLayoutEffect)(() => () => {
- i.current &&= (n(mW(i.current)), null);
+ i.current &&= (n(TW(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var eOe = L.useId ?? (() => {
- var [e] = L.useState(() => TR("uid-"));
+var vOe = L.useId ?? (() => {
+ var [e] = L.useState(() => IR("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function tOe(e, t) {
- var n = eOe();
+function yOe(e, t) {
+ var n = vOe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var nOe = /*#__PURE__*/ (0, L.createContext)(void 0), C0 = (e) => {
- var { id: t, type: n, children: r } = e, i = tOe(`recharts-${n}`, t);
- return /*#__PURE__*/ L.createElement(nOe.Provider, { value: i }, r(i));
-}, w0 = tV({
+var bOe = /*#__PURE__*/ (0, L.createContext)(void 0), C0 = (e) => {
+ var { id: t, type: n, children: r } = e, i = yOe(`recharts-${n}`, t);
+ return /*#__PURE__*/ L.createElement(bOe.Provider, { value: i }, r(i));
+}, w0 = fV({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -62061,79 +62162,79 @@ var nOe = /*#__PURE__*/ (0, L.createContext)(void 0), C0 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(cW(t.payload));
+ e.cartesianItems.push(yW(t.payload));
},
- prepare: ZB()
+ prepare: cV()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = HB(e).cartesianItems.indexOf(cW(n));
- i > -1 && (e.cartesianItems[i] = cW(r));
+ var { prev: n, next: r } = t.payload, i = $B(e).cartesianItems.indexOf(yW(n));
+ i > -1 && (e.cartesianItems[i] = yW(r));
},
- prepare: ZB()
+ prepare: cV()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = HB(e).cartesianItems.indexOf(cW(t.payload));
+ var n = $B(e).cartesianItems.indexOf(yW(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: ZB()
+ prepare: cV()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(cW(t.payload));
+ e.polarItems.push(yW(t.payload));
},
- prepare: ZB()
+ prepare: cV()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = HB(e).polarItems.indexOf(cW(t.payload));
+ var n = $B(e).polarItems.indexOf(yW(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: ZB()
+ prepare: cV()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = HB(e).polarItems.indexOf(cW(n));
- i > -1 && (e.polarItems[i] = cW(r));
+ var { prev: n, next: r } = t.payload, i = $B(e).polarItems.indexOf(yW(n));
+ i > -1 && (e.polarItems[i] = yW(r));
},
- prepare: ZB()
+ prepare: cV()
}
}
-}), { addCartesianGraphicalItem: rOe, replaceCartesianGraphicalItem: iOe, removeCartesianGraphicalItem: aOe, addPolarGraphicalItem: oOe, removePolarGraphicalItem: sOe, replacePolarGraphicalItem: cOe } = w0.actions, lOe = w0.reducer, T0 = /*#__PURE__*/ (0, L.memo)((e) => {
- var t = gz(), n = (0, L.useRef)(null);
+}), { addCartesianGraphicalItem: xOe, replaceCartesianGraphicalItem: SOe, removeCartesianGraphicalItem: COe, addPolarGraphicalItem: wOe, removePolarGraphicalItem: TOe, replacePolarGraphicalItem: EOe } = w0.actions, DOe = w0.reducer, T0 = /*#__PURE__*/ (0, L.memo)((e) => {
+ var t = Dz(), n = (0, L.useRef)(null);
return (0, L.useLayoutEffect)(() => {
- n.current === null ? t(rOe(e)) : n.current !== e && t(iOe({
+ n.current === null ? t(xOe(e)) : n.current !== e && t(SOe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, L.useLayoutEffect)(() => () => {
- n.current &&= (t(aOe(n.current)), null);
+ n.current &&= (t(COe(n.current)), null);
}, [t]), null;
}), E0 = /*#__PURE__*/ (0, L.memo)((e) => {
- var t = gz(), n = (0, L.useRef)(null);
+ var t = Dz(), n = (0, L.useRef)(null);
return (0, L.useLayoutEffect)(() => {
- n.current === null ? t(oOe(e)) : n.current !== e && t(cOe({
+ n.current === null ? t(wOe(e)) : n.current !== e && t(EOe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, L.useLayoutEffect)(() => () => {
- n.current &&= (t(sOe(n.current)), null);
+ n.current &&= (t(TOe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function uOe(e) {
+function OOe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function dOe(e) {
- if (!(!YR(e) || e.length === 0)) return uOe(H1(e));
+function kOe(e) {
+ if (!(!oz(e) || e.length === 0)) return OOe(H1(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var fOe = ["points"];
+var AOe = ["points"];
function D0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -62148,26 +62249,26 @@ function O0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? D0(Object(n), !0).forEach(function(t) {
- pOe(e, t, n[t]);
+ jOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function pOe(e, t, n) {
- return (t = mOe(t)) in e ? Object.defineProperty(e, t, {
+function jOe(e, t, n) {
+ return (t = MOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mOe(e) {
- var t = hOe(e, "string");
+function MOe(e) {
+ var t = NOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hOe(e, t) {
+function NOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62186,16 +62287,16 @@ function k0() {
return e;
}, k0.apply(null, arguments);
}
-function gOe(e, t) {
+function POe(e, t) {
if (e == null) return {};
- var n, r, i = _Oe(e, t);
+ var n, r, i = FOe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function _Oe(e, t) {
+function FOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62204,20 +62305,20 @@ function _Oe(e, t) {
}
return n;
}
-function vOe(e) {
+function IOe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, L.isValidElement)(t)) return /*#__PURE__*/ (0, L.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Au(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = gOe(a, fOe);
+ var i = Au(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = POe(a, AOe);
return /*#__PURE__*/ L.createElement(C1, k0({}, s, { className: i }));
}
-function yOe(e, t) {
+function LOe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function A0(e) {
var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = WK.scatter } = e;
- if (!yOe(t, n)) return null;
- var u = s0(n), d = fhe(n), f = t.map((e, r) => {
+ if (!LOe(t, n)) return null;
+ var u = s0(n), d = yhe(n), f = t.map((e, r) => {
var s = O0(O0(O0({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
@@ -62227,14 +62328,14 @@ function A0(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ L.createElement(vOe, {
+ return /*#__PURE__*/ L.createElement(IOe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ L.createElement(o$, { zIndex: l }, /*#__PURE__*/ L.createElement(yL, k0({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ L.createElement(a$, { zIndex: l }, /*#__PURE__*/ L.createElement(AL, k0({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@ -62252,26 +62353,26 @@ function M0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? j0(Object(n), !0).forEach(function(t) {
- bOe(e, t, n[t]);
+ ROe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bOe(e, t, n) {
- return (t = xOe(t)) in e ? Object.defineProperty(e, t, {
+function ROe(e, t, n) {
+ return (t = zOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xOe(e) {
- var t = SOe(e, "string");
+function zOe(e) {
+ var t = BOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SOe(e, t) {
+function BOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62281,7 +62382,7 @@ function SOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var N0 = tV({
+var N0 = fV({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -62291,60 +62392,60 @@ var N0 = tV({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = cW(t.payload);
+ e.xAxis[t.payload.id] = yW(t.payload);
},
- prepare: ZB()
+ prepare: cV()
},
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] = cW(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = yW(r));
},
- prepare: ZB()
+ prepare: cV()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: ZB()
+ prepare: cV()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = cW(t.payload);
+ e.yAxis[t.payload.id] = yW(t.payload);
},
- prepare: ZB()
+ prepare: cV()
},
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] = cW(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = yW(r));
},
- prepare: ZB()
+ prepare: cV()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: ZB()
+ prepare: cV()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = cW(t.payload);
+ e.zAxis[t.payload.id] = yW(t.payload);
},
- prepare: ZB()
+ prepare: cV()
},
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] = cW(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = yW(r));
},
- prepare: ZB()
+ prepare: cV()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: ZB()
+ prepare: cV()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -62359,15 +62460,15 @@ var N0 = tV({
}
}
}
-}), { addXAxis: COe, replaceXAxis: wOe, removeXAxis: TOe, addYAxis: EOe, replaceYAxis: DOe, removeYAxis: OOe, addZAxis: kOe, replaceZAxis: AOe, removeZAxis: jOe, updateYAxisWidth: MOe } = N0.actions, NOe = N0.reducer, POe = $([
- $([SH], (e) => ({
+}), { addXAxis: VOe, replaceXAxis: HOe, removeXAxis: UOe, addYAxis: WOe, replaceYAxis: GOe, removeYAxis: KOe, addZAxis: qOe, replaceZAxis: JOe, removeZAxis: YOe, updateYAxisWidth: XOe } = N0.actions, ZOe = N0.reducer, QOe = $([
+ $([NH], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- aH,
- oH
+ gH,
+ _H
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -62375,7 +62476,7 @@ var N0 = tV({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), P0 = () => Q(POe), FOe = () => Q(mwe);
+}), P0 = () => Q(QOe), $Oe = () => Q(Nwe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function F0(e, t) {
@@ -62392,26 +62493,26 @@ function I0(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) {
- IOe(e, t, n[t]);
+ eke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IOe(e, t, n) {
- return (t = LOe(t)) in e ? Object.defineProperty(e, t, {
+function eke(e, t, n) {
+ return (t = tke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LOe(e) {
- var t = ROe(e, "string");
+function tke(e) {
+ var t = nke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ROe(e, t) {
+function nke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62421,7 +62522,7 @@ function ROe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zOe = (e) => {
+var rke = (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 = I0(I0(I0({}, {
@@ -62435,17 +62536,17 @@ var zOe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), mL(i)), BR(i)), c = /*#__PURE__*/ (0, L.isValidElement)(i) ? /*#__PURE__*/ (0, L.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ L.createElement(C1, s);
- return /*#__PURE__*/ L.createElement(yL, {
+ }), TL(i)), ZR(i)), c = /*#__PURE__*/ (0, L.isValidElement)(i) ? /*#__PURE__*/ (0, L.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ L.createElement(C1, s);
+ return /*#__PURE__*/ L.createElement(AL, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
function L0(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = WK.activeDot } = e, s = Q(zQ), c = FOe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = WK.activeDot } = e, s = Q(RQ), c = $Oe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return AR(l) ? null : /*#__PURE__*/ L.createElement(o$, { zIndex: o }, /*#__PURE__*/ L.createElement(zOe, {
+ return VR(l) ? null : /*#__PURE__*/ L.createElement(a$, { zIndex: o }, /*#__PURE__*/ L.createElement(rke, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -62470,26 +62571,26 @@ function z0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? R0(Object(n), !0).forEach(function(t) {
- BOe(e, t, n[t]);
+ ike(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BOe(e, t, n) {
- return (t = VOe(t)) in e ? Object.defineProperty(e, t, {
+function ike(e, t, n) {
+ return (t = ake(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VOe(e) {
- var t = HOe(e, "string");
+function ake(e) {
+ var t = oke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HOe(e, t) {
+function oke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62499,13 +62600,13 @@ function HOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var B0 = (e, t) => N1(e, "radiusAxis", t), UOe = $([B0], (e) => {
+var B0 = (e, t) => N1(e, "radiusAxis", t), ske = $([B0], (e) => {
if (e != null) return { scale: e };
-}), WOe = $([eq, B0], (e, t) => {
+}), cke = $([eq, B0], (e, t) => {
if (e != null && t != null) return z0(z0({}, e), {}, { scale: t });
-}), GOe = (e, t, n, r) => F1(e, "radiusAxis", t, r), V0 = (e, t, n) => $K(e, n), H0 = (e, t, n) => N1(e, "angleAxis", n), KOe = $([V0, H0], (e, t) => {
+}), lke = (e, t, n, r) => F1(e, "radiusAxis", t, r), V0 = (e, t, n) => $K(e, n), H0 = (e, t, n) => N1(e, "angleAxis", n), uke = $([V0, H0], (e, t) => {
if (e != null && t != null) return z0(z0({}, e), {}, { scale: t });
-}), qOe = (e, t, n, r) => F1(e, "angleAxis", n, r), JOe = $([
+}), dke = (e, t, n, r) => F1(e, "angleAxis", n, r), fke = $([
V0,
H0,
sq
@@ -62517,30 +62618,30 @@ var B0 = (e, t) => N1(e, "radiusAxis", t), UOe = $([B0], (e) => {
cx: n.cx,
cy: n.cy
};
-}), YOe = (e, t, n, r, i) => i, XOe = $([
- oU,
- WOe,
- GOe,
- KOe,
- qOe
-], (e, t, n, r, i) => zV(e, "radiusAxis") ? eH(t, n, !1) : eH(r, i, !1)), ZOe = $([
- UOe,
- JOe,
+}), pke = (e, t, n, r, i) => i, mke = $([
+ _U,
+ cke,
+ lke,
+ uke,
+ dke
+], (e, t, n, r, i) => XV(e, "radiusAxis") ? dH(t, n, !1) : dH(r, i, !1)), hke = $([
+ ske,
+ fke,
yK,
- $([w1, YOe], (e, t) => {
+ $([w1, pke], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- XOe
+ mke
], (e, t, n, r, i) => {
var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;
- if (e != null && t != null && a != null && i != null && r != null) return ske({
+ if (e != null && t != null && a != null && i != null && r != null) return Tke({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), QOe = ["id"];
+}), gke = ["id"];
function U0() {
return U0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -62564,26 +62665,26 @@ function G0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? W0(Object(n), !0).forEach(function(t) {
- $Oe(e, t, n[t]);
+ _ke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Oe(e, t, n) {
- return (t = eke(t)) in e ? Object.defineProperty(e, t, {
+function _ke(e, t, n) {
+ return (t = vke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eke(e) {
- var t = tke(e, "string");
+function vke(e) {
+ var t = yke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tke(e, t) {
+function yke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62593,16 +62694,16 @@ function tke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function nke(e, t) {
+function bke(e, t) {
if (e == null) return {};
- var n, r, i = rke(e, t);
+ var n, r, i = xke(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function rke(e, t) {
+function xke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62614,27 +62715,27 @@ function rke(e, t) {
function K0(e, t) {
return e && e !== "none" ? e : t;
}
-var ike = (e) => {
+var Ske = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: K0(r, i),
- value: nH(n, t),
+ value: pH(n, t),
payload: e
}];
-}, ake = /*#__PURE__*/ L.memo((e) => {
+}, Cke = /*#__PURE__*/ L.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: NR,
+ getPosition: WR,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: nH(a, t),
+ name: pH(a, t),
hide: o,
type: s,
color: K0(n, i),
@@ -62644,8 +62745,8 @@ var ike = (e) => {
};
return /*#__PURE__*/ L.createElement(b0, { tooltipEntrySettings: l });
});
-function oke(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = pL(nke(n, QOe));
+function wke(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = wL(bke(n, gke));
return /*#__PURE__*/ L.createElement(A0, {
points: t,
dot: r,
@@ -62655,10 +62756,10 @@ function oke(e) {
baseProps: o
});
}
-function ske(e) {
+function Tke(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 = LV(e, n.dataKey, r), d = LV(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? dOe(d) : d, m = AR(p) ? 0 : t.scale.map(p) ?? 0;
+ var a = JV(e, n.dataKey, r), d = JV(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? kOe(d) : d, m = VR(p) ? 0 : t.scale.map(p) ?? 0;
Array.isArray(d) && d.length >= 2 && (c = !0), l.push(G0(G0({}, lK(o, s, m, f)), {}, {
name: a,
value: d,
@@ -62672,7 +62773,7 @@ function ske(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = AR(n) ? 0 : t.scale.map(n) ?? 0;
+ var n = e.value[0], r = VR(n) ? 0 : t.scale.map(n) ?? 0;
d.push(G0(G0({}, e), {}, { radius: r }, lK(o, s, r, e.angle)));
} else d.push(e);
}), {
@@ -62681,7 +62782,7 @@ function ske(e) {
baseLinePoints: d
};
}
-function cke(e) {
+function Eke(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -62701,10 +62802,10 @@ function cke(e) {
});
return /*#__PURE__*/ L.createElement(m1, { value: t ? i : void 0 }, r);
}
-function lke(e) {
+function Dke(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ L.isValidElement(i) ? /*#__PURE__*/ L.cloneElement(i, G0(G0({}, r), {}, { points: t })) : typeof i == "function" ? i(G0(G0({}, r), {}, { points: t })) : /*#__PURE__*/ L.createElement(x1, U0({}, hL(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ L.isValidElement(i) ? /*#__PURE__*/ L.cloneElement(i, G0(G0({}, r), {}, { points: t })) : typeof i == "function" ? i(G0(G0({}, r), {}, { points: t })) : /*#__PURE__*/ L.createElement(x1, U0({}, EL(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -62717,7 +62818,7 @@ function lke(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ L.createElement(yL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ L.createElement(oke, {
+ return /*#__PURE__*/ L.createElement(AL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ L.createElement(wke, {
props: r,
points: t
}));
@@ -62725,20 +62826,20 @@ function lke(e) {
var q0 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
return a ? G0(G0({}, r), {}, {
- x: OR(a.x, r.x, n),
- y: OR(a.y, r.y, n)
+ x: zR(a.x, r.x, n),
+ y: zR(a.y, r.y, n)
}) : G0(G0({}, r), {}, {
- x: OR(r.cx, r.x, n),
- y: OR(r.cy, r.y, n)
+ x: zR(r.cx, r.x, n),
+ y: zR(r.cy, r.y, n)
});
};
-function uke(e) {
+function Oke(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 = XG(t, "recharts-radar-"), [_, v] = (0, L.useState)(!1), y = !_, b = (0, L.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, L.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ L.createElement(cke, {
+ return /*#__PURE__*/ L.createElement(Eke, {
showLabels: y,
points: i
}, /*#__PURE__*/ L.createElement(YG, {
@@ -62752,22 +62853,22 @@ function uke(e) {
onAnimationStart: x
}, (e) => {
var o = e === 1 ? i : i.map(q0(f, m, e)), s = e === 1 ? a : a?.map(q0(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ L.createElement(lke, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ L.createElement(Dke, {
points: o,
baseLinePoints: s,
props: t
});
}), /*#__PURE__*/ L.createElement(_1, { label: t.label }), t.children);
}
-function dke(e) {
+function kke(e) {
var t = (0, L.useRef)(void 0), n = (0, L.useRef)(void 0);
- return /*#__PURE__*/ L.createElement(uke, {
+ return /*#__PURE__*/ L.createElement(Oke, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var fke = {
+var Ake = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -62781,27 +62882,27 @@ var fke = {
radiusAxisId: 0,
zIndex: WK.area
};
-function pke(e) {
+function jke(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Au("recharts-radar", n);
- return /*#__PURE__*/ L.createElement(o$, { zIndex: e.zIndex }, /*#__PURE__*/ L.createElement(yL, { className: i }, /*#__PURE__*/ L.createElement(dke, e)), /*#__PURE__*/ L.createElement(L0, {
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: e.zIndex }, /*#__PURE__*/ L.createElement(AL, { className: i }, /*#__PURE__*/ L.createElement(kke, e)), /*#__PURE__*/ L.createElement(L0, {
points: r,
mainColor: K0(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function mke(e) {
- var t = EH(), n = Q((n) => ZOe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ L.createElement(pke, U0({}, e, {
+function Mke(e) {
+ var t = LH(), n = Q((n) => hke(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ L.createElement(jke, U0({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
function J0(e) {
- var t = UR(e, fke);
+ var t = ez(e, Ake);
return /*#__PURE__*/ L.createElement(C0, {
id: t.id,
type: "radar"
@@ -62813,7 +62914,7 @@ function J0(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ L.createElement(S0, { legendPayload: ike(t) }), /*#__PURE__*/ L.createElement(ake, {
+ }), /*#__PURE__*/ L.createElement(S0, { legendPayload: Ske(t) }), /*#__PURE__*/ L.createElement(Cke, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -62822,7 +62923,7 @@ function J0(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ L.createElement(mke, U0({}, t, { id: e }))));
+ }), /*#__PURE__*/ L.createElement(Mke, U0({}, t, { id: e }))));
}
J0.displayName = "Radar";
//#endregion
@@ -62846,7 +62947,7 @@ function Z0(e) {
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
var Q0 = (e, t, n) => {
var r = n ?? e;
- if (!AR(r)) return ER(r, t, 0);
+ if (!VR(r)) return LR(r, t, 0);
}, $0 = (e, t, n) => {
var r = {}, i = e.filter(fq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
@@ -62881,26 +62982,26 @@ function t2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? e2(Object(n), !0).forEach(function(t) {
- hke(e, t, n[t]);
+ Nke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hke(e, t, n) {
- return (t = gke(t)) in e ? Object.defineProperty(e, t, {
+function Nke(e, t, n) {
+ return (t = Pke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gke(e) {
- var t = _ke(e, "string");
+function Pke(e) {
+ var t = Fke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _ke(e, t) {
+function Fke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62910,11 +63011,11 @@ function _ke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function vke(e, t, n, r, i) {
+function Ike(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = ER(e, n, 0, !0), s, c = [];
- if (AV(r[0]?.barSize)) {
+ var o = LR(e, n, 0, !0), s, c = [];
+ if (VV(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 = {
@@ -62933,11 +63034,11 @@ function vke(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = ER(t, n, 0, !0);
+ var p = LR(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 = AV(i) ? Math.min(m, i) : m;
+ var h = VV(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -62951,7 +63052,7 @@ function vke(e, t, n, r, i) {
}
}
var n2 = (e, t, n, r, i, a, o) => {
- var s = AR(o) ? t : o, c = vke(n, r, i === a ? a : i, e, s);
+ var s = VR(o) ? t : o, c = Ike(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => t2(t2({}, e), {}, { position: t2(t2({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, r2 = (e, t) => {
var n = uq(t);
@@ -62987,26 +63088,26 @@ function o2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? a2(Object(n), !0).forEach(function(t) {
- yke(e, t, n[t]);
+ Lke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yke(e, t, n) {
- return (t = bke(t)) in e ? Object.defineProperty(e, t, {
+function Lke(e, t, n) {
+ return (t = Rke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bke(e) {
- var t = xke(e, "string");
+function Rke(e) {
+ var t = zke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xke(e, t) {
+function zke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63018,30 +63119,30 @@ function xke(e, t) {
}
var s2 = $([(e, t) => eq(e, t), (e, t) => N1(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return o2(o2({}, e), {}, { scale: t });
-}), c2 = (e, t) => PEe(e, "radiusAxis", t, !1), l2 = $([(e, t, n) => $K(e, n), (e, t, n) => N1(e, "angleAxis", n)], (e, t) => {
+}), c2 = (e, t) => QEe(e, "radiusAxis", t, !1), l2 = $([(e, t, n) => $K(e, n), (e, t, n) => N1(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return o2(o2({}, e), {}, { scale: t });
}), u2 = (e, t, n) => F1(e, "angleAxis", n, !1), d2 = $([w1, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
}), f2 = $([
- oU,
+ _U,
s2,
c2,
l2,
u2
-], (e, t, n, r, i) => zV(e, "radiusAxis") ? eH(t, n, !1) : eH(r, i, !1)), Ske = $([
+], (e, t, n, r, i) => XV(e, "radiusAxis") ? dH(t, n, !1) : dH(r, i, !1)), Bke = $([
l2,
s2,
- oU
+ _U
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return JV({ numericAxis: r });
-}), Cke = (e, t, n, r, i) => i, wke = (e, t, n, r, i) => n, Tke = (e, t, n, r, i) => t, p2 = (e, t, n, r, i) => r.maxBarSize, m2 = (e) => e.type === "radialBar", Eke = $([$([
+ if (r != null && r.scale != null) return aH({ numericAxis: r });
+}), Vke = (e, t, n, r, i) => i, Hke = (e, t, n, r, i) => n, Uke = (e, t, n, r, i) => t, p2 = (e, t, n, r, i) => r.maxBarSize, m2 = (e) => e.type === "radialBar", Wke = $([$([
$([
$([
- oU,
+ _U,
w1,
- wke,
- Tke
+ Hke,
+ Uke
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(m2)),
LK,
() => void 0
@@ -63050,7 +63151,7 @@ var s2 = $([(e, t) => eq(e, t), (e, t) => N1(e, "radiusAxis", t)], (e, t) => {
FK,
IK,
$([
- oU,
+ _U,
PK,
l2,
u2,
@@ -63058,8 +63159,8 @@ var s2 = $([(e, t) => eq(e, t), (e, t) => N1(e, "radiusAxis", t)], (e, t) => {
c2,
p2
], (e, t, n, r, i, a, o) => {
- var s = AR(o) ? t : o;
- return e === "centric" ? eH(n, r, !0) ?? s ?? 0 : eH(i, a, !0) ?? s ?? 0;
+ var s = VR(o) ? t : o;
+ return e === "centric" ? dH(n, r, !0) ?? s ?? 0 : dH(i, a, !0) ?? s ?? 0;
}),
f2,
p2
@@ -63072,7 +63173,7 @@ var s2 = $([(e, t) => eq(e, t), (e, t) => N1(e, "radiusAxis", t)], (e, t) => {
h2,
RK,
zK
-], cZ), Dke = $([
+], cZ), Gke = $([
l2,
u2,
s2,
@@ -63080,17 +63181,17 @@ var s2 = $([(e, t) => eq(e, t), (e, t) => N1(e, "radiusAxis", t)], (e, t) => {
vK,
d2,
f2,
- oU,
- Ske,
+ _U,
+ Bke,
sq,
- Cke,
- Eke,
- $([(e, t, n) => oU(e) === "centric" ? g2(e, "radiusAxis", t) : g2(e, "angleAxis", n), d2], r2)
+ Vke,
+ Wke,
+ $([(e, t, n) => _U(e) === "centric" ? g2(e, "radiusAxis", t) : g2(e, "angleAxis", n), d2], r2)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return Wke({
+ return cAe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -63111,7 +63212,7 @@ var s2 = $([(e, t) => eq(e, t), (e, t) => N1(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), Oke = $([yK, (e, t) => t], (e, t) => {
+}), Kke = $([yK, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -63125,20 +63226,20 @@ var s2 = $([(e, t) => eq(e, t), (e, t) => N1(e, "radiusAxis", t)], (e, t) => {
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
function _2(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && AV(e.zIndex) ? e.zIndex : t;
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && VV(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var kke = [
+var qke = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], Ake = [
+], Jke = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], jke = ["value", "background"];
+], Yke = ["value", "background"];
function v2() {
return v2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -63162,26 +63263,26 @@ function b2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? y2(Object(n), !0).forEach(function(t) {
- Mke(e, t, n[t]);
+ Xke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Mke(e, t, n) {
- return (t = Nke(t)) in e ? Object.defineProperty(e, t, {
+function Xke(e, t, n) {
+ return (t = Zke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Nke(e) {
- var t = Pke(e, "string");
+function Zke(e) {
+ var t = Qke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Pke(e, t) {
+function Qke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63193,14 +63294,14 @@ function Pke(e, t) {
}
function x2(e, t) {
if (e == null) return {};
- var n, r, i = Fke(e, t);
+ var n, r, i = $ke(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Fke(e, t) {
+function $ke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63210,7 +63311,7 @@ function Fke(e, t) {
return n;
}
var S2 = [];
-function Ike(e) {
+function eAe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -63227,15 +63328,15 @@ function Ike(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ L.createElement(SEe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ L.createElement(BEe, { value: t ? i : void 0 }, r);
}
-function Lke(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = x2(n, kke), l = pL(c), u = Q(zQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = x2(n, Ake), h = _0(d, n.dataKey, s), g = v0(p), _ = y0(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ L.createElement(Ike, {
+function tAe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = x2(n, qke), l = wL(c), u = Q(RQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = x2(n, Jke), h = _0(d, n.dataKey, s), g = v0(p), _ = y0(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ L.createElement(eAe, {
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 = b2(b2(b2(b2({}, l), {}, { cornerRadius: X0(o) }, e), VR(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = b2(b2(b2(b2({}, l), {}, { cornerRadius: X0(o) }, e), QR(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -63246,13 +63347,13 @@ function Lke(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ L.createElement(o$, {
+ return n ? /*#__PURE__*/ L.createElement(a$, {
zIndex: WK.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
}, /*#__PURE__*/ L.createElement(Z0, f)) : /*#__PURE__*/ L.createElement(Z0, v2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
}), /*#__PURE__*/ L.createElement(_1, { label: n.label }), n.children);
}
-function Rke(e) {
+function nAe(e) {
var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = XG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, L.useState)(!1), m = (0, L.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, L.useCallback)(() => {
@@ -63271,34 +63372,34 @@ function Rke(e) {
var i = e === 1 ? r : (r ?? S2).map((t, n) => {
var r = d && d[n];
if (r) return b2(b2({}, t), {}, {
- startAngle: OR(r.startAngle, t.startAngle, e),
- endAngle: OR(r.endAngle, t.endAngle, e)
+ startAngle: zR(r.startAngle, t.startAngle, e),
+ endAngle: zR(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return b2(b2({}, t), {}, { endAngle: OR(a, i, e) });
+ return b2(b2({}, t), {}, { endAngle: zR(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ L.createElement(Lke, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ L.createElement(tAe, {
sectors: i ?? S2,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function zke(e) {
+function rAe(e) {
var t = (0, L.useRef)(null);
- return /*#__PURE__*/ L.createElement(Rke, {
+ return /*#__PURE__*/ L.createElement(nAe, {
props: e,
previousSectorsRef: t
});
}
-function Bke(e) {
- var t = Q((t) => Oke(t, e.legendType));
+function iAe(e) {
+ var t = Q((t) => Kke(t, e.legendType));
return /*#__PURE__*/ L.createElement(S0, { legendPayload: t ?? [] });
}
-var Vke = /*#__PURE__*/ L.memo((e) => {
+var aAe = /*#__PURE__*/ L.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: NR,
+ getPosition: WR,
settings: {
graphicalItemId: l,
stroke: r,
@@ -63306,7 +63407,7 @@ var Vke = /*#__PURE__*/ L.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: nH(a, t),
+ name: pH(a, t),
hide: o,
type: c,
color: s,
@@ -63314,14 +63415,14 @@ var Vke = /*#__PURE__*/ L.memo((e) => {
}
};
return /*#__PURE__*/ L.createElement(b0, { tooltipEntrySettings: u });
-}), Hke = class extends L.PureComponent {
+}), oAe = class extends L.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = mL(this.props.background);
- return /*#__PURE__*/ L.createElement(o$, { zIndex: _2(this.props.background, WK.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = x2(e, jke);
+ var { cornerRadius: t } = this.props, n = TL(this.props.background);
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: _2(this.props.background, WK.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = x2(e, Yke);
if (!a) return null;
- var s = b2(b2(b2(b2(b2({ cornerRadius: X0(t) }, o), {}, { fill: "#eee" }, a), n), VR(this.props, e, r)), {}, {
+ var s = b2(b2(b2(b2(b2({ cornerRadius: X0(t) }, o), {}, { fill: "#eee" }, a), n), QR(this.props, e, r)), {}, {
index: r,
className: Au("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
@@ -63334,17 +63435,17 @@ var Vke = /*#__PURE__*/ L.memo((e) => {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Au("recharts-area", n);
- return /*#__PURE__*/ L.createElement(o$, { zIndex: this.props.zIndex }, /*#__PURE__*/ L.createElement(yL, { className: i }, r && /*#__PURE__*/ L.createElement(yL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ L.createElement(yL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ L.createElement(zke, this.props))));
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: this.props.zIndex }, /*#__PURE__*/ L.createElement(AL, { className: i }, r && /*#__PURE__*/ L.createElement(AL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ L.createElement(AL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ L.createElement(rAe, this.props))));
}
};
-function Uke(e) {
- var t = L.useMemo(() => o0(e.children, C$), [e.children]), n = L.useMemo(() => ({
+function sAe(e) {
+ var t = L.useMemo(() => o0(e.children, S$), [e.children]), n = L.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: GV(e.stackId),
+ stackId: nH(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -63359,8 +63460,8 @@ function Uke(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => Dke(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? S2;
- return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(Vke, {
+ ]), r = Q((r) => Gke(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? S2;
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(aAe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -63370,7 +63471,7 @@ function Uke(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ L.createElement(Hke, v2({}, e, { sectors: r })));
+ }), /*#__PURE__*/ L.createElement(oAe, v2({}, e, { sectors: r })));
}
var C2 = {
angleAxisId: 0,
@@ -63389,12 +63490,12 @@ var C2 = {
radiusAxisId: 0,
zIndex: WK.bar
};
-function Wke(e) {
+function cAe(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 ? S2 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = HV(n[r + t], i) : (b = LV(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 = qV({
+ if (n ? b = $V(n[r + t], i) : (b = JV(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 = iH({
axis: c,
ticks: l,
bandSize: u,
@@ -63405,7 +63506,7 @@ function Wke(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = xR(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = MR(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -63417,7 +63518,7 @@ function Wke(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = qV({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = iH({
axis: f,
ticks: g,
bandSize: u,
@@ -63428,7 +63529,7 @@ function Wke(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = xR(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = MR(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
@@ -63445,7 +63546,7 @@ function Wke(e) {
});
}
function w2(e) {
- var t = UR(e, C2);
+ var t = ez(e, C2);
return /*#__PURE__*/ L.createElement(C0, {
id: t.id,
type: "radialBar"
@@ -63457,19 +63558,19 @@ function w2(e) {
hide: t.hide ?? C2.hide,
angleAxisId: t.angleAxisId ?? C2.angleAxisId,
radiusAxisId: t.radiusAxisId ?? C2.radiusAxisId,
- stackId: GV(t.stackId),
+ stackId: nH(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ L.createElement(Bke, t), /*#__PURE__*/ L.createElement(Uke, v2({}, t, { id: e }))));
+ }), /*#__PURE__*/ L.createElement(iAe, t), /*#__PURE__*/ L.createElement(sAe, v2({}, t, { id: e }))));
}
w2.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var T2 = (e) => {
- var { chartData: t } = e, n = gz(), r = EH();
- return (0, L.useEffect)(() => r ? () => {} : (n(_$(t)), () => {
- n(_$(void 0));
+ var { chartData: t } = e, n = Dz(), r = LH();
+ return (0, L.useEffect)(() => r ? () => {} : (n(g$(t)), () => {
+ n(g$(void 0));
}), [
t,
n,
@@ -63486,13 +63587,13 @@ var T2 = (e) => {
bottom: 0,
left: 0
}
-}, D2 = tV({
+}, D2 = fV({
name: "brush",
initialState: E2,
reducers: { setBrushSettings(e, t) {
return t.payload == null ? E2 : t.payload;
} }
-}), { setBrushSettings: Gke } = D2.actions, Kke = D2.reducer, qke = (e, t) => {
+}), { setBrushSettings: lAe } = D2.actions, uAe = D2.reducer, dAe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -63500,9 +63601,9 @@ var T2 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, Jke = (e) => {
+}, fAe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return qke({
+ return dAe({
x: t,
y: n
}, {
@@ -63510,13 +63611,13 @@ var T2 = (e) => {
y: i
});
};
-function Yke(e) {
+function pAe(e) {
return (e % 180 + 180) % 180;
}
-var Xke = function(e) {
- var { width: t, height: n } = e, r = Yke(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var mAe = function(e) {
+ var { width: t, height: n } = e, r = pAe(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);
-}, O2 = tV({
+}, O2 = fV({
name: "referenceElements",
initialState: {
dots: [],
@@ -63528,26 +63629,26 @@ var Xke = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = HB(e).dots.findIndex((e) => e === t.payload);
+ var n = $B(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 = HB(e).areas.findIndex((e) => e === t.payload);
+ var n = $B(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(cW(t.payload));
+ e.lines.push(yW(t.payload));
},
removeLine: (e, t) => {
- var n = HB(e).lines.findIndex((e) => e === t.payload);
+ var n = $B(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: Zke, removeDot: Qke, addArea: $ke, removeArea: eAe, addLine: tAe, removeLine: nAe } = O2.actions, rAe = O2.reducer, k2 = /*#__PURE__*/ (0, L.createContext)(void 0), iAe = (e) => {
- var { children: t } = e, [n] = (0, L.useState)(`${TR("recharts")}-clip`), r = P0();
+}), { addDot: hAe, removeDot: gAe, addArea: _Ae, removeArea: vAe, addLine: yAe, removeLine: bAe } = O2.actions, xAe = O2.reducer, k2 = /*#__PURE__*/ (0, L.createContext)(void 0), SAe = (e) => {
+ var { children: t } = e, [n] = (0, L.useState)(`${IR("recharts")}-clip`), r = P0();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
return /*#__PURE__*/ L.createElement(k2.Provider, { value: n }, /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement("clipPath", { id: n }, /*#__PURE__*/ L.createElement("rect", {
@@ -63556,7 +63657,7 @@ var Xke = function(e) {
height: s,
width: o
}))), t);
-}, aAe = () => (0, L.useContext)(k2), oAe = class {
+}, CAe = () => (0, L.useContext)(k2), wAe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -63596,26 +63697,26 @@ function j2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? A2(Object(n), !0).forEach(function(t) {
- sAe(e, t, n[t]);
+ TAe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sAe(e, t, n) {
- return (t = cAe(t)) in e ? Object.defineProperty(e, t, {
+function TAe(e, t, n) {
+ return (t = EAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cAe(e) {
- var t = lAe(e, "string");
+function EAe(e) {
+ var t = DAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lAe(e, t) {
+function DAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63634,18 +63735,18 @@ function M2() {
return e;
}, M2.apply(null, arguments);
}
-var uAe = (e, t) => {
+var OAe = (e, t) => {
var n;
if (/*#__PURE__*/ L.isValidElement(e)) n = /*#__PURE__*/ L.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!AV(t.x1) || !AV(t.y1) || !AV(t.x2) || !AV(t.y2)) return null;
+ if (!VV(t.x1) || !VV(t.y1) || !VV(t.x2) || !VV(t.y2)) return null;
n = /*#__PURE__*/ L.createElement("line", M2({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, dAe = (e, t, n, r, i, a) => {
+}, kAe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!AV(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!VV(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -63654,9 +63755,9 @@ var uAe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, fAe = (e, t, n, r, i, a) => {
+}, AAe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!AV(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!VV(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -63665,7 +63766,7 @@ var uAe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, pAe = (e, t, n, r) => {
+}, jAe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -63674,43 +63775,43 @@ var uAe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, mAe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = wR(s);
- return wR(c) ? dAe(c, u, r, a, t, n) : d ? fAe(s, u, r, i, e, n) : l != null && l.length === 2 ? pAe(l, u, r, new oAe({
+}, MAe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = FR(s);
+ return FR(c) ? kAe(c, u, r, a, t, n) : d ? AAe(s, u, r, i, e, n) : l != null && l.length === 2 ? jAe(l, u, r, new wAe({
x: e,
y: t
})) : null;
};
-function hAe(e) {
- var t = gz();
- return (0, L.useEffect)(() => (t(tAe(e)), () => {
- t(nAe(e));
+function NAe(e) {
+ var t = Dz();
+ return (0, L.useEffect)(() => (t(yAe(e)), () => {
+ t(bAe(e));
})), null;
}
-function gAe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = EH(), s = aAe(), c = Q((e) => LX(e, t)), l = Q((e) => BX(e, n)), u = Q((e) => LZ(e, "xAxis", t, o)), d = Q((e) => LZ(e, "yAxis", n, o)), f = eU();
+function PAe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = LH(), s = CAe(), c = Q((e) => LX(e, t)), l = Q((e) => BX(e, n)), u = Q((e) => LZ(e, "xAxis", t, o)), d = Q((e) => LZ(e, "yAxis", n, o)), f = dU();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = mAe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = MAe(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 = j2(j2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, hL(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = j2(j2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, EL(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = Jke({
+ }), x = fAe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ L.createElement(o$, { zIndex: e.zIndex }, /*#__PURE__*/ L.createElement(yL, { className: Au("recharts-reference-line", i) }, uAe(r, b), /*#__PURE__*/ L.createElement(n1, M2({}, x, {
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: e.zIndex }, /*#__PURE__*/ L.createElement(AL, { className: Au("recharts-reference-line", i) }, OAe(r, b), /*#__PURE__*/ L.createElement(n1, M2({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ L.createElement(u1, { label: e.label }), e.children)));
}
-var _Ae = {
+var FAe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -63723,15 +63824,15 @@ var _Ae = {
zIndex: WK.line
};
function N2(e) {
- var t = UR(e, _Ae);
- return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(hAe, {
+ var t = ez(e, FAe);
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(NAe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ L.createElement(gAe, t));
+ }), /*#__PURE__*/ L.createElement(PAe, t));
}
N2.displayName = "ReferenceLine";
//#endregion
@@ -63747,13 +63848,13 @@ function P2(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function vAe(e, t, n) {
- return Xke({
+function IAe(e, t, n) {
+ return mAe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function yAe(e, t, n) {
+function LAe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -63768,12 +63869,12 @@ function F2(e, t, n, r, i) {
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function bAe(e, t) {
+function RAe(e, t) {
return P2(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function xAe(e, t, n, r, i) {
+function zAe(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: P2(r, l) };
@@ -63782,7 +63883,7 @@ function xAe(e, t, n, r, i) {
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function SAe(e, t, n, r, i) {
+function BAe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
@@ -63819,26 +63920,26 @@ function L2(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) {
- CAe(e, t, n[t]);
+ VAe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function CAe(e, t, n) {
- return (t = wAe(t)) in e ? Object.defineProperty(e, t, {
+function VAe(e, t, n) {
+ return (t = HAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wAe(e) {
- var t = TAe(e, "string");
+function HAe(e) {
+ var t = UAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TAe(e, t) {
+function UAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63848,7 +63949,7 @@ function TAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function EAe(e, t, n, r, i) {
+function WAe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
@@ -63861,7 +63962,7 @@ function EAe(e, t, n, r, i) {
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function DAe(e, t, n, r, i, a) {
+function GAe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
@@ -63885,7 +63986,7 @@ function DAe(e, t, n, r, i, a) {
function R2(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) || hG.isSsr) return bAe(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || _G.isSsr) return RAe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? k$(u, {
fontSize: t,
letterSpacing: n
@@ -63894,19 +63995,19 @@ function R2(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? vAe(k$(i, {
+ return p === "width" ? IAe(k$(i, {
fontSize: t,
letterSpacing: n
}), m, d) : k$(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? xR(_.coordinate - g.coordinate) : 1, y = yAe(a, v, p);
- return c === "equidistantPreserveStart" ? xAe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? SAe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? DAe(v, y, h, i, o, c === "preserveStartEnd") : EAe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? MR(_.coordinate - g.coordinate) : 1, y = LAe(a, v, p);
+ return c === "equidistantPreserveStart" ? zAe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? BAe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? GAe(v, y, h, i, o, c === "preserveStartEnd") : WAe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var OAe = (e) => {
+var KAe = (e) => {
var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -63919,7 +64020,7 @@ var OAe = (e) => {
return Math.round(l);
}
return 0;
-}, z2 = tV({
+}, z2 = fV({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -63928,14 +64029,14 @@ var OAe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = cW(i);
+ e[n][r] = yW(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: kAe, removeRenderedTicks: AAe } = z2.actions, jAe = z2.reducer, MAe = [
+}), { setRenderedTicks: qAe, removeRenderedTicks: JAe } = z2.actions, YAe = z2.reducer, XAe = [
"axisLine",
"width",
"height",
@@ -63945,16 +64046,16 @@ var OAe = (e) => {
"axisType",
"axisId"
];
-function NAe(e, t) {
+function ZAe(e, t) {
if (e == null) return {};
- var n, r, i = PAe(e, t);
+ var n, r, i = QAe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function PAe(e, t) {
+function QAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63986,26 +64087,26 @@ function H2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V2(Object(n), !0).forEach(function(t) {
- FAe(e, t, n[t]);
+ $Ae(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function FAe(e, t, n) {
- return (t = IAe(t)) in e ? Object.defineProperty(e, t, {
+function $Ae(e, t, n) {
+ return (t = eje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function IAe(e) {
- var t = LAe(e, "string");
+function eje(e) {
+ var t = tje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function LAe(e, t) {
+function tje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64039,10 +64140,10 @@ var U2 = {
interval: "preserveEnd",
zIndex: WK.axis
};
-function RAe(e) {
+function nje(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 = H2(H2(H2({}, c), pL(s)), {}, { fill: "none" });
+ var l = H2(H2(H2({}, c), wL(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
l = H2(H2({}, l), {}, {
@@ -64060,9 +64161,9 @@ function RAe(e) {
y2: n + i
});
}
- return /*#__PURE__*/ L.createElement("line", B2({}, l, { className: Au("recharts-cartesian-axis-line", vR(s, "className")) }));
+ return /*#__PURE__*/ L.createElement("line", B2({}, l, { className: Au("recharts-cartesian-axis-line", kR(s, "className")) }));
}
-function zAe(e, t, n, r, i, a, o, s, c) {
+function rje(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
@@ -64089,14 +64190,14 @@ function zAe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function BAe(e, t) {
+function ije(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function VAe(e, t) {
+function aje(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -64104,7 +64205,7 @@ function VAe(e, t) {
default: return t ? "end" : "start";
}
}
-function HAe(e) {
+function oje(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Au(n.className, "recharts-cartesian-axis-tick-value");
if (/*#__PURE__*/ L.isValidElement(t)) i = /*#__PURE__*/ L.cloneElement(t, H2(H2({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(H2(H2({}, n), {}, { className: a }));
@@ -64114,9 +64215,9 @@ function HAe(e) {
}
return i;
}
-function UAe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = gz();
- return (0, L.useEffect)(() => r == null || n == null ? NR : (i(kAe({
+function sje(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = Dz();
+ return (0, L.useEffect)(() => r == null || n == null ? WR : (i(qAe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -64126,7 +64227,7 @@ function UAe(e) {
axisId: r,
axisType: n
})), () => {
- i(AAe({
+ i(JAe({
axisId: r,
axisType: n
}));
@@ -64137,15 +64238,15 @@ function UAe(e) {
n
]), null;
}
-var WAe = /*#__PURE__*/ (0, L.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 = R2(H2(H2({}, b), {}, { ticks: n }), v, y), T = pL(b), E = mL(r), D = H$(T.textAnchor) ? T.textAnchor : BAe(u, d), O = VAe(u, d), k = {};
+var cje = /*#__PURE__*/ (0, L.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 = R2(H2(H2({}, b), {}, { ticks: n }), v, y), T = wL(b), E = TL(r), D = H$(T.textAnchor) ? T.textAnchor : ije(u, d), O = aje(u, d), k = {};
typeof i == "object" && (k = i);
- var A = H2(H2({}, T), {}, { fill: "none" }, k), j = w.map((e) => H2({ entry: e }, zAe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = H2(H2({}, T), {}, { fill: "none" }, k), j = w.map((e) => H2({ entry: e }, rje(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ L.createElement(yL, {
+ return /*#__PURE__*/ L.createElement(AL, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ L.createElement("line", B2({}, A, n, { className: Au("recharts-cartesian-axis-tick-line", vR(i, "className")) })));
+ }, i && /*#__PURE__*/ L.createElement("line", B2({}, A, n, { className: Au("recharts-cartesian-axis-tick-line", kR(i, "className")) })));
}), N = j.map((e, t) => {
var { entry: n, tick: i } = e, u = H2(H2({}, H2(H2(H2(H2({ verticalAnchor: O }, T), {}, {
textAnchor: D,
@@ -64158,26 +64259,26 @@ var WAe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ L.createElement(yL, B2({
+ return /*#__PURE__*/ L.createElement(AL, B2({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, VR(x, n, t)), r && /*#__PURE__*/ L.createElement(HAe, {
+ }, QR(x, n, t)), r && /*#__PURE__*/ L.createElement(oje, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ L.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ L.createElement(UAe, {
+ return /*#__PURE__*/ L.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ L.createElement(sje, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ L.createElement(o$, { zIndex: WK.label }, /*#__PURE__*/ L.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ L.createElement(a$, { zIndex: WK.label }, /*#__PURE__*/ L.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ L.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), GAe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = NAe(e, MAe), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)(""), h = (0, L.useRef)(null);
- (0, L.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => OAe({
+}), lje = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = ZAe(e, XAe), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)(""), h = (0, L.useRef)(null);
+ (0, L.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => KAe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -64195,7 +64296,7 @@ var WAe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ L.createElement(o$, { zIndex: e.zIndex }, /*#__PURE__*/ L.createElement(yL, { className: Au("recharts-cartesian-axis", a) }, /*#__PURE__*/ L.createElement(RAe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ L.createElement(a$, { zIndex: e.zIndex }, /*#__PURE__*/ L.createElement(AL, { className: Au("recharts-cartesian-axis", a) }, /*#__PURE__*/ L.createElement(nje, {
x: e.x,
y: e.y,
width: r,
@@ -64203,8 +64304,8 @@ var WAe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: pL(e)
- }), /*#__PURE__*/ L.createElement(WAe, {
+ otherSvgProps: wL(e)
+ }), /*#__PURE__*/ L.createElement(cje, {
ref: g,
axisType: c,
events: u,
@@ -64240,19 +64341,19 @@ var WAe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
labelRef: e.labelRef
}), e.children)));
}), W2 = /*#__PURE__*/ L.forwardRef((e, t) => {
- var n = UR(e, U2);
- return /*#__PURE__*/ L.createElement(GAe, B2({}, n, { ref: t }));
+ var n = ez(e, U2);
+ return /*#__PURE__*/ L.createElement(lje, B2({}, n, { ref: t }));
});
W2.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var KAe = [
+var uje = [
"x1",
"y1",
"x2",
"y2",
"key"
-], qAe = ["offset"], JAe = ["xAxisId", "yAxisId"], YAe = ["xAxisId", "yAxisId"];
+], dje = ["offset"], fje = ["xAxisId", "yAxisId"], pje = ["xAxisId", "yAxisId"];
function G2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -64267,26 +64368,26 @@ function K2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? G2(Object(n), !0).forEach(function(t) {
- XAe(e, t, n[t]);
+ mje(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function XAe(e, t, n) {
- return (t = ZAe(t)) in e ? Object.defineProperty(e, t, {
+function mje(e, t, n) {
+ return (t = hje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ZAe(e) {
- var t = QAe(e, "string");
+function hje(e) {
+ var t = gje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function QAe(e, t) {
+function gje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64307,14 +64408,14 @@ function q2() {
}
function J2(e, t) {
if (e == null) return {};
- var n, r, i = $Ae(e, t);
+ var n, r, i = _je(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function $Ae(e, t) {
+function _je(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64323,7 +64424,7 @@ function $Ae(e, t) {
}
return n;
}
-var eje = (e) => {
+var vje = (e) => {
var { fill: t } = e;
if (!t || t === "none") return null;
var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;
@@ -64344,7 +64445,7 @@ function Y2(e) {
if (/*#__PURE__*/ L.isValidElement(t)) r = /*#__PURE__*/ L.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 = pL(J2(n, KAe)) ?? {}, { offset: u } = l, d = J2(l, qAe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = wL(J2(n, uje)) ?? {}, { offset: u } = l, d = J2(l, dje);
r = /*#__PURE__*/ L.createElement("line", q2({}, d, {
x1: i,
y1: a,
@@ -64356,10 +64457,10 @@ function Y2(e) {
}
return r;
}
-function tje(e) {
+function yje(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 = J2(e, JAe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = J2(e, fje), c = i.map((e, i) => {
var a = K2(K2({}, s), {}, {
x1: t,
y1: e,
@@ -64376,10 +64477,10 @@ function tje(e) {
});
return /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function nje(e) {
+function bje(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 = J2(e, YAe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = J2(e, pje), c = i.map((e, i) => {
var a = K2(K2({}, s), {}, {
x1: e,
y1: t,
@@ -64396,7 +64497,7 @@ function nje(e) {
});
return /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function rje(e) {
+function xje(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
if (!c || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -64419,7 +64520,7 @@ function rje(e) {
});
return /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function ije(e) {
+function Sje(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
if (!t || !n || !n.length) return null;
var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -64442,10 +64543,10 @@ function ije(e) {
});
return /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var aje = (e, t) => {
+var Cje = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return BV(R2(K2(K2(K2({}, U2), n), {}, {
- ticks: VV(n, !0),
+ return ZV(R2(K2(K2(K2({}, U2), n), {}, {
+ ticks: QV(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -64453,10 +64554,10 @@ var aje = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, oje = (e, t) => {
+}, wje = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return BV(R2(K2(K2(K2({}, U2), n), {}, {
- ticks: VV(n, !0),
+ return ZV(R2(K2(K2(K2({}, U2), n), {}, {
+ ticks: QV(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -64464,7 +64565,7 @@ var aje = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, sje = {
+}, Tje = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -64479,14 +64580,14 @@ var aje = (e, t) => {
zIndex: WK.grid
};
function X2(e) {
- var t = rU(), n = iU(), r = nU(), i = K2(K2({}, UR(e, sje)), {}, {
+ var t = mU(), n = hU(), r = pU(), i = K2(K2({}, ez(e, Tje)), {}, {
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 = EH(), h = Q((e) => JZ(e, "xAxis", a, m)), g = Q((e) => JZ(e, "yAxis", o, m));
- if (!jV(l) || !jV(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || aje, v = i.horizontalCoordinatesGenerator || oje, { horizontalPoints: y, verticalPoints: b } = i;
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = LH(), h = Q((e) => qZ(e, "xAxis", a, m)), g = Q((e) => qZ(e, "yAxis", o, m));
+ if (!HV(l) || !HV(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || Cje, v = i.horizontalCoordinatesGenerator || wje, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
yAxis: g ? K2(K2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
@@ -64494,7 +64595,7 @@ function X2(e) {
height: n ?? u,
offset: r
}, x ? !0 : d);
- MH(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ UH(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 = _({
@@ -64503,9 +64604,9 @@ function X2(e) {
height: n ?? u,
offset: r
}, C ? !0 : d);
- MH(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ UH(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ L.createElement(o$, { zIndex: i.zIndex }, /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ L.createElement(eje, {
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: i.zIndex }, /*#__PURE__*/ L.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ L.createElement(vje, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -64513,12 +64614,12 @@ function X2(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ L.createElement(rje, q2({}, i, { horizontalPoints: y })), /*#__PURE__*/ L.createElement(ije, q2({}, i, { verticalPoints: b })), /*#__PURE__*/ L.createElement(tje, q2({}, i, {
+ }), /*#__PURE__*/ L.createElement(xje, q2({}, i, { horizontalPoints: y })), /*#__PURE__*/ L.createElement(Sje, q2({}, i, { verticalPoints: b })), /*#__PURE__*/ L.createElement(yje, q2({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ L.createElement(nje, q2({}, i, {
+ })), /*#__PURE__*/ L.createElement(bje, q2({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -64528,7 +64629,7 @@ function X2(e) {
X2.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var Z2 = tV({
+var Z2 = fV({
name: "errorBars",
initialState: {},
reducers: {
@@ -64545,17 +64646,17 @@ var Z2 = tV({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: cje, replaceErrorBar: lje, removeErrorBar: uje } = Z2.actions, dje = Z2.reducer, fje = ["children"];
-function pje(e, t) {
+}), { addErrorBar: Eje, replaceErrorBar: Dje, removeErrorBar: Oje } = Z2.actions, kje = Z2.reducer, Aje = ["children"];
+function jje(e, t) {
if (e == null) return {};
- var n, r, i = mje(e, t);
+ var n, r, i = Mje(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function mje(e, t) {
+function Mje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64564,7 +64665,7 @@ function mje(e, t) {
}
return n;
}
-var hje = /*#__PURE__*/ (0, L.createContext)({
+var Nje = /*#__PURE__*/ (0, L.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -64576,8 +64677,8 @@ var hje = /*#__PURE__*/ (0, L.createContext)({
errorBarOffset: 0
});
function Q2(e) {
- var { children: t } = e, n = pje(e, fje);
- return /*#__PURE__*/ L.createElement(hje.Provider, { value: n }, t);
+ var { children: t } = e, n = jje(e, Aje);
+ return /*#__PURE__*/ L.createElement(Nje.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
@@ -64602,30 +64703,30 @@ function e4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var t4 = (e, t, n, r) => $Z(e, "xAxis", t, r), n4 = (e, t, n, r) => QZ(e, "xAxis", t, r), r4 = (e, t, n, r) => $Z(e, "yAxis", n, r), i4 = (e, t, n, r) => QZ(e, "yAxis", n, r), gje = $([
- oU,
+var t4 = (e, t, n, r) => QZ(e, "xAxis", t, r), n4 = (e, t, n, r) => ZZ(e, "xAxis", t, r), r4 = (e, t, n, r) => QZ(e, "yAxis", n, r), i4 = (e, t, n, r) => ZZ(e, "yAxis", n, r), Pje = $([
+ _U,
t4,
r4,
n4,
i4
-], (e, t, n, r, i) => zV(e, "xAxis") ? eH(t, r, !1) : eH(n, i, !1)), _je = (e, t, n, r, i) => i;
-function vje(e) {
+], (e, t, n, r, i) => XV(e, "xAxis") ? dH(t, r, !1) : dH(n, i, !1)), Fje = (e, t, n, r, i) => i;
+function Ije(e) {
return e.type === "line";
}
-var yje = $([
- oU,
+var Lje = $([
+ _U,
t4,
r4,
n4,
i4,
- $([KX, _je], (e, t) => e.filter(vje).find((e) => e.id === t)),
- gje,
+ $([KX, Fje], (e, t) => e.filter(Ije).find((e) => e.id === t)),
+ Pje,
bK
], (e, t, n, r, i, a, o, s) => {
var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return zje({
+ if (p != null) return rMe({
layout: e,
xAxis: t,
yAxis: n,
@@ -64640,7 +64741,7 @@ var yje = $([
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
function a4(e) {
- var t = mL(e), n = 3, r = 2;
+ var t = TL(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), {
@@ -64655,13 +64756,13 @@ function a4(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var bje = ["id"], xje = [
+var Rje = ["id"], zje = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], Sje = [
+], Bje = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -64700,26 +64801,26 @@ function c4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? s4(Object(n), !0).forEach(function(t) {
- Cje(e, t, n[t]);
+ Vje(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Cje(e, t, n) {
- return (t = wje(t)) in e ? Object.defineProperty(e, t, {
+function Vje(e, t, n) {
+ return (t = Hje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wje(e) {
- var t = Tje(e, "string");
+function Hje(e) {
+ var t = Uje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Tje(e, t) {
+function Uje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64731,14 +64832,14 @@ function Tje(e, t) {
}
function l4(e, t) {
if (e == null) return {};
- var n, r, i = Eje(e, t);
+ var n, r, i = Wje(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Eje(e, t) {
+function Wje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64747,27 +64848,27 @@ function Eje(e, t) {
}
return n;
}
-var Dje = (e) => {
+var Gje = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: nH(n, t),
+ value: pH(n, t),
payload: e
}];
-}, Oje = /*#__PURE__*/ L.memo((e) => {
+}, Kje = /*#__PURE__*/ L.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: NR,
+ getPosition: WR,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: nH(o, t),
+ name: pH(o, t),
hide: s,
type: l,
color: r,
@@ -64777,11 +64878,11 @@ var Dje = (e) => {
};
return /*#__PURE__*/ L.createElement(b0, { tooltipEntrySettings: d });
}), u4 = (e, t) => `${t}px ${e}px`;
-function kje(e, t) {
+function qje(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var Aje = (e, t, n) => {
+var Jje = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
if (!r) return u4(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) {
@@ -64793,13 +64894,13 @@ var Aje = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...kje(n, i),
+ ...qje(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function jje(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = pL(l4(r, bje));
+function Yje(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = wL(l4(r, Rje));
return /*#__PURE__*/ L.createElement(A0, {
points: n,
dot: i,
@@ -64811,7 +64912,7 @@ function jje(e) {
clipPathId: t
});
}
-function Mje(e) {
+function Xje(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, L.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -64832,7 +64933,7 @@ function Mje(e) {
return /*#__PURE__*/ L.createElement(m1, { value: t ? i : void 0 }, n);
}
function d4(e) {
- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = c4(c4({}, hL(l4(a, xje))), {}, {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = c4(c4({}, EL(l4(a, zje))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -64845,28 +64946,28 @@ function d4(e) {
return /*#__PURE__*/ L.createElement(L.Fragment, null, r?.length > 1 && /*#__PURE__*/ L.createElement(g0, o4({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ L.createElement(jje, {
+ }, d, { pathRef: n })), /*#__PURE__*/ L.createElement(Yje, {
points: r,
clipPathId: t,
props: a
}));
}
-function Nje(e) {
+function Zje(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function Pje(e) {
+function Qje(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 = XG(o, "recharts-line-"), y = (0, L.useRef)(v), [b, x] = (0, L.useState)(!1), S = !b, C = (0, L.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, L.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = Nje(r.current), E = (0, L.useRef)(0);
+ }, [g]), T = Zje(r.current), E = (0, L.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ L.createElement(Mje, {
+ return /*#__PURE__*/ L.createElement(Xje, {
points: o,
showLabels: S
}, n.children, /*#__PURE__*/ L.createElement(YG, {
@@ -64879,20 +64980,20 @@ function Pje(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = OR(D, T + D, e), u = Math.min(l, T), d = c ? s ? Aje(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : u4(T, u) : s == null ? void 0 : String(s);
+ var l = zR(D, T + D, e), u = Math.min(l, T), d = c ? s ? Jje(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : u4(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 c4(c4({}, t), {}, {
- x: OR(i.x, t.x, e),
- y: OR(i.y, t.y, e)
+ x: zR(i.x, t.x, e),
+ y: zR(i.y, t.y, e)
});
}
return f ? c4(c4({}, t), {}, {
- x: OR(p * 2, t.x, e),
- y: OR(m / 2, t.y, e)
+ x: zR(p * 2, t.x, e),
+ y: zR(m / 2, t.y, e)
}) : c4(c4({}, t), {}, {
x: t.x,
y: t.y
@@ -64915,9 +65016,9 @@ function Pje(e) {
});
}), /*#__PURE__*/ L.createElement(_1, { label: n.label }));
}
-function Fje(e) {
+function $je(e) {
var { clipPathId: t, props: n } = e, r = (0, L.useRef)(null), i = (0, L.useRef)(0), a = (0, L.useRef)(null);
- return /*#__PURE__*/ L.createElement(Pje, {
+ return /*#__PURE__*/ L.createElement(Qje, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -64925,17 +65026,17 @@ function Fje(e) {
pathRef: a
});
}
-var Ije = (e, t) => ({
+var eMe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: LV(e.payload, t)
-}), Lje = class extends L.Component {
+ errorVal: JV(e.payload, t)
+}), tMe = class extends L.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 = Au("recharts-line", r), m = u, { r: h, strokeWidth: g } = a4(t), _ = s0(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ L.createElement(o$, { zIndex: f }, /*#__PURE__*/ L.createElement(yL, { className: p }, d && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement(e4, {
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: f }, /*#__PURE__*/ L.createElement(AL, { className: p }, d && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement(e4, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -64948,9 +65049,9 @@ var Ije = (e, t) => ({
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: Ije,
+ dataPointFormatter: eMe,
errorBarOffset: 0
- }, /*#__PURE__*/ L.createElement(Fje, {
+ }, /*#__PURE__*/ L.createElement($je, {
props: this.props,
clipPathId: m
}))), /*#__PURE__*/ L.createElement(L0, {
@@ -64981,11 +65082,11 @@ var Ije = (e, t) => ({
zIndex: WK.line,
type: "linear"
};
-function Rje(e) {
- var t = UR(e, f4), { 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 = l4(t, Sje), { needClip: _ } = $2(p, m), v = P0(), y = sU(), b = EH(), x = Q((e) => yje(e, p, m, b, h));
+function nMe(e) {
+ var t = ez(e, f4), { 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 = l4(t, Bje), { needClip: _ } = $2(p, m), v = P0(), y = vU(), b = LH(), x = Q((e) => Lje(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__*/ L.createElement(Lje, o4({}, g, {
+ return /*#__PURE__*/ L.createElement(tMe, o4({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -65009,23 +65110,23 @@ function Rje(e) {
needClip: _
}));
}
-function zje(e) {
+function rMe(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 = LV(e, o);
+ var l = JV(e, o);
if (t === "horizontal") return {
- x: KV({
+ x: rH({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (AR(l) ? null : r.scale.map(l)) ?? null,
+ y: (VR(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = AR(l) ? null : n.scale.map(l), d = KV({
+ var u = VR(l) ? null : n.scale.map(l), d = rH({
axis: r,
ticks: a,
bandSize: s,
@@ -65040,12 +65141,12 @@ function zje(e) {
};
}).filter(Boolean);
}
-function Bje(e) {
- var t = UR(e, f4), n = EH();
+function iMe(e) {
+ var t = ez(e, f4), n = LH();
return /*#__PURE__*/ L.createElement(C0, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(x0, { legendPayload: Dje(t) }), /*#__PURE__*/ L.createElement(Oje, {
+ }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(x0, { legendPayload: Gje(t) }), /*#__PURE__*/ L.createElement(Kje, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -65066,9 +65167,9 @@ function Bje(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ L.createElement(Rje, o4({}, t, { id: e }))));
+ }), /*#__PURE__*/ L.createElement(nMe, o4({}, t, { id: e }))));
}
-var p4 = /*#__PURE__*/ L.memo(Bje, PW);
+var p4 = /*#__PURE__*/ L.memo(iMe, GW);
p4.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -65080,19 +65181,19 @@ function h4(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var g4 = (e, t, n) => $Z(e, "xAxis", m4(e, t), n), _4 = (e, t, n) => QZ(e, "xAxis", m4(e, t), n), v4 = (e, t, n) => $Z(e, "yAxis", h4(e, t), n), y4 = (e, t, n) => QZ(e, "yAxis", h4(e, t), n), Vje = $([
- oU,
+var g4 = (e, t, n) => QZ(e, "xAxis", m4(e, t), n), _4 = (e, t, n) => ZZ(e, "xAxis", m4(e, t), n), v4 = (e, t, n) => QZ(e, "yAxis", h4(e, t), n), y4 = (e, t, n) => ZZ(e, "yAxis", h4(e, t), n), aMe = $([
+ _U,
g4,
v4,
_4,
y4
-], (e, t, n, r, i) => zV(e, "xAxis") ? eH(t, r, !1) : eH(n, i, !1)), b4 = $([KX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), x4 = (e) => zV(oU(e), "xAxis") ? "yAxis" : "xAxis", Hje = (e, t) => x4(e) === "yAxis" ? h4(e, t) : m4(e, t), Uje = $([
- oU,
+], (e, t, n, r, i) => XV(e, "xAxis") ? dH(t, r, !1) : dH(n, i, !1)), b4 = $([KX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), x4 = (e) => XV(_U(e), "xAxis") ? "yAxis" : "xAxis", oMe = (e, t) => x4(e) === "yAxis" ? h4(e, t) : m4(e, t), sMe = $([
+ _U,
g4,
v4,
_4,
y4,
- $([b4, (e, t, n) => lZ(e, x4(e), Hje(e, t), n)], (e, t) => {
+ $([b4, (e, t, n) => lZ(e, x4(e), oMe(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = uq(e);
if (n != null && r != null) {
@@ -65102,14 +65203,14 @@ var g4 = (e, t, n) => $Z(e, "xAxis", m4(e, t), n), _4 = (e, t, n) => QZ(e, "xAxi
}
}),
xK,
- Vje,
+ aMe,
b4,
- cbe
+ Ebe
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);
- if (m != null) return lMe({
+ if (m != null) return DMe({
layout: e,
xAxis: t,
yAxis: n,
@@ -65123,7 +65224,7 @@ var g4 = (e, t, n) => $Z(e, "xAxis", m4(e, t), n), _4 = (e, t, n) => QZ(e, "xAxi
bandSize: s
});
}
-}), Wje = ["id"], Gje = [
+}), cMe = ["id"], lMe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -65150,14 +65251,14 @@ function S4() {
}
function C4(e, t) {
if (e == null) return {};
- var n, r, i = Kje(e, t);
+ var n, r, i = uMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Kje(e, t) {
+function uMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65180,26 +65281,26 @@ function T4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? w4(Object(n), !0).forEach(function(t) {
- qje(e, t, n[t]);
+ dMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qje(e, t, n) {
- return (t = Jje(t)) in e ? Object.defineProperty(e, t, {
+function dMe(e, t, n) {
+ return (t = fMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jje(e) {
- var t = Yje(e, "string");
+function fMe(e) {
+ var t = pMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Yje(e, t) {
+function pMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65212,27 +65313,27 @@ function Yje(e, t) {
function E4(e, t) {
return e && e !== "none" ? e : t;
}
-var Xje = (e) => {
+var mMe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: E4(r, i),
- value: nH(n, t),
+ value: pH(n, t),
payload: e
}];
-}, Zje = /*#__PURE__*/ L.memo((e) => {
+}, hMe = /*#__PURE__*/ L.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: NR,
+ getPosition: WR,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: nH(o, t),
+ name: pH(o, t),
hide: s,
type: l,
color: E4(r, a),
@@ -65242,8 +65343,8 @@ var Xje = (e) => {
};
return /*#__PURE__*/ L.createElement(b0, { tooltipEntrySettings: d });
});
-function Qje(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = pL(r);
+function gMe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = wL(r);
return /*#__PURE__*/ L.createElement(A0, {
points: n,
dot: a,
@@ -65255,7 +65356,7 @@ function Qje(e) {
clipPathId: t
});
}
-function $je(e) {
+function _Me(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -65276,8 +65377,8 @@ function $je(e) {
return /*#__PURE__*/ L.createElement(m1, { value: t ? i : void 0 }, n);
}
function D4(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 = C4(a, Wje), p = pL(f), m = hL(f);
- return /*#__PURE__*/ L.createElement(L.Fragment, null, t?.length > 1 && /*#__PURE__*/ L.createElement(yL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ L.createElement(jG, S4({}, m, {
+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = C4(a, cMe), p = wL(f), m = EL(f);
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, t?.length > 1 && /*#__PURE__*/ L.createElement(AL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ L.createElement(jG, S4({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -65300,15 +65401,15 @@ function D4(e) {
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ L.createElement(Qje, {
+ }))), /*#__PURE__*/ L.createElement(gMe, {
points: t,
props: f,
clipPathId: i
}));
}
-function eMe(e) {
+function vMe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!AV(a) || !AV(o)) return null;
+ if (!VV(a) || !VV(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__*/ L.createElement("rect", {
x: 0,
@@ -65317,9 +65418,9 @@ function eMe(e) {
height: Math.floor(s)
}) : null;
}
-function tMe(e) {
+function yMe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!AV(a) || !AV(o)) return null;
+ if (!VV(a) || !VV(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__*/ L.createElement("rect", {
x: a < o ? a : a - s,
@@ -65328,32 +65429,32 @@ function tMe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function nMe(e) {
+function bMe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ L.createElement(eMe, {
+ return n === "vertical" ? /*#__PURE__*/ L.createElement(vMe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ L.createElement(tMe, {
+ }) : /*#__PURE__*/ L.createElement(yMe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function rMe(e) {
+function xMe(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 = XG((0, L.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = cU(), [g, _] = (0, L.useState)(!1), v = !g, y = (0, L.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = yU(), [g, _] = (0, L.useState)(!1), v = !g, y = (0, L.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, L.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ L.createElement($je, {
+ return /*#__PURE__*/ L.createElement(_Me, {
showLabels: v,
points: o
}, r.children, /*#__PURE__*/ L.createElement(YG, {
@@ -65372,18 +65473,18 @@ function rMe(e) {
if (x[r]) {
var i = x[r];
return T4(T4({}, t), {}, {
- x: OR(i.x, t.x, e),
- y: OR(i.y, t.y, e)
+ x: zR(i.x, t.x, e),
+ y: zR(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? OR(S, s, e) : AR(s) || SR(s) ? OR(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? zR(S, s, e) : VR(s) || NR(s) ? zR(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
return T4(T4({}, t), {}, {
- x: OR(i.x, t.x, e),
- y: OR(i.y, t.y, e)
+ x: zR(i.x, t.x, e),
+ y: zR(i.y, t.y, e)
});
}
return t;
@@ -65396,13 +65497,13 @@ function rMe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ L.createElement(yL, null, c && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ L.createElement(nMe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ L.createElement(AL, null, c && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ L.createElement(bMe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ L.createElement(yL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ L.createElement(D4, {
+ }))), /*#__PURE__*/ L.createElement(AL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ L.createElement(D4, {
points: o,
baseLine: s,
needClip: t,
@@ -65411,9 +65512,9 @@ function rMe(e) {
})));
}), /*#__PURE__*/ L.createElement(_1, { label: r.label }));
}
-function iMe(e) {
+function SMe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, L.useRef)(null), a = (0, L.useRef)();
- return /*#__PURE__*/ L.createElement(rMe, {
+ return /*#__PURE__*/ L.createElement(xMe, {
needClip: t,
clipPathId: n,
props: r,
@@ -65421,12 +65522,12 @@ function iMe(e) {
previousBaselineRef: a
});
}
-var aMe = class extends L.PureComponent {
+var CMe = class extends L.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 = Au("recharts-area", r), h = d, { r: g, strokeWidth: _ } = a4(t), v = s0(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ L.createElement(o$, { zIndex: p }, /*#__PURE__*/ L.createElement(yL, { className: m }, o && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement(e4, {
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: p }, /*#__PURE__*/ L.createElement(AL, { className: m }, o && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement(e4, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -65435,7 +65536,7 @@ var aMe = class extends L.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ L.createElement(iMe, {
+ }))), /*#__PURE__*/ L.createElement(SMe, {
needClip: o,
clipPathId: h,
props: this.props
@@ -65453,7 +65554,7 @@ var aMe = class extends L.PureComponent {
clipPath: b
}));
}
-}, oMe = {
+}, wMe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -65473,11 +65574,11 @@ var aMe = class extends L.PureComponent {
yAxisId: 0,
zIndex: WK.area
};
-function sMe(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 = C4(e, Gje), g = sU(), _ = JQ(), { needClip: v } = $2(p, m), y = EH(), { points: b, isRange: x, baseLine: S } = Q((t) => Uje(t, e.id, y)) ?? {}, C = P0();
+function TMe(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 = C4(e, lMe), g = vU(), _ = qQ(), { needClip: v } = $2(p, m), y = LH(), { points: b, isRange: x, baseLine: S } = Q((t) => sMe(t, e.id, y)) ?? {}, C = P0();
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__*/ L.createElement(aMe, S4({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ L.createElement(CMe, S4({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -65503,7 +65604,7 @@ function sMe(e) {
yAxisId: m
}));
}
-var cMe = (e, t, n, r, i) => {
+var EMe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -65513,17 +65614,17 @@ var cMe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function lMe(e) {
- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = cMe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function DMe(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = EMe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
- var o = LV(e, r);
+ var o = JV(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && LV(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && JV(e, r) == null;
return g ? {
- x: KV({
+ x: rH({
axis: s,
ticks: d,
bandSize: p,
@@ -65535,7 +65636,7 @@ function lMe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: KV({
+ y: rH({
axis: c,
ticks: f,
bandSize: p,
@@ -65563,12 +65664,12 @@ function lMe(e) {
isRange: _
};
}
-function uMe(e) {
- var t = UR(e, oMe), n = EH();
+function OMe(e) {
+ var t = ez(e, wMe), n = LH();
return /*#__PURE__*/ L.createElement(C0, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(x0, { legendPayload: Xje(t) }), /*#__PURE__*/ L.createElement(Zje, {
+ }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(x0, { legendPayload: mMe(t) }), /*#__PURE__*/ L.createElement(hMe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -65587,21 +65688,21 @@ function uMe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: GV(t.stackId),
+ stackId: nH(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ L.createElement(sMe, S4({}, t, { id: e }))));
+ }), /*#__PURE__*/ L.createElement(TMe, S4({}, t, { id: e }))));
}
-var O4 = /*#__PURE__*/ L.memo(uMe, PW);
+var O4 = /*#__PURE__*/ L.memo(OMe, GW);
O4.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var dMe = "Invariant failed";
-function fMe(e, t) {
- if (!e) throw Error(dMe);
+var kMe = "Invariant failed";
+function AMe(e, t) {
+ if (!e) throw Error(kMe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
@@ -65621,81 +65722,81 @@ function A4(e) {
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var pMe = function(e) {
+var jMe = 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) || AR(n);
- return i ? e(n, r) : (!i && fMe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ var i = Z(n) || VR(n);
+ return i ? e(n, r) : (!i && AMe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, mMe = (e, t, n) => n, j4 = $([KX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), hMe = $([j4], (e) => e?.maxBarSize), gMe = (e, t, n, r) => r, _Me = $([
- oU,
+}, MMe = (e, t, n) => n, j4 = $([KX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), NMe = $([j4], (e) => e?.maxBarSize), PMe = (e, t, n, r) => r, FMe = $([
+ _U,
KX,
m4,
h4,
- mMe
-], (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")), vMe = (e, t, n) => {
- var r = oU(e), i = m4(e, t), a = h4(e, t);
+ MMe
+], (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")), IMe = (e, t, n) => {
+ var r = _U(e), i = m4(e, t), a = h4(e, t);
if (i != null && a != null) return r === "horizontal" ? lZ(e, "yAxis", a, n) : lZ(e, "xAxis", i, n);
-}, yMe = $([
- _Me,
+}, LMe = $([
+ FMe,
LK,
(e, t) => {
- var n = oU(e), r = m4(e, t), i = h4(e, t);
- if (r != null && i != null) return n === "horizontal" ? GZ(e, "xAxis", r) : GZ(e, "yAxis", i);
+ var n = _U(e), r = m4(e, t), i = h4(e, t);
+ if (r != null && i != null) return n === "horizontal" ? WZ(e, "xAxis", r) : WZ(e, "yAxis", i);
}
-], $0), bMe = (e, t, n) => {
+], $0), RMe = (e, t, n) => {
var r = j4(e, t);
if (r == null) return 0;
var i = m4(e, t), a = h4(e, t);
if (i == null || a == null) return 0;
- var o = oU(e), s = PK(e), { maxBarSize: c } = r, l = AR(c) ? s : c, u, d;
- return o === "horizontal" ? (u = $Z(e, "xAxis", i, n), d = QZ(e, "xAxis", i, n)) : (u = $Z(e, "yAxis", a, n), d = QZ(e, "yAxis", a, n)), eH(u, d, !0) ?? l ?? 0;
+ var o = _U(e), s = PK(e), { maxBarSize: c } = r, l = VR(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = QZ(e, "xAxis", i, n), d = ZZ(e, "xAxis", i, n)) : (u = QZ(e, "yAxis", a, n), d = ZZ(e, "yAxis", a, n)), dH(u, d, !0) ?? l ?? 0;
}, M4 = (e, t, n) => {
- var r = oU(e), i = m4(e, t), a = h4(e, t);
+ var r = _U(e), i = m4(e, t), a = h4(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = $Z(e, "xAxis", i, n), s = QZ(e, "xAxis", i, n)) : (o = $Z(e, "yAxis", a, n), s = QZ(e, "yAxis", a, n)), eH(o, s);
+ return r === "horizontal" ? (o = QZ(e, "xAxis", i, n), s = ZZ(e, "xAxis", i, n)) : (o = QZ(e, "yAxis", a, n), s = ZZ(e, "yAxis", a, n)), dH(o, s);
}
-}, xMe = $([
- SH,
- wH,
+}, zMe = $([
+ NH,
+ FH,
(e, t, n) => {
var r = m4(e, t);
- if (r != null) return $Z(e, "xAxis", r, n);
+ if (r != null) return QZ(e, "xAxis", r, n);
},
(e, t, n) => {
var r = h4(e, t);
- if (r != null) return $Z(e, "yAxis", r, n);
+ if (r != null) return QZ(e, "yAxis", r, n);
},
(e, t, n) => {
var r = m4(e, t);
- if (r != null) return QZ(e, "xAxis", r, n);
+ if (r != null) return ZZ(e, "xAxis", r, n);
},
(e, t, n) => {
var r = h4(e, t);
- if (r != null) return QZ(e, "yAxis", r, n);
+ if (r != null) return ZZ(e, "yAxis", r, n);
},
$([$([
- yMe,
+ LMe,
PK,
FK,
IK,
- bMe,
+ RMe,
M4,
- hMe
+ NMe
], n2), j4], i2),
- oU,
+ _U,
xK,
M4,
- $([vMe, j4], r2),
+ $([IMe, j4], r2),
j4,
- gMe
+ PMe
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return YMe({
+ if (_ != null) return pNe({
layout: s,
barSettings: d,
pos: o,
@@ -65712,7 +65813,7 @@ var pMe = function(e) {
dataStartIndex: m
});
}
-}), SMe = ["index"];
+}), BMe = ["index"];
function N4() {
return N4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -65722,16 +65823,16 @@ function N4() {
return e;
}, N4.apply(null, arguments);
}
-function CMe(e, t) {
+function VMe(e, t) {
if (e == null) return {};
- var n, r, i = wMe(e, t);
+ var n, r, i = HMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function wMe(e, t) {
+function HMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65740,31 +65841,31 @@ function wMe(e, t) {
}
return n;
}
-var P4 = /*#__PURE__*/ (0, L.createContext)(void 0), TMe = (e) => {
+var P4 = /*#__PURE__*/ (0, L.createContext)(void 0), UMe = (e) => {
var t = (0, L.useContext)(P4);
if (t != null) return t.stackId;
- if (e != null) return GV(e);
-}, EMe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, DMe = (e) => {
+ if (e != null) return nH(e);
+}, WMe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, GMe = (e) => {
var t = (0, L.useContext)(P4);
if (t != null) {
var { stackId: n } = t;
- return `url(#${EMe(n, e)})`;
+ return `url(#${WMe(n, e)})`;
}
}, F4 = (e) => {
- var { index: t } = e, n = CMe(e, SMe), r = DMe(t);
- return /*#__PURE__*/ L.createElement(yL, N4({
+ var { index: t } = e, n = VMe(e, BMe), r = GMe(t);
+ return /*#__PURE__*/ L.createElement(AL, N4({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, OMe = [
+}, KMe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], kMe = [
+], qMe = [
"value",
"background",
"tooltipPosition"
-], AMe = ["id"], jMe = [
+], JMe = ["id"], YMe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
@@ -65792,26 +65893,26 @@ function R4(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) {
- MMe(e, t, n[t]);
+ XMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function MMe(e, t, n) {
- return (t = NMe(t)) in e ? Object.defineProperty(e, t, {
+function XMe(e, t, n) {
+ return (t = ZMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NMe(e) {
- var t = PMe(e, "string");
+function ZMe(e) {
+ var t = QMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PMe(e, t) {
+function QMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65823,14 +65924,14 @@ function PMe(e, t) {
}
function z4(e, t) {
if (e == null) return {};
- var n, r, i = FMe(e, t);
+ var n, r, i = $Me(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function FMe(e, t) {
+function $Me(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65839,27 +65940,27 @@ function FMe(e, t) {
}
return n;
}
-var IMe = (e) => {
+var eNe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: nH(n, t),
+ value: pH(n, t),
payload: e
}];
-}, LMe = /*#__PURE__*/ L.memo((e) => {
+}, tNe = /*#__PURE__*/ L.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: NR,
+ getPosition: WR,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: nH(a, t),
+ name: pH(a, t),
hide: o,
type: c,
color: i,
@@ -65869,17 +65970,17 @@ var IMe = (e) => {
};
return /*#__PURE__*/ L.createElement(b0, { tooltipEntrySettings: u });
});
-function RMe(e) {
- var t = Q(zQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = z4(a, OMe), u = _0(o, r, a.id), d = v0(s), f = y0(c, r, a.id);
+function nNe(e) {
+ var t = Q(RQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = z4(a, KMe), u = _0(o, r, a.id), d = v0(s), f = y0(c, r, a.id);
if (!i || n == null) return null;
- var p = mL(i);
- return /*#__PURE__*/ L.createElement(o$, { zIndex: _2(i, WK.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = z4(e, kMe);
+ var p = TL(i);
+ return /*#__PURE__*/ L.createElement(a$, { zIndex: _2(i, WK.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = z4(e, qMe);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = R4(R4(R4(R4(R4({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), VR(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), QR(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -65890,7 +65991,7 @@ function RMe(e) {
return /*#__PURE__*/ L.createElement(A4, I4({ key: `background-bar-${n}` }, _));
}));
}
-function zMe(e) {
+function rNe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -65910,8 +66011,8 @@ function zMe(e) {
});
return /*#__PURE__*/ L.createElement(m1, { value: t ? i : void 0 }, n);
}
-function BMe(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(zQ), c = Q(VQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, L.useState)(!1), [f, p] = (0, L.useState)(!1);
+function iNe(e) {
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(RQ), c = Q(BQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, L.useState)(!1), [f, p] = (0, L.useState)(!1);
(0, L.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -65929,9 +66030,9 @@ function BMe(e) {
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ L.createElement(o$, { zIndex: WK.activeBar }, /*#__PURE__*/ L.createElement(F4, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ L.createElement(a$, { zIndex: WK.activeBar }, /*#__PURE__*/ L.createElement(F4, { index: i.originalDataIndex }, v)) : v;
}
-function VMe(e) {
+function aNe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
return /*#__PURE__*/ L.createElement(A4, I4({}, n, { name: String(n.name) }, r, {
isActive: !1,
@@ -65940,24 +66041,24 @@ function VMe(e) {
dataKey: a
}));
}
-function HMe(e) {
- var { data: t, props: n } = e, r = pL(n) ?? {}, { id: i } = r, a = z4(r, AMe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = z4(n, jMe), p = _0(l, s, i), m = v0(d), h = y0(u, s, i);
+function oNe(e) {
+ var { data: t, props: n } = e, r = wL(n) ?? {}, { id: i } = r, a = z4(r, JMe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = z4(n, YMe), p = _0(l, s, i), m = v0(d), h = y0(u, s, i);
return t ? /*#__PURE__*/ L.createElement(L.Fragment, null, t.map((e, t) => /*#__PURE__*/ L.createElement(F4, I4({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, VR(f, e, t), {
+ }, QR(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ L.createElement(BMe, {
+ }), c ? /*#__PURE__*/ L.createElement(iNe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ L.createElement(VMe, {
+ }) : /*#__PURE__*/ L.createElement(aNe, {
shape: o,
baseProps: a,
entry: e,
@@ -65965,13 +66066,13 @@ function HMe(e) {
dataKey: s
})))) : null;
}
-function UMe(e) {
+function sNe(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 = XG(t, "recharts-bar-"), [p, m] = (0, L.useState)(!1), h = !p, g = (0, L.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, L.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ L.createElement(zMe, {
+ return /*#__PURE__*/ L.createElement(rNe, {
showLabels: h,
rects: r
}, /*#__PURE__*/ L.createElement(YG, {
@@ -65987,68 +66088,68 @@ function UMe(e) {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
if (r) return R4(R4({}, t), {}, {
- x: OR(r.x, t.x, e),
- y: OR(r.y, t.y, e),
- width: OR(r.width, t.width, e),
- height: OR(r.height, t.height, e)
+ x: zR(r.x, t.x, e),
+ y: zR(r.y, t.y, e),
+ width: zR(r.width, t.width, e),
+ height: zR(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = OR(0, t.height, e), o = OR(t.stackedBarStart, t.y, e);
+ var a = zR(0, t.height, e), o = zR(t.stackedBarStart, t.y, e);
return R4(R4({}, t), {}, {
y: o,
height: a
});
}
- var s = OR(0, t.width, e), c = OR(t.stackedBarStart, t.x, e);
+ var s = zR(0, t.width, e), c = zR(t.stackedBarStart, t.x, e);
return R4(R4({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ L.createElement(yL, null, /*#__PURE__*/ L.createElement(HMe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ L.createElement(AL, null, /*#__PURE__*/ L.createElement(oNe, {
props: t,
data: a
}));
}), /*#__PURE__*/ L.createElement(_1, { label: t.label }), t.children);
}
-function WMe(e) {
+function cNe(e) {
var t = (0, L.useRef)(null);
- return /*#__PURE__*/ L.createElement(UMe, {
+ return /*#__PURE__*/ L.createElement(sNe, {
previousRectanglesRef: t,
props: e
});
}
-var B4 = 0, GMe = (e, t) => {
+var B4 = 0, lNe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: LV(e, t)
+ errorVal: JV(e, t)
};
-}, KMe = class extends L.PureComponent {
+}, uNe = class extends L.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 = Au("recharts-bar", r), u = c;
- return /*#__PURE__*/ L.createElement(yL, {
+ return /*#__PURE__*/ L.createElement(AL, {
className: l,
id: c
}, o && /*#__PURE__*/ L.createElement("defs", null, /*#__PURE__*/ L.createElement(e4, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ L.createElement(yL, {
+ })), /*#__PURE__*/ L.createElement(AL, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ L.createElement(RMe, {
+ }, /*#__PURE__*/ L.createElement(nNe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ L.createElement(WMe, this.props)));
+ }), /*#__PURE__*/ L.createElement(cNe, this.props)));
}
-}, qMe = {
+}, dNe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -66063,17 +66164,17 @@ var B4 = 0, GMe = (e, t) => {
yAxisId: 0,
zIndex: WK.bar
};
-function JMe(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 } = $2(t, n), f = sU(), p = EH(), m = o0(e.children, C$), h = Q((t) => xMe(t, e.id, p, m));
+function fNe(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 } = $2(t, n), f = vU(), p = LH(), m = o0(e.children, S$), h = Q((t) => zMe(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__*/ L.createElement(Q2, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: GMe,
+ dataPointFormatter: lNe,
errorBarOffset: g
- }, /*#__PURE__*/ L.createElement(KMe, I4({}, e, {
+ }, /*#__PURE__*/ L.createElement(uNe, I4({}, e, {
layout: f,
needClip: d,
data: h,
@@ -66089,20 +66190,20 @@ function JMe(e) {
isAnimationActive: u
})));
}
-function YMe(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 = JV({ numericAxis: _ }), b = _.scale.map(y);
+function pNe(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 = aH({ 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;
- _ = HV(E, v);
- } else _ = LV(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = pMe(r, B4)(_[1], f);
+ _ = $V(E, v);
+ } else _ = JV(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = jMe(r, B4)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = qV({
+ x = iH({
axis: s,
ticks: l,
bandSize: o,
@@ -66111,19 +66212,19 @@ function YMe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = SR(A) ? 0 : A, T = {
+ if (w = NR(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 = xR(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = MR(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 = qV({
+ if (x = M, S = iH({
axis: c,
ticks: u,
bandSize: o,
@@ -66136,7 +66237,7 @@ function YMe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var ee = xR(C || D) * (Math.abs(D) - Math.abs(C));
+ var ee = MR(C || D) * (Math.abs(D) - Math.abs(C));
C += ee;
}
}
@@ -66158,12 +66259,12 @@ function YMe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function XMe(e) {
- var t = UR(e, qMe), n = TMe(t.stackId), r = EH();
+function mNe(e) {
+ var t = ez(e, dNe), n = UMe(t.stackId), r = LH();
return /*#__PURE__*/ L.createElement(C0, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(x0, { legendPayload: IMe(t) }), /*#__PURE__*/ L.createElement(LMe, {
+ }, (e) => /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(x0, { legendPayload: eNe(t) }), /*#__PURE__*/ L.createElement(tNe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -66188,23 +66289,23 @@ function XMe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ L.createElement(o$, { zIndex: t.zIndex }, /*#__PURE__*/ L.createElement(JMe, I4({}, t, { id: e })))));
+ }), /*#__PURE__*/ L.createElement(a$, { zIndex: t.zIndex }, /*#__PURE__*/ L.createElement(fNe, I4({}, t, { id: e })))));
}
-var V4 = /*#__PURE__*/ L.memo(XMe, PW);
+var V4 = /*#__PURE__*/ L.memo(mNe, GW);
V4.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var ZMe = ["domain", "range"], QMe = ["domain", "range"];
+var hNe = ["domain", "range"], gNe = ["domain", "range"];
function H4(e, t) {
if (e == null) return {};
- var n, r, i = $Me(e, t);
+ var n, r, i = _Ne(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function $Me(e, t) {
+function _Ne(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66218,16 +66319,16 @@ function U4(e, t) {
}
function W4(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = H4(e, ZMe), { domain: a, range: o } = t, s = H4(t, QMe);
- return !U4(n, a) || !U4(r, o) ? !1 : PW(i, s);
+ var { domain: n, range: r } = e, i = H4(e, hNe), { domain: a, range: o } = t, s = H4(t, gNe);
+ return !U4(n, a) || !U4(r, o) ? !1 : GW(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var eNe = ["type"], tNe = [
+var vNe = ["type"], yNe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], nNe = ["id", "scale"];
+], bNe = ["id", "scale"];
function G4() {
return G4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -66251,26 +66352,26 @@ function q4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K4(Object(n), !0).forEach(function(t) {
- rNe(e, t, n[t]);
+ xNe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rNe(e, t, n) {
- return (t = iNe(t)) in e ? Object.defineProperty(e, t, {
+function xNe(e, t, n) {
+ return (t = SNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iNe(e) {
- var t = aNe(e, "string");
+function SNe(e) {
+ var t = CNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aNe(e, t) {
+function CNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66282,14 +66383,14 @@ function aNe(e, t) {
}
function J4(e, t) {
if (e == null) return {};
- var n, r, i = oNe(e, t);
+ var n, r, i = wNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function oNe(e, t) {
+function wNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66298,23 +66399,23 @@ function oNe(e, t) {
}
return n;
}
-function sNe(e) {
- var t = gz(), n = (0, L.useRef)(null), r = cU(), { type: i } = e, a = J4(e, eNe), o = JK(r, "xAxis", i), s = (0, L.useMemo)(() => {
+function TNe(e) {
+ var t = Dz(), n = (0, L.useRef)(null), r = yU(), { type: i } = e, a = J4(e, vNe), o = JK(r, "xAxis", i), s = (0, L.useMemo)(() => {
if (o != null) return q4(q4({}, a), {}, { type: o });
}, [a, o]);
return (0, L.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(COe(s)) : n.current !== s && t(wOe({
+ s != null && (n.current === null ? t(VOe(s)) : n.current !== s && t(HOe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, L.useLayoutEffect)(() => () => {
- n.current &&= (t(TOe(n.current)), null);
+ n.current &&= (t(UOe(n.current)), null);
}, [t]), null;
}
-var cNe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(wH), i = EH(), a = "xAxis", o = Q((e) => XZ(e, a, t, i)), s = Q((e) => HZ(e, t)), c = Q((e) => ACe(e, t)), l = Q((e) => IX(e, t));
+var ENe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(FH), i = LH(), a = "xAxis", o = Q((e) => YZ(e, a, t, i)), s = Q((e) => HZ(e, t)), c = Q((e) => JCe(e, t)), l = Q((e) => IX(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = J4(e, tNe), { id: m, scale: h } = l, g = J4(l, nNe);
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = J4(e, yNe), { id: m, scale: h } = l, g = J4(l, bNe);
return /*#__PURE__*/ L.createElement(W2, G4({}, p, g, {
x: c.x,
y: c.y,
@@ -66326,7 +66427,7 @@ var cNe = (e) => {
axisType: a,
axisId: t
}));
-}, lNe = {
+}, DNe = {
allowDataOverflow: FX.allowDataOverflow,
allowDecimals: FX.allowDecimals,
allowDuplicatedCategory: FX.allowDuplicatedCategory,
@@ -66351,8 +66452,8 @@ var cNe = (e) => {
niceTicks: FX.niceTicks,
xAxisId: 0
}, Y4 = /*#__PURE__*/ L.memo((e) => {
- var t = UR(e, lNe);
- return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(sNe, {
+ var t = ez(e, DNe);
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(TNe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -66378,16 +66479,16 @@ var cNe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ L.createElement(cNe, t));
+ }), /*#__PURE__*/ L.createElement(ENe, t));
}, W4);
Y4.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var uNe = ["type"], dNe = [
+var ONe = ["type"], kNe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], fNe = ["id", "scale"];
+], ANe = ["id", "scale"];
function X4() {
return X4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -66411,26 +66512,26 @@ function Q4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Z4(Object(n), !0).forEach(function(t) {
- pNe(e, t, n[t]);
+ jNe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function pNe(e, t, n) {
- return (t = mNe(t)) in e ? Object.defineProperty(e, t, {
+function jNe(e, t, n) {
+ return (t = MNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mNe(e) {
- var t = hNe(e, "string");
+function MNe(e) {
+ var t = NNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hNe(e, t) {
+function NNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66442,14 +66543,14 @@ function hNe(e, t) {
}
function $4(e, t) {
if (e == null) return {};
- var n, r, i = gNe(e, t);
+ var n, r, i = PNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function gNe(e, t) {
+function PNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66458,27 +66559,27 @@ function gNe(e, t) {
}
return n;
}
-function _Ne(e) {
- var t = gz(), n = (0, L.useRef)(null), r = cU(), { type: i } = e, a = $4(e, uNe), o = JK(r, "yAxis", i), s = (0, L.useMemo)(() => {
+function FNe(e) {
+ var t = Dz(), n = (0, L.useRef)(null), r = yU(), { type: i } = e, a = $4(e, ONe), o = JK(r, "yAxis", i), s = (0, L.useMemo)(() => {
if (o != null) return Q4(Q4({}, a), {}, { type: o });
}, [o, a]);
return (0, L.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(EOe(s)) : n.current !== s && t(DOe({
+ s != null && (n.current === null ? t(WOe(s)) : n.current !== s && t(GOe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, L.useLayoutEffect)(() => () => {
- n.current &&= (t(OOe(n.current)), null);
+ n.current &&= (t(KOe(n.current)), null);
}, [t]), null;
}
-function vNe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = Q(wH), c = EH(), l = gz(), u = "yAxis", d = Q((e) => WZ(e, t)), f = Q((e) => UZ(e, t)), p = Q((e) => XZ(e, u, t, c)), m = Q((e) => zX(e, t));
+function INe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = Q(FH), c = LH(), l = Dz(), u = "yAxis", d = Q((e) => UZ(e, t)), f = Q((e) => YCe(e, t)), p = Q((e) => YZ(e, u, t, c)), m = Q((e) => zX(e, t));
if ((0, L.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || o1(i) || /*#__PURE__*/ (0, L.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(MOe({
+ Math.round(d.width) !== Math.round(n) && l(XOe({
id: t,
width: n
}));
@@ -66493,7 +66594,7 @@ function vNe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = $4(e, dNe), { id: y, scale: b } = m, x = $4(m, fNe);
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = $4(e, kNe), { id: y, scale: b } = m, x = $4(m, ANe);
return /*#__PURE__*/ L.createElement(W2, X4({}, v, x, {
ref: a,
labelRef: o,
@@ -66509,7 +66610,7 @@ function vNe(e) {
axisId: t
}));
}
-var yNe = {
+var LNe = {
allowDataOverflow: RX.allowDataOverflow,
allowDecimals: RX.allowDecimals,
allowDuplicatedCategory: RX.allowDuplicatedCategory,
@@ -66534,8 +66635,8 @@ var yNe = {
width: RX.width,
yAxisId: 0
}, e3 = /*#__PURE__*/ L.memo((e) => {
- var t = UR(e, yNe);
- return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(_Ne, {
+ var t = ez(e, LNe);
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(FNe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -66561,27 +66662,27 @@ var yNe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ L.createElement(vNe, t));
+ }), /*#__PURE__*/ L.createElement(INe, t));
}, W4);
e3.displayName = "YAxis";
var t3 = $([
(e, t) => t,
- oU,
+ _U,
sq,
hq,
- MQ,
- PQ,
- Ewe,
- SH
-], Nwe);
+ jQ,
+ NQ,
+ Gwe,
+ NH
+], Qwe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function bNe(e) {
+function RNe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
function n3(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (bNe(e)) {
+ if (RNe(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -66596,33 +66697,33 @@ function n3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var r3 = KB("mouseClick"), i3 = EV();
+var r3 = rV("mouseClick"), i3 = LV();
i3.startListening({
actionCreator: r3,
effect: (e, t) => {
var n = e.payload, r = t3(t.getState(), n3(n));
- r?.activeIndex != null && t.dispatch(BCe({
+ r?.activeIndex != null && t.dispatch(awe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var a3 = KB("mouseMove"), o3 = EV(), s3 = null, c3 = null, l3 = null;
+var a3 = rV("mouseMove"), o3 = LV(), s3 = null, c3 = null, l3 = null;
o3.startListening({
actionCreator: a3,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
s3 !== null && (cancelAnimationFrame(s3), s3 = null), c3 !== null && (typeof r != "number" || !a) && (clearTimeout(c3), c3 = null), l3 = n3(n);
var o = () => {
- var e = t.getState(), n = rQ(e, e.tooltip.settings.shared);
+ var e = t.getState(), n = nQ(e, e.tooltip.settings.shared);
if (!l3) {
s3 = null, c3 = null;
return;
}
if (n === "axis") {
var r = t3(e, l3);
- r?.activeIndex == null ? t.dispatch(cQ()) : t.dispatch(lQ({
+ r?.activeIndex == null ? t.dispatch(sQ()) : t.dispatch(cQ({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
@@ -66639,7 +66740,7 @@ o3.startListening({
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function xNe(e, t) {
+function zNe(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
@@ -66656,17 +66757,17 @@ var u3 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, d3 = tV({
+}, d3 = fV({
name: "rootProps",
initialState: u3,
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? u3.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;
} }
-}), SNe = d3.reducer, { updateOptions: CNe } = d3.actions, f3 = tV({
+}), BNe = d3.reducer, { updateOptions: VNe } = d3.actions, f3 = fV({
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: wNe } = f3.actions, TNe = f3.reducer, p3 = KB("keyDown"), m3 = KB("focus"), h3 = KB("blur"), g3 = EV(), _3 = null, v3 = null, y3 = null;
+}), { updatePolarOptions: HNe } = f3.actions, UNe = f3.reducer, p3 = rV("keyDown"), m3 = rV("focus"), h3 = rV("blur"), g3 = LV(), _3 = null, v3 = null, y3 = null;
g3.startListening({
actionCreator: p3,
effect: (e, t) => {
@@ -66679,22 +66780,22 @@ g3.startListening({
if (e.rootProps.accessibilityLayer === !1) return;
var { keyboardInteraction: n } = e.tooltip, r = y3;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = hQ(n, EQ(e), sZ(e), AQ(e)), a = i == null ? -1 : Number(i);
+ var i = mQ(n, TQ(e), sZ(e), kQ(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = PQ(e);
+ var o = NQ(e);
if (r === "Enter") {
- var s = t$(e, "axis", "hover", String(n.index));
- t.dispatch(dQ({
+ var s = e$(e, "axis", "hover", String(n.index));
+ t.dispatch(uQ({
active: !n.active,
activeIndex: n.index,
activeCoordinate: s
}));
return;
}
- var c = jCe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = XCe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = t$(e, "axis", "hover", String(l));
- t.dispatch(dQ({
+ var u = e$(e, "axis", "hover", String(l));
+ t.dispatch(uQ({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
@@ -66718,8 +66819,8 @@ g3.startListening({
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
if (!r.active && r.index == null) {
- var i = "0", a = t$(n, "axis", "hover", String(i));
- t.dispatch(dQ({
+ var i = "0", a = e$(n, "axis", "hover", String(i));
+ t.dispatch(uQ({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -66733,7 +66834,7 @@ g3.startListening({
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
- r.active && t.dispatch(dQ({
+ r.active && t.dispatch(uQ({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -66754,7 +66855,7 @@ function b3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var x3 = KB("externalEvent"), S3 = EV(), C3 = /* @__PURE__ */ new Map(), w3 = /* @__PURE__ */ new Map(), T3 = /* @__PURE__ */ new Map();
+var x3 = rV("externalEvent"), S3 = LV(), C3 = /* @__PURE__ */ new Map(), w3 = /* @__PURE__ */ new Map(), T3 = /* @__PURE__ */ new Map();
S3.startListening({
actionCreator: x3,
effect: (e, t) => {
@@ -66774,12 +66875,12 @@ S3.startListening({
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: fwe(a),
- activeDataKey: VQ(a),
- activeIndex: zQ(a),
- activeLabel: BQ(a),
- activeTooltipIndex: zQ(a),
- isTooltipActive: pwe(a)
+ activeCoordinate: jwe(a),
+ activeDataKey: BQ(a),
+ activeIndex: RQ(a),
+ activeLabel: zQ(a),
+ activeTooltipIndex: RQ(a),
+ isTooltipActive: Mwe(a)
};
n && n(o, r);
} finally {
@@ -66803,8 +66904,8 @@ S3.startListening({
}
}
});
-var ENe = $([
- $([yQ], (e) => e.tooltipItemPayloads),
+var WNe = $([
+ $([vQ], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -66815,7 +66916,7 @@ var ENe = $([
if (i != null) return i(t);
}
}
-}), E3 = KB("touchMove"), D3 = EV(), O3 = null, k3 = null, A3 = null, j3 = null;
+}), E3 = rV("touchMove"), D3 = LV(), O3 = null, k3 = null, A3 = null, j3 = null;
D3.startListening({
actionCreator: E3,
effect: (e, t) => {
@@ -66830,7 +66931,7 @@ D3.startListening({
}));
var o = () => {
if (j3 != null) {
- var e = t.getState(), n = rQ(e, e.tooltip.settings.shared);
+ var e = t.getState(), n = nQ(e, e.tooltip.settings.shared);
if (n === "axis") {
var r = A3?.[0];
if (r == null) {
@@ -66838,7 +66939,7 @@ D3.startListening({
return;
}
var i = t3(e, r);
- i?.activeIndex != null && t.dispatch(lQ({
+ i?.activeIndex != null && t.dispatch(cQ({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
@@ -66848,10 +66949,10 @@ D3.startListening({
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(dH), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = TQ(e).find((e) => e.id === c);
+ var s = o.getAttribute(SH), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = wQ(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = ENe(e, s, c);
- t.dispatch(sQ({
+ var { dataKey: u } = l, d = WNe(e, s, c);
+ t.dispatch(oQ({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
@@ -66882,33 +66983,33 @@ var M3 = {
"scroll",
"wheel"
]
-}, N3 = tV({
+}, N3 = fV({
name: "eventSettings",
initialState: M3,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = cW(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = yW(t.payload.throttledEvents));
} }
-}), { setEventSettings: DNe } = N3.actions, ONe = N3.reducer, kNe = Pz({
- brush: Kke,
- cartesianAxis: NOe,
- chartData: oTe,
- errorBars: dje,
- eventSettings: ONe,
- graphicalItems: lOe,
- layout: Nve,
- legend: hW,
- options: tTe,
- polarAxis: $Ee,
- polarOptions: TNe,
- referenceElements: rAe,
- renderedTicks: jAe,
- rootProps: SNe,
- tooltip: VCe,
- zIndex: Kwe
-}), ANe = function(e) {
+}), { setEventSettings: GNe } = N3.actions, KNe = N3.reducer, qNe = Gz({
+ brush: uAe,
+ cartesianAxis: ZOe,
+ chartData: TTe,
+ errorBars: kje,
+ eventSettings: KNe,
+ graphicalItems: DOe,
+ layout: Bve,
+ legend: EW,
+ options: bTe,
+ polarAxis: _De,
+ polarOptions: UNe,
+ referenceElements: xAe,
+ renderedTicks: YAe,
+ rootProps: BNe,
+ tooltip: owe,
+ zIndex: dTe
+}), JNe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return ave({
- reducer: kNe,
+ return fve({
+ reducer: qNe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -66926,10 +67027,10 @@ var M3 = {
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat($B({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(uV({ type: "raf" }));
},
- devTools: hG.devToolsEnabled && {
- serialize: { replacer: xNe },
+ devTools: _G.devToolsEnabled && {
+ serialize: { replacer: zNe },
name: `recharts-${t}`
}
});
@@ -66937,21 +67038,21 @@ var M3 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function P3(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = EH(), a = (0, L.useRef)(null);
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = LH(), a = (0, L.useRef)(null);
if (i) return n;
- a.current ??= ANe(t, r);
- var o = hz;
- return /*#__PURE__*/ L.createElement(jW, {
+ a.current ??= JNe(t, r);
+ var o = Ez;
+ return /*#__PURE__*/ L.createElement(HW, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function jNe(e) {
- var { layout: t, margin: n } = e, r = gz(), i = EH();
+function YNe(e) {
+ var { layout: t, margin: n } = e, r = Dz(), i = LH();
return (0, L.useEffect)(() => {
- i || (r(Ave(t)), r(kve(n)));
+ i || (r(Lve(t)), r(Ive(n)));
}, [
r,
i,
@@ -66959,31 +67060,31 @@ function jNe(e) {
n
]), null;
}
-var F3 = /*#__PURE__*/ (0, L.memo)(jNe, PW);
+var F3 = /*#__PURE__*/ (0, L.memo)(YNe, GW);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function I3(e) {
- var t = gz();
+ var t = Dz();
return (0, L.useEffect)(() => {
- t(CNe(e));
+ t(VNe(e));
}, [t, e]), null;
}
var L3 = /*#__PURE__*/ (0, L.memo)((e) => {
- var t = gz();
+ var t = Dz();
return (0, L.useEffect)(() => {
- t(DNe(e));
+ t(GNe(e));
}, [t, e]), null;
-}, PW);
+}, GW);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function R3(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, L.useRef)(null), i = gz();
- return (0, L.useLayoutEffect)(() => (r.current && i(Wwe({
+ var { zIndex: t, isPanorama: n } = e, r = (0, L.useRef)(null), i = Dz();
+ return (0, L.useLayoutEffect)(() => (r.current && i(lTe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(Gwe({
+ i(uTe({
zIndex: t,
isPanorama: n
}));
@@ -66998,7 +67099,7 @@ function R3(e) {
});
}
function z3(e) {
- var { children: t, isPanorama: n } = e, r = Q(Fwe);
+ var { children: t, isPanorama: n } = e, r = Q(eTe);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
return /*#__PURE__*/ L.createElement(L.Fragment, null, i.map((e) => /*#__PURE__*/ L.createElement(R3, {
@@ -67013,17 +67114,17 @@ function z3(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var MNe = ["children"];
-function NNe(e, t) {
+var XNe = ["children"];
+function ZNe(e, t) {
if (e == null) return {};
- var n, r, i = PNe(e, t);
+ var n, r, i = QNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function PNe(e, t) {
+function QNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67041,46 +67142,46 @@ function B3() {
return e;
}, B3.apply(null, arguments);
}
-var FNe = {
+var $Ne = {
width: "100%",
height: "100%",
display: "block"
-}, INe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var n = rU(), r = iU(), i = xG();
- if (!jV(n) || !jV(r)) return null;
+}, ePe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var n = mU(), r = hU(), i = xG();
+ if (!HV(n) || !HV(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__*/ L.createElement(_L, B3({}, 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__*/ L.createElement(OL, B3({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: FNe,
+ style: $Ne,
ref: t
}), a);
-}), LNe = (e) => {
- var { children: t } = e, n = Q(OH);
+}), tPe = (e) => {
+ var { children: t } = e, n = Q(zH);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ L.createElement(_L, {
+ return /*#__PURE__*/ L.createElement(OL, {
width: r,
height: i,
x: o,
y: a
}, t);
}, V3 = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var { children: n } = e, r = NNe(e, MNe);
- return EH() ? /*#__PURE__*/ L.createElement(LNe, null, /*#__PURE__*/ L.createElement(z3, { isPanorama: !0 }, n)) : /*#__PURE__*/ L.createElement(INe, B3({ ref: t }, r), /*#__PURE__*/ L.createElement(z3, { isPanorama: !1 }, n));
+ var { children: n } = e, r = ZNe(e, XNe);
+ return LH() ? /*#__PURE__*/ L.createElement(tPe, null, /*#__PURE__*/ L.createElement(z3, { isPanorama: !0 }, n)) : /*#__PURE__*/ L.createElement(ePe, B3({ ref: t }, r), /*#__PURE__*/ L.createElement(z3, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function RNe() {
- var e = gz(), [t, n] = (0, L.useState)(null), r = Q(sH);
+function nPe() {
+ var e = Dz(), [t, n] = (0, L.useState)(null), r = Q(vH);
return (0, L.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- AV(n) && n !== r && e(Mve(n));
+ VV(n) && n !== r && e(zve(n));
}
}, [
t,
@@ -67100,30 +67201,30 @@ function H3(e, t) {
}
return n;
}
-function zNe(e) {
+function rPe(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) {
- BNe(e, t, n[t]);
+ iPe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BNe(e, t, n) {
- return (t = VNe(t)) in e ? Object.defineProperty(e, t, {
+function iPe(e, t, n) {
+ return (t = aPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VNe(e) {
- var t = HNe(e, "string");
+function aPe(e) {
+ var t = oPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HNe(e, t) {
+function oPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67142,7 +67243,7 @@ function U3() {
return e;
}, U3.apply(null, arguments);
}
-var UNe = () => (hTe(), null);
+var sPe = () => (PTe(), null);
function W3(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
@@ -67151,7 +67252,7 @@ function W3(e) {
}
return 0;
}
-var WNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+var cPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var n = (0, L.useRef)(null), [r, i] = (0, L.useState)({
containerWidth: W3(e.style?.width),
containerHeight: W3(e.style?.height)
@@ -67179,11 +67280,11 @@ var WNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
}, [t, a]);
return (0, L.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(fU, {
+ }, [a]), /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(CU, {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ L.createElement("div", U3({ ref: o }, e)));
-}), GNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+}), lPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, L.useState)({
containerWidth: W3(n),
containerHeight: W3(r)
@@ -67201,32 +67302,32 @@ var WNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(fU, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(CU, {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ L.createElement("div", U3({ ref: s }, e)));
-}), KNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+}), uPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(fU, {
+ return /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(CU, {
width: n,
height: r
}), /*#__PURE__*/ L.createElement("div", U3({ ref: t }, e)));
-}), qNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+}), dPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ L.createElement(GNe, U3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ L.createElement(KNe, U3({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ L.createElement(lPe, U3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ L.createElement(uPe, U3({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(fU, {
+ })) : /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(CU, {
width: n,
height: r
}), /*#__PURE__*/ L.createElement("div", U3({ ref: t }, e)));
});
-function JNe(e) {
- return e ? WNe : qNe;
+function fPe(e) {
+ return e ? cPe : dPe;
}
-var YNe = /*#__PURE__*/ (0, L.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, L.useRef)(null), x = gz(), [S, C] = (0, L.useState)(null), [w, T] = (0, L.useState)(null), E = RNe(), D = XH(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, L.useCallback)((e) => {
+var pPe = /*#__PURE__*/ (0, L.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, L.useRef)(null), x = Dz(), [S, C] = (0, L.useState)(null), [w, T] = (0, L.useState)(null), E = nPe(), D = sU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, L.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -67244,7 +67345,7 @@ var YNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
reactEvent: e
}));
}, [x, l]), N = (0, L.useCallback)((e) => {
- x(cQ()), x(x3({
+ x(sQ()), x(x3({
handler: u,
reactEvent: e
}));
@@ -67298,12 +67399,12 @@ var YNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
handler: p,
reactEvent: e
}));
- }, [x, p]), le = JNe(v);
- return /*#__PURE__*/ L.createElement(u$.Provider, { value: S }, /*#__PURE__*/ L.createElement(bL.Provider, { value: w }, /*#__PURE__*/ L.createElement(le, {
+ }, [x, p]), le = fPe(v);
+ return /*#__PURE__*/ L.createElement(l$.Provider, { value: S }, /*#__PURE__*/ L.createElement(jL.Provider, { value: w }, /*#__PURE__*/ L.createElement(le, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Au("recharts-wrapper", r),
- style: zNe({
+ style: rPe({
position: "relative",
cursor: "default",
width: O,
@@ -67324,8 +67425,8 @@ var YNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
onTouchMove: se,
onTouchStart: oe,
ref: A
- }, /*#__PURE__*/ L.createElement(UNe, null), n)));
-}), XNe = [
+ }, /*#__PURE__*/ L.createElement(sPe, null), n)));
+}), mPe = [
"width",
"height",
"responsive",
@@ -67336,16 +67437,16 @@ var YNe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
"title",
"desc"
];
-function ZNe(e, t) {
+function hPe(e, t) {
if (e == null) return {};
- var n, r, i = QNe(e, t);
+ var n, r, i = gPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function QNe(e, t) {
+function gPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67355,15 +67456,15 @@ function QNe(e, t) {
return n;
}
var G3 = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = pL(ZNe(e, XNe));
- return c ? /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(fU, {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = wL(hPe(e, mPe));
+ return c ? /*#__PURE__*/ L.createElement(L.Fragment, null, /*#__PURE__*/ L.createElement(CU, {
width: n,
height: r
}), /*#__PURE__*/ L.createElement(V3, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ L.createElement(YNe, {
+ }, a)) : /*#__PURE__*/ L.createElement(pPe, {
className: o,
style: s,
width: n,
@@ -67385,7 +67486,7 @@ var G3 = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ L.createElement(iAe, null, a)));
+ }, /*#__PURE__*/ L.createElement(SAe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -67408,30 +67509,30 @@ function q3(e, t) {
}
return n;
}
-function $Ne(e) {
+function _Pe(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) {
- ePe(e, t, n[t]);
+ vPe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ePe(e, t, n) {
- return (t = tPe(t)) in e ? Object.defineProperty(e, t, {
+function vPe(e, t, n) {
+ return (t = yPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tPe(e) {
- var t = nPe(e, "string");
+function yPe(e) {
+ var t = bPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nPe(e, t) {
+function bPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67441,7 +67542,7 @@ function nPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rPe = $Ne({
+var xPe = _Pe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -67457,7 +67558,7 @@ var rPe = $Ne({
stackOffset: "none",
syncMethod: "index"
}, M3), J3 = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- var n = UR(e.categoricalChartProps, rPe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = ez(e.categoricalChartProps, xPe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -67486,32 +67587,32 @@ var rPe = $Ne({
className: n.className,
reverseStackOrder: n.reverseStackOrder
}), /*#__PURE__*/ L.createElement(G3, K3({}, n, { ref: t })));
-}), iPe = ["axis"], aPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => /*#__PURE__*/ L.createElement(J3, {
+}), SPe = ["axis"], CPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => /*#__PURE__*/ L.createElement(J3, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: iPe,
- tooltipPayloadSearcher: m$,
+ validateTooltipEventTypes: SPe,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: e,
ref: t
-})), oPe = ["axis", "item"], Y3 = /*#__PURE__*/ (0, L.forwardRef)((e, t) => /*#__PURE__*/ L.createElement(J3, {
+})), wPe = ["axis", "item"], Y3 = /*#__PURE__*/ (0, L.forwardRef)((e, t) => /*#__PURE__*/ L.createElement(J3, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: oPe,
- tooltipPayloadSearcher: m$,
+ validateTooltipEventTypes: wPe,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function sPe(e) {
- var t = gz();
+function TPe(e) {
+ var t = Dz();
return (0, L.useEffect)(() => {
- t(wNe(e));
+ t(HNe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var cPe = ["layout"];
+var EPe = ["layout"];
function X3() {
return X3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -67521,16 +67622,16 @@ function X3() {
return e;
}, X3.apply(null, arguments);
}
-function lPe(e, t) {
+function DPe(e, t) {
if (e == null) return {};
- var n, r, i = uPe(e, t);
+ var n, r, i = OPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function uPe(e, t) {
+function OPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67549,30 +67650,30 @@ function Z3(e, t) {
}
return n;
}
-function dPe(e) {
+function kPe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Z3(Object(n), !0).forEach(function(t) {
- fPe(e, t, n[t]);
+ APe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fPe(e, t, n) {
- return (t = pPe(t)) in e ? Object.defineProperty(e, t, {
+function APe(e, t, n) {
+ return (t = jPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pPe(e) {
- var t = mPe(e, "string");
+function jPe(e) {
+ var t = MPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mPe(e, t) {
+function MPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67582,7 +67683,7 @@ function mPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Q3 = dPe({
+var Q3 = kPe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -67602,7 +67703,7 @@ var Q3 = dPe({
innerRadius: 0,
outerRadius: "80%"
}, M3), $3 = /*#__PURE__*/ (0, L.forwardRef)(function(e, t) {
- var n = UR(e.categoricalChartProps, Q3), { layout: r } = n, i = lPe(n, cPe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = ez(e.categoricalChartProps, Q3), { layout: r } = n, i = DPe(n, EPe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -67630,7 +67731,7 @@ var Q3 = dPe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ L.createElement(sPe, {
+ }), /*#__PURE__*/ L.createElement(TPe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
@@ -67655,26 +67756,26 @@ function t6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? e6(Object(n), !0).forEach(function(t) {
- hPe(e, t, n[t]);
+ NPe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hPe(e, t, n) {
- return (t = gPe(t)) in e ? Object.defineProperty(e, t, {
+function NPe(e, t, n) {
+ return (t = PPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gPe(e) {
- var t = _Pe(e, "string");
+function PPe(e) {
+ var t = FPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Pe(e, t) {
+function FPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67684,25 +67785,25 @@ function _Pe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var vPe = ["axis"], yPe = t6(t6({}, Q3), {}, {
+var IPe = ["axis"], LPe = t6(t6({}, Q3), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), bPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var n = UR(e, yPe);
+}), RPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var n = ez(e, LPe);
return /*#__PURE__*/ L.createElement($3, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: vPe,
- tooltipPayloadSearcher: m$,
+ validateTooltipEventTypes: IPe,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: n,
ref: t
});
-}), xPe = ["axis"], SPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => /*#__PURE__*/ L.createElement(J3, {
+}), zPe = ["axis"], BPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => /*#__PURE__*/ L.createElement(J3, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: xPe,
- tooltipPayloadSearcher: m$,
+ validateTooltipEventTypes: zPe,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: e,
ref: t
}));
@@ -67722,26 +67823,26 @@ function r6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? n6(Object(n), !0).forEach(function(t) {
- CPe(e, t, n[t]);
+ VPe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function CPe(e, t, n) {
- return (t = wPe(t)) in e ? Object.defineProperty(e, t, {
+function VPe(e, t, n) {
+ return (t = HPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wPe(e) {
- var t = TPe(e, "string");
+function HPe(e) {
+ var t = UPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TPe(e, t) {
+function UPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67751,17 +67852,17 @@ function TPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var EPe = ["axis", "item"], DPe = r6(r6({}, Q3), {}, {
+var WPe = ["axis", "item"], GPe = r6(r6({}, Q3), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), OPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
- var n = UR(e, DPe);
+}), KPe = /*#__PURE__*/ (0, L.forwardRef)((e, t) => {
+ var n = ez(e, GPe);
return /*#__PURE__*/ L.createElement($3, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: EPe,
- tooltipPayloadSearcher: m$,
+ validateTooltipEventTypes: WPe,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: n,
ref: t
});
@@ -67777,7 +67878,7 @@ var a6 = {
light: "",
dark: ".dark"
}, o6 = Object.keys(a6);
-function kPe(e) {
+function qPe(e) {
for (let [t, n] of Object.entries(e)) if (n.colors && !o6.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${o6.join(", ")}). Received empty object or invalid keys.`);
}
var s6 = L.createContext(null);
@@ -67791,7 +67892,7 @@ function l6({ id: e, config: t, initialDimension: n = {
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = L.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return kPe(t), /* @__PURE__ */ (0, R.jsx)(s6.Provider, {
+ return qPe(t), /* @__PURE__ */ (0, R.jsx)(s6.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-slot": "chart",
@@ -67803,7 +67904,7 @@ function l6({ id: e, config: t, initialDimension: n = {
id: c,
config: t
}),
- /* @__PURE__ */ (0, R.jsx)(QH, {
+ /* @__PURE__ */ (0, R.jsx)(lU, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -67822,7 +67923,7 @@ function u6({ isLoading: e }) {
})
}) : null;
}
-function APe(e, t) {
+function JPe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -67837,7 +67938,7 @@ var d6 = ({ id: e, config: t }) => {
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 ? [] : APe(r, p6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : JPe(r, p6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
}).filter(Boolean).join("\n"), i = Object.entries(a6).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, R.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
@@ -67851,15 +67952,15 @@ function p6(e) {
let t = o6.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var jPe = (e = 10, t = 0, n = 70) => {
+var YPe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, MPe = {
+}, XPe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, NPe = {
+}, ZPe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
@@ -67886,7 +67987,7 @@ function m6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, R.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, R.jsxs)("div", {
- className: i6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", MPe[p], NPe[m], n),
+ className: i6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", XPe[p], ZPe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, R.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
@@ -67900,7 +68001,7 @@ function m6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: PPe(n, o)
+ style: QPe(n, o)
}), /* @__PURE__ */ (0, R.jsxs)("div", {
className: i6("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
@@ -67919,10 +68020,10 @@ function m6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function PPe(e, t) {
+function QPe(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 h6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, R.jsx)(CTe, {
+var h6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, R.jsx)(HTe, {
animationDuration: e,
...t
});
@@ -67939,7 +68040,7 @@ function g6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, R.jsx)(i.icon, {}) : /* @__PURE__ */ (0, R.jsx)(FPe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, R.jsx)(i.icon, {}) : /* @__PURE__ */ (0, R.jsx)($Pe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -67948,8 +68049,8 @@ function g6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function FPe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = IPe(t, n), i = LPe(t, n);
+function $Pe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = eFe(t, n), i = tFe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, R.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -67981,10 +68082,10 @@ function FPe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function IPe(e, t) {
+function eFe(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function LPe(e, t) {
+function tFe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -67999,12 +68100,12 @@ function LPe(e, t) {
...n
};
}
-var _6 = QW, v6 = () => null, y6 = {
+var _6 = lG, v6 = () => null, y6 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function RPe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function nFe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = L.useRef(null), [a, o] = L.useState(!1), s = (0, L.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, L.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -68050,7 +68151,7 @@ function RPe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function zPe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function rFe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = L.useRef(null), S = L.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = L.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = L.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -68084,7 +68185,7 @@ function zPe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = RPe({
+ }, [C, v]), { isDragging: A, bind: j } = nFe({
range: E,
totalPoints: C,
containerRef: x,
@@ -68109,16 +68210,16 @@ function zPe({ 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 = YF(N), P = YF(ee);
+ let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, ee = C > 1 ? M.endIndex / (C - 1) * 100 : 100, te = oI(N), P = oI(ee);
te.get() !== N && te.set(N), P.get() !== ee && P.set(ee);
- let F = $F(te, y6), ne = $F(P, y6), re = ZF(F, (e) => `${e}%`), ie = ZF(ne, (e) => `${e}%`), ae = ZF(F, (e) => `${e}%`), oe = ZF(ne, (e) => `${Math.max(0, 100 - e)}%`), se = YF(`${Math.max(0, ee - N)}%`), ce = (0, L.useCallback)(() => {
+ let F = uI(te, y6), ne = uI(P, y6), re = cI(F, (e) => `${e}%`), ie = cI(ne, (e) => `${e}%`), ae = cI(F, (e) => `${e}%`), oe = cI(ne, (e) => `${Math.max(0, 100 - e)}%`), se = oI(`${Math.max(0, ee - N)}%`), ce = (0, L.useCallback)(() => {
se.set(`${Math.max(0, ne.get() - F.get())}%`);
}, [
F,
ne,
se
]);
- JF(F, "change", ce), JF(ne, "change", ce);
+ aI(F, "change", ce), aI(ne, "change", ce);
let le = (0, L.useCallback)((t) => {
if (!r) return String(t);
let n = e[t]?.[r];
@@ -68140,7 +68241,7 @@ function zPe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}),
/* @__PURE__ */ (0, R.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, R.jsx)(BPe, {
+ children: /* @__PURE__ */ (0, R.jsx)(iFe, {
data: e,
keys: S,
chartConfig: t,
@@ -68153,15 +68254,15 @@ function zPe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
barRadius: u
})
}),
- /* @__PURE__ */ (0, R.jsx)(eI.div, {
+ /* @__PURE__ */ (0, R.jsx)(dI.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, R.jsx)(eI.div, {
+ /* @__PURE__ */ (0, R.jsx)(dI.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, R.jsx)(eI.div, {
+ /* @__PURE__ */ (0, R.jsx)(dI.div, {
className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",
style: {
left: re,
@@ -68186,7 +68287,7 @@ function zPe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}
function b6({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
- return /* @__PURE__ */ (0, R.jsxs)(eI.div, {
+ return /* @__PURE__ */ (0, R.jsxs)(dI.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, R.jsx)("div", {
@@ -68209,7 +68310,7 @@ function b6({ side: e, position: t, label: n, bind: r }) {
})]
});
}
-function BPe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function iFe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = L.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
colorsCount: p6(t)
@@ -68266,10 +68367,10 @@ function BPe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, R.jsx)(QH, {
+ if (r === "line") return /* @__PURE__ */ (0, R.jsx)(lU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, R.jsxs)(aPe, {
+ children: /* @__PURE__ */ (0, R.jsxs)(CPe, {
data: e,
margin: {
top: 4,
@@ -68293,7 +68394,7 @@ function BPe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, R.jsx)(QH, {
+ return /* @__PURE__ */ (0, R.jsx)(lU, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, R.jsxs)(Y3, {
@@ -68322,10 +68423,10 @@ function BPe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, R.jsx)(QH, {
+ return /* @__PURE__ */ (0, R.jsx)(lU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, R.jsxs)(SPe, {
+ children: /* @__PURE__ */ (0, R.jsxs)(BPe, {
data: e,
margin: {
top: 4,
@@ -68351,7 +68452,7 @@ function BPe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function VPe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function aFe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = L.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -68375,7 +68476,7 @@ function VPe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var HPe = {
+var oFe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, R.jsx)("pattern", {
id: e,
x: "0",
@@ -68548,8 +68649,8 @@ var HPe = {
})
};
function x6({ variant: e }) {
- let t = (0, L.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = HPe[e];
- return /* @__PURE__ */ (0, R.jsxs)(o$, {
+ let t = (0, L.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = oFe[e];
+ return /* @__PURE__ */ (0, R.jsxs)(a$, {
zIndex: -1,
children: [/* @__PURE__ */ (0, R.jsxs)("defs", { children: [
/* @__PURE__ */ (0, R.jsx)(a, { id: n }),
@@ -68579,7 +68680,7 @@ function x6({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var S6 = 2, UPe = "loading", WPe = 2e3, GPe = "evil-stacked", KPe = .5, qPe = .05, JPe = [
+var S6 = 2, sFe = "loading", cFe = 2e3, lFe = "evil-stacked", uFe = .5, dFe = .05, fFe = [
0,
.7,
.5,
@@ -68591,7 +68692,7 @@ function w6() {
return e;
}
function T6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = S6, 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, L.useId)().replace(/:/g, ""), [v] = (0, L.useState)(() => Date.now()), [y, b] = (0, L.useState)(f), [x, S] = (0, L.useState)(!1), { loadingData: C, onShimmerExit: w } = pFe(m, h), { visibleData: T, brushProps: E } = VPe({ data: t }), D = (0, L.useMemo)(() => {
+ let _ = (0, L.useId)().replace(/:/g, ""), [v] = (0, L.useState)(() => Date.now()), [y, b] = (0, L.useState)(f), [x, S] = (0, L.useState)(!1), { loadingData: C, onShimmerExit: w } = jFe(m, h), { visibleData: T, brushProps: E } = aFe({ data: t }), D = (0, L.useMemo)(() => {
let e = L.Children.toArray(n), t = e.find((e) => (0, L.isValidElement)(e) && e.type === v6), r = (0, L.isValidElement)(t) ? t.props : {};
return {
slot: {
@@ -68634,7 +68735,7 @@ function T6({ config: e, data: t, children: n, className: r, chartProps: i, stac
children: /* @__PURE__ */ (0, R.jsxs)(l6, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, R.jsx)(zPe, {
+ footer: O && !m && /* @__PURE__ */ (0, R.jsx)(rFe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -68665,7 +68766,7 @@ function T6({ config: e, data: t, children: n, className: r, chartProps: i, stac
d && /* @__PURE__ */ (0, R.jsx)(x6, { variant: d }),
/* @__PURE__ */ (0, R.jsx)(N2, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, R.jsx)(mFe, {
+ m && /* @__PURE__ */ (0, R.jsx)(MFe, {
chartId: _,
onShimmerExit: w
})
@@ -68674,8 +68775,8 @@ function T6({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function YPe({ 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 } = w6(), b = (0, L.useId)().replace(/:/g, ""), x = dfe();
+function pFe({ 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 } = w6(), b = (0, L.useId)().replace(/:/g, ""), x = vfe();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -68697,7 +68798,7 @@ function YPe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
};
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(V4, {
dataKey: e,
- stackId: u ? GPe : void 0,
+ stackId: u ? lFe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
@@ -68714,44 +68815,44 @@ function YPe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}),
...c
}), /* @__PURE__ */ (0, R.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, R.jsx)(iFe, {
+ /* @__PURE__ */ (0, R.jsx)(SFe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, R.jsx)(aFe, {
+ t === "hatched" && /* @__PURE__ */ (0, R.jsx)(CFe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, R.jsx)(sFe, {
+ t === "duotone" && /* @__PURE__ */ (0, R.jsx)(TFe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, R.jsx)(cFe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, R.jsx)(EFe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, R.jsx)(lFe, {
+ t === "gradient" && /* @__PURE__ */ (0, R.jsx)(DFe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, R.jsx)(uFe, {
+ t === "stripped" && /* @__PURE__ */ (0, R.jsx)(OFe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, R.jsx)(oFe, {
+ s && /* @__PURE__ */ (0, R.jsx)(wFe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, R.jsx)(dFe, {
+ o && /* @__PURE__ */ (0, R.jsx)(kFe, {
id: b,
dataKey: e
})
] })] });
}
-function XPe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+function mFe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = w6();
return o ? null : /* @__PURE__ */ (0, R.jsx)(Y4, {
tickLine: e,
@@ -68762,7 +68863,7 @@ function XPe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function ZPe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+function hFe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
let { isLoading: s, isHorizontal: c } = w6();
return s ? null : /* @__PURE__ */ (0, R.jsx)(e3, {
tickLine: e,
@@ -68774,7 +68875,7 @@ function ZPe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function QPe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+function gFe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = w6();
return /* @__PURE__ */ (0, R.jsx)(X2, {
strokeDasharray: e,
@@ -68783,7 +68884,7 @@ function QPe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
...r
});
}
-function $Pe({ variant: e, roundness: t, defaultIndex: n }) {
+function _Fe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = w6();
return r ? null : /* @__PURE__ */ (0, R.jsx)(h6, {
cursor: !1,
@@ -68795,7 +68896,7 @@ function $Pe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function eFe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+function vFe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
let { selectedDataKey: i, selectDataKey: a } = w6();
return /* @__PURE__ */ (0, R.jsx)(_6, {
verticalAlign: n,
@@ -68809,7 +68910,7 @@ function eFe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
});
}
var E6 = (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 = tFe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : nFe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = rFe({
+ 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 = yFe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : bFe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = xFe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -68846,7 +68947,7 @@ var E6 = (e) => {
children: [/* @__PURE__ */ (0, R.jsx)(iK, {
...e,
fill: "transparent"
- }), w ? /* @__PURE__ */ (0, R.jsx)(eI.g, {
+ }), w ? /* @__PURE__ */ (0, R.jsx)(dI.g, {
initial: w.initial,
animate: w.animate,
transition: w.transition,
@@ -68854,7 +68955,7 @@ var E6 = (e) => {
children: A
}) : A]
});
-}, tFe = (e, t, n, r, i) => {
+}, yFe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -68869,11 +68970,11 @@ var E6 = (e) => {
break;
default: s = t;
}
- let c = s * qPe * 1e3, l = KPe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * dFe * 1e3, l = uFe * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: JPe,
+ ease: fFe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -68887,7 +68988,7 @@ var E6 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, nFe = (e, t, n) => {
+}, bFe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -68896,10 +68997,10 @@ var E6 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, rFe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, xFe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, iFe = ({ id: e, dataKey: t, config: n }) => {
+}, SFe = ({ id: e, dataKey: t, config: n }) => {
let r = p6(n[t] ?? {});
return /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -68921,7 +69022,7 @@ var E6 = (e) => {
}, i);
})
});
-}, aFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+}, CFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
/* @__PURE__ */ (0, R.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -68962,7 +69063,7 @@ var E6 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), oFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+] }), wFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
/* @__PURE__ */ (0, R.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -69003,7 +69104,7 @@ var E6 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), sFe = ({ id: e, dataKey: t, config: n }) => {
+] }), TFe = ({ id: e, dataKey: t, config: n }) => {
let r = p6(n[t] ?? {});
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
/* @__PURE__ */ (0, R.jsxs)("linearGradient", {
@@ -69071,7 +69172,7 @@ var E6 = (e) => {
})
})
] });
-}, cFe = ({ id: e, dataKey: t, config: n }) => {
+}, EFe = ({ id: e, dataKey: t, config: n }) => {
let r = p6(n[t] ?? {});
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
/* @__PURE__ */ (0, R.jsxs)("linearGradient", {
@@ -69139,7 +69240,7 @@ var E6 = (e) => {
})
})
] });
-}, lFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+}, DFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
/* @__PURE__ */ (0, R.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -69176,7 +69277,7 @@ var E6 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), uFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
+] }), OFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
/* @__PURE__ */ (0, R.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -69213,7 +69314,7 @@ var E6 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), dFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)("filter", {
+] }), kFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -69233,35 +69334,35 @@ var E6 = (e) => {
}),
/* @__PURE__ */ (0, R.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, R.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, R.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), fFe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), AFe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function pFe(e, t = 12) {
+function jFe(e, t = 12) {
let [n, r] = (0, L.useState)(!1), i = (0, L.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, L.useMemo)(() => jPe(t, 20, 80), [t, n]),
+ loadingData: (0, L.useMemo)(() => YPe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var mFe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(V4, {
- dataKey: UPe,
+var MFe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(V4, {
+ dataKey: sFe,
fill: "currentColor",
fillOpacity: .15,
radius: S6,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)(hFe, {
+}), /* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)(NFe, {
chartId: e,
onShimmerExit: t
-}) })] }), hFe = ({ chartId: e, onShimmerExit: t }) => {
- let n = fFe(), r = (0, L.useRef)(-1);
+}) })] }), NFe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = AFe(), r = (0, L.useRef)(-1);
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
/* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -69284,7 +69385,7 @@ var mFe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fr
height: "1",
x: "0",
y: "0",
- children: /* @__PURE__ */ (0, R.jsx)(eI.rect, {
+ children: /* @__PURE__ */ (0, R.jsx)(dI.rect, {
y: "0",
width: "1",
height: "1",
@@ -69292,7 +69393,7 @@ var mFe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: WPe / 1e3,
+ duration: cFe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -69314,7 +69415,7 @@ var mFe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, R.jsxs)(R.Fr
})
] });
};
-T6.Bar = YPe, T6.XAxis = XPe, T6.YAxis = ZPe, T6.Grid = QPe, T6.Tooltip = $Pe, T6.Legend = eFe, T6.Brush = v6;
+T6.Bar = pFe, T6.XAxis = mFe, T6.YAxis = hFe, T6.Grid = gFe, T6.Tooltip = _Fe, T6.Legend = vFe, T6.Brush = v6;
//#endregion
//#region src/react/charts/chart-card.tsx
var D6 = `${Xi({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
@@ -69344,7 +69445,7 @@ var k6 = [
"var(--color-chart-5)",
"var(--color-chart-6)"
], A6 = (e) => ({ light: [e] }), j6 = (e) => `s${e}`;
-function gFe(e) {
+function PFe(e) {
return Object.fromEntries(e.map((e, t) => [j6(t), {
label: e,
colors: A6(k6[t % k6.length])
@@ -69369,7 +69470,7 @@ function N6({ swatch: e, name: t, value: n }) {
});
}
var P6 = "size-2.5 shrink-0 rounded-xs";
-function _Fe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+function FFe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
let { config: o } = c6(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, R.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
@@ -69394,7 +69495,7 @@ function _Fe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
function F6({ nameKey: e, valueKey: t, hideLabel: n }) {
return /* @__PURE__ */ (0, R.jsx)(h6, {
cursor: !1,
- content: /* @__PURE__ */ (0, R.jsx)(_Fe, {
+ content: /* @__PURE__ */ (0, R.jsx)(FFe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -69471,7 +69572,7 @@ var z6 = [
"周六",
"周日"
], B6 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function vFe(e) {
+function IFe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -69488,7 +69589,7 @@ function vFe(e) {
total: n.reduce((e, t) => e + t, 0)
};
}
-function yFe(e) {
+function LFe(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -69527,19 +69628,19 @@ var V6 = 14, H6 = 17, U6 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, bFe = {
+}, RFe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function xFe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function zFe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${M6} ${bFe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${M6} ${RFe[a]}`,
children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
@@ -69597,7 +69698,7 @@ function W6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, R.jsx)(xFe, {
+ }), g && _ ? /* @__PURE__ */ (0, R.jsx)(zFe, {
cell: g,
series: t.series,
tone: c,
@@ -69613,7 +69714,7 @@ function W6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var SFe = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [z6.map((e, t) => /* @__PURE__ */ (0, R.jsx)("text", {
+var BFe = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [z6.map((e, t) => /* @__PURE__ */ (0, R.jsx)("text", {
x: 0,
y: 18 + t * H6 + 7,
dominantBaseline: "middle",
@@ -69627,7 +69728,7 @@ var SFe = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [z6.map((e, t) =>
children: t
}, t))] });
function G6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = vFe(e), s = yFe(e);
+ let o = IFe(e), s = LFe(e);
return s.cells.length ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
children: [/* @__PURE__ */ (0, R.jsx)(W6, {
@@ -69638,7 +69739,7 @@ function G6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: SFe,
+ axis: BFe,
footer: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, R.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
}), /* @__PURE__ */ (0, R.jsx)(W6, {
title: n,
@@ -69710,14 +69811,14 @@ function K6({ children: e, className: t = "", previewCount: n = 10 }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var CFe = "30%", wFe = "100%", q6 = 5, J6 = 14, TFe = 5, Y6 = 1500, X6 = (0, L.createContext)(null);
+var VFe = "30%", HFe = "100%", q6 = 5, J6 = 14, UFe = 5, Y6 = 1500, X6 = (0, L.createContext)(null);
function Z6() {
let e = (0, L.use)(X6);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function Q6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = CFe, outerRadius: l = wFe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, L.useId)().replace(/:/g, ""), [h, g] = (0, L.useState)(u), _ = MFe(f), v = kFe(o), y = (0, L.useCallback)((e, t) => {
+function Q6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = VFe, outerRadius: l = HFe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, L.useId)().replace(/:/g, ""), [h, g] = (0, L.useState)(u), _ = XFe(f), v = qFe(o), y = (0, L.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -69749,7 +69850,7 @@ function Q6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
children: /* @__PURE__ */ (0, R.jsxs)(l6, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, R.jsx)(u6, { isLoading: f }), /* @__PURE__ */ (0, R.jsxs)(OPe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(u6, { isLoading: f }), /* @__PURE__ */ (0, R.jsxs)(KPe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -69768,8 +69869,8 @@ function Q6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}),
p && /* @__PURE__ */ (0, R.jsx)(x6, { variant: p }),
r,
- f && /* @__PURE__ */ (0, R.jsx)(NFe, {}),
- /* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)(AFe, {
+ f && /* @__PURE__ */ (0, R.jsx)(ZFe, {}),
+ /* @__PURE__ */ (0, R.jsx)("defs", { children: /* @__PURE__ */ (0, R.jsx)(JFe, {
config: e,
chartId: m
}) })
@@ -69778,7 +69879,7 @@ function Q6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function EFe({ dataKey: e, cornerRadius: t = q6, barSize: n = J6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+function WFe({ dataKey: e, cornerRadius: t = q6, barSize: n = J6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = Z6();
return s ? null : /* @__PURE__ */ (0, R.jsx)(w2, {
dataKey: e,
@@ -69803,7 +69904,7 @@ function EFe({ dataKey: e, cornerRadius: t = q6, barSize: n = J6, showBackground
...a
});
}
-function DFe({ variant: e, roundness: t, defaultIndex: n }) {
+function GFe({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = Z6();
return i ? null : /* @__PURE__ */ (0, R.jsx)(h6, {
defaultIndex: n,
@@ -69816,7 +69917,7 @@ function DFe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function OFe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function KFe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = Z6();
return a ? null : /* @__PURE__ */ (0, R.jsx)(_6, {
verticalAlign: n,
@@ -69830,7 +69931,7 @@ function OFe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function kFe(e) {
+function qFe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -69846,7 +69947,7 @@ function kFe(e) {
};
}
}
-var AFe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var JFe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, R.jsx)(R.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = p6(n);
return /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
@@ -69869,13 +69970,13 @@ var AFe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, R.jsx)(R.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function jFe() {
- return Array.from({ length: TFe }, (e, t) => ({
+function YFe() {
+ return Array.from({ length: UFe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function MFe(e) {
+function XFe(e) {
let [t, n] = (0, L.useState)(0);
return (0, L.useEffect)(() => {
if (!e) return;
@@ -69883,9 +69984,9 @@ function MFe(e) {
n((e) => e + 1);
}, Y6);
return () => clearInterval(t);
- }, [e]), (0, L.useMemo)(() => jFe(), [t]);
+ }, [e]), (0, L.useMemo)(() => YFe(), [t]);
}
-var NFe = () => /* @__PURE__ */ (0, R.jsx)(w2, {
+var ZFe = () => /* @__PURE__ */ (0, R.jsx)(w2, {
dataKey: "value",
cornerRadius: q6,
barSize: J6,
@@ -69899,17 +70000,17 @@ var NFe = () => /* @__PURE__ */ (0, R.jsx)(w2, {
fillOpacity: .25
})
});
-Q6.RadialBar = EFe, Q6.Tooltip = DFe, Q6.Legend = OFe;
+Q6.RadialBar = WFe, Q6.Tooltip = GFe, Q6.Legend = KFe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var PFe = [
+var QFe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], FFe = [
+], $Fe = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -69950,13 +70051,13 @@ function $6({ title: e, rows: t, unit: n = "个视频" }) {
children: /* @__PURE__ */ (0, R.jsxs)(Q6, {
data: f,
nameKey: "slice",
- config: gFe(s.map((e) => e.name)),
- max: nhe(s.map((e) => e.value)),
+ config: PFe(s.map((e) => e.name)),
+ max: lhe(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
children: [/* @__PURE__ */ (0, R.jsx)(Q6.RadialBar, {
dataKey: "value",
- barSize: rhe(s.length),
+ barSize: uhe(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, R.jsx)(hK, {
...e,
@@ -69982,13 +70083,13 @@ function $6({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${FFe[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${$Fe[t % 6]}`,
children: [
/* @__PURE__ */ (0, R.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, R.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${PFe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${QFe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, R.jsx)("b", {
@@ -70007,7 +70108,7 @@ function $6({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var IFe = 10, e8 = k6[5], LFe = k6[4], RFe = `${Xi()} flex flex-col gap-4`, zFe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", BFe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", VFe = "开始播放后,这里会显示最近的真实观看证据。", HFe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", UFe = "添加媒体文件夹后,这里会显示存储空间。";
+var eIe = 10, e8 = k6[5], tIe = k6[4], nIe = `${Xi()} flex flex-col gap-4`, rIe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", iIe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", aIe = "开始播放后,这里会显示最近的真实观看证据。", oIe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", sIe = "添加媒体文件夹后,这里会显示存储空间。";
function t8({ term: e, value: t }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -70029,7 +70130,7 @@ function n8({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, R.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [oL(t, n), "%"]
+ children: [_L(t, n), "%"]
})]
})]
}), /* @__PURE__ */ (0, R.jsx)(ra, {
@@ -70060,14 +70161,14 @@ function r8({ term: e, figure: t, unit: n }) {
}
function i8({ headline: e, children: t }) {
return /* @__PURE__ */ (0, R.jsxs)("div", {
- className: `${RFe} md:flex-row md:gap-6`,
+ className: `${nIe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, R.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function WFe({ data: t, configurable: n, openMediaSettings: r }) {
+function cIe({ data: t, configurable: n, openMediaSettings: r }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
@@ -70095,14 +70196,14 @@ function WFe({ data: t, configurable: n, openMediaSettings: r }) {
unit: "个视频",
series: "视频",
color: e8,
- rows: she(t.by_length)
+ rows: mhe(t.by_length)
}),
/* @__PURE__ */ (0, R.jsx)(R6, {
title: "画质",
unit: "个视频",
series: "视频",
color: e8,
- rows: lL(t.by_quality)
+ rows: bL(t.by_quality)
}),
/* @__PURE__ */ (0, R.jsx)(R6, {
title: "文件类型",
@@ -70110,7 +70211,7 @@ function WFe({ data: t, configurable: n, openMediaSettings: r }) {
series: "条目",
color: e8,
layout: "horizontal",
- rows: ahe(t.by_medium)
+ rows: fhe(t.by_medium)
})
]
})]
@@ -70128,10 +70229,10 @@ function WFe({ data: t, configurable: n, openMediaSettings: r }) {
size: "small",
children: "添加关注"
})] }),
- children: zFe
+ children: rIe
});
}
-function GFe({ data: e }) {
+function lIe({ data: e }) {
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(G6, {
activity: e.play_activity,
title: "播放时间",
@@ -70146,11 +70247,11 @@ function GFe({ data: e }) {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: LFe,
- rows: lhe(e.replays)
+ color: tIe,
+ rows: ghe(e.replays)
})] });
}
-function KFe({ attribution: e }) {
+function uIe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col",
@@ -70183,7 +70284,7 @@ function KFe({ attribution: e }) {
]
});
}
-function qFe({ volume: e }) {
+function dIe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, R.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -70200,7 +70301,7 @@ function qFe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [s(n), /* @__PURE__ */ (0, R.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [oL(n, t), "%"]
+ children: [_L(n, t), "%"]
})]
})]
}),
@@ -70222,10 +70323,10 @@ function qFe({ volume: e }) {
]
});
}
-function JFe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function fIe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, R.jsx)(qFe, { volume: e }, `${e.kind}:${e.label}`))
+ children: e.map((e) => /* @__PURE__ */ (0, R.jsx)(dIe, { volume: e }, `${e.kind}:${e.label}`))
}) : /* @__PURE__ */ (0, R.jsx)(Qi, {
shell: "plain",
icon: it,
@@ -70235,12 +70336,12 @@ function JFe({ volumes: e, configurable: t, openMediaSettings: n }) {
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: UFe
+ children: sIe
});
}
-function YFe({ tags: e, tagLabel: t, onTag: n }) {
+function pIe({ tags: e, tagLabel: t, onTag: n }) {
return e.length ? /* @__PURE__ */ (0, R.jsx)(K6, {
- previewCount: IFe,
+ previewCount: eIe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, R.jsx)("li", {
className: "min-w-0",
@@ -70274,14 +70375,14 @@ function YFe({ tags: e, tagLabel: t, onTag: n }) {
size: "small",
children: "补全资料"
}),
- children: BFe
+ children: iIe
});
}
-function XFe({ rows: e }) {
+function mIe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = sL(e);
+ let t = vL(e);
return /* @__PURE__ */ (0, R.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
@@ -70289,14 +70390,14 @@ function XFe({ rows: e }) {
children: [/* @__PURE__ */ (0, R.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, R.jsx)("a", {
- href: the(e),
+ href: che(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, R.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, R.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, R.jsx)("span", { children: ehe(e) })]
+ children: [/* @__PURE__ */ (0, R.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, R.jsx)("span", { children: she(e) })]
})]
}), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "min-w-0 basis-40",
@@ -70305,7 +70406,7 @@ function XFe({ rows: e }) {
value: t
}), /* @__PURE__ */ (0, R.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${cL(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${yL(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
@@ -70320,10 +70421,10 @@ function XFe({ rows: e }) {
size: "small",
children: "浏览馆藏"
}),
- children: VFe
+ children: aIe
});
}
-function ZFe({ sources: e, videos: t }) {
+function hIe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, R.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, R.jsxs)("article", {
@@ -70363,11 +70464,11 @@ function ZFe({ sources: e, videos: t }) {
size: "small",
children: "补全资料"
}),
- children: HFe
+ children: oIe
});
}
function a8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, R.jsx)(eC, {
+ return /* @__PURE__ */ (0, R.jsx)(WS, {
id: e,
className: Ql({
interactive: !0,
@@ -70382,27 +70483,27 @@ function a8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function QFe(e) {
+function gIe(e) {
let t = Zn({
- queryKey: iL,
- queryFn: ({ signal: e }) => aL(e)
+ queryKey: hL,
+ queryFn: ({ signal: e }) => gL(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, R.jsx)(ea, { children: /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? H(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), c = oL(n.tag_cov, n.attribution.videos);
+ 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), c = _L(n.tag_cov, n.attribution.videos);
return /* @__PURE__ */ (0, R.jsxs)(ea, { children: [
/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${s(o)}`
}),
- /* @__PURE__ */ (0, R.jsxs)(XS, {
+ /* @__PURE__ */ (0, R.jsxs)(BS, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, R.jsxs)(QS, {
+ /* @__PURE__ */ (0, R.jsxs)(HS, {
"aria-label": "统计视图",
className: $l,
children: [
@@ -70420,7 +70521,7 @@ function QFe(e) {
icon: tt,
accent: 1,
figure: r.played.toLocaleString(),
- detail: $me(r.play_seconds)
+ detail: ohe(r.play_seconds)
}),
/* @__PURE__ */ (0, R.jsx)(a8, {
id: "coverage",
@@ -70440,14 +70541,14 @@ function QFe(e) {
})
]
}),
- /* @__PURE__ */ (0, R.jsx)(tC, {
+ /* @__PURE__ */ (0, R.jsx)(GS, {
id: "inventory",
- children: /* @__PURE__ */ (0, R.jsx)(WFe, {
+ children: /* @__PURE__ */ (0, R.jsx)(cIe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, R.jsxs)(tC, {
+ /* @__PURE__ */ (0, R.jsxs)(GS, {
id: "viewing",
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, R.jsx)(i8, {
@@ -70493,9 +70594,9 @@ function QFe(e) {
})
]
})
- }), /* @__PURE__ */ (0, R.jsx)(GFe, { data: n })]
+ }), /* @__PURE__ */ (0, R.jsx)(lIe, { data: n })]
}),
- /* @__PURE__ */ (0, R.jsx)(tC, {
+ /* @__PURE__ */ (0, R.jsx)(GS, {
id: "coverage",
children: /* @__PURE__ */ (0, R.jsx)(i8, {
headline: /* @__PURE__ */ (0, R.jsx)(r8, {
@@ -70503,10 +70604,10 @@ function QFe(e) {
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, R.jsx)(KFe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, R.jsx)(uIe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, R.jsx)(tC, {
+ /* @__PURE__ */ (0, R.jsx)(GS, {
id: "storage",
children: /* @__PURE__ */ (0, R.jsx)(i8, {
headline: /* @__PURE__ */ (0, R.jsx)(r8, {
@@ -70514,7 +70615,7 @@ function QFe(e) {
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, R.jsx)(JFe, {
+ children: /* @__PURE__ */ (0, R.jsx)(fIe, {
volumes: n.storage_volumes,
...e
})
@@ -70522,51 +70623,51 @@ function QFe(e) {
})
]
}),
- /* @__PURE__ */ (0, R.jsxs)(XS, {
+ /* @__PURE__ */ (0, R.jsxs)(BS, {
defaultSelectedKey: "tags",
className: `${Xi({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, R.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, R.jsxs)(Hk, {
+ children: /* @__PURE__ */ (0, R.jsxs)(Mk, {
"aria-label": "统计维度",
- className: Wk,
+ className: Pk,
children: [
- /* @__PURE__ */ (0, R.jsx)(eC, {
+ /* @__PURE__ */ (0, R.jsx)(WS, {
id: "tags",
- className: Gk,
+ className: Fk,
children: "内容标签"
}),
- /* @__PURE__ */ (0, R.jsx)(eC, {
+ /* @__PURE__ */ (0, R.jsx)(WS, {
id: "recent",
- className: Gk,
+ className: Fk,
children: "最近看过"
}),
- /* @__PURE__ */ (0, R.jsx)(eC, {
+ /* @__PURE__ */ (0, R.jsx)(WS, {
id: "sources",
- className: Gk,
+ className: Fk,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, R.jsx)(tC, {
+ /* @__PURE__ */ (0, R.jsx)(GS, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, R.jsx)(YFe, {
+ children: /* @__PURE__ */ (0, R.jsx)(pIe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, R.jsx)(tC, {
+ /* @__PURE__ */ (0, R.jsx)(GS, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, R.jsx)(XFe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, R.jsx)(mIe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, R.jsx)(tC, {
+ /* @__PURE__ */ (0, R.jsx)(GS, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, R.jsx)(ZFe, {
+ children: /* @__PURE__ */ (0, R.jsx)(hIe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -70577,7 +70678,7 @@ function QFe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function $Fe(e, t) {
+function _Ie(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
@@ -70601,13 +70702,13 @@ function l8(e, t) {
function u8(e) {
return e.value;
}
-function eIe(e) {
+function vIe(e) {
return e.index;
}
-function tIe(e) {
+function yIe(e) {
return e.nodes;
}
-function nIe(e) {
+function bIe(e) {
return e.links;
}
function d8(e, t) {
@@ -70622,8 +70723,8 @@ function f8({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function rIe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = eIe, c = $Fe, l, u, d = tIe, f = nIe, p = 6;
+function xIe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = vIe, c = _Ie, l, u, d = yIe, f = bIe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -70809,7 +70910,7 @@ function rIe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var p8 = Math.PI, m8 = 2 * p8, h8 = 1e-6, iIe = m8 - h8;
+var p8 = Math.PI, m8 = 2 * p8, h8 = 1e-6, SIe = m8 - h8;
function g8() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -70850,7 +70951,7 @@ g8.prototype = _8.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) > h8 || Math.abs(this._y1 - l) > h8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % m8 + m8), d > iIe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > h8 && (this._ += "A" + n + "," + n + ",0," + +(d >= p8) + "," + 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) > h8 || Math.abs(this._y1 - l) > h8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % m8 + m8), d > SIe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > h8 && (this._ += "A" + n + "," + n + ",0," + +(d >= p8) + "," + 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";
@@ -70868,27 +70969,27 @@ function v8(e) {
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function aIe(e) {
+function CIe(e) {
return e[0];
}
-function oIe(e) {
+function wIe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var sIe = Array.prototype.slice;
+var TIe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function cIe(e) {
+function EIe(e) {
return e.source;
}
-function lIe(e) {
+function DIe(e) {
return e.target;
}
-function uIe(e) {
- var t = cIe, n = lIe, r = aIe, i = oIe, a = null;
+function OIe(e) {
+ var t = EIe, n = DIe, r = CIe, i = wIe, a = null;
function o() {
- var o, s = sIe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = TIe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = _8(), 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) {
@@ -70903,48 +71004,48 @@ function uIe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function dIe(e, t, n, r, i) {
+function kIe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function fIe() {
- return uIe(dIe);
+function AIe() {
+ return OIe(kIe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function pIe(e) {
+function jIe(e) {
return [e.source.x1, e.y0];
}
-function mIe(e) {
+function MIe(e) {
return [e.target.x0, e.y1];
}
-function hIe() {
- return fIe().source(pIe).target(mIe);
+function NIe() {
+ return AIe().source(jIe).target(MIe);
}
//#endregion
//#region src/react/taste/taste.ts
-var gIe = "/api/taste", y8 = "/api/taste/refresh", _Ie = "/api/taste/import", vIe = "/api/taste/source", b8 = (e) => ["taste", e], yIe = ["taste", "refresh"], bIe = [
+var PIe = "/api/taste", y8 = "/api/taste/refresh", FIe = "/api/taste/import", IIe = "/api/taste/source", b8 = (e) => ["taste", e], LIe = ["taste", "refresh"], RIe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], x8 = (e, t) => Hi(`${gIe}?window=${e}`, t), xIe = (e) => Hi(y8, e);
-async function SIe(e, t) {
+], x8 = (e, t) => Hi(`${PIe}?window=${e}`, t), zIe = (e) => Hi(y8, e);
+async function BIe(e, t) {
await K.fetchQuery({
queryKey: b8(e),
queryFn: () => x8(e, t)
});
}
-var CIe = (e) => U(y8, {
+var VIe = (e) => U(y8, {
window: e,
background: !0
-}), wIe = (e, t) => U(vIe, {
+}), HIe = (e, t) => U(IIe, {
operation: "remove",
source_key: e,
window: t
});
-async function TIe(e) {
- let t = await fetch(_Ie, {
+async function UIe(e) {
+ let t = await fetch(FIe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -70962,21 +71063,21 @@ async function TIe(e) {
}
return n;
}
-var EIe = 1e4, S8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", DIe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, OIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function kIe(e) {
+var WIe = 1e4, S8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", GIe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, KIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function qIe(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function AIe(e) {
- let t = e.map(OIe), n = Math.max(1, ...t);
+function JIe(e) {
+ let t = e.map(KIe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var C8 = (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 jIe(e) {
+function YIe(e) {
let t = C8(e, 6);
return t.length < 3 ? [] : t;
}
@@ -70987,10 +71088,10 @@ var w8 = {
source: 145,
target: 545
};
-function MIe(e = []) {
+function XIe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = rIe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = xIe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -71005,7 +71106,7 @@ function MIe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = hIe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = NIe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -71035,7 +71136,7 @@ function MIe(e = []) {
total: a
};
}
-var NIe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, E8 = L.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var ZIe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, E8 = L.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = L.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
@@ -71158,14 +71259,14 @@ var k8 = L.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
k8.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var PIe = 1, FIe = .3, IIe = 6, A8 = 1500, j8 = "value", M8 = (0, L.createContext)(null);
+var QIe = 1, $Ie = .3, eLe = 6, A8 = 1500, j8 = "value", M8 = (0, L.createContext)(null);
function N8() {
let e = (0, L.use)(M8);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
function P8({ 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, L.useId)().replace(/:/g, ""), [d, f] = (0, L.useState)(o), p = YIe(c, l), m = (0, L.useCallback)((e) => {
+ let u = (0, L.useId)().replace(/:/g, ""), [d, f] = (0, L.useState)(o), p = pLe(c, l), m = (0, L.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, L.useMemo)(() => ({
config: e,
@@ -71183,32 +71284,32 @@ function P8({ config: e, data: t, children: n, className: r, chartProps: i, back
children: /* @__PURE__ */ (0, R.jsxs)(l6, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, R.jsx)(u6, { isLoading: c }), /* @__PURE__ */ (0, R.jsxs)(bPe, {
+ children: [/* @__PURE__ */ (0, R.jsx)(u6, { isLoading: c }), /* @__PURE__ */ (0, R.jsxs)(RPe, {
id: u,
data: c ? p : t,
...i,
children: [
a && /* @__PURE__ */ (0, R.jsx)(x6, { variant: a }),
n,
- c && /* @__PURE__ */ (0, R.jsx)(XIe, {})
+ c && /* @__PURE__ */ (0, R.jsx)(mLe, {})
]
})]
})
});
}
-function LIe({ dataKey: e, variant: t = "filled", fillOpacity: n = FIe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+function tLe({ dataKey: e, variant: t = "filled", fillOpacity: n = $Ie, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = N8(), d = (0, L.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 } = UIe(a, d, e, p.dot);
+ }, m = t === "filled", { dot: h, activeDot: g } = sLe(a, d, e, p.dot);
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(J0, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: PIe,
+ strokeWidth: QIe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -71221,29 +71322,29 @@ function LIe({ dataKey: e, variant: t = "filled", fillOpacity: n = FIe, isGlowin
},
...o
}), /* @__PURE__ */ (0, R.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, R.jsx)(WIe, {
+ /* @__PURE__ */ (0, R.jsx)(cLe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, R.jsx)(GIe, {
+ /* @__PURE__ */ (0, R.jsx)(lLe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, R.jsx)(KIe, {
+ m && /* @__PURE__ */ (0, R.jsx)(uLe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, R.jsx)(qIe, {
+ r && /* @__PURE__ */ (0, R.jsx)(dLe, {
id: d,
dataKey: e
})
] })] });
}
var F8 = () => null, I8 = () => null;
-function RIe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+function nLe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
return /* @__PURE__ */ (0, R.jsx)(V1, {
gridType: e,
stroke: t,
@@ -71252,7 +71353,7 @@ function RIe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function zIe({ tick: e = {
+function rLe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
@@ -71263,7 +71364,7 @@ function zIe({ tick: e = {
...n
});
}
-function BIe({ tick: e = {
+function iLe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
@@ -71275,7 +71376,7 @@ function BIe({ tick: e = {
...r
});
}
-function VIe({ variant: e, roundness: t, defaultIndex: n }) {
+function aLe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = N8();
return r ? null : /* @__PURE__ */ (0, R.jsx)(h6, {
defaultIndex: n,
@@ -71287,7 +71388,7 @@ function VIe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function HIe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function oLe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { isLoading: i, selectedDataKey: a, selectDataKey: o } = N8();
return i ? null : /* @__PURE__ */ (0, R.jsx)(_6, {
verticalAlign: n,
@@ -71300,7 +71401,7 @@ function HIe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var UIe = (e, t, n, r) => {
+var sLe = (e, t, n, r) => {
let i = !1, a = !1;
return L.Children.forEach(e, (e) => {
if ((0, L.isValidElement)(e)) {
@@ -71342,7 +71443,7 @@ var UIe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), WIe = ({ id: e, dataKey: t, config: n }) => {
+}) }), cLe = ({ id: e, dataKey: t, config: n }) => {
let r = p6(n[t] ?? {});
return /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -71355,7 +71456,7 @@ var UIe = (e, t, n, r) => {
colorsCount: r
})
});
-}, GIe = ({ id: e, dataKey: t, config: n }) => {
+}, lLe = ({ id: e, dataKey: t, config: n }) => {
let r = p6(n[t] ?? {});
return /* @__PURE__ */ (0, R.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
@@ -71368,7 +71469,7 @@ var UIe = (e, t, n, r) => {
colorsCount: r
})
});
-}, KIe = ({ id: e, dataKey: t, config: n }) => {
+}, uLe = ({ id: e, dataKey: t, config: n }) => {
let r = p6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, R.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
@@ -71381,7 +71482,7 @@ var UIe = (e, t, n, r) => {
opacities: i
})
});
-}, qIe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)("filter", {
+}, dLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, R.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -71401,7 +71502,7 @@ var UIe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, R.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, R.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, R.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), JIe = (e) => [
+}), fLe = (e) => [
"A",
"B",
"C",
@@ -71412,7 +71513,7 @@ var UIe = (e, t, n, r) => {
skill: e,
[j8]: 30 + Math.random() * 70
}));
-function YIe(e, t = IIe) {
+function pLe(e, t = eLe) {
let [n, r] = (0, L.useState)(0);
return (0, L.useEffect)(() => {
if (!e) return;
@@ -71420,9 +71521,9 @@ function YIe(e, t = IIe) {
r((e) => e + 1);
}, A8);
return () => clearInterval(t);
- }, [e]), (0, L.useMemo)(() => JIe(t), [t, n]);
+ }, [e]), (0, L.useMemo)(() => fLe(t), [t, n]);
}
-var XIe = () => /* @__PURE__ */ (0, R.jsx)(J0, {
+var mLe = () => /* @__PURE__ */ (0, R.jsx)(J0, {
dataKey: j8,
stroke: "currentColor",
strokeOpacity: .3,
@@ -71434,17 +71535,17 @@ var XIe = () => /* @__PURE__ */ (0, R.jsx)(J0, {
animationDuration: A8,
animationEasing: "ease-in-out"
});
-P8.Radar = LIe, P8.Dot = F8, P8.ActiveDot = I8, P8.PolarGrid = RIe, P8.PolarAngleAxis = zIe, P8.PolarRadiusAxis = BIe, P8.Tooltip = VIe, P8.Legend = HIe;
+P8.Radar = tLe, P8.Dot = F8, P8.ActiveDot = I8, P8.PolarGrid = nLe, P8.PolarAngleAxis = rLe, P8.PolarRadiusAxis = iLe, P8.Tooltip = aLe, P8.Legend = oLe;
//#endregion
//#region src/react/taste/charts.tsx
-var ZIe = [
+var hLe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], QIe = [
+], gLe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
@@ -71454,7 +71555,7 @@ var ZIe = [
], R8 = { value: {
label: "标签命中",
colors: A6(k6[3])
-} }, $Ie = [
+} }, _Le = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -71464,20 +71565,20 @@ var ZIe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], eLe = 26, tLe = { radius: R8.value }, nLe = (e, t) => Math.sqrt(e / t);
-function rLe({ rows: e, label: t }) {
- let n = jIe(e);
+], vLe = 26, yLe = { radius: R8.value }, bLe = (e, t) => Math.sqrt(e / t);
+function xLe({ rows: e, label: t }) {
+ let n = YIe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: nLe(e.value, r)
+ radius: bLe(e.value, r)
}));
return /* @__PURE__ */ (0, R.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
children: /* @__PURE__ */ (0, R.jsxs)(P8, {
data: i,
- config: tLe,
+ config: yLe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
@@ -71494,17 +71595,17 @@ function rLe({ rows: e, label: t }) {
})
});
}
-function iLe({ rows: e, label: t }) {
+function SLe({ rows: e, label: t }) {
let n = C8(e, 8);
return n.length ? /* @__PURE__ */ (0, R.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${$Ie[n.length]}`,
+ className: `flex grow flex-col ${_Le[n.length]}`,
children: /* @__PURE__ */ (0, R.jsxs)(T6, {
data: n,
config: R8,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: eLe },
+ chartProps: { maxBarSize: vLe },
className: "aspect-auto text-text-secondary",
children: [
/* @__PURE__ */ (0, R.jsx)(T6.YAxis, {
@@ -71528,8 +71629,8 @@ function iLe({ rows: e, label: t }) {
})
}) : null;
}
-function aLe({ flows: e }) {
- let [t, n] = (0, L.useState)(null), r = MIe(e);
+function CLe({ flows: e }) {
+ let [t, n] = (0, L.useState)(null), r = XIe(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, R.jsxs)("section", {
@@ -71557,7 +71658,7 @@ function aLe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${ZIe[e.color]}`,
+ className: `outline-none transition-opacity ${hLe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -71591,14 +71692,14 @@ function aLe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? QIe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? gLe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, R.jsxs)("text", {
x: T8[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: [NIe(e.name), /* @__PURE__ */ (0, R.jsx)("tspan", {
+ children: [ZIe(e.name), /* @__PURE__ */ (0, R.jsx)("tspan", {
x: T8[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
@@ -71616,7 +71717,7 @@ function aLe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var oLe = 10, z8 = Pi(EO, DO, "text-body-2-medium"), B8 = `${Xi()} flex flex-col gap-4`, V8 = "rounded-xl bg-background-primary-default p-3", sLe = "读取运行 Peach 的这台电脑上的浏览记录", cLe = "导入或读取浏览记录后,这里会列出已采集设备。", lLe = "馆藏里暂时没有对得上浏览信号的标签。", uLe = "采集浏览记录后,这里会显示聚合后的口味证据。", dLe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", fLe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", pLe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", mLe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", hLe = "这个数据源将不再用于口味分析。原始导出文件保留。", H8 = "peach-taste-guide-dismissed";
+var wLe = 10, z8 = Pi(_O, vO, "text-body-2-medium"), B8 = `${Xi()} flex flex-col gap-4`, V8 = "rounded-xl bg-background-primary-default p-3", TLe = "读取运行 Peach 的这台电脑上的浏览记录", ELe = "导入或读取浏览记录后,这里会列出已采集设备。", DLe = "馆藏里暂时没有对得上浏览信号的标签。", OLe = "采集浏览记录后,这里会显示聚合后的口味证据。", kLe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", ALe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", jLe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", MLe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", NLe = "这个数据源将不再用于口味分析。原始导出文件保留。", H8 = "peach-taste-guide-dismissed";
function U8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, R.jsx)("div", {
className: Ql(),
@@ -71643,22 +71744,22 @@ function W8({ name: e, domain: t }) {
})]
});
}
-function gLe({ html: e }) {
+function PLe({ html: e }) {
return /* @__PURE__ */ (0, R.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 ${bP}`,
+ 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 ${MP}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function _Le({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+function FLe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
if (!e.length) return /* @__PURE__ */ (0, R.jsx)(Qi, {
shell: "plain",
icon: ht,
title: "暂无足够证据",
children: r
});
- let o = AIe(e);
+ let o = JIe(e);
return /* @__PURE__ */ (0, R.jsx)(K6, {
- previewCount: oLe,
+ previewCount: wLe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
@@ -71685,7 +71786,7 @@ function _Le({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, R.jsx)(gLe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, R.jsx)(PLe, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -71697,7 +71798,7 @@ function _Le({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, R.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: kIe(e)
+ children: qIe(e)
})]
}),
s ? /* @__PURE__ */ (0, R.jsx)(We, {
@@ -71721,23 +71822,23 @@ function _Le({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
});
}
function G8({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, R.jsxs)(XS, {
+ return /* @__PURE__ */ (0, R.jsxs)(BS, {
className: `${Xi({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, R.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, R.jsx)(Hk, {
+ children: /* @__PURE__ */ (0, R.jsx)(Mk, {
"aria-label": e,
- className: Wk,
- children: t.map((e) => /* @__PURE__ */ (0, R.jsx)(eC, {
+ className: Pk,
+ children: t.map((e) => /* @__PURE__ */ (0, R.jsx)(WS, {
id: e.id,
- className: Gk,
+ className: Fk,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, R.jsx)(tC, {
+ }), t.map((e) => /* @__PURE__ */ (0, R.jsx)(GS, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, R.jsx)(_Le, {
+ children: /* @__PURE__ */ (0, R.jsx)(FLe, {
...e.props,
onSignal: n,
avatarInner: r
@@ -71745,7 +71846,7 @@ function G8({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function vLe({ data: e, onSignal: t, navigate: n }) {
+function ILe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -71820,12 +71921,12 @@ function vLe({ data: e, onSignal: t, navigate: n }) {
shell: "plain",
icon: ht,
title: "还没有可探索的入口",
- children: lLe
+ children: DLe
})
]
});
}
-function yLe({ onboarding: e, done: t }) {
+function LLe({ onboarding: e, done: t }) {
let [n, r] = (0, L.useState)(() => {
try {
return localStorage.getItem(H8) === "1";
@@ -71838,17 +71939,17 @@ function yLe({ onboarding: e, done: t }) {
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, R.jsxs)(XO, {
+ children: /* @__PURE__ */ (0, R.jsxs)(VO, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: fLe
+ children: ALe
}),
/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: pLe
+ children: jLe
}),
/* @__PURE__ */ (0, R.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -71878,7 +71979,7 @@ function yLe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, R.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: mLe
+ children: MLe
}),
/* @__PURE__ */ (0, R.jsx)("span", {
className: "self-start",
@@ -71898,7 +71999,7 @@ function yLe({ onboarding: e, done: t }) {
})
});
}
-function bLe({ busy: e, onRefresh: t, onImport: n }) {
+function RLe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, L.useRef)(null), [i, a] = (0, L.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -71908,7 +72009,7 @@ function bLe({ busy: e, onRefresh: t, onImport: n }) {
"data-variant": "primary",
children: [/* @__PURE__ */ (0, R.jsx)(V, {
leadingIcon: Xe,
- title: sLe,
+ title: TLe,
onClick: t,
...G(e),
children: "读取浏览器历史"
@@ -71924,14 +72025,14 @@ function bLe({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, R.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, R.jsx)(Ey, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: TO,
- children: /* @__PURE__ */ (0, R.jsxs)(SO, {
+ className: gO,
+ children: /* @__PURE__ */ (0, R.jsxs)(pO, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, R.jsxs)("button", {
@@ -71954,9 +72055,9 @@ function bLe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function xLe({ sources: e, window: t, toast: n }) {
+function zLe({ sources: e, window: t, toast: n }) {
let r = Qn({
- mutationFn: (e) => wIe(e, t),
+ mutationFn: (e) => HIe(e, t),
onSuccess: (e) => {
K.setQueryData(b8(t), e.dashboard), n("已移除口味数据源");
}
@@ -72008,7 +72109,7 @@ function xLe({ sources: e, window: t, toast: n }) {
onClick: () => {
r.isPending || b({
title: "移除口味数据源",
- body: hLe,
+ body: NLe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -72020,26 +72121,26 @@ function xLe({ sources: e, window: t, toast: n }) {
shell: "plain",
icon: Ze,
title: "还没有数据源",
- children: cLe
+ children: ELe
})
]
});
}
-function SLe(e) {
+function BLe(e) {
let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: a } = e, [o, c] = (0, L.useState)("all"), [l, u] = (0, L.useState)("browser"), d = (0, L.useRef)(null), f = Zn({
queryKey: b8(o),
queryFn: ({ signal: e }) => x8(o, e),
placeholderData: Yt
- }), { job: p, running: m, outcome: h, start: g } = ik({
- queryKey: yIe,
- queryFn: ({ signal: e }) => xIe(e),
- start: () => CIe(o),
- idlePollMs: EIe,
+ }), { job: p, running: m, outcome: h, start: g } = YO({
+ queryKey: LIe,
+ queryFn: ({ signal: e }) => zIe(e),
+ start: () => VIe(o),
+ idlePollMs: WIe,
onFinish: (e) => {
e.status !== "failed" && (K.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), _ = Qn({
- mutationFn: (e) => TIe(e),
+ mutationFn: (e) => UIe(e),
onSuccess: (e) => {
K.setQueryData(b8("all"), e.dashboard), c("all"), r("已导入口味数据");
}
@@ -72056,40 +72157,40 @@ function SLe(e) {
}) });
let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? H(g.error) : _.error ? H(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
return /* @__PURE__ */ (0, R.jsxs)(ea, { children: [
- /* @__PURE__ */ (0, R.jsxs)(XS, {
+ /* @__PURE__ */ (0, R.jsxs)(BS, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, R.jsxs)(Hk, {
+ children: [/* @__PURE__ */ (0, R.jsxs)(Mk, {
"aria-label": "口味证据来源",
- className: Wk,
- children: [/* @__PURE__ */ (0, R.jsx)(eC, {
+ className: Pk,
+ children: [/* @__PURE__ */ (0, R.jsx)(WS, {
id: "browser",
- className: Gk,
+ className: Fk,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, R.jsx)(eC, {
+ }), /* @__PURE__ */ (0, R.jsx)(WS, {
id: "peach",
- className: Gk,
+ className: Fk,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, R.jsx)(tk, {
+ /* @__PURE__ */ (0, R.jsx)(KO, {
"aria-label": "分析范围",
selectedKey: o,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: bIe.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(nk, {
+ children: RIe.map(([e, t]) => /* @__PURE__ */ (0, R.jsx)(qO, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, R.jsx)(bLe, {
+ /* @__PURE__ */ (0, R.jsx)(RLe, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -72105,7 +72206,7 @@ function SLe(e) {
]
})]
}),
- /* @__PURE__ */ (0, R.jsx)(yLe, {
+ /* @__PURE__ */ (0, R.jsx)(LLe, {
onboarding: a,
done: !!(x.history_sources || b.updated_at)
}),
@@ -72113,19 +72214,19 @@ function SLe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- m ? /* @__PURE__ */ (0, R.jsx)(LO, {
+ m ? /* @__PURE__ */ (0, R.jsx)(OO, {
label: p?.message || "正在读取浏览记录并更新口味分析",
value: p?.checked,
total: p?.total
}) : null,
- _.isPending ? /* @__PURE__ */ (0, R.jsx)(LO, { label: "正在导入历史文件" }) : null,
+ _.isPending ? /* @__PURE__ */ (0, R.jsx)(OO, { label: "正在导入历史文件" }) : null,
k ? /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
children: k
}) : null
]
}),
- /* @__PURE__ */ (0, R.jsxs)(tC, {
+ /* @__PURE__ */ (0, R.jsxs)(GS, {
id: "browser",
className: "flex flex-col gap-5",
children: [
@@ -72171,7 +72272,7 @@ function SLe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, R.jsx)(rLe, {
+ /* @__PURE__ */ (0, R.jsx)(xLe, {
rows: T,
label: "主要口味维度"
}),
@@ -72182,14 +72283,14 @@ function SLe(e) {
]
}), /* @__PURE__ */ (0, R.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, R.jsx)(iLe, {
+ children: T.length ? /* @__PURE__ */ (0, R.jsx)(SLe, {
rows: T,
label: "口味维度排名"
}) : /* @__PURE__ */ (0, R.jsx)(Qi, {
shell: "plain",
icon: ht,
title: "暂无口味维度",
- children: uLe
+ children: OLe
})
})]
}),
@@ -72205,7 +72306,7 @@ function SLe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, R.jsx)(aLe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, R.jsx)(CLe, { flows: b.creator_flows }),
/* @__PURE__ */ (0, R.jsx)(G8, {
label: "浏览器口味维度",
onSignal: t,
@@ -72248,14 +72349,14 @@ function SLe(e) {
rows: E,
kind: "",
visual: "none",
- empty: dLe
+ empty: kLe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, R.jsxs)(tC, {
+ /* @__PURE__ */ (0, R.jsxs)(GS, {
id: "peach",
className: "flex flex-col gap-5",
children: [
@@ -72267,7 +72368,7 @@ function SLe(e) {
icon: tt,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: DIe(x.peach_seconds || 0)
+ detail: GIe(x.peach_seconds || 0)
}),
/* @__PURE__ */ (0, R.jsx)(U8, {
accent: 1,
@@ -72362,12 +72463,12 @@ function SLe(e) {
})
]
}),
- /* @__PURE__ */ (0, R.jsx)(vLe, {
+ /* @__PURE__ */ (0, R.jsx)(ILe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, R.jsx)(xLe, {
+ /* @__PURE__ */ (0, R.jsx)(zLe, {
sources: b.sources || [],
window: o,
toast: r
@@ -72401,35 +72502,35 @@ function q8(e, t, n, r) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var CLe = (e) => {
+var VLe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function wLe({ openConfiguration: e }) {
+function HLe({ openConfiguration: e }) {
let t = Zn({
- queryKey: JI,
- queryFn: ({ signal: e }) => YI(e)
+ queryKey: aL,
+ queryFn: ({ signal: e }) => oL(e)
}), n = t.data;
return /* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, R.jsxs)(JO, { children: [
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ children: [n ? /* @__PURE__ */ (0, R.jsxs)(zO, { children: [
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, R.jsx)(YO, {
+ /* @__PURE__ */ (0, R.jsx)(BO, {
term: "更新",
- children: CLe(n)
+ children: VLe(n)
})
- ] }) : /* @__PURE__ */ (0, R.jsx)(HO, { children: /* @__PURE__ */ (0, R.jsx)(W, {
+ ] }) : /* @__PURE__ */ (0, R.jsx)(NO, { children: /* @__PURE__ */ (0, R.jsx)(W, {
tone: "error",
title: "配置读取失败",
children: t.error ? H(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, R.jsx)(UO, {
+ }) }), /* @__PURE__ */ (0, R.jsx)(PO, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, R.jsx)(V, {
onClick: e,
@@ -72447,7 +72548,7 @@ function J8({ name: e }) {
children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
});
}
-function TLe({ name: e }) {
+function ULe({ name: e }) {
return /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -72502,7 +72603,7 @@ function Z8({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function ELe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function WLe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, L.useRef)(null), c = (0, L.useRef)(null), l = (0, L.useRef)({
onStep: a,
onSettle: o
@@ -72537,7 +72638,7 @@ function ELe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var DLe = [
+var GLe = [
[
"strength",
"强度",
@@ -72564,7 +72665,7 @@ var DLe = [
100
]
];
-function OLe({ host: e, version: t }) {
+function KLe({ host: e, version: t }) {
let n = (0, L.useRef)(null), r = (0, L.useRef)(!1);
return (0, L.useLayoutEffect)(() => {
let t = n.current;
@@ -72577,7 +72678,7 @@ function OLe({ host: e, version: t }) {
ref: n
});
}
-function kLe({ host: e, spot: t, index: n, glow: r }) {
+function qLe({ host: e, spot: t, index: n, glow: r }) {
let i = de[n], a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)(null), [c, l] = (0, L.useState)("all");
(0, L.useLayoutEffect)(() => {
let [e, t, n] = [
@@ -72655,7 +72756,7 @@ function kLe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function ALe({ host: e, version: t }) {
+function JLe({ host: e, version: t }) {
let n = e.store.value.homeGlow, r = ge(n.preset);
return /* @__PURE__ */ (0, R.jsxs)("section", {
"data-glow-setting": "",
@@ -72674,7 +72775,7 @@ function ALe({ host: e, version: t }) {
children: he(n.preset)
})]
}),
- /* @__PURE__ */ (0, R.jsx)(OLe, {
+ /* @__PURE__ */ (0, R.jsx)(KLe, {
host: e,
version: t
}),
@@ -72685,7 +72786,7 @@ function ALe({ host: e, version: t }) {
}),
/* @__PURE__ */ (0, R.jsx)("div", {
"data-glow-fields": "",
- children: DLe.map(([t, i, a]) => /* @__PURE__ */ (0, R.jsx)(ELe, {
+ children: GLe.map(([t, i, a]) => /* @__PURE__ */ (0, R.jsx)(WLe, {
field: t,
label: i,
max: a,
@@ -72707,7 +72808,7 @@ function ALe({ host: e, version: t }) {
hidden: r,
children: [/* @__PURE__ */ (0, R.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, R.jsx)("div", {
"data-glow-stops": "",
- children: pe.map((t, r) => /* @__PURE__ */ (0, R.jsx)(kLe, {
+ children: pe.map((t, r) => /* @__PURE__ */ (0, R.jsx)(qLe, {
host: e,
spot: t,
index: r,
@@ -72732,7 +72833,7 @@ function ALe({ host: e, version: t }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var jLe = {
+var YLe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -72775,7 +72876,7 @@ var jLe = {
}
}, Q8 = (e) => `peach.number.${e}`;
function $8({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = jLe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, L.useRef)(0);
+ let a = YLe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, L.useRef)(0);
d.current ||= q8(Number(localStorage.getItem(Q8(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, L.useState)(n ?? 0), [m, h] = (0, L.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, L.useState)(""), v = (0, L.useRef)(null), y = (0, L.useRef)(i);
y.current = i, (0, L.useLayoutEffect)(() => {
@@ -72853,8 +72954,8 @@ function $8({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var MLe = "__home__", e5 = (e) => e === "" ? MLe : e;
-function NLe({ host: e }) {
+var XLe = "__home__", e5 = (e) => e === "" ? XLe : e;
+function ZLe({ host: e }) {
let t = Yc(), 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, L.useState)(null), [c, l] = (0, L.useState)(!1), [u, d] = (0, L.useState)(null), [f, p] = (0, L.useState)(null), m = (0, L.useRef)(null), h = (0, L.useRef)(null), g = (n) => {
e.store.value.sidebarOrder = n, e.store.save(), e.changed("sidebarOrder"), t.mutate({ sidebarOrder: n }, { onError: () => {} });
}, _ = (e, t, r) => {
@@ -73030,7 +73131,7 @@ var t5 = [
["关注", "ri-rss-line"],
["安全", "ri-shield-check-line"],
["这台电脑", "ri-macbook-line"]
-], PLe = [
+], QLe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -73039,21 +73140,21 @@ var t5 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], FLe = [["desc", "降序"], ["asc", "升序"]], ILe = [
+], $Le = [["desc", "降序"], ["asc", "升序"]], eRe = [
["off", "关闭"],
["precise", "精准"],
["coarse", "粗略"]
-], LLe = [
+], tRe = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
-], RLe = [
+], nRe = [
0,
7,
30,
90
-], zLe = [[
+], rRe = [[
"cover",
"官方封面",
""
@@ -73061,7 +73162,7 @@ var t5 = [
"thumbnail",
"预览图",
""
-]], BLe = [
+]], iRe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -73086,19 +73187,19 @@ var t5 = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], VLe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", n5 = null, r5 = null, i5 = null, a5 = {
+], aRe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", n5 = null, r5 = null, i5 = null, a5 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
}, o5 = 0, s5 = null;
-function HLe() {
+function oRe() {
return (!r5 || !i5?.isConnected) && (r5?.unmount(), i5 = document.createElement("div"), i5.dataset.settingsHost = "", document.body.append(i5), r5 = (0, ze.createRoot)(i5)), r5;
}
function c5() {
let e = n5;
- e && (0, Re.flushSync)(() => HLe().render(/* @__PURE__ */ (0, R.jsx)(jI, { children: /* @__PURE__ */ (0, R.jsx)(YLe, {
+ e && (0, Re.flushSync)(() => oRe().render(/* @__PURE__ */ (0, R.jsx)(HI, { children: /* @__PURE__ */ (0, R.jsx)(pRe, {
host: e,
view: a5
}) })));
@@ -73109,7 +73210,7 @@ function l5(e) {
...e
}, c5();
}
-async function ULe(e) {
+async function sRe(e) {
if (a5.machine === "summary") return;
let t = await e.configurable();
if (a5.open) {
@@ -73118,12 +73219,12 @@ async function ULe(e) {
return;
}
try {
- await XI(new AbortController().signal);
+ await sL(new AbortController().signal);
} catch {}
a5.open && l5({ machine: "summary" });
}
}
-function WLe(e = "") {
+function cRe(e = "") {
let t = n5;
if (!t) return;
y(), o5 += 1, s5 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
@@ -73135,7 +73236,7 @@ function WLe(e = "") {
tab: n >= 0 ? n : a5.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), ULe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), sRe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function u5() {
if (!a5.open || a5.closing) return;
@@ -73153,24 +73254,24 @@ function u5() {
}
i5?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
-var GLe = {
- open: WLe,
+var lRe = {
+ open: cRe,
close: u5,
isOpen: () => a5.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function KLe(e) {
- return n5 = e, c5(), GLe;
+function uRe(e) {
+ return n5 = e, c5(), lRe;
}
-function qLe(e) {
+function dRe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(VLe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(aRe)].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 d5 = (e) => `settings-tab-${e}`, f5 = (e) => e === t5.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function JLe({ tab: e, epoch: t, onSelect: n }) {
+function fRe({ tab: e, epoch: t, onSelect: n }) {
let r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(e), s = (0, L.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
@@ -73242,7 +73343,7 @@ function JLe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, R.jsx)(TLe, { name: r }), t]
+ children: [/* @__PURE__ */ (0, R.jsx)(ULe, { name: r }), t]
}, t))
]
});
@@ -73286,7 +73387,7 @@ var g5 = ({ html: e, ...t }) => /* @__PURE__ */ (0, R.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
}), _5 = () => `${ie("保存中")}<span>正在保存…</span>`, v5 = (e, t) => e instanceof Error && e.message || t;
-function YLe({ host: e, view: t }) {
+function pRe({ host: e, view: t }) {
let n = (0, L.useSyncExternalStore)(e.store.subscribe, e.store.version), r = e.store.value, i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)(null), c = (0, L.useRef)(null), l = (0, L.useRef)(t.tab), u = () => {
let [e, t] = [a.current, s.current];
if (!e || !t) return;
@@ -73317,7 +73418,7 @@ function YLe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: i,
- onKeyDown: qLe,
+ onKeyDown: dRe,
onClick: (e) => {
e.target === e.currentTarget && u5();
},
@@ -73342,7 +73443,7 @@ function YLe({ host: e, view: t }) {
})
})]
}),
- /* @__PURE__ */ (0, R.jsx)(JLe, {
+ /* @__PURE__ */ (0, R.jsx)(fRe, {
tab: t.tab,
epoch: f,
onSelect: p
@@ -73404,7 +73505,7 @@ function YLe({ host: e, view: t }) {
r.homeGlow.on = t, m(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, R.jsx)(ALe, {
+ /* @__PURE__ */ (0, R.jsx)(JLe, {
host: e,
version: n
}),
@@ -73414,16 +73515,16 @@ function YLe({ host: e, view: t }) {
children: [/* @__PURE__ */ (0, R.jsxs)("span", { children: [/* @__PURE__ */ (0, R.jsx)("b", {
id: "sidebarOrderTitle",
children: "左侧导航"
- }), /* @__PURE__ */ (0, R.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, R.jsx)(NLe, { host: e })]
+ }), /* @__PURE__ */ (0, R.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, R.jsx)(ZLe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, R.jsx)(ZLe, {
+ /* @__PURE__ */ (0, R.jsx)(hRe, {
host: e,
tab: t.tab,
epoch: f
}),
- /* @__PURE__ */ (0, R.jsx)($Le, {
+ /* @__PURE__ */ (0, R.jsx)(_Re, {
host: e,
tab: t.tab,
epoch: f
@@ -73431,12 +73532,12 @@ function YLe({ host: e, view: t }) {
/* @__PURE__ */ (0, R.jsx)(p5, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, R.jsx)(tRe, {
+ children: /* @__PURE__ */ (0, R.jsx)(yRe, {
host: e,
epoch: f
})
}),
- /* @__PURE__ */ (0, R.jsx)(nRe, {
+ /* @__PURE__ */ (0, R.jsx)(bRe, {
host: e,
tab: t.tab,
epoch: f
@@ -73456,7 +73557,7 @@ function YLe({ host: e, view: t }) {
/* @__PURE__ */ (0, R.jsx)(p5, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, R.jsx)(iRe, {
+ children: /* @__PURE__ */ (0, R.jsx)(SRe, {
host: e,
machine: t.machine
})
@@ -73467,7 +73568,7 @@ function YLe({ host: e, view: t }) {
})
});
}
-function XLe(e, t) {
+function mRe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = T("arrow-up", "arrow-down", "a", {
@@ -73477,7 +73578,7 @@ function XLe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function ZLe({ host: e, tab: t, epoch: n }) {
+function hRe({ 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, R.jsxs)(p5, {
index: 1,
@@ -73510,7 +73611,7 @@ function ZLe({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, R.jsx)(Z8, {
id: "defaultSortSetting",
label: "默认排序",
- options: PLe,
+ options: QLe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -73519,7 +73620,7 @@ function ZLe({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, R.jsx)(Z8, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: FLe,
+ options: $Le,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -73528,7 +73629,7 @@ function ZLe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => XLe(e, o)
+ decorate: (e) => mRe(e, o)
})]
})
}),
@@ -73552,7 +73653,7 @@ function ZLe({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
- options: zLe,
+ options: rRe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -73589,7 +73690,7 @@ function ZLe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- BLe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, R.jsx)(QLe, {
+ iRe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, R.jsx)(gRe, {
host: e,
id: t,
settingKey: n,
@@ -73601,7 +73702,7 @@ function ZLe({ host: e, tab: t, epoch: n }) {
]
});
}
-function QLe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+function gRe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
let s = Yc(), [c, l] = (0, L.useState)(null), u = (0, L.useRef)(null), d = e.store.value, f = (t) => {
l(t), F(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -73630,7 +73731,7 @@ function QLe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function $Le({ host: e, tab: t, epoch: n }) {
+function _Re({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, R.jsxs)(p5, {
index: 2,
@@ -73684,7 +73785,7 @@ function $Le({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, R.jsx)(eRe, { epoch: n }),
+ /* @__PURE__ */ (0, R.jsx)(vRe, { epoch: n }),
/* @__PURE__ */ (0, R.jsx)(h5, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
@@ -73703,7 +73804,7 @@ function $Le({ host: e, tab: t, epoch: n }) {
]
});
}
-function eRe({ epoch: e }) {
+function vRe({ epoch: e }) {
let t = Zn({
queryKey: Wc,
queryFn: ({ signal: e }) => qc(e)
@@ -73722,7 +73823,7 @@ function eRe({ epoch: e }) {
children: /* @__PURE__ */ (0, R.jsx)(Z8, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
- options: ILe,
+ options: eRe,
value: n.isPending || n.isError ? n.variables ?? i : i,
disabled: n.isPending || t.isFetching,
epoch: e,
@@ -73730,7 +73831,7 @@ function eRe({ epoch: e }) {
})
});
}
-function tRe({ host: e, epoch: t }) {
+function yRe({ host: e, epoch: t }) {
let n = e.store.value, r = Yc();
return /* @__PURE__ */ (0, R.jsx)(h5, {
title: "搜索记录",
@@ -73748,7 +73849,7 @@ function tRe({ host: e, epoch: t }) {
})
});
}
-function nRe({ host: e, tab: t, epoch: n }) {
+function bRe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = Yc(), a = Yc(), [o, s] = (0, L.useState)("");
(0, L.useEffect)(() => {
s("");
@@ -73784,26 +73885,26 @@ function nRe({ host: e, tab: t, epoch: n }) {
onPick: (e) => c(Number(e))
})
}),
- /* @__PURE__ */ (0, R.jsx)(rRe, { epoch: n }),
+ /* @__PURE__ */ (0, R.jsx)(xRe, { epoch: n }),
/* @__PURE__ */ (0, R.jsx)(h5, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
children: /* @__PURE__ */ (0, R.jsx)(Z8, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
- options: LLe,
+ options: tRe,
value: String(r.metadataRefreshDays),
epoch: n,
onPick: (t) => {
let n = Number(t);
- r.metadataRefreshDays = RLe.includes(n) ? n : 30, e.store.save(), i.mutate({ metadataRefreshDays: r.metadataRefreshDays }, { onError: () => {} });
+ r.metadataRefreshDays = nRe.includes(n) ? n : 30, e.store.save(), i.mutate({ metadataRefreshDays: r.metadataRefreshDays }, { onError: () => {} });
}
})
})
]
});
}
-function rRe({ epoch: e }) {
+function xRe({ epoch: e }) {
let t = Zn({
queryKey: Uc,
queryFn: ({ signal: e }) => Kc(e)
@@ -73831,12 +73932,12 @@ function rRe({ epoch: e }) {
})
});
}
-function iRe({ host: e, machine: t }) {
+function SRe({ host: e, machine: t }) {
return t === "summary" ? /* @__PURE__ */ (0, R.jsx)("div", {
id: "machineSettings",
children: /* @__PURE__ */ (0, R.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, R.jsx)(wLe, { openConfiguration: () => {
+ children: /* @__PURE__ */ (0, R.jsx)(HLe, { openConfiguration: () => {
u5(), e.openConfiguration();
} })
})
@@ -73850,14 +73951,14 @@ function y5(e) {
}
//#endregion
//#region src/board-skeleton.ts
-var b5 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, aRe = () => `${b5("80%")}${b5("48%")}`, oRe = (e, t) => e.repeat(t);
-function sRe() {
- 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">${b5("85%")}${b5("65%")}${oRe(aRe(), 4)}</div></aside></div>`;
+var b5 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, CRe = () => `${b5("80%")}${b5("48%")}`, wRe = (e, t) => e.repeat(t);
+function TRe() {
+ 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">${b5("85%")}${b5("65%")}${wRe(CRe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/player/host.ts
var x5 = null;
-function cRe(e) {
+function ERe(e) {
x5 = e;
}
function S5() {
@@ -73867,10 +73968,10 @@ function S5() {
//#endregion
//#region src/player/menu.ts
var C5 = null;
-function lRe(e) {
+function DRe(e) {
C5 = e;
}
-function uRe() {
+function ORe() {
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;
}
@@ -73881,7 +73982,7 @@ function E5() {
e.innerHTML = "";
}), w5 &&= (w5(), null);
}
-async function dRe(e) {
+async function kRe(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -73894,12 +73995,12 @@ async function dRe(e) {
return t.remove(), n;
}
}
-function fRe(e) {
+function ARe(e) {
let t = !!C5?.inMiniplayer(e), n = e.peachItem, r = C5?.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) => {
- dRe(i(e)).then((e) => S5().toast(e ? t : "复制失败,请手动复制地址栏", {
+ kRe(i(e)).then((e) => S5().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -73938,12 +74039,12 @@ function fRe(e) {
run: () => s.click()
}), o;
}
-function pRe(e, t, n) {
- let r = uRe();
+function jRe(e, t, n) {
+ let r = ORe();
E5();
let a = S5().stage();
a instanceof HTMLDialogElement && a.open && a.append(r), r.setAttribute("popover", "manual");
- let o = fRe(e);
+ let o = ARe(e);
r.innerHTML = o.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}">${T5(l(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${i(e.label)}</span>${n ? T5(l("check"), "data-player-menu-check") : ""}</button>`;
@@ -73979,9 +74080,9 @@ function pRe(e, t, n) {
document.removeEventListener("pointerdown", c, !0), document.removeEventListener("keydown", u, !0), window.removeEventListener("scroll", d, !0);
}, s[0]?.focus();
}
-function mRe(e) {
+function MRe(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), pRe(e, t.clientX, t.clientY));
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), jRe(e, t.clientX, t.clientY));
}), e.on("dispose", E5);
}
//#endregion
@@ -74002,7 +74103,7 @@ function j5(e) {
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 hRe(e) {
+function NRe(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
@@ -74012,7 +74113,7 @@ function N5(e, t) {
let n = Number(e) || 0, r = p(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function gRe(e) {
+function PRe(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -74027,7 +74128,7 @@ function gRe(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = hRe(e), s = e.currentTime || 0;
+ let a = performance.now(), o = NRe(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
!i && c > 0 && (r += c), e * 1e3 > M5 * 2 && (t.length = 0);
@@ -74058,7 +74159,7 @@ function L5(e, t, n, r) {
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${i(r)}">${s}</span>`;
}
-function _Re() {
+function FRe() {
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>`;
@@ -74067,7 +74168,7 @@ function R5(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 vRe(e, t = "") {
+function IRe(e, t = "") {
let n = R5(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;
}
@@ -74076,14 +74177,14 @@ function z5(e, t, n = "", r = null) {
try {
i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : vRe(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : IRe(t, n);
}
function B5(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 yRe(e, t) {
+function LRe(e, t) {
return e > 0 ? B5(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : B5(0);
}
//#endregion
@@ -74099,7 +74200,7 @@ function V5(e, t, n = "") {
};
return o(), o;
}
-function bRe(e, t = !0) {
+function RRe(e, t = !0) {
let n = S5(), 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 } }));
}
@@ -74115,7 +74216,7 @@ function W5(e, t = !0) {
let i = n.stage();
i?.toggleAttribute("data-theater", r.theaterMode), U5(i?.querySelector("[data-player-theater]")), A5(O5());
}
-function xRe(e) {
+function zRe(e) {
let t = S5().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
@@ -74149,7 +74250,7 @@ function xRe(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 BRe(e, t, n = 0, r = null) {
let a = e.getChild("controlBar")?.el();
if (!a || a.querySelector("[data-player-quality]")) return;
let o = document.createElement("div");
@@ -74224,7 +74325,7 @@ function SRe(e, t, n = 0, r = null) {
<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>${i(n.label)}</b>${l("player-menu-next")}</button></div>`, t);
w(a, "[data-player-ambient]").onclick = () => {
- bRe(!S5().settings().ambientMode), T();
+ RRe(!S5().settings().ambientMode), T();
}, w(a, "[data-player-speed]").onclick = () => k(), w(a, "[data-player-quality-view]").onclick = () => A();
}, E = .05, D = [
1,
@@ -74282,11 +74383,11 @@ function SRe(e, t, n = 0, r = null) {
v() ? T() : _();
}), e.on("dispose", () => {
document.removeEventListener("pointerdown", j), document.removeEventListener(I5, x), S && clearTimeout(S);
- }), _(), CRe(e, o), wRe(e), (e) => {
+ }), _(), VRe(e, o), HRe(e), (e) => {
p = e?.length ? e : null, v() ? T() : _();
};
}
-function CRe(e, t) {
+function VRe(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
let r = S5().settings().theaterMode, i = document.createElement("div");
@@ -74296,7 +74397,7 @@ function CRe(e, t) {
e.stopPropagation(), W5(!S5().settings().theaterMode);
};
}
-function wRe(e) {
+function HRe(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -74394,7 +74495,7 @@ function wRe(e) {
}, ae = new ResizeObserver(ie);
ae.observe(e.el()), e.on("dispose", () => ae.disconnect()), re(!1), ie();
}
-function TRe(e, n, r = {}) {
+function URe(e, n, r = {}) {
let i = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!i || i.querySelector("[data-player-seek-preview]")) return;
let o = r.thumbnail !== !1, s = document.createElement("div");
@@ -74427,7 +74528,7 @@ function TRe(e, n, r = {}) {
i.removeEventListener("pointermove", g), i.removeEventListener("pointerleave", _);
});
}
-function ERe(e, t) {
+function WRe(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => p(e.duration()) || p(t.duration) || 0, i = (t) => {
@@ -74474,11 +74575,11 @@ function ERe(e, t) {
} catch {}
});
}
-function DRe(e) {
+function GRe(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 ORe(e, n) {
+function KRe(e, n) {
t(`/api/assets/${n}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -74493,7 +74594,7 @@ function ORe(e, n) {
}
//#endregion
//#region src/player/stream.ts
-function kRe() {
+function qRe() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
function G5(e, t) {
@@ -74502,14 +74603,14 @@ function G5(e, t) {
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function ARe(e) {
+function JRe(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function jRe(e, n) {
- let r = ARe(e);
+async function YRe(e, n) {
+ let r = JRe(e);
if (r) return r;
try {
let r = await t(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(n)}`);
@@ -74520,7 +74621,7 @@ async function jRe(e, n) {
} catch {}
return G5(e, n);
}
-function MRe(e) {
+function XRe(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -74534,16 +74635,16 @@ function q5() {
return K5;
}
function J5() {
- return K5 ||= kRe(), K5;
+ return K5 ||= qRe(), K5;
}
-var NRe = (e) => G5(e, J5()), PRe = (e) => jRe(e, J5());
+var ZRe = (e) => G5(e, J5()), QRe = (e) => YRe(e, J5());
function Y5() {
let e = K5;
- e && (K5 = "", MRe(e));
+ e && (K5 = "", XRe(e));
}
//#endregion
//#region src/player/telemetry.ts
-function FRe(e, n, r = {}) {
+function $Re(e, n, r = {}) {
if (!n) return;
let i = 0, a = 0, o = 0, s = null;
n.addEventListener("seeking", () => {
@@ -74591,7 +74692,7 @@ function FRe(e, n, r = {}) {
d(), u(!1);
}, { once: !0 }), l();
}
-function IRe(e, n) {
+function eze(e, n) {
let r = 0, i = 0, a = !1, o = null, s = (r) => {
let a = p(e.duration) || p(n.duration);
!i && !r || (t("/api/follow/activity", {
@@ -74640,7 +74741,7 @@ var X5 = "/vendor/videojs/8.24.1/", Z5 = (e) => new Promise((t, n) => {
i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));
}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));
}), Q5 = () => globalThis.videojs, $5 = null;
-function LRe() {
+function tze() {
let e = Q5();
return e ? Promise.resolve(e) : ($5 ??= Z5(`${X5}video.min.js`).then(() => Z5(`${X5}lang/zh-CN.js`)).then(() => {
let e = Q5();
@@ -74656,14 +74757,14 @@ var e7 = /* @__PURE__ */ new WeakMap(), t7 = null, n7 = null, r7 = null;
function i7() {
t7 &&= (clearInterval(t7), null), n7 &&= (clearInterval(n7), null), r7 &&= (clearTimeout(r7), null);
}
-async function RRe(e, t, n, r = {}) {
+async function nze(e, t, n, r = {}) {
let o = O5();
if (o && !o.isDisposed()) return o;
let c = S5(), u = r.resume ?? null;
u?.autoplay && (n = !0);
- let d = () => r.source ? Promise.resolve(r.source) : PRe(e), f;
+ let d = () => r.source ? Promise.resolve(r.source) : QRe(e), f;
try {
- f = await LRe();
+ f = await tze();
} catch {
return t.controls = !0, d().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -74683,7 +74784,7 @@ async function RRe(e, t, n, r = {}) {
remainingTimeDisplay: !1
}
});
- k5(m), m.peachItem = e, mRe(m), m.on("loadedmetadata", () => {
+ k5(m), m.peachItem = e, MRe(m), m.on("loadedmetadata", () => {
let e = m.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && m.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -74691,7 +74792,7 @@ async function RRe(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, _ = Number(r.size ?? e.size) || 0, v = gRe(N5(_, e.duration)), y = 0, b = !1, x = () => O5() === m && !m.isDisposed(), S = () => {
+ }, _ = Number(r.size ?? e.size) || 0, v = PRe(N5(_, e.duration)), y = 0, b = !1, x = () => O5() === m && !m.isDisposed(), S = () => {
if (!h || b || !x()) return;
let e = Number(m.duration());
(!Number.isFinite(e) || Math.abs(e - h) > Math.max(2, h * .001)) && (b = !0, m.duration(h), queueMicrotask(() => {
@@ -74754,7 +74855,7 @@ async function RRe(e, t, n, r = {}) {
if (!n || m.isDisposed()) return;
let r = C();
r || v.sample(t);
- let a = z5(m, e.id, q5(), r ? null : v), o = r ? B5(a) : yRe(a, j5(t));
+ let a = z5(m, e.id, q5(), r ? null : v), o = r ? B5(a) : LRe(a, j5(t));
n.innerHTML = `${l("gauge")}<span class="sr-only">加载速度</span><span>${i(o)}</span>`;
}, O = () => {
let e = w.chrome?.netBadge;
@@ -74774,7 +74875,7 @@ async function RRe(e, t, n, r = {}) {
D(), k();
}), m.on("error", () => {
if (T && !E && !m.isDisposed()) {
- E = !0, T = !1, m.src(NRe(e)), n && m.play()?.catch(() => {});
+ E = !0, T = !1, m.src(ZRe(e)), n && m.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && c.loadSourceStatus().then((t) => {
@@ -74785,24 +74886,24 @@ async function RRe(e, t, n, r = {}) {
});
}), m.ready(() => {
S();
- let n = SRe(m, t, e.height, r.qualities ?? null);
+ let n = BRe(m, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!x()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
r > 0 && !_ && (_ = r, v.bitrate = N5(r, e.duration));
- }).catch(() => {}), TRe(m, e, { thumbnail: !r.source }), ERe(m, e), DRe(m), r.source || ORe(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
+ }).catch(() => {}), URe(m, e, { thumbnail: !r.source }), WRe(m, e), GRe(m), r.source || KRe(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
}), d().then((e) => {
x() && (T = String(e.type || "").includes("mpegurl"), m.src(e), S(), setTimeout(S, 0), setTimeout(S, 250), u && u.time > 0 && m.one("loadedmetadata", () => {
m.isDisposed() || m.currentTime(u.time);
}), n && m.play()?.catch(() => {}));
}).catch(() => {}), m;
}
-var zRe = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+var rze = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
function a7(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", zRe), e.querySelector(":scope > #playerStatsBtn")) return;
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", rze), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = _Re(), e.insertBefore(n.content, t);
+ n.innerHTML = FRe(), e.insertBefore(n.content, t);
}
function o7(e, t) {
let n = e7.get(e);
@@ -74831,7 +74932,7 @@ function o7(e, t) {
};
document.addEventListener(I5, t), s = () => document.removeEventListener(I5, t);
}
- let c = e.el().querySelector("video"), l = c ? xRe(c) : () => {}, u = !0, d = () => {
+ let c = e.el().querySelector("video"), l = c ? zRe(c) : () => {}, u = !0, d = () => {
u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, i7()));
};
return e.one("dispose", d), d;
@@ -74874,7 +74975,7 @@ function c7(e, n) {
method: "POST",
body: JSON.stringify({ id: i.id })
}).catch(() => {});
- }, { once: !0 }), FRe(i, e, {
+ }, { once: !0 }), $Re(i, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
@@ -74883,7 +74984,7 @@ function c7(e, n) {
let d = null, f = !1, p = () => {}, m = () => {
p(), !(!d || o?.(d)) && (O5() === d && (k5(null), i7()), s7(d));
};
- return RRe(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
+ return nze(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
if (d = t, f) {
m();
return;
@@ -74892,18 +74993,18 @@ function c7(e, n) {
s?.(null);
return;
}
- l && (p = o7(t, l)), r === "follow" && IRe(i, e), s?.(t);
+ l && (p = o7(t, l)), r === "follow" && eze(i, e), s?.(t);
}), () => {
f = !0, m();
};
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var l7 = (e) => ["follow-item", e], BRe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, VRe = "/api/follow/save", HRe = "/api/follow/media/hide";
+var l7 = (e) => ["follow-item", e], ize = (e) => `/api/follow?item=${encodeURIComponent(e)}`, aze = "/api/follow/save", oze = "/api/follow/media/hide";
async function u7(e, t) {
- let n = await Hi(BRe(e), t);
+ let n = await Hi(ize(e), t);
for (let t of n.groups || []) {
- let r = YM(t).find((t) => t.id === e);
+ let r = qM(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -74913,10 +75014,10 @@ async function u7(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function URe(e, t) {
- let n = l7(e.id), r = nue(e.id), i = K.getQueryData(GM) ? null : K.fetchQuery({
- queryKey: GM,
- queryFn: () => KM(t)
+async function sze(e, t) {
+ let n = l7(e.id), r = sue(e.id), i = K.getQueryData(UM) ? null : K.fetchQuery({
+ queryKey: UM,
+ queryFn: () => WM(t)
});
r ? K.setQueryData(n, {
...r,
@@ -74926,8 +75027,8 @@ async function URe(e, t) {
queryFn: () => u7(e.id, t)
}), await i;
}
-function WRe(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 && eN(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 cze(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 && QM(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,
@@ -74941,32 +75042,32 @@ function WRe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var GRe = (e) => YM(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), KRe = {
+var lze = (e) => qM(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), uze = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, qRe = {
+}, dze = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function JRe(e) {
+function fze(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return KRe[t] || t;
+ return uze[t] || t;
} catch {
return "外部文件页";
}
}
function d7(e, t) {
- return qRe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return dze[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function YRe(e, t, n = "") {
+function pze(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;
@@ -74975,16 +75076,16 @@ function YRe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var XRe = (e) => String(e.name || "").trim(), f7 = (e, t) => e.tag_types?.[t] || "unknown", ZRe = /* @__PURE__ */ new Set([
+var mze = (e) => String(e.name || "").trim(), f7 = (e, t) => e.tag_types?.[t] || "unknown", hze = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function QRe(e, t) {
+function gze(e, t) {
let n = f7(e, t);
- return `r34-${ZRe.has(n) ? n : "general"}`;
+ return `r34-${hze.has(n) ? n : "general"}`;
}
var p7 = [
"copyright",
@@ -74993,23 +75094,23 @@ var p7 = [
"general",
"metadata"
];
-function $Re(e, t) {
+function _ze(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = p7.indexOf(f7(e, t));
return n < 0 ? p7.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function eze(e, t) {
+function vze(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 tze = (e, t) => ({
+var yze = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), m7 = (e) => e?.size ? { size: e.size } : {};
-function nze(e, t) {
+function bze(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}`,
@@ -75036,7 +75137,7 @@ function nze(e, t) {
total: 1
}] : [];
}
-var rze = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var xze = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
function h7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
@@ -75090,29 +75191,29 @@ function g7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var ize = ({ label: e, count: t }) => /* @__PURE__ */ (0, R.jsxs)("h3", {
+var Sze = ({ label: e, count: t }) => /* @__PURE__ */ (0, R.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, R.jsx)("span", { children: t })
]
-}), _7 = (e) => Number(e) > 0, aze = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("span", {
+}), _7 = (e) => Number(e) > 0, Cze = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(e) }
}), v7 = l("external-link", "externalmark");
-function oze(e) {
+function wze(e) {
let { id: t, actions: n } = e, r = Zn({
queryKey: l7(t),
queryFn: ({ signal: e }) => u7(t, e)
}), i = Zn({
- queryKey: GM,
- queryFn: ({ signal: e }) => KM(e)
+ queryKey: UM,
+ queryFn: ({ signal: e }) => WM(e)
}), a = (0, L.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, L.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, R.jsx)(sze, {
+ return r.data ? /* @__PURE__ */ (0, R.jsx)(Tze, {
...e,
data: r.data,
- context: tze(r.data, a),
+ context: yze(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, R.jsx)("div", {
@@ -75140,8 +75241,8 @@ var y7 = ({ onClose: e }) => /* @__PURE__ */ (0, R.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function sze({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = WRe(s, c, n, i), u = dze(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, L.useState)({
+function Tze({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = cze(s, c, n, i), u = kze(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, L.useState)({
key: "",
kind: ""
}), m = {
@@ -75161,7 +75262,7 @@ function sze({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? GRe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, R.jsx)(C7, {
+ let h = !l.embedded.length && l.collection ? lze(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, R.jsx)(C7, {
item: s,
current: l.selected.index,
helpers: a,
@@ -75174,7 +75275,7 @@ function sze({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, R.jsx)(lze, {
+ }) : /* @__PURE__ */ (0, R.jsx)(Dze, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -75185,7 +75286,7 @@ function sze({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, R.jsx)(cze, {
+ /* @__PURE__ */ (0, R.jsx)(Eze, {
item: s,
media: l,
helpers: a,
@@ -75194,7 +75295,7 @@ function sze({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, R.jsx)(uze, {
+ /* @__PURE__ */ (0, R.jsx)(Oze, {
item: s,
data: e,
context: t,
@@ -75207,8 +75308,8 @@ function sze({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function cze({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {
- let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, L.useRef)(null), [h, g] = (0, L.useState)(null), _ = nze(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, L.useState)(b), w = (0, L.useRef)({
+function Eze({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {
+ let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, L.useRef)(null), [h, g] = (0, L.useState)(null), _ = bze(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, L.useState)(b), w = (0, L.useRef)({
item: e,
selected: s
}), T = (0, L.useRef)(a.failed);
@@ -75245,7 +75346,7 @@ function cze({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
src: S,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: _.length ? () => void JA(Math.max(0, d), _) : void 0,
+ onClick: _.length ? () => void VA(Math.max(0, d), _) : void 0,
onError: () => {
if (x && S !== x) {
C(x), a.thumbFallback();
@@ -75257,7 +75358,7 @@ function cze({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: n.sourceIcon(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: iN(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, R.jsx)("span", { children: "没有可用预览" })]
}),
f ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
@@ -75315,8 +75416,8 @@ function S7(e) {
t && e.wireDrag(t);
}, [e]);
}
-function lze({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = eN(e), a = S7(n);
+function Dze({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = QM(e), a = S7(n);
return /* @__PURE__ */ (0, R.jsx)(h7, {
kind: "collection",
"data-follow-queue": "",
@@ -75324,34 +75425,34 @@ function lze({ group: e, itemId: t, helpers: n, actions: r }) {
onClose: r.close,
listRef: a,
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
- children: i.map((i) => {
- let a = e.duplicates.includes(i), s = YRe(e, i, a ? i.provider_label : ""), c = a ? n.sourceIcon(i.provider, i.provider_label) : "";
+ children: i.map((n) => {
+ let i = e.duplicates.includes(n), a = pze(e, n, i ? n.provider_label : ""), s = i ? iN(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, R.jsxs)(g7, {
- current: i.id === t,
- "data-follow-queue-item": i.id,
- onClick: () => r.openItem(i.id),
- pic: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [i.thumb_url ? /* @__PURE__ */ (0, R.jsx)(x7, { src: i.thumb_url }) : /* @__PURE__ */ (0, R.jsx)(b7, { kind: "video" }), _7(i.duration) ? /* @__PURE__ */ (0, R.jsx)("i", {
+ current: n.id === t,
+ "data-follow-queue-item": n.id,
+ onClick: () => r.openItem(n.id),
+ pic: /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, R.jsx)(x7, { src: n.thumb_url }) : /* @__PURE__ */ (0, R.jsx)(b7, { kind: "video" }), _7(n.duration) ? /* @__PURE__ */ (0, R.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
- children: o(i.duration)
+ children: o(n.duration)
}) : null] }),
children: [/* @__PURE__ */ (0, R.jsx)("b", {
"data-truncate-end": "",
- children: s.title
+ children: a.title
}), /* @__PURE__ */ (0, R.jsxs)("span", {
"data-follow-queue-meta": "",
- children: [c ? /* @__PURE__ */ (0, R.jsx)("span", {
+ children: [s ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-queue-source": "",
- dangerouslySetInnerHTML: { __html: c }
+ dangerouslySetInnerHTML: { __html: s }
}) : /* @__PURE__ */ (0, R.jsx)("i", {
- "data-follow-variant": i.variant_kind || "",
- children: s.label
+ "data-follow-variant": n.variant_kind || "",
+ children: a.label
}), /* @__PURE__ */ (0, R.jsx)("time", {
- dateTime: i.published_at || "",
- children: n.when(i)
+ dateTime: n.published_at || "",
+ children: dN(n)
})]
})]
- }, i.id);
+ }, n.id);
})
});
}
@@ -75373,7 +75474,7 @@ function C7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, R.jsx)(ize, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, R.jsx)(Sze, {
label: n.label,
count: n.items.length
}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, R.jsxs)(g7, {
@@ -75385,7 +75486,7 @@ function C7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, R.jsx)(x7, { src: n.thumb_url }) : /* @__PURE__ */ (0, R.jsx)(b7, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, R.jsx)("b", {
"data-middle-truncate": "",
- children: XRe(n)
+ children: mze(n)
}), /* @__PURE__ */ (0, R.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -75393,13 +75494,13 @@ function C7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function uze({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
+function Oze({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
let { kind: f, selected: p, src: m } = r, h = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, g = u.badges(h, e), _ = u.identity(e, eze(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = u.mediaIssue(e, n), b = $Re(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
+ }, g = lN(h, e), _ = sN(e, vze(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = uN(e, n), b = _ze(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -75415,7 +75516,7 @@ function uze({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: u.titleMarks(h, e) + i(e.title) }
+ dangerouslySetInnerHTML: { __html: cN(h, e) + i(e.title) }
}), e.url ? /* @__PURE__ */ (0, R.jsx)("a", {
className: "externallink",
"data-follow-origin": "",
@@ -75444,7 +75545,7 @@ function uze({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, R.jsx)("span", { children: u.when(e) }),
+ /* @__PURE__ */ (0, R.jsx)("span", { children: dN(e) }),
_7(e.duration) ? /* @__PURE__ */ (0, R.jsx)("span", { children: o(e.duration) }) : null,
g ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-follow-badges": "",
@@ -75479,7 +75580,7 @@ function uze({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [JRe(e), /* @__PURE__ */ (0, R.jsx)("span", {
+ children: [fze(e), /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: v7 }
})]
@@ -75569,7 +75670,7 @@ function uze({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...C(`restore:${e.index}`),
onClick: () => a.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, R.jsx)(x7, { src: e.thumb_url }) : /* @__PURE__ */ (0, R.jsx)(aze, { name: "image-off" }), /* @__PURE__ */ (0, R.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, R.jsx)(x7, { src: e.thumb_url }) : /* @__PURE__ */ (0, R.jsx)(Cze, { name: "image-off" }), /* @__PURE__ */ (0, R.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -75584,7 +75685,7 @@ function uze({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
children: b.map((t) => /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
className: "tg",
- "data-tag-cat": QRe(e, t),
+ "data-tag-cat": gze(e, t),
"data-follow-tag": t,
onClick: () => d.openTag(t),
children: u.tagLabel(t)
@@ -75594,7 +75695,7 @@ function uze({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
})
});
}
-function dze(e, t, n) {
+function kze(e, t, n) {
let r = e.id, i = l7(r), [a, o] = (0, L.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, L.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -75605,17 +75706,17 @@ function dze(e, t, n) {
...t.item,
status: e
}
- }), iue(r, e);
+ }), lue(r, e);
}, d = (e) => {
c(m(e) || "操作失败"), t.failure("更新关注状态", e);
}, f = Qn({
- mutationFn: ({ to: e }) => U(cM, {
+ mutationFn: ({ to: e }) => U(rM, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), t.toast(rze(n), { undo: i === "saved" ? void 0 : async () => {
- await U(cM, {
+ u(n), c(""), t.toast(xze(n), { undo: i === "saved" ? void 0 : async () => {
+ await U(rM, {
item: r,
to: i
}), u(i);
@@ -75624,7 +75725,7 @@ function dze(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Qn({
- mutationFn: () => U(VRe, { item: r }),
+ mutationFn: () => U(aze, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
@@ -75632,7 +75733,7 @@ function dze(e, t, n) {
onSettled: () => l("save", !1)
}), h = Qn({
mutationFn: async ({ index: e, hidden: t }) => {
- await U(HRe, {
+ await U(oze, {
item: r,
media: e,
hidden: t
@@ -75643,7 +75744,7 @@ function dze(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = K.getQueryData(i);
- o && rue(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && cue(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
@@ -75683,13 +75784,13 @@ var w7 = (e) => ["item", e], T7 = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], fze = (e, t) => [
+], Aze = (e, t) => [
"item-related",
e,
t
-], pze = (e) => `/api/item?id=${e}`, mze = (e, t) => `/api/related?id=${e}&limit=${t}`, E7 = "/api/playlist", hze = "/api/feedback", D7 = "/api/item-tag", O7 = "/api/watch-later", k7 = "/api/quality-goal", A7 = "/api/preference", j7 = class extends Error {};
+], jze = (e) => `/api/item?id=${e}`, Mze = (e, t) => `/api/related?id=${e}&limit=${t}`, E7 = "/api/playlist", Nze = "/api/feedback", D7 = "/api/item-tag", O7 = "/api/watch-later", k7 = "/api/quality-goal", A7 = "/api/preference", j7 = class extends Error {};
async function M7(e, t) {
- let n = await Hi(pze(e), t);
+ let n = await Hi(jze(e), t);
if (n.error) throw new j7(n.error);
return n;
}
@@ -75723,7 +75824,7 @@ var P7 = (e) => ({
function F7(e, t) {
return e.kind === "mix" ? t : e.items.length ? t != null && e.items.some((e) => e.id === t) ? t : e.kind === "playlist" && e.currentAssetId || e.items[0].id : null;
}
-function gze(e, t) {
+function Pze(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 : {
@@ -75731,7 +75832,7 @@ function gze(e, t) {
part_label: n
};
}
-async function _ze(e, t) {
+async function Fze(e, t) {
let { queue: n, actions: r } = e, i = null;
if (n) {
let a = T7(n);
@@ -75774,7 +75875,7 @@ async function _ze(e, t) {
id: Number(o.follow_item_id)
});
}
-function vze(e) {
+function Ize(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = c(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -75795,14 +75896,14 @@ function vze(e) {
unowned: !i.length && !l.length && !String(e.creator || "").trim()
};
}
-var I7 = (e) => Math.min(Math.max(e || 0, 0), 100), L7 = (e) => Math.round(I7(e) / 20), yze = (e) => {
+var I7 = (e) => Math.min(Math.max(e || 0, 0), 100), L7 = (e) => Math.round(I7(e) / 20), Lze = (e) => {
let t = L7(e);
return t ? `${t} 星` : "未评分";
-}, bze = (e, t) => {
+}, Rze = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function xze(e, t) {
+function zze(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = c(t.tagLabel(e.k)), i = n.get(r);
@@ -75824,13 +75925,13 @@ function H7() {
return [];
}
}
-function Sze(e) {
+function Bze(e) {
try {
let t = H7().filter((t) => c(t) !== c(e));
localStorage.setItem(V7, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Cze(e, t, n) {
+function Vze(e, t, n) {
let r = c(e), i = new Map(t.map((e) => [c(e.k), e])), a = t.filter((e) => !r || c(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(c(e)) || {
k: e,
n: 0
@@ -75841,55 +75942,55 @@ function Cze(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var wze = {
+var Hze = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Tze = {
+}, Uze = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Eze(e) {
+function Wze(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Tze[e.kind],
+ title: Uze[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var U7 = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Dze = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(U7(e.part_label))}</small>` : "";
-function Oze(e, t, n, r) {
+var U7 = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Gze = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(U7(e.part_label))}</small>` : "";
+function Kze(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var kze = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Aze(e, t) {
+var qze = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function Jze(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function jze(e) {
+function Yze(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 Mze(e, t) {
+function Xze(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/components/overlay-host.ts
-function Nze(e) {
+function Zze(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 Pze(e) {
+function Qze(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return Nze(n ?? t.body);
+ return Zze(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var Fze = "/api/cover-crop", Ize = (e, t) => U(Fze, {
+var $ze = "/api/cover-crop", eBe = (e, t) => U($ze, {
code: e,
box: t
}), W7 = .704;
@@ -75906,7 +76007,7 @@ function G7({ className: e }) {
children: /* @__PURE__ */ (0, R.jsx)("use", { href: "#i-crop" })
});
}
-function Lze({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function tBe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, L.useState)(!1), o = (0, L.useRef)(null);
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("button", {
ref: o,
@@ -75918,14 +76019,14 @@ function Lze({ code: e, coverUrl: t, box: n, onSaved: r }) {
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, R.jsx)(G7, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, R.jsx)(my, {
- getContainer: () => Pze(o.current),
- children: /* @__PURE__ */ (0, R.jsx)(pj, {
+ }), /* @__PURE__ */ (0, R.jsx)(hy, {
+ getContainer: () => Qze(o.current),
+ children: /* @__PURE__ */ (0, R.jsx)(tj, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, R.jsx)(Rze, {
+ children: /* @__PURE__ */ (0, R.jsx)(nBe, {
code: e,
coverUrl: t,
box: n,
@@ -75935,9 +76036,9 @@ function Lze({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function Rze({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, L.useState)(null), [s, c] = (0, L.useState)(null), [l, u] = (0, L.useState)(!0), d = NO(), f = Qn({
- mutationFn: (t) => Ize(e, t),
+function nBe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, L.useState)(null), [s, c] = (0, L.useState)(null), [l, u] = (0, L.useState)(!0), d = wO(), f = Qn({
+ mutationFn: (t) => eBe(e, t),
onSuccess: () => {
i(), r();
}
@@ -75949,15 +76050,15 @@ function Rze({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Bce(e, W7);
- c(ij(t, e, null));
+ } : Yce(e, W7);
+ c(ZA(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, R.jsx)(mj, { children: /* @__PURE__ */ (0, R.jsx)(G7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, R.jsx)(nj, { children: /* @__PURE__ */ (0, R.jsx)(G7, { className: "size-6" }) }),
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -75976,7 +76077,7 @@ function Rze({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, R.jsx)(FO, {
+ /* @__PURE__ */ (0, R.jsx)(EO, {
icon: Ye,
size: "small",
"aria-label": "关闭",
@@ -75987,24 +76088,24 @@ function Rze({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, R.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, R.jsx)(_j, {
+ children: /* @__PURE__ */ (0, R.jsx)(ij, {
src: t,
aspect: l ? W7 : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- nj(e) && p(e);
+ YA(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, R.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, R.jsx)(yP, {
+ children: [/* @__PURE__ */ (0, R.jsx)(jP, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(ij(s, a, W7));
+ u(e), e && s && a && c(ZA(s, a, W7));
},
children: /* @__PURE__ */ (0, R.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -76040,7 +76141,7 @@ var K7 = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function zze(e) {
+function rBe(e) {
let { queue: t, actions: n } = e, r = Zn({
queryKey: t ? T7(t) : ["item-queue", "none"],
queryFn: ({ signal: n }) => N7(t, e.helpers, n),
@@ -76070,9 +76171,9 @@ function zze(e) {
})
});
}
- return /* @__PURE__ */ (0, R.jsx)(Bze, {
+ return /* @__PURE__ */ (0, R.jsx)(iBe, {
...e,
- item: gze(o.data, i),
+ item: Pze(o.data, i),
queue: i
}, o.data.id);
}
@@ -76085,8 +76186,8 @@ var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, R.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function Bze(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = nBe(t, r, e.grid.cache, i.tagLabel), o = (0, L.useRef)(t);
+function iBe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = bBe(t, r, e.grid.cache, i.tagLabel), o = (0, L.useRef)(t);
(0, L.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, L.useEffect)(() => {
@@ -76096,25 +76197,25 @@ function Bze(e) {
asset_id: t.id
}).catch(() => {});
}, []);
- let s = Aze(t, i.sourceOffline(t.location || ""));
+ let s = Jze(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, R.jsx)(Vze, {
+ /* @__PURE__ */ (0, R.jsx)(aBe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, R.jsx)(Uze, {
+ n ? /* @__PURE__ */ (0, R.jsx)(sBe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, R.jsx)(Kze, {
+ /* @__PURE__ */ (0, R.jsx)(uBe, {
item: t,
queue: n,
write: a,
@@ -76122,9 +76223,9 @@ function Bze(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, R.jsx)(tBe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, R.jsx)(yBe, { ...e }) : null] });
}
-function Vze({ item: e, gate: t, helpers: n, actions: r }) {
+function aBe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, L.useState)(t ? "" : "auto"), o = (0, L.useRef)(null), c = (0, L.useRef)(e);
(0, L.useLayoutEffect)(() => {
let e = o.current;
@@ -76135,7 +76236,7 @@ function Vze({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, R.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, R.jsx)(Hze, {
+ children: [/* @__PURE__ */ (0, R.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, R.jsx)(oBe, {
item: e,
badge: l,
helpers: n,
@@ -76164,7 +76265,7 @@ function Vze({ item: e, gate: t, helpers: n, actions: r }) {
}) : null]
});
}
-function Hze({ item: e, badge: t, helpers: n, actions: r }) {
+function oBe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, L.useState)(!1), [o, s] = (0, L.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -76189,8 +76290,8 @@ function Hze({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function Uze({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Eze(e), a = (0, L.useRef)(null), s = Gze(e, t, r), c = (0, L.useRef)(s);
+function sBe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Wze(e), a = (0, L.useRef)(null), s = lBe(e, t, r), c = (0, L.useRef)(s);
c.current = s;
let u = (0, L.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -76198,7 +76299,7 @@ function Uze({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => c.current.move(+e, +t, n)
}));
- }, [n, e.kind]), d = Wze(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, R.jsx)("button", {
+ }, [n, e.kind]), d = cBe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, R.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -76226,7 +76327,7 @@ function Uze({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: u,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, R.jsx)("i", {
- className: `javedition ${wze[i.edition_label] || "censored"}`,
+ className: `javedition ${Hze[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
}) : null;
@@ -76270,7 +76371,7 @@ function Uze({ queue: e, itemId: t, helpers: n, actions: r }) {
})
});
}
-function Wze(e, t) {
+function cBe(e, t) {
let n = Qn({ mutationFn: (t) => U(E7, {
action: "create",
name: t,
@@ -76284,7 +76385,7 @@ function Wze(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function Gze(e, t, n) {
+function lBe(e, t, n) {
let r = T7({
kind: "playlist",
playlistId: e.playlistId
@@ -76304,8 +76405,8 @@ function Gze(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Oze(s, t, r, c);
- if (kze(l, s)) return;
+ let l = Kze(s, t, r, c);
+ if (qze(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -76351,7 +76452,7 @@ function Gze(e, t, n) {
}
};
}
-function Kze({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function uBe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [c, l] = (0, L.useState)(!1);
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-stage-side": "",
@@ -76359,7 +76460,7 @@ function Kze({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, R.jsx)(qze, {
+ /* @__PURE__ */ (0, R.jsx)(dBe, {
item: e,
queue: t,
helpers: r,
@@ -76371,7 +76472,7 @@ function Kze({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, R.jsx)(Yze, {
+ /* @__PURE__ */ (0, R.jsx)(pBe, {
item: e,
write: n
}),
@@ -76406,18 +76507,18 @@ function Kze({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, R.jsx)(Xze, {
+ /* @__PURE__ */ (0, R.jsx)(mBe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, R.jsx)(Zze, {
+ /* @__PURE__ */ (0, R.jsx)(hBe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, R.jsx)($ze, { item: e }),
+ /* @__PURE__ */ (0, R.jsx)(_Be, { item: e }),
/* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -76511,7 +76612,7 @@ function Kze({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, R.jsx)(eBe, {
+ /* @__PURE__ */ (0, R.jsx)(vBe, {
item: e,
open: c,
write: n
@@ -76535,7 +76636,7 @@ function Kze({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function qze({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function dBe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, L.useRef)(null), [o, s] = (0, L.useState)(!1), [c, l] = (0, L.useState)(!1);
(0, L.useLayoutEffect)(() => {
let e = a.current;
@@ -76545,7 +76646,7 @@ function qze({ 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) + Dze(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Gze(e, t);
return /* @__PURE__ */ (0, R.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, R.jsxs)("div", {
@@ -76576,7 +76677,7 @@ function qze({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}),
e.has_cover && e.code ? /* @__PURE__ */ (0, R.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, R.jsx)(Lze, {
+ children: /* @__PURE__ */ (0, R.jsx)(tBe, {
code: e.code,
coverUrl: `/cover?code=${encodeURIComponent(e.code)}`,
box: e.poster_box || null,
@@ -76586,7 +76687,7 @@ function qze({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, R.jsx)(Jze, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, R.jsx)(fBe, {
id: e.id,
actions: r,
onStatus: i
@@ -76596,7 +76697,7 @@ function qze({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function Jze({ id: e, actions: t, onStatus: n }) {
+function fBe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, L.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -76629,7 +76730,7 @@ function Jze({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, R.jsx)(K7, { name: "folder-sync" })
})] });
}
-function Yze({ item: e, write: t }) {
+function pBe({ item: e, write: t }) {
let n = L7(e.rating);
return /* @__PURE__ */ (0, R.jsxs)("div", {
id: "detailRating",
@@ -76658,12 +76759,12 @@ function Yze({ item: e, write: t }) {
}), /* @__PURE__ */ (0, R.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: yze(e.rating)
+ children: Lze(e.rating)
})]
});
}
-function Xze({ item: e, helpers: t, actions: n }) {
- let r = (0, L.useMemo)(() => vze(e), [e]), [i, a] = (0, L.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
+function mBe({ item: e, helpers: t, actions: n }) {
+ let r = (0, L.useMemo)(() => Ize(e), [e]), [i, a] = (0, L.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
let o = e === "performer" && a >= 8 && !i, s = e === "performer" ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", { children: r.name.slice(0, 1) }), /* @__PURE__ */ (0, R.jsx)(q7, { html: t.faceHtml(r) })] }) : e === "studio" ? /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", { children: r.name.slice(0, 2) }), r.has_logo ? /* @__PURE__ */ (0, R.jsx)("img", {
src: `/logo?studio=${encodeURIComponent(r.name)}&variant=icon`,
alt: "",
@@ -76772,8 +76873,8 @@ function Xze({ item: e, helpers: t, actions: n }) {
]
});
}
-function Zze({ item: e, write: t, helpers: n, actions: r }) {
- let i = xze(e, n);
+function hBe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = zze(e, n);
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -76794,14 +76895,14 @@ function Zze({ item: e, write: t, helpers: n, actions: r }) {
onClick: () => t.removeTag(e),
children: /* @__PURE__ */ (0, R.jsx)(K7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, R.jsx)(Qze, {
+ }, e.k)), /* @__PURE__ */ (0, R.jsx)(gBe, {
item: e,
write: t,
helpers: n
})]
});
}
-function Qze({ item: e, write: t, helpers: n }) {
+function gBe({ item: e, write: t, helpers: n }) {
let r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(!1), [s, c] = (0, L.useState)(!1), [l, u] = (0, L.useState)(""), [d, f] = (0, L.useState)(""), [p, m] = (0, L.useState)(-1), h = (0, L.useCallback)(() => {
i.current && S(i.current), c(!1);
}, []);
@@ -76815,7 +76916,7 @@ function Qze({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? Cze(d, n.tagCandidates(), H7()) : {
+ let g = s ? Vze(d, n.tagCandidates(), H7()) : {
recent: [],
results: [],
create: ""
@@ -76945,8 +77046,8 @@ function Qze({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function $ze({ item: e }) {
- let t = jze(e);
+function _Be({ item: e }) {
+ let t = Yze(e);
return /* @__PURE__ */ (0, R.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
@@ -76980,7 +77081,7 @@ function $ze({ item: e }) {
})]
});
}
-function eBe({ item: e, open: t, write: n }) {
+function vBe({ item: e, open: t, write: n }) {
let [r, i] = (0, L.useState)(e.like_reason || ""), a = (0, L.useRef)(null);
(0, L.useEffect)(() => {
t && a.current?.focus();
@@ -77019,11 +77120,11 @@ function eBe({ item: e, open: t, write: n }) {
})]
});
}
-function tBe(e) {
+function yBe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Zn({
- queryKey: fze(t.id, n),
+ queryKey: Aze(t.id, n),
queryFn: async ({ signal: e }) => {
- let r = await Hi(mze(t.id, n), e);
+ let r = await Hi(Mze(t.id, n), e);
return i.cache(r.items || []), r.items || [];
}
}), [o] = (0, L.useState)(() => r.relatedSkeletonHtml()), s = (0, L.useCallback)((e) => {
@@ -77056,7 +77157,7 @@ function tBe(e) {
})]
});
}
-function nBe(e, t, n, r) {
+function bBe(e, t, n, r) {
let i = e.id, a = w7(i), [o, s] = (0, L.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, L.useState)(""), [u, d] = (0, L.useState)(""), f = (e, t) => s((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -77088,7 +77189,7 @@ function nBe(e, t, n, r) {
run: n
}));
}, v = async (e, t) => {
- let n = await h(hze, t === void 0 ? { kind: e } : {
+ let n = await h(Nze, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -77108,14 +77209,14 @@ function nBe(e, t, n, r) {
"aria-disabled": !0
} : {},
rate: (e) => _(`rate:${e}`, "评分", async () => {
- let n = p().rating || 0, r = bze(n, e);
+ let n = p().rating || 0, r = Rze(n, e);
await v("rate", r), t.toast(r ? `已评 ${L7(r)} 星` : "已取消评分", { undo: async () => {
await v("rate", n);
} });
}),
feedback: (e) => _(e, "操作", async () => {
let n = { feedback: p().feedback || null }, r = await v(e);
- t.toast(Mze(e, r), { undo: async () => {
+ t.toast(Xze(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(p().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
@@ -77183,7 +77284,7 @@ function nBe(e, t, n, r) {
})).ok && (m((e) => B7(e, {
k: n,
cat: "general"
- })), Sze(n), t.toast(`已添加标签「${r(n)}」`, { undo: async () => {
+ })), Bze(n), t.toast(`已添加标签「${r(n)}」`, { undo: async () => {
await h(D7, {
operation: "remove",
tag: n
@@ -77196,11 +77297,11 @@ function nBe(e, t, n, r) {
//#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 rBe(e, t) {
- Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), cRe({
+function xBe(e, t) {
+ Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), ERe({
...e.player,
stage: () => document.getElementById("stage")
- }), lRe({
+ }), DRe({
inMiniplayer: (e) => X7?.player === e,
kind: (e) => X7?.player === e ? X7.kind : Z7?.kind ?? Q7?.kind ?? "item",
expand: () => S9(),
@@ -77215,10 +77316,10 @@ function o9() {
function s9(e) {
Q7 = e;
}
-var iBe = () => Q7;
+var SBe = () => 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 aBe(e, X7);
+ if (X7 && X7.key === a) return CBe(e, X7);
X7 && x9();
let o = {
player: null,
@@ -77246,7 +77347,7 @@ function c9(e, t) {
Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), Y5());
};
}
-function aBe(e, t) {
+function CBe(e, t) {
let { player: n } = t;
y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), a7(e), e.append(n.el()), k5(n);
let r = {
@@ -77266,13 +77367,13 @@ var l9 = () => {
let e = Z7?.player;
return e && !e.isDisposed() ? e : null;
};
-function oBe(e) {
+function wBe(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()) && dBe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && kBe({
player: r,
kind: n.kind,
item: n.item,
@@ -77280,7 +77381,7 @@ function oBe(e) {
key: n.key
}, i);
}
-function sBe(e, t) {
+function TBe(e, t) {
if (e9 = !1, X7) {
if (X7.kind === e && X7.item.id === t) {
X7.pending = !0, b9();
@@ -77293,11 +77394,11 @@ function u9(e) {
$7 = e, $7 && _9();
}
var d9 = () => !!X7 && !X7.pending && !X7.player.isDisposed();
-function cBe() {
+function EBe() {
return d9() ? $7?.frame.querySelector("video") ?? null : null;
}
-function lBe() {
- return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : cBe();
+function DBe() {
+ return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : EBe();
}
function f9(e) {
$7 && ($7.title.textContent = e.title || "", $7.sub.textContent = e.sub || "", $7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -77346,7 +77447,7 @@ function v9(e) {
function y9(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function uBe() {
+function OBe() {
let e = $7?.root;
if (!e) return;
let t = e.hidden;
@@ -77367,7 +77468,7 @@ function b9() {
e.style.transform = "";
}
}
-function dBe(e, t) {
+function kBe(e, t) {
if (!$7) return;
let n = {
...e,
@@ -77375,7 +77476,7 @@ function dBe(e, t) {
off: [],
pending: !1
};
- X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), uBe(), A5(e.player);
+ X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), OBe(), A5(e.player);
}
function x9() {
let e = X7;
@@ -77395,7 +77496,7 @@ function C9() {
}
r9() && l9() && n9 && (e9 = !0, n9());
}
-function fBe() {
+function ABe() {
let e = X7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -77408,7 +77509,7 @@ function w9(e) {
function T9(e) {
return !(!d9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || o9().sourceOffline(String(e.location ?? "")));
}
-async function pBe(e) {
+async function jBe(e) {
if (!d9() || !X7 || !$7) return;
let n = ++t9, r = await t(`/api/item?id=${e}`).catch(() => null);
if (n !== t9 || !d9() || !X7 || !$7 || !r || r.error) return;
@@ -77462,9 +77563,9 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, R.jsx)("use", { href: `#i-${e}` })
-}), mBe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
+}), MBe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
t.stopPropagation(), e();
-}, hBe = (0, L.memo)(function() {
+}, NBe = (0, L.memo)(function() {
let e = (0, L.useRef)(null), t = (0, L.useRef)(null), n = (0, L.useRef)(null), r = (0, L.useRef)(null), i = (0, L.useRef)(null), a = (0, L.useRef)(null), o = (0, L.useRef)(null), s = (0, L.useRef)(null), c = (0, L.useRef)(null), l = (0, L.useRef)(null);
return (0, L.useLayoutEffect)(() => (u9({
root: e.current,
@@ -77476,7 +77577,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => u9(null)), []), (0, L.useEffect)(() => _Be(e.current, t.current), []), /* @__PURE__ */ (0, R.jsx)("aside", {
+ }), () => u9(null)), []), (0, L.useEffect)(() => FBe(e.current, t.current), []), /* @__PURE__ */ (0, R.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -77526,8 +77627,8 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: D9(fBe),
- dangerouslySetInnerHTML: mBe
+ onClick: D9(ABe),
+ dangerouslySetInnerHTML: MBe
}),
/* @__PURE__ */ (0, R.jsx)("button", {
ref: o,
@@ -77566,7 +77667,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, R.jsx)("svg", {
})
});
});
-function gBe(e, t, n) {
+function PBe(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
@@ -77588,7 +77689,7 @@ function gBe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function _Be(e, t) {
+function FBe(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 = {
@@ -77614,7 +77715,7 @@ function _Be(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), gBe(e, i.dx, i.dy));
+ }, 0), PBe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -77634,21 +77735,21 @@ function L9() {
if (!O9) throw Error("舞台还没有接上宿主(configureStage)");
return O9;
}
-function vBe() {
+function IBe() {
return (!k9 || !A9?.isConnected) && (k9?.unmount(), A9 = document.createElement("div"), A9.dataset.stageHost = "", document.body.append(A9), k9 = (0, ze.createRoot)(A9)), k9;
}
function R9() {
- let e = vBe();
- (0, Re.flushSync)(() => e.render(/* @__PURE__ */ (0, R.jsx)(jI, { children: /* @__PURE__ */ (0, R.jsx)(yBe, { view: j9 }) })));
+ let e = IBe();
+ (0, Re.flushSync)(() => e.render(/* @__PURE__ */ (0, R.jsx)(HI, { children: /* @__PURE__ */ (0, R.jsx)(LBe, { view: j9 }) })));
}
-function yBe({ view: e }) {
- return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [e ? /* @__PURE__ */ (0, R.jsx)(bBe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, R.jsx)(hBe, {})] });
+function LBe({ view: e }) {
+ return /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [e ? /* @__PURE__ */ (0, R.jsx)(RBe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, R.jsx)(NBe, {})] });
}
var z9 = () => /* @__PURE__ */ (0, R.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: sRe() }
+ dangerouslySetInnerHTML: { __html: TRe() }
});
function B9(e) {
let t = e.currentTarget;
@@ -77656,7 +77757,7 @@ function B9(e) {
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function bBe({ view: e }) {
+function RBe({ view: e }) {
let t = (0, L.useRef)(null);
(0, L.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
@@ -77664,7 +77765,7 @@ function bBe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, R.jsx)(zze, { ...r.props }) : /* @__PURE__ */ (0, R.jsx)(oze, { ...r.props });
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, R.jsx)(rBe, { ...r.props }) : /* @__PURE__ */ (0, R.jsx)(wze, { ...r.props });
return /* @__PURE__ */ (0, R.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77703,7 +77804,7 @@ function H9(e, t) {
let n = I9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function xBe(e) {
+function zBe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
@@ -77765,7 +77866,7 @@ function xBe(e) {
}
};
}
-function SBe(e, t) {
+function BBe(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 = () => {
@@ -77778,13 +77879,13 @@ function SBe(e, t) {
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-async function CBe(e) {
+async function VBe(e) {
j9 && U9({ miniplayer: !1 });
let t = ++M9, n = new AbortController();
- N9 = n, P9 = !1, F9 = !1, sBe(e.kind, e.id ?? NaN), j9 = {
+ N9 = n, P9 = !1, F9 = !1, TBe(e.kind, e.id ?? NaN), j9 = {
generation: t,
request: e,
- content: xBe(e),
+ content: zBe(e),
phase: "skeleton"
}, R9();
let r = I9();
@@ -77792,7 +77893,7 @@ async function CBe(e) {
w(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
let i = j9.content;
try {
- i.kind === "item" ? await _ze(i.props, n.signal) : await URe(i.props, n.signal);
+ i.kind === "item" ? await Fze(i.props, n.signal) : await sze(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
@@ -77801,11 +77902,11 @@ async function CBe(e) {
j9 = {
...j9,
phase: a ? "content" : "reveal"
- }, R9(), a || SBe(r, t), ee(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, R9(), a || BBe(r, t), ee(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let o = document.activeElement;
(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();
}
-function wBe() {
+function HBe() {
let e = I9();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
@@ -77817,11 +77918,11 @@ function wBe() {
}));
}
function U9({ miniplayer: e = !0 } = {}) {
- if (M9++, N9?.abort(), N9 = null, oBe(e), !j9) return;
+ if (M9++, N9?.abort(), N9 = null, wBe(e), !j9) return;
let t = I9();
t && L9().release(t), E5(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
}
-function TBe(e) {
+function UBe(e) {
!j9 || j9.content.kind !== "item" || (j9 = {
...j9,
content: {
@@ -77833,21 +77934,21 @@ function TBe(e) {
}
}, R9());
}
-function EBe() {
- let e = iBe(), t = e?.kind === "item" ? e.item : null, n = t ? L9().player.posterUrl(t) : "";
+function WBe() {
+ let e = SBe(), t = e?.kind === "item" ? e.item : null, n = t ? L9().player.posterUrl(t) : "";
if (!n) return;
let r = l9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var DBe = {
- open: CBe,
- update: TBe,
- exit: wBe,
+var GBe = {
+ open: VBe,
+ update: UBe,
+ exit: HBe,
dispose: U9,
requestClose: V9,
- repaintPoster: EBe,
+ repaintPoster: WBe,
isOpen: () => !!j9,
- activeVideo: () => lBe(),
+ activeVideo: () => DBe(),
toggleTheater: () => {
j9 && W5(!L9().player.settings().theaterMode);
},
@@ -77856,37 +77957,37 @@ var DBe = {
miniplayerActive: () => d9(),
miniplayerTakesCard: (e) => T9(e),
miniplayerPlay: (e) => {
- pBe(e);
+ jBe(e);
}
};
-function OBe(e) {
- return O9 = e, rBe(e, {
+function KBe(e) {
+ return O9 = e, xBe(e, {
isOpen: () => !!j9,
requestClose: V9
- }), R9(), DBe;
+ }), R9(), GBe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function kBe(e) {
+function qBe(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 ABe = (e) => {
+var JBe = (e) => {
switch (e) {
- case "success": return NBe;
- case "info": return FBe;
- case "warning": return PBe;
- case "error": return IBe;
+ case "success": return ZBe;
+ case "info": return $Be;
+ case "warning": return QBe;
+ case "error": return eVe;
default: return null;
}
-}, jBe = Array(12).fill(0), MBe = ({ visible: e, className: t }) => /*#__PURE__*/ L.createElement("div", {
+}, YBe = Array(12).fill(0), XBe = ({ visible: e, className: t }) => /*#__PURE__*/ L.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ L.createElement("div", { className: "sonner-spinner" }, jBe.map((e, t) => /*#__PURE__*/ L.createElement("div", {
+}, /*#__PURE__*/ L.createElement("div", { className: "sonner-spinner" }, YBe.map((e, t) => /*#__PURE__*/ L.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), NBe = /*#__PURE__*/ L.createElement("svg", {
+})))), ZBe = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -77897,7 +77998,7 @@ var ABe = (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"
-})), PBe = /*#__PURE__*/ L.createElement("svg", {
+})), QBe = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -77908,7 +78009,7 @@ var ABe = (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"
-})), FBe = /*#__PURE__*/ L.createElement("svg", {
+})), $Be = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -77919,7 +78020,7 @@ var ABe = (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"
-})), IBe = /*#__PURE__*/ L.createElement("svg", {
+})), eVe = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -77930,7 +78031,7 @@ var ABe = (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"
-})), LBe = /*#__PURE__*/ L.createElement("svg", {
+})), tVe = /*#__PURE__*/ L.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -77951,7 +78052,7 @@ var ABe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), RBe = () => {
+})), nVe = () => {
let [e, t] = L.useState(document.hidden);
return L.useEffect(() => {
let e = () => {
@@ -77959,7 +78060,7 @@ var ABe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, zBe = 1, BBe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : zBe++, G9 = new class {
+}, rVe = 1, iVe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : rVe++, G9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -77969,7 +78070,7 @@ var ABe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - BBe;
+ let e = this.toasts.length - iVe;
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);
@@ -78047,7 +78148,7 @@ var ABe = (e) => {
type: "default",
message: e
});
- else if (HBe(e) && !e.ok) {
+ else if (oVe(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" && !L.isValidElement(r) ? r : { message: r };
this.create({
@@ -78100,7 +78201,7 @@ var ABe = (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();
}
-}(), VBe = (e, t) => G9.message(e, t), HBe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(VBe, {
+}(), aVe = (e, t) => G9.message(e, t), oVe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(aVe, {
success: G9.success,
info: G9.info,
warning: G9.warning,
@@ -78114,20 +78215,20 @@ var ABe = (e) => {
getHistory: () => G9.toasts,
getToasts: () => G9.getActiveToasts()
});
-kBe("[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%)}");
+qBe("[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) {
return e.label !== void 0;
}
-var UBe = 3, WBe = "24px", GBe = "16px", J9 = 4e3, KBe = 356, qBe = 14, JBe = 45, YBe = 200;
+var sVe = 3, cVe = "24px", lVe = "16px", J9 = 4e3, uVe = 356, dVe = 14, fVe = 45, pVe = 200;
function Y9(...e) {
return e.filter(Boolean).join(" ");
}
-function XBe(e) {
+function mVe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var ZBe = (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] = L.useState(null), [O, k] = L.useState(null), [A, j] = L.useState(!1), [M, N] = L.useState(!1), [ee, te] = L.useState(!1), [P, F] = L.useState(!1), [ne, re] = L.useState(!1), [ie, ae] = L.useState(0), [oe, se] = L.useState(0), ce = L.useRef(n.duration || y || J9), le = L.useRef(null), ue = L.useRef(null), de = c === 0, I = c + 1 <= o, fe = n.type, pe = fe ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = L.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = L.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = L.useMemo(() => n.duration || y || J9, [n.duration, y]), be = L.useRef(0), xe = L.useRef(0), Se = L.useRef(0), Ce = L.useRef(null), [we, Te] = b.split("-"), Ee = L.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = RBe(), Oe = L.useMemo(() => e.swipeDirections ?? XBe(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = fe === "loading";
+var hVe = (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] = L.useState(null), [O, k] = L.useState(null), [A, j] = L.useState(!1), [M, N] = L.useState(!1), [ee, te] = L.useState(!1), [P, F] = L.useState(!1), [ne, re] = L.useState(!1), [ie, ae] = L.useState(0), [oe, se] = L.useState(0), ce = L.useRef(n.duration || y || J9), le = L.useRef(null), ue = L.useRef(null), de = c === 0, I = c + 1 <= o, fe = n.type, pe = fe ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = L.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = L.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = L.useMemo(() => n.duration || y || J9, [n.duration, y]), be = L.useRef(0), xe = L.useRef(0), Se = L.useRef(0), Ce = L.useRef(null), [we, Te] = b.split("-"), Ee = L.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = nVe(), Oe = L.useMemo(() => e.swipeDirections ?? mVe(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = fe === "loading";
xe.current = L.useMemo(() => _e * x + Ee, [_e, Ee]), L.useEffect(() => {
ce.current = ye;
}, [ye]), L.useEffect(() => {
@@ -78168,7 +78269,7 @@ var ZBe = (e) => {
let je = L.useCallback(() => {
N(!0), ae(xe.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, YBe);
+ }, pVe);
}, [
n,
d,
@@ -78201,12 +78302,12 @@ var ZBe = (e) => {
return w?.loading ? /*#__PURE__*/ L.createElement("div", {
className: Y9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": fe === "loading"
- }, w.loading) : /*#__PURE__*/ L.createElement(MBe, {
+ }, w.loading) : /*#__PURE__*/ L.createElement(XBe, {
className: Y9(C?.loader, n?.classNames?.loader),
visible: fe === "loading"
});
}
- let Ne = n.icon || w?.[fe] || ABe(fe);
+ let Ne = n.icon || w?.[fe] || JBe(fe);
return /*#__PURE__*/ L.createElement("li", {
tabIndex: 0,
ref: ue,
@@ -78253,7 +78354,7 @@ var ZBe = (e) => {
if (P || !me) return;
Ce.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" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= JBe || a > .11)) {
+ if ((E === "x" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= fVe || a > .11)) {
ae(xe.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), F(!0);
return;
}
@@ -78294,7 +78395,7 @@ var ZBe = (e) => {
je(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: Y9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? LBe) : null, (fe || n.icon || n.promise) && n.icon !== null && (w?.[fe] !== null || n.icon) ? /*#__PURE__*/ L.createElement("div", {
+ }, w?.close ?? tVe) : null, (fe || n.icon || n.promise) && n.icon !== null && (w?.[fe] !== null || n.icon) ? /*#__PURE__*/ L.createElement("div", {
"data-icon": "",
className: Y9(C?.icon, n?.classNames?.icon)
}, fe === "loading" ? n.icon || Me() : n.promise ? Me() : null, fe === "loading" ? null : Ne) : null, /*#__PURE__*/ L.createElement("div", {
@@ -78329,10 +78430,10 @@ function X9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function QBe(e, t) {
+function gVe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? GBe : WBe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? lVe : cVe;
function o(e) {
[
"top",
@@ -78353,8 +78454,8 @@ function QBe(e, t) {
}) : o(a);
}), n;
}
-var $Be = /*#__PURE__*/ L.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 = UBe, toastOptions: g, dir: _ = X9(), gap: v = qBe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = L.useState([]), w = L.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = L.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = L.useState([]), [O, k] = L.useState(!1), [A, j] = L.useState(!1), [M, N] = L.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = L.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = L.useRef(null), F = L.useRef(!1), ne = L.useCallback((e) => {
+var _Ve = /*#__PURE__*/ L.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 = sVe, toastOptions: g, dir: _ = X9(), gap: v = dVe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = L.useState([]), w = L.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = L.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = L.useState([]), [O, k] = L.useState(!1), [A, j] = L.useState(!1), [M, N] = L.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = L.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = L.useRef(null), F = L.useRef(!1), ne = L.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return L.useEffect(() => G9.subscribe((e) => {
@@ -78440,10 +78541,10 @@ var $Be = /*#__PURE__*/ L.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${KBe}px`,
+ "--width": `${uVe}px`,
"--gap": `${v}px`,
...m,
- ...QBe(l, u)
+ ...gVe(l, u)
},
onBlur: (e) => {
F.current && !e.currentTarget.contains(e.relatedTarget) && (F.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -78461,7 +78562,7 @@ var $Be = /*#__PURE__*/ L.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__*/ L.createElement(ZBe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ L.createElement(hVe, {
key: n.id,
icons: y,
index: i,
@@ -78495,8 +78596,8 @@ var $Be = /*#__PURE__*/ L.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Q9 = !1, eVe = (e, t) => {
- Q9 || (Q9 = !0, (0, ze.createRoot)(e).render(/* @__PURE__ */ (0, R.jsx)($Be, {
+}), Q9 = !1, vVe = (e, t) => {
+ Q9 || (Q9 = !0, (0, ze.createRoot)(e).render(/* @__PURE__ */ (0, R.jsx)(_Ve, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -78517,7 +78618,7 @@ var $Be = /*#__PURE__*/ L.forwardRef(function(e, t) {
error: Z9(t.error, !1)
}
})));
-}, tVe = (e, t) => {
+}, yVe = (e, t) => {
let n = t.alert ? K9.error : K9.success, r = t.action;
n(/* @__PURE__ */ (0, R.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -78534,14 +78635,14 @@ var $Be = /*#__PURE__*/ L.forwardRef(function(e, t) {
//#region src/react/entry.tsx
function $9(e) {
return (t, n) => {
- let r = (0, ze.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, R.jsx)(jI, { children: /* @__PURE__ */ (0, R.jsx)(e, { ...t }) }));
+ let r = (0, ze.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, R.jsx)(HI, { children: /* @__PURE__ */ (0, R.jsx)(e, { ...t }) }));
return (0, Re.flushSync)(() => i(n)), {
update: i,
unmount: () => r.unmount()
};
};
}
-var nVe = {
+var bVe = {
activity: {
prefetch: (e, t) => pa(t),
mount: $9(Fa)
@@ -78551,73 +78652,77 @@ var nVe = {
mount: $9(Io)
},
configuration: {
- prefetch: (e, t) => XI(t),
- mount: $9(Xme)
+ prefetch: (e, t) => sL(t),
+ mount: $9(rhe)
},
"data-cleanup": {
prefetch: (e, t) => Yl(t),
- mount: $9(kk)
+ mount: $9(jse)
},
duplicates: {
prefetch: (e, t) => ts(t),
- mount: $9(kse)
+ mount: $9(zse)
},
"catalog-filter": {
prefetch: async () => {},
- mount: $9(zse)
+ mount: $9(Yse)
},
"entity-page": {
- prefetch: (e) => oce(e),
- mount: $9(ule)
+ prefetch: (e) => hce(e),
+ mount: $9(_le)
+ },
+ "feed-new": {
+ prefetch: uce,
+ mount: $9(xle)
},
"follow-feed": {
- prefetch: tue,
- mount: $9(Sue)
+ prefetch: oue,
+ mount: $9(Oue)
},
"follow-manage": {
- prefetch: (e, t) => Kle(t, e.tab),
- mount: $9(Pfe)
+ prefetch: (e, t) => Qle(t, e.tab),
+ mount: $9(Vfe)
},
index: {
- prefetch: (e, t) => _ce(e, t),
- mount: $9(qfe)
+ prefetch: (e, t) => Ece(e, t),
+ mount: $9(epe)
},
"junk-queue": {
prefetch: async () => {},
- mount: $9(upe)
+ mount: $9(_pe)
},
"library-processing": {
prefetch: (e, t) => fs(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, R.jsx)(gpe, { ...e }) : /* @__PURE__ */ (0, R.jsx)($O, { ...e }))
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, R.jsx)(Cpe, { ...e }) : /* @__PURE__ */ (0, R.jsx)(WO, { ...e }))
},
playlists: {
- prefetch: (e, t) => vpe(t),
- mount: $9(Ape)
+ prefetch: (e, t) => Tpe(t),
+ mount: $9(Lpe)
},
"quality-goals": {
prefetch: (e, t) => Rs(t),
- mount: $9(Mpe)
+ mount: $9(zpe)
},
review: {
prefetch: (e, t) => yc(t),
- mount: $9(Ype)
+ mount: $9(nme)
},
search: {
prefetch: async () => {},
- mount: $9(Jse)
+ mount: $9(cce)
},
scraping: {
- prefetch: (e, t) => nme(t),
- mount: $9(lme)
+ prefetch: (e, t) => lme(t),
+ mount: $9(gme)
},
stats: {
- prefetch: (e, t) => Qme(t),
- mount: $9(QFe)
+ prefetch: (e, t) => ahe(t),
+ mount: $9(gIe)
},
taste: {
- prefetch: (e, t) => SIe("all", t),
- mount: $9(SLe)
+ prefetch: (e, t) => BIe("all", t),
+ mount: $9(BLe)
}
};
//#endregion
-export { KLe as configureSettingsPanel, OBe as configureStage, eVe as mountToaster, nVe as pages, tVe as showToast };
+export { uRe as configureSettingsPanel, KBe as configureStage, vVe as mountToaster, bVe as pages, yVe as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index f08470584..581c7ab2a 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -1077,6 +1077,7 @@ var Kt = {
"data-cleanup": { react: "data-cleanup" },
duplicates: { react: "duplicates" },
"entity-page": { react: "entity-page" },
+ "feed-new": { react: "feed-new" },
"follow-feed": { react: "follow-feed" },
"follow-manage": { react: "follow-manage" },
index: { react: "index" },