Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 设置分区保留表单并拆分实体身份查询

longmeidaob5ffed071e72
diff --git a/frontend/e2e/configuration-skeleton.test.ts b/frontend/e2e/configuration-skeleton.test.ts
index 284751383..a95a9239b 100644
--- a/frontend/e2e/configuration-skeleton.test.ts
+++ b/frontend/e2e/configuration-skeleton.test.ts
@@ -95,7 +95,7 @@ describe('配置页等待态', () => {
}, automatic_updates: { mode: 'check', interval_hours: 24, available: true, download_available: false } } });
});
await opened.page.reload({ waitUntil: 'load' });
- await opened.page.locator('[data-skeleton="board/configuration"]').waitFor();
+ await opened.page.locator('[data-skeleton="board/settings/library"]').waitFor();
const skeleton = await measure(opened.page);
const waitingLayout = await layout(opened.page);
release();
diff --git a/frontend/e2e/design-cards.test.ts b/frontend/e2e/design-cards.test.ts
index 1f78d1ffc..67ce50499 100644
--- a/frontend/e2e/design-cards.test.ts
+++ b/frontend/e2e/design-cards.test.ts
@@ -952,7 +952,7 @@ describe('设计决定:作品卡、管理页与复核', () => {
await stubFollowManage(page);
const release = await holdApi(page);
await page.reload({ waitUntil: 'load' });
- await page.locator('[data-skeleton="board/follow-manage"] .ui-follow-skeleton-toolbar').waitFor({ timeout: 15_000 });
+ await page.locator('[data-skeleton="board/subscriptions"] .ui-follow-skeleton-toolbar').waitFor({ timeout: 15_000 });
const toolbar = '[data-skeleton] .ui-follow-skeleton-toolbar';
const skeleton = await controlFaces(page, {
检查全部: `${toolbar} > button:nth-of-type(1)`,
diff --git a/frontend/e2e/design-manage.test.ts b/frontend/e2e/design-manage.test.ts
index 394e4aac7..36696dc81 100644
--- a/frontend/e2e/design-manage.test.ts
+++ b/frontend/e2e/design-manage.test.ts
@@ -609,7 +609,7 @@ describe('设计决定:数据管理、索引页与资料页头', () => {
targets: ['[data-skeleton] .reviewtabs button', '[data-skeleton] .skeletoncard'] },
{ path: '/follow', ready: '.followauthors .avskeleton',
targets: ['.followauthors .avskeleton', '.followworks .brandskeleton', '[data-skeleton^="cards/"] > div > *'] },
- { path: '/subscriptions', ready: '[data-skeleton="board/follow-manage"] .ui-follow-skeleton-toolbar',
+ { path: '/subscriptions', ready: '[data-skeleton="board/subscriptions"] .ui-follow-skeleton-toolbar',
targets: ['[data-skeleton] .ui-follow-skeleton-toolbar [data-follow-toolbar-controls] > button:nth-of-type(1)',
'[data-skeleton] .ui-follow-skeleton-toolbar > button:nth-of-type(1)'] },
];
diff --git a/frontend/src/react/router/pages/managed.tsx b/frontend/src/react/router/pages/managed.tsx
index db0972085..94ec441c5 100644
--- a/frontend/src/react/router/pages/managed.tsx
+++ b/frontend/src/react/router/pages/managed.tsx
@@ -17,7 +17,7 @@ import { useLocation } from 'react-router';
import { appSettingsStore } from '@peach/appearance';
import {
isOverlayPath, managedEntry, openManagedRoute, peachHistory, releaseManagedRoute, shellNavigate,
- configurationSection,
+ configurationSection, updateManagedRoute,
} from '@peach/history';
import { api, isAbort } from '@peach/legacy/core';
import {
@@ -188,13 +188,19 @@ export function ManagedMatch({ path }: { path: ManagedPath }) {
if (!covered && (!wasCovered.current || opening.current === null)) opening.current = epoch;
wasCovered.current = covered;
// 路径也进 key:认领的写地址从一页换到另一页(配置页改写到数据管理页)时代次不变,页面组在同一个位置换了路由。
- return <ManagedPage key={`${path} ${opening.current ?? 'covered'}`} path={path} covered={opening.current === null} />;
+ const group = path.startsWith('/settings/') ? '/settings/configuration' : path;
+ return <ManagedPage key={`${group} ${opening.current ?? 'covered'}`} path={path} covered={opening.current === null} />;
}
function ManagedPage({ path, covered }: { path: ManagedPath; covered: boolean }) {
const actions = useContext(ShellActionsContext);
const started = useRoutingStarted();
const run = useRef<Run | null>(null);
+ useEffect(() => {
+ if (path.startsWith('/settings/')) {
+ updateManagedRoute(document.getElementById('stats'), { section: configurationSection(path) });
+ }
+ }, [path]);
useEffect(() => {
if (covered || !actions || !started || run.current) return;
const current: Run = { live: true, revision: 0, controller: new AbortController() };
diff --git a/frontend/src/react/settings/configuration-page.tsx b/frontend/src/react/settings/configuration-page.tsx
index 80ddaaeb7..4e7c7b963 100644
--- a/frontend/src/react/settings/configuration-page.tsx
+++ b/frontend/src/react/settings/configuration-page.tsx
@@ -44,12 +44,13 @@ interface Group { title: string; body(panel: ConfigurationPanel): ReactElement }
let tabSequence = 0;
/* 页签条是一个 tablist,方向键在整排里走、首尾相接,Home/End 到两头,挪到哪一格就选中哪一格、焦点跟过去。
- `section` 只决定第一帧选中哪一组,之后的选中只跟用户点的走。 */
+ 分区地址与选中项同步,表单保持挂载。 */
function ConfigurationGroups(
{ data, receipt, reopenTutorial, section }: Required<ConfigurationProps> & { data: ConfigurationData },
) {
const [prefix] = useState(() => `board-tabs-${++tabSequence}`);
const [chosen, setChosen] = useState(section);
+ useEffect(() => { setChosen(section) }, [section]);
const choose = (title: string) => {
setChosen(title);
shellNavigate(settingsPath(title), { replace: true, state: peachHistory.navigation.location.state });
diff --git a/src/peach/web_entity.py b/src/peach/web_entity.py
index e96bb40a7..e922f5206 100644
--- a/src/peach/web_entity.py
+++ b/src/peach/web_entity.py
@@ -48,6 +48,18 @@ def _query_entity_id(args) -> int | None:
return int(value)
+def _read_entity_query(args):
+ """资料与图集共用实体种类、名称和显式 ID 的查询契约。"""
+ kind, name = args.get("kind", ""), args.get("name", "")
+ try:
+ entity_id = _query_entity_id(args)
+ except ValueError:
+ return {"error": "invalid entity"}
+ if kind not in READ_ENTITY_KINDS or (entity_id is None and not name):
+ return {"error": "invalid entity"}
+ return kind, name, entity_id
+
+
def _query_entity(connection, kind: str, name: str, entity_id: int | None):
if entity_id is None:
return resolve_entity(connection, kind, name)
@@ -69,6 +81,24 @@ def entity_id_redirect(connection, kind: str, entity_id: int) -> dict | None:
return {'id': row['id'], 'kind': row['kind'], 'name': row['canonical_name']}
+def _missing_entity_result(connection, kind: str, name: str, entity_id: int | None):
+ """缺失身份仅按合并来源证明返回最终资料,其余保持不存在。"""
+ if entity_id is not None:
+ redirect = entity_id_redirect(connection, kind, entity_id)
+ return {'redirect': redirect} if redirect else {"error": "not found"}
+ merged = connection.execute(
+ "SELECT DISTINCT e.id,e.kind,e.canonical_name FROM entity e "
+ "JOIN entity_alias al ON al.entity_id=e.id "
+ "JOIN entity_redirect r ON r.target_id=e.id AND r.source=al.source "
+ "WHERE al.alias=? AND al.source=? ORDER BY e.id LIMIT 2",
+ (name, f'user:identity-merge:{kind}'),
+ ).fetchall()
+ if len(merged) == 1:
+ return {'redirect': {'id': merged[0]['id'], 'kind': merged[0]['kind'],
+ 'name': merged[0]['canonical_name']}}
+ return {"error": "not found"}
+
+
#: 资料页与索引页数作品的口径:视频,且没有标「已消失」(ADR-0087)。回收站里的照旧算;
#: 代表作的取图不套这一条。
COUNTED_VIDEO = "a.medium='video' AND COALESCE(a.disposal,'')<>'vanished'"
@@ -192,33 +222,14 @@ def q_entity(contract: WebContract, args):
`source_reference` 是私人馆藏来源证据:API 只返回站点名和备注,不把敏感下载
地址变成可点击链接。官方、社交和资料库链接可直接访问。
"""
- kind = args.get("kind", "")
- name = args.get("name", "")
- try:
- entity_id = _query_entity_id(args)
- except ValueError:
- return {"error": "invalid entity"}
- if kind not in READ_ENTITY_KINDS or (entity_id is None and not name):
- return {"error": "invalid entity"}
+ query = _read_entity_query(args)
+ if isinstance(query, dict):
+ return query
+ kind, name, entity_id = query
with contract.read_connection() as c:
row = _query_entity(c, kind, name, entity_id)
if not row:
- if entity_id is not None:
- redirect = entity_id_redirect(c, kind, entity_id)
- if redirect:
- return {'redirect': redirect}
- return {"error": "not found"}
- merged = c.execute(
- "SELECT DISTINCT e.id,e.kind,e.canonical_name FROM entity e "
- "JOIN entity_alias al ON al.entity_id=e.id "
- "JOIN entity_redirect r ON r.target_id=e.id AND r.source=al.source "
- "WHERE al.alias=? AND al.source=? ORDER BY e.id LIMIT 2",
- (name, f'user:identity-merge:{kind}'),
- ).fetchall()
- if len(merged) == 1:
- return {'redirect': {'id': merged[0]['id'], 'kind': merged[0]['kind'],
- 'name': merged[0]['canonical_name']}}
- return {"error": "not found"}
+ return _missing_entity_result(c, kind, name, entity_id)
d = dict(row)
from .web_library_shortcuts import favorite_ids
d["favorite"] = d["id"] in favorite_ids(c)
@@ -483,13 +494,10 @@ def entity_code_sets(contract: WebContract, c, kind: str, entity_id: int) -> lis
def q_entity_photos(contract: WebContract, args):
"""实体名下的照片:本地图片分页放在 `items`;`sets` 是分组,`kind` 为 `dir` 的是本地目录图集,
为 `code` 的是番号样张集(`entity_code_sets`)。`total` 只数本地图片,`sample_total` 数样张。"""
- kind, name = args.get("kind", ""), args.get("name", "")
- try:
- entity_id = _query_entity_id(args)
- except ValueError:
- return {"error": "invalid entity"}
- if kind not in READ_ENTITY_KINDS or (entity_id is None and not name):
- return {"error": "invalid entity"}
+ query = _read_entity_query(args)
+ if isinstance(query, dict):
+ return query
+ kind, name, entity_id = query
try:
limit = max(1, min(int(args.get("limit") or 120), 600))
offset = max(0, int(args.get("offset") or 0))
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 632b08096..d70585d96 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -24442,8 +24442,8 @@ ece = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var tce = {};
-tce = {
+var Vx = {};
+Vx = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -24457,8 +24457,8 @@ tce = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var nce = {};
-nce = {
+var tce = {};
+tce = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -24472,8 +24472,8 @@ nce = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var rce = {};
-rce = {
+var nce = {};
+nce = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -24487,8 +24487,8 @@ rce = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var Vx = {};
-Vx = {
+var Hx = {};
+Hx = {
"ar-AE": wse,
"bg-BG": Tse,
"cs-CZ": Ese,
@@ -24520,22 +24520,22 @@ Vx = {
"sr-SP": Qse,
"sv-SE": $se,
"tr-TR": ece,
- "uk-UA": tce,
- "zh-CN": nce,
- "zh-TW": rce
+ "uk-UA": Vx,
+ "zh-CN": tce,
+ "zh-TW": nce
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function ice(e) {
+function rce(e) {
return e && e.__esModule ? e.default : e;
}
-function ace(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = pb(ice(Vx), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, b.useRef)(i), o = (0, b.useCallback)(() => {
+function ice(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = pb(rce(Hx), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, b.useRef)(i), o = (0, b.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = oce(i, a.current), o = oce(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = ace(i, a.current), o = ace(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)) {
@@ -24574,7 +24574,7 @@ function ace(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function oce(e, t) {
+function ace(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);
@@ -24582,7 +24582,7 @@ function oce(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function sce(e, t) {
+function oce(e, t) {
let n = t?.isDisabled, [r, i] = (0, b.useState)(!1);
return fv(() => {
if (e?.current && !n) {
@@ -24607,11 +24607,11 @@ function sce(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function cce(e) {
+function sce(e) {
return e && e.__esModule ? e.default : e;
}
-function lce(e) {
- let t = pb(cce(Vx), "@react-aria/grid"), n = vie(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+function cce(e) {
+ let t = pb(sce(Hx), "@react-aria/grid"), n = vie(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
return ix((0, b.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
@@ -24625,7 +24625,7 @@ function lce(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function uce(e) {
+function lce(e) {
let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = Fx({
usage: "search",
sensitivity: "base"
@@ -24656,7 +24656,7 @@ function uce(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Hx(e) {
+function Ux(e) {
let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = Dv();
t = uy(t);
let p = (e) => {
@@ -24703,20 +24703,20 @@ function Hx(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);
}, A = { ref: i };
a ? (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || Ux(e.key)) && p(e);
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || dce(e.key)) && p(e);
}, u ? (A.onPressUp = x ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, A.onPress = x ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (x || S && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !dce(e.key)) return;
+ if (e.pointerType === "keyboard" && !uce(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = x, v && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!y || Ux(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = x, v && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!y || dce(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && dce(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && uce(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
});
let j = moe(n.collection);
if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = gy(A, {
@@ -24777,10 +24777,10 @@ function Hx(e) {
hasAction: C
};
}
-function dce(e) {
+function uce(e) {
return e === "Enter";
}
-function Ux(e) {
+function dce(e) {
return e === " ";
}
//#endregion
@@ -24792,7 +24792,7 @@ function pce(e, t) {
let { key: n } = e, r = t.selectionManager, i = uy(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": pb(fce(Vx), "@react-aria/grid").format("select"),
+ "aria-label": pb(fce(Hx), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -24803,7 +24803,7 @@ function pce(e, t) {
function mce(e, t, n) {
let r = hb(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = uce({
+ let { listProps: s } = lce({
...e,
ref: n,
selectionManager: t.selectionManager,
@@ -24874,7 +24874,7 @@ function gce(e, t, n) {
let e = Number(m?.index);
p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = lse(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = doe(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Hx({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = doe(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Ux({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -24920,7 +24920,7 @@ var _ce = /* @__PURE__ */ new WeakMap();
function vce(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = hb(e, { labelable: !0 }), { listProps: c } = uce({
+ let s = hb(e, { labelable: !0 }), { listProps: c } = lce({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -24981,7 +24981,7 @@ function yce(e, t, n) {
m?.(e), N(), oie(e, M, A.props.href, A?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || w.selectionMode === "none" || w.isLink(i) : w.selectionMode !== "multiple" || w.isLink(i);
t = o ?? a ?? t, j && !T && t && j(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = Hx({
+ }, { itemProps: se, isFocused: ce } = Ux({
id: r,
selectionManager: w,
key: i,
@@ -25117,44 +25117,44 @@ var Yx = {};
Yx = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var Xx = {};
-Xx = { dismiss: "Απόρριψη" };
+var Sce = {};
+Sce = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Sce = {};
-Sce = { dismiss: "Dismiss" };
+var Cce = {};
+Cce = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Cce = {};
-Cce = { dismiss: "Descartar" };
+var wce = {};
+wce = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var wce = {};
-wce = { dismiss: "Lõpeta" };
+var Tce = {};
+Tce = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Tce = {};
-Tce = { dismiss: "Hylkää" };
+var Ece = {};
+Ece = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Ece = {};
-Ece = { dismiss: "Rejeter" };
+var Dce = {};
+Dce = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Dce = {};
-Dce = { dismiss: "התעלם" };
+var Oce = {};
+Oce = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Oce = {};
-Oce = { dismiss: "Odbaci" };
+var kce = {};
+kce = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var kce = {};
-kce = { dismiss: "Elutasítás" };
+var Ace = {};
+Ace = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Ace = {};
-Ace = { dismiss: "Ignora" };
+var Xx = {};
+Xx = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
var Zx = {};
@@ -25240,16 +25240,16 @@ gS = {
"cs-CZ": qx,
"da-DK": Jx,
"de-DE": Yx,
- "el-GR": Xx,
- "en-US": Sce,
- "es-ES": Cce,
- "et-EE": wce,
- "fi-FI": Tce,
- "fr-FR": Ece,
- "he-IL": Dce,
- "hr-HR": Oce,
- "hu-HU": kce,
- "it-IT": Ace,
+ "el-GR": Sce,
+ "en-US": Cce,
+ "es-ES": wce,
+ "et-EE": Tce,
+ "fi-FI": Ece,
+ "fr-FR": Dce,
+ "he-IL": Oce,
+ "hr-HR": kce,
+ "hu-HU": Ace,
+ "it-IT": Xx,
"ja-JP": Zx,
"ko-KR": Qx,
"lt-LT": $x,
@@ -26387,7 +26387,7 @@ function ble(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let S = lce({
+ let S = cce({
selectionManager: m,
hasItemActions: !!(l || u)
}), C = hb(e, { labelable: !0 }), w = (0, b.useCallback)((e) => {
@@ -26395,12 +26395,12 @@ function ble(e, t, n) {
}, [m]), T = (0, b.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: w
- }), [w, y.onBlur]), E = sce(n, { isDisabled: t.collection.size !== 0 }), D = gy(C, {
+ }), [w, y.onBlur]), E = oce(n, { isDisabled: t.collection.size !== 0 }), D = gy(C, {
role: "grid",
id: x,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? T : y, t.collection.size === 0 && { tabIndex: E ? -1 : 0 } || void 0, S);
- return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), ace({ getRowText: c }, t), { gridProps: D };
+ return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), ice({ getRowText: c }, t), { gridProps: D };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
@@ -27155,7 +27155,7 @@ function SC(e, t, n) {
}
(m.current != null && r.key !== m.current || !ov(n.current)) && ay(n.current);
}
- }, { itemProps: _, isPressed: v } = Hx({
+ }, { itemProps: _, isPressed: v } = Ux({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -27294,7 +27294,7 @@ function Ole(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
function kle(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = IS.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Hx({
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = IS.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Ux({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -27414,7 +27414,7 @@ function OC(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
function Ile(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 } = Hx({
+ 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 } = Ux({
selectionManager: o,
key: r,
ref: n,
@@ -27515,7 +27515,7 @@ function Rle(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
function zle(e, t, n) {
- let r = sce(n) ? void 0 : 0, i = OC(t, e.id ?? t?.selectedKey, "tabpanel");
+ let r = oce(n) ? void 0 : 0, i = OC(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: gy(tb({
...e,
id: i,
@@ -32139,36 +32139,36 @@ var XD = {
network: "网络与访问",
maintenance: "应用与维护"
};
-function wme(e) {
+function QD(e) {
return ZD[e.split("/")[2]] || ZD.library;
}
-var QD = ["/settings", ...Object.keys(XD).map((e) => `/settings/${e}`)], $D = (e) => QD.includes(e);
-function eO(e) {
+var $D = ["/settings", ...Object.keys(XD).map((e) => `/settings/${e}`)], eO = (e) => $D.includes(e);
+function tO(e) {
return XD[e.split("/")[2]] || XD.appearance;
}
-function tO(e) {
+function nO(e) {
return `/settings/${Object.entries({
...XD,
...ZD
}).find(([, t]) => t === e)?.[0] || "appearance"}`;
}
-var nO = (e) => {
+var rO = (e) => {
let t = e?.settingsBackground;
return t && typeof t.pathname == "string" ? t : null;
-}, rO = [
+}, iO = [
"/assets/:id",
"/posts/:id",
"/works/:code"
-], Tme = [
+], wme = [
"mix",
"parts",
"editions",
"playlist"
];
-function iO(e, t = "") {
+function aO(e, t = "") {
let n = new URL(e, "https://peach.invalid");
e = n.pathname, t ||= n.search;
- for (let n of rO) {
+ for (let n of iO) {
let r = hD(n, e);
if (!r) continue;
if (n === "/works/:code") {
@@ -32186,7 +32186,7 @@ function iO(e, t = "") {
let a = Number(i[0]);
if (!Number.isSafeInteger(a) || a <= 0) return null;
if (n === "/assets/:id") {
- let e = new URLSearchParams(t), r = Tme.filter((t) => e.has(t));
+ let e = new URLSearchParams(t), r = wme.filter((t) => e.has(t));
if (r.length === 1) {
let t = r[0], i = e.get(t), o = Number(i);
if (/^[1-9]\d*$/.test(i) && Number.isSafeInteger(o)) return {
@@ -32210,42 +32210,42 @@ function iO(e, t = "") {
}
return null;
}
-var aO = (e, t = "") => iO(e, t)?.target ?? null, oO = (e) => $D(e.split(/[?#]/)[0]) || rO.some((t) => hD(t, e.split(/[?#]/)[0]) !== null);
-function sO(e) {
+var oO = (e, t = "") => aO(e, t)?.target ?? null, sO = (e) => eO(e.split(/[?#]/)[0]) || iO.some((t) => hD(t, e.split(/[?#]/)[0]) !== null);
+function cO(e) {
let t = e?.backgroundLocation;
return typeof t?.pathname == "string" ? {
pathname: t.pathname,
search: typeof t.search == "string" ? t.search : ""
} : null;
}
-var cO = null, lO = null;
-function uO() {
+var lO = null, uO = null;
+function dO() {
let { pathname: e, search: t } = window.location;
- oO(e) || (cO = {
+ sO(e) || (lO = {
pathname: e,
search: t
});
}
-function dO() {
- cO = null, lO = null;
+function fO() {
+ lO = null, uO = null;
}
-function Eme(e) {
- let t = sO(e);
- t && (cO = t, lO = t.pathname + t.search);
+function Tme(e) {
+ let t = cO(e);
+ t && (lO = t, uO = t.pathname + t.search);
}
-function fO() {
- let e = lO;
- return lO = null, e;
+function pO() {
+ let e = uO;
+ return uO = null, e;
}
-function pO(e) {
- return cO ? {
- backgroundLocation: { ...cO },
+function mO(e) {
+ return lO ? {
+ backgroundLocation: { ...lO },
overlay: e
} : void 0;
}
//#endregion
//#region src/history/canonical-path.ts
-function mO(e) {
+function hO(e) {
let t = new URL(e, "https://peach.invalid");
for (let [e, n] of [
[/^\/item\/(\d+)$/, "/assets/"],
@@ -32268,7 +32268,7 @@ function mO(e) {
}
//#endregion
//#region src/history/route-meta.ts
-var hO = {
+var gO = {
"/settings": {
title: "设置",
refresh: "skip"
@@ -32413,13 +32413,13 @@ var hO = {
title: "播放墙"
}
};
-function gO(e) {
- if (Object.hasOwn(hO, e)) return hO[e];
- let t = iO(e);
- if (t) return hO[t.path];
+function _O(e) {
+ if (Object.hasOwn(gO, e)) return gO[e];
+ let t = aO(e);
+ if (t) return gO[t.path];
let [n, ...r] = e.split("/").filter(Boolean);
if (!n) return null;
- if (!r.length) return Object.hasOwn(hO, `/${n}`) ? hO[`/${n}`] : null;
+ if (!r.length) return Object.hasOwn(gO, `/${n}`) ? gO[`/${n}`] : null;
let i = `/${n}/*`, a = /^\d+$/.test(r.join("/")) ? xt({
performers: "performer",
studios: "studio",
@@ -32428,126 +32428,126 @@ function gO(e) {
series: "series",
tags: "tag"
}[n] || "", Number(r[0])) : r.join("/");
- return Object.hasOwn(hO, i) ? {
- ...hO[i],
+ return Object.hasOwn(gO, i) ? {
+ ...gO[i],
title: a || "资料"
} : null;
}
//#endregion
//#region src/history/managed.ts
-var Dme = () => {}, Ome = new Promise((e) => {
- Dme = e;
+var Eme = () => {}, Dme = new Promise((e) => {
+ Eme = e;
});
-Ome.catch(() => {});
-var kme = null, _O = /* @__PURE__ */ new Map(), vO = /* @__PURE__ */ new Map(), Ame = 0, yO = /* @__PURE__ */ new Set();
-function jme(e) {
- Dme(e);
-}
-function bO(e) {
- return _O.get(e) ?? null;
+Dme.catch(() => {});
+var Ome = null, vO = /* @__PURE__ */ new Map(), yO = /* @__PURE__ */ new Map(), kme = 0, bO = /* @__PURE__ */ new Set();
+function Ame(e) {
+ Eme(e);
}
function xO(e) {
- return !!e && (_O.has(e) || vO.has(e));
+ return vO.get(e) ?? null;
}
-var SO = () => [..._O.values()];
-function Mme(e) {
- return yO.add(e), () => {
- yO.delete(e);
+function SO(e) {
+ return !!e && (vO.has(e) || yO.has(e));
+}
+var CO = () => [...vO.values()];
+function jme(e) {
+ return bO.add(e), () => {
+ bO.delete(e);
};
}
-function CO(e) {
- let t = SO();
- for (let n of [...yO]) n(t, e);
+function wO(e) {
+ let t = CO();
+ for (let n of [...bO]) n(t, e);
}
-async function wO(e, t, n) {
+async function TO(e, t, n) {
let { container: r } = n;
- if (EO(r), !n.isCurrent()) return !1;
- Ame += 1;
+ if (DO(r), !n.isCurrent()) return !1;
+ kme += 1;
let i = {
- revision: Ame,
+ revision: kme,
controller: new AbortController()
};
- vO.set(r, i);
- let a = kme;
- kme = null, a?.();
- let o = await Ome;
- if (vO.get(r) !== i) return !1;
+ yO.set(r, i);
+ let a = Ome;
+ Ome = null, a?.();
+ let o = await Dme;
+ if (yO.get(r) !== i) return !1;
try {
await o(e, t, i.controller.signal);
} catch {
if (i.controller.signal.aborted) return !1;
}
- if (vO.get(r) !== i || (vO.delete(r), !n.isCurrent())) return !1;
- let s = n.place ? n.place(r) : Nme(r);
- return _O.set(r, {
+ if (yO.get(r) !== i || (yO.delete(r), !n.isCurrent())) return !1;
+ let s = n.place ? n.place(r) : Mme(r);
+ return vO.set(r, {
path: e,
props: t,
revision: i.revision,
container: r,
host: s,
resident: !!n.resident
- }), CO(!0), !0;
+ }), wO(!0), !0;
}
-function Nme(e) {
+function Mme(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.textContent = "", e.append(t), t;
}
-function TO(e, t) {
- let n = e ? _O.get(e) : void 0;
- n && (_O.set(n.container, {
+function EO(e, t) {
+ let n = e ? vO.get(e) : void 0;
+ n && (vO.set(n.container, {
...n,
props: {
...n.props,
...t
}
- }), CO(!1));
+ }), wO(!1));
}
-function EO(e, ...t) {
+function DO(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
- let e = vO.get(r);
- e && (e.controller.abort(), vO.delete(r));
- let t = _O.get(r);
- t && (_O.delete(r), n.push(t));
+ let e = yO.get(r);
+ e && (e.controller.abort(), yO.delete(r));
+ let t = vO.get(r);
+ t && (vO.delete(r), n.push(t));
}
if (n.length) {
- CO(!0);
+ wO(!0);
for (let e of n) e.resident || e.host.remove();
}
}
-function Pme() {
- let [e, ...t] = /* @__PURE__ */ new Set([..._O.keys(), ...vO.keys()]);
- e && EO(e, ...t);
+function Nme() {
+ let [e, ...t] = /* @__PURE__ */ new Set([...vO.keys(), ...yO.keys()]);
+ e && DO(e, ...t);
}
-function Fme(e, t) {
- let n = _O.get(e);
- n?.revision === t && (_O.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- CO(!1);
+function Pme(e, t) {
+ let n = vO.get(e);
+ n?.revision === t && (vO.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
+ wO(!1);
}));
}
//#endregion
//#region src/history/index.ts
-var DO = _pe({ v5Compat: !0 }), OO = 0, kO = 0, AO = {
- action: DO.action,
- location: DO.location,
- seq: OO,
- openEpoch: kO,
+var OO = _pe({ v5Compat: !0 }), kO = 0, AO = 0, jO = {
+ action: OO.action,
+ location: OO.location,
+ seq: kO,
+ openEpoch: AO,
claimed: !0
-}, jO = /* @__PURE__ */ new Set(), MO = !1, NO = !0;
-DO.listen(({ action: e, location: t }) => {
- let n = t.pathname + t.search + t.hash, r = mO(n);
- r !== n && (window.history.replaceState(window.history.state, "", r), t = DO.location), OO += 1, MO || (kO += 1), e !== "REPLACE" && (NO = !1), AO = {
+}, MO = /* @__PURE__ */ new Set(), NO = !1, PO = !0;
+OO.listen(({ action: e, location: t }) => {
+ let n = t.pathname + t.search + t.hash, r = hO(n);
+ r !== n && (window.history.replaceState(window.history.state, "", r), t = OO.location), kO += 1, NO || (AO += 1), e !== "REPLACE" && (PO = !1), jO = {
action: e,
location: t,
- seq: OO,
- openEpoch: kO,
- claimed: MO
+ seq: kO,
+ openEpoch: AO,
+ claimed: NO
};
- for (let e of [...jO]) e(AO);
+ for (let e of [...MO]) e(jO);
});
-function Ime(e) {
- if (typeof e == "string") return mO(new URL(e, window.location.href).href);
- let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = mO(t.href);
+function Fme(e) {
+ if (typeof e == "string") return hO(new URL(e, window.location.href).href);
+ let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = hO(t.href);
if (n === t.pathname + t.search + t.hash) return e;
let r = new URL(n, window.location.origin);
return {
@@ -32557,55 +32557,55 @@ function Ime(e) {
hash: r.hash
};
}
-var PO = {
+var FO = {
get navigation() {
- return AO;
+ return jO;
},
listen(e) {
- return jO.add(e), () => {
- jO.delete(e);
+ return MO.add(e), () => {
+ MO.delete(e);
};
},
- createHref: (e) => DO.createHref(e),
- createURL: (e) => DO.createURL(e),
- encodeLocation: (e) => DO.encodeLocation(e),
- go: (e) => DO.go(e),
- push: (e, t) => DO.push(Ime(e), t),
- replace: (e, t) => DO.replace(Ime(e), t)
+ createHref: (e) => OO.createHref(e),
+ createURL: (e) => OO.createURL(e),
+ encodeLocation: (e) => OO.encodeLocation(e),
+ go: (e) => OO.go(e),
+ push: (e, t) => OO.push(Fme(e), t),
+ replace: (e, t) => OO.replace(Fme(e), t)
};
-function FO(e, { replace: t = !1, state: n } = {}) {
- let r = new URL(e, window.location.href), i = mO(`${r.pathname}${r.search}${r.hash}`);
- MO = !0;
+function IO(e, { replace: t = !1, state: n } = {}) {
+ let r = new URL(e, window.location.href), i = hO(`${r.pathname}${r.search}${r.hash}`);
+ NO = !0;
try {
- t ? DO.replace(i, n) : DO.push(i, n);
+ t ? OO.replace(i, n) : OO.push(i, n);
} finally {
- MO = !1;
+ NO = !1;
}
}
-var IO = () => NO;
-function LO() {
- if ($D(AO.location.pathname)) {
- let e = NO ? null : nO(AO.location.state);
- return e ? sO(e.state) || e : null;
+var LO = () => PO;
+function RO() {
+ if (eO(jO.location.pathname)) {
+ let e = PO ? null : rO(jO.location.state);
+ return e ? cO(e.state) || e : null;
}
- return NO ? null : sO(AO.location.state);
+ return PO ? null : cO(jO.location.state);
}
//#endregion
//#region src/core/jav-title.ts
-var Lme = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Rme = (e, t = e?.name) => {
+var Ime = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Lme = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(Lme, "") : n;
-}, zme = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Bme = (e) => {
+ return e?.is_jav ? n.replace(Ime, "") : n;
+}, Rme = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), zme = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(zme) || t[0] || "";
+ return t.find(Rme) || t[0] || "";
};
-function Vme(e, t = e?.name) {
- let n = Rme(e, t), r = String(e?.code || "").trim().toUpperCase();
+function Bme(e, t = e?.name) {
+ let n = Lme(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Bme(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = zme(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -32616,23 +32616,23 @@ function Vme(e, t = e?.name) {
badges: f
};
}
-var RO = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = Vme(e, t);
+var zO = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = Bme(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function zO(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = Vme(e, t);
+function BO(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = Bme(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle">${z(r)}</span>` : ""}`;
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+var Vme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32640,7 +32640,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Ume = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32648,7 +32648,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), BO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), VO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32656,7 +32656,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), VO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), HO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32664,7 +32664,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), HO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), UO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32672,7 +32672,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Wme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Ume = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32680,7 +32680,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Gme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), Wme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32688,7 +32688,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Kme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Gme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32696,7 +32696,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), qme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Kme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32704,7 +32704,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Jme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), qme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32712,7 +32712,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Jme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32720,7 +32720,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Xme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Yme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32728,7 +32728,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), UO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), WO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32736,7 +32736,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Zme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), Xme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32744,7 +32744,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), WO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), GO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32752,7 +32752,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), GO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), KO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32760,7 +32760,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), KO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), qO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32768,7 +32768,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Qme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Zme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32776,7 +32776,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), qO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), JO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32784,7 +32784,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), $me = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), Qme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32792,7 +32792,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), ehe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), $me = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32800,7 +32800,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), the = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), ehe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32808,7 +32808,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), the = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32816,7 +32816,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), rhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), nhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32824,7 +32824,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), ihe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), rhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32832,7 +32832,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), JO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), YO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32840,7 +32840,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), YO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), XO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32848,7 +32848,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), ihe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32856,7 +32856,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), ohe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32864,7 +32864,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), she = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), ohe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32872,7 +32872,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), che = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), she = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32880,7 +32880,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), lhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), che = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32888,7 +32888,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), uhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), lhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32896,7 +32896,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), dhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), uhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32904,7 +32904,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), XO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), ZO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32912,7 +32912,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), ZO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), QO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32920,7 +32920,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), fhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), dhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32928,7 +32928,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), QO = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), $O = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32936,7 +32936,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), fhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32944,7 +32944,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), phe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32952,7 +32952,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), hhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), mhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32960,7 +32960,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), ghe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), hhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32968,7 +32968,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), _he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), ghe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32976,7 +32976,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), vhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), _he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32984,7 +32984,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), vhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -32992,7 +32992,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), bhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+}, b.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -33000,88 +33000,88 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
fill: e,
...r,
className: "remixicon " + (n || "")
-}, b.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), xhe = (e, t) => {
+}, b.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), bhe = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, She = (e, t) => ({
+}, xhe = (e, t) => ({
classGroupId: e,
validator: t
-}), Che = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), She = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), $O = "-", whe = [], The = "arbitrary..", Ehe = (e) => {
- let t = khe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), ek = "-", Che = [], whe = "arbitrary..", The = (e) => {
+ let t = Ohe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Ohe(e);
- let n = e.split($O);
- return Dhe(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Dhe(e);
+ let n = e.split(ek);
+ return Ehe(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? xhe(i, t) : t : i || whe;
+ return t ? i ? bhe(i, t) : t : i || Che;
}
- return n[e] || whe;
+ return n[e] || Che;
}
};
-}, Dhe = (e, t, n) => {
+}, Ehe = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = Dhe(e, t + 1, i);
+ let n = Ehe(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join($O) : e.slice(t).join($O), s = a.length;
+ let o = t === 0 ? e.join(ek) : e.slice(t).join(ek), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Ohe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Dhe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? The + r : void 0;
-})(), khe = (e) => {
+ return r ? whe + r : void 0;
+})(), Ohe = (e) => {
let { theme: t, classGroups: n } = e;
- return Ahe(n, t);
-}, Ahe = (e, t) => {
- let n = Che();
+ return khe(n, t);
+}, khe = (e, t) => {
+ let n = She();
for (let r in e) {
let i = e[r];
- ek(i, n, r, t);
+ tk(i, n, r, t);
}
return n;
-}, ek = (e, t, n, r) => {
+}, tk = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- jhe(i, t, n, r);
+ Ahe(i, t, n, r);
}
-}, jhe = (e, t, n, r) => {
- typeof e == "string" ? Mhe(e, t, n) : typeof e == "function" ? Nhe(e, t, n, r) : Phe(e, t, n, r);
-}, Mhe = (e, t, n) => {
- let r = e === "" ? t : Fhe(t, e);
+}, Ahe = (e, t, n, r) => {
+ typeof e == "string" ? jhe(e, t, n) : typeof e == "function" ? Mhe(e, t, n, r) : Nhe(e, t, n, r);
+}, jhe = (e, t, n) => {
+ let r = e === "" ? t : Phe(t, e);
r.classGroupId = n;
+}, Mhe = (e, t, n, r) => {
+ Fhe(e) ? tk(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(xhe(n, e)));
}, Nhe = (e, t, n, r) => {
- Ihe(e) ? ek(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(She(n, e)));
-}, Phe = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- ek(o, Fhe(t, a), n, r);
+ tk(o, Phe(t, a), n, r);
}
-}, Fhe = (e, t) => {
- let n = e, r = t.split($O), i = r.length;
+}, Phe = (e, t) => {
+ let n = e, r = t.split(ek), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = Che(), n.nextPart.set(t, i)), n = i;
+ i || (i = She(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Ihe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Lhe = (e) => {
+}, Fhe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ihe = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -33099,19 +33099,19 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
e in n ? n[e] = t : i(e, t);
}
};
-}, tk = "!", Rhe = ":", zhe = [], Bhe = (e, t, n, r, i) => ({
+}, nk = "!", Lhe = ":", Rhe = [], zhe = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Vhe = (e) => {
+}), Bhe = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === Rhe) {
+ if (o === Lhe) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -33123,13 +33123,13 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(tk) ? (c = s.slice(0, -1), l = !0) : s.startsWith(tk) && (c = s.slice(1), l = !0);
+ s.endsWith(nk) ? (c = s.slice(0, -1), l = !0) : s.startsWith(nk) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return Bhe(t, l, c, u);
+ return zhe(t, l, c, u);
};
if (t) {
- let e = t + Rhe, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Bhe(zhe, !1, t, void 0, !0);
+ let e = t + Lhe, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : zhe(Rhe, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -33139,7 +33139,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
});
}
return r;
-}, Hhe = (e) => {
+}, Vhe = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -33151,18 +33151,18 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Uhe = (e) => ({
- cache: Lhe(e.cacheSize),
- parseClassName: Vhe(e),
- sortModifiers: Hhe(e),
- postfixLookupClassGroupIds: Whe(e),
- ...Ehe(e)
-}), Whe = (e) => {
+}, Hhe = (e) => ({
+ cache: Ihe(e.cacheSize),
+ parseClassName: Bhe(e),
+ sortModifiers: Vhe(e),
+ postfixLookupClassGroupIds: Uhe(e),
+ ...The(e)
+}), Uhe = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Ghe = /\s+/, Khe = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Ghe), l = "";
+}, Whe = /\s+/, Ghe = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Whe), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -33182,7 +33182,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + tk : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + nk : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -33193,34 +33193,34 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, qhe = (...e) => {
+}, Khe = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = Jhe(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = qhe(n)) && (i && (i += " "), i += r);
return i;
-}, Jhe = (e) => {
+}, qhe = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = Jhe(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = qhe(e[r])) && (n && (n += " "), n += t);
return n;
-}, Yhe = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Uhe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, Jhe = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Hhe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Khe(e, n);
+ let a = Ghe(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(qhe(...e));
-}, Xhe = [], nk = (e) => {
- let t = (t) => t[e] || Xhe;
+ return a = o, (...e) => a(Khe(...e));
+}, Yhe = [], rk = (e) => {
+ let t = (t) => t[e] || Yhe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, Zhe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Qhe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $he = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ege = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, tge = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nge = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, rge = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ige = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rk = (e) => $he.test(e), ik = (e) => !!e && !Number.isNaN(Number(e)), ak = (e) => !!e && Number.isInteger(Number(e)), ok = (e) => e.endsWith("%") && ik(e.slice(0, -1)), sk = (e) => ege.test(e), age = () => !0, oge = (e) => tge.test(e) && !nge.test(e), ck = () => !1, sge = (e) => rge.test(e), cge = (e) => ige.test(e), lge = (e) => !lk(e) && !fk(e), uge = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), dge = (e) => hk(e, wge, ck), lk = (e) => Zhe.test(e), uk = (e) => hk(e, Tge, oge), fge = (e) => hk(e, Ege, ik), pge = (e) => hk(e, Oge, age), mge = (e) => hk(e, Dge, ck), hge = (e) => hk(e, Sge, ck), gge = (e) => hk(e, Cge, cge), dk = (e) => hk(e, kge, sge), fk = (e) => Qhe.test(e), pk = (e) => gk(e, Tge), _ge = (e) => gk(e, Dge), vge = (e) => gk(e, Sge), yge = (e) => gk(e, wge), bge = (e) => gk(e, Cge), mk = (e) => gk(e, kge, !0), xge = (e) => gk(e, Oge, !0), hk = (e, t, n) => {
- let r = Zhe.exec(e);
+}, Xhe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zhe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Qhe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, $he = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ege = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, tge = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, nge = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, rge = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ik = (e) => Qhe.test(e), ak = (e) => !!e && !Number.isNaN(Number(e)), ok = (e) => !!e && Number.isInteger(Number(e)), sk = (e) => e.endsWith("%") && ak(e.slice(0, -1)), ck = (e) => $he.test(e), ige = () => !0, age = (e) => ege.test(e) && !tge.test(e), lk = () => !1, oge = (e) => nge.test(e), sge = (e) => rge.test(e), cge = (e) => !uk(e) && !pk(e), lge = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), uge = (e) => gk(e, Cge, lk), uk = (e) => Xhe.test(e), dk = (e) => gk(e, wge, age), dge = (e) => gk(e, Tge, ak), fge = (e) => gk(e, Dge, ige), pge = (e) => gk(e, Ege, lk), mge = (e) => gk(e, xge, lk), hge = (e) => gk(e, Sge, sge), fk = (e) => gk(e, Oge, oge), pk = (e) => Zhe.test(e), mk = (e) => _k(e, wge), gge = (e) => _k(e, Ege), _ge = (e) => _k(e, xge), vge = (e) => _k(e, Cge), yge = (e) => _k(e, Sge), hk = (e) => _k(e, Oge, !0), bge = (e) => _k(e, Dge, !0), gk = (e, t, n) => {
+ let r = Xhe.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, gk = (e, t, n = !1) => {
- let r = Qhe.exec(e);
+}, _k = (e, t, n = !1) => {
+ let r = Zhe.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, Sge = (e) => e === "position" || e === "percentage", Cge = (e) => e === "image" || e === "url", wge = (e) => e === "length" || e === "size" || e === "bg-size", Tge = (e) => e === "length", Ege = (e) => e === "number", Dge = (e) => e === "family-name", Oge = (e) => e === "number" || e === "weight", kge = (e) => e === "shadow", Age = () => {
- let e = nk("color"), t = nk("font"), n = nk("text"), r = nk("font-weight"), i = nk("tracking"), a = nk("leading"), o = nk("breakpoint"), s = nk("container"), c = nk("spacing"), l = nk("radius"), u = nk("shadow"), d = nk("inset-shadow"), f = nk("text-shadow"), p = nk("drop-shadow"), m = nk("blur"), h = nk("perspective"), g = nk("aspect"), _ = nk("ease"), v = nk("animate"), y = () => [
+}, xge = (e) => e === "position" || e === "percentage", Sge = (e) => e === "image" || e === "url", Cge = (e) => e === "length" || e === "size" || e === "bg-size", wge = (e) => e === "length", Tge = (e) => e === "number", Ege = (e) => e === "family-name", Dge = (e) => e === "number" || e === "weight", Oge = (e) => e === "shadow", kge = () => {
+ let e = rk("color"), t = rk("font"), n = rk("text"), r = rk("font-weight"), i = rk("tracking"), a = rk("leading"), o = rk("breakpoint"), s = rk("container"), c = rk("spacing"), l = rk("radius"), u = rk("shadow"), d = rk("inset-shadow"), f = rk("text-shadow"), p = rk("drop-shadow"), m = rk("blur"), h = rk("perspective"), g = rk("aspect"), _ = rk("ease"), v = rk("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -33245,8 +33245,8 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"left-bottom"
], x = () => [
...b(),
- fk,
- lk
+ pk,
+ uk
], S = () => [
"auto",
"hidden",
@@ -33258,43 +33258,43 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"contain",
"none"
], w = () => [
- fk,
- lk,
+ pk,
+ uk,
c
], T = () => [
- rk,
+ ik,
"full",
"auto",
...w()
], E = () => [
- ak,
+ ok,
"none",
"subgrid",
- fk,
- lk
+ pk,
+ uk
], D = () => [
"auto",
{ span: [
"full",
- ak,
- fk,
- lk
+ ok,
+ pk,
+ uk
] },
- ak,
- fk,
- lk
+ ok,
+ pk,
+ uk
], O = () => [
- ak,
+ ok,
"auto",
- fk,
- lk
+ pk,
+ uk
], k = () => [
"auto",
"min",
"max",
"fr",
- fk,
- lk
+ pk,
+ uk
], A = () => [
"start",
"end",
@@ -33314,7 +33314,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- rk,
+ ik,
"auto",
"full",
"dvw",
@@ -33329,7 +33329,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
...w()
], P = () => [
s,
- rk,
+ ik,
"screen",
"full",
"dvw",
@@ -33340,7 +33340,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"fit",
...w()
], ee = () => [
- rk,
+ ik,
"screen",
"full",
"lh",
@@ -33353,13 +33353,13 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
...w()
], F = () => [
e,
- fk,
- lk
+ pk,
+ uk
], te = () => [
...b(),
- vge,
- hge,
- { position: [fk, lk] }
+ _ge,
+ mge,
+ { position: [pk, uk] }
], I = () => ["no-repeat", { repeat: [
"",
"x",
@@ -33370,25 +33370,25 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"auto",
"cover",
"contain",
- yge,
- dge,
- { size: [fk, lk] }
+ vge,
+ uge,
+ { size: [pk, uk] }
], re = () => [
- ok,
- pk,
- uk
+ sk,
+ mk,
+ dk
], ie = () => [
"",
"none",
"full",
l,
- fk,
- lk
- ], ae = () => [
- "",
- ik,
pk,
uk
+ ], ae = () => [
+ "",
+ ak,
+ mk,
+ dk
], oe = () => [
"solid",
"dashed",
@@ -33412,32 +33412,32 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"color",
"luminosity"
], ce = () => [
- ik,
- ok,
- vge,
- hge
+ ak,
+ sk,
+ _ge,
+ mge
], le = () => [
"",
"none",
m,
- fk,
- lk
+ pk,
+ uk
], ue = () => [
"none",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
], de = () => [
"none",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
], fe = () => [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
], pe = () => [
- rk,
+ ik,
"full",
...w()
];
@@ -33451,17 +33451,17 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"bounce"
],
aspect: ["video"],
- blur: [sk],
- breakpoint: [sk],
- color: [age],
- container: [sk],
- "drop-shadow": [sk],
+ blur: [ck],
+ breakpoint: [ck],
+ color: [ige],
+ container: [ck],
+ "drop-shadow": [ck],
ease: [
"in",
"out",
"in-out"
],
- font: [lge],
+ font: [cge],
"font-weight": [
"thin",
"extralight",
@@ -33473,7 +33473,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"extrabold",
"black"
],
- "inset-shadow": [sk],
+ "inset-shadow": [ck],
leading: [
"none",
"tight",
@@ -33490,11 +33490,11 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"distant",
"none"
],
- radius: [sk],
- shadow: [sk],
- spacing: ["px", ik],
- text: [sk],
- "text-shadow": [sk],
+ radius: [ck],
+ shadow: [ck],
+ spacing: ["px", ak],
+ text: [ck],
+ "text-shadow": [ck],
tracking: [
"tighter",
"tight",
@@ -33508,9 +33508,9 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
aspect: [{ aspect: [
"auto",
"square",
- rk,
- lk,
- fk,
+ ik,
+ uk,
+ pk,
g
] }],
container: ["container"],
@@ -33518,15 +33518,15 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"",
"normal",
"size",
- fk,
- lk
+ pk,
+ uk
] }],
- "container-named": [uge],
+ "container-named": [lge],
columns: [{ columns: [
- ik,
+ ak,
"auto",
- lk,
- fk,
+ uk,
+ pk,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -33623,13 +33623,13 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"collapse"
],
z: [{ z: [
- ak,
+ ok,
"auto",
- fk,
- lk
+ pk,
+ uk
] }],
basis: [{ basis: [
- rk,
+ ik,
"full",
"auto",
s,
@@ -33647,32 +33647,32 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"wrap-reverse"
] }],
flex: [{ flex: [
+ ak,
ik,
- rk,
"auto",
"initial",
"none",
- lk
+ uk
] }],
grow: [{ grow: [
"",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
shrink: [{ shrink: [
"",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
order: [{ order: [
- ak,
+ ok,
"first",
"last",
"none",
- fk,
- lk
+ pk,
+ uk
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -33779,15 +33779,15 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"font-size": [{ text: [
"base",
n,
- pk,
- uk
+ mk,
+ dk
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- xge,
- pge
+ bge,
+ fge
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -33799,15 +33799,15 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"expanded",
"extra-expanded",
"ultra-expanded",
- ok,
- lk
+ sk,
+ uk
] }],
"font-family": [{ font: [
- _ge,
- mge,
+ gge,
+ pge,
t
] }],
- "font-features": [{ "font-features": [lk] }],
+ "font-features": [{ "font-features": [uk] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -33816,14 +33816,14 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- fk,
- lk
+ pk,
+ uk
] }],
"line-clamp": [{ "line-clamp": [
- ik,
+ ak,
"none",
- fk,
- fge
+ pk,
+ dge
] }],
leading: [{ leading: [
"none",
@@ -33832,16 +33832,16 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
] }],
"list-image": [{ "list-image": [
"none",
- fk,
- lk
+ pk,
+ uk
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- fk,
- lk
+ pk,
+ uk
] }],
"text-alignment": [{ text: [
"left",
@@ -33861,18 +33861,18 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- ik,
+ ak,
"from-font",
"auto",
- fk,
- uk
+ pk,
+ dk
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- ik,
+ ak,
"auto",
- fk,
- lk
+ pk,
+ uk
] }],
"text-transform": [
"uppercase",
@@ -33893,9 +33893,9 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- ak,
- fk,
- lk
+ ok,
+ pk,
+ uk
] }],
"vertical-align": [{ align: [
"baseline",
@@ -33906,8 +33906,8 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"text-bottom",
"sub",
"super",
- fk,
- lk
+ pk,
+ uk
] }],
whitespace: [{ whitespace: [
"normal",
@@ -33935,8 +33935,8 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
] }],
content: [{ content: [
"none",
- fk,
- lk
+ pk,
+ uk
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -33971,24 +33971,24 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"l",
"tl"
] },
- ak,
- fk,
- lk
+ ok,
+ pk,
+ uk
],
radial: [
"",
- fk,
- lk
+ pk,
+ uk
],
conic: [
"",
- ak,
- fk,
- lk
+ ok,
+ pk,
+ uk
]
},
- bge,
- gge
+ yge,
+ hge
] }],
"bg-color": [{ bg: F() }],
"gradient-from-pos": [{ from: re() }],
@@ -34055,15 +34055,15 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"outline-w": [{ outline: [
"",
- ik,
- pk,
- uk
+ ak,
+ mk,
+ dk
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -34071,35 +34071,35 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"inner",
"none",
u,
- mk,
- dk
+ hk,
+ fk
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- mk,
- dk
+ hk,
+ fk
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [ik, uk] }],
+ "ring-offset-w": [{ "ring-offset": [ak, dk] }],
"ring-offset-color": [{ "ring-offset": F() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- mk,
- dk
+ hk,
+ fk
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -34121,7 +34121,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [ik] }],
+ "mask-image-linear-pos": [{ "mask-linear": [ak] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
@@ -34150,7 +34150,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": F() }],
"mask-image-y-to-color": [{ "mask-y-to": F() }],
- "mask-image-radial": [{ "mask-radial": [fk, lk] }],
+ "mask-image-radial": [{ "mask-radial": [pk, uk] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
@@ -34161,7 +34161,7 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [ik] }],
+ "mask-image-conic-pos": [{ "mask-conic": [ak] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
@@ -34185,111 +34185,111 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- fk,
- lk
+ pk,
+ uk
] }],
filter: [{ filter: [
"",
"none",
- fk,
- lk
+ pk,
+ uk
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
contrast: [{ contrast: [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- mk,
- dk
+ hk,
+ fk
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"hue-rotate": [{ "hue-rotate": [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
invert: [{ invert: [
"",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
saturate: [{ saturate: [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
sepia: [{ sepia: [
"",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- fk,
- lk
+ pk,
+ uk
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -34305,39 +34305,39 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"shadow",
"transform",
"none",
- fk,
- lk
+ pk,
+ uk
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- ik,
+ ak,
"initial",
- fk,
- lk
+ pk,
+ uk
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- fk,
- lk
+ pk,
+ uk
] }],
delay: [{ delay: [
- ik,
- fk,
- lk
+ ak,
+ pk,
+ uk
] }],
animate: [{ animate: [
"none",
v,
- fk,
- lk
+ pk,
+ uk
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- fk,
- lk
+ pk,
+ uk
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -34353,8 +34353,8 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- fk,
- lk,
+ pk,
+ uk,
"",
"none",
"gpu",
@@ -34368,9 +34368,9 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- ak,
- fk,
- lk
+ ok,
+ pk,
+ uk
] }],
accent: [{ accent: F() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -34420,8 +34420,8 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"nwse-resize",
"zoom-in",
"zoom-out",
- fk,
- lk
+ pk,
+ uk
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -34507,15 +34507,15 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"scroll",
"contents",
"transform",
- fk,
- lk
+ pk,
+ uk
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- ik,
- pk,
- uk,
- fge
+ ak,
+ mk,
+ dk,
+ dge
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -34773,16 +34773,16 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"selection"
]
};
-}, jge = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (_k(e, "cacheSize", t), _k(e, "prefix", n), _k(e, "experimentalParseClassName", r), vk(e.theme, a.theme), vk(e.classGroups, a.classGroups), vk(e.conflictingClassGroups, a.conflictingClassGroups), vk(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), _k(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), _k(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), yk(e.theme, i.theme), yk(e.classGroups, i.classGroups), yk(e.conflictingClassGroups, i.conflictingClassGroups), yk(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), bk(e, i, "postfixLookupClassGroups"), bk(e, i, "orderSensitiveModifiers"), e), _k = (e, t, n) => {
+}, Age = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (vk(e, "cacheSize", t), vk(e, "prefix", n), vk(e, "experimentalParseClassName", r), yk(e.theme, a.theme), yk(e.classGroups, a.classGroups), yk(e.conflictingClassGroups, a.conflictingClassGroups), yk(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), vk(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), vk(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), bk(e.theme, i.theme), bk(e.classGroups, i.classGroups), bk(e.conflictingClassGroups, i.conflictingClassGroups), bk(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), xk(e, i, "postfixLookupClassGroups"), xk(e, i, "orderSensitiveModifiers"), e), vk = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, vk = (e, t) => {
- if (t) for (let n in t) _k(e, n, t[n]);
}, yk = (e, t) => {
- if (t) for (let n in t) bk(e, t, n);
-}, bk = (e, t, n) => {
+ if (t) for (let n in t) vk(e, n, t[n]);
+}, bk = (e, t) => {
+ if (t) for (let n in t) xk(e, t, n);
+}, xk = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Mge = (e, ...t) => typeof e == "function" ? Yhe(Age, e, ...t) : Yhe(() => jge(Age(), e), ...t), Nge = [
+}, jge = (e, ...t) => typeof e == "function" ? Jhe(kge, e, ...t) : Jhe(() => Age(kge(), e), ...t), Mge = [
"large-title",
"display-1",
"display-2",
@@ -34796,18 +34796,18 @@ var Hme = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b
"body-2",
"caption-1",
"caption-2"
-], Pge = [
+], Nge = [
"regular",
"medium",
"semibold",
"bold"
-], xk = Mge({ extend: { classGroups: { "font-size": [{ text: Nge.flatMap((e) => Pge.map((t) => `${e}-${t}`)) }] } } });
-function Sk(e) {
+], Sk = jge({ extend: { classGroups: { "font-size": [{ text: Mge.flatMap((e) => Nge.map((t) => `${e}-${t}`)) }] } } });
+function Ck(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var Ck = Sk({
+var wk = Ck({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -34826,16 +34826,16 @@ var Ck = Sk({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function wk({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function Tk({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, x.jsx)("span", {
ref: r,
- className: xk(Ck.base, Ck.variant[e], Ck.color[t], n),
+ className: Sk(wk.base, wk.variant[e], wk.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var Tk = Sk({
+var Ek = Ck({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -34894,40 +34894,40 @@ function G({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, x.jsxs)("button", {
ref: c,
type: s,
- className: xk(Tk.base, Tk.size[t], Tk.variant[e], n && Tk.iconOnlySize[t], o),
+ className: Sk(Ek.base, Ek.size[t], Ek.variant[e], n && Ek.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, x.jsx)(r, {
- className: Tk.icon[t],
+ className: Ek.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, x.jsx)("span", {
- className: Tk.label[t],
+ className: Ek.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, x.jsx)(i, {
- className: Tk.icon[t],
+ className: Ek.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function Ek({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function Dk({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, x.jsxs)("a", {
ref: s,
- className: xk(Tk.base, Tk.size[t], Tk.variant[e], n && Tk.iconOnlySize[t], o),
+ className: Sk(Ek.base, Ek.size[t], Ek.variant[e], n && Ek.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, x.jsx)(r, {
- className: Tk.icon[t],
+ className: Ek.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, x.jsx)("span", {
- className: Tk.label[t],
+ className: Ek.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, x.jsx)(i, {
- className: Tk.icon[t],
+ className: Ek.icon[t],
"aria-hidden": !0
}) : null
]
@@ -34935,47 +34935,47 @@ function Ek({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/components/card.tsx
-var Fge = "min-w-0", Ige = {
+var Pge = "min-w-0", Fge = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Lge = {
+}, Ige = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Rge = {
+}, Lge = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, zge = {
+}, Rge = {
none: "",
default: "p-5"
-}, Bge = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Vge = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function Dk(e = {}) {
+}, zge = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Bge = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function Ok(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- Fge,
- Ige[t],
- Lge[s],
- zge[n],
- a ? Rge[a] : "",
- r ? Bge : "",
- i ? Vge : "",
+ Pge,
+ Fge[t],
+ Ige[s],
+ Rge[n],
+ a ? Lge[a] : "",
+ r ? zge : "",
+ i ? Bge : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var Hge = {
+var Vge = {
page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function Ok({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function kk({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${Hge[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${Vge[i]}`,
children: [
a ? /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
@@ -35005,7 +35005,7 @@ function Ok({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function kk({ label: e, inline: t = !1 }) {
+function Ak({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, x.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex shrink-0 items-center gap-1",
@@ -35074,7 +35074,7 @@ function K({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function Ak({ children: e }) {
+function jk({ children: e }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -35082,21 +35082,21 @@ function Ak({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var jk = 100, Uge = .4;
-function Mk({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * jk;
+var Mk = 100, Hge = .4;
+function Nk({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * Mk;
return /* @__PURE__ */ (0, x.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${jk} 1`,
+ viewBox: `0 0 ${Mk} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, x.jsx)("rect", {
- width: jk,
+ width: Mk,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -35107,7 +35107,7 @@ function Mk({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, x.jsx)("rect", {
x: o(e),
- width: Uge,
+ width: Hge,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -35124,7 +35124,7 @@ function q(e) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function Nk(e = "") {
+function Pk(e = "") {
let t = (0, b.useRef)(null), [n, r] = (0, b.useState)(""), [i, a] = (0, b.useState)(e);
(0, b.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -35150,21 +35150,21 @@ function Nk(e = "") {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Pk({ className: e, children: t }) {
+function Fk({ className: e, children: t }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
- className: xk("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: Sk("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function Fk({ className: e, children: t }) {
+function Ik({ className: e, children: t }) {
return /* @__PURE__ */ (0, x.jsx)("p", {
- className: xk("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: Sk("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function Ik({ label: e, description: t, children: n }) {
+function Lk({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: xk("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: Sk("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, x.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, x.jsx)("p", {
@@ -35179,7 +35179,7 @@ function Ik({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var Lk = Sk({
+var Rk = Ck({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -35203,15 +35203,15 @@ var Lk = Sk({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function Rk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = xk(Lk.base, Lk.size[t], Lk.variant[e], a), l = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
+function zk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Sk(Rk.base, Rk.size[t], Rk.variant[e], a), l = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
n ? /* @__PURE__ */ (0, x.jsx)(n, {
- className: Lk.icon[t],
+ className: Rk.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, x.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, x.jsx)(r, {
- className: Lk.icon[t],
+ className: Rk.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -35238,7 +35238,7 @@ function Rk({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function zk({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
+function Bk({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
let o = t ? /* @__PURE__ */ (0, x.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [t, e]
@@ -35246,12 +35246,12 @@ function zk({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, x.jsx)(Fk, { children: o })
+ children: /* @__PURE__ */ (0, x.jsx)(Ik, { children: o })
}), /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: r
})]
- }) : /* @__PURE__ */ (0, x.jsx)(Fk, { children: o }), /* @__PURE__ */ (0, x.jsx)(Pk, { children: a })] });
+ }) : /* @__PURE__ */ (0, x.jsx)(Ik, { children: o }), /* @__PURE__ */ (0, x.jsx)(Fk, { children: a })] });
return i ? /* @__PURE__ */ (0, x.jsx)("form", {
id: n,
"aria-label": e,
@@ -35266,13 +35266,13 @@ function zk({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
children: s
});
}
-function Bk({ children: e }) {
+function Vk({ children: e }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function Vk({ divided: e = !1, children: t }) {
+function Hk({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -35281,7 +35281,7 @@ function Vk({ divided: e = !1, children: t }) {
children: t
});
}
-function Hk({ status: e, children: t }) {
+function Uk({ status: e, children: t }) {
return /* @__PURE__ */ (0, x.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, x.jsx)("div", {
@@ -35290,34 +35290,34 @@ function Hk({ status: e, children: t }) {
}) : null, t]
});
}
-function Uk({ role: e, children: t }) {
+function Wk({ role: e, children: t }) {
return /* @__PURE__ */ (0, x.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function Wk({ children: e }) {
+function Gk({ children: e }) {
return /* @__PURE__ */ (0, x.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function Gk({ children: e }) {
+function Kk({ children: e }) {
return /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function Kk({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, x.jsx)(Rk, {
+function qk({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, x.jsx)(zk, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: qO,
+ trailingIcon: JO,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -35325,13 +35325,13 @@ function Kk({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function qk({ children: e }) {
+function Jk({ children: e }) {
return /* @__PURE__ */ (0, x.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function Jk({ term: e, children: t }) {
+function Yk({ term: e, children: t }) {
return /* @__PURE__ */ (0, x.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, x.jsx)("dt", {
@@ -35343,7 +35343,7 @@ function Jk({ term: e, children: t }) {
})]
});
}
-function Yk({ summary: e, defaultOpen: t = !1, children: n, trailing: r = !1, onOpenChange: i }) {
+function Xk({ summary: e, defaultOpen: t = !1, children: n, trailing: r = !1, onOpenChange: i }) {
let a = (0, b.useId)(), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = (0, b.useRef)(!1), [l, u] = (0, b.useState)(t);
return /* @__PURE__ */ (0, x.jsxs)("details", {
ref: (e) => {
@@ -35357,12 +35357,12 @@ function Yk({ summary: e, defaultOpen: t = !1, children: n, trailing: r = !1, on
},
className: `${r ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- r ? null : /* @__PURE__ */ (0, x.jsx)(HO, {
+ r ? null : /* @__PURE__ */ (0, x.jsx)(UO, {
"aria-hidden": !0,
className: l ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}),
e,
- r ? /* @__PURE__ */ (0, x.jsx)(HO, {
+ r ? /* @__PURE__ */ (0, x.jsx)(UO, {
"aria-hidden": !0,
className: l ? "ml-auto size-4 shrink-0 -rotate-90 transition-transform" : "ml-auto size-4 shrink-0 rotate-90 transition-transform"
}) : null
@@ -35378,7 +35378,7 @@ function Yk({ summary: e, defaultOpen: t = !1, children: n, trailing: r = !1, on
})]
});
}
-function Wge({ name: e }) {
+function Uge({ name: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -35387,22 +35387,22 @@ function Wge({ name: e }) {
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
}
-function Xk({ mark: e }) {
+function Zk({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, x.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, x.jsx)(Wge, { name: e });
+ }) : /* @__PURE__ */ (0, x.jsx)(Uge, { name: e });
}
//#endregion
//#region src/react/activity/tasks.ts
-var Zk = "/api/tasks", Qk = ["tasks"], Gge = (e, t) => V(`${Zk}?${new URLSearchParams({
+var Qk = "/api/tasks", $k = ["tasks"], Wge = (e, t) => V(`${Qk}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function $k(...e) {
+function eA(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -35410,26 +35410,26 @@ function $k(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Kge = 2e3, qge = 1e4, Jge = (e) => e?.running.length ? Kge : qge, eA = (e) => V(Zk, e);
-async function Yge(e) {
+var Gge = 2e3, Kge = 1e4, qge = (e) => e?.running.length ? Gge : Kge, tA = (e) => V(Qk, e);
+async function Jge(e) {
await U.fetchQuery({
- queryKey: Qk,
- queryFn: () => eA(e)
+ queryKey: $k,
+ queryFn: () => tA(e)
});
}
-var tA = {
+var nA = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Xge = {
+}, Yge = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Zge = (e) => Xge[e] || e, Qge = {
+}, Xge = (e) => Yge[e] || e, Zge = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -35459,7 +35459,7 @@ var tA = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function $ge(e) {
+function Qge(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -35468,7 +35468,7 @@ function $ge(e) {
}
return t;
}
-function e_e(e, t) {
+function $ge(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -35490,12 +35490,12 @@ function e_e(e, t) {
}
return n;
}
-var t_e = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), nA = (e) => e.status === "pending" || e.status === "running";
-function n_e(e) {
+var e_e = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), rA = (e) => e.status === "pending" || e.status === "running";
+function t_e(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;
- return [r, aA(e.error) || sA(e.result_summary) || (nA(e) && i > 0 ? `${iA(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, oA(e.error) || cA(e.result_summary) || (rA(e) && i > 0 ? `${aA(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function rA(e) {
+function iA(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -35504,15 +35504,15 @@ function rA(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function iA(e, t) {
+function aA(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function aA(e) {
+function oA(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function oA(e) {
+function sA(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -35522,7 +35522,7 @@ function oA(e) {
minute: "2-digit"
});
}
-var r_e = /* @__PURE__ */ new Set([
+var n_e = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -35531,46 +35531,46 @@ var r_e = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function sA(e) {
- return Object.entries(e || {}).filter(([e, t]) => !r_e.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Qge[e] || e} ${typeof t == "number" ? t.toLocaleString() : t}`).join(" · ");
+function cA(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !n_e.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Zge[e] || e} ${typeof t == "number" ? t.toLocaleString() : t}`).join(" · ");
}
//#endregion
//#region src/react/components/source-label.tsx
-function i_e({ className: e }) {
+function r_e({ className: e }) {
return /* @__PURE__ */ (0, x.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, x.jsx)(Xk, { mark: eo[115] })
+ children: /* @__PURE__ */ (0, x.jsx)(Zk, { mark: eo[115] })
});
}
-function a_e({ className: e }) {
+function i_e({ className: e }) {
return /* @__PURE__ */ (0, x.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, x.jsx)(Xk, { mark: eo.pikpak })
+ children: /* @__PURE__ */ (0, x.jsx)(Zk, { mark: eo.pikpak })
});
}
-var cA = {
- 115: i_e,
- pikpak: a_e
+var lA = {
+ 115: r_e,
+ pikpak: i_e
};
-function lA({ source: e, label: t }) {
+function uA({ source: e, label: t }) {
return /* @__PURE__ */ (0, x.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, x.jsx)(Xk, { mark: eo[e] || (e === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, x.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, x.jsx)(Zk, { mark: eo[e] || (e === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, x.jsx)("span", { children: t })]
});
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var uA = "/api/downloads", dA = ["downloads"], o_e = "/api/downloads/cancel", s_e = "/api/downloads/postprocess", fA = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, c_e = {
+var dA = "/api/downloads", fA = ["downloads"], a_e = "/api/downloads/cancel", o_e = "/api/downloads/postprocess", pA = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, s_e = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
stalled: "yellow"
-}, l_e = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, pA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
-function u_e() {
+}, c_e = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, mA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
+function l_e() {
let e = (0, b.useId)(), t = dt({
- queryKey: dA,
- queryFn: ({ signal: e }) => V(`${uA}?limit=50`, e),
- refetchInterval: (e) => fA(e.state.data)
+ queryKey: fA,
+ queryFn: ({ signal: e }) => V(`${dA}?limit=50`, e),
+ refetchInterval: (e) => pA(e.state.data)
}), n = t.data;
return !n?.tasks.length && !t.error ? null : /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-labelledby": e,
@@ -35588,7 +35588,7 @@ function u_e() {
n?.tasks.length ? /* @__PURE__ */ (0, x.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: n.tasks.map((e) => /* @__PURE__ */ (0, x.jsx)(d_e, {
+ children: n.tasks.map((e) => /* @__PURE__ */ (0, x.jsx)(u_e, {
task: e,
writable: n.available
}, e.id))
@@ -35596,15 +35596,15 @@ function u_e() {
]
});
}
-function d_e({ task: e, writable: t }) {
- let n = C(), r = Nk(), [i, a] = (0, b.useState)(!1), o = pA(e), s = e.state === "failed" || e.postprocess_state === "failed", c = [
+function u_e({ task: e, writable: t }) {
+ let n = C(), r = Pk(), [i, a] = (0, b.useState)(!1), o = mA(e), s = e.state === "failed" || e.postprocess_state === "failed", c = [
e.code,
e.target,
- oA(e.submitted_at)
+ sA(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
- n.invalidateQueries({ queryKey: dA });
+ n.invalidateQueries({ queryKey: fA });
}, u = () => {
- r.run("cancel", (t) => H(o_e, { id: e.id }, "POST", t), l);
+ r.run("cancel", (t) => H(a_e, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@ -35614,16 +35614,16 @@ function d_e({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => H(uA, t, "POST", e), l);
+ r.run("resubmit", (e) => H(dA, t, "POST", e), l);
}, f = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, p = () => {
- r.run("postprocess", (t) => H(s_e, { id: e.id }, "POST", t), l);
+ r.run("postprocess", (t) => H(o_e, { id: e.id }, "POST", t), l);
};
return /* @__PURE__ */ (0, x.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: Dk({
+ className: Ok({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -35636,13 +35636,13 @@ function d_e({ task: e, writable: t }) {
children: [
/* @__PURE__ */ (0, x.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
- children: l_e(e)
+ children: c_e(e)
}),
- /* @__PURE__ */ (0, x.jsx)(wk, {
- color: c_e[e.state] ?? "neutral",
+ /* @__PURE__ */ (0, x.jsx)(Tk, {
+ color: s_e[e.state] ?? "neutral",
children: e.state_label
}),
- e.state === "ingested" ? /* @__PURE__ */ (0, x.jsx)(wk, {
+ e.state === "ingested" ? /* @__PURE__ */ (0, x.jsx)(Tk, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : "yellow",
children: e.postprocess_label
}) : null
@@ -35650,7 +35650,7 @@ function d_e({ task: e, writable: t }) {
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, x.jsx)(lA, {
+ children: [/* @__PURE__ */ (0, x.jsx)(uA, {
source: e.provider,
label: e.provider_label
}), /* @__PURE__ */ (0, x.jsx)("span", {
@@ -35658,7 +35658,7 @@ function d_e({ task: e, writable: t }) {
children: c
})]
}),
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, x.jsx)(Mk, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, x.jsx)(Nk, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -35667,7 +35667,7 @@ function d_e({ task: e, writable: t }) {
className: "min-w-0 break-all text-caption-1-regular text-text-secondary",
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: r.error }) : null,
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
@@ -35712,8 +35712,8 @@ function d_e({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/error-excerpt.tsx
-function mA({ text: e, className: t = "" }) {
- let [n, r] = (0, b.useState)(!1), i = (0, b.useId)(), a = String(e || "").trim(), o = aA(a);
+function hA({ text: e, className: t = "" }) {
+ let [n, r] = (0, b.useState)(!1), i = (0, b.useId)(), a = String(e || "").trim(), o = oA(a);
if (!o) return null;
let s = o !== a;
return /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -35739,23 +35739,23 @@ function mA({ text: e, className: t = "" }) {
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var f_e = {
+var d_e = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function hA({ status: e }) {
- return /* @__PURE__ */ (0, x.jsx)(wk, {
- color: f_e[e] ?? "neutral",
- children: Zge(e)
+function gA({ status: e }) {
+ return /* @__PURE__ */ (0, x.jsx)(Tk, {
+ color: d_e[e] ?? "neutral",
+ children: Xge(e)
});
}
-function p_e({ rows: e }) {
+function f_e({ rows: e }) {
return /* @__PURE__ */ (0, x.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = n_e(e);
+ let t = t_e(e);
return /* @__PURE__ */ (0, x.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -35765,7 +35765,7 @@ function p_e({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, x.jsx)(hA, { status: e.status }),
+ /* @__PURE__ */ (0, x.jsx)(gA, { status: e.status }),
t ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -35775,12 +35775,12 @@ function p_e({ rows: e }) {
})
});
}
-function gA({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function _A({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, x.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: Dk({
+ className: Ok({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -35794,7 +35794,7 @@ function gA({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, x.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, x.jsx)(hA, { status: e.status })]
+ }), /* @__PURE__ */ (0, x.jsx)(gA, { status: e.status })]
}),
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -35805,15 +35805,15 @@ function gA({ run: e, meta: t, children: n, footer: r, followups: i }) {
}),
i?.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "border-t border-separator-border px-5 py-2.5",
- children: /* @__PURE__ */ (0, x.jsx)(Yk, {
+ children: /* @__PURE__ */ (0, x.jsx)(Xk, {
summary: `任务明细 · ${i.length} 项`,
- defaultOpen: i.some((e) => nA(e) || e.status === "failed"),
- children: /* @__PURE__ */ (0, x.jsx)(p_e, { rows: i })
+ defaultOpen: i.some((e) => rA(e) || e.status === "failed"),
+ children: /* @__PURE__ */ (0, x.jsx)(f_e, { rows: i })
})
}) : null,
r ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
- children: /* @__PURE__ */ (0, x.jsx)(mA, {
+ children: /* @__PURE__ */ (0, x.jsx)(hA, {
text: r,
className: "text-caption-1-regular text-text-secondary"
})
@@ -35821,15 +35821,15 @@ function gA({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function m_e({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = rA(e.elapsed_seconds), o = [tA[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, x.jsx)(gA, {
+function p_e({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = iA(e.elapsed_seconds), o = [nA[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, x.jsx)(_A, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, x.jsx)(Mk, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Nk, {
label: i,
value: Math.min(r, n),
max: n
@@ -35838,24 +35838,24 @@ function m_e({ run: e, followups: t }) {
children: [
i,
" · ",
- iA(r, n),
+ aA(r, n),
" 项"
]
})]
- }) : /* @__PURE__ */ (0, x.jsx)(kk, { label: i })
+ }) : /* @__PURE__ */ (0, x.jsx)(Ak, { label: i })
});
}
-function _A({ run: e, followups: t, runs: n }) {
- let r = sA(e.result_summary), i = rA(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- tA[e.trigger] || e.trigger,
+function vA({ run: e, followups: t, runs: n }) {
+ let r = cA(e.result_summary), i = iA(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ nA[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${oA(a.finished_at)} – ${oA(e.finished_at)}`
+ `${sA(a.finished_at)} – ${sA(e.finished_at)}`
] : [
- tA[e.trigger] || e.trigger,
- oA(e.finished_at),
+ nA[e.trigger] || e.trigger,
+ sA(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, x.jsx)(gA, {
+ return /* @__PURE__ */ (0, x.jsx)(_A, {
run: e,
meta: o,
footer: e.error,
@@ -35866,7 +35866,7 @@ function _A({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function vA({ title: e, children: t }) {
+function yA({ title: e, children: t }) {
let n = (0, b.useId)();
return /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-labelledby": n,
@@ -35878,41 +35878,41 @@ function vA({ title: e, children: t }) {
}), t]
});
}
-function yA({ live: e = !1, children: t }) {
+function bA({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, x.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function h_e() {
+function m_e() {
let e = dt({
- queryKey: Qk,
- queryFn: ({ signal: e }) => eA(e),
- refetchInterval: (e) => Jge(e.state.data)
+ queryKey: $k,
+ queryFn: ({ signal: e }) => tA(e),
+ refetchInterval: (e) => qge(e.state.data)
}), t = e.data, n = t?.finished, [r, i] = (0, b.useState)([]), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(n);
- n !== s && (c(n), r.length && s && i($k(r, s)));
+ n !== s && (c(n), r.length && s && i(eA(r, s)));
let l = ft({
- mutationFn: ({ oldest: e }) => Gge(e),
+ mutationFn: ({ oldest: e }) => Wge(e),
onSuccess: (e, { shown: t }) => {
- i((n) => $k(n, t, e.finished || [])), o(!!e.finished_has_more);
+ i((n) => eA(n, t, e.finished || [])), o(!!e.finished_has_more);
}
}), u = e.error ? B(e.error) : "";
- if (!t) return /* @__PURE__ */ (0, x.jsx)(Ak, { children: /* @__PURE__ */ (0, x.jsx)(K, {
+ if (!t) return /* @__PURE__ */ (0, x.jsx)(jk, { children: /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
children: u || "读取任务中心失败"
}) });
- let d = $k(t.finished || [], r), f = [
+ let d = eA(t.finished || [], r), f = [
...t.running || [],
...t.skipped || [],
...d
- ], p = $ge(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
+ ], p = Qge(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
!l.isPending && _ && l.mutate({
oldest: _,
shown: d
});
- }, S = g.filter((e) => p.get(e.id)?.some(nA)), C = h(t.running || []), w = h(t.skipped || []), T = g.filter((e) => !S.includes(e) && !w.some((t) => t.id === e.id)), E = e_e(T, (e) => t_e(e) && !p.get(e.id)?.length), D = !C.length && !S.length && !w.length && !T.length;
- return /* @__PURE__ */ (0, x.jsxs)(Ak, { children: [
+ }, S = g.filter((e) => p.get(e.id)?.some(rA)), C = h(t.running || []), w = h(t.skipped || []), T = g.filter((e) => !S.includes(e) && !w.some((t) => t.id === e.id)), E = $ge(T, (e) => e_e(e) && !p.get(e.id)?.length), D = !C.length && !S.length && !w.length && !T.length;
+ return /* @__PURE__ */ (0, x.jsxs)(jk, { children: [
u ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
children: u
@@ -35921,20 +35921,20 @@ function h_e() {
tone: "warning",
children: t.message || "账本上还没有任务中心的表"
}) : null,
- D ? /* @__PURE__ */ (0, x.jsx)(Ok, {
+ D ? /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: YO,
+ icon: XO,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(vA, {
+ /* @__PURE__ */ (0, x.jsx)(yA, {
title: "正在进行",
- children: C.length || S.length ? /* @__PURE__ */ (0, x.jsxs)(yA, {
+ children: C.length || S.length ? /* @__PURE__ */ (0, x.jsxs)(bA, {
live: !0,
- children: [C.map((e) => /* @__PURE__ */ (0, x.jsx)(m_e, {
+ children: [C.map((e) => /* @__PURE__ */ (0, x.jsx)(p_e, {
run: e,
followups: p.get(e.id)
- }, e.id)), S.map((e) => /* @__PURE__ */ (0, x.jsx)(_A, {
+ }, e.id)), S.map((e) => /* @__PURE__ */ (0, x.jsx)(vA, {
run: e,
followups: p.get(e.id)
}, e.id))]
@@ -35943,17 +35943,17 @@ function h_e() {
children: "没有任务在跑。"
})
}),
- w.length ? /* @__PURE__ */ (0, x.jsx)(vA, {
+ w.length ? /* @__PURE__ */ (0, x.jsx)(yA, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, x.jsx)(yA, { children: w.map((e) => /* @__PURE__ */ (0, x.jsx)(_A, {
+ children: /* @__PURE__ */ (0, x.jsx)(bA, { children: w.map((e) => /* @__PURE__ */ (0, x.jsx)(vA, {
run: e,
followups: p.get(e.id)
}, e.id)) })
}) : null,
- T.length || v ? /* @__PURE__ */ (0, x.jsxs)(vA, {
+ T.length || v ? /* @__PURE__ */ (0, x.jsxs)(yA, {
title: "最近完成",
children: [
- T.length ? /* @__PURE__ */ (0, x.jsx)(yA, { children: E.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, x.jsx)(_A, {
+ T.length ? /* @__PURE__ */ (0, x.jsx)(bA, { children: E.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, x.jsx)(vA, {
run: e,
runs: t,
followups: p.get(e.id)
@@ -35965,7 +35965,7 @@ function h_e() {
v ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: BO,
+ leadingIcon: VO,
className: "self-start",
...q(l.isPending),
onClick: y,
@@ -35974,12 +35974,12 @@ function h_e() {
]
}) : null
] }),
- /* @__PURE__ */ (0, x.jsx)(u_e, {})
+ /* @__PURE__ */ (0, x.jsx)(l_e, {})
] });
}
//#endregion
//#region src/react/components/use-stuck.ts
-function bA(e) {
+function xA(e) {
(0, b.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -35997,9 +35997,9 @@ function bA(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function g_e({ title: e, children: t }) {
+function h_e({ title: e, children: t }) {
let n = (0, b.useRef)(null);
- return bA(n), /* @__PURE__ */ (0, x.jsxs)("div", {
+ return xA(n), /* @__PURE__ */ (0, x.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -36012,52 +36012,52 @@ function g_e({ title: e, children: t }) {
}), t]
});
}
-function xA({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function SA({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
let d = (0, b.useRef)(null);
- return bA(d), /* @__PURE__ */ (0, x.jsxs)("div", {
+ return xA(d), /* @__PURE__ */ (0, x.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: xk("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: Sk("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
n === null ? null : /* @__PURE__ */ (0, x.jsx)("div", {
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: xk("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: Sk("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, x.jsx)("div", {
ref: u,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: xk("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: Sk("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
-var __e = "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 SA({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var g_e = "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 CA({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: xk(__e, r),
+ className: Sk(g_e, r),
onClick: n,
children: e
});
}
-var v_e = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function CA({ children: e, onPress: t, busy: n = !1 }) {
+var __e = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function wA({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: v_e,
+ className: __e,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -36068,13 +36068,13 @@ function CA({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-var wA = (e, t) => [
+var TA = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function TA(e, t, n) {
+function EA(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -36098,17 +36098,17 @@ function TA(e, t, n) {
h: e.offsetHeight
};
}
-function EA(e, t, n, r, { axis: i = "x" } = {}) {
+function DA(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, b.useRef)(null), o = (0, b.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? TA(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? EA(u, l, i) : null;
if (!d || !d.w || !d.h) {
s.getAnimations().forEach((e) => e.cancel()), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && wA(f, d)) && Zo(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && TA(f, d)) && Zo(s, o ? f : null, d, i);
}, [
e,
t,
@@ -36129,8 +36129,8 @@ function EA(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? TA(o, r, i) : null, l = a.current;
- (!s || !l || !wA(s, l)) && c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? EA(o, r, i) : null, l = a.current;
+ (!s || !l || !TA(s, l)) && c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -36162,12 +36162,12 @@ function EA(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var DA = Symbol("default");
-function OA({ values: e, children: t }) {
+var OA = Symbol("default");
+function kA({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ b.createElement(n.Provider, { value: r }, t);
return t;
}
-function kA(e) {
+function AA(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, b.useMemo)(() => {
let e, l, u;
@@ -36201,11 +36201,11 @@ function kA(e) {
c
]);
}
-function AA(e, t) {
+function jA(e, t) {
let n = (0, b.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || DA;
+ let e = t || OA;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -36214,8 +36214,8 @@ function AA(e, t) {
}
return n;
}
-function jA(e, t, n) {
- let { ref: r, ...i } = AA(n, e.slot) || {}, a = Sy((0, b.useMemo)(() => fy(t, r), [t, r])), o = gy(i, e);
+function MA(e, t, n) {
+ let { ref: r, ...i } = jA(n, e.slot) || {}, a = Sy((0, b.useMemo)(() => fy(t, r), [t, r])), o = gy(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -36233,7 +36233,7 @@ function jA(e, t, n) {
...e.style
}), [o, a];
}
-function MA(e = !0) {
+function NA(e = !0) {
let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(!1), i = (0, b.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -36241,12 +36241,12 @@ function MA(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function NA(e) {
+function PA(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function y_e(e, t, n) {
+function v_e(e, t, n) {
let { render: r, ...i } = t, a = (0, b.useRef)(null), o = (0, b.useMemo)(() => fy(n, a), [n, a]);
fv(() => {}, [e, r]);
let s = {
@@ -36255,19 +36255,19 @@ function y_e(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ b.createElement(e, s);
}
-var PA = {}, FA = new Proxy({}, { get(e, t) {
+var FA = {}, IA = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = PA[t];
- return n || (n = /*#__PURE__*/ (0, b.forwardRef)(y_e.bind(null, t)), PA[t] = n), n;
-} }), IA = /*#__PURE__*/ (0, b.createContext)(null), LA = /*#__PURE__*/ (0, b.createContext)(null), RA = /*#__PURE__*/ (0, b.createContext)(null), zA = {
+ let n = FA[t];
+ return n || (n = /*#__PURE__*/ (0, b.forwardRef)(v_e.bind(null, t)), FA[t] = n), n;
+} }), LA = /*#__PURE__*/ (0, b.createContext)(null), RA = /*#__PURE__*/ (0, b.createContext)(null), zA = /*#__PURE__*/ (0, b.createContext)(null), BA = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return BA(e, null, t);
+ return VA(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return BA(e, t, n);
+ return VA(e, t, n);
}
};
-function BA(e, t, n) {
+function VA(e, t, n) {
return q_({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -36278,11 +36278,11 @@ function BA(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, b_e(e, t, n));
+ }), r, y_e(e, t, n));
}
});
}
-function b_e(e, t, n) {
+function y_e(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -36301,24 +36301,24 @@ function b_e(e, t, n) {
}
return s;
}
-var VA = /*#__PURE__*/ (0, b.createContext)(zA);
-function HA(e) {
+var HA = /*#__PURE__*/ (0, b.createContext)(BA);
+function UA(e) {
return (0, b.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var UA = /*#__PURE__*/ (0, b.createContext)({}), x_e = /*#__PURE__*/ Dy(function(e, t) {
- [e, t] = jA(e, t, UA);
- let { elementType: n = "label", ...r } = e, i = FA[n];
+var WA = /*#__PURE__*/ (0, b.createContext)({}), b_e = /*#__PURE__*/ Dy(function(e, t) {
+ [e, t] = MA(e, t, WA);
+ let { elementType: n = "label", ...r } = e, i = IA[n];
return /*#__PURE__*/ b.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), S_e = /*#__PURE__*/ (0, b.createContext)(null), WA = /*#__PURE__*/ (0, b.createContext)({}), GA = /*#__PURE__*/ Dy(function(e, t) {
- [e, t] = jA(e, t, WA);
+}), x_e = /*#__PURE__*/ (0, b.createContext)(null), GA = /*#__PURE__*/ (0, b.createContext)({}), KA = /*#__PURE__*/ Dy(function(e, t) {
+ [e, t] = MA(e, t, GA);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Cae(e, t);
- i = w_e(i, r);
+ i = C_e(i, r);
let { focusProps: o, isFocused: s, isFocusVisible: c } = Lx(e), { hoverProps: l, isHovered: u } = Bx({
...e,
isDisabled: e.isDisabled || r
@@ -36329,7 +36329,7 @@ var UA = /*#__PURE__*/ (0, b.createContext)({}), x_e = /*#__PURE__*/ Dy(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = kA({
+ }, f = AA({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -36346,7 +36346,7 @@ var UA = /*#__PURE__*/ (0, b.createContext)({}), x_e = /*#__PURE__*/ Dy(function
p
]);
let _ = hb(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ b.createElement(FA.button, {
+ return delete _.onClick, /*#__PURE__*/ b.createElement(IA.button, {
...gy(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -36360,62 +36360,62 @@ var UA = /*#__PURE__*/ (0, b.createContext)({}), x_e = /*#__PURE__*/ Dy(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ b.createElement(S_e.Provider, { value: { id: m } }, f.children));
-}), C_e = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function w_e(e, t) {
+ }, /*#__PURE__*/ b.createElement(x_e.Provider, { value: { id: m } }, f.children));
+}), S_e = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function C_e(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !C_e.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !S_e.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Heading.mjs
-var KA = /*#__PURE__*/ (0, b.createContext)({}), qA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = jA(e, t, KA);
- let { children: n, level: r = 3, className: i, ...a } = e, o = FA[`h${r}`];
+var qA = /*#__PURE__*/ (0, b.createContext)({}), JA = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = MA(e, t, qA);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = IA[`h${r}`];
return /*#__PURE__*/ b.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), JA = /*#__PURE__*/ (0, b.createContext)({}), T_e = /*#__PURE__*/ Dy(function(e, t) {
- [e, t] = jA(e, t, JA);
- let { elementType: n = "span", ...r } = e, i = FA[n];
+}), YA = /*#__PURE__*/ (0, b.createContext)({}), w_e = /*#__PURE__*/ Dy(function(e, t) {
+ [e, t] = MA(e, t, YA);
+ let { elementType: n = "span", ...r } = e, i = IA[n];
return /*#__PURE__*/ b.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), YA = /*#__PURE__*/ (0, b.createContext)(null), XA = /*#__PURE__*/ (0, b.createContext)(null), ZA = /*#__PURE__*/ (0, b.createContext)(null), QA = /*#__PURE__*/ (0, b.createContext)(null), E_e = /*#__PURE__*/ (0, b.createContext)(null), $A = /*#__PURE__*/ (0, b.createContext)(null);
-function D_e(e, t) {
- let { validationBehavior: n } = AA(XA) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useContext)(E_e), a = Sy((0, b.useMemo)(() => fy(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...NA(e),
+}), XA = /*#__PURE__*/ (0, b.createContext)(null), ZA = /*#__PURE__*/ (0, b.createContext)(null), QA = /*#__PURE__*/ (0, b.createContext)(null), $A = /*#__PURE__*/ (0, b.createContext)(null), T_e = /*#__PURE__*/ (0, b.createContext)(null), ej = /*#__PURE__*/ (0, b.createContext)(null);
+function E_e(e, t) {
+ let { validationBehavior: n } = jA(ZA) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useContext)(T_e), a = Sy((0, b.useMemo)(() => fy(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...PA(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
return [i ? roe(o, i, a) : $ae(o, gx(e), a), a];
}
-var O_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+var D_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = jA(r, t, ZA);
- let [i, a] = D_e(e, n);
- return /*#__PURE__*/ b.createElement($A.Provider, { value: {
+ [e, t] = MA(r, t, QA);
+ let [i, a] = E_e(e, n);
+ return /*#__PURE__*/ b.createElement(ej.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ b.createElement(k_e, {
+ } }, /*#__PURE__*/ b.createElement(O_e, {
...e,
ref: t
}));
-}), k_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, b.useContext)($A), { isFocused: p, isFocusVisible: m, focusProps: h } = Lx(), g = a || o, { hoverProps: _, isHovered: v } = Bx({
+}), O_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, b.useContext)(ej), { isFocused: p, isFocusVisible: m, focusProps: h } = Lx(), g = a || o, { hoverProps: _, isHovered: v } = Bx({
...e,
isDisabled: g
- }), y = kA({
+ }), y = AA({
...e,
defaultClassName: u,
values: {
@@ -36431,7 +36431,7 @@ var O_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), x = hb(e, { global: !0 });
- return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(FA.label, {
+ return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(IA.label, {
...gy(x, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -36449,8 +36449,8 @@ var O_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
...gy(r, h),
ref: l
})), y.children);
-}), ej = /*#__PURE__*/ (0, b.createContext)({}), A_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = jA(e, t, ej);
+}), tj = /*#__PURE__*/ (0, b.createContext)({}), k_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = MA(e, t, tj);
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 } = Bx({
@@ -36458,7 +36458,7 @@ var O_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = Lx({ within: !0 }), m = kA({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = Lx({ within: !0 }), m = AA({
...e,
values: {
isHovered: u,
@@ -36469,7 +36469,7 @@ var O_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ b.createElement(FA.div, {
+ return /*#__PURE__*/ b.createElement(IA.div, {
...gy(c, p, l),
...m,
ref: t,
@@ -36482,18 +36482,18 @@ var O_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), tj = /*#__PURE__*/ (0, b.createContext)({}), j_e = (e) => {
+}), nj = /*#__PURE__*/ (0, b.createContext)({}), A_e = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, M_e = /*#__PURE__*/ Dy(function(e, t) {
- [e, t] = jA(e, t, tj);
+}, j_e = /*#__PURE__*/ Dy(function(e, t) {
+ [e, t] = MA(e, t, nj);
let { hoverProps: n, isHovered: r } = Bx({
...e,
isDisabled: e.disabled
}), { isFocused: i, isFocusVisible: a, focusProps: o } = Lx({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = kA({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = AA({
...e,
values: {
isHovered: r,
@@ -36504,8 +36504,8 @@ var O_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ b.createElement(FA.input, {
- ...gy(j_e(e), o, n),
+ return /*#__PURE__*/ b.createElement(IA.input, {
+ ...gy(A_e(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -36514,8 +36514,8 @@ var O_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), nj = {};
-nj = {
+}), rj = {};
+rj = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -36523,8 +36523,8 @@ nj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var rj = {};
-rj = {
+var ij = {};
+ij = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -36532,8 +36532,8 @@ rj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var ij = {};
-ij = {
+var aj = {};
+aj = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -36541,8 +36541,8 @@ ij = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var aj = {};
-aj = {
+var oj = {};
+oj = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -36550,8 +36550,8 @@ aj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var oj = {};
-oj = {
+var sj = {};
+sj = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -36559,8 +36559,8 @@ oj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var sj = {};
-sj = {
+var cj = {};
+cj = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -36568,8 +36568,8 @@ sj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var cj = {};
-cj = {
+var lj = {};
+lj = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -36577,8 +36577,8 @@ cj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var lj = {};
-lj = {
+var uj = {};
+uj = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -36586,8 +36586,8 @@ lj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var uj = {};
-uj = {
+var dj = {};
+dj = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -36595,8 +36595,8 @@ uj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var dj = {};
-dj = {
+var fj = {};
+fj = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -36604,8 +36604,8 @@ dj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var fj = {};
-fj = {
+var pj = {};
+pj = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -36613,8 +36613,8 @@ fj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var pj = {};
-pj = {
+var mj = {};
+mj = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -36622,8 +36622,8 @@ pj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var mj = {};
-mj = {
+var hj = {};
+hj = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -36631,8 +36631,8 @@ mj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var hj = {};
-hj = {
+var gj = {};
+gj = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -36640,8 +36640,8 @@ hj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var gj = {};
-gj = {
+var _j = {};
+_j = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -36649,8 +36649,8 @@ gj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var _j = {};
-_j = {
+var vj = {};
+vj = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -36658,8 +36658,8 @@ _j = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var vj = {};
-vj = {
+var yj = {};
+yj = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -36667,8 +36667,8 @@ vj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var yj = {};
-yj = {
+var bj = {};
+bj = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -36676,8 +36676,8 @@ yj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var bj = {};
-bj = {
+var xj = {};
+xj = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -36685,8 +36685,8 @@ bj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var xj = {};
-xj = {
+var Sj = {};
+Sj = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -36694,8 +36694,8 @@ xj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Sj = {};
-Sj = {
+var Cj = {};
+Cj = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -36703,8 +36703,8 @@ Sj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Cj = {};
-Cj = {
+var wj = {};
+wj = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -36712,8 +36712,8 @@ Cj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var wj = {};
-wj = {
+var Tj = {};
+Tj = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -36721,8 +36721,8 @@ wj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var Tj = {};
-Tj = {
+var Ej = {};
+Ej = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -36730,8 +36730,8 @@ Tj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Ej = {};
-Ej = {
+var Dj = {};
+Dj = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -36739,8 +36739,8 @@ Ej = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var Dj = {};
-Dj = {
+var Oj = {};
+Oj = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -36748,8 +36748,8 @@ Dj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var Oj = {};
-Oj = {
+var kj = {};
+kj = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -36757,8 +36757,8 @@ Oj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var kj = {};
-kj = {
+var Aj = {};
+Aj = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -36766,8 +36766,8 @@ kj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Aj = {};
-Aj = {
+var jj = {};
+jj = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -36775,8 +36775,8 @@ Aj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var jj = {};
-jj = {
+var Mj = {};
+Mj = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -36784,8 +36784,8 @@ jj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var Mj = {};
-Mj = {
+var Nj = {};
+Nj = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -36793,8 +36793,8 @@ Mj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var Nj = {};
-Nj = {
+var Pj = {};
+Pj = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -36802,8 +36802,8 @@ Nj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var Pj = {};
-Pj = {
+var Fj = {};
+Fj = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -36811,8 +36811,8 @@ Pj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var Fj = {};
-Fj = {
+var Ij = {};
+Ij = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -36820,52 +36820,52 @@ Fj = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var Ij = {};
-Ij = {
- "ar-AE": nj,
- "bg-BG": rj,
- "cs-CZ": ij,
- "da-DK": aj,
- "de-DE": oj,
- "el-GR": sj,
- "en-US": cj,
- "es-ES": lj,
- "et-EE": uj,
- "fi-FI": dj,
- "fr-FR": fj,
- "he-IL": pj,
- "hr-HR": mj,
- "hu-HU": hj,
- "it-IT": gj,
- "ja-JP": _j,
- "ko-KR": vj,
- "lt-LT": yj,
- "lv-LV": bj,
- "nb-NO": xj,
- "nl-NL": Sj,
- "pl-PL": Cj,
- "pt-BR": wj,
- "pt-PT": Tj,
- "ro-RO": Ej,
- "ru-RU": Dj,
- "sk-SK": Oj,
- "sl-SI": kj,
- "sr-SP": Aj,
- "sv-SE": jj,
- "tr-TR": Mj,
- "uk-UA": Nj,
- "zh-CN": Pj,
- "zh-TW": Fj
+var Lj = {};
+Lj = {
+ "ar-AE": rj,
+ "bg-BG": ij,
+ "cs-CZ": aj,
+ "da-DK": oj,
+ "de-DE": sj,
+ "el-GR": cj,
+ "en-US": lj,
+ "es-ES": uj,
+ "et-EE": dj,
+ "fi-FI": fj,
+ "fr-FR": pj,
+ "he-IL": mj,
+ "hr-HR": hj,
+ "hu-HU": gj,
+ "it-IT": _j,
+ "ja-JP": vj,
+ "ko-KR": yj,
+ "lt-LT": bj,
+ "lv-LV": xj,
+ "nb-NO": Sj,
+ "nl-NL": Cj,
+ "pl-PL": wj,
+ "pt-BR": Tj,
+ "pt-PT": Ej,
+ "ro-RO": Dj,
+ "ru-RU": Oj,
+ "sk-SK": kj,
+ "sl-SI": Aj,
+ "sr-SP": jj,
+ "sv-SE": Mj,
+ "tr-TR": Nj,
+ "uk-UA": Pj,
+ "zh-CN": Fj,
+ "zh-TW": Ij
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var Lj = /*#__PURE__*/ (0, b.createContext)({}), Rj = /*#__PURE__*/ (0, b.createContext)(null), N_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { render: n } = (0, b.useContext)(Rj);
+var Rj = /*#__PURE__*/ (0, b.createContext)({}), zj = /*#__PURE__*/ (0, b.createContext)(null), M_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { render: n } = (0, b.useContext)(zj);
return /*#__PURE__*/ b.createElement(b.Fragment, null, n(e, t));
});
-function zj(e, t) {
+function Bj(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, b.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ b.createElement(N_e, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ b.createElement(M_e, { target: e });
}, [
t?.target,
r,
@@ -36873,7 +36873,7 @@ function zj(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function Bj(e, t, n) {
+function Vj(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;
@@ -36895,14 +36895,14 @@ function Bj(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var Vj = /*#__PURE__*/ (0, b.createContext)({}), P_e = /*#__PURE__*/ (0, b.createContext)(null);
-function Hj(e) {
+var Hj = /*#__PURE__*/ (0, b.createContext)({}), N_e = /*#__PURE__*/ (0, b.createContext)(null);
+function Uj(e) {
let t = (0, b.useRef)({});
- return /*#__PURE__*/ b.createElement(P_e.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ b.createElement(N_e.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var Uj = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), Wj = /*#__PURE__*/ (0, b.createContext)({}), F_e = /*#__PURE__*/ Fy(class extends z_ {
+var Wj = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), Gj = /*#__PURE__*/ (0, b.createContext)({}), P_e = /*#__PURE__*/ Fy(class extends z_ {
static {
this.type = "separator";
}
@@ -36915,10 +36915,10 @@ var Uj = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), Wj = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = jA(e, t, Wj);
+ [e, t] = MA(e, t, Gj);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = FA[c], { separatorProps: u } = gle({
+ let l = IA[c], { separatorProps: u } = gle({
...s,
elementType: n,
orientation: r
@@ -36934,13 +36934,13 @@ var Uj = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), Wj = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function Gj(e) {
+function Kj(e) {
let t = b.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var Kj = class {
+var qj = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -36984,20 +36984,20 @@ var Kj = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, qj = class e extends Set {
+}, Jj = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function I_e(e, t) {
+function F_e(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function Jj(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, b.useRef)(!1), [, s] = (0, b.useState)(!1), c = (0, b.useRef)(null), l = (0, b.useRef)(null), [, u] = (0, b.useState)(null), [d, f] = hx((0, b.useMemo)(() => Yj(e.selectedKeys), [e.selectedKeys]), (0, b.useMemo)(() => Yj(e.defaultSelectedKeys, new qj()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, b.useState)(i);
+function Yj(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, b.useRef)(!1), [, s] = (0, b.useState)(!1), c = (0, b.useRef)(null), l = (0, b.useRef)(null), [, u] = (0, b.useState)(null), [d, f] = hx((0, b.useMemo)(() => Xj(e.selectedKeys), [e.selectedKeys]), (0, b.useMemo)(() => Xj(e.defaultSelectedKeys, new Jj()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, b.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, b.useRef)(i);
return (0, b.useEffect)(() => {
@@ -37024,18 +37024,18 @@ function Jj(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !I_e(e, d)) && f(e);
+ (r || !F_e(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function Yj(e, t) {
- return e ? e === "all" ? "all" : new qj(e) : t;
+function Xj(e, t) {
+ return e ? e === "all" ? "all" : new Jj(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var Xj = class e {
+var Zj = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -37118,10 +37118,10 @@ var Xj = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new qj([t], t, t);
+ if (this.state.selectedKeys === "all") n = new Jj([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new qj(e, r, t);
+ n = new Jj(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -37155,19 +37155,19 @@ var Xj = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new qj(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new Jj(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new qj([t], t, t) : new qj();
+ let n = this.canSelectItem(t) ? new Jj([t], t, t) : new Jj();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new qj();
+ let t = new Jj();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -37190,7 +37190,7 @@ var Xj = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new qj());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Jj());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -37231,9 +37231,9 @@ var Xj = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, L_e = class {
+}, I_e = class {
build(e, t) {
- return this.context = t, Zj(() => this.iterateCollection(e));
+ return this.context = t, Qj(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -37315,10 +37315,10 @@ var Xj = class e {
...a,
key: l,
index: s,
- wrapper: R_e(e.wrapper, a.wrapper)
+ wrapper: L_e(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${Qj(t.type)}> in <${Qj(r?.type ?? "unknown parent type")}>. Only <${Qj(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${$j(t.type)}> in <${$j(r?.type ?? "unknown parent type")}>. Only <${$j(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -37340,7 +37340,7 @@ var Xj = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: Zj(function* () {
+ childNodes: Qj(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -37359,7 +37359,7 @@ var Xj = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function Zj(e) {
+function Qj(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -37367,18 +37367,18 @@ function Zj(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function R_e(e, t) {
+function L_e(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function Qj(e) {
+function $j(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function $j(e, t, n) {
- let r = (0, b.useMemo)(() => new L_e(), []), { children: i, items: a, collection: o } = e;
+function eM(e, t, n) {
+ let r = (0, b.useMemo)(() => new I_e(), []), { children: i, items: a, collection: o } = e;
return (0, b.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -37393,27 +37393,27 @@ function $j(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function eM(e) {
- let { filter: t, layoutDelegate: n } = e, r = Jj(e), i = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = $j(e, (0, b.useCallback)((e) => t ? new Kj(t(e)) : new Kj(e), [t]), (0, b.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, b.useMemo)(() => new Xj(a, r, { layoutDelegate: n }), [
+function tM(e) {
+ let { filter: t, layoutDelegate: n } = e, r = Yj(e), i = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = eM(e, (0, b.useCallback)((e) => t ? new qj(t(e)) : new qj(e), [t]), (0, b.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, b.useMemo)(() => new Zj(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return tM(a, o), {
+ return nM(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function z_e(e, t) {
+function R_e(e, t) {
let n = (0, b.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return tM(n, r), {
+ return nM(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function tM(e, t) {
+function nM(e, t) {
let n = (0, b.useRef)(null);
(0, b.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -37441,7 +37441,7 @@ function tM(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function nM(e, t) {
+function rM(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, b.useRef)(null), s = $y((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -37465,42 +37465,42 @@ function nM(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var rM = /*#__PURE__*/ (0, b.createContext)(null), iM = /*#__PURE__*/ (0, b.createContext)(null), B_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = jA(e, t, rM);
- let n = (0, b.useContext)(iM);
- return n ? /*#__PURE__*/ b.createElement(aM, {
+var iM = /*#__PURE__*/ (0, b.createContext)(null), aM = /*#__PURE__*/ (0, b.createContext)(null), z_e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = MA(e, t, iM);
+ let n = (0, b.useContext)(aM);
+ return n ? /*#__PURE__*/ b.createElement(oM, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ b.createElement(My, { content: /*#__PURE__*/ b.createElement(zy, e) }, (n) => /*#__PURE__*/ b.createElement(V_e, {
+ }) : /*#__PURE__*/ b.createElement(My, { content: /*#__PURE__*/ b.createElement(zy, e) }, (n) => /*#__PURE__*/ b.createElement(B_e, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function V_e({ props: e, listBoxRef: t, collection: n }) {
+function B_e({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, b.useContext)(VA), i = eM({
+ let { layoutDelegate: r } = (0, b.useContext)(HA), i = tM({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ b.createElement(aM, {
+ return /*#__PURE__*/ b.createElement(oM, {
state: i,
props: e,
listBoxRef: t
});
}
-function aM({ state: e, props: t, listBoxRef: n }) {
- [t, n] = jA(t, n, IA);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = z_e(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = sb(), { disabledBehavior: p, disabledKeys: m } = l, h = Fx({
+function oM({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = MA(t, n, LA);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = R_e(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = sb(), { disabledBehavior: p, disabledKeys: m } = l, h = Fx({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, b.useContext)(VA), x = (0, b.useMemo)(() => t.keyboardDelegate || new Ex({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, b.useContext)(HA), x = (0, b.useMemo)(() => t.keyboardDelegate || new Ex({
collection: c,
collator: h,
ref: n,
@@ -37561,7 +37561,7 @@ function aM({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, P = kA({
+ }, P = AA({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -37572,7 +37572,7 @@ function aM({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(N)));
let F = hb(t, { global: !0 });
- return /*#__PURE__*/ b.createElement(Rb, null, /*#__PURE__*/ b.createElement(FA.div, {
+ return /*#__PURE__*/ b.createElement(Rb, null, /*#__PURE__*/ b.createElement(IA.div, {
...gy(F, P, S, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -37583,52 +37583,52 @@ function aM({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": j || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ b.createElement(OA, { values: [
- [rM, t],
- [iM, s],
- [Lj, {
+ }, /*#__PURE__*/ b.createElement(kA, { values: [
+ [iM, t],
+ [aM, s],
+ [Rj, {
dragAndDropHooks: r,
dragState: C,
dropState: w
}],
- [Wj, { elementType: "div" }],
- [Rj, { render: W_e }],
- [RA, {
+ [Gj, { elementType: "div" }],
+ [zj, { render: U_e }],
+ [zA, {
name: "ListBoxSection",
- render: H_e
+ render: V_e
}]
- ] }, /*#__PURE__*/ b.createElement(Hj, null, /*#__PURE__*/ b.createElement(y, {
+ ] }, /*#__PURE__*/ b.createElement(Uj, null, /*#__PURE__*/ b.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: Bj(l, r, w),
- renderDropIndicator: zj(r, w)
+ persistedKeys: Vj(l, r, w),
+ renderDropIndicator: Bj(r, w)
}))), ee, D));
}
-function H_e(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, b.useContext)(iM), { dragAndDropHooks: a, dropState: o } = (0, b.useContext)(Lj), { CollectionBranch: s } = (0, b.useContext)(VA), [c, l] = MA(), { headingProps: u, groupProps: d } = hce({
+function V_e(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, b.useContext)(aM), { dragAndDropHooks: a, dropState: o } = (0, b.useContext)(Rj), { CollectionBranch: s } = (0, b.useContext)(HA), [c, l] = NA(), { headingProps: u, groupProps: d } = hce({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = kA({
+ }), f = AA({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = hb(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ b.createElement(FA.section, {
+ return delete p.id, /*#__PURE__*/ b.createElement(IA.section, {
...gy(p, f, d),
ref: t
- }, /*#__PURE__*/ b.createElement(Vj.Provider, { value: {
+ }, /*#__PURE__*/ b.createElement(Hj.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ b.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: zj(a, o)
+ renderDropIndicator: Bj(a, o)
})));
}
-var U_e = /*#__PURE__*/ Fy(H_, function(e, t, n) {
- let r = Sy(t), i = (0, b.useContext)(iM), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(Lj), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = gce({
+var H_e = /*#__PURE__*/ Fy(H_, function(e, t, n) {
+ let r = Sy(t), i = (0, b.useContext)(aM), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(Rj), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = gce({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = Bx({
@@ -37647,7 +37647,7 @@ var U_e = /*#__PURE__*/ Fy(H_, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), x = kA({
+ let y = o && o.isDragging(n.key), x = AA({
...e,
id: void 0,
children: e.children,
@@ -37665,7 +37665,7 @@ var U_e = /*#__PURE__*/ Fy(H_, function(e, t, n) {
(0, b.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let S = e.href ? FA.a : FA.div, C = hb(e, { global: !0 });
+ let S = e.href ? IA.a : IA.div, C = hb(e, { global: !0 });
return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ b.createElement(S, {
...gy(C, x, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -37679,29 +37679,29 @@ var U_e = /*#__PURE__*/ Fy(H_, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ b.createElement(OA, { values: [[JA, { slots: {
- [DA]: u,
+ }, /*#__PURE__*/ b.createElement(kA, { values: [[YA, { slots: {
+ [OA]: u,
label: u,
description: d
- } }], [Uj, { isSelected: f.isSelected }]] }, x.children));
+ } }], [Wj, { isSelected: f.isSelected }]] }, x.children));
});
-function W_e(e, t) {
+function U_e(e, t) {
t = Sy(t);
- let { dragAndDropHooks: n, dropState: r } = (0, b.useContext)(Lj), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ b.createElement(K_e, {
+ let { dragAndDropHooks: n, dropState: r } = (0, b.useContext)(Rj), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ b.createElement(G_e, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function G_e(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = kA({
+function W_e(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = AA({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(FA.div, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(IA.div, {
...n,
...a,
role: "option",
@@ -37709,10 +37709,10 @@ function G_e(e, t) {
"data-drop-target": r || void 0
}));
}
-var K_e = /*#__PURE__*/ (0, b.forwardRef)(G_e);
+var G_e = /*#__PURE__*/ (0, b.forwardRef)(W_e);
Fy(V_, function(e, t, n) {
- let r = (0, b.useContext)(iM), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, b.useRef)(null);
- nM((0, b.useMemo)(() => ({
+ let r = (0, b.useContext)(aM), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, b.useRef)(null);
+ rM((0, b.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -37722,7 +37722,7 @@ Fy(V_, function(e, t, n) {
o,
r?.collection
]), c);
- let l = kA({
+ let l = AA({
...s,
id: void 0,
children: n.rendered,
@@ -37735,7 +37735,7 @@ Fy(V_, function(e, t, n) {
width: 0,
height: 0
},
- inert: Gj(!0)
+ inert: Kj(!0)
}, /*#__PURE__*/ b.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -37744,7 +37744,7 @@ Fy(V_, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(FA.div, {
+ })), i && l.children && /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(IA.div, {
...gy(hb(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -37753,10 +37753,10 @@ Fy(V_, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var q_e = /*#__PURE__*/ (0, b.createContext)({ placement: "bottom" });
+var K_e = /*#__PURE__*/ (0, b.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function oM(e) {
+function sM(e) {
let [t, n] = hx(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, b.useState)(null);
return {
isOpen: t,
@@ -37776,15 +37776,15 @@ function oM(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function sM(e, t = !0, n) {
+function cM(e, t = !0, n) {
let [r, i] = (0, b.useState)(!0), a = r && t;
return fv(() => {
if (!t && e.current) return oy(ev(e.current, "opacity", "0"), ev(e.current, "clip", "rect(0 0 0 0)"), ev(e.current, "clip-path", "inset(50%)"), ev(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
}, [e, t]), fv(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), lM(e, a, n, (0, b.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), uM(e, a, n, (0, b.useCallback)(() => i(!1), [])), a;
}
-function cM(e, t, n) {
+function lM(e, t, n) {
let [r, i] = (0, b.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -37794,11 +37794,11 @@ function cM(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return lM(e, a, n, (0, b.useCallback)(() => {
+ return uM(e, a, n, (0, b.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function lM(e, t, n, r) {
+function uM(e, t, n, r) {
let i = (0, b.useRef)(null), a = $y(n);
fv(() => {
if (t && e.current && i.current !== t) {
@@ -37826,9 +37826,9 @@ function lM(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var uM = /*#__PURE__*/ (0, b.createContext)(null), dM = /*#__PURE__*/ (0, b.createContext)(null), fM = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = jA(e, t, uM);
- let n = (0, b.useContext)(CM), r = oM(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = cM(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Oy(), { direction: c } = sb();
+var dM = /*#__PURE__*/ (0, b.createContext)(null), fM = /*#__PURE__*/ (0, b.createContext)(null), pM = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = MA(e, t, dM);
+ let n = (0, b.useContext)(wM), r = sM(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = lM(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Oy(), { direction: c } = sb();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -37839,7 +37839,7 @@ var uM = /*#__PURE__*/ (0, b.createContext)(null), dM = /*#__PURE__*/ (0, b.crea
defaultChildren: null
})), /*#__PURE__*/ b.createElement(b.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ b.createElement(J_e, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ b.createElement(q_e, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -37848,13 +37848,13 @@ var uM = /*#__PURE__*/ (0, b.createContext)(null), dM = /*#__PURE__*/ (0, b.crea
dir: c
});
});
-function J_e({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useContext)(dM), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, b.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = lle({
+function q_e({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useContext)(fM), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, b.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = lle({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = sM(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = kA({
+ }, e), g = i.popoverRef, _ = cM(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = AA({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -37875,7 +37875,7 @@ function J_e({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let w = (0, b.useMemo)(() => {
let e = y.children;
- for (let t of [uM, ...r ?? []]) e = /*#__PURE__*/ b.createElement(t.Provider, { value: null }, e);
+ for (let t of [dM, ...r ?? []]) e = /*#__PURE__*/ b.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [T, E] = (0, b.useState)(null), D = (0, b.useCallback)(() => {
i.triggerRef.current && E(i.triggerRef.current.getBoundingClientRect().width + "px");
@@ -37891,7 +37891,7 @@ function J_e({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-width": y.style?.["--trigger-width"] || T
};
fv(() => wS(() => u(!0)), []);
- let k = /*#__PURE__*/ b.createElement(FA.div, {
+ let k = /*#__PURE__*/ b.createElement(IA.div, {
...gy(hb(i, { global: !0 }), d),
...y,
id: S ? i.id : void 0,
@@ -37907,7 +37907,7 @@ function J_e({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ b.createElement(_S, { onDismiss: e.close }), /*#__PURE__*/ b.createElement(q_e.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ b.createElement(_S, { onDismiss: e.close }), /*#__PURE__*/ b.createElement(K_e.Provider, { value: {
...p,
placement: m,
ref: a
@@ -37932,15 +37932,15 @@ function J_e({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ b.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ b.createElement(dM.Provider, { value: o }, k)));
+ }, /*#__PURE__*/ b.createElement(fM.Provider, { value: o }, k)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Y_e = /*#__PURE__*/ (0, b.createContext)({});
+var J_e = /*#__PURE__*/ (0, b.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function pM(e) {
- let t = oM(e), [n, r] = (0, b.useState)(null), [i, a] = (0, b.useState)([]), o = () => {
+function mM(e) {
+ let t = sM(e), [n, r] = (0, b.useState)(null), [i, a] = (0, b.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -37966,7 +37966,7 @@ function pM(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var X_e = class {
+var Y_e = 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) => {
@@ -38010,8 +38010,8 @@ var X_e = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Z_e(e) {
- let { onExpandedChange: t } = e, [n, r] = hx(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = Jj(e), a = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = $j(e, (0, b.useCallback)((e) => new X_e(e, { expandedKeys: n }), [n]), null);
+function X_e(e) {
+ let { onExpandedChange: t } = e, [n, r] = hx(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = Yj(e), a = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = eM(e, (0, b.useCallback)((e) => new Y_e(e, { expandedKeys: n }), [n]), null);
return (0, b.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -38019,32 +38019,32 @@ function Z_e(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Q_e(n, e));
+ r(Z_e(n, e));
},
setExpandedKeys: r,
- selectionManager: new Xj(o, i)
+ selectionManager: new Zj(o, i)
};
}
-function Q_e(e, t) {
+function Z_e(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 mM = /*#__PURE__*/ (0, b.createContext)(null), hM = /*#__PURE__*/ (0, b.createContext)(null), gM = /*#__PURE__*/ (0, b.createContext)(null), _M = /*#__PURE__*/ (0, b.createContext)(null);
-function $_e(e) {
- let t = pM(e), n = (0, b.useRef)(null), { menuTriggerProps: r, menuProps: i } = nse({
+var hM = /*#__PURE__*/ (0, b.createContext)(null), gM = /*#__PURE__*/ (0, b.createContext)(null), _M = /*#__PURE__*/ (0, b.createContext)(null), vM = /*#__PURE__*/ (0, b.createContext)(null);
+function Q_e(e) {
+ let t = mM(e), n = (0, b.useRef)(null), { menuTriggerProps: r, menuProps: i } = nse({
...e,
type: "menu"
}, t, n), a = (0, b.useRef)(null);
- return Oy() ? null : /*#__PURE__*/ b.createElement(OA, { values: [
- [mM, {
+ return Oy() ? null : /*#__PURE__*/ b.createElement(kA, { values: [
+ [hM, {
...i,
ref: a
}],
- [CM, t],
- [gM, t],
- [uM, {
+ [wM, t],
+ [_M, t],
+ [dM, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -38058,7 +38058,7 @@ function $_e(e) {
isPressed: t.isOpen
}, e.children));
}
-var eve = /*#__PURE__*/ (0, b.createContext)(null);
+var $_e = /*#__PURE__*/ (0, b.createContext)(null);
(class extends z_ {
static {
this.type = "submenutrigger";
@@ -38072,24 +38072,24 @@ var eve = /*#__PURE__*/ (0, b.createContext)(null);
return null;
}
});
-var tve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- return [e, t] = jA(e, t, mM), /*#__PURE__*/ b.createElement(My, { content: /*#__PURE__*/ b.createElement(zy, e) }, (n) => /*#__PURE__*/ b.createElement(nve, {
+var eve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ return [e, t] = MA(e, t, hM), /*#__PURE__*/ b.createElement(My, { content: /*#__PURE__*/ b.createElement(zy, e) }, (n) => /*#__PURE__*/ b.createElement(tve, {
props: e,
collection: n,
menuRef: t
}));
});
-function nve({ props: e, collection: t, menuRef: n }) {
- [e, n] = jA(e, n, IA);
- let { filter: r, ...i } = e, a = (0, b.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Z_e({
+function tve({ props: e, collection: t, menuRef: n }) {
+ [e, n] = MA(e, n, LA);
+ let { filter: r, ...i } = e, a = (0, b.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = X_e({
...e,
collection: a,
children: void 0
- }), s = (0, b.useContext)(gM), { isVirtualized: c, CollectionRoot: l } = (0, b.useContext)(VA), { menuProps: u } = vce({
+ }), s = (0, b.useContext)(_M), { isVirtualized: c, CollectionRoot: l } = (0, b.useContext)(HA), { menuProps: u } = vce({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = kA({
+ }, o, n), d = AA({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -38100,35 +38100,35 @@ function nve({ props: e, collection: t, menuRef: n }) {
style: { display: "contents" }
}, e.renderEmptyState()));
let p = hb(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(Rb, null, /*#__PURE__*/ b.createElement(FA.div, {
+ return /*#__PURE__*/ b.createElement(Rb, null, /*#__PURE__*/ b.createElement(IA.div, {
...gy(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ b.createElement(OA, { values: [
- [hM, o],
- [Wj, { elementType: "div" }],
- [RA, {
+ }, /*#__PURE__*/ b.createElement(kA, { values: [
+ [gM, o],
+ [Gj, { elementType: "div" }],
+ [zA, {
name: "MenuSection",
- render: vM
+ render: yM
}],
- [eve, {
+ [$_e, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [bM, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [IA, null],
+ [xM, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
[LA, null],
- [_M, o.selectionManager],
- [gM, s ?? pM({})]
- ] }, /*#__PURE__*/ b.createElement(Hj, null, /*#__PURE__*/ b.createElement(l, {
+ [RA, null],
+ [vM, o.selectionManager],
+ [_M, s ?? mM({})]
+ ] }, /*#__PURE__*/ b.createElement(Uj, null, /*#__PURE__*/ b.createElement(l, {
collection: o.collection,
- persistedKeys: HA(o.selectionManager.focusedKey),
+ persistedKeys: UA(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var rve = class extends Xj {
+var nve = class extends Zj {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -38148,11 +38148,11 @@ var rve = class extends Xj {
return this.parent.childFocusStrategy;
}
};
-function vM(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, b.useContext)(hM), { CollectionBranch: a } = (0, b.useContext)(VA), [o, s] = MA(), { headingProps: c, groupProps: l } = bce({
+function yM(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, b.useContext)(gM), { CollectionBranch: a } = (0, b.useContext)(HA), [o, s] = NA(), { headingProps: c, groupProps: l } = bce({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = kA({
+ }), u = AA({
...e,
id: void 0,
children: void 0,
@@ -38160,31 +38160,31 @@ function vM(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, b.useContext)(_M), f = Jj(e), p = e.selectionMode == null ? d : new rve(d, f), m = AA(bM)?.shouldCloseOnSelect, h = hb(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ b.createElement(FA.section, {
+ }), d = (0, b.useContext)(vM), f = Yj(e), p = e.selectionMode == null ? d : new nve(d, f), m = jA(xM)?.shouldCloseOnSelect, h = hb(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ b.createElement(IA.section, {
...gy(h, u, l),
ref: t
- }, /*#__PURE__*/ b.createElement(OA, { values: [
- [Vj, {
+ }, /*#__PURE__*/ b.createElement(kA, { values: [
+ [Hj, {
...c,
ref: o
}],
- [_M, p],
- [bM, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [vM, p],
+ [xM, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ b.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var yM = /*#__PURE__*/ Iy(Bre, vM), bM = /*#__PURE__*/ (0, b.createContext)(null), xM = /*#__PURE__*/ Fy(H_, function(e, t, n) {
- [e, t] = jA(e, t, bM);
- let r = AA(bM)?.id, i = (0, b.useContext)(hM), a = Sy(t), o = (0, b.useContext)(_M), { isVirtualized: s } = (0, b.useContext)(VA), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = yce({
+var bM = /*#__PURE__*/ Iy(Bre, yM), xM = /*#__PURE__*/ (0, b.createContext)(null), SM = /*#__PURE__*/ Fy(H_, function(e, t, n) {
+ [e, t] = MA(e, t, xM);
+ let r = jA(xM)?.id, i = (0, b.useContext)(gM), a = Sy(t), o = (0, b.useContext)(vM), { isVirtualized: s } = (0, b.useContext)(HA), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = yce({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = Bx({ isDisabled: f.isDisabled }), h = kA({
+ }, i, a), { hoverProps: p, isHovered: m } = Bx({ isDisabled: f.isDisabled }), h = AA({
...e,
id: void 0,
children: n.rendered,
@@ -38198,7 +38198,7 @@ var yM = /*#__PURE__*/ Iy(Bre, vM), bM = /*#__PURE__*/ (0, b.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? FA.a : FA.div, _ = hb(e, { global: !0 });
+ }), g = e.href ? IA.a : IA.div, _ = hb(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ b.createElement(g, {
...gy(_, h, c, p),
ref: a,
@@ -38211,19 +38211,19 @@ var yM = /*#__PURE__*/ Iy(Bre, vM), bM = /*#__PURE__*/ (0, b.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ b.createElement(OA, { values: [
- [JA, { slots: {
- [DA]: l,
+ }, /*#__PURE__*/ b.createElement(kA, { values: [
+ [YA, { slots: {
+ [OA]: l,
label: l,
description: u
} }],
- [Y_e, d],
- [Uj, { isSelected: f.isSelected }]
+ [J_e, d],
+ [Wj, { isSelected: f.isSelected }]
] }, h.children));
});
Fy(V_, function(e, t, n) {
- let r = (0, b.useContext)(hM), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, b.useRef)(null);
- nM((0, b.useMemo)(() => ({
+ let r = (0, b.useContext)(gM), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, b.useRef)(null);
+ rM((0, b.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38233,7 +38233,7 @@ Fy(V_, function(e, t, n) {
o,
r?.collection
]), c);
- let l = kA({
+ let l = AA({
...s,
id: void 0,
children: n.rendered,
@@ -38246,7 +38246,7 @@ Fy(V_, function(e, t, n) {
width: 0,
height: 0
},
- inert: Gj(!0)
+ inert: Kj(!0)
}, /*#__PURE__*/ b.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -38255,7 +38255,7 @@ Fy(V_, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(FA.div, {
+ })), i && l.children && /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(IA.div, {
...gy(hb(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
@@ -38264,82 +38264,82 @@ Fy(V_, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var SM = /*#__PURE__*/ (0, b.createContext)(null), CM = /*#__PURE__*/ (0, b.createContext)(null), wM = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+var CM = /*#__PURE__*/ (0, b.createContext)(null), wM = /*#__PURE__*/ (0, b.createContext)(null), TM = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = jA(e, t, SM);
+ [e, t] = MA(e, t, CM);
let { dialogProps: r, titleProps: i, contentProps: a } = _se({
...e,
"aria-labelledby": n
- }, t), o = (0, b.useContext)(CM);
+ }, t), o = (0, b.useContext)(wM);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = kA({
+ let s = AA({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
}), c = hb(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(FA.section, {
+ return /*#__PURE__*/ b.createElement(IA.section, {
...gy(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ b.createElement(OA, { values: [
- [KA, { slots: {
- [DA]: {},
+ }, /*#__PURE__*/ b.createElement(kA, { values: [
+ [qA, { slots: {
+ [OA]: {},
title: {
...i,
level: 2
}
} }],
- [JA, { slots: {
- [DA]: {},
+ [YA, { slots: {
+ [OA]: {},
description: a
} }],
- [WA, { slots: {
- [DA]: {},
+ [GA, { slots: {
+ [OA]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), TM = typeof document < "u" && window.visualViewport;
-function ive() {
+}), EM = typeof document < "u" && window.visualViewport;
+function rve() {
let e = Nv(), t = (0, b.useRef)(null), [n, r] = (0, b.useState)(() => e ? {
width: 0,
height: 0
- } : EM());
+ } : DM());
return (0, b.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- TM && TM.scale > 1 || e(EM());
+ EM && EM.scale > 1 || e(DM());
}, i = (n) => {
- TM && TM.scale > 1 || Xy(iv(n)) && (t.current = wS((t) => {
+ EM && EM.scale > 1 || Xy(iv(n)) && (t.current = wS((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(EM()), Sv() && Cv() && window.addEventListener("blur", i, !0), TM ? TM.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), Sv() && Cv() && window.removeEventListener("blur", i, !0), TM ? TM.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(DM()), Sv() && Cv() && window.addEventListener("blur", i, !0), EM ? EM.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), Sv() && Cv() && window.removeEventListener("blur", i, !0), EM ? EM.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function EM() {
+function DM() {
return {
- width: TM ? Math.min(TM.width * TM.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: TM ? TM.height * TM.scale : document.documentElement.clientHeight
+ width: EM ? Math.min(EM.width * EM.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: EM ? EM.height * EM.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var ave = /*#__PURE__*/ (0, b.createContext)(null), DM = /*#__PURE__*/ (0, b.createContext)(null), ove = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- if ((0, b.useContext)(DM)) return /*#__PURE__*/ b.createElement(kM, {
+var ive = /*#__PURE__*/ (0, b.createContext)(null), OM = /*#__PURE__*/ (0, b.createContext)(null), ave = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ if ((0, b.useContext)(OM)) return /*#__PURE__*/ b.createElement(AM, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ b.createElement(OM, {
+ return /*#__PURE__*/ b.createElement(kM, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -38349,15 +38349,15 @@ var ave = /*#__PURE__*/ (0, b.createContext)(null), DM = /*#__PURE__*/ (0, b.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ b.createElement(kM, {
+ }, /*#__PURE__*/ b.createElement(AM, {
...f,
modalRef: t
}, s));
});
-function sve(e, t) {
- [e, t] = jA(e, t, ave);
- let n = (0, b.useContext)(CM), r = oM(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Sy(t), o = (0, b.useRef)(null), s = cM(a, i.isOpen, e.onExit), c = (0, b.useRef)(null), l = cM(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Nv();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ b.createElement(cve, {
+function ove(e, t) {
+ [e, t] = MA(e, t, ive);
+ let n = (0, b.useContext)(wM), r = sM(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Sy(t), o = (0, b.useRef)(null), s = lM(a, i.isOpen, e.onExit), c = (0, b.useRef)(null), l = lM(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Nv();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ b.createElement(sve, {
...e,
state: i,
isExiting: u,
@@ -38366,12 +38366,12 @@ function sve(e, t) {
onExitRef: c
});
}
-var OM = /*#__PURE__*/ (0, b.forwardRef)(sve);
-function cve({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, b.useState)(!1), s = sM(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Wce({
+var kM = /*#__PURE__*/ (0, b.forwardRef)(ove);
+function sve({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, b.useState)(!1), s = cM(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Wce({
...n,
isEntering: c
- }, i, r), d = (0, b.useContext)(SM), f = t ? lve(d, { isEntering: c }) : d, p = kA({
+ }, i, r), d = (0, b.useContext)(CM), f = t ? cve(d, { isEntering: c }) : d, p = AA({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -38379,7 +38379,7 @@ function cve({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = ive(), h, g;
+ }), m = rve(), h, g;
if (typeof document < "u") {
let e = Qb(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
@@ -38394,15 +38394,15 @@ function cve({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
return fv(() => wS(() => o(!0)), []), /*#__PURE__*/ b.createElement(Ix, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ b.createElement(FA.div, {
+ }, /*#__PURE__*/ b.createElement(IA.div, {
...gy(hb(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ b.createElement(OA, { values: [
- [DM, {
+ }, /*#__PURE__*/ b.createElement(kA, { values: [
+ [OM, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -38410,11 +38410,11 @@ function cve({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [CM, i],
- [SM, f]
+ [wM, i],
+ [CM, f]
] }, p.children)));
}
-function lve(e, t) {
+function cve(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -38431,8 +38431,8 @@ function lve(e, t) {
...t
};
}
-function kM(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, b.useContext)(DM), s = (0, b.useContext)(CM), c = Sy((0, b.useMemo)(() => fy(e.modalRef, n), [e.modalRef, n])), l = sM(c, o, e.onEnter), u = kA({
+function AM(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, b.useContext)(OM), s = (0, b.useContext)(wM), c = Sy((0, b.useMemo)(() => fy(e.modalRef, n), [e.modalRef, n])), l = cM(c, o, e.onEnter), u = AA({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -38443,7 +38443,7 @@ function kM(e) {
});
return fv(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ b.createElement(FA.div, {
+ }), /*#__PURE__*/ b.createElement(IA.div, {
...gy(hb(e, { global: !0 }), t),
...u,
ref: c,
@@ -38453,9 +38453,9 @@ function kM(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var uve = Math.round(Math.random() * 1e10), dve = 0;
-function fve(e) {
- let t = (0, b.useMemo)(() => e.name || `radio-group-${uve}-${++dve}`, [e.name]), [n, r] = hx(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, b.useState)(n), [a, o] = (0, b.useState)(null), s = ux({
+var lve = Math.round(Math.random() * 1e10), uve = 0;
+function dve(e) {
+ let t = (0, b.useMemo)(() => e.name || `radio-group-${lve}-${++uve}`, [e.name]), [n, r] = hx(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, b.useState)(n), [a, o] = (0, b.useState)(null), s = ux({
...e,
value: n
}), c = (t) => {
@@ -38478,16 +38478,16 @@ function fve(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var pve = /*#__PURE__*/ (0, b.createContext)(null), mve = /*#__PURE__*/ (0, b.createContext)(null), AM = /*#__PURE__*/ (0, b.createContext)(null), jM = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = jA(e, t, pve);
- let { validationBehavior: n } = AA(XA) || {}, r = e.validationBehavior ?? n ?? "native", i = fve({
+var fve = /*#__PURE__*/ (0, b.createContext)(null), pve = /*#__PURE__*/ (0, b.createContext)(null), jM = /*#__PURE__*/ (0, b.createContext)(null), MM = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = MA(e, t, fve);
+ let { validationBehavior: n } = jA(ZA) || {}, r = e.validationBehavior ?? n ?? "native", i = dve({
...e,
validationBehavior: r
- }), [a, o] = MA(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = fle({
+ }), [a, o] = NA(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = fle({
...e,
label: o,
validationBehavior: r
- }, i), f = kA({
+ }, i), f = AA({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -38499,7 +38499,7 @@ var pve = /*#__PURE__*/ (0, b.createContext)(null), mve = /*#__PURE__*/ (0, b.cr
},
defaultClassName: "react-aria-RadioGroup"
}), p = hb(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(FA.div, {
+ return /*#__PURE__*/ b.createElement(IA.div, {
...gy(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -38508,39 +38508,39 @@ var pve = /*#__PURE__*/ (0, b.createContext)(null), mve = /*#__PURE__*/ (0, b.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ b.createElement(OA, { values: [
- [AM, i],
- [UA, {
+ }, /*#__PURE__*/ b.createElement(kA, { values: [
+ [jM, i],
+ [WA, {
...c,
ref: a,
elementType: "span"
}],
- [JA, { slots: {
+ [YA, { slots: {
description: l,
errorMessage: u
} }],
- [YA, d]
- ] }, /*#__PURE__*/ b.createElement(Hj, null, f.children)));
-}), MM = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [XA, d]
+ ] }, /*#__PURE__*/ b.createElement(Uj, null, f.children)));
+}), NM = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = jA(r, t, mve);
- let i = b.useContext(AM), a = Sy((0, b.useMemo)(() => fy(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = dle({
- ...NA(e),
+ [e, t] = MA(r, t, pve);
+ let i = b.useContext(jM), a = Sy((0, b.useMemo)(() => fy(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = dle({
+ ...PA(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ b.createElement(NM.Provider, { value: {
+ return /*#__PURE__*/ b.createElement(PM.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ b.createElement(hve, {
+ } }, /*#__PURE__*/ b.createElement(mve, {
...e,
ref: t
}));
-}), NM = /*#__PURE__*/ (0, b.createContext)(null), hve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, b.useContext)(NM), l = b.useContext(AM), { isFocused: u, isFocusVisible: d, focusProps: f } = Lx(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Bx({
+}), PM = /*#__PURE__*/ (0, b.createContext)(null), mve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, b.useContext)(PM), l = b.useContext(jM), { isFocused: u, isFocusVisible: d, focusProps: f } = Lx(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Bx({
...e,
isDisabled: p
- }), g = kA({
+ }), g = AA({
...e,
defaultClassName: s,
values: {
@@ -38555,7 +38555,7 @@ var pve = /*#__PURE__*/ (0, b.createContext)(null), mve = /*#__PURE__*/ (0, b.cr
isRequired: l.isRequired
}
}), _ = hb(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ b.createElement(FA.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ b.createElement(IA.label, {
...gy(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -38574,8 +38574,8 @@ var pve = /*#__PURE__*/ (0, b.createContext)(null), mve = /*#__PURE__*/ (0, b.cr
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function gve(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = oM(e), [i, a] = (0, b.useState)(null), o = (0, b.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function hve(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = sM(e), [i, a] = (0, b.useState)(null), o = (0, b.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
@@ -38591,12 +38591,12 @@ function gve(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = eM({
+ }, d = tM({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, b.useMemo)(() => _ve(l), [l]),
+ selectedKeys: (0, b.useMemo)(() => gve(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -38633,16 +38633,16 @@ function gve(e) {
setFocused: g
};
}
-function _ve(e) {
+function gve(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 vve(e) {
+function _ve(e) {
return e && e.__esModule ? e.default : e;
}
-var PM = /*#__PURE__*/ (0, b.createContext)(null), FM = /*#__PURE__*/ (0, b.createContext)(null), yve = /*#__PURE__*/ Dy(function(e, t) {
- [e, t] = jA(e, t, PM);
+var FM = /*#__PURE__*/ (0, b.createContext)(null), IM = /*#__PURE__*/ (0, b.createContext)(null), vve = /*#__PURE__*/ Dy(function(e, t) {
+ [e, t] = MA(e, t, FM);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, b.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -38657,24 +38657,24 @@ var PM = /*#__PURE__*/ (0, b.createContext)(null), FM = /*#__PURE__*/ (0, b.crea
i,
a
]);
- return /*#__PURE__*/ b.createElement(My, { content: o }, (n) => /*#__PURE__*/ b.createElement(xve, {
+ return /*#__PURE__*/ b.createElement(My, { content: o }, (n) => /*#__PURE__*/ b.createElement(bve, {
props: e,
collection: n,
selectRef: t
}));
-}), bve = [
- UA,
+}), yve = [
WA,
- JA
+ GA,
+ YA
];
-function xve({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = AA(XA) || {}, i = e.validationBehavior ?? r ?? "native", a = gve({
+function bve({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = jA(ZA) || {}, i = e.validationBehavior ?? r ?? "native", a = hve({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Lx({ within: !0 }), c = (0, b.useRef)(null), [l, u] = MA(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = ple({
- ...NA(e),
+ }), { isFocusVisible: o, focusProps: s } = Lx({ within: !0 }), c = (0, b.useRef)(null), [l, u] = NA(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = ple({
+ ...PA(e),
label: u,
validationBehavior: i
}, a, c), y = (0, b.useMemo)(() => ({
@@ -38691,48 +38691,48 @@ function xve({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), x = kA({
+ ]), x = AA({
...e,
values: y,
defaultClassName: "react-aria-Select"
}), S = hb(e, { global: !0 });
delete S.id;
let C = (0, b.useRef)(null);
- return /*#__PURE__*/ b.createElement(OA, { values: [
- [PM, e],
- [FM, a],
- [IM, p],
- [UA, {
+ return /*#__PURE__*/ b.createElement(kA, { values: [
+ [FM, e],
+ [IM, a],
+ [LM, p],
+ [WA, {
...d,
ref: l,
elementType: "span"
}],
- [WA, {
+ [GA, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [CM, a],
- [uM, {
+ [wM, a],
+ [dM, {
trigger: "Select",
triggerRef: c,
scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: bve
+ clearContexts: yve
}],
- [rM, {
+ [iM, {
...m,
ref: C
}],
- [iM, a],
- [JA, { slots: {
+ [aM, a],
+ [YA, { slots: {
description: h,
errorMessage: g
} }],
- [YA, v]
- ] }, /*#__PURE__*/ b.createElement(FA.div, {
+ [XA, v]
+ ] }, /*#__PURE__*/ b.createElement(IA.div, {
...gy(S, x, s),
ref: t,
slot: e.slot || void 0,
@@ -38747,9 +38747,9 @@ function xve({ props: e, selectRef: t, collection: n }) {
autoComplete: e.autoComplete
})));
}
-for (var IM = /*#__PURE__*/ (0, b.createContext)(null), Sve = /*#__PURE__*/ Dy(function(e, t) {
- [e, t] = jA(e, t, IM);
- let n = (0, b.useContext)(FM), { placeholder: r } = AA(PM), i = n.selectedItems.map((e) => {
+for (var LM = /*#__PURE__*/ (0, b.createContext)(null), xve = /*#__PURE__*/ Dy(function(e, t) {
+ [e, t] = MA(e, t, LM);
+ let n = (0, b.useContext)(IM), { placeholder: r } = jA(FM), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -38776,7 +38776,7 @@ for (var IM = /*#__PURE__*/ (0, b.createContext)(null), Sve = /*#__PURE__*/ Dy(f
a,
o,
i
- ]), u = pb(vve(Ij), "react-aria-components"), d = kA({
+ ]), u = pb(_ve(Lj), "react-aria-components"), d = AA({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -38788,32 +38788,32 @@ for (var IM = /*#__PURE__*/ (0, b.createContext)(null), Sve = /*#__PURE__*/ Dy(f
state: n
}
}), f = hb(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(FA.span, {
+ return /*#__PURE__*/ b.createElement(IA.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ b.createElement(JA.Provider, { value: void 0 }, d.children));
-}), Cve = /*#__PURE__*/ (0, b.createContext)(null), LM = /*#__PURE__*/ (0, b.createContext)(null), wve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ b.createElement(YA.Provider, { value: void 0 }, d.children));
+}), Sve = /*#__PURE__*/ (0, b.createContext)(null), RM = /*#__PURE__*/ (0, b.createContext)(null), Cve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = jA(r, t, Cve);
+ [e, t] = MA(r, t, Sve);
let i = Sy((0, b.useMemo)(() => fy(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = gx(e), o = _le({
- ...NA(e),
+ ...PA(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ b.createElement(OA, { values: [[LM, a], [RM, {
+ return /*#__PURE__*/ b.createElement(kA, { values: [[RM, a], [zM, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ b.createElement(Tve, {
+ }]] }, /*#__PURE__*/ b.createElement(wve, {
...e,
ref: t
}));
-}), RM = /*#__PURE__*/ (0, b.createContext)(null), Tve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, b.useContext)(RM), { isFocused: f, isFocusVisible: p, focusProps: m } = Lx(), h = a || o, g = (0, b.useContext)(LM), { hoverProps: _, isHovered: v } = Bx({
+}), zM = /*#__PURE__*/ (0, b.createContext)(null), wve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, b.useContext)(zM), { isFocused: f, isFocusVisible: p, focusProps: m } = Lx(), h = a || o, g = (0, b.useContext)(RM), { hoverProps: _, isHovered: v } = Bx({
...e,
isDisabled: h
- }), y = kA({
+ }), y = AA({
...e,
defaultClassName: u,
values: {
@@ -38829,7 +38829,7 @@ for (var IM = /*#__PURE__*/ (0, b.createContext)(null), Sve = /*#__PURE__*/ Dy(f
state: g
}
}), x = hb(e, { global: !0 });
- return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(FA.label, {
+ return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(IA.label, {
...gy(x, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38846,7 +38846,7 @@ for (var IM = /*#__PURE__*/ (0, b.createContext)(null), Sve = /*#__PURE__*/ Dy(f
...gy(r, m),
ref: l
})), y.children);
-}), zM = 10, BM = 5, Eve = class {
+}), BM = 10, VM = 5, Tve = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -38856,7 +38856,7 @@ for (var IM = /*#__PURE__*/ (0, b.createContext)(null), Sve = /*#__PURE__*/ Dy(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > BM && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > zM && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > VM && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > BM && (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);
@@ -38935,11 +38935,11 @@ for (var IM = /*#__PURE__*/ (0, b.createContext)(null), Sve = /*#__PURE__*/ Dy(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > BM && i) {
+ if (Math.abs(r - c.lastSwitchY) > VM && 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 > zM && a) {
+ if (l > BM && 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;
}
@@ -38954,7 +38954,7 @@ for (var IM = /*#__PURE__*/ (0, b.createContext)(null), Sve = /*#__PURE__*/ Dy(f
boundaryContext: null
};
}
-}, Dve = class {
+}, Eve = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -39024,8 +39024,8 @@ for (var IM = /*#__PURE__*/ (0, b.createContext)(null), Sve = /*#__PURE__*/ Dy(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, VM = "row-header-column-" + Math.random().toString(36).slice(2), HM = "row-header-column-" + Math.random().toString(36).slice(2); VM === HM;) HM = "row-header-column-" + Math.random().toString(36).slice(2);
-function UM(e, t) {
+}, HM = "row-header-column-" + Math.random().toString(36).slice(2), UM = "row-header-column-" + Math.random().toString(36).slice(2); HM === UM;) UM = "row-header-column-" + Math.random().toString(36).slice(2);
+function WM(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -39109,13 +39109,13 @@ function UM(e, t) {
textValue: ""
}));
}
-var Ove = class extends Dve {
+var Dve = class extends Eve {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: VM,
+ key: HM,
value: null,
textValue: "",
level: 0,
@@ -39130,7 +39130,7 @@ var Ove = class extends Dve {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: HM,
+ key: UM,
value: null,
textValue: "",
level: 0,
@@ -39157,7 +39157,7 @@ var Ove = class extends Dve {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = UM(s, a);
+ let l = WM(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -39218,8 +39218,8 @@ var Ove = class extends Dve {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function kve(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || Jj(e), i = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Ove(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || Yj(e), i = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
@@ -39230,7 +39230,7 @@ function kve(e) {
}
a(e, r);
};
- let o = (0, b.useMemo)(() => new Xj(t, r), [t, r]), s = (0, b.useRef)(null);
+ let o = (0, b.useMemo)(() => new Zj(t, r), [t, r]), s = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -39269,11 +39269,11 @@ function kve(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var Ave = {
+var kve = {
ascending: "descending",
descending: "ascending"
};
-function jve(e) {
+function Ave(e) {
let [t, n] = (0, b.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, b.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -39284,7 +39284,7 @@ function jve(e) {
i,
r,
a
- ]), c = $j(e, (0, b.useCallback)((e) => new Ove(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = kve({
+ ]), c = eM(e, (0, b.useCallback)((e) => new Dve(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Ove({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -39300,7 +39300,7 @@ function jve(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Ave[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? kve[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -39313,7 +39313,7 @@ function jve(e) {
treeColumn: o
};
}
-function Mve(e, t) {
+function jve(e, t) {
let n = (0, b.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -39323,7 +39323,7 @@ function Mve(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var Nve = class extends U_ {
+var Mve = class extends U_ {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -39338,7 +39338,7 @@ var Nve = class extends U_ {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new XM(-2);
+ return new ZM(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -39364,7 +39364,7 @@ var Nve = class extends U_ {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = UM(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 = WM(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;
@@ -39445,11 +39445,11 @@ var Nve = class extends U_ {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new qM(-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 JM(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Pve = /*#__PURE__*/ (0, b.createContext)(null), Fve = /*#__PURE__*/ (0, b.createContext)(null), WM = /*#__PURE__*/ (0, b.createContext)(null), GM = /*#__PURE__*/ (0, b.createContext)(null), Ive = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = jA(e, t, Fve);
- let n = Jj(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, b.useMemo)(() => ({
+}, Nve = /*#__PURE__*/ (0, b.createContext)(null), Pve = /*#__PURE__*/ (0, b.createContext)(null), GM = /*#__PURE__*/ (0, b.createContext)(null), KM = /*#__PURE__*/ (0, b.createContext)(null), Fve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = MA(e, t, Pve);
+ let n = Yj(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, b.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -39459,26 +39459,26 @@ var Nve = class extends U_ {
i,
a,
o
- ]), c = /*#__PURE__*/ b.createElement(zve.Provider, { value: s }, /*#__PURE__*/ b.createElement(zy, e));
+ ]), c = /*#__PURE__*/ b.createElement(Rve.Provider, { value: s }, /*#__PURE__*/ b.createElement(zy, e));
return /*#__PURE__*/ b.createElement(My, {
content: c,
- createCollection: () => new Nve()
- }, (r) => /*#__PURE__*/ b.createElement(Rve, {
+ createCollection: () => new Mve()
+ }, (r) => /*#__PURE__*/ b.createElement(Lve, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Lve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, b.useContext)(VA);
- return n ? /*#__PURE__*/ b.createElement(FA.div, {
+}), Ive = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, b.useContext)(HA);
+ return n ? /*#__PURE__*/ b.createElement(IA.div, {
...e,
ref: t
- }) : /*#__PURE__*/ b.createElement(FA.table, {
+ }) : /*#__PURE__*/ b.createElement(IA.table, {
...e,
ref: t
});
-}), KM = {
+}), qM = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -39488,26 +39488,26 @@ var Nve = class extends U_ {
rtl: "ArrowRight"
}
};
-function Rve({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = jA(e, t, IA);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, b.useContext)(Pve);
+function Lve({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = MA(e, t, LA);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, b.useContext)(Nve);
t = Sy((0, b.useMemo)(() => fy(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = hx(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, b.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = jve({
+ let d = Ave({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Mve(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, b.useContext)(VA), { dragAndDropHooks: _ } = e, { gridProps: v } = wle({
+ }), f = jve(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, b.useContext)(HA), { dragAndDropHooks: _ } = e, { gridProps: v } = wle({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, x = !!_?.useDraggableCollectionState, S = !!_?.useDroppableCollectionState;
(0, b.useRef)(x), (0, b.useRef)(S), (0, b.useEffect)(() => {}, [x, S]);
- let C, w, T, E = !1, D = null, O = (0, b.useRef)(null), { direction: k } = sb(), [A] = (0, b.useState)(() => new Eve());
+ let C, w, T, E = !1, D = null, O = (0, b.useRef)(null), { direction: k } = sb(), [A] = (0, b.useState)(() => new Tve());
if (x && _) {
C = _.useDraggableCollectionState({
collection: f.collection,
@@ -39542,12 +39542,12 @@ function Rve({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = w?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === KM.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === KM.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === qM.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === qM.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, w, t), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: j, isFocused: M, isFocusVisible: N } = Lx(), P = kA({
+ let { focusProps: j, isFocused: M, isFocusVisible: N } = Lx(), P = AA({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -39564,18 +39564,18 @@ function Rve({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
width: "min-content"
}));
let I = hb(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(OA, { values: [
- [WM, f],
- [GM, te],
- [Lj, {
+ return /*#__PURE__*/ b.createElement(kA, { values: [
+ [GM, f],
+ [KM, te],
+ [Rj, {
dragAndDropHooks: _,
dragState: C,
dropState: w
}],
- [Rj, { render: Yve }],
- [IA, null],
- [LA, null]
- ] }, /*#__PURE__*/ b.createElement(Rb, null, /*#__PURE__*/ b.createElement(Lve, {
+ [zj, { render: Jve }],
+ [LA, null],
+ [RA, null]
+ ] }, /*#__PURE__*/ b.createElement(Rb, null, /*#__PURE__*/ b.createElement(Ive, {
...gy(I, P, v, j, T?.collectionProps),
style: F,
ref: t,
@@ -39585,31 +39585,31 @@ function Rve({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": E || void 0,
"data-focused": M || void 0,
"data-focus-visible": N || void 0
- }, /*#__PURE__*/ b.createElement(Hj, null, /*#__PURE__*/ b.createElement(g, {
+ }, /*#__PURE__*/ b.createElement(Uj, null, /*#__PURE__*/ b.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: Bj(y, _, w)
+ persistedKeys: Vj(y, _, w)
})))), D);
}
-var zve = /*#__PURE__*/ (0, b.createContext)(null), qM = class extends z_ {
+var Rve = /*#__PURE__*/ (0, b.createContext)(null), JM = class extends z_ {
static {
this.type = "tableheader";
}
-}, Bve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, b.useContext)(VA);
- return n ? /*#__PURE__*/ b.createElement(FA.div, {
+}, zve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, b.useContext)(HA);
+ return n ? /*#__PURE__*/ b.createElement(IA.div, {
...e,
ref: t
- }) : /*#__PURE__*/ b.createElement(FA.thead, {
+ }) : /*#__PURE__*/ b.createElement(IA.thead, {
...e,
ref: t
});
-}), JM = /*#__PURE__*/ Iy(qM, (e, t) => {
- let n = (0, b.useContext)(WM).collection, r = q_({
+}), YM = /*#__PURE__*/ Iy(JM, (e, t) => {
+ let n = (0, b.useContext)(GM).collection, r = q_({
items: n.headerRows,
children: (0, b.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ b.createElement(Hve, { item: e });
+ case "headerrow": return /*#__PURE__*/ b.createElement(Vve, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
@@ -39617,13 +39617,13 @@ var zve = /*#__PURE__*/ (0, b.createContext)(null), qM = class extends z_ {
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = kA({
+ }), s = AA({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ b.createElement(Bve, {
+ return /*#__PURE__*/ b.createElement(zve, {
...gy(hb(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -39632,8 +39632,8 @@ var zve = /*#__PURE__*/ (0, b.createContext)(null), qM = class extends z_ {
}, (e) => /*#__PURE__*/ b.createElement(zy, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Vve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, b.useContext)(VA);
+}, e.children)), Bve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, b.useContext)(HA);
return n ? /*#__PURE__*/ b.createElement("div", {
...e,
ref: t
@@ -39642,41 +39642,41 @@ var zve = /*#__PURE__*/ (0, b.createContext)(null), qM = class extends z_ {
ref: t
});
});
-function Hve({ item: e }) {
- let t = (0, b.useRef)(null), n = (0, b.useContext)(WM), { isVirtualized: r, CollectionBranch: i } = (0, b.useContext)(VA), { rowProps: a } = Ole({
+function Vve({ item: e }) {
+ let t = (0, b.useRef)(null), n = (0, b.useContext)(GM), { isVirtualized: r, CollectionBranch: i } = (0, b.useContext)(HA), { rowProps: a } = Ole({
node: e,
isVirtualized: r
}, n, t), { checkboxProps: o } = Fle(n);
- return /*#__PURE__*/ b.createElement(Vve, {
+ return /*#__PURE__*/ b.createElement(Bve, {
...a,
ref: t
- }, /*#__PURE__*/ b.createElement(OA, { values: [[ZA, { slots: { selection: o } }], [QA, { slots: { selection: o } }]] }, /*#__PURE__*/ b.createElement(i, {
+ }, /*#__PURE__*/ b.createElement(kA, { values: [[QA, { slots: { selection: o } }], [$A, { slots: { selection: o } }]] }, /*#__PURE__*/ b.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Uve = class extends z_ {
+var Hve = class extends z_ {
static {
this.type = "column";
}
-}, Wve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, b.useContext)(VA);
- return n ? /*#__PURE__*/ b.createElement(FA.div, {
+}, Uve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, b.useContext)(HA);
+ return n ? /*#__PURE__*/ b.createElement(IA.div, {
...e,
ref: t
- }) : /*#__PURE__*/ b.createElement(FA.th, {
+ }) : /*#__PURE__*/ b.createElement(IA.th, {
...e,
ref: t
});
-}), YM = /*#__PURE__*/ Fy(Uve, (e, t, n) => {
- let r = Sy(t), i = (0, b.useContext)(WM), { isVirtualized: a } = (0, b.useContext)(VA), { columnHeaderProps: o, isPressed: s } = Dle({
+}), XM = /*#__PURE__*/ Fy(Hve, (e, t, n) => {
+ let r = Sy(t), i = (0, b.useContext)(GM), { isVirtualized: a } = (0, b.useContext)(HA), { columnHeaderProps: o, isPressed: s } = Dle({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Lx(), d = (0, b.useContext)(GM), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Lx(), d = (0, b.useContext)(KM), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = Bx({ isDisabled: !e.allowsSorting }), h = kA({
+ let { hoverProps: p, isHovered: m } = Bx({ isDisabled: !e.allowsSorting }), h = AA({
...e,
id: void 0,
children: n.rendered,
@@ -39703,7 +39703,7 @@ var Uve = class extends z_ {
width: d.getColumnWidth(n.key)
});
let _ = hb(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ b.createElement(Wve, {
+ return delete _.id, /*#__PURE__*/ b.createElement(Uve, {
...gy(_, o, u, p),
...h,
style: g,
@@ -39715,28 +39715,28 @@ var Uve = class extends z_ {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ b.createElement(OA, { values: [[Gve, {
+ }, /*#__PURE__*/ b.createElement(kA, { values: [[Wve, {
column: n,
triggerRef: r
- }], [VA, zA]] }, h.children));
-}), Gve = /*#__PURE__*/ (0, b.createContext)(null), XM = class extends B_ {
+ }], [HA, BA]] }, h.children));
+}), Wve = /*#__PURE__*/ (0, b.createContext)(null), ZM = class extends B_ {
static {
this.type = "tablebody";
}
-}, Kve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, b.useContext)(VA);
- return n ? /*#__PURE__*/ b.createElement(FA.div, {
+}, Gve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, b.useContext)(HA);
+ return n ? /*#__PURE__*/ b.createElement(IA.div, {
...e,
ref: t
- }) : /*#__PURE__*/ b.createElement(FA.tbody, {
+ }) : /*#__PURE__*/ b.createElement(IA.tbody, {
...e,
ref: t
});
-}), ZM = /*#__PURE__*/ Iy(XM, (e, t, n) => {
- let r = (0, b.useContext)(WM), { isVirtualized: i } = (0, b.useContext)(VA), a = r.collection, { CollectionBranch: o } = (0, b.useContext)(VA), { dragAndDropHooks: s, dropState: c } = (0, b.useContext)(Lj), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), QM = /*#__PURE__*/ Iy(ZM, (e, t, n) => {
+ let r = (0, b.useContext)(GM), { isVirtualized: i } = (0, b.useContext)(HA), a = r.collection, { CollectionBranch: o } = (0, b.useContext)(HA), { dragAndDropHooks: s, dropState: c } = (0, b.useContext)(Rj), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = kA({
+ }, p = AA({
...e,
id: void 0,
children: void 0,
@@ -39745,25 +39745,25 @@ var Uve = class extends z_ {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ b.createElement($M, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ b.createElement(eN, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ b.createElement(tN, {
+ }, /*#__PURE__*/ b.createElement(nN, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
let { rowGroupProps: g } = EC(), _ = hb(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(Kve, {
+ return /*#__PURE__*/ b.createElement(Gve, {
...gy(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ b.createElement(eye, null), /*#__PURE__*/ b.createElement(o, {
+ }, l && /*#__PURE__*/ b.createElement($ve, null), /*#__PURE__*/ b.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: zj(s, c)
+ renderDropIndicator: Bj(s, c)
}), m);
});
(class extends B_ {
@@ -39771,7 +39771,7 @@ var Uve = class extends z_ {
this.type = "tablefooter";
}
});
-var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qve = class extends z_ {
+var $M = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), Kve = class extends z_ {
static {
this.type = "item";
}
@@ -39783,17 +39783,17 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
}
return null;
}
-}, $M = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, b.useContext)(VA);
- return n ? /*#__PURE__*/ b.createElement(FA.div, {
+}, eN = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, b.useContext)(HA);
+ return n ? /*#__PURE__*/ b.createElement(IA.div, {
...e,
ref: t
- }) : /*#__PURE__*/ b.createElement(FA.tr, {
+ }) : /*#__PURE__*/ b.createElement(IA.tr, {
...e,
ref: t
});
-}), eN = /*#__PURE__*/ Iy(qve, (e, t, n) => {
- let r = Sy(t), i = (0, b.useContext)(WM), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(Lj), { isVirtualized: c, CollectionBranch: l } = (0, b.useContext)(VA), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = jle({
+}), tN = /*#__PURE__*/ Iy(Kve, (e, t, n) => {
+ let r = Sy(t), i = (0, b.useContext)(GM), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(Rj), { isVirtualized: c, CollectionBranch: l } = (0, b.useContext)(HA), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = jle({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -39817,7 +39817,7 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
(0, b.useEffect)(() => {
o && D.current;
}, []);
- let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = kA({
+ let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = AA({
...A,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -39839,10 +39839,10 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
level: n.level + 1
}
}), P = hb(e, { global: !0 });
- return delete P.id, delete P.onClick, /*#__PURE__*/ b.createElement(b.Fragment, null, w && !w.isHidden && /*#__PURE__*/ b.createElement($M, {
+ return delete P.id, delete P.onClick, /*#__PURE__*/ b.createElement(b.Fragment, null, w && !w.isHidden && /*#__PURE__*/ b.createElement(eN, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ b.createElement(tN, {
+ }, /*#__PURE__*/ b.createElement(nN, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -39851,7 +39851,7 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
...E,
...w.dropIndicatorProps,
ref: T
- }))), /*#__PURE__*/ b.createElement($M, {
+ }))), /*#__PURE__*/ b.createElement(eN, {
...gy(P, N, d, g, y, C?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -39867,17 +39867,17 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
"data-expanded": M || void 0,
"data-has-child-items": j || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ b.createElement(OA, { values: [
- [ZA, { slots: {
- [DA]: {},
+ }, /*#__PURE__*/ b.createElement(kA, { values: [
+ [QA, { slots: {
+ [OA]: {},
selection: S
} }],
- [QA, { slots: {
- [DA]: {},
+ [$A, { slots: {
+ [OA]: {},
selection: S
} }],
- [WA, { slots: {
- [DA]: {},
+ [GA, { slots: {
+ [OA]: {},
chevron: f,
drag: {
...C?.dragButtonProps,
@@ -39885,8 +39885,8 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
style: { pointerEvents: "none" }
}
} }],
- [Uj, { isSelected: p.isSelected }],
- [QM, { isFocusVisibleWithinRow: _ }]
+ [Wj, { isSelected: p.isSelected }],
+ [$M, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ b.createElement(l, {
collection: i.collection,
parent: n
@@ -39899,21 +39899,21 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
items: e.columns,
idScope: e.id
}, e.children);
-}), Jve = class extends z_ {
+}), qve = class extends z_ {
static {
this.type = "cell";
}
-}, tN = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, b.useContext)(VA);
- return n ? /*#__PURE__*/ b.createElement(FA.div, {
+}, nN = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, b.useContext)(HA);
+ return n ? /*#__PURE__*/ b.createElement(IA.div, {
...e,
ref: t
- }) : /*#__PURE__*/ b.createElement(FA.td, {
+ }) : /*#__PURE__*/ b.createElement(IA.td, {
...e,
ref: t
});
-}), nN = /*#__PURE__*/ Fy(Jve, (e, t, n) => {
- let r = Sy(t), i = (0, b.useContext)(WM), { dragState: a } = (0, b.useContext)(Lj), { isVirtualized: o } = (0, b.useContext)(VA);
+}), rN = /*#__PURE__*/ Fy(qve, (e, t, n) => {
+ let r = Sy(t), i = (0, b.useContext)(GM), { dragState: a } = (0, b.useContext)(Rj), { isVirtualized: o } = (0, b.useContext)(HA);
n.column = i.collection.columns[n.index];
let { gridCellProps: s, isPressed: c } = Tle({
node: n,
@@ -39921,7 +39921,7 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Lx(), { hoverProps: f, isHovered: p } = Bx({}), { isFocusVisibleWithinRow: m } = (0, b.useContext)(QM), 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), x = i.selectionManager.isDisabled(n.parentKey), S = kA({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Lx(), { hoverProps: f, isHovered: p } = Bx({}), { isFocusVisibleWithinRow: m } = (0, b.useContext)($M), 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), x = i.selectionManager.isDisabled(n.parentKey), S = AA({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -39941,7 +39941,7 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
isTreeColumn: n.column.key === i.treeColumn
}
}), C = hb(e, { global: !0 });
- return delete C.id, /*#__PURE__*/ b.createElement(tN, {
+ return delete C.id, /*#__PURE__*/ b.createElement(nN, {
...gy(C, S, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -39955,14 +39955,14 @@ var QM = /*#__PURE__*/ (0, b.createContext)({ isFocusVisibleWithinRow: !1 }), qv
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": x || void 0
- }, /*#__PURE__*/ b.createElement(VA.Provider, { value: zA }, S.children));
+ }, /*#__PURE__*/ b.createElement(HA.Provider, { value: BA }, S.children));
});
-function Yve(e, t) {
+function Jve(e, t) {
t = Sy(t);
- let { dragAndDropHooks: n, dropState: r } = (0, b.useContext)(Lj), i = (0, b.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, b.useContext)(Rj), i = (0, b.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ b.createElement($ve, {
+ return /*#__PURE__*/ b.createElement(Qve, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -39971,40 +39971,40 @@ function Yve(e, t) {
ref: t
});
}
-var Xve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, b.useContext)(VA);
- return n ? /*#__PURE__*/ b.createElement(FA.div, {
+var Yve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, b.useContext)(HA);
+ return n ? /*#__PURE__*/ b.createElement(IA.div, {
...e,
ref: t
- }) : /*#__PURE__*/ b.createElement(FA.tr, {
+ }) : /*#__PURE__*/ b.createElement(IA.tr, {
...e,
ref: t
});
-}), Zve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, b.useContext)(VA);
- return n ? /*#__PURE__*/ b.createElement(FA.div, {
+}), Xve = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, b.useContext)(HA);
+ return n ? /*#__PURE__*/ b.createElement(IA.div, {
...e,
ref: t
- }) : /*#__PURE__*/ b.createElement(FA.td, {
+ }) : /*#__PURE__*/ b.createElement(IA.td, {
...e,
ref: t
});
});
-function Qve(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, b.useContext)(WM), { visuallyHiddenProps: c } = vx(), l = kA({
+function Zve(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, b.useContext)(GM), { visuallyHiddenProps: c } = vx(), l = AA({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ b.createElement(Xve, {
+ return /*#__PURE__*/ b.createElement(Yve, {
...hb(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ b.createElement(Zve, {
+ }, /*#__PURE__*/ b.createElement(Xve, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -40015,14 +40015,14 @@ function Qve(e, t) {
ref: i
}), l.children));
}
-var $ve = /*#__PURE__*/ (0, b.forwardRef)(Qve);
-function eye() {
- let e = (0, b.useContext)(WM), { dragAndDropHooks: t, dropState: n } = (0, b.useContext)(Lj), r = (0, b.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = vx();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ b.createElement($M, {
+var Qve = /*#__PURE__*/ (0, b.forwardRef)(Zve);
+function $ve() {
+ let e = (0, b.useContext)(GM), { dragAndDropHooks: t, dropState: n } = (0, b.useContext)(Rj), r = (0, b.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = vx();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ b.createElement(eN, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ b.createElement(tN, {
+ }, /*#__PURE__*/ b.createElement(nN, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -40034,8 +40034,8 @@ function eye() {
})));
}
Fy(V_, function(e, t, n) {
- let r = (0, b.useContext)(WM), { isVirtualized: i } = (0, b.useContext)(VA), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, b.useRef)(null);
- nM((0, b.useMemo)(() => ({
+ let r = (0, b.useContext)(GM), { isVirtualized: i } = (0, b.useContext)(HA), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, b.useRef)(null);
+ rM((0, b.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -40045,7 +40045,7 @@ Fy(V_, function(e, t, n) {
s,
r?.collection
]), u);
- let d = kA({
+ let d = AA({
...c,
id: void 0,
children: n.rendered,
@@ -40053,10 +40053,10 @@ Fy(V_, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement($M, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(eN, {
style: { height: 0 },
- inert: Gj(!0)
- }, /*#__PURE__*/ b.createElement(tN, { style: {
+ inert: Kj(!0)
+ }, /*#__PURE__*/ b.createElement(nN, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ b.createElement("div", {
@@ -40067,14 +40067,14 @@ Fy(V_, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ b.createElement($M, {
+ }))), a && d.children && /*#__PURE__*/ b.createElement(eN, {
...gy(hb(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ b.createElement(tN, {
+ }, /*#__PURE__*/ b.createElement(nN, {
role: "rowheader",
...p,
style: m
@@ -40082,8 +40082,8 @@ Fy(V_, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function tye(e) {
- let [t, n] = hx(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, b.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = eM({
+function eye(e) {
+ let [t, n] = hx(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, b.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = tM({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -40106,24 +40106,24 @@ function tye(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function nye(e) {
- let t = tye({
+function tye(e) {
+ let t = eye({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? rN(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? iN(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, b.useRef)(i);
return (0, b.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = rN(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 = iN(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 rN(e, t) {
+function iN(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);
@@ -40133,20 +40133,20 @@ function rN(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var iN = /*#__PURE__*/ (0, b.createContext)(null), aN = /*#__PURE__*/ (0, b.createContext)(null), oN = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- [e, t] = jA(e, t, iN);
+var aN = /*#__PURE__*/ (0, b.createContext)(null), oN = /*#__PURE__*/ (0, b.createContext)(null), sN = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = MA(e, t, aN);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, b.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ b.createElement(My, { content: n }, (n) => /*#__PURE__*/ b.createElement(rye, {
+ }) : n, [n, r]), /*#__PURE__*/ b.createElement(My, { content: n }, (n) => /*#__PURE__*/ b.createElement(nye, {
props: e,
collection: n,
tabsRef: t
}));
});
-function rye({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = nye({
+function nye({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = tye({
...e,
collection: n,
children: void 0
@@ -40158,12 +40158,12 @@ function rye({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = kA({
+ ]), l = AA({
...e,
defaultClassName: "react-aria-Tabs",
values: c
}), u = hb(e, { global: !0 });
- return /*#__PURE__*/ b.createElement(FA.div, {
+ return /*#__PURE__*/ b.createElement(IA.div, {
...gy(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -40171,20 +40171,20 @@ function rye({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ b.createElement(OA, { values: [[iN, e], [aN, i]] }, l.children));
+ }, /*#__PURE__*/ b.createElement(kA, { values: [[aN, e], [oN, i]] }, l.children));
}
-var sN = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- return (0, b.useContext)(aN) ? /*#__PURE__*/ b.createElement(iye, {
+var cN = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ return (0, b.useContext)(oN) ? /*#__PURE__*/ b.createElement(rye, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ b.createElement(zy, e);
});
-function iye({ props: e, forwardedRef: t }) {
- let n = (0, b.useContext)(aN), { CollectionRoot: r } = (0, b.useContext)(VA), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = AA(iN), o = Sy(t), { tabListProps: s } = Rle({
+function rye({ props: e, forwardedRef: t }) {
+ let n = (0, b.useContext)(oN), { CollectionRoot: r } = (0, b.useContext)(HA), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = jA(aN), o = Sy(t), { tabListProps: s } = Rle({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = kA({
+ }, n, o), c = AA({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -40193,21 +40193,21 @@ function iye({ props: e, forwardedRef: t }) {
state: n
}
}), l = hb(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ b.createElement(FA.div, {
+ return delete l.id, /*#__PURE__*/ b.createElement(IA.div, {
...gy(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ b.createElement(Hj, null, /*#__PURE__*/ b.createElement(r, {
+ }, /*#__PURE__*/ b.createElement(Uj, null, /*#__PURE__*/ b.createElement(r, {
collection: n.collection,
- persistedKeys: HA(n.selectionManager.focusedKey)
+ persistedKeys: UA(n.selectionManager.focusedKey)
})));
}
-var cN = /*#__PURE__*/ Fy(class extends z_ {
+var lN = /*#__PURE__*/ Fy(class extends z_ {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, b.useContext)(aN), i = Sy(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Ile({
+ let r = (0, b.useContext)(oN), i = Sy(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Ile({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Lx(), { hoverProps: f, isHovered: p } = Bx({
@@ -40215,7 +40215,7 @@ var cN = /*#__PURE__*/ Fy(class extends z_ {
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = kA({
+ }), m = AA({
...e,
id: void 0,
children: n.rendered,
@@ -40228,7 +40228,7 @@ var cN = /*#__PURE__*/ Fy(class extends z_ {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? FA.a : FA.div, g = hb(e, { global: !0 });
+ }), h = n.props.href ? IA.a : IA.div, g = hb(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ b.createElement(h, {
...gy(g, m, a, l, f),
ref: i,
@@ -40238,26 +40238,26 @@ var cN = /*#__PURE__*/ Fy(class extends z_ {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ b.createElement(Uj.Provider, { value: { isSelected: o } }, m.children));
-}), lN = /*#__PURE__*/ Dy(function(e, t) {
- let n = (0, b.useContext)(aN), r = Sy(t), i = n.selectedKey === e.id, [a, o] = (0, b.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ b.createElement(Wj.Provider, { value: { isSelected: o } }, m.children));
+}), uN = /*#__PURE__*/ Dy(function(e, t) {
+ let n = (0, b.useContext)(oN), r = Sy(t), i = n.selectedKey === e.id, [a, o] = (0, b.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = cM(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ b.createElement(aye, {
+ let s = lM(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ b.createElement(iye, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function aye(e) {
- let t = (0, b.useContext)(aN), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = zle(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Lx(), d = t.selectedKey === e.id, f = sM(r) && !i, p = kA({
+function iye(e) {
+ let t = (0, b.useContext)(oN), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = zle(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Lx(), d = t.selectedKey === e.id, f = cM(r) && !i, p = AA({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: Gj(!d),
+ isInert: Kj(!d),
isEntering: f,
isExiting: a,
state: t
@@ -40265,31 +40265,31 @@ function aye(e) {
}), m = hb(o, { global: !0 });
delete m.id;
let h = d ? gy(m, s, c, p) : gy(m, p);
- return /*#__PURE__*/ b.createElement(FA.div, {
+ return /*#__PURE__*/ b.createElement(IA.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: Gj(!d || e.inert),
+ inert: Kj(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ b.createElement(OA, { values: [[iN, null], [aN, null]] }, /*#__PURE__*/ b.createElement(VA.Provider, { value: zA }, p.children)));
+ }, /*#__PURE__*/ b.createElement(kA, { values: [[aN, null], [oN, null]] }, /*#__PURE__*/ b.createElement(HA.Provider, { value: BA }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var oye = /*#__PURE__*/ (0, b.createContext)({}), sye = /*#__PURE__*/ (0, b.createContext)(null), cye = /*#__PURE__*/ Dy(function(e, t) {
- [e, t] = jA(e, t, sye);
- let { validationBehavior: n } = AA(XA) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useRef)(null);
- [e, i] = jA(e, i, LA);
- let [a, o] = MA(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, b.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = aoe({
- ...NA(e),
+var aye = /*#__PURE__*/ (0, b.createContext)({}), oye = /*#__PURE__*/ (0, b.createContext)(null), sye = /*#__PURE__*/ Dy(function(e, t) {
+ [e, t] = MA(e, t, oye);
+ let { validationBehavior: n } = jA(ZA) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useRef)(null);
+ [e, i] = MA(e, i, RA);
+ let [a, o] = NA(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, b.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = aoe({
+ ...PA(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, b.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = kA({
+ }, [i]), h = AA({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -40299,7 +40299,7 @@ var oye = /*#__PURE__*/ (0, b.createContext)({}), sye = /*#__PURE__*/ (0, b.crea
},
defaultClassName: "react-aria-TextField"
}), g = hb(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ b.createElement(FA.div, {
+ return delete g.id, /*#__PURE__*/ b.createElement(IA.div, {
...g,
...h,
ref: t,
@@ -40308,38 +40308,38 @@ var oye = /*#__PURE__*/ (0, b.createContext)({}), sye = /*#__PURE__*/ (0, b.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ b.createElement(OA, { values: [
- [UA, {
+ }, /*#__PURE__*/ b.createElement(kA, { values: [
+ [WA, {
...l,
ref: a
}],
- [tj, {
+ [nj, {
...u,
ref: m
}],
- [oye, {
+ [aye, {
...u,
ref: m
}],
- [ej, {
+ [tj, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [JA, { slots: {
+ [YA, { slots: {
description: d,
errorMessage: f
} }],
- [YA, p]
+ [XA, p]
] }, h.children));
});
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function lye({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, x.jsxs)(x_e, {
+function cye({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, x.jsxs)(b_e, {
"data-label": "true",
...a,
- className: xk("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: Sk("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, x.jsx)("span", {
@@ -40347,7 +40347,7 @@ function lye({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, x.jsx)(ohe, {
+ n && /* @__PURE__ */ (0, x.jsx)(ahe, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -40356,33 +40356,33 @@ function lye({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function uye({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, x.jsx)(T_e, {
+function lye({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, x.jsx)(w_e, {
slot: e ? "errorMessage" : "description",
...n,
- className: xk("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: Sk("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var uN = (0, b.createContext)({});
-function dN({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, x.jsx)(uN.Provider, {
+var dN = (0, b.createContext)({});
+function fN({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, x.jsx)(dN.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, x.jsx)(cye, {
+ children: /* @__PURE__ */ (0, x.jsx)(sye, {
...a,
"data-input-size": e,
- className: xk("group flex h-max w-full flex-col items-start gap-1", r),
+ className: Sk("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-dN.displayName = "TextField";
-var fN = Sk({
+fN.displayName = "TextField";
+var pN = Ck({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -40411,44 +40411,44 @@ var fN = Sk({
].join(" "),
icon: "size-5 shrink-0"
});
-function pN({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, b.useContext)(uN), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, x.jsx)(A_e, {
+function mN({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, b.useContext)(dN), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, x.jsx)(k_e, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => xk(fN.field, d ? fN.fieldWithAddonSize[u] : fN.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 }) => Sk(pN.field, d ? pN.fieldWithAddonSize[u] : pN.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, x.jsxs)("div", {
- className: fN.content,
+ className: pN.content,
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
- className: fN.leftSection,
+ className: pN.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, x.jsx)(t, {
- className: fN.icon,
+ className: pN.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, x.jsx)(M_e, {
+ }) : null, /* @__PURE__ */ (0, x.jsx)(j_e, {
ref: o,
...c,
- className: xk(fN.input, l.inputClassName, a)
+ className: Sk(pN.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, x.jsx)(n, {
- className: fN.icon,
+ className: pN.icon,
"aria-hidden": !0
}) : null]
})
});
}
-pN.displayName = "InputBase";
-function mN({ 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, x.jsx)(dN, {
+mN.displayName = "InputBase";
+function hN({ 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, x.jsx)(fN, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- e && /* @__PURE__ */ (0, x.jsx)(lye, {
+ e && /* @__PURE__ */ (0, x.jsx)(cye, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, x.jsx)(pN, {
+ /* @__PURE__ */ (0, x.jsx)(mN, {
ref: c,
groupRef: l,
placeholder: r,
@@ -40457,17 +40457,17 @@ function mN({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, x.jsx)(uye, {
+ t && /* @__PURE__ */ (0, x.jsx)(lye, {
isInvalid: d,
children: t
})
] })
});
}
-mN.displayName = "Input";
+hN.displayName = "Input";
//#endregion
//#region src/react/boardui/components/base/avatar/avatar.tsx
-var hN = Sk({
+var gN = Ck({
base: "inline-flex shrink-0 select-none items-center justify-center overflow-hidden rounded-full text-center align-middle transition-[width,height,font-size] duration-200 ease",
size: {
xs: "size-5 text-[10px] leading-[15px] font-semibold",
@@ -40482,10 +40482,10 @@ var hN = Sk({
pink: "bg-pink-200 text-pink-500"
}
});
-function dye({ size: e = "md", color: t = "neutral", src: n, alt: r, initials: i, className: a, ref: o, ...s }) {
+function uye({ size: e = "md", color: t = "neutral", src: n, alt: r, initials: i, className: a, ref: o, ...s }) {
return /* @__PURE__ */ (0, x.jsx)("span", {
ref: o,
- className: xk(hN.base, hN.size[e], hN.color[t], a),
+ className: Sk(gN.base, gN.size[e], gN.color[t], a),
...s,
children: n ? /* @__PURE__ */ (0, x.jsx)("img", {
src: n,
@@ -40498,25 +40498,25 @@ function dye({ size: e = "md", color: t = "neutral", src: n, alt: r, initials: i
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var fye = {
+var dye = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl"
};
-function gN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+function _N({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = Zv();
- return /* @__PURE__ */ (0, x.jsx)(OM, {
+ return /* @__PURE__ */ (0, x.jsx)(kM, {
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, x.jsx)(ove, {
+ children: /* @__PURE__ */ (0, x.jsx)(ave, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${fye[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, x.jsx)(wM, {
+ className: `flex max-h-full w-full ${dye[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, x.jsx)(TM, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -40524,7 +40524,7 @@ function gN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function _N({ children: e }) {
+function vN({ children: e }) {
return /* @__PURE__ */ (0, x.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",
@@ -40533,11 +40533,11 @@ function _N({ children: e }) {
}
//#endregion
//#region src/react/components/sprite-glyph.tsx
-var pye = { "text-aa": 1.435 }, vN = /* @__PURE__ */ new Map();
-function yN(e) {
- let t = vN.get(e);
+var fye = { "text-aa": 1.435 }, yN = /* @__PURE__ */ new Map();
+function bN(e) {
+ let t = yN.get(e);
if (t) return t;
- let n = pye[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, x.jsx)("svg", {
+ let n = fye[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -40551,57 +40551,57 @@ function yN(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, vN.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, yN.set(e, r), r;
}
//#endregion
//#region src/react/library-shortcuts/library-shortcuts.ts
-var bN = ["library-shortcuts"], xN = "/api/library-shortcuts";
-function SN(e = !0) {
+var xN = ["library-shortcuts"], SN = "/api/library-shortcuts";
+function CN(e = !0) {
return dt({
- queryKey: bN,
- queryFn: ({ signal: e }) => V(xN, e),
+ queryKey: xN,
+ queryFn: ({ signal: e }) => V(SN, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function CN() {
+function wN() {
return ft({
- mutationKey: bN,
- mutationFn: (e) => H(xN, e),
+ mutationKey: xN,
+ mutationFn: (e) => H(SN, e),
onSuccess: (e) => {
- U.setQueryData(bN, e);
+ U.setQueryData(xN, e);
}
});
}
-function wN(e, t) {
+function TN(e, t) {
return e.some((e) => t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name);
}
-function mye(e) {
+function pye(e) {
return It(e.kind, e.name, e.entity_id);
}
//#endregion
//#region src/react/library-shortcuts/shortcut-controls.tsx
-var TN = yN("star"), EN = {
+var EN = bN("star"), DN = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, DN = {
- all: yN("star"),
- performer: yN("user-round"),
- creator: yN("user-round"),
- studio: yN("clapperboard"),
- series: yN("film"),
- agency: yN("briefcase"),
- tag: yN("tags")
+}, ON = {
+ all: bN("star"),
+ performer: bN("user-round"),
+ creator: bN("user-round"),
+ studio: bN("clapperboard"),
+ series: bN("film"),
+ agency: bN("briefcase"),
+ tag: bN("tags")
};
-function ON({ item: e }) {
- return /* @__PURE__ */ (0, x.jsx)(hye, { item: e }, `${e.kind}:${e.entity_id}:${e.name}`);
+function kN({ item: e }) {
+ return /* @__PURE__ */ (0, x.jsx)(mye, { item: e }, `${e.kind}:${e.entity_id}:${e.name}`);
}
-function hye({ item: e }) {
- let t = SN(!1), n = (0, b.useRef)(t.data), r = CN(), i = t.data && t.data !== n.current ? wN(t.data.favorites || [], e) : e.favorite ?? (t.data ? wN(t.data.favorites || [], e) : !1);
+function mye({ item: e }) {
+ let t = CN(!1), n = (0, b.useRef)(t.data), r = wN(), i = t.data && t.data !== n.current ? TN(t.data.favorites || [], e) : e.favorite ?? (t.data ? TN(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, x.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
@@ -40622,7 +40622,7 @@ function hye({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: ao("") }
- }) : /* @__PURE__ */ (0, x.jsx)(TN, {})
+ }) : /* @__PURE__ */ (0, x.jsx)(EN, {})
}),
r.isError ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
@@ -40637,8 +40637,8 @@ function hye({ item: e }) {
]
});
}
-function kN({ currentHref: e, kind: t, glass: n = !1 }) {
- let [r, i] = (0, b.useState)(!1), a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = EA(a, o, "[data-shortcuts-trigger]", r);
+function AN({ currentHref: e, kind: t, glass: n = !1 }) {
+ let [r, i] = (0, b.useState)(!1), a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = DA(a, o, "[data-shortcuts-trigger]", r);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [n ? /* @__PURE__ */ (0, x.jsxs)("span", {
ref: o,
"data-shortcuts-entry": "",
@@ -40663,20 +40663,20 @@ function kN({ currentHref: e, kind: t, glass: n = !1 }) {
"data-shortcuts-trigger": "",
onClick: () => i(!0),
children: "我的收藏"
- }), /* @__PURE__ */ (0, x.jsx)(gN, {
+ }), /* @__PURE__ */ (0, x.jsx)(_N, {
isOpen: r,
onOpenChange: i,
width: "collections",
label: "我的收藏",
- children: r ? /* @__PURE__ */ (0, x.jsx)(gye, {
+ children: r ? /* @__PURE__ */ (0, x.jsx)(hye, {
currentHref: e,
kind: t,
close: () => i(!1)
}) : null
})] });
}
-function gye({ currentHref: e, kind: t, close: n }) {
- let r = SN(), i = CN(), [a, o] = (0, b.useState)(""), [s, c] = (0, b.useState)(t || "all"), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), p = (t) => {
+function hye({ currentHref: e, kind: t, close: n }) {
+ let r = CN(), i = wN(), [a, o] = (0, b.useState)(""), [s, c] = (0, b.useState)(t || "all"), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), p = (t) => {
t.preventDefault(), e && a.trim() && !i.isPending && i.mutate({
action: "save_filter",
name: a.trim(),
@@ -40704,8 +40704,8 @@ function gye({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, x.jsx)("aside", {
"data-shortcuts-categories": "",
"aria-label": "收藏类型",
- children: [["all", "全部"], ...Object.entries(EN)].map(([e, t]) => {
- let n = DN[e] || TN, r = (m?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ children: [["all", "全部"], ...Object.entries(DN)].map(([e, t]) => {
+ let n = ON[e] || EN, r = (m?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"aria-label": t,
@@ -40731,13 +40731,13 @@ function gye({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, x.jsxs)("nav", {
"aria-label": "收藏作品清单",
className: "flex flex-wrap gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(Ek, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
size: "small",
href: "/flagged",
onClick: n,
children: "已标记"
- }), /* @__PURE__ */ (0, x.jsx)(Ek, {
+ }), /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
size: "small",
href: "/watch-later",
@@ -40768,16 +40768,16 @@ function gye({ currentHref: e, kind: t, close: n }) {
className: "text-body-medium text-text-primary",
children: "实体收藏"
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: yN("search"),
+ leadingIcon: bN("search"),
value: l,
onChange: u
}),
- h.length ? null : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ h.length ? null : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: TN,
+ icon: EN,
title: l ? "没有匹配的收藏" : m.favorites.length ? "还没有此类收藏" : "还没有收藏",
children: l ? "试试其他名称。" : "在资料页或标签页收藏常用内容。"
}),
@@ -40787,18 +40787,18 @@ function gye({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, x.jsxs)("a", {
- href: mye(e),
+ href: pye(e),
"aria-label": e.name,
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, x.jsx)(_ye, { item: e }, e.image_url), /* @__PURE__ */ (0, x.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(gye, { item: e }, e.image_url), /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, x.jsx)("span", {
className: "truncate",
children: e.name
}), /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: EN[e.kind]
+ children: DN[e.kind]
})]
})]
}), /* @__PURE__ */ (0, x.jsx)(G, {
@@ -40821,9 +40821,9 @@ function gye({ currentHref: e, kind: t, close: n }) {
className: "text-body-medium text-text-primary",
children: "保存的筛选"
}),
- m.filters.length ? null : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ m.filters.length ? null : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: yN("list-filter"),
+ icon: bN("list-filter"),
title: "还没有保存的筛选",
children: "在馆藏页保存当前条件,随时打开。"
}),
@@ -40854,7 +40854,7 @@ function gye({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "筛选名称",
value: a,
onChange: o,
@@ -40879,13 +40879,13 @@ function gye({ currentHref: e, kind: t, close: n }) {
})]
});
}
-function _ye({ item: e }) {
- let [t, n] = (0, b.useState)(!1), r = DN[e.kind] || TN, i = t ? void 0 : e.image_url;
+function gye({ item: e }) {
+ let [t, n] = (0, b.useState)(!1), r = ON[e.kind] || EN, i = t ? void 0 : e.image_url;
return /* @__PURE__ */ (0, x.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
onErrorCapture: () => n(!0),
- children: [/* @__PURE__ */ (0, x.jsx)(dye, {
+ children: [/* @__PURE__ */ (0, x.jsx)(uye, {
size: "lg",
src: i,
alt: ""
@@ -40897,7 +40897,7 @@ function _ye({ item: e }) {
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var vye = {
+var _ye = {
selection: {
type: bd,
duration: .16,
@@ -40909,7 +40909,7 @@ var vye = {
bounce: 0
}
};
-function AN(e) {
+function jN(e) {
let [t, n] = (0, b.useState)(null);
return (0, b.useLayoutEffect)(() => {
if (!t) return;
@@ -40930,7 +40930,7 @@ function AN(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 = zre(n, { transform: [r, E] }, vye[e]);
+ l = zre(n, { transform: [r, E] }, _ye[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -40967,120 +40967,120 @@ function AN(e) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function jN(e) {
- let t = AN("selection");
- return /* @__PURE__ */ (0, x.jsx)(sN, {
+function MN(e) {
+ let t = jN("selection");
+ return /* @__PURE__ */ (0, x.jsx)(cN, {
...e,
ref: t
});
}
-function MN(e) {
- let t = AN("selection");
- return /* @__PURE__ */ (0, x.jsx)(jM, {
+function NN(e) {
+ let t = jN("selection");
+ return /* @__PURE__ */ (0, x.jsx)(MM, {
...e,
ref: t
});
}
-var NN = "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", PN = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 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", yye = "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", FN = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", IN = "relative 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)", LN = (e) => typeof e == "string" ? e : "", RN = (e) => e.aliases;
-function zN(e, t = "") {
+var PN = "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", FN = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 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", vye = "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", IN = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", LN = "relative 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)", RN = (e) => typeof e == "string" ? e : "", zN = (e) => e.aliases;
+function BN(e, t = "") {
let n = Wr(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function BN(e, t = "") {
+function VN(e, t = "") {
let n = z(ir(t || e)), r = Wr(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
-var VN = (e) => LN(e.title).trim() || "未命名内容", HN = (e, t) => rr(e, RN(t));
-function UN(e) {
+var HN = (e) => RN(e.title).trim() || "未命名内容", UN = (e, t) => rr(e, zN(t));
+function WN(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";
- let n = t[0], r = LN(n.entity_name);
+ let n = t[0], r = RN(n.entity_name);
return bt("creator", r, n.entity_id), r;
}
-function WN(e, t) {
+function GN(e, t) {
let { src: n, fallback: r } = ar(e), i = ir(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${z(i)}</span>`;
let a = r ? ` data-fallbacks="${z(r)}"` : "";
return `<img class="favatar" src="${z(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${z(i)}" data-drop-class="favatar none">`;
}
-function GN(e, t, n) {
- let r = RN(n), i = e.credit, a = i?.poster;
+function KN(e, t, n) {
+ let r = zN(n), i = e.credit, a = i?.poster;
if (!a) {
let n = rr(t, r);
return {
- author: n || LN(e.author) || LN(e.source_label) || "创作者未取得",
- avatar: WN(t, n),
+ author: n || RN(e.author) || RN(e.source_label) || "创作者未取得",
+ avatar: GN(t, n),
credited: "",
- entityName: UN(t)
+ entityName: WN(t)
};
}
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 && rr(c, r) || a;
return {
author: l,
- avatar: WN(c, l),
+ avatar: GN(c, l),
credited: i.credited || "",
- entityName: UN(c)
+ entityName: WN(c)
};
}
-function KN(e, t = e.primary) {
+function qN(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = LN(e.primary.version);
+ let i = RN(e.primary.version);
i && n.push(r("version", z(i)));
- let a = LN(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = RN(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function qN(e, t = e.primary) {
+function JN(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]) => zN(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => BN(e, t) || `<span>${z(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${z([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function JN(e, t) {
- let n = LN(e.media_error);
+function YN(e, t) {
+ let n = RN(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var bye = 864e5, xye = (e, t) => {
+var yye = 864e5, bye = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > bye;
+ return Number.isFinite(n) && n - t > yye;
};
-function YN(e, t) {
- let n = LN(e.published_at);
+function XN(e, t) {
+ let n = RN(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Tn(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: xye(n, t) ? " · 晚于现在" : ""
+ suffix: bye(n, t) ? " · 晚于现在" : ""
};
}
-function XN(e, t = Date.now()) {
- let n = YN(e, t);
+function ZN(e, t = Date.now()) {
+ let n = XN(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function Sye(e, t = Date.now()) {
- let n = YN(e, t);
+function xye(e, t = Date.now()) {
+ let n = XN(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);
return `${n.prefix}${r}${n.suffix}`;
}
-var ZN = /* @__PURE__ */ new Set(), QN = [], $N = null;
-function eP() {
- if ($N = null, !QN.length) return;
- let e = QN.splice(0, 200);
+var QN = /* @__PURE__ */ new Set(), $N = [], eP = null;
+function tP() {
+ if (eP = null, !$N.length) return;
+ let e = $N.splice(0, 200);
Dt("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), QN.length && ($N = setTimeout(eP, 800));
+ }).catch(() => {}), $N.length && (eP = setTimeout(tP, 800));
}
-function Cye(e, t, n, r) {
+function Sye(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- ZN.has(i) || (ZN.add(i), QN.push(t === null ? {
+ QN.has(i) || (QN.add(i), $N.push(t === null ? {
item: e,
width: n,
height: r
@@ -41089,26 +41089,26 @@ function Cye(e, t, n, r) {
width: n,
height: r,
media: t
- }), $N ||= setTimeout(eP, 800));
+ }), eP ||= setTimeout(tP, 800));
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var wye = (e) => e === "videos", tP = () => /* @__PURE__ */ (0, x.jsx)("span", {
+var Cye = (e) => e === "videos", nP = () => /* @__PURE__ */ (0, x.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function Tye(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = wye(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+function wye(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Cye(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, b.useRef)(null), h = (0, b.useRef)(null), g = (0, b.useRef)(null), _ = (0, b.useRef)(null), v = (0, b.useRef)(null), y = (0, b.useRef)(null), S = (0, b.useRef)(null), C = EA(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), w = EA(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), T = (0, b.useRef)(null), E = (0, b.useRef)(null), D = u?.mediaCounts ? u : null, O = EA(T, E, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!D}`);
+ })) : i, m = (0, b.useRef)(null), h = (0, b.useRef)(null), g = (0, b.useRef)(null), _ = (0, b.useRef)(null), v = (0, b.useRef)(null), y = (0, b.useRef)(null), S = (0, b.useRef)(null), C = DA(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), w = DA(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), T = (0, b.useRef)(null), E = (0, b.useRef)(null), D = u?.mediaCounts ? u : null, O = DA(T, E, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!D}`);
return (0, b.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(S.current);
- }, [c]), /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(nP, {
+ }, [c]), /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(rP, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, x.jsx)(xA, {
+ }), /* @__PURE__ */ (0, x.jsx)(SA, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -41137,19 +41137,19 @@ function Tye(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- n ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(kye, {
+ n ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Oye, {
keys: n,
view: t,
row: _,
glide: w,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, x.jsx)(tP, {}) : null] }) : null,
- D ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Dye, {
+ }), d ? /* @__PURE__ */ (0, x.jsx)(nP, {}) : null] }) : null,
+ D ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Eye, {
head: D,
row: E,
glide: O,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, x.jsx)(tP, {})] }) : null,
+ }), /* @__PURE__ */ (0, x.jsx)(nP, {})] }) : null,
/* @__PURE__ */ (0, x.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -41170,11 +41170,11 @@ function Tye(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, x.jsx)(tP, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, x.jsx)(nP, {}) : null]
}), /* @__PURE__ */ (0, x.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, x.jsxs)(SA, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, x.jsxs)(CA, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -41183,17 +41183,17 @@ function Tye(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, x.jsx)(Oye, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, x.jsx)(Dye, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, x.jsx)(Aye, { ...e })
+ bottom: /* @__PURE__ */ (0, x.jsx)(kye, { ...e })
})] });
}
-var Eye = [[
+var Tye = [[
"videos",
"视频",
"play",
@@ -41204,7 +41204,7 @@ var Eye = [[
"pics",
"image"
]];
-function Dye({ head: e, row: t, glide: n, onMedia: r }) {
+function Eye({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
ref: t,
role: "group",
@@ -41212,7 +41212,7 @@ function Dye({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: Eye.map(([t, i, a, o]) => {
+ children: Tye.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -41230,7 +41230,7 @@ function Dye({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Oye({ head: e, actions: t }) {
+function Dye({ head: e, actions: t }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -41240,10 +41240,10 @@ function Oye({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: zN(n) }
+ dangerouslySetInnerHTML: { __html: BN(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, x.jsx)(tP, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, x.jsxs)(SA, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, x.jsx)(nP, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, x.jsxs)(CA, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -41256,7 +41256,7 @@ function Oye({ head: e, actions: t }) {
}, e.k))
] });
}
-function kye({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Oye({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -41304,7 +41304,7 @@ function kye({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function nP({ items: e, hidden: t, actions: n }) {
+function rP({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -41324,7 +41324,7 @@ function nP({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Aye(e) {
+function kye(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, x.jsxs)("button", {
@@ -41336,26 +41336,26 @@ function Aye(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, x.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, x.jsx)(jye, {
+ /* @__PURE__ */ (0, x.jsx)(Aye, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, x.jsx)(Mye, {
+ t === "videos" && i ? /* @__PURE__ */ (0, x.jsx)(jye, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, x.jsx)(Pye, {
+ t === "photos" && a ? /* @__PURE__ */ (0, x.jsx)(Nye, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, x.jsx)(Nye, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, x.jsx)(Mye, {
head: e.online,
actions: o
}) : null
] });
}
-function jye({ text: e, busy: t }) {
+function Aye({ text: e, busy: t }) {
return /* @__PURE__ */ (0, x.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, x.jsx)("span", {
@@ -41365,22 +41365,22 @@ function jye({ text: e, busy: t }) {
}) : e
});
}
-function rP({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, x.jsx)(jM, {
+function iP({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, x.jsx)(MM, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: FN,
+ className: IN,
children: r.map(([e, t, n]) => {
- let r = yN(n);
- return /* @__PURE__ */ (0, x.jsx)(MM, {
+ let r = bN(n);
+ return /* @__PURE__ */ (0, x.jsx)(NM, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: IN,
+ className: LN,
children: /* @__PURE__ */ (0, x.jsx)("span", {
title: t,
className: "contents",
@@ -41390,7 +41390,7 @@ function rP({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function iP({ onPress: e, busy: t = !1 }) {
+function aP({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -41404,27 +41404,27 @@ function iP({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? ao("正在换一批") : R("shuffle") }
});
}
-function Mye({ head: e, actions: t }) {
+function jye({ head: e, actions: t }) {
return /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(iP, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, x.jsx)(rP, {
+ /* @__PURE__ */ (0, x.jsx)(aP, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, x.jsx)(iP, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, x.jsx)(aP, {
+ /* @__PURE__ */ (0, x.jsx)(oP, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function aP({ sorts: e, onSort: t }) {
+function oP({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, x.jsx)(x.Fragment, { children: e.map((e) => {
- let n = yN(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = bN(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -41436,12 +41436,12 @@ function aP({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function Nye({ head: e, actions: t }) {
+function Mye({ head: e, actions: t }) {
return /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(iP, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(rP, {
+ /* @__PURE__ */ (0, x.jsx)(aP, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(iP, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -41461,27 +41461,27 @@ function Nye({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, x.jsx)(aP, {
+ /* @__PURE__ */ (0, x.jsx)(oP, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function Pye({ head: e, actions: t, helpers: n }) {
+function Nye({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, b.useState)(!1), a = (0, b.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, b.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, x.jsx)(iP, {
+ e.shuffle ? /* @__PURE__ */ (0, x.jsx)(aP, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, x.jsx)(rP, {
+ /* @__PURE__ */ (0, x.jsx)(iP, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -41497,34 +41497,34 @@ function Pye({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var oP = "";
-function Fye(e) {
- let t = !e.tiers, n = Hye(e.comboHost);
+var sP = "";
+function Pye(e) {
+ let t = !e.tiers, n = Vye(e.comboHost);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(nP, {
+ n ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(rP, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, x.jsx)(Rye, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, x.jsx)(Iye, { ...e })
+ /* @__PURE__ */ (0, x.jsx)(Lye, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, x.jsx)(Fye, { ...e })
]
});
}
-function Iye(e) {
- let { actions: t, helpers: n } = e, r = (0, b.useRef)(null), i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = EA(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function Fye(e) {
+ let { actions: t, helpers: n } = e, r = (0, b.useRef)(null), i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = DA(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, b.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = cP(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = lP(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, b.useLayoutEffect)(() => {
_o(o.current, "tagbar");
- }, [u]), /* @__PURE__ */ (0, x.jsx)(xA, {
+ }, [u]), /* @__PURE__ */ (0, x.jsx)(SA, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -41567,17 +41567,17 @@ function Iye(e) {
}), /* @__PURE__ */ (0, x.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, x.jsx)(sP, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, x.jsx)(Lye, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, x.jsx)(cP, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, x.jsx)(Iye, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, x.jsx)(Bye, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, x.jsx)(zye, { ...e })
});
}
-function Lye({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, x.jsxs)(SA, {
+function Iye({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, x.jsxs)(CA, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -41588,12 +41588,12 @@ function Lye({ tag: e, onPress: t }) {
})]
});
}
-function Rye(e) {
+function Lye(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useCallback)((e) => () => t.moreTops(e), [t]), c = cP(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = cP(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ }, i = e.empty || !e.tiers, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useCallback)((e) => () => t.moreTops(e), [t]), c = lP(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = lP(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
return (0, b.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -41606,7 +41606,7 @@ function Rye(e) {
children: [u ? /* @__PURE__ */ (0, x.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, x.jsx)(sP, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, x.jsx)(cP, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -41623,18 +41623,18 @@ function Rye(e) {
}) : null, d ? /* @__PURE__ */ (0, x.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, x.jsx)(sP, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, x.jsx)(cP, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, x.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, x.jsx)(zye, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, x.jsx)(Rye, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function zye({ studio: e }) {
+function Rye({ studio: e }) {
let [t, n] = (0, b.useState)(!1);
return /* @__PURE__ */ (0, x.jsx)("span", {
"data-tier-mark": "",
@@ -41648,7 +41648,7 @@ function zye({ studio: e }) {
}) : e.fallback
});
}
-function sP({ kind: e }) {
+function cP({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -41664,38 +41664,38 @@ function sP({ kind: e }) {
children: [/* @__PURE__ */ (0, x.jsx)("span", {}), /* @__PURE__ */ (0, x.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function Bye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function zye({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, b.useState)(!1);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, x.jsx)(Vye, { count: e }), /* @__PURE__ */ (0, x.jsx)(kN, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Bye, { count: e }), /* @__PURE__ */ (0, x.jsx)(AN, {
currentHref: i.currentHref,
glass: !0
})]
}), /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(iP, {
+ /* @__PURE__ */ (0, x.jsx)(aP, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, x.jsx)(rP, {
+ n ? /* @__PURE__ */ (0, x.jsx)(iP, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, x.jsx)(aP, {
+ /* @__PURE__ */ (0, x.jsx)(oP, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function Vye({ count: e }) {
+function Bye({ count: e }) {
let t = (0, b.useRef)(null), n = (0, b.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : "";
return (0, b.useLayoutEffect)(() => {
if (e === !1) return;
@@ -41704,7 +41704,7 @@ function Vye({ count: e }) {
return;
}
let i = t.current;
- i && (oP && i.dataset.popCount === void 0 && (i.dataset.popCount = oP), oP = r, mo(i, r));
+ i && (sP && i.dataset.popCount === void 0 && (i.dataset.popCount = sP), sP = r, mo(i, r));
}, [e, r]), e === !1 ? /* @__PURE__ */ (0, x.jsx)("span", { "data-catalog-readout": "" }, "failed") : e ? /* @__PURE__ */ (0, x.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -41720,7 +41720,7 @@ function Vye({ count: e }) {
})
}, "skeleton");
}
-function Hye(e) {
+function Vye(e) {
let [t, n] = (0, b.useState)(null);
return (0, b.useLayoutEffect)(() => {
if (!e) return;
@@ -41730,7 +41730,7 @@ function Hye(e) {
};
}, [e]), t;
}
-function cP(e, t, n, r, i) {
+function lP(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -41770,7 +41770,7 @@ function cP(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function lP(e, t) {
+function uP(e, t) {
let [n, r] = (0, b.useState)(e ? "skeleton" : "none"), [i] = (0, b.useState)(() => e ? t() : ""), a = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
a.current && ko(a.current);
@@ -41796,7 +41796,7 @@ function lP(e, t) {
fading: n === "fade"
};
}
-function uP({ message: e, onRetry: t }) {
+function dP({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -41810,7 +41810,7 @@ function uP({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/components/art-slot.tsx
-function dP({ artwork: e, identity: t = e.html, relayout: n }) {
+function fP({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, b.useState)({
identity: t,
artwork: e
@@ -41830,7 +41830,7 @@ function dP({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/row-click.ts
-var Uye = [
+var Hye = [
"a",
"button",
"input",
@@ -41843,46 +41843,46 @@ var Uye = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function fP(e, t) {
+function pP(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Uye);
+ let r = n.closest(Hye);
return !r || !t.contains(r) || r === t;
}
-function pP(e) {
+function mP(e) {
e.shiftKey && e.preventDefault();
}
//#endregion
//#region src/react/components/media-card.tsx
-var Wye = 9 / 16, mP = "未命名视频";
-function hP({ name: e }) {
+var Uye = 9 / 16, hP = "未命名视频";
+function gP({ name: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
}
-var Gye = {
+var Wye = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, Kye = {
+}, Gye = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function gP({ item: e }) {
+function _P({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && Kye[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && Gye[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function _P({ item: e, actions: t }) {
+function vP({ item: e, actions: t }) {
let [n, r] = (0, b.useState)(!1), [i, a] = (0, b.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -41901,10 +41901,10 @@ function _P({ item: e, actions: t }) {
children: i
}) : null] });
}
-function vP(e, t, n) {
- return t === "short" ? Wye : Ew(n);
+function yP(e, t, n) {
+ return t === "short" ? Uye : Ew(n);
}
-function qye(e) {
+function Kye(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = xa(e), s = i[0] || "", c = sa(e);
return {
avatar: r ? /* @__PURE__ */ (0, x.jsx)("div", {
@@ -41933,7 +41933,7 @@ function qye(e) {
"data-media-who": "",
"data-entity-kind": "performer",
"data-entity-name": s,
- children: [/* @__PURE__ */ (0, x.jsx)(hP, { name: "user-round" }), /* @__PURE__ */ (0, x.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, x.jsx)(gP, { name: "user-round" }), /* @__PURE__ */ (0, x.jsx)("span", { children: s })]
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -41942,16 +41942,16 @@ function qye(e) {
"data-media-who": "",
"data-entity-kind": t,
"data-entity-name": n,
- children: [/* @__PURE__ */ (0, x.jsx)(hP, { name: "user-round" }), /* @__PURE__ */ (0, x.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, x.jsx)(gP, { name: "user-round" }), /* @__PURE__ */ (0, x.jsx)("span", { children: n })]
}) : /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: [/* @__PURE__ */ (0, x.jsx)(hP, { name: "user-round" }), /* @__PURE__ */ (0, x.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, x.jsx)(gP, { name: "user-round" }), /* @__PURE__ */ (0, x.jsx)("span", { children: n })]
})
};
}
-function Jye() {
+function qye() {
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -41970,7 +41970,7 @@ function Jye() {
})]
});
}
-function Yye({ item: e, actions: t }) {
+function Jye({ item: e, actions: t }) {
let [n, r] = (0, b.useState)(null), [i, a] = (0, b.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-media-later": "",
@@ -41988,21 +41988,21 @@ function Yye({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, x.jsx)(hP, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, x.jsx)(gP, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function yP(e, t) {
+function bP(e, t) {
let n = e?.querySelector("video.hv");
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function Xye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
+function Yye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
let l = (0, b.useRef)(null), u = (0, b.useRef)(e);
u.current = e;
let d = (0, b.useCallback)((e) => {
let t = u.current;
l.current && l.current !== e && $s(l.current), l.current = e, e && (!t.medium || t.medium === "video") && tc(e, t);
- }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = _a(e, h, !1, n.javImage), _ = h === "small" ? g.html : _a(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v).trim() || mP, S = o.titleHtml(e, v).trim() || z(mP), C = f?.total_size ?? e.size, w = f?.total_duration ?? e.duration, T = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: E, who: D } = qye(e), O = (e.follow_tags || e.tags || []).slice(0, 3), k = [
+ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = _a(e, h, !1, n.javImage), _ = h === "small" ? g.html : _a(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v).trim() || hP, S = o.titleHtml(e, v).trim() || z(hP), C = f?.total_size ?? e.size, w = f?.total_duration ?? e.duration, T = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: E, who: D } = Kye(e), O = (e.follow_tags || e.tags || []).slice(0, 3), k = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.watch_later && "later"
@@ -42031,9 +42031,9 @@ function Xye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
u && r.contains(u) ? s.toggleTag(u.dataset.tag || "") : c(e, r);
}, j = /* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(vP(e, t, n)) },
+ style: { "--card-ratio": String(yP(e, t, n)) },
children: [
- g.html ? /* @__PURE__ */ (0, x.jsx)(dP, {
+ g.html ? /* @__PURE__ */ (0, x.jsx)(fP, {
artwork: g,
identity: _,
relayout: (e) => Gs(e, h)
@@ -42047,11 +42047,11 @@ function Xye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, x.jsx)(hP, { name: "check" })
+ children: /* @__PURE__ */ (0, x.jsx)(gP, { name: "check" })
}),
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, x.jsx)(hP, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, x.jsx)(gP, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("b", { children: "回收站" })]
}),
f && !p ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-group": "",
@@ -42066,7 +42066,7 @@ function Xye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-duration": "",
children: Xt(w)
}),
- e.disposal === "trash" ? /* @__PURE__ */ (0, x.jsx)(_P, {
+ e.disposal === "trash" ? /* @__PURE__ */ (0, x.jsx)(vP, {
item: e,
actions: s
}) : null,
@@ -42082,8 +42082,8 @@ function Xye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, x.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, x.jsx)(Jye, {}),
- /* @__PURE__ */ (0, x.jsx)(Yye, {
+ /* @__PURE__ */ (0, x.jsx)(qye, {}),
+ /* @__PURE__ */ (0, x.jsx)(Jye, {
item: e,
actions: s
}),
@@ -42093,27 +42093,27 @@ function Xye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), yP(l.current, -a);
+ e.stopPropagation(), bP(l.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, x.jsx)(hP, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, x.jsx)(gP, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), yP(l.current, a);
+ e.stopPropagation(), bP(l.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, x.jsx)(hP, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, x.jsx)(gP, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, x.jsx)(hP, { name: "expand" })
+ children: /* @__PURE__ */ (0, x.jsx)(gP, { name: "expand" })
})
]
})
@@ -42130,7 +42130,7 @@ function Xye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: A,
- onMouseDown: pP,
+ onMouseDown: mP,
children: [
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -42168,11 +42168,11 @@ function Xye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
e.is_jav && e.release_date ? /* @__PURE__ */ (0, x.jsxs)("time", {
"data-media-release": "",
dateTime: e.release_date,
- children: [/* @__PURE__ */ (0, x.jsx)(hP, { name: "calendar" }), e.release_date]
+ children: [/* @__PURE__ */ (0, x.jsx)(gP, { name: "calendar" }), e.release_date]
}) : null,
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, x.jsx)(hP, { name: "hard-drive" }), Number(C) > 0 ? Qt(Number(C)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, x.jsx)(gP, { name: "hard-drive" }), Number(C) > 0 ? Qt(Number(C)) : "大小未知"]
}),
e.play_count ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-watch-count": "",
@@ -42194,15 +42194,15 @@ function Xye({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
children: o.tagLabel(t)
}, t))
}) : null,
- /* @__PURE__ */ (0, x.jsx)(gP, { item: e })
+ /* @__PURE__ */ (0, x.jsx)(_P, { item: e })
]
})]
})
]
});
}
-function Zye({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, b.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : Gye[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function Xye({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, b.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : Wye[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, x.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -42214,14 +42214,14 @@ function Zye({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: pP,
+ onMouseDown: mP,
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, x.jsx)(hP, { name: u }), /* @__PURE__ */ (0, x.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, x.jsx)(gP, { name: u }), /* @__PURE__ */ (0, x.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-media-art": "thumb",
@@ -42233,13 +42233,13 @@ function Zye({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, x.jsx)(hP, { name: "check" })
+ children: /* @__PURE__ */ (0, x.jsx)(gP, { name: "check" })
}),
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, x.jsx)(hP, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, x.jsx)(gP, { name: "trash" }), /* @__PURE__ */ (0, x.jsx)("b", { children: "回收站" })]
}),
- /* @__PURE__ */ (0, x.jsx)(_P, {
+ /* @__PURE__ */ (0, x.jsx)(vP, {
item: e,
actions: i
})
@@ -42250,7 +42250,7 @@ function Zye({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, x.jsx)(hP, { name: u })
+ children: /* @__PURE__ */ (0, x.jsx)(gP, { name: u })
}), /* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-text": "",
children: [
@@ -42278,29 +42278,29 @@ function Zye({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, x.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, x.jsx)(gP, { item: e })
+ /* @__PURE__ */ (0, x.jsx)(_P, { item: e })
]
})]
})]
});
}
-function Qye(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, x.jsx)(Zye, { ...e }) : /* @__PURE__ */ (0, x.jsx)(Xye, { ...e });
+function Zye(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, x.jsx)(Xye, { ...e }) : /* @__PURE__ */ (0, x.jsx)(Yye, { ...e });
}
-var bP = (0, b.memo)(Qye), $ye = 1100, ebe = 340, tbe = 5e3;
-function nbe(e, t, n) {
+var xP = (0, b.memo)(Zye), Qye = 1100, $ye = 340, ebe = 5e3;
+function tbe(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, tbe);
+ }, s = () => o(!1), c = setTimeout(s, ebe);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
});
}
-function xP({ load: e, canFlip: t, referrerPolicy: n }) {
+function SP({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, b.useState)([]), [a, o] = (0, b.useState)(0), [s, c] = (0, b.useState)(null), l = (0, b.useRef)({
live: !1,
generation: 0,
@@ -42342,11 +42342,11 @@ function xP({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => nbe(t, e, n)));
+ let s = await Promise.all(a.map((t) => tbe(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, $ye);
+ p(), e.cycle = setInterval(p, Qye);
}));
};
return (0, b.useEffect)(() => d, [d]), {
@@ -42355,7 +42355,7 @@ function xP({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(ebe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f($ye, () => {
e.armed = null, m();
});
},
@@ -42366,8 +42366,8 @@ function xP({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var SP = yN("play");
-function rbe({ src: e }) {
+var CP = bN("play");
+function nbe({ src: e }) {
let [t, n] = (0, b.useState)(!1);
return t ? null : /* @__PURE__ */ (0, x.jsx)("img", {
"data-mix-poster": "",
@@ -42380,8 +42380,8 @@ function rbe({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var CP = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function ibe({ faces: e, fallback: t, onOpenEntity: n }) {
+var wP = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function rbe({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, x.jsx)("button", {
@@ -42389,18 +42389,18 @@ function ibe({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${CP} cursor-pointer outline-none`,
+ className: `${wP} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: la(e.name, e, qi(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, x.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${CP} mt-0.5`,
+ className: `${wP} mt-0.5`,
children: t
});
}
-function wP({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let S = xP({
+function TP({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let S = SP({
load: i,
canFlip: a
}), C = (0, b.useRef)(S.onPointerLeave);
@@ -42427,11 +42427,11 @@ function wP({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, x.jsx)(dP, {
+ f?.html ? /* @__PURE__ */ (0, x.jsx)(fP, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, x.jsx)(rbe, { src: r }, r) : /* @__PURE__ */ (0, x.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, x.jsx)(nbe, { src: r }, r) : /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -42461,7 +42461,7 @@ function wP({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, x.jsx)(SP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(CP, {
"aria-hidden": !0,
className: "size-3.75"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -42474,8 +42474,8 @@ function wP({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, x.jsx)(SP, {})
- }) : /* @__PURE__ */ (0, x.jsx)(ibe, {
+ children: /* @__PURE__ */ (0, x.jsx)(CP, {})
+ }) : /* @__PURE__ */ (0, x.jsx)(rbe, {
faces: o,
fallback: nn(e),
onOpenEntity: s
@@ -42499,7 +42499,7 @@ function wP({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/video-wall/folia/blockReflows.ts
-var abe = [
+var ibe = [
[
[
{
@@ -46060,7 +46060,7 @@ var abe = [
}
]
]
-], TP = [
+], EP = [
[
{
x: 0,
@@ -46357,89 +46357,89 @@ var abe = [
rows: 2
}
]
-], EP = (e) => e.map((e) => ({
+], DP = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), DP = (e) => e.map((e) => ({
+})), OP = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), OP = [
+})), kP = [
(e) => e,
- EP,
DP,
- (e) => EP(DP(e))
-], kP = TP.flatMap((e) => OP.map((t) => t(e))), obe = abe.flatMap((e) => OP.map((t) => e.map(t)));
-kP.length;
-var sbe = (e, t) => {
+ OP,
+ (e) => DP(OP(e))
+], AP = EP.flatMap((e) => kP.map((t) => t(e))), abe = ibe.flatMap((e) => kP.map((t) => e.map(t)));
+AP.length;
+var obe = (e, t) => {
let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);
return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;
-}, AP = (e, t) => {
- let n = TP.length;
- return ((e + t * 2) % n + n) % n * OP.length + sbe(e, t) % OP.length;
-}, cbe = (e, t) => kP[AP(e, t)], lbe = (e, t, n) => n < 0 || n >= 12 ? null : obe[AP(e, t)][n], jP = 103.36, MP = 6.08, NP = 12 * jP, PP = 8 * jP, FP = 12, IP = (e, t) => (e % t + t) % t, ube = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
-function LP(e, t) {
- let n = Math.max(1, Math.ceil(e / FP)), r = t ? 3 : Math.min(3, n);
+}, jP = (e, t) => {
+ let n = EP.length;
+ return ((e + t * 2) % n + n) % n * kP.length + obe(e, t) % kP.length;
+}, sbe = (e, t) => AP[jP(e, t)], cbe = (e, t, n) => n < 0 || n >= 12 ? null : abe[jP(e, t)][n], MP = 103.36, NP = 6.08, PP = 12 * MP, FP = 8 * MP, IP = 12, LP = (e, t) => (e % t + t) % t, lbe = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
+function RP(e, t) {
+ let n = Math.max(1, Math.ceil(e / IP)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * NP,
- height: Math.ceil(n / r) * PP
+ width: r * PP,
+ height: Math.ceil(n / r) * FP
};
}
-function RP(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = cbe(e, t)[n];
+function zP(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = sbe(e, t)[n];
return {
- x: e * NP + r * jP,
- y: t * PP + i * jP,
- width: a * jP - MP,
- height: o * jP - MP
+ x: e * PP + r * MP,
+ y: t * FP + i * MP,
+ width: a * MP - NP,
+ height: o * MP - NP
};
}
-function dbe(e) {
+function ube(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function zP(e, t, n) {
+function BP(e, t, n) {
if (!e) return null;
let [r, i, a] = n.split(":").map(Number);
if (![
r,
i,
a
- ].every(Number.isInteger) || a < 0 || a >= FP) return null;
- let o = LP(e, t), s = o.height / PP;
+ ].every(Number.isInteger) || a < 0 || a >= IP) return null;
+ let o = RP(e, t), s = o.height / FP;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : IP(r, o.columns), l = ((t ? i : IP(i, s)) * o.columns + c) * FP + a;
+ let c = t ? r : LP(r, o.columns), l = ((t ? i : LP(i, s)) * o.columns + c) * IP + a;
return t && l >= e ? null : {
- ...RP(r, i, a),
+ ...zP(r, i, a),
index: l % e,
key: n
};
}
-function fbe(e, t) {
+function dbe(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / FP);
- return zP(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % FP}`);
+ let n = Math.floor(t / IP);
+ return BP(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % IP}`);
}
-function BP(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = lbe(r, i, a);
+function VP(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = cbe(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * NP + e.x * jP,
- y: i * PP + e.y * jP,
- width: e.cols * jP - MP,
- height: e.rows * jP - MP
+ x: r * PP + e.x * MP,
+ y: i * FP + e.y * MP,
+ width: e.cols * MP - NP,
+ height: e.rows * MP - NP
}]));
}
-function pbe(e) {
+function fbe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / FP), i = RP(e % 3, Math.floor(e / 3), r % FP);
+ let e = Math.floor(r / IP), i = zP(e % 3, Math.floor(e / 3), r % IP);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * NP - MP : t,
+ width: e >= 36 ? 3 * PP - NP : t,
height: n
};
}
-function mbe(e, t, n, r) {
+function pbe(e, t, n, r) {
if (!r) return e;
let i = (t, n, r) => Math.min(16, Math.max(Math.min(16, r - n * e.scale - 16), t));
return {
@@ -46448,22 +46448,22 @@ function mbe(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function hbe(e, t, n, r) {
+function mbe(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
y: -n.y / n.scale - i,
width: r.width / n.scale + i * 2,
height: r.height / n.scale + i * 2
- }, o = LP(e, t), s = o.height / PP, c = [];
- for (let n = Math.floor(a.y / PP); n <= Math.floor((a.y + a.height) / PP); n += 1) for (let r = Math.floor(a.x / NP); r <= Math.floor((a.x + a.width) / NP); r += 1) {
+ }, o = RP(e, t), s = o.height / FP, c = [];
+ for (let n = Math.floor(a.y / FP); n <= Math.floor((a.y + a.height) / FP); n += 1) for (let r = Math.floor(a.x / PP); r <= Math.floor((a.x + a.width) / PP); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : IP(r, o.columns), l = t ? n : IP(n, s);
- for (let s = 0; s < FP; s += 1) {
- let u = (l * o.columns + i) * FP + s;
+ let i = t ? r : LP(r, o.columns), l = t ? n : LP(n, s);
+ for (let s = 0; s < IP; s += 1) {
+ let u = (l * o.columns + i) * IP + s;
if (t && u >= e) continue;
- let d = RP(r, n, s);
- ube(d, a) && c.push({
+ let d = zP(r, n, s);
+ lbe(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -46472,7 +46472,7 @@ function hbe(e, t, n, r) {
}
return c;
}
-var gbe = class {
+var hbe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -46484,7 +46484,7 @@ var gbe = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : zP(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : BP(t, !1, e);
return r ? {
...r,
index: n
@@ -46514,7 +46514,7 @@ var gbe = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * NP,
+ x: (e + 2) * PP,
y: 0
};
}
@@ -46527,11 +46527,11 @@ var gbe = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / NP)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / PP)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
};
-function _be(e = {}) {
+function gbe(e = {}) {
return [
"q",
"performer",
@@ -46550,12 +46550,12 @@ function _be(e = {}) {
}
//#endregion
//#region src/react/video-wall/use-wall-camera.ts
-var VP = {
+var HP = {
x: 16,
y: 16,
scale: 1
};
-function vbe(e, t, n = VP, r = !1) {
+function _be(e, t, n = HP, r = !1) {
let i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)({
width: 0,
height: 0
@@ -46575,7 +46575,7 @@ function vbe(e, t, n = VP, r = !1) {
let f = (0, b.useRef)(null), p = (0, b.useRef)(null), m = (0, b.useRef)(!1), h = (0, b.useRef)(null), g = (0, b.useCallback)(() => {
p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;
}, []), _ = (0, b.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = mbe(e, o.current, pbe(r), c && !f && !n);
+ let { count: r, finite: c, focused: f } = d.current, p = pbe(e, o.current, fbe(r), c && !f && !n);
s.current = p;
let m = window.devicePixelRatio || 1;
a.current && (a.current.style.transform = `translate3d(${Math.round(p.x * m) / m}px, ${Math.round(p.y * m) / m}px, 0) scale(${p.scale})`), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y));
@@ -46675,7 +46675,7 @@ function vbe(e, t, n = VP, r = !1) {
},
snapshot: () => ({ ...s.current }),
reset: () => {
- g(), _({ ...VP }, !0);
+ g(), _({ ...HP }, !0);
},
pan: (e, t) => {
g(), _({
@@ -46737,17 +46737,17 @@ function vbe(e, t, n = VP, r = !1) {
}
//#endregion
//#region src/react/video-wall/wall-motion.ts
-var ybe = {
+var vbe = {
type: "spring",
stiffness: 300,
damping: 34
-}, bbe = {
+}, ybe = {
delay: .14,
duration: .24
};
//#endregion
//#region src/react/video-wall/use-wall-playback.ts
-function xbe(e, t, n) {
+function bbe(e, t, n) {
let [r, i] = (0, b.useState)({
paused: !0,
time: 0,
@@ -46789,8 +46789,8 @@ function xbe(e, t, n) {
}
//#endregion
//#region src/react/video-wall/wall-controls.tsx
-function Sbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = A_(), S = xbe(t, n, v), C = S.duration || Number(e.duration) || 0, w = r || i, T = !t || S.paused, E = async () => {
+function xbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
+ let b = A_(), S = bbe(t, n, v), C = S.duration || Number(e.duration) || 0, w = r || i, T = !t || S.paused, E = async () => {
if (!(w || a && !s)) try {
t === e.id ? await S.toggle() : await f();
} catch (e) {
@@ -46807,7 +46807,7 @@ function Sbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : bbe,
+ transition: b ? { duration: 0 } : ybe,
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -46912,7 +46912,7 @@ function Sbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}
//#endregion
//#region src/react/components/mix-queue.tsx
-function HP({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function UP({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, b.useRef)(null), l = (0, b.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -46948,7 +46948,7 @@ function HP({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function UP({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function WP({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, x.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -46971,7 +46971,7 @@ function UP({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var Cbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, x.jsxs)("h3", {
+var Sbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, x.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -46981,16 +46981,16 @@ var Cbe = ({ label: e, count: t }) => /* @__PURE__ */ (0, x.jsxs)("h3", {
});
//#endregion
//#region src/react/video-wall/wall-queue.tsx
-function wbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function Cbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, x.jsx)(HP, {
+ children: /* @__PURE__ */ (0, x.jsx)(UP, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(UP, {
+ children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(WP, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
@@ -46999,7 +46999,7 @@ function wbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, x.jsx)(dP, { artwork: _a(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, x.jsx)(fP, { artwork: _a(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, x.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, x.jsx)("span", { children: [
e.edition_label,
e.part_label ? XT(e.part_label) : "",
@@ -47011,7 +47011,7 @@ function wbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
}
//#endregion
//#region src/react/video-wall/wall-route.ts
-function Tbe(e = `${location.pathname}${location.search}`, t = {}) {
+function wbe(e = `${location.pathname}${location.search}`, t = {}) {
let n = new URL(e, location.origin), [r, ...i] = n.pathname.split("/").filter(Boolean), a = {
performers: "performer",
creators: "creator",
@@ -47026,13 +47026,13 @@ function Tbe(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function WP() {
- let e = new URLSearchParams(PO.navigation.location.search).get("returnTo") || "/";
- PO.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
+function GP() {
+ let e = new URLSearchParams(FO.navigation.location.search).get("returnTo") || "/";
+ FO.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
//#endregion
//#region src/react/video-wall/video-wall.tsx
-var GP = /* @__PURE__ */ new Map(), KP = (0, b.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var KP = /* @__PURE__ */ new Map(), qP = (0, b.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = _a(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -47045,7 +47045,7 @@ var GP = /* @__PURE__ */ new Map(), KP = (0, b.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, x.jsx)(dP, {
+ children: /* @__PURE__ */ (0, x.jsx)(fP, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && Ms(e);
@@ -47053,11 +47053,11 @@ var GP = /* @__PURE__ */ new Map(), KP = (0, b.memo)(function({ item: e, image:
})
});
});
-function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
+function Tbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
let p = String(e[0]?.id), [m] = (0, b.useState)(() => {
- let e = GP.get(f);
+ let e = KP.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, b.useState)(() => m?.exploration || new gbe()), g = (0, b.useRef)(!1), [_, v] = (0, b.useState)(null), y = (0, b.useRef)(null), S = (0, b.useRef)(null), C = (0, b.useRef)(null), w = (0, b.useRef)(null), T = (0, b.useRef)(null), [E, D] = (0, b.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [O, k] = (0, b.useState)(m?.selectedKey || ""), [A, j] = (0, b.useState)(m?.sourceId || null), [M, N] = (0, b.useState)(!1), P = E?.edition_group ? {
+ }), [h] = (0, b.useState)(() => m?.exploration || new hbe()), g = (0, b.useRef)(!1), [_, v] = (0, b.useState)(null), y = (0, b.useRef)(null), S = (0, b.useRef)(null), C = (0, b.useRef)(null), w = (0, b.useRef)(null), T = (0, b.useRef)(null), [E, D] = (0, b.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [O, k] = (0, b.useState)(m?.selectedKey || ""), [A, j] = (0, b.useState)(m?.sourceId || null), [M, N] = (0, b.useState)(!1), P = E?.edition_group ? {
kind: "editions",
seedId: E.edition_group.seed_id
} : E?.part_group ? {
@@ -47073,7 +47073,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), F = P ? ee.data : void 0, te = F?.items.find((e) => e.id === BT(F, A || E?.id || null)) || E, I = vbe(e.length, t && !!e.length, m?.camera || {
+ }), F = P ? ee.data : void 0, te = F?.items.find((e) => e.id === BT(F, A || E?.id || null)) || E, I = _be(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
@@ -47094,7 +47094,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
(0, b.useLayoutEffect)(() => {
document.body.append(Se), I.viewport.current?.focus({ preventScroll: !0 });
}, [Se]), (0, b.useEffect)(() => () => Se.remove(), [Se]);
- let [Ce, we] = (0, b.useState)(() => oO(PO.navigation.location.pathname)), [Te, Ee] = (0, b.useState)(m?.image || d), De = (0, b.useRef)(null), Oe = (0, b.useRef)(p), ke = (0, b.useRef)(!!e.length);
+ let [Ce, we] = (0, b.useState)(() => sO(FO.navigation.location.pathname)), [Te, Ee] = (0, b.useState)(m?.image || d), De = (0, b.useRef)(null), Oe = (0, b.useRef)(p), ke = (0, b.useRef)(!!e.length);
ke.current = !!e.length;
let Ae = (0, b.useRef)({
selectedId: E?.id || null,
@@ -47111,17 +47111,17 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let je = () => {
- ke.current && (GP.delete(f), GP.set(f, {
+ ke.current && (KP.delete(f), KP.set(f, {
...Ae.current,
camera: I.snapshot(),
exploration: h
- }), GP.size > 8 && GP.delete(GP.keys().next().value));
+ }), KP.size > 8 && KP.delete(KP.keys().next().value));
};
(0, b.useLayoutEffect)(je);
- let Me = hbe(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, I.view.camera, I.view.size), Ne = i ? Me.map((e) => ({
+ let Me = mbe(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, I.view.camera, I.view.size), Ne = i ? Me.map((e) => ({
...e,
index: -1
- })) : t ? Me : h.assign(Me, e.length, n), Pe = E && (t ? zP(e.length, !0, O) : h.tile(O, e.length)), Fe = Pe ? BP(e.length, t, Pe) : /* @__PURE__ */ new Map();
+ })) : t ? Me : h.assign(Me, e.length, n), Pe = E && (t ? BP(e.length, !0, O) : h.tile(O, e.length)), Fe = Pe ? VP(e.length, t, Pe) : /* @__PURE__ */ new Map();
Pe && !Ne.some((e) => e.key === Pe.key) && Ne.push(Pe);
let Ie = (e = !1) => {
T.current?.abort(), T.current = null, w.current?.(e), w.current = null, se(null), de(!1);
@@ -47138,8 +47138,8 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
t,
p,
i
- ]), (0, b.useEffect)(() => PO.listen((e) => {
- let t = oO(e.location.pathname);
+ ]), (0, b.useEffect)(() => FO.listen((e) => {
+ let t = sO(e.location.pathname);
t && (T.current?.abort(), w.current?.(!0), w.current = null, se(null), de(!1)), we(t);
}), []), (0, b.useEffect)(() => () => {
T.current?.abort(), w.current?.(!0), je();
@@ -47160,7 +47160,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
E?.id !== n.id && Ie(!1), De.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), D(n), k(r.key), j(null), N(!1), xe(!1), I.reveal(BP(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, pe(""), le(null), D(n), k(r.key), j(null), N(!1), xe(!1), I.reveal(VP(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, ze = () => {
te && y.current && (je(), Ie(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
}, Be = async (e = te) => {
@@ -47204,7 +47204,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = I.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (I.view.size.width / 2 - r.x) / r.scale,
y: (I.view.size.height / 2 - r.y) / r.scale
- }, o = t ? fbe(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? dbe(e.length, i) : h.nearest(e.length, i, a);
o && (Re(n, o), le(n.id));
}, Ge = async () => {
if (!(r || g.current)) {
@@ -47296,7 +47296,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, x.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, x.jsx)(KP, {
+ children: /* @__PURE__ */ (0, x.jsx)(qP, {
item: E,
image: Te,
big: !0
@@ -47304,7 +47304,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, x.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, x.jsx)(KP, {
+ children: /* @__PURE__ */ (0, x.jsx)(qP, {
item: E,
image: Te,
big: !0
@@ -47360,7 +47360,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Sbe, {
+ /* @__PURE__ */ (0, x.jsx)(xbe, {
item: Xe,
playing: oe,
frame: S,
@@ -47382,7 +47382,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ve,
error: pe
}),
- M ? /* @__PURE__ */ (0, x.jsx)(wbe, {
+ M ? /* @__PURE__ */ (0, x.jsx)(Cbe, {
items: He,
activeId: Xe.id,
kind: F?.kind || "wall",
@@ -47398,7 +47398,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: Ce,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : E ? Le() : be ? xe(!1) : WP());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : E ? Le() : be ? xe(!1) : GP());
},
children: [
/* @__PURE__ */ (0, x.jsx)("button", {
@@ -47406,7 +47406,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: WP,
+ onClick: GP,
children: /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -47421,7 +47421,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
onSubmit: (e) => {
e.preventDefault();
let t = new URLSearchParams(location.search), n = String(new FormData(e.currentTarget).get("q") || "").trim();
- n ? t.set("q", n) : t.delete("q"), je(), PO.push(`/wall?${t}`), xe(!1);
+ n ? t.set("q", n) : t.delete("q"), je(), FO.push(`/wall?${t}`), xe(!1);
},
children: [/* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
@@ -47435,18 +47435,18 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, x.jsxs)(MN, {
+ /* @__PURE__ */ (0, x.jsxs)(NN, {
"aria-label": "播放墙图片",
value: Te,
onChange: Ee,
- className: NN,
- children: [/* @__PURE__ */ (0, x.jsx)(MM, {
+ className: PN,
+ children: [/* @__PURE__ */ (0, x.jsx)(NM, {
value: "cover",
- className: PN,
+ className: FN,
children: "封面"
- }), /* @__PURE__ */ (0, x.jsx)(MM, {
+ }), /* @__PURE__ */ (0, x.jsx)(NM, {
value: "thumbnail",
- className: PN,
+ className: FN,
children: "缩略图"
})]
}),
@@ -47538,7 +47538,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: ae && !ne && !r && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: ne ? { duration: 0 } : {
- layout: ybe,
+ layout: vbe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -47571,7 +47571,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Re(n, t, !1));
},
children: r ? Ze : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(KP, {
+ /* @__PURE__ */ (0, x.jsx)(qP, {
item: n,
image: Te,
ratio: i.width / i.height
@@ -47625,7 +47625,7 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}) : null,
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, x.jsx)(iP, {
+ children: /* @__PURE__ */ (0, x.jsx)(aP, {
busy: r,
onPress: () => void qe()
})
@@ -47672,20 +47672,20 @@ function Ebe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function qP(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, x.jsx)(Obe, { ...e });
+function JP(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, x.jsx)(Dbe, { ...e });
let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${ST(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, x.jsx)(kbe, { ...e }, t);
+ return /* @__PURE__ */ (0, x.jsx)(Obe, { ...e }, t);
}
-function Dbe({ name: e }) {
+function Ebe({ name: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
}
-function Obe(e) {
- let { actions: t } = e, n = (0, b.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, x.jsx)(bP, {
+function Dbe(e) {
+ let { actions: t } = e, n = (0, b.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, x.jsx)(xP, {
item: i,
variant: r,
layout: e.layout,
@@ -47705,7 +47705,7 @@ function Obe(e) {
children: i
});
}
-function kbe(e) {
+function Obe(e) {
let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Kde(e) : CT(e), [s] = (0, b.useState)(() => e.wall ? Jde(o.queryKey) : void 0), c = s || (i && e.initial ? {
pages: [{
...e.initial,
@@ -47737,7 +47737,7 @@ function kbe(e) {
e.mix,
a,
r.javImage
- ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || _be(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && dbe(e.item) ? [e.item] : []), v = lP(l.isPending, e.skeletonHtml), y = (0, b.useRef)(null), S = Abe(e, l.data, d, f, y);
+ ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || gbe(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && ube(e.item) ? [e.item] : []), v = uP(l.isPending, e.skeletonHtml), y = (0, b.useRef)(null), S = kbe(e, l.data, d, f, y);
(0, b.useLayoutEffect)(() => {
if (!l.data) return;
let t = !0;
@@ -47764,12 +47764,12 @@ function kbe(e) {
let w = (0, b.useCallback)((e, t) => n.open(e, t), [n]), T = (0, b.useCallback)((e, t) => n.openResource(e, t), [n]), E = (0, b.useCallback)((e) => n.openShort(e), [n]), D = (0, b.useCallback)(async () => {
let e = await l.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [l.fetchNextPage]), O = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, x.jsx)(Mbe, {
+ }, [l.fetchNextPage]), O = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, x.jsx)(jbe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, x.jsx)(bP, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, x.jsx)(xP, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -47785,7 +47785,7 @@ function kbe(e) {
"data-media-body": "",
"data-grid-reveal": v.fading ? "" : void 0,
children: [!e.wall && v.layer, (() => {
- if (g && e.wall) return /* @__PURE__ */ (0, x.jsx)(Ebe, {
+ if (g && e.wall) return /* @__PURE__ */ (0, x.jsx)(Tbe, {
sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${ST(e.filters || {}, !!e.excludeVertical)}`,
items: _,
finite: h,
@@ -47804,7 +47804,7 @@ function kbe(e) {
javImage: r.javImage
}, h ? "finite" : "explore");
if (l.isPending) return null;
- if (!l.data) return /* @__PURE__ */ (0, x.jsx)(uP, {
+ if (!l.data) return /* @__PURE__ */ (0, x.jsx)(dP, {
message: Et(l.error),
onRetry: () => void l.refetch()
});
@@ -47824,12 +47824,12 @@ function kbe(e) {
children: efe(d, S).map((t) => /* @__PURE__ */ (0, x.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(O)
- }), t.strip ? /* @__PURE__ */ (0, x.jsx)(jbe, {
+ }), t.strip ? /* @__PURE__ */ (0, x.jsx)(Abe, {
cut: t.strip,
props: e,
onOpen: E
}) : null] }, t.start))
- }), l.hasNextPage ? /* @__PURE__ */ (0, x.jsx)(JP, {
+ }), l.hasNextPage ? /* @__PURE__ */ (0, x.jsx)(YP, {
entity: i,
load: D,
enabled: () => e.canLoadMore?.() !== !1
@@ -47837,7 +47837,7 @@ function kbe(e) {
})()]
});
}
-function JP({ entity: e, load: t, enabled: n, children: r }) {
+function YP({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, b.useRef)(null), a = (0, b.useRef)(!1), o = (0, b.useRef)(!1), [s, c] = (0, b.useState)({
busy: !1,
error: ""
@@ -47899,12 +47899,12 @@ function JP({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!s.error,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: oo("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, x.jsx)(uP, {
+ }), s.error ? /* @__PURE__ */ (0, x.jsx)(dP, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function Abe(e, t, n, r, i) {
+function kbe(e, t, n, r, i) {
let [a, o] = (0, b.useState)([]), [s, c] = (0, b.useState)(null), l = (0, b.useRef)(0), u = (0, b.useRef)(0), d = (0, b.useRef)([]);
return (0, b.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, b.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -47935,7 +47935,7 @@ function Abe(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function jbe({ cut: e, props: t, onOpen: n }) {
+function Abe({ cut: e, props: t, onOpen: n }) {
let r = (0, b.useRef)(null), { wireDrag: i } = t;
return (0, b.useEffect)(() => {
r.current && i(r.current);
@@ -47951,12 +47951,12 @@ function jbe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, x.jsx)(Dbe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, x.jsx)(Ebe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, x.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, x.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, x.jsx)(bP, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, x.jsx)(xP, {
item: e,
variant: "short",
layout: t.layout,
@@ -47970,17 +47970,17 @@ function jbe({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function YP(e, t, n) {
+function XP(e, t, n) {
return va(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Mbe({ seed: e, layout: t, helpers: n, actions: r }) {
+function jbe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, b.useRef)(/* @__PURE__ */ new Map()), a = (0, b.useRef)(t);
a.current = t;
let o = Ca(e, n.tagLabel), s = (0, b.useCallback)(async () => {
let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => wT(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), YP(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = YP(e, t, !1);
- return /* @__PURE__ */ (0, x.jsx)(wP, {
+ return i.current = new Map(n.map((e) => [String(e.id), XP(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = XP(e, t, !1);
+ return /* @__PURE__ */ (0, x.jsx)(TP, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -47990,12 +47990,12 @@ function Mbe({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : YP(e, {
+ artworkIdentity: c === "small" ? l.html : XP(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => Gs(e, c),
- ratio: vP(e, "grid", t),
+ ratio: yP(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -48007,41 +48007,41 @@ function Mbe({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-async function XP(e) {
+async function ZP(e) {
await U.fetchQuery({
queryKey: xn,
queryFn: () => Sn(e)
});
}
-var Nbe = [
+var Mbe = [
"local",
"115",
"pikpak"
-], Pbe = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Fbe = "/api/duplicates?limit=120", ZP = ["duplicates"], QP = "/api/batch", $P = (e) => V(Fbe, e), Ibe = /[\s\-_.()[\]【】/\\]/;
-function Lbe(e) {
+], Nbe = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Pbe = "/api/duplicates?limit=120", QP = ["duplicates"], $P = "/api/batch", eF = (e) => V(Pbe, e), Fbe = /[\s\-_.()[\]【】/\\]/;
+function Ibe(e) {
if (e.length < 2) return "";
let t = 0, n = e[0];
for (; t < n.length && e.every((e) => e[t] === n[t]);) t += 1;
e.some((e) => e.length <= t) && (t = Math.max(0, t - 1));
let r = t;
- for (; r > 0 && !Ibe.test(n[r - 1]);) --r;
+ for (; r > 0 && !Fbe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var Rbe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function zbe(e) {
+var Lbe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function Rbe(e) {
await Promise.all([U.fetchQuery({
- queryKey: ZP,
- queryFn: () => $P(e)
- }), XP(e)]);
+ queryKey: QP,
+ queryFn: () => eF(e)
+ }), ZP(e)]);
}
-var eF = {
+var tF = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Bbe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), tF = (e, t) => Bbe(e, t).filter((t) => e.some((e) => e.location !== t)), Vbe = (e, t) => t.filter((t) => e.some((e) => tF(e.files, [t]).length));
-function Hbe(e, t) {
+}, zbe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), nF = (e, t) => zbe(e, t).filter((t) => e.some((e) => e.location !== t)), Bbe = (e, t) => t.filter((t) => e.some((e) => nF(e.files, [t]).length));
+function Vbe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -48060,12 +48060,12 @@ function Hbe(e, t) {
}
return n;
}
-function Ube(e, t) {
+function Hbe(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function nF(e, t) {
- for (let n = 0; n < e.length; n += 200) await H(QP, {
+async function rF(e, t) {
+ for (let n = 0; n < e.length; n += 200) await H($P, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
@@ -48073,35 +48073,35 @@ async function nF(e, t) {
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var rF = "/api/library-processing", iF = ["library-processing"], aF = (e) => V(rF, e);
-async function oF(e) {
+var iF = "/api/library-processing", aF = ["library-processing"], oF = (e) => V(iF, e);
+async function sF(e) {
await U.fetchQuery({
- queryKey: iF,
- queryFn: () => aF(e)
+ queryKey: aF,
+ queryFn: () => oF(e)
});
}
-var Wbe = 2e3, Gbe = 1e4, sF = "连接中断,正在重新读取处理进度";
-function Kbe(e, t) {
- return e?.status === "running" ? Wbe : t ? Gbe : !1;
+var Ube = 2e3, Wbe = 1e4, cF = "连接中断,正在重新读取处理进度";
+function Gbe(e, t) {
+ return e?.status === "running" ? Ube : t ? Wbe : !1;
}
-var qbe = {
+var Kbe = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, cF = {
+}, lF = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Jbe(e) {
- let t = Object.entries(e).filter(([e, t]) => cF[e] && t > 0).map(([e, t]) => `${cF[e]} ${t.toLocaleString()} 部`);
+function qbe(e) {
+ let t = Object.entries(e).filter(([e, t]) => lF[e] && t > 0).map(([e, t]) => `${lF[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function lF(e) {
- let t = qbe[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${rA(e.waited_seconds)}` : "";
+function uF(e) {
+ let t = Kbe[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${iA(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function Ybe(e) {
+function Jbe(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -48115,21 +48115,21 @@ function Ybe(e) {
log: e.issues_log || ""
} : null;
}
-var uF = "peach.library-processing.announced", Xbe = 120;
-function Zbe(e, t, n) {
+var dF = "peach.library-processing.announced", Ybe = 120;
+function Xbe(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Xbe;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Ybe;
if (n || r) {
try {
- if (e.job_id && localStorage.getItem(uF) === e.job_id) return;
- e.job_id && localStorage.setItem(uF, e.job_id);
+ if (e.job_id && localStorage.getItem(dF) === e.job_id) return;
+ e.job_id && localStorage.setItem(dF, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var dF = "/api/media-repair", fF = ["media-repair"], pF = ["media-repair", "libraries"], Qbe = {
+var fF = "/api/media-repair", pF = ["media-repair"], mF = ["media-repair", "libraries"], Zbe = {
status: "idle",
library: "",
stage: "",
@@ -48141,41 +48141,41 @@ var dF = "/api/media-repair", fF = ["media-repair"], pF = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, mF = (e) => V(dF, e), hF = async (e) => (await V("/api/libraries", e)).libraries || [];
-async function $be(e) {
+}, hF = (e) => V(fF, e), gF = async (e) => (await V("/api/libraries", e)).libraries || [];
+async function Qbe(e) {
await Promise.all([U.fetchQuery({
- queryKey: fF,
- queryFn: () => mF(e)
- }), U.fetchQuery({
queryKey: pF,
queryFn: () => hF(e)
+ }), U.fetchQuery({
+ queryKey: mF,
+ queryFn: () => gF(e)
})]);
}
-var gF = (e) => Number(e).toLocaleString();
-function exe(e) {
+var _F = (e) => Number(e).toLocaleString();
+function $be(e) {
if (e.status === "running") {
- let t = e.total ? `${gF(Math.min(e.checked || 0, e.total))} / ${gF(e.total)}` : "准备中";
+ let t = e.total ? `${_F(Math.min(e.checked || 0, e.total))} / ${_F(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${gF(e.repaired)} 部,${gF(e.failed)} 部修不了` : `修好 ${gF(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${_F(e.repaired)} 部,${_F(e.failed)} 部修不了` : `修好 ${_F(e.repaired)} 部` : "";
}
-var txe = (e) => `${gF(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, nxe = "/api/quality-goals?limit=200", _F = ["quality-goals"], vF = (e) => V(nxe, e);
-async function rxe(e) {
+var exe = (e) => `${_F(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, txe = "/api/quality-goals?limit=200", vF = ["quality-goals"], yF = (e) => V(txe, e);
+async function nxe(e) {
await U.fetchQuery({
- queryKey: _F,
- queryFn: () => vF(e)
+ queryKey: vF,
+ queryFn: () => yF(e)
});
}
-var yF = (e) => e.has_cover ? ia(e) : `/poster?id=${e.id}&c=4`;
+var bF = (e) => e.has_cover ? ia(e) : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/selection.ts
-function bF(e, t, n, r, i, a = i || !e.has(r)) {
+function xF(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
//#endregion
//#region src/react/review/review.ts
-var ixe = "/api/review", axe = "/api/review/decision", oxe = "/api/review/genre", xF = ["review"], SF = {
+var rxe = "/api/review", ixe = "/api/review/decision", axe = "/api/review/genre", SF = ["review"], CF = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -48185,15 +48185,15 @@ var ixe = "/api/review", axe = "/api/review/decision", oxe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, sxe = Object.keys(SF), cxe = "metadata_fields", CF = (e) => typeof e == "string" && Object.hasOwn(SF, e), lxe = {
+}, oxe = Object.keys(CF), sxe = "metadata_fields", wF = (e) => typeof e == "string" && Object.hasOwn(CF, e), cxe = {
creator_tags: "creator",
western_identity: "creator"
};
-function uxe(e, t) {
+function lxe(e, t) {
let n = [["candidates", t ? "按候选数量" : "全部待复核"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function wF(e, t) {
+function TF(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -48210,10 +48210,10 @@ function wF(e, t) {
}
return [...n.values()];
}
-function dxe(e, t, n) {
- return n && wF(e, t).find((e) => e.key === n)?.rows || e;
+function uxe(e, t, n) {
+ return n && TF(e, t).find((e) => e.key === n)?.rows || e;
}
-function fxe(e, t) {
+function dxe(e, t) {
let n = vn(e.length, 20), r = yn(t, n);
return {
page: r,
@@ -48221,32 +48221,32 @@ function fxe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function pxe(e) {
+function fxe(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function mxe(e, t, n, r, i, a) {
- return bF(e, t, n, r, i, a);
+function pxe(e, t, n, r, i, a) {
+ return xF(e, t, n, r, i, a);
}
-function TF(e, t) {
+function EF(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function EF(e, t) {
+function DF(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var DF = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function hxe(e, t) {
- let n = EF(e, t), r = DF(e, t);
+var OF = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function mxe(e, t) {
+ let n = DF(e, t), r = OF(e, t);
return r ? `${n} · ${r}` : n;
}
-var gxe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", _xe = (e) => String(e.tags || "").split("|").filter(Boolean), vxe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function yxe(e) {
+var hxe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", gxe = (e) => String(e.tags || "").split("|").filter(Boolean), _xe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function vxe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function OF(e, t, n, r) {
+function kF(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -48262,19 +48262,19 @@ function OF(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var bxe = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", kF = (e) => V(ixe, e), AF = (e) => H(axe, e), xxe = (e, t) => H(oxe, {
+var yxe = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", AF = (e) => V(rxe, e), jF = (e) => H(ixe, e), bxe = (e, t) => H(axe, {
genre: e,
tag: t
});
-async function Sxe(e) {
+async function xxe(e) {
await U.fetchQuery({
- queryKey: xF,
- queryFn: () => kF(e)
+ queryKey: SF,
+ queryFn: () => AF(e)
});
}
-function jF(e, t) {
+function MF(e, t) {
let n = new Set(t);
- n.size && U.setQueryData(xF, (t) => {
+ n.size && U.setQueryData(SF, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@ -48290,193 +48290,193 @@ function jF(e, t) {
};
});
}
-var Cxe = () => U.invalidateQueries({
- queryKey: xF,
+var Sxe = () => U.invalidateQueries({
+ queryKey: SF,
exact: !0
});
-function wxe(e, t) {
+function Cxe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Tn(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Txe = "/api/links", MF = "/api/links/check", NF = "/api/links/prune", PF = ["links"], FF = ["links", "check"], IF = ["links", "prune"], LF = {
+var wxe = "/api/links", NF = "/api/links/check", PF = "/api/links/prune", FF = ["links"], IF = ["links", "check"], LF = ["links", "prune"], RF = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function RF(e) {
+async function zF(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var zF = (e) => V(Txe, e), BF = (e) => H(MF, { status_only: !0 }, "POST", e), Exe = ({ retry: e, checkId: t }) => RF(H(MF, e ? {
+var BF = (e) => V(wxe, e), VF = (e) => H(NF, { status_only: !0 }, "POST", e), Txe = ({ retry: e, checkId: t }) => zF(H(NF, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), VF = (e) => V(NF, e), Dxe = (e) => RF(H(NF, {
+} : { restart: !0 })), HF = (e) => V(PF, e), Exe = (e) => zF(H(PF, {
confirm: !0,
check_id: e,
background: !0
-})), HF = (e) => Number(e || 0).toLocaleString(), Oxe = (e) => `已删除 ${HF(e.removed)} 条;${e.marked ? `已隐退女优的 ${HF(e.marked)} 条留作不可点的记录;` : ""}保留 ${HF(e.recovered)} 条未确认失效的链接。`;
-function kxe(e) {
+})), UF = (e) => Number(e || 0).toLocaleString(), Dxe = (e) => `已删除 ${UF(e.removed)} 条;${e.marked ? `已隐退女优的 ${UF(e.marked)} 条留作不可点的记录;` : ""}保留 ${UF(e.recovered)} 条未确认失效的链接。`;
+function Oxe(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${HF(e.checked)} / ${HF(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${UF(e.checked)} / ${UF(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var UF = "/api/settings", WF = "/api/follow/schedule", GF = "/api/thumbnail-jobs", KF = ["settings"], qF = ["follow-schedule"], JF = ["thumbnail-jobs"], YF = (e) => V(UF, e), Axe = (e) => V(WF, e), jxe = (e) => V(GF, e);
-function Mxe(e = U) {
+var WF = "/api/settings", GF = "/api/follow/schedule", KF = "/api/thumbnail-jobs", qF = ["settings"], JF = ["follow-schedule"], YF = ["thumbnail-jobs"], XF = (e) => V(WF, e), kxe = (e) => V(GF, e), Axe = (e) => V(KF, e);
+function jxe(e = U) {
return e.fetchQuery({
- queryKey: KF,
- queryFn: ({ signal: e }) => YF(e),
+ queryKey: qF,
+ queryFn: ({ signal: e }) => XF(e),
staleTime: 0
}).catch(() => null);
}
-function XF() {
+function ZF() {
return ft({
- mutationFn: (e) => H(UF, e),
- onSuccess: (e) => U.setQueryData(KF, e)
+ mutationFn: (e) => H(WF, e),
+ onSuccess: (e) => U.setQueryData(qF, e)
});
}
-function Nxe() {
+function Mxe() {
return ft({
- mutationFn: (e) => H(WF, {
+ mutationFn: (e) => H(GF, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => U.setQueryData(qF, e)
+ onSuccess: (e) => U.setQueryData(JF, e)
});
}
-function Pxe() {
+function Nxe() {
return ft({
- mutationFn: (e) => H(GF, { mode: e }),
- onSuccess: (e) => U.setQueryData(JF, e)
+ mutationFn: (e) => H(KF, { mode: e }),
+ onSuccess: (e) => U.setQueryData(YF, e)
});
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Fxe = "/api/organize", Ixe = "/api/organize/preview", Lxe = "/api/organize/apply", Rxe = "/api/organize/rollback", ZF = ["organize"], QF = (e) => V(Fxe, e);
-async function zxe(e) {
+var Pxe = "/api/organize", Fxe = "/api/organize/preview", Ixe = "/api/organize/apply", Lxe = "/api/organize/rollback", QF = ["organize"], $F = (e) => V(Pxe, e);
+async function Rxe(e) {
await U.fetchQuery({
- queryKey: ZF,
- queryFn: () => QF(e)
+ queryKey: QF,
+ queryFn: () => $F(e)
});
}
-var Bxe = (e) => H(Ixe, e), Vxe = (e) => e.kind === "apply" ? H(Lxe, {
+var zxe = (e) => H(Fxe, e), Bxe = (e) => e.kind === "apply" ? H(Ixe, {
...e.request,
confirm: !0
-}) : H(Rxe, { confirm: !0 });
-async function Hxe(e) {
- U.setQueryData(ZF, (t) => t && {
+}) : H(Lxe, { confirm: !0 });
+async function Vxe(e) {
+ U.setQueryData(QF, (t) => t && {
...t,
templates: e
});
try {
- await H(UF, { organizeTemplates: e });
+ await H(WF, { organizeTemplates: e });
} catch {}
}
-var Uxe = (e, t) => e && {
+var Hxe = (e, t) => e && {
...e,
...t
-}, Wxe = /目录模板|分隔符|盘符|`\.`/;
-function $F(e) {
+}, Uxe = /目录模板|分隔符|盘符|`\.`/;
+function eI(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var eI = (e) => Number(e || 0).toLocaleString();
-function Gxe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${eI(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${eI(e.counts.change)} 个文件会改名或移动,${eI(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var tI = (e) => Number(e || 0).toLocaleString();
+function Wxe(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${tI(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${tI(e.counts.change)} 个文件会改名或移动,${tI(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function tI(e) {
+function nI(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${eI(r)} 个文件${n ? `,${eI(n)} 行未能退回` : ""}。` : `已整理 ${eI(r)} 个文件${n ? `,${eI(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${tI(r)} 个文件${n ? `,${tI(n)} 行未能退回` : ""}。` : `已整理 ${tI(r)} 个文件${n ? `,${tI(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var nI = "/api/resource-sync/scan", rI = "/api/resource-sync/apply", iI = ["resource-sync", "scan"], aI = ["resource-sync", "apply"], oI = (e) => H(nI, {
+var rI = "/api/resource-sync/scan", iI = "/api/resource-sync/apply", aI = ["resource-sync", "scan"], oI = ["resource-sync", "apply"], sI = (e) => H(rI, {
background: !0,
status_only: !0
-}, "POST", e), Kxe = () => H(nI, {
+}, "POST", e), Gxe = () => H(rI, {
background: !0,
restart: !0
-}), sI = (e) => V(rI, e), qxe = (e) => H(rI, {
+}), cI = (e) => V(iI, e), Kxe = (e) => H(iI, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), cI = (e) => (e?.sources ?? []).some((e) => Nbe.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Jxe(e) {
- cI(U.getQueryData(xn)) && await Promise.all([U.fetchQuery({
- queryKey: iI,
- queryFn: () => oI(e)
- }), U.fetchQuery({
+}), lI = (e) => (e?.sources ?? []).some((e) => Mbe.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function qxe(e) {
+ lI(U.getQueryData(xn)) && await Promise.all([U.fetchQuery({
queryKey: aI,
queryFn: () => sI(e)
+ }), U.fetchQuery({
+ queryKey: oI,
+ queryFn: () => cI(e)
})]);
}
-var Yxe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Xxe = {
+var Jxe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Yxe = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, lI = (e) => Number(e || 0).toLocaleString(), Zxe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", uI = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), dI = (e) => e.vanish ? `${lI(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", fI = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Qxe = (e) => `将永久删除文件已不在盘上的 ${lI(uI(e))} 条记录和 ${lI(e.empty)} 个空文件夹,并清理 ${lI(e.cache?.files)} 个闲置缓存。${fI(e)}${dI(e)}`, $xe = (e) => `将永久删除文件已不在盘上的 ${lI(uI(e))} 条记录(含回收站里的)、${lI(e.empty)} 个空文件夹,并清理 ${lI(e.cache?.files)} 个闲置缓存。来源根目录保留。${fI(e)}${dI(e)}`, eSe = (e) => e.online ? [
- `找不到文件 · 共 ${lI(e.total)} 项`,
- e.vanish ? `${lI(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${lI(e.empty)} 个` : "",
- e.unreadable ? `${lI(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${lI(e.total)} 项`;
-function pI(e) {
+}, uI = (e) => Number(e || 0).toLocaleString(), Xxe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", dI = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), fI = (e) => e.vanish ? `${uI(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", pI = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Zxe = (e) => `将永久删除文件已不在盘上的 ${uI(dI(e))} 条记录和 ${uI(e.empty)} 个空文件夹,并清理 ${uI(e.cache?.files)} 个闲置缓存。${pI(e)}${fI(e)}`, Qxe = (e) => `将永久删除文件已不在盘上的 ${uI(dI(e))} 条记录(含回收站里的)、${uI(e.empty)} 个空文件夹,并清理 ${uI(e.cache?.files)} 个闲置缓存。来源根目录保留。${pI(e)}${fI(e)}`, $xe = (e) => e.online ? [
+ `找不到文件 · 共 ${uI(e.total)} 项`,
+ e.vanish ? `${uI(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${uI(e.empty)} 个` : "",
+ e.unreadable ? `${uI(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${uI(e.total)} 项`;
+function mI(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${lI(t.length)} 条记录没有删除(${o})` : "",
- n ? `${lI(n)} 个文件夹没有删除` : "",
- r.length ? `${lI(r.length)} 个缓存没有清理` : ""
+ t.length ? `${uI(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${uI(n)} 个文件夹没有删除` : "",
+ r.length ? `${uI(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var tSe = (e, t) => {
- let { rest: n } = pI(e), r = `已永久删除 ${lI(e.purged)} 条失效记录和 ${lI(e.dirs_removed)} 个空文件夹,清理 ${lI(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${lI(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${lI(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var eSe = (e, t) => {
+ let { rest: n } = mI(e), r = `已永久删除 ${uI(e.purged)} 条失效记录和 ${uI(e.dirs_removed)} 个空文件夹,清理 ${uI(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${uI(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${uI(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, nSe = "/api/review?counts=1", mI = ["review", "counts"], rSe = "/api/ads?limit=1", hI = ["junk-summary"], gI = "/api/items?state=trash&limit=1", _I = ["trash-summary"], iSe = [
+}, tSe = "/api/review?counts=1", hI = ["review", "counts"], nSe = "/api/ads?limit=1", gI = ["junk-summary"], _I = "/api/items?state=trash&limit=1", vI = ["trash-summary"], rSe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], vI = (e) => V(nSe, e), yI = (e) => V(rSe, e), bI = (e) => {
+], yI = (e) => V(tSe, e), bI = (e) => V(nSe, e), xI = (e) => {
let t = sessionStorage.getItem("peach.library");
- return V(t ? `${gI}&library=${encodeURIComponent(t)}` : gI, e);
-}, xI = (e) => Number(e || 0).toLocaleString();
-function aSe(e) {
- let t = SF, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
+ return V(t ? `${_I}&library=${encodeURIComponent(t)}` : _I, e);
+}, SI = (e) => Number(e || 0).toLocaleString();
+function iSe(e) {
+ let t = CF, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function oSe(e) {
+function aSe(e) {
if (!e) return "";
- let t = iSe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${xI(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${xI(e.dismissed_total)}`), t.join(" · ");
-}
-var sSe = [
- [mI, ({ signal: e }) => vI(e)],
- [_F, ({ signal: e }) => vF(e)],
- [_I, ({ signal: e }) => bI(e)],
- [PF, ({ signal: e }) => zF(e)],
+ let t = rSe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${SI(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${SI(e.dismissed_total)}`), t.join(" · ");
+}
+var oSe = [
+ [hI, ({ signal: e }) => yI(e)],
+ [vF, ({ signal: e }) => yF(e)],
+ [vI, ({ signal: e }) => xI(e)],
[FF, ({ signal: e }) => BF(e)],
- [IF, ({ signal: e }) => VF(e)]
+ [IF, ({ signal: e }) => VF(e)],
+ [LF, ({ signal: e }) => HF(e)]
];
-async function cSe(e) {
- let t = location.hash === "#resource-sync", n = sSe.map(([n, r]) => {
+async function sSe(e) {
+ let t = location.hash === "#resource-sync", n = oSe.map(([n, r]) => {
if (t) return U.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -48489,49 +48489,49 @@ async function cSe(e) {
await Promise.all([
...n,
U.fetchQuery({
- queryKey: hI,
- queryFn: () => yI(e)
+ queryKey: gI,
+ queryFn: () => bI(e)
}),
U.fetchQuery({
- queryKey: ZP,
- queryFn: () => $P(e)
+ queryKey: QP,
+ queryFn: () => eF(e)
}),
- XP(e).then(() => Jxe(e)),
- oF(e),
- $be(e),
- zxe(e)
+ ZP(e).then(() => qxe(e)),
+ sF(e),
+ Qbe(e),
+ Rxe(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var lSe = [
+var cSe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], uSe = [
+], lSe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function SI(e = {}) {
- return `${Dk({
+function CI(e = {}) {
+ return `${Ok({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var CI = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", dSe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function wI({ interactive: e = !1 } = {}) {
- return Dk({
+var wI = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", uSe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function TI({ interactive: e = !1 } = {}) {
+ return Ok({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var fSe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function TI({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var dSe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function EI({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -48564,13 +48564,13 @@ function TI({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function EI({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function DI({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, x.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${lSe[n % 4]} ${uSe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${cSe[n % 4]} ${lSe[n % 4]}`,
children: /* @__PURE__ */ (0, x.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -48592,16 +48592,16 @@ function EI({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function DI(e) {
- let t = AN("hover");
- return /* @__PURE__ */ (0, x.jsx)(wM, {
+function OI(e) {
+ let t = jN("hover");
+ return /* @__PURE__ */ (0, x.jsx)(TM, {
...e,
ref: t
});
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var OI = [
+var kI = [
"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",
@@ -48609,31 +48609,31 @@ var OI = [
"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(" "), pSe = "w-[266px]", mSe = "flex w-full flex-col gap-1 outline-none", kI = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), AI = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background", hSe = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", jI = {
+].join(" "), fSe = "w-[266px]", pSe = "flex w-full flex-col gap-1 outline-none", AI = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), jI = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background", mSe = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", MI = {
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
-}, gSe = {
- medium: jI.medium,
+}, hSe = {
+ medium: MI.medium,
small: "size-8 rounded-lg p-0 text-body-medium"
-}, _Se = {
+}, gSe = {
medium: "size-5 shrink-0",
small: "size-[18px] shrink-0"
-}, vSe = {
+}, _Se = {
medium: "inline-flex items-center justify-center px-1 shrink-0",
small: "inline-flex items-center justify-center px-0.5 shrink-0"
-}, ySe = {
+}, vSe = {
primary: "bg-button-primary text-text-white shadow-xs",
secondary: "bg-background-primary-default text-text-primary border border-border-button-default shadow-xs",
ghost: "bg-button-ghost-background text-button-ghost-foreground"
-}, MI = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
-function NI(e, t = "", n = e) {
- return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${MI("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${z(n)}" value="${z(t)}" placeholder="${z(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;
+}, NI = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
+function PI(e, t = "", n = e) {
+ return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${NI("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${z(n)}" value="${z(t)}" placeholder="${z(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;
}
-function PI({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
- let o = r ? jI[t] : gSe[t], s = n ? MI(n, _Se[t]) : "", c = r ? `<span class="${vSe[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
- return `<button type="button" class="${hSe} ${o} ${ySe[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
+function FI({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
+ let o = r ? MI[t] : hSe[t], s = n ? NI(n, gSe[t]) : "", c = r ? `<span class="${_Se[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
+ return `<button type="button" class="${mSe} ${o} ${vSe[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
}
-var bSe = {
+var ySe = {
md: {
box: "gap-1.5 px-2.5 py-2 text-body-medium",
value: "gap-[5px]",
@@ -48645,156 +48645,156 @@ var bSe = {
chevron: "size-3.5"
}
};
-function FI(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
- let i = bSe[t];
- return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${i.box}"><span class="flex min-w-0 items-center truncate ${i.value}">${e}</span>${MI("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
+function II(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
+ let i = ySe[t];
+ return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${i.box}"><span class="flex min-w-0 items-center truncate ${i.value}">${e}</span>${NI("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
}
-var xSe = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", SSe = "flex min-w-0 flex-col gap-2", CSe = "text-body-regular text-text-secondary", wSe = "text-display-4-medium tabular-nums text-text-primary", TSe = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
-function II(e) {
- return `<div data-collection-summary="" class="${xSe}"><div class="${SSe}"><span class="${CSe}">${e}</span><strong class="${wSe}"><span data-skeleton="count" aria-hidden="true" class="${TSe}"></span></strong></div></div>`;
+var bSe = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", xSe = "flex min-w-0 flex-col gap-2", SSe = "text-body-regular text-text-secondary", CSe = "text-display-4-medium tabular-nums text-text-primary", wSe = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
+function LI(e) {
+ return `<div data-collection-summary="" class="${bSe}"><div class="${xSe}"><span class="${SSe}">${e}</span><strong class="${CSe}"><span data-skeleton="count" aria-hidden="true" class="${wSe}"></span></strong></div></div>`;
}
//#endregion
//#region src/management.ts
-var LI = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", RI = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", zI = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", BI = "type=\"button\" disabled data-skeleton-action", VI = "disabled data-skeleton-action", ESe = "aria-disabled=\"true\"", HI = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, UI = (e, t) => `<div data-geist-fieldset-content>
+var RI = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", zI = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", BI = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", VI = "type=\"button\" disabled data-skeleton-action", HI = "disabled data-skeleton-action", TSe = "aria-disabled=\"true\"", UI = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, WI = (e, t) => `<div data-geist-fieldset-content>
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div>`;
-function DSe() {
- return HI(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
- ${UI("扫描与采集", LI)}
- <footer data-geist-fieldset-footer><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${MI("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${PI({
+function ESe() {
+ return UI(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
+ ${WI("扫描与采集", RI)}
+ <footer data-geist-fieldset-footer><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${NI("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${FI({
glyph: "database",
label: "扫描并补全资料",
- attrs: VI
- })}${PI({
+ attrs: HI
+ })}${FI({
glyph: "chevron-down",
- attrs: `${VI} aria-label="更多扫描与采集方式"`
+ attrs: `${HI} aria-label="更多扫描与采集方式"`
})}</span></footer>
</section>`);
}
-function OSe() {
- return HI(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${UI("媒体修复", RI)}
- <footer data-geist-fieldset-footer>${FI(zI, {
+function DSe() {
+ return UI(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
+ ${WI("媒体修复", zI)}
+ <footer data-geist-fieldset-footer>${II(BI, {
className: "w-48",
- attrs: ESe
- })}${PI({
+ attrs: TSe
+ })}${FI({
label: "开始修复",
- attrs: VI
+ attrs: HI
})}</footer>
</section>`);
}
-function WI() {
+function GI() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = `<span class="geist-button ui-organize-preset-skeleton">${zI}</span>`.repeat(3), n = (e) => `<div class="ui-organizefield"><span>${e}</span>
- <span class="geist-input ui-organize-input-skeleton">${zI}</span></div>`;
+ ], t = `<span class="geist-button ui-organize-preset-skeleton">${BI}</span>`.repeat(3), n = (e) => `<div class="ui-organizefield"><span>${e}</span>
+ <span class="geist-input ui-organize-input-skeleton">${BI}</span></div>`;
return `<div class="ui-cleanuppage" data-skeleton="cleanup" aria-busy="true" aria-label="正在读取数据管理状态">
<div class="ui-cleanupstats">${e.map(([e, t]) => `
<button type="button" class="board-plain-stat" disabled>
<span class="ui-board-plain-stat-head"><span class="ui-board-stat-tile">${R(t)}</span>${e}</span>
- <strong>${zI}</strong><span class="cleanupmeta">${zI}</span></button>`).join("")}</div>
+ <strong>${BI}</strong><span class="cleanupmeta">${BI}</span></button>`).join("")}</div>
<div class="cleanupgrid">
- <div class="cleanupscraping">${DSe()}</div>
- <div class="cleanupmediarepair">${OSe()}</div>
+ <div class="cleanupscraping">${ESe()}</div>
+ <div class="cleanupmediarepair">${DSe()}</div>
<section class="cleanupfieldset cleanuporganize" data-geist-fieldset data-cleanup-task aria-labelledby="cleanup-loading-organize">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-organize">整理</h3>
<p>按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
<div class="ui-organizefields">
- <div class="organizesource"><span class="ui-gselect"><span class="gselectfield organize-source-skeleton">${zI}${R("chevron-down")}</span></span></div>
+ <div class="organizesource"><span class="ui-gselect"><span class="gselectfield organize-source-skeleton">${BI}${R("chevron-down")}</span></span></div>
${n("文件名模板")}
${n("目录模板")}
<div class="ui-organizepresets">${t}</div>
- <p class="cleanupmeta">${zI}</p>
+ <p class="cleanupmeta">${BI}</p>
</div></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${BI}>预览</button></footer>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${VI}>预览</button></footer>
</section></div>
<section class="ui-resourcesync" aria-labelledby="cleanup-loading-links">
<h2 id="cleanup-loading-links">链接管理</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task data-fieldset-stack>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">站外链接</h3>
- <div class="linksummary"><div class="ui-linkstats"><div><span>链接总数</span><b>${zI}</b><small>${zI}</small></div>${[
+ <div class="linksummary"><div class="ui-linkstats"><div><span>链接总数</span><b>${BI}</b><small>${BI}</small></div>${[
"官网/事务所",
"社交账号",
"作品资料站"
- ].map((e) => `<div><span>${e}</span><b>${zI}</b></div>`).join("")}</div>
- <div class="ui-linkhosts"><span>主要站点</span><b>${zI}</b></div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${BI}>${R("unlink")}<span>检查死链</span></button></div>
+ ].map((e) => `<div><span>${e}</span><b>${BI}</b></div>`).join("")}</div>
+ <div class="ui-linkhosts"><span>主要站点</span><b>${BI}</b></div></div></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${VI}>${R("unlink")}<span>检查死链</span></button></div>
</div></section>
<section class="ui-resourcesync" aria-labelledby="cleanup-loading-sync">
<h2 id="cleanup-loading-sync">资源同步</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
<p>按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${BI}>${R("git-compare")}<span>检查文件</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${VI}>${R("git-compare")}<span>检查文件</span></button></div>
</div></section></div>`;
}
//#endregion
//#region src/react/components/fieldset.tsx
-var kSe = Dk({
+var OSe = Ok({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), ASe = {
+}), kSe = {
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"
-}, jSe = {
+}, ASe = {
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"
-}, MSe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", NSe = {
+}, jSe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", MSe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, PSe = Dk({
+}, NSe = Ok({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), GI = "border-t border-border-button-default p-4 first:border-t-0";
-function KI({ tone: e = "neutral", status: t, children: n }) {
+}), KI = "border-t border-border-button-default p-4 first:border-t-0";
+function qI({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: `${MSe} ${NSe[e]}`,
+ className: `${jSe} ${MSe[e]}`,
children: [t ? /* @__PURE__ */ (0, x.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 qI({ id: e, children: t }) {
+function JI({ id: e, children: t }) {
return /* @__PURE__ */ (0, x.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function JI({ id: e, gap: t = "none", children: n }) {
+function YI({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, x.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function YI({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function XI({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, x.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${kSe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${OSe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, x.jsx)("div", {
- className: ASe[e],
+ className: kSe[e],
children: a
}), i ? /* @__PURE__ */ (0, x.jsx)("footer", {
- className: jSe[e],
+ className: ASe[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function XI() {
+function ZI() {
let e = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
wa(e.current);
@@ -48802,7 +48802,7 @@ function XI() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var ZI = Sk({
+var QI = Ck({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -48823,21 +48823,21 @@ var ZI = Sk({
small: "size-4 shrink-0"
}
});
-function QI({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function $I({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, x.jsx)("button", {
ref: i,
type: r,
- className: xk(ZI.base, ZI.size[t], n),
+ className: Sk(QI.base, QI.size[t], n),
...a,
children: /* @__PURE__ */ (0, x.jsx)(e, {
- className: ZI.icon[t],
+ className: QI.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function FSe({ className: e }) {
+function PSe({ className: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -48850,8 +48850,8 @@ function FSe({ className: e }) {
children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-folder-open" })
});
}
-var ISe = "打开文件管理器失败,请重试";
-function $I({ path: e, prefix: t, className: n, onRevealed: r }) {
+var FSe = "打开文件管理器失败,请重试";
+function eL({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, b.useState)(!1), [o, s] = (0, b.useState)(""), c = (0, b.useRef)(!0);
(0, b.useEffect)(() => () => {
c.current = !1;
@@ -48862,7 +48862,7 @@ function $I({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await H("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof un ? e.message : ISe);
+ c.current && s(e instanceof un ? e.message : FSe);
} finally {
c.current && a(!1);
}
@@ -48873,10 +48873,10 @@ function $I({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, x.jsxs)("p", {
- className: xk("min-w-0 break-all", n),
+ className: Sk("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, x.jsx)(QI, {
- icon: FSe,
+ }), /* @__PURE__ */ (0, x.jsx)($I, {
+ icon: PSe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -48891,38 +48891,38 @@ function $I({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function eL({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function tL({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : Dk({
+ className: r ? "flex flex-col gap-1.5" : Ok({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Mk, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Nk, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, x.jsx)(kk, { label: e })
+ })] }) : /* @__PURE__ */ (0, x.jsx)(Ak, { label: e })
});
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function tL({ toast: e, mode: t, monitor: n }) {
+function ISe({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = dt({
- queryKey: iF,
- queryFn: ({ signal: e }) => aF(e),
- refetchInterval: (e) => Kbe(e.state.data, r)
+ queryKey: aF,
+ queryFn: ({ signal: e }) => oF(e),
+ refetchInterval: (e) => Gbe(e.state.data, r)
}), [a, o] = (0, b.useState)(null), s = (0, b.useRef)(void 0), c = i.data;
return (0, b.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && Zbe(c, e, r);
+ r && o(c), (r || t === "notice") && Xbe(c, e, r);
}, [
c,
t,
@@ -48938,20 +48938,20 @@ function tL({ toast: e, mode: t, monitor: n }) {
var LSe = [
{
label: "扫描并补全资料",
- icon: GO,
+ icon: KO,
command: {}
},
{
label: "只扫描",
- icon: JO,
+ icon: YO,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: ihe,
+ icon: rhe,
command: { stage: "collect" }
}
-], RSe = xk(kI, AI, "text-body-2-medium"), zSe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", BSe = (e) => {
+], RSe = Sk(AI, jI, "text-body-2-medium"), zSe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", BSe = (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} 张`];
@@ -48966,14 +48966,14 @@ function HSe({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, x.jsx)(G, {
- leadingIcon: GO,
+ leadingIcon: KO,
onClick: () => a({}),
...q(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, x.jsx)(G, {
ref: n,
iconOnly: !0,
- leadingIcon: BO,
+ leadingIcon: VO,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -48982,14 +48982,14 @@ function HSe({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, x.jsx)(fM, {
+ }), /* @__PURE__ */ (0, x.jsx)(pM, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: OI,
- children: /* @__PURE__ */ (0, x.jsx)(DI, {
+ className: kI,
+ children: /* @__PURE__ */ (0, x.jsx)(OI, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: LSe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, x.jsxs)("button", {
@@ -49005,7 +49005,7 @@ function HSe({ busy: e, onRun: t }) {
})] });
}
function USe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Ybe(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Jbe(e.notes || {}), c = XI();
+ let a = Jbe(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = qbe(e.notes || {}), c = ZI();
return /* @__PURE__ */ (0, x.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -49025,7 +49025,7 @@ function USe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, x.jsxs)(Yk, {
+ children: /* @__PURE__ */ (0, x.jsxs)(Xk, {
summary: a.label,
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "relative",
@@ -49056,7 +49056,7 @@ function USe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, x.jsx)($I, {
+ children: /* @__PURE__ */ (0, x.jsx)(eL, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -49076,7 +49076,7 @@ function USe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, x.jsx)($I, {
+ children: /* @__PURE__ */ (0, x.jsx)(eL, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -49089,34 +49089,34 @@ function USe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
});
}
function WSe(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = tL(e), o = ft({
- mutationFn: (e) => H(rF, e),
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = ISe(e), o = ft({
+ mutationFn: (e) => H(iF, e),
onSuccess: (e) => {
- a(), U.setQueryData(iF, e), U.invalidateQueries({ queryKey: iF });
+ a(), U.setQueryData(aF, e), U.invalidateQueries({ queryKey: aF });
}
});
(0, b.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? B(o.error) : r.isError ? r.data ? sF : B(r.error) : "", l = o.isPending || s.status === "running", u = lF(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? B(o.error) : r.isError ? r.data ? cF : B(r.error) : "", l = o.isPending || s.status === "running", u = uF(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, x.jsx)(YI, {
+ children: [/* @__PURE__ */ (0, x.jsx)(XI, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(Rk, {
+ /* @__PURE__ */ (0, x.jsx)(zk, {
href: "/sources",
size: "small",
- trailingIcon: VO,
+ trailingIcon: HO,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, x.jsx)(Rk, {
+ s.candidates ? /* @__PURE__ */ (0, x.jsx)(zk, {
href: "/review",
size: "small",
- trailingIcon: VO,
+ trailingIcon: HO,
children: "复核资料"
}) : null,
/* @__PURE__ */ (0, x.jsx)(HSe, {
@@ -49127,12 +49127,12 @@ function WSe(e) {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(JI, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, x.jsx)(YI, { children: "扫描与采集" }),
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: LI
+ children: RI
}),
- s.status === "running" ? /* @__PURE__ */ (0, x.jsx)(eL, {
+ s.status === "running" ? /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
label: u,
value: Math.min(s.checked || 0, s.total || 0),
@@ -49217,27 +49217,27 @@ function nL({ className: e, triggerClassName: t, popoverClassName: n, size: r =
let l = (0, b.useRef)(null), u = (0, b.useRef)(null), [d, f] = (0, b.useState)(!1);
qSe(d, () => f(!1), [l, u]);
let p = JSe(d, l);
- return /* @__PURE__ */ (0, x.jsx)(yve, {
+ return /* @__PURE__ */ (0, x.jsx)(vve, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: xk("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)(GA, {
+ className: Sk("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)(KA, {
ref: l,
- className: xk("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, x.jsx)(Sve, {
- className: xk("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: Sk("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, x.jsx)(xve, {
+ className: Sk("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, x.jsx)(GSe, { className: xk("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, x.jsx)(fM, {
+ }), /* @__PURE__ */ (0, x.jsx)(GSe, { className: Sk("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, x.jsx)(pM, {
ref: u,
isNonModal: !0,
offset: 4,
- className: xk(pSe, OI, "p-2", n),
- children: /* @__PURE__ */ (0, x.jsx)(B_e, {
+ className: Sk(fSe, kI, "p-2", n),
+ children: /* @__PURE__ */ (0, x.jsx)(z_e, {
items: a,
- className: xk(mSe, "max-h-[240px] overflow-auto"),
+ className: Sk(pSe, "max-h-[240px] overflow-auto"),
children: /* @__PURE__ */ (0, x.jsx)(YSe.Provider, {
value: r,
children: i
@@ -49248,9 +49248,9 @@ function nL({ className: e, triggerClassName: t, popoverClassName: n, size: r =
}
function rL({ className: e, children: t, ...n }) {
let r = (0, b.useContext)(YSe);
- return /* @__PURE__ */ (0, x.jsx)(U_e, {
+ return /* @__PURE__ */ (0, x.jsx)(H_e, {
...n,
- className: (t) => xk(kI, 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) => Sk(AI, 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
});
}
@@ -49292,29 +49292,29 @@ function iL(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var $Se = (e) => eo[e] || e, eCe = (e) => U.setQueryData(fF, e);
+var $Se = (e) => eo[e] || e, eCe = (e) => U.setQueryData(pF, e);
function tCe() {
let e = dt({
- queryKey: fF,
- queryFn: ({ signal: e }) => mF(e),
+ queryKey: pF,
+ queryFn: ({ signal: e }) => hF(e),
refetchInterval: (e) => e.state.data?.status === "running" && XSe
}), t = dt({
- queryKey: pF,
- queryFn: ({ signal: e }) => hF(e)
- }), [n, r] = (0, b.useState)(""), i = Nk(), a = e.data ?? Qbe, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+ queryKey: mF,
+ queryFn: ({ signal: e }) => gF(e)
+ }), [n, r] = (0, b.useState)(""), i = Pk(), a = e.data ?? Zbe, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && ms({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => eCe(await H(dF, {
+ onConfirm: async () => eCe(await H(fF, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => H(dF, { stop: !0 }, "POST", e), eCe), d = exe(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => H(fF, { stop: !0 }, "POST", e), eCe), d = $be(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, x.jsx)(YI, {
+ children: [/* @__PURE__ */ (0, x.jsx)(XI, {
layout: "split",
label: "媒体修复",
footer: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(nL, {
@@ -49328,7 +49328,7 @@ function tCe() {
children: o.map((e) => /* @__PURE__ */ (0, x.jsxs)(rL, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, x.jsx)(Xk, { mark: $Se(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, x.jsx)(Zk, { mark: $Se(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, x.jsx)(G, {
onClick: u,
@@ -49342,12 +49342,12 @@ function tCe() {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(JI, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, x.jsx)(YI, { children: "媒体修复" }),
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: RI
+ children: zI
}),
- s && a.total ? /* @__PURE__ */ (0, x.jsx)(Mk, {
+ s && a.total ? /* @__PURE__ */ (0, x.jsx)(Nk, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -49371,7 +49371,7 @@ function tCe() {
f && a.missing_tool ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "warning",
title: "缺少 untrunc",
- children: txe(a)
+ children: exe(a)
}) : null,
p ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
@@ -49401,7 +49401,7 @@ function rCe({ state: e, size: t = "md" }) {
let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = nCe[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
- className: xk("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? xk("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : xk("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Sk("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Sk("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Sk("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -49427,15 +49427,15 @@ function rCe({ state: e, size: t = "md" }) {
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
function aL({ className: e, children: t, size: n = "md", ref: r, ...i }) {
let a = nCe[n];
- return /* @__PURE__ */ (0, x.jsx)(O_e, {
+ return /* @__PURE__ */ (0, x.jsx)(D_e, {
ref: r,
...i,
- className: (t) => xk("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ className: (t) => Sk("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, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(rCe, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, x.jsx)("span", {
- className: xk(a.label, "text-text-primary"),
+ className: Sk(a.label, "text-text-primary"),
children: t
})] })
});
@@ -49444,11 +49444,11 @@ function aL({ className: e, children: t, size: n = "md", ref: r, ...i }) {
//#region src/react/boardui/components/base/table/table.tsx
function oL({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
- className: xk("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, x.jsx)(Ive, {
+ className: Sk("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, x.jsx)(Fve, {
ref: r,
...i,
- className: xk("bui-table", e === "sm" && "bui-table-sm", t)
+ className: Sk("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
@@ -49462,14 +49462,14 @@ function sL({ 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 && fP(e, r) && n(r.dataset.key);
+ r && pP(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var iCe = yN("unlink"), aCe = yN("rotate-cw"), oCe = "站点返回 404 或 410,确认这个地址不存在。", sCe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", cCe = "删除前会逐条重验一次;此操作不可撤销。", lCe = "暂时无法读取进度,正在重新连接…", cL = (e) => Number(e || 0).toLocaleString();
+var iCe = bN("unlink"), aCe = bN("rotate-cw"), oCe = "站点返回 404 或 410,确认这个地址不存在。", sCe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", cCe = "删除前会逐条重验一次;此操作不可撤销。", lCe = "暂时无法读取进度,正在重新连接…", cL = (e) => Number(e || 0).toLocaleString();
function uCe({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
@@ -49494,7 +49494,7 @@ function dCe({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
if (!t.length) return null;
let c = r ?? [], l = c.length > 0 && c.length === t.length, u = o ? t : t.slice(0, 10), d = t.length > 10;
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: GI,
+ className: KI,
children: [
/* @__PURE__ */ (0, x.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -49510,8 +49510,8 @@ function dCe({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
/* @__PURE__ */ (0, x.jsx)(sL, { children: /* @__PURE__ */ (0, x.jsxs)(oL, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsxs)(JM, { children: [
- i ? /* @__PURE__ */ (0, x.jsx)(YM, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(YM, { children: [
+ i ? /* @__PURE__ */ (0, x.jsx)(XM, {
id: "pick",
children: /* @__PURE__ */ (0, x.jsx)(aL, {
slot: null,
@@ -49521,53 +49521,53 @@ function dCe({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, x.jsx)(ZM, { children: u.map((e) => /* @__PURE__ */ (0, x.jsxs)(eN, {
+ ] }), /* @__PURE__ */ (0, x.jsx)(QM, { children: u.map((e) => /* @__PURE__ */ (0, x.jsxs)(tN, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)(aL, {
+ i ? /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)(aL, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: c.includes(e.id),
onChange: (t) => i(t ? [...c, e.id] : c.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "block min-w-24 wrap-anywhere",
children: e.entity
}) }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: LF[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: RF[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "block min-w-24 wrap-anywhere",
children: e.label || ""
}) }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)("div", {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-40 max-w-80",
- children: /* @__PURE__ */ (0, x.jsx)(mA, {
+ children: /* @__PURE__ */ (0, x.jsx)(hA, {
text: e.note,
className: "tabular-nums text-text-error-primary"
})
}) }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsxs)("a", {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -49577,7 +49577,7 @@ function dCe({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, x.jsx)(qO, {
+ }), /* @__PURE__ */ (0, x.jsx)(JO, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -49601,25 +49601,25 @@ function dCe({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
}
function fCe() {
let e = dt({
- queryKey: PF,
- queryFn: ({ signal: e }) => zF(e)
+ queryKey: FF,
+ queryFn: ({ signal: e }) => BF(e)
}), [t, n] = (0, b.useState)([]), r = iL({
- queryKey: IF,
- queryFn: ({ signal: e }) => VF(e),
- start: Dxe,
+ queryKey: LF,
+ queryFn: ({ signal: e }) => HF(e),
+ start: Exe,
onFinish: () => {
U.invalidateQueries({
- queryKey: PF,
+ queryKey: FF,
exact: !0
}), U.invalidateQueries({
- queryKey: FF,
+ queryKey: IF,
exact: !0
});
}
}), i = iL({
- queryKey: FF,
- queryFn: ({ signal: e }) => BF(e),
- start: Exe,
+ queryKey: IF,
+ queryFn: ({ signal: e }) => VF(e),
+ start: Txe,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -49649,7 +49649,7 @@ function fCe() {
else if (_) S = /* @__PURE__ */ (0, x.jsx)(K, {
tone: "success",
title: "完成",
- children: Oxe(_)
+ children: Dxe(_)
});
else if (v) S = /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
@@ -49667,12 +49667,12 @@ function fCe() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- y = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, x.jsx)(eL, {
+ y = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
- label: kxe(a),
+ label: Oxe(a),
value: Math.min(a.checked || 0, a.total || 0),
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, x.jsx)(eL, {
+ }) : null, c ? /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: Math.min(r.job?.checked || 0, r.job?.total || 0),
@@ -49680,7 +49680,7 @@ function fCe() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
S = l || u.length || d.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
- className: PSe,
+ className: NSe,
children: [
/* @__PURE__ */ (0, x.jsx)(dCe, {
title: "地址已失效",
@@ -49695,7 +49695,7 @@ function fCe() {
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, x.jsxs)(KI, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
+ children: /* @__PURE__ */ (0, x.jsxs)(qI, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
leadingIcon: aCe,
disabled: !t.length,
...q(s),
@@ -49709,7 +49709,7 @@ function fCe() {
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, x.jsx)(KI, {
+ l && u.length ? /* @__PURE__ */ (0, x.jsx)(qI, {
tone: "error",
status: cCe,
children: /* @__PURE__ */ (0, x.jsx)(G, {
@@ -49720,7 +49720,7 @@ function fCe() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, x.jsx)("p", {
- className: `${GI} text-body-regular text-notification-success-foreground`,
+ className: `${KI} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -49731,11 +49731,11 @@ function fCe() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, x.jsx)(qI, {
+ /* @__PURE__ */ (0, x.jsx)(JI, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, x.jsxs)(YI, {
+ /* @__PURE__ */ (0, x.jsxs)(XI, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, x.jsx)(G, {
@@ -49745,7 +49745,7 @@ function fCe() {
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, x.jsx)(JI, {
+ /* @__PURE__ */ (0, x.jsx)(YI, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -49761,7 +49761,7 @@ function fCe() {
value: cL(p.total),
note: `分布在 ${cL(p.entities)} 个女优、厂牌与系列`
}), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(uCe, {
- label: LF[e] || e,
+ label: RF[e] || e,
value: cL(t)
}, e))]
}), m ? /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -49802,7 +49802,7 @@ function gCe({ plan: e }) {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: $F(e.current_path)
+ children: eI(e.current_path)
}),
/* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
@@ -49812,7 +49812,7 @@ function gCe({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: $F(e.target_path)
+ children: eI(e.target_path)
})
]
}, e.current_path))
@@ -49823,8 +49823,8 @@ function gCe({ plan: e }) {
}
function _Ce({ toast: e, failure: t }) {
let n = dt({
- queryKey: ZF,
- queryFn: ({ signal: e }) => QF(e)
+ queryKey: QF,
+ queryFn: ({ signal: e }) => $F(e)
}), r = n.data, i = r?.locations ?? [], [a, o] = (0, b.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, b.useState)(null), d = l?.location === s ? l : {
location: s,
file: c?.file ?? "",
@@ -49837,24 +49837,24 @@ function _Ce({ toast: e, failure: t }) {
file_template: d.file.trim(),
dir_template: d.dir.trim()
}), v = ft({
- mutationFn: Bxe,
+ mutationFn: zxe,
onError: (e) => {
- let t = Wxe.test(B(e)) ? "dir" : "file";
+ let t = Uxe.test(B(e)) ? "dir" : "file";
m(t), (t === "dir" ? g : h).current?.focus();
}
}), y = iL({
- queryKey: ZF,
- queryFn: ({ signal: e }) => QF(e),
- start: Vxe,
+ queryKey: QF,
+ queryFn: ({ signal: e }) => $F(e),
+ start: Bxe,
jobOf: (e) => e,
- withJob: Uxe,
+ withJob: Hxe,
onStarted: () => v.reset(),
onFinish: (n) => {
if (U.invalidateQueries({
- queryKey: ZF,
+ queryKey: QF,
exact: !0
}), n.status !== "complete") return;
- let { text: r, failed: i } = tI(n);
+ let { text: r, failed: i } = nI(n);
i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));
}
}), S = y.running || y.start.isPending, C = v.data, w = Number(C?.counts?.change || 0), T = an[s] || s, E = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), D = () => {
@@ -49868,7 +49868,7 @@ function _Ce({ toast: e, failure: t }) {
await y.start.mutateAsync({
kind: "apply",
request: e
- }), Hxe({
+ }), Vxe({
...r?.templates ?? {},
[e.location]: {
file: e.file_template,
@@ -49884,7 +49884,7 @@ function _Ce({ toast: e, failure: t }) {
}), A = null, j = y.job, M = y.outcome;
if (j?.status === "running") {
let e = j.message || j.stage || "正在整理文件…";
- A = /* @__PURE__ */ (0, x.jsx)(eL, {
+ A = /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
label: e,
value: Math.min(j.checked || 0, j.total || 0),
@@ -49896,7 +49896,7 @@ function _Ce({ toast: e, failure: t }) {
children: M.error || "请查看任务记录,核对已处理的文件。"
});
else if (M) {
- let { text: e, failed: t } = tI(M);
+ let { text: e, failed: t } = nI(M);
A = /* @__PURE__ */ (0, x.jsx)(K, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -49906,7 +49906,7 @@ function _Ce({ toast: e, failure: t }) {
tone: "error",
title: "整理失败",
children: B(y.start.error)
- }) : v.isPending ? A = /* @__PURE__ */ (0, x.jsx)(eL, {
+ }) : v.isPending ? A = /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
label: "正在按模板算计划…"
}) : v.isError ? A = /* @__PURE__ */ (0, x.jsx)(K, {
@@ -49916,9 +49916,9 @@ function _Ce({ toast: e, failure: t }) {
}) : C && (A = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
title: "预览结果",
- children: Gxe(C)
+ children: Wxe(C)
}), w ? /* @__PURE__ */ (0, x.jsx)(gCe, { plan: C }) : null] }));
- return /* @__PURE__ */ (0, x.jsxs)(YI, {
+ return /* @__PURE__ */ (0, x.jsxs)(XI, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -49942,7 +49942,7 @@ function _Ce({ toast: e, failure: t }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, x.jsx)(JI, {
+ /* @__PURE__ */ (0, x.jsx)(YI, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -49972,10 +49972,10 @@ function _Ce({ toast: e, failure: t }) {
children: i.map((e) => /* @__PURE__ */ (0, x.jsxs)(rL, {
id: e.location,
textValue: an[e.location] || e.location,
- children: [/* @__PURE__ */ (0, x.jsx)(Xk, { mark: eo[e.location] || "database" }), an[e.location] || e.location]
+ children: [/* @__PURE__ */ (0, x.jsx)(Zk, { mark: eo[e.location] || "database" }), an[e.location] || e.location]
}, e.location))
}) : null,
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: d.file,
@@ -49986,7 +49986,7 @@ function _Ce({ toast: e, failure: t }) {
f({ file: e }), m(null);
}
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: d.dir,
@@ -50041,14 +50041,14 @@ var vCe = "/api/orphan-records", yCe = "/api/orphan-records/attach", bCe = ["orp
], SCe = (e) => V(vCe, e), CCe = (e, t) => H(yCe, {
id: e,
target: t
-}), wCe = (e) => H(QP, {
+}), wCe = (e) => H($P, {
ids: [e],
operation: "delete"
}), TCe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], ECe = (e) => [...xCe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...TCe(e)].filter(Boolean).join(" · "), DCe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", OCe = (e) => [e.name, DCe(e.duration)].filter(Boolean).join(" · "), kCe = yN("play"), ACe = () => U.invalidateQueries({
+], ECe = (e) => [...xCe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...TCe(e)].filter(Boolean).join(" · "), DCe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", OCe = (e) => [e.name, DCe(e.duration)].filter(Boolean).join(" · "), kCe = bN("play"), ACe = () => U.invalidateQueries({
queryKey: bCe,
exact: !0
});
@@ -50073,10 +50073,10 @@ function jCe({ item: e, toast: t }) {
onConfirm: () => a.mutateAsync()
});
}, s = i.isPending || a.isPending;
- return /* @__PURE__ */ (0, x.jsxs)(eN, {
+ return /* @__PURE__ */ (0, x.jsxs)(tN, {
id: e.id,
children: [
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsxs)("span", {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, x.jsxs)("span", {
className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",
@@ -50102,11 +50102,11 @@ function jCe({ item: e, toast: t }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "block min-w-28",
children: ECe(e.records)
}) }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: e.candidates.length ? /* @__PURE__ */ (0, x.jsx)(nL, {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: e.candidates.length ? /* @__PURE__ */ (0, x.jsx)(nL, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
className: "w-52",
selectedKey: n,
@@ -50122,7 +50122,7 @@ function jCe({ item: e, toast: t }) {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsxs)("span", {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [e.candidates.length ? /* @__PURE__ */ (0, x.jsx)(G, {
size: "small",
@@ -50151,14 +50151,14 @@ function MCe({ toast: e }) {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, x.jsx)(qI, {
+ children: [/* @__PURE__ */ (0, x.jsx)(JI, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, x.jsxs)(YI, {
+ }), /* @__PURE__ */ (0, x.jsxs)(XI, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, x.jsx)(JI, {
+ /* @__PURE__ */ (0, x.jsx)(YI, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -50174,25 +50174,25 @@ function MCe({ toast: e }) {
}) : /* @__PURE__ */ (0, x.jsx)(sL, { children: /* @__PURE__ */ (0, x.jsxs)(oL, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsxs)(JM, { children: [
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(YM, { children: [
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, x.jsx)(ZM, { children: n.map((t) => /* @__PURE__ */ (0, x.jsx)(jCe, {
+ ] }), /* @__PURE__ */ (0, x.jsx)(QM, { children: n.map((t) => /* @__PURE__ */ (0, x.jsx)(jCe, {
item: t,
toast: e
}, t.id)) })]
@@ -50207,7 +50207,7 @@ function MCe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var NCe = yN("git-compare"), PCe = yN("rotate-cw"), FCe = "暂时无法读取进度,正在重新连接…", lL = "清理失效条目", ICe = "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", uL = (e) => Number(e || 0).toLocaleString();
+var NCe = bN("git-compare"), PCe = bN("rotate-cw"), FCe = "暂时无法读取进度,正在重新连接…", lL = "清理失效条目", ICe = "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", uL = (e) => Number(e || 0).toLocaleString();
function LCe({ scan: e }) {
let t = e.cache ?? {
files: 0,
@@ -50216,16 +50216,16 @@ function LCe({ scan: e }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: ICe,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, x.jsx)("article", {
- className: wI(),
- children: /* @__PURE__ */ (0, x.jsx)(TI, {
- label: Xxe[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, x.jsx)(Xk, { mark: eo[e.location] ?? "database" }),
+ className: TI(),
+ children: /* @__PURE__ */ (0, x.jsx)(EI, {
+ label: Yxe[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, x.jsx)(Zk, { mark: eo[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, x.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
figure: e.online ? `${uL(e.missing)} 项` : "—",
- meta: eSe(e),
+ meta: $xe(e),
wrapMeta: !0
})
}, e.location))
@@ -50233,32 +50233,32 @@ function LCe({ scan: e }) {
className: ICe,
children: [
/* @__PURE__ */ (0, x.jsx)("article", {
- className: wI(),
- children: /* @__PURE__ */ (0, x.jsx)(TI, {
+ className: TI(),
+ children: /* @__PURE__ */ (0, x.jsx)(EI, {
label: "待永久删除",
- figure: `${uL(uI(e))} 项`,
+ figure: `${uL(dI(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, x.jsx)("article", {
- className: wI(),
- children: /* @__PURE__ */ (0, x.jsx)(TI, {
+ className: TI(),
+ children: /* @__PURE__ */ (0, x.jsx)(EI, {
label: "将标为已消失",
figure: `${uL(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, x.jsx)("article", {
- className: wI(),
- children: /* @__PURE__ */ (0, x.jsx)(TI, {
+ className: TI(),
+ children: /* @__PURE__ */ (0, x.jsx)(EI, {
label: "空文件夹",
figure: `${uL(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, x.jsx)("article", {
- className: wI(),
- children: /* @__PURE__ */ (0, x.jsx)(TI, {
+ className: TI(),
+ children: /* @__PURE__ */ (0, x.jsx)(EI, {
label: "可清理的缓存",
figure: `${uL(t.files)} 个`,
meta: t.files ? Qt(t.bytes) : ""
@@ -50269,37 +50269,37 @@ function LCe({ scan: e }) {
}
function RCe({ toast: e }) {
let t = iL({
- queryKey: aI,
- queryFn: ({ signal: e }) => sI(e),
- start: qxe,
+ queryKey: oI,
+ queryFn: ({ signal: e }) => cI(e),
+ start: Kxe,
onFinish: (t) => {
if (U.invalidateQueries({
- queryKey: _I,
+ queryKey: vI,
exact: !0
}), U.invalidateQueries({
- queryKey: iI,
+ queryKey: aI,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = pI(t);
+ let { done: n, left: r } = mI(t);
r ? e(`已完成 ${uL(n)} 项,${uL(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
}), n = iL({
- queryKey: iI,
- queryFn: ({ signal: e }) => oI(e),
- start: Kxe,
+ queryKey: aI,
+ queryFn: ({ signal: e }) => sI(e),
+ start: Gxe,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void ms({
title: lL,
- body: $xe(e),
+ body: Qxe(e),
confirmLabel: lL,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), l = t.outcome, u = (e) => {
- let t = pI(e).left > 0;
+ let t = mI(e).left > 0;
return /* @__PURE__ */ (0, x.jsx)(K, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: tSe(e, Qt)
+ children: eSe(e, Qt)
});
}, d = null, f = null;
if (l?.status === "failed") f = /* @__PURE__ */ (0, x.jsx)(K, {
@@ -50308,7 +50308,7 @@ function RCe({ toast: e }) {
children: l.error || "请查看任务记录,核对已处理的文件。"
});
else if (l) f = u(l);
- else if (t.running) d = /* @__PURE__ */ (0, x.jsx)(eL, {
+ else if (t.running) d = /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -50323,8 +50323,8 @@ function RCe({ toast: e }) {
children: FCe
});
else if (r?.status === "running") {
- let e = Zxe(r);
- d = /* @__PURE__ */ (0, x.jsx)(eL, {
+ let e = Xxe(r);
+ d = /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -50341,13 +50341,13 @@ function RCe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Yxe(r);
+ let e = Jxe(r);
f = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsx)(LCe, { scan: r }),
e ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
title: "清理内容",
- children: Qxe(r)
+ children: Zxe(r)
}) : null,
/* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -50372,11 +50372,11 @@ function RCe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, x.jsx)(qI, {
+ /* @__PURE__ */ (0, x.jsx)(JI, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, x.jsxs)(YI, {
+ /* @__PURE__ */ (0, x.jsxs)(XI, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, x.jsx)(G, {
@@ -50389,7 +50389,7 @@ function RCe({ toast: e }) {
children: s
}),
children: [
- /* @__PURE__ */ (0, x.jsx)(JI, {
+ /* @__PURE__ */ (0, x.jsx)(YI, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -50421,10 +50421,10 @@ function dL(e, t) {
function fL({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
- className: wI({ interactive: !0 }),
+ className: TI({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, x.jsx)(TI, {
+ children: /* @__PURE__ */ (0, x.jsx)(EI, {
label: t,
icon: n,
figure: r.figure,
@@ -50432,10 +50432,10 @@ function fL({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var zCe = yN("square-check-big"), BCe = yN("sparkles"), VCe = yN("file-stack"), HCe = yN("file-archive"), UCe = yN("trash"), WCe = [
- mI,
- _F,
- ZP
+var zCe = bN("square-check-big"), BCe = bN("sparkles"), VCe = bN("file-stack"), HCe = bN("file-archive"), UCe = bN("trash"), WCe = [
+ hI,
+ vF,
+ QP
], GCe = () => {
for (let e of WCe) U.invalidateQueries({
queryKey: e,
@@ -50444,34 +50444,34 @@ var zCe = yN("square-check-big"), BCe = yN("sparkles"), VCe = yN("file-stack"),
};
function KCe({ toast: e, failure: t, open: n }) {
let r = dt({
- queryKey: mI,
- queryFn: ({ signal: e }) => vI(e)
+ queryKey: hI,
+ queryFn: ({ signal: e }) => yI(e)
}), i = dt({
- queryKey: _F,
- queryFn: ({ signal: e }) => vF(e)
+ queryKey: vF,
+ queryFn: ({ signal: e }) => yF(e)
}), a = dt({
- queryKey: ZP,
- queryFn: ({ signal: e }) => $P(e)
+ queryKey: QP,
+ queryFn: ({ signal: e }) => eF(e)
}), o = dt({
- queryKey: hI,
- queryFn: ({ signal: e }) => yI(e)
- }), s = dt({
- queryKey: _I,
+ queryKey: gI,
queryFn: ({ signal: e }) => bI(e)
+ }), s = dt({
+ queryKey: vI,
+ queryFn: ({ signal: e }) => xI(e)
}), c = dt({
queryKey: xn,
queryFn: ({ signal: e }) => Sn(e)
}), l = (t) => e(t);
- return /* @__PURE__ */ (0, x.jsxs)(Ak, { children: [
+ return /* @__PURE__ */ (0, x.jsxs)(jk, { children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
- className: fSe,
+ className: dSe,
children: [
/* @__PURE__ */ (0, x.jsx)(fL, {
section: "review",
label: "人工复核",
icon: zCe,
open: n,
- value: dL(r, aSe)
+ value: dL(r, iSe)
}),
/* @__PURE__ */ (0, x.jsx)(fL, {
section: "quality",
@@ -50497,7 +50497,7 @@ function KCe({ toast: e, failure: t, open: n }) {
open: n,
value: dL(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: oSe(e)
+ meta: aSe(e)
}))
}),
/* @__PURE__ */ (0, x.jsx)(fL, {
@@ -50536,7 +50536,7 @@ function KCe({ toast: e, failure: t, open: n }) {
}),
/* @__PURE__ */ (0, x.jsx)(fCe, {}),
/* @__PURE__ */ (0, x.jsx)(MCe, { toast: l }),
- cI(c.data) ? /* @__PURE__ */ (0, x.jsx)(RCe, { toast: e }) : null
+ lI(c.data) ? /* @__PURE__ */ (0, x.jsx)(RCe, { toast: e }) : null
] });
}
//#endregion
@@ -50688,7 +50688,7 @@ var SL = [
], swe = "mb-4 flex flex-wrap gap-2";
function cwe(e) {
let t = SL.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${swe}">${SL.map(([e, n]) => PI({
+ return `<div class="peach-react"><div aria-label="身份分类" class="${swe}">${SL.map(([e, n]) => FI({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -50870,14 +50870,14 @@ function Mwe({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Nwe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Pwe = yN("rss");
+var Nwe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Pwe = bN("rss");
function Fwe({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: Dk({
+ className: Ok({
radius: "plain",
padding: "none",
interactive: !0,
@@ -50890,7 +50890,7 @@ function Fwe({ name: e, readout: t, big: n, children: r, following: i, onPress:
role: "img",
"aria-label": "已订阅新作",
className: "absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, x.jsx)(wk, {
+ children: /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, x.jsx)(Pwe, {})
@@ -51450,18 +51450,18 @@ function nTe({ roster: e, props: t }) {
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, x.jsx)(JP, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, x.jsx)(YP, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
function rTe(e) {
- let t = lP(!e.items, e.skeletonHtml);
+ let t = uP(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, x.jsx)(qP, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, x.jsx)(JP, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -51545,7 +51545,7 @@ function cTe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, x.jsx)(JP, {
+ e.hasMore ? /* @__PURE__ */ (0, x.jsx)(YP, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
@@ -51602,7 +51602,7 @@ function NL({ name: e, actions: t, children: n, ...r }) {
}
var fTe = ({ provider: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: BN(e) }
+ dangerouslySetInnerHTML: { __html: VN(e) }
});
function pTe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, b.useState)(!1), [l, u] = (0, b.useState)(!1), [d, f] = (0, b.useState)(null);
@@ -51628,7 +51628,7 @@ function pTe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
});
}
function mTe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = fi(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Cye(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? mi(t) : [], S = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, C = gi({
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = fi(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Sye(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? mi(t) : [], S = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, C = gi({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -51636,7 +51636,7 @@ function mTe(e) {
limit: 9
}), w = (0, b.useRef)(C.faces);
w.current = C.faces;
- let T = xP({
+ let T = SP({
load: async () => w.current,
canFlip: () => w.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -51644,7 +51644,7 @@ function mTe(e) {
E.current = T.onPointerLeave;
let D = (0, b.useCallback)((e) => {
e && (e._stopHover = () => E.current());
- }, []), O = GN(u, n, i), k = VN(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = JN(u, i), N = qN(t, u), P = u.status === "saved", ee = (e) => {
+ }, []), O = KN(u, n, i), k = HN(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = YN(u, i), N = JN(t, u), P = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
}, F = (e, t) => {
e.stopPropagation(), t();
@@ -51659,7 +51659,7 @@ function mTe(e) {
"data-collection": C.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: pP,
+ onMouseDown: mP,
onMouseEnter: T.onPointerEnter,
onMouseLeave: T.onPointerLeave,
children: [
@@ -51701,7 +51701,7 @@ function mTe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: BN(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: VN(u.provider, u.provider_label) }
}), N ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: N }
@@ -51805,7 +51805,7 @@ function mTe(e) {
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: KN(t, u) + z(k) }
+ dangerouslySetInnerHTML: { __html: qN(t, u) + z(k) }
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-follow-byline": "",
@@ -51823,8 +51823,8 @@ function mTe(e) {
}),
/* @__PURE__ */ (0, x.jsx)("time", {
dateTime: u.published_at || "",
- title: XN(u),
- children: Sye(u)
+ title: ZN(u),
+ children: xye(u)
}),
O.credited ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-credit": "",
@@ -51901,7 +51901,7 @@ function hTe(e, t) {
var FL = () => /* @__PURE__ */ (0, x.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), gTe = yN("settings"), _Te = yN("chevron-down"), vTe = yN("history"), yTe = [[
+}), gTe = bN("settings"), _Te = bN("chevron-down"), vTe = bN("history"), yTe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -51995,7 +51995,7 @@ function xTe(e) {
let h = wTe(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, x.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, x.jsx)(STe, { onManage: i.openManage }), /* @__PURE__ */ (0, x.jsx)(uP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(STe, { onManage: i.openManage }), /* @__PURE__ */ (0, x.jsx)(dP, {
message: Et(o.error),
onRetry: () => void o.refetch()
})]
@@ -52008,7 +52008,7 @@ function xTe(e) {
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, HN(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, UN(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
@@ -52089,7 +52089,7 @@ function xTe(e) {
"data-follow-pagination": "",
children: [c.has_more ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-page-action": "",
- children: c.groups.length < 500 ? /* @__PURE__ */ (0, x.jsxs)(JP, {
+ children: c.groups.length < 500 ? /* @__PURE__ */ (0, x.jsxs)(YP, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
@@ -52151,7 +52151,7 @@ function CTe({ busy: e, error: t, load: n }) {
"aria-disabled": e || void 0,
onClick: n,
children: [/* @__PURE__ */ (0, x.jsx)(_Te, { className: "size-3.5" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, x.jsx)(uP, {
+ }), t ? /* @__PURE__ */ (0, x.jsx)(dP, {
message: t,
onRetry: n
}) : null] });
@@ -52223,7 +52223,7 @@ function TTe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
(0, b.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => HN(e.authorSources.get(t) || [], n);
+ let o = (t) => UN(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, x.jsx)("div", {
@@ -52231,9 +52231,9 @@ function TTe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = UN(a), c = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = WN(a), c = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: WN(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: GN(a, o(n)) }
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-name": "",
children: o(n)
@@ -52277,12 +52277,12 @@ function ETe({ rows: e, pressed: t, props: n, onPick: r }) {
}) : null;
}
function DTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, b.useRef)(null), l = (0, b.useRef)(null), u = (0, b.useRef)(null), d = (0, b.useRef)(null), f = (0, b.useRef)(null), p = (0, b.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = EA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = EA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+ let { helpers: o, actions: s } = i, c = (0, b.useRef)(null), l = (0, b.useRef)(null), u = (0, b.useRef)(null), d = (0, b.useRef)(null), f = (0, b.useRef)(null), p = (0, b.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = DA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = DA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, b.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, x.jsx)(xA, {
+ return /* @__PURE__ */ (0, x.jsx)(SA, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -52367,10 +52367,10 @@ function DTe({ 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: BN(t, n) }
+ dangerouslySetInnerHTML: { __html: VN(t, n) }
}, t)),
_.length && e.tagRows.length ? /* @__PURE__ */ (0, x.jsx)(FL, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, x.jsxs)(SA, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, x.jsxs)(CA, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Ci(e.groups, n)}`,
@@ -52391,8 +52391,8 @@ function DTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, x.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(iP, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(rP, {
+ /* @__PURE__ */ (0, x.jsx)(aP, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(iP, {
label: "图片布局",
value: i.photoLayout,
options: yTe,
@@ -52413,7 +52413,7 @@ function DTe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})]
})] }) : null,
Jr.map(([e, n]) => {
- let r = t.sort === e, i = yN(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ let r = t.sort === e, i = bN(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-entity-sort": e,
@@ -52467,7 +52467,7 @@ function kTe({ count: e, onManage: t }) {
});
}
function ATe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a }) {
- let { view: o, helpers: s } = i, c = o.media === "images", l = lP(e, () => s.listSkeletonHtml(o.media));
+ let { view: o, helpers: s } = i, c = o.media === "images", l = uP(e, () => s.listSkeletonHtml(o.media));
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": l.fading ? "" : void 0,
@@ -52600,8 +52600,8 @@ function PTe(e) {
//#endregion
//#region src/react/entity-body/entity-online.tsx
function FTe(e) {
- let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = lP(a, () => i.listSkeletonHtml(r));
- return !n && t.isError ? /* @__PURE__ */ (0, x.jsx)(uP, {
+ let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = uP(a, () => i.listSkeletonHtml(r));
+ return !n && t.isError ? /* @__PURE__ */ (0, x.jsx)(dP, {
message: Et(t.error),
onRetry: () => {
t.refetch();
@@ -52616,7 +52616,7 @@ function FTe(e) {
...e,
data: n
}),
- !a && n?.has_more ? /* @__PURE__ */ (0, x.jsx)(JP, {
+ !a && n?.has_more ? /* @__PURE__ */ (0, x.jsx)(YP, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -53065,12 +53065,12 @@ function CEe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, x.jsx)(Hme, {
+ children: /* @__PURE__ */ (0, x.jsx)(Vme, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, x.jsx)(gN, {
+ }), /* @__PURE__ */ (0, x.jsx)(_N, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
@@ -53085,7 +53085,7 @@ function CEe({ kind: e, entityId: t, name: n, onPicked: r }) {
})] });
}
function wEe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, b.useRef)(null), o = XI(), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(null), p = eEe(e, t), m = (0, b.useRef)(!1), h = dt({
+ let a = (0, b.useRef)(null), o = ZI(), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(null), p = eEe(e, t), m = (0, b.useRef)(!1), h = dt({
queryKey: p,
queryFn: ({ signal: n }) => rEe(e, t, n),
retryOnMount: !0
@@ -53121,17 +53121,17 @@ function wEe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, x.jsx)(_N, { children: /* @__PURE__ */ (0, x.jsx)(vhe, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, x.jsx)(vN, { children: /* @__PURE__ */ (0, x.jsx)(_he, { className: "size-6" }) }),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(qA, {
+ children: [/* @__PURE__ */ (0, x.jsx)(JA, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && w.length ? /* @__PURE__ */ (0, x.jsxs)(wk, {
+ }), !d && w.length ? /* @__PURE__ */ (0, x.jsxs)(Tk, {
color: "soft",
children: [w.length.toLocaleString(), " 张可选"]
}) : null]
@@ -53159,8 +53159,8 @@ function wEe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsx)(QI, {
- icon: UO,
+ /* @__PURE__ */ (0, x.jsx)($I, {
+ icon: WO,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -53218,7 +53218,7 @@ function wEe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, x.jsx)(wk, {
+ children: /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "gray",
children: "在用"
@@ -53226,7 +53226,7 @@ function wEe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null,
GL(n) ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, x.jsxs)(wk, {
+ children: /* @__PURE__ */ (0, x.jsxs)(Tk, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -53248,7 +53248,7 @@ function wEe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, x.jsx)(mN, {
+ children: /* @__PURE__ */ (0, x.jsx)(hN, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -53283,7 +53283,7 @@ function wEe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, x.jsx)(mN, {
+ children: /* @__PURE__ */ (0, x.jsx)(hN, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -53349,7 +53349,7 @@ function EEe(e) {
}, [e]), t;
}
function DEe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confirm: o }) {
- let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, b.useState)(s[0]), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(null), m = nEe(n, c), h = EEe(r), g = r ? h : tEe(e, t, c, m), _ = XI();
+ let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, b.useState)(s[0]), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(null), m = nEe(n, c), h = EEe(r), g = r ? h : tEe(e, t, c, m), _ = ZI();
function v(e) {
l(e), d(null), p(null);
}
@@ -53448,10 +53448,10 @@ function kEe({ children: e }) {
function AEe() {
let e = (0, b.useContext)(YL), { pathname: t } = BD();
return (0, b.useEffect)(() => {
- e?.openSettings?.(eO(t));
+ e?.openSettings?.(tO(t));
}, [e, t]), (0, b.useEffect)(() => () => {
queueMicrotask(() => {
- $D(PO.navigation.location.pathname) || e?.closeSettings?.();
+ eO(FO.navigation.location.pathname) || e?.closeSettings?.();
});
}, [e]), null;
}
@@ -53477,8 +53477,8 @@ function NEe() {
function qL(e, t = !1) {
let n = (0, b.useSyncExternalStore)(Wc, jEe), r = (0, b.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = PO.navigation;
- r.current = Nc === 0 || IO() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = FO.navigation;
+ r.current = Nc === 0 || LO() ? "boot" : e && !t ? null : "history";
}
let i = (0, b.useRef)(e);
(0, b.useEffect)(() => {
@@ -53499,17 +53499,17 @@ function PEe() {
return (0, b.useLayoutEffect)(() => {
t.current = e;
}, [e]), qL((t) => {
- let n = PO.navigation.location, { pathname: r, search: i } = $D(n.pathname) && nO(n.state) || n, a = aO(r, i);
- e && a && (dO(), t || Eme(PO.navigation.location.state), e.openOverlay(a));
+ let n = FO.navigation.location, { pathname: r, search: i } = eO(n.pathname) && rO(n.state) || n, a = oO(r, i);
+ e && a && (fO(), t || Tme(FO.navigation.location.state), e.openOverlay(a));
}, !0), (0, b.useEffect)(() => () => {
queueMicrotask(() => {
- oO(PO.navigation.location.pathname) || t.current?.closeStage();
+ sO(FO.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
function FEe({ path: e }) {
JL();
- let { location: t, seq: n, action: r } = PO.navigation, i = $D(t.pathname) ? nO(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, b.useRef)({
+ let { location: t, seq: n, action: r } = FO.navigation, i = eO(t.pathname) ? rO(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, b.useRef)({
identity: a,
seq: i?.seq ?? n,
navigationSeq: n,
@@ -53535,15 +53535,15 @@ function LEe() {
//#region src/react/router/router.tsx
var REe = (0, b.createContext)(0), JL = () => (0, b.useContext)(REe), YL = (0, b.createContext)(null);
function zEe({ children: e }) {
- let [t, n] = (0, b.useState)(() => PO.navigation);
- return (0, b.useLayoutEffect)(() => (n(PO.navigation), PO.listen((e) => {
+ let [t, n] = (0, b.useState)(() => FO.navigation);
+ return (0, b.useLayoutEffect)(() => (n(FO.navigation), FO.listen((e) => {
(0, mt.flushSync)(() => n(e));
})), []), /* @__PURE__ */ (0, x.jsx)(REe.Provider, {
value: t.openEpoch,
children: /* @__PURE__ */ (0, x.jsx)(Cme, {
location: t.location,
navigationType: t.action,
- navigator: PO,
+ navigator: FO,
children: e
})
});
@@ -53559,8 +53559,8 @@ function VEe(e, t, n) {
g5(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
function HEe() {
- let e = (0, b.useContext)(YL), [t, n] = (0, b.useState)(SO), r = (0, b.useRef)(null);
- (0, b.useLayoutEffect)(() => (n(SO()), Mme((e, t) => {
+ let e = (0, b.useContext)(YL), [t, n] = (0, b.useState)(CO), r = (0, b.useRef)(null);
+ (0, b.useLayoutEffect)(() => (n(CO()), jme((e, t) => {
t ? (0, mt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, b.useMemo)(() => (t) => {
@@ -53581,7 +53581,7 @@ var UEe = class extends b.Component {
return { failed: !0 };
}
componentDidCatch() {
- Fme(this.props.entry.container, this.props.entry.revision);
+ Pme(this.props.entry.container, this.props.entry.revision);
}
render() {
return this.state.failed ? null : this.props.children;
@@ -53592,7 +53592,7 @@ var UEe = class extends b.Component {
function GEe({ children: e }) {
let t = BD();
JL();
- let n = LO(), r = $D(t.pathname) && !IO() ? nO(t.state) : null;
+ let n = RO(), r = eO(t.pathname) && !LO() ? rO(t.state) : null;
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)(JD, {
location: n ?? t,
@@ -53625,11 +53625,11 @@ function GEe({ children: e }) {
path: e,
element: t.element
}, e)),
- rO.map((e) => /* @__PURE__ */ (0, x.jsx)(qD, {
+ iO.map((e) => /* @__PURE__ */ (0, x.jsx)(qD, {
path: e,
element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, x.jsx)(LEe, {}) : S5["/"].element
}, e)),
- QD.map((e) => /* @__PURE__ */ (0, x.jsx)(qD, {
+ $D.map((e) => /* @__PURE__ */ (0, x.jsx)(qD, {
path: e,
element: null
}, e)),
@@ -53641,7 +53641,7 @@ function GEe({ children: e }) {
}),
/* @__PURE__ */ (0, x.jsxs)(JD, {
location: r ?? t,
- children: [rO.map((e) => /* @__PURE__ */ (0, x.jsx)(qD, {
+ children: [iO.map((e) => /* @__PURE__ */ (0, x.jsx)(qD, {
path: e,
element: /* @__PURE__ */ (0, x.jsx)(FEe, { path: e })
}, e)), /* @__PURE__ */ (0, x.jsx)(qD, {
@@ -53649,7 +53649,7 @@ function GEe({ children: e }) {
element: null
})]
}),
- /* @__PURE__ */ (0, x.jsxs)(JD, { children: [QD.map((e) => /* @__PURE__ */ (0, x.jsx)(qD, {
+ /* @__PURE__ */ (0, x.jsxs)(JD, { children: [$D.map((e) => /* @__PURE__ */ (0, x.jsx)(qD, {
path: e,
element: /* @__PURE__ */ (0, x.jsx)(AEe, {})
}, e)), /* @__PURE__ */ (0, x.jsx)(qD, {
@@ -53863,25 +53863,25 @@ function QEe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, b.useState)(!1), o = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, x.jsxs)($_e, {
+ }, []), /* @__PURE__ */ (0, x.jsxs)(Q_e, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, x.jsx)(GA, {
+ children: [/* @__PURE__ */ (0, x.jsx)(KA, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
children: /* @__PURE__ */ (0, x.jsx)(XL, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, x.jsx)(fM, {
+ }), /* @__PURE__ */ (0, x.jsx)(pM, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: OI,
+ className: kI,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, x.jsxs)(tve, {
+ children: /* @__PURE__ */ (0, x.jsxs)(eve, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(yM, {
+ /* @__PURE__ */ (0, x.jsx)(bM, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -53889,15 +53889,15 @@ function QEe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, x.jsxs)(xM, {
+ children: t.map((e) => /* @__PURE__ */ (0, x.jsxs)(SM, {
id: e,
textValue: e,
"data-namepick-name": e,
children: [/* @__PURE__ */ (0, x.jsx)(XL, { name: "check" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, x.jsx)(F_e, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, x.jsx)(yM, { children: /* @__PURE__ */ (0, x.jsxs)(xM, {
+ /* @__PURE__ */ (0, x.jsx)(P_e, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, x.jsx)(bM, { children: /* @__PURE__ */ (0, x.jsxs)(SM, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
@@ -54168,7 +54168,7 @@ function pDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, x.jsx)(ON, { item: {
+ n.id ? /* @__PURE__ */ (0, x.jsx)(kN, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -54679,7 +54679,7 @@ function DDe(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, x.jsx)(uP, {
+ ]), r.isError ? /* @__PURE__ */ (0, x.jsx)(dP, {
message: B(r.error),
onRetry: () => {
r.refetch();
@@ -55033,7 +55033,7 @@ function jDe(e) {
actions: be,
helpers: xe
}, k),
- (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(Tye, {
+ (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(wye, {
kind: t,
name: n,
view: E,
@@ -55063,7 +55063,7 @@ function jDe(e) {
helpers: e.follow.helpers,
actions: e.follow.actions,
canLoadMore: e.canLoadMore
- }, D.key) : E === "videos" && M.isError ? /* @__PURE__ */ (0, x.jsx)(uP, {
+ }, D.key) : E === "videos" && M.isError ? /* @__PURE__ */ (0, x.jsx)(dP, {
message: B(M.error),
onRetry: () => {
M.refetch();
@@ -55096,8 +55096,8 @@ function jDe(e) {
] });
}
function MDe({ filtered: e, onShowAll: t }) {
- return e ? /* @__PURE__ */ (0, x.jsx)(Ok, {
- icon: yN("search"),
+ return e ? /* @__PURE__ */ (0, x.jsx)(kk, {
+ icon: bN("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
@@ -55105,8 +55105,8 @@ function MDe({ filtered: e, onShowAll: t }) {
children: "查看全部视频"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
- icon: yN("film"),
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
+ icon: bN("film"),
title: "还没有视频",
children: "署上这个名字的视频入库后会显示在这里。"
});
@@ -55140,16 +55140,16 @@ function nR({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var NDe = yN("play"), PDe = yN("file-stack"), FDe = Dk({
+var NDe = bN("play"), PDe = bN("file-stack"), FDe = Ok({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
}), IDe = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", rR = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", iR = "font-mono text-caption-1-regular leading-5 text-text-secondary", LDe = () => {
U.invalidateQueries({
- queryKey: ZP,
+ queryKey: QP,
exact: !0
}), U.invalidateQueries({
- queryKey: _I,
+ queryKey: vI,
exact: !0
});
};
@@ -55192,7 +55192,7 @@ function zDe({ file: e, prefix: t, openItem: n }) {
"data-middle-truncate": !0,
"data-middle-truncate-within": !0,
className: "min-w-0 shrink cursor-pointer truncate text-left text-body-regular hover:text-text-secondary",
- children: Rbe(e.name, t)
+ children: Lbe(e.name, t)
}), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex flex-none gap-1",
children: [e.is_largest ? /* @__PURE__ */ (0, x.jsx)("i", {
@@ -55206,7 +55206,7 @@ function zDe({ file: e, prefix: t, openItem: n }) {
}),
/* @__PURE__ */ (0, x.jsxs)("span", {
className: `${iR} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, x.jsx)(Xk, { mark: eo[e.location] || "database" }), /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(Zk, { mark: eo[e.location] || "database" }), /* @__PURE__ */ (0, x.jsx)("span", {
title: i,
className: "min-w-0 truncate",
children: i
@@ -55229,17 +55229,17 @@ function zDe({ file: e, prefix: t, openItem: n }) {
}
function BDe({ openItem: e, toast: t, failure: n }) {
let r = dt({
- queryKey: ZP,
- queryFn: ({ signal: e }) => $P(e)
+ queryKey: QP,
+ queryFn: ({ signal: e }) => eF(e)
}), i = dt({
queryKey: xn,
queryFn: ({ signal: e }) => Sn(e)
}), [a, o] = (0, b.useState)(""), s = ft({
- mutationFn: (e) => nF(e, "dispose"),
+ mutationFn: (e) => rF(e, "dispose"),
onSuccess: (e, r) => {
LDe(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
- await nF(r, "restore");
+ await rF(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
@@ -55257,12 +55257,12 @@ function BDe({ openItem: e, toast: t, failure: n }) {
children: r.error ? B(r.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let l = c.groups ?? [], u = Pbe(i.data), d = ({ groups: e, keep: t, key: n }) => {
+ let l = c.groups ?? [], u = Nbe(i.data), d = ({ groups: e, keep: t, key: n }) => {
if (s.isPending) return;
- let r = Hbe(e, t);
+ let r = Vbe(e, t);
r.length && ms({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${eF[t] ?? eF.largest}。文件共 ${Qt(Ube(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${tF[t] ?? tF.largest}。文件共 ${Qt(Hbe(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (o(n), s.mutateAsync(r))
});
@@ -55275,10 +55275,10 @@ function BDe({ openItem: e, toast: t, failure: n }) {
figure: `${Number(c.total || 0).toLocaleString()} 组`,
detail: `${Number(c.files || 0).toLocaleString()} 个文件 · 可回收 ${Qt(c.reclaimable)}`
}),
- l.length ? /* @__PURE__ */ (0, x.jsxs)(g_e, {
+ l.length ? /* @__PURE__ */ (0, x.jsxs)(h_e, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, x.jsx)(CA, {
+ /* @__PURE__ */ (0, x.jsx)(wA, {
busy: a === "all:largest",
onPress: () => d({
groups: l,
@@ -55287,7 +55287,7 @@ function BDe({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, x.jsx)(CA, {
+ /* @__PURE__ */ (0, x.jsx)(wA, {
busy: a === "all:longest",
onPress: () => d({
groups: l,
@@ -55296,14 +55296,14 @@ function BDe({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最长"
}),
- Vbe(l, u).map((e) => /* @__PURE__ */ (0, x.jsx)(CA, {
+ Bbe(l, u).map((e) => /* @__PURE__ */ (0, x.jsx)(wA, {
busy: a === `all:${e}`,
onPress: () => d({
groups: l,
keep: e,
key: `all:${e}`
}),
- children: /* @__PURE__ */ (0, x.jsx)(lA, {
+ children: /* @__PURE__ */ (0, x.jsx)(uA, {
source: e,
label: `全部优先 ${an[e] || e}`
})
@@ -55319,7 +55319,7 @@ function BDe({ openItem: e, toast: t, failure: n }) {
})
}) : null,
l.length ? l.map((t, n) => {
- let r = [t], i = Lbe(t.files.map((e) => e.name)), a = (e) => `${n}:${e}`;
+ let r = [t], i = Ibe(t.files.map((e) => e.name)), a = (e) => `${n}:${e}`;
return /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-label": t.code,
className: FDe,
@@ -55364,7 +55364,7 @@ function BDe({ openItem: e, toast: t, failure: n }) {
}),
children: "留最长"
}),
- tF(t.files, u).map((e) => /* @__PURE__ */ (0, x.jsx)(G, {
+ nF(t.files, u).map((e) => /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
...f(a(e)),
@@ -55373,7 +55373,7 @@ function BDe({ openItem: e, toast: t, failure: n }) {
keep: e,
key: a(e)
}),
- children: /* @__PURE__ */ (0, x.jsx)(lA, {
+ children: /* @__PURE__ */ (0, x.jsx)(uA, {
source: e,
label: `留 ${an[e] || e}`
})
@@ -55398,7 +55398,7 @@ function BDe({ openItem: e, toast: t, failure: n }) {
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
icon: PDe,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
@@ -55473,13 +55473,13 @@ function KDe({ name: e, check: t, navigate: n, configure: r }) {
});
}
function qDe({ group: e, openItem: t, receipt: n }) {
- let r = Nk(), i = XI(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
- return /* @__PURE__ */ (0, x.jsx)(Yk, {
+ let r = Pk(), i = ZI(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
+ return /* @__PURE__ */ (0, x.jsx)(Xk, {
summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count.toLocaleString()} 项`}`,
children: e.count === null ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "neutral",
children: "清单未取得,请重新检查。"
- }) : e.items.length ? /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
+ }) : e.items.length ? /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
children: [e.truncated ? /* @__PURE__ */ (0, x.jsxs)("span", {
@@ -55514,8 +55514,8 @@ function qDe({ group: e, openItem: t, receipt: n }) {
}) }, e.id))
})
})
- ] }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
- icon: nhe,
+ ] }) : /* @__PURE__ */ (0, x.jsx)(kk, {
+ icon: the,
title: "清单为空",
shell: "plain",
children: "没有需要处理的作品。"
@@ -55527,7 +55527,7 @@ function JDe(e) {
queryKey: VDe,
queryFn: ({ signal: e }) => HDe(e),
staleTime: 1e4
- }), n = Nk(), [r, i] = (0, b.useState)(""), a = () => void n.run("refresh", async () => {
+ }), n = Pk(), [r, i] = (0, b.useState)(""), a = () => void n.run("refresh", async () => {
let e = await t.refetch();
if (e.error) throw e.error;
return e.data;
@@ -55548,9 +55548,9 @@ function JDe(e) {
tone: "error",
children: r
}) : null,
- /* @__PURE__ */ (0, x.jsx)(zk, {
+ /* @__PURE__ */ (0, x.jsx)(Bk, {
title: "库健康",
- children: /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, x.jsxs)("p", {
+ children: /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, x.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
children: ["处理记录 · ", aR(o.library.issue_at)]
}) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, x.jsx)(qDe, {
@@ -55558,7 +55558,7 @@ function JDe(e) {
...e
}, t))] })
}),
- GDe.map(([t, n]) => /* @__PURE__ */ (0, x.jsx)(zk, {
+ GDe.map(([t, n]) => /* @__PURE__ */ (0, x.jsx)(Bk, {
title: t,
children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, x.jsx)(KDe, {
name: t,
@@ -55566,9 +55566,9 @@ function JDe(e) {
...e
}, t) : null)
}, t)),
- /* @__PURE__ */ (0, x.jsx)(zk, {
+ /* @__PURE__ */ (0, x.jsx)(Bk, {
title: "来源会话",
- children: /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [o.sources.map((e) => /* @__PURE__ */ (0, x.jsxs)("div", {
+ children: /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [o.sources.map((e) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
/* @__PURE__ */ (0, x.jsxs)("h3", {
@@ -55579,20 +55579,20 @@ function JDe(e) {
WDe[e.status] ?? "未取得"
]
}),
- /* @__PURE__ */ (0, x.jsx)(mA, {
+ /* @__PURE__ */ (0, x.jsx)(hA, {
text: e.reason,
className: "text-body-regular text-text-primary"
}),
- /* @__PURE__ */ (0, x.jsxs)(qk, { children: [
- /* @__PURE__ */ (0, x.jsx)(Jk, {
+ /* @__PURE__ */ (0, x.jsxs)(Jk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "上次解析成功",
children: e.last_success_at ? aR(e.last_success_at) : "未取得"
}),
- e.last_check_at ? /* @__PURE__ */ (0, x.jsxs)(Jk, {
+ e.last_check_at ? /* @__PURE__ */ (0, x.jsxs)(Yk, {
term: "上次检查",
children: [aR(e.last_check_at), e.elapsed_s !== void 0 && e.elapsed_s !== null ? ` · ${e.elapsed_s.toFixed(2)} 秒` : ""]
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Jk, {
+ /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "冷却截止",
children: e.cooldown_until ? aR(e.cooldown_until) : "未在冷却"
})
@@ -55668,7 +55668,7 @@ function sR({ group: e, name: t }) {
}
function XDe({ source: e }) {
let t = Xn(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, x.jsx)(wk, {
+ return /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: t,
children: Yn(e)
@@ -55715,11 +55715,11 @@ function cR({ text: e, prefix: t = "", tone: n = "error" }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var QDe = xk(kI, AI, "text-body-2-medium"), $De = "粘贴来源链接,或输入创作者名、id…", eOe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", tOe = "识别中…", nOe = "站内没有查到来源", rOe = (e, t) => `${e}:${t.url}`;
+var QDe = Sk(AI, jI, "text-body-2-medium"), $De = "粘贴来源链接,或输入创作者名、id…", eOe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", tOe = "识别中…", nOe = "站内没有查到来源", rOe = (e, t) => `${e}:${t.url}`;
function iOe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, b.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, x.jsxs)(fM, {
+ }, [t, r]), /* @__PURE__ */ (0, x.jsxs)(pM, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -55731,17 +55731,17 @@ function iOe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: xk(OI, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: Sk(kI, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, x.jsx)(kk, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, x.jsx)(Ak, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, x.jsxs)(b.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, x.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? xk(QDe, "bg-background-secondary-default") : QDe,
+ className: t === r ? Sk(QDe, "bg-background-secondary-default") : QDe,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -55769,20 +55769,20 @@ function aOe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
ref: i,
variant: "secondary",
- leadingIcon: rhe,
+ leadingIcon: nhe,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, x.jsx)(fM, {
+ }), /* @__PURE__ */ (0, x.jsx)(pM, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: OI,
- children: /* @__PURE__ */ (0, x.jsxs)(wM, {
+ className: kI,
+ children: /* @__PURE__ */ (0, x.jsxs)(TM, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -55798,7 +55798,7 @@ function aOe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, x.jsx)(Uk, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, x.jsx)(Wk, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-center gap-2",
@@ -55831,7 +55831,7 @@ function oOe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: Dk({
+ className: Ok({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -55866,18 +55866,18 @@ function oOe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, x.jsx)(Uk, { children: nOe }),
+ }) : /* @__PURE__ */ (0, x.jsx)(Wk, { children: nOe }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, x.jsx)(Kk, {
+ }), /* @__PURE__ */ (0, x.jsx)(qk, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
@@ -55963,7 +55963,7 @@ function sOe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onError: (e) => E(B(e))
}), se = e.suggestions || [], ce = !s.includes("/");
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: Dk({
+ className: Ok({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -55983,11 +55983,11 @@ function sOe({ 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, x.jsx)(mN, {
+ children: [/* @__PURE__ */ (0, x.jsx)(hN, {
"aria-label": "来源链接、名字或 id",
placeholder: $De,
value: a,
- leadingIcon: QO,
+ leadingIcon: $O,
enterKeyHint: "search",
isDisabled: n,
onChange: o,
@@ -56020,7 +56020,7 @@ function sOe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, x.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [M || P.isPending ? /* @__PURE__ */ (0, x.jsx)(eL, {
+ children: [M || P.isPending ? /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
label: j?.message || (j?.total ? `查找中:${j.checked || 0}/${j.total}` : ce ? eOe : tOe),
value: j?.checked,
@@ -56034,7 +56034,7 @@ function sOe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
ie.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, x.jsx)(Gk, { children: "查找结果" }),
+ /* @__PURE__ */ (0, x.jsx)(Kk, { children: "查找结果" }),
ie.map((e, t) => /* @__PURE__ */ (0, x.jsx)(oOe, {
row: e,
at: t,
@@ -56149,7 +56149,7 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
});
}, _ = t.filter((e) => a.has(lR(e))), v = t.length > 0 && _.length === t.length, y = q(p.isPending);
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: Dk({
+ className: Ok({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -56160,10 +56160,10 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(Gk, { children: "手动添加别名" }), /* @__PURE__ */ (0, x.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, x.jsx)(Kk, { children: "手动添加别名" }), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -56171,7 +56171,7 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -56192,13 +56192,13 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(Gk, { children: "待合并" }),
+ /* @__PURE__ */ (0, x.jsx)(Kk, { children: "待合并" }),
/* @__PURE__ */ (0, x.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -56223,8 +56223,8 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}), /* @__PURE__ */ (0, x.jsx)(sL, { children: /* @__PURE__ */ (0, x.jsxs)(oL, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsxs)(JM, { children: [
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(YM, { children: [
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "select",
children: /* @__PURE__ */ (0, x.jsx)(aL, {
slot: null,
@@ -56234,30 +56234,30 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onChange: (e) => o(e ? new Set(t.map(lR)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, x.jsx)(YM, {
+ /* @__PURE__ */ (0, x.jsx)(XM, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, x.jsx)(ZM, { children: t.map((e) => {
+ ] }), /* @__PURE__ */ (0, x.jsx)(QM, { children: t.map((e) => {
let t = lR(e);
- return /* @__PURE__ */ (0, x.jsxs)(eN, {
+ return /* @__PURE__ */ (0, x.jsxs)(tN, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)(aL, {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)(aL, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -56266,16 +56266,16 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)(uOe, {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)(uOe, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: e.alias }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: e.alias }),
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)(G, {
+ /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
disabled: r,
@@ -56292,27 +56292,27 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(Gk, { children: "已保存别名" }), /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(Kk, { children: "已保存别名" }), /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
}), e.length ? /* @__PURE__ */ (0, x.jsx)(sL, { children: /* @__PURE__ */ (0, x.jsxs)(oL, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsxs)(JM, { children: [/* @__PURE__ */ (0, x.jsx)(YM, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(YM, { children: [/* @__PURE__ */ (0, x.jsx)(XM, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, x.jsx)(YM, {
+ }), /* @__PURE__ */ (0, x.jsx)(XM, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, x.jsx)(ZM, { children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(eN, {
+ })] }), /* @__PURE__ */ (0, x.jsx)(QM, { children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(tN, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)(uOe, {
+ children: [/* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)(uOe, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, x.jsx)(nN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, x.jsx)(rN, { children: /* @__PURE__ */ (0, x.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, x.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",
@@ -56320,7 +56320,7 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: UO,
+ leadingIcon: WO,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...q(h.isPending),
@@ -56334,9 +56334,9 @@ function dOe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: vhe,
+ icon: _he,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -57746,7 +57746,7 @@ function oke(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var ske = Sk({
+var ske = Ck({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -57812,18 +57812,18 @@ function cke({ state: e, size: t = "md", shape: n = "pill" }) {
let r = ske[t];
return /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
- className: xk("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? xk("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Sk("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Sk("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, x.jsx)("span", {
- className: xk("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, x.jsx)("span", { className: xk("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: Sk("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, x.jsx)("span", { className: Sk("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
function BR({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, x.jsx)(wve, {
+ return /* @__PURE__ */ (0, x.jsx)(Cve, {
ref: i,
...a,
- className: (t) => xk("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ className: (t) => Sk("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, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(cke, {
state: e,
size: n,
@@ -57869,7 +57869,7 @@ function dke({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, x.jsx)(wk, {
+ e.record ? /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "neutral",
children: e.record
@@ -57880,14 +57880,14 @@ function dke({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, x.jsx)(Kk, {
+ }), /* @__PURE__ */ (0, x.jsx)(qk, {
href: e.url,
children: e.id
})]
});
}
function fke({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, b.useState)(""), [a, o] = (0, b.useState)(null), [s, c] = (0, b.useState)(/* @__PURE__ */ new Set()), l = Nk(), u = () => {
+ let [r, i] = (0, b.useState)(""), [a, o] = (0, b.useState)(null), [s, c] = (0, b.useState)(/* @__PURE__ */ new Set()), l = Pk(), u = () => {
let t = r.trim();
t && !e && l.run("lookup", (e) => Mr(t, e), (e) => {
o(e), c(new Set(e.suggested));
@@ -57902,7 +57902,7 @@ function fke({ readOnly: e, toast: t, onAdded: n }) {
});
}, m = a ? uke(a, s) : null;
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: Dk({
+ className: Ok({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -57915,11 +57915,11 @@ function fke({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, x.jsx)(mN, {
+ children: /* @__PURE__ */ (0, x.jsx)(hN, {
"aria-label": "女优名",
placeholder: lke,
value: r,
- leadingIcon: QO,
+ leadingIcon: $O,
enterKeyHint: "search",
isDisabled: e,
onChange: i,
@@ -57941,7 +57941,7 @@ function fke({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, x.jsx)(Gk, { children: "JavDB 上的演员卡" }),
+ /* @__PURE__ */ (0, x.jsx)(Kk, { children: "JavDB 上的演员卡" }),
a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, x.jsx)(dke, {
card: e,
picked: s.has(e.id),
@@ -57949,8 +57949,8 @@ function fke({ readOnly: e, toast: t, onAdded: n }) {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, x.jsx)(Uk, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, x.jsx)(Uk, {
+ }, e.id)) : /* @__PURE__ */ (0, x.jsx)(Wk, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, x.jsx)(Wk, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -58041,7 +58041,7 @@ function _ke({ source: e, selected: t, onToggle: n, handlers: r }) {
"data-follow-source-row": "",
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2",
onClick: (e) => {
- fP(e, e.currentTarget) && n(!t);
+ pP(e, e.currentTarget) && n(!t);
},
children: [
/* @__PURE__ */ (0, x.jsx)(aL, {
@@ -58082,7 +58082,7 @@ function _ke({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ZO,
+ leadingIcon: QO,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...q(r.busy),
@@ -58091,7 +58091,7 @@ function _ke({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: KO,
+ leadingIcon: qO,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -58106,7 +58106,7 @@ function vke({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(Xn).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = dr(r, c);
return /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: Dk({
+ className: Ok({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -58128,7 +58128,7 @@ function vke({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ZO,
+ leadingIcon: QO,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...q(i.busy),
@@ -58150,7 +58150,7 @@ function vke({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: Yme,
+ leadingIcon: Jme,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -58161,7 +58161,7 @@ function vke({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? Gme : BO,
+ leadingIcon: n ? Wme : VO,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -58348,7 +58348,7 @@ function yke(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ZO,
+ leadingIcon: QO,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || oe.readOnly,
...q(oe.busy),
@@ -58358,7 +58358,7 @@ function yke(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: KO,
+ leadingIcon: qO,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: oe.readOnly,
onClick: () => ae.current.remove(e.row.original.source)
@@ -58408,7 +58408,7 @@ function yke(e) {
getPaginationRowModel: nke()
}), pe = fe.getRowModel().rows, me = ue ? pe.map((e) => e.original.source.id) : D.slice(de.start, de.end).flatMap((e) => e.map((e) => e.id)), he = dr(s, me), ge = [...s], _e = Br(j), ve = g.filter((e) => e.enabled && (e.last_status === "error" || e.last_status === "unauthorized")).map((e) => e.id), ye = Vr(j), be = D.length > 0 && y.size >= D.length;
return g.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
- className: Dk({
+ className: Ok({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -58430,7 +58430,7 @@ function yke(e) {
}),
/* @__PURE__ */ (0, x.jsx)(G, {
variant: "primary",
- leadingIcon: ZO,
+ leadingIcon: QO,
disabled: c,
"aria-label": "检查全部",
iconOnly: w,
@@ -58456,14 +58456,14 @@ function yke(e) {
children: [/* @__PURE__ */ (0, x.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: lhe,
+ leadingIcon: che,
"aria-label": Un[0][1],
"aria-pressed": !ue,
onClick: () => d("default")
}), /* @__PURE__ */ (0, x.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: mhe,
+ leadingIcon: phe,
"aria-label": Un[1][1],
"aria-pressed": ue,
onClick: () => d("table")
@@ -58485,14 +58485,14 @@ function yke(e) {
/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? Wme : Ume,
+ leadingIcon: r === "asc" ? Ume : Hme,
"aria-label": aee(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
ue ? null : /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
iconOnly: w,
- leadingIcon: be ? BO : Gme,
+ leadingIcon: be ? VO : Wme,
"aria-label": be ? "全部展开" : "全部收起",
onClick: () => S(be ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),
children: be ? "全部展开" : "全部收起"
@@ -58505,7 +58505,7 @@ function yke(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? /* @__PURE__ */ (0, x.jsx)(eL, {
+ A ? /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
label: k?.message || (k?.total ? `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源` : "正在准备检查任务"),
value: k?.checked,
@@ -58610,9 +58610,9 @@ function yke(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, x.jsx)(JM, { children: fe.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, x.jsx)(YM, { children: fe.getHeaderGroups()[0].headers.map((e) => {
let t = e.column.id in Kn, n = zR(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, x.jsx)(YM, {
+ return /* @__PURE__ */ (0, x.jsx)(XM, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -58625,12 +58625,12 @@ function yke(e) {
})]
}) : /* @__PURE__ */ (0, x.jsx)(yx, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, x.jsx)(ZM, {
+ }) }), /* @__PURE__ */ (0, x.jsx)(QM, {
renderEmptyState: () => "这一页没有来源",
- children: pe.map((e) => /* @__PURE__ */ (0, x.jsx)(eN, {
+ children: pe.map((e) => /* @__PURE__ */ (0, x.jsx)(tN, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, x.jsx)(nN, { children: zR(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, x.jsx)(rN, { children: zR(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
@@ -58727,11 +58727,11 @@ function yke(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: fhe,
+ icon: dhe,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, x.jsx)(Ek, {
+ actions: /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "primary",
size: "small",
href: "/subscriptions?tab=add",
@@ -58764,15 +58764,15 @@ function Ske(e) {
}
}
function Cke({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, x.jsx)(wk, {
+ return e.last_error ? /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, x.jsx)(wk, {
+ }) : e.enabled ? /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, x.jsx)(wk, {
+ }) : /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "neutral",
children: "已暂停"
@@ -58811,7 +58811,7 @@ function Oke({ readOnly: e, toast: t }) {
let n = dt({
queryKey: Hn,
queryFn: ({ signal: e }) => Or(e)
- }), r = Nk(), i = n.data, a = (0, b.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, b.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, b.useState)(1), [u, d] = (0, b.useState)(20), f = lr(a.length, u, c);
+ }), r = Pk(), i = n.data, a = (0, b.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, b.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, b.useState)(1), [u, d] = (0, b.useState)(20), f = lr(a.length, u, c);
(0, b.useEffect)(() => {
l((e) => Math.min(e, f.pages));
}, [f.pages]), (0, b.useEffect)(() => {
@@ -58953,7 +58953,7 @@ function Oke({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: ZO,
+ leadingIcon: QO,
"aria-label": `拉取 ${GR(e.row.original)}`,
disabled: h.current.readOnly,
...q(h.current.busy === `check-${e.row.original.id}`),
@@ -58963,7 +58963,7 @@ function Oke({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: KO,
+ leadingIcon: qO,
"aria-label": `移除 ${GR(e.row.original)}`,
disabled: h.current.readOnly,
onClick: () => h.current.remove(e.row.original)
@@ -58995,7 +58995,7 @@ function Oke({ readOnly: e, toast: t }) {
tone: "error",
title: "打不开订阅源",
children: B(n.error)
- }) : /* @__PURE__ */ (0, x.jsx)(Uk, { children: "正在读订阅源。" });
+ }) : /* @__PURE__ */ (0, x.jsx)(Wk, { children: "正在读订阅源。" });
let y = () => void r.run("check", (e) => jr(e), () => void WR()), S = (e) => s((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -59008,7 +59008,7 @@ function Oke({ readOnly: e, toast: t }) {
onAdded: () => void WR()
}), /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: Dk({
+ className: Ok({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -59046,7 +59046,7 @@ function Oke({ readOnly: e, toast: t }) {
}, e.id))
}),
children: "这些订阅源这一轮没有取到新条目。"
- }) : null, r.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: r.error }) : null]
+ }) : null, r.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: r.error }) : null]
}) : null,
/* @__PURE__ */ (0, x.jsxs)(AC, {
visible: C.length > 0,
@@ -59099,21 +59099,21 @@ function Oke({ readOnly: e, toast: t }) {
children: /* @__PURE__ */ (0, x.jsxs)(oL, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, x.jsx)(JM, { children: v.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, x.jsx)(YM, { children: v.getHeaderGroups()[0].headers.map((e) => {
let t = zR(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, x.jsx)(YM, {
+ return /* @__PURE__ */ (0, x.jsx)(XM, {
id: e.id,
isRowHeader: e.column.id === "name",
children: xke.has(e.column.id) ? /* @__PURE__ */ (0, x.jsx)(yx, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, x.jsx)(ZM, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, x.jsx)(eN, {
+ }) }), /* @__PURE__ */ (0, x.jsx)(QM, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, x.jsx)(tN, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, x.jsx)(nN, { children: zR(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, x.jsx)(rN, { children: zR(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
- icon: fhe,
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
+ icon: dhe,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -59166,7 +59166,7 @@ var kke = [
], Ake = (e) => kke.some(([t]) => t === e);
function KR({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- className: Dk({
+ className: Ok({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -59215,7 +59215,7 @@ function jke(e) {
dir: r === mn[n] ? "" : r
});
}, M = or(A), N = A.filter(Xn).length, P = A.filter((e) => e.enabled).length, ee = (k.providers || []).filter((e) => e.requirement === "required" && !Kr(e)).length, F = new Set((D.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, x.jsxs)(Ak, { children: [
+ return /* @__PURE__ */ (0, x.jsxs)(jk, { children: [
o ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "warning",
title: "本机只能浏览",
@@ -59230,7 +59230,7 @@ function jke(e) {
children: s
}) : null,
/* @__PURE__ */ (0, x.jsxs)("div", {
- className: dSe,
+ className: uSe,
"aria-label": "关注概览",
children: [
/* @__PURE__ */ (0, x.jsx)(KR, {
@@ -59265,7 +59265,7 @@ function jke(e) {
})
]
}),
- /* @__PURE__ */ (0, x.jsxs)(oN, {
+ /* @__PURE__ */ (0, x.jsxs)(sN, {
selectedKey: l,
onSelectionChange: (e) => {
let t = String(e);
@@ -59273,18 +59273,18 @@ function jke(e) {
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, x.jsx)(sN, {
+ /* @__PURE__ */ (0, x.jsx)(cN, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: kke.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(cN, {
+ children: kke.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(lN, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: t
}, e))
}),
- /* @__PURE__ */ (0, x.jsx)(lN, {
+ /* @__PURE__ */ (0, x.jsx)(uN, {
id: "list",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, x.jsx)(yke, {
@@ -59317,7 +59317,7 @@ function jke(e) {
}
})
}),
- /* @__PURE__ */ (0, x.jsxs)(lN, {
+ /* @__PURE__ */ (0, x.jsxs)(uN, {
id: "add",
className: "flex flex-col gap-8",
children: [/* @__PURE__ */ (0, x.jsx)(sOe, {
@@ -59334,7 +59334,7 @@ function jke(e) {
sources: O.sources
})]
}),
- /* @__PURE__ */ (0, x.jsx)(lN, {
+ /* @__PURE__ */ (0, x.jsx)(uN, {
id: "feeds",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, x.jsx)(Oke, {
@@ -59385,7 +59385,7 @@ function qR({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? yN(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? bN(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
role: "tab",
@@ -59432,7 +59432,7 @@ function Fke({ tag: e, actions: t }) {
children: e.n.toLocaleString()
})
]
- }), t.online ? null : /* @__PURE__ */ (0, x.jsx)(ON, { item: {
+ }), t.online ? null : /* @__PURE__ */ (0, x.jsx)(kN, { item: {
kind: "tag",
name: e.k,
entity_id: e.entity_id,
@@ -59446,7 +59446,7 @@ function Ike({ groups: e, actions: t }) {
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, x.jsxs)("section", {
"data-alpha-group": r,
- className: Dk({
+ className: Ok({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
@@ -59484,7 +59484,7 @@ function Rke({ tags: e, actions: t }) {
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
})]
- }), t.online ? null : /* @__PURE__ */ (0, x.jsx)(ON, { item: {
+ }), t.online ? null : /* @__PURE__ */ (0, x.jsx)(kN, { item: {
kind: "tag",
name: e.k,
entity_id: e.entity_id,
@@ -59503,10 +59503,10 @@ var zke = [[
"text-aa"
]];
function Bke({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, x.jsx)(xA, {
+ return /* @__PURE__ */ (0, x.jsx)(SA, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, x.jsxs)(SA, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, x.jsxs)(CA, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : DL(n, e),
pressed: t === e,
@@ -59530,19 +59530,19 @@ function Bke({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, x.jsx)(jM, {
+ /* @__PURE__ */ (0, x.jsx)(MM, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${FN}`,
+ className: `ml-auto ${IN}`,
children: zke.map(([e, t, n]) => {
- let r = yN(n);
- return /* @__PURE__ */ (0, x.jsx)(MM, {
+ let r = bN(n);
+ return /* @__PURE__ */ (0, x.jsx)(NM, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: IN,
+ className: LN,
children: /* @__PURE__ */ (0, x.jsx)("span", {
title: t,
className: "contents",
@@ -59645,19 +59645,19 @@ var Hke = [{
]]
};
function Kke({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, x.jsx)(MN, {
+ return /* @__PURE__ */ (0, x.jsx)(NN, {
"aria-label": `${vwe[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${NN}`,
+ className: `flex-none max-board-narrow:order-3 ${PN}`,
children: Gke[TL(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = yN(n);
- return /* @__PURE__ */ (0, x.jsx)(MM, {
+ let r = bN(n);
+ return /* @__PURE__ */ (0, x.jsx)(NM, {
value: e,
"aria-label": t,
- className: yye,
+ className: vye,
children: /* @__PURE__ */ (0, x.jsx)("span", {
title: t,
className: "contents",
@@ -59667,7 +59667,7 @@ function Kke({ kind: e, layout: t, onChange: n }) {
})
});
}
-var qke = yN("search");
+var qke = bN("search");
function Jke({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, b.useState)(t), a = (0, b.useRef)(!1), o = (0, b.useRef)(void 0);
(0, b.useEffect)(() => () => clearTimeout(o.current), []);
@@ -59683,13 +59683,13 @@ function Jke({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, x.jsx)(dN, {
+ children: /* @__PURE__ */ (0, x.jsx)(fN, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, x.jsx)(pN, {
+ children: /* @__PURE__ */ (0, x.jsx)(mN, {
type: "search",
leadingIcon: qke,
spellCheck: !1,
@@ -59800,7 +59800,7 @@ function Yke(e) {
layout: r,
onChange: F
}) : null,
- /* @__PURE__ */ (0, x.jsx)(kN, { kind: u === "tags" ? "tag" : u === "studios" ? "studio" : u === "agencies" ? "agency" : u === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, x.jsx)(AN, { kind: u === "tags" ? "tag" : u === "studios" ? "studio" : u === "agencies" ? "agency" : u === "creators" ? "creator" : "performer" }),
/* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
@@ -59863,8 +59863,8 @@ function Yke(e) {
mode: p
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, x.jsx)(Ok, {
- icon: yN("alert"),
+ if (w.isError) return /* @__PURE__ */ (0, x.jsx)(kk, {
+ icon: bN("alert"),
title: `没能读取${h}`,
actions: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
@@ -59913,7 +59913,7 @@ function Yke(e) {
disabled: w.isFetchingNextPage,
"aria-busy": w.isFetchingNextPage || void 0,
onClick: () => void w.fetchNextPage(),
- children: w.isFetchingNextPage ? /* @__PURE__ */ (0, x.jsx)(kk, {
+ children: w.isFetchingNextPage ? /* @__PURE__ */ (0, x.jsx)(Ak, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
@@ -59940,23 +59940,23 @@ var Xke = {
agencies: "事务所"
};
function Zke({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, x.jsx)(Ok, {
- icon: yN("search"),
+ if (t) return /* @__PURE__ */ (0, x.jsx)(kk, {
+ icon: bN("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, x.jsx)(Ek, {
+ actions: /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Xke[e], a = /* @__PURE__ */ (0, x.jsx)(Ek, {
+ let i = n && e === "performers" ? "创作者" : Xke[e], a = /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: !r || n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, x.jsx)(Ok, {
- icon: yN(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, x.jsx)(kk, {
+ icon: bN(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [r ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "primary",
@@ -60050,7 +60050,7 @@ function oAe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: pP,
+ onMouseDown: mP,
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-media-pic": "",
@@ -60212,7 +60212,7 @@ function lAe(e) {
var uAe = (e) => e === "dismissed" ? "已排除" : "待判断", dAe = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
function fAe({ kind: e, view: t }) {
let n = YR.map(([n, r, i]) => `<a href="${ZR(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${dAe(i)}${z(r)}</a>`).join(""), r = lAe(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${II(uAe(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${dAe(r.glyph)}${r.label}</a></nav></div></div></div>`;
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${LI(uAe(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${dAe(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/react/junk-queue/junk-count.tsx
@@ -60230,7 +60230,7 @@ function mAe({ scope: e, count: t }) {
})] }) : null;
}
function hAe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = XI(), a = (0, b.useRef)(null), { kind: o, view: s } = e, c = EA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? YR.map(([e]) => tAe(t, e)).join(",") : ""}`), l = lAe(s), u = (e) => {
+ let i = ZI(), a = (0, b.useRef)(null), { kind: o, view: s } = e, c = DA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? YR.map(([e]) => tAe(t, e)).join(",") : ""}`), l = lAe(s), u = (e) => {
let t = e.target.closest("a");
!t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || ZR()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
@@ -60299,7 +60299,7 @@ function hAe({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var gAe = yN("check"), _Ae = (e, t) => e[1] === t.view && e[2] === t.kind;
+var gAe = bN("check"), _Ae = (e, t) => e[1] === t.view && e[2] === t.kind;
function vAe(e) {
let t = {
kind: e.kind,
@@ -60344,7 +60344,7 @@ function yAe(e) {
}, [e]), t;
}
function bAe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = lP(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, b.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, b.useCallback)(() => {
+ let a = uP(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, b.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, b.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -60352,13 +60352,13 @@ function bAe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, x.jsx)(uP, {
+ if (!t) return /* @__PURE__ */ (0, x.jsx)(dP, {
message: Et(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, x.jsx)(Ok, {
+ return /* @__PURE__ */ (0, x.jsx)(kk, {
icon: gAe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
@@ -60564,25 +60564,25 @@ function nz(e, t = xw()) {
function jAe(e) {
let t = e === "wants" ? "筛选想要" : "筛选推荐";
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
- <div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${PI({
+ <div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${FI({
variant: "primary",
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
<div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${QR.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
- <form aria-label="${t}">${NI("筛选番号、女优或标题", "", t)}</form>
+ <form aria-label="${t}">${PI("筛选番号、女优或标题", "", t)}</form>
${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${tz("100%")}</div>${nz(e)}` : `<section class="flex min-w-0 flex-col gap-4">${MAe()}${nz(e)}</section>`}</div></div>`;
}
function MAe() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-7.5 flex-none 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">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${xw() === e ? "data-selected=\"true\"" : ""} class="flex size-7.5 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${MI(t, "size-4")}</span>`;
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-7.5 flex-none 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">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${xw() === e ? "data-selected=\"true\"" : ""} class="flex size-7.5 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${NI(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
<div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${AAe()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
- <span data-entity-sorts><button type="button" data-entity-batch data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${MI("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${ez.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? MI("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ <span data-entity-sorts><button type="button" data-entity-batch data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${NI("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
+ ${ez.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? NI("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
@@ -60603,7 +60603,7 @@ function PAe(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
function FAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, b.useState)(e), [s, c] = (0, b.useState)(() => PAe(t)), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(null), [h, g] = (0, b.useState)(""), [_, v] = (0, b.useState)(""), y = Nk(), S = (0, b.useRef)(null);
+ let [a, o] = (0, b.useState)(e), [s, c] = (0, b.useState)(() => PAe(t)), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(null), [h, g] = (0, b.useState)(""), [_, v] = (0, b.useState)(""), y = Pk(), S = (0, b.useRef)(null);
(0, b.useEffect)(() => () => S.current?.abort(), []);
let C = () => {
if (!a.trim() || y.busy) return;
@@ -60640,18 +60640,18 @@ function FAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, x.jsxs)(Uk, { children: [
+ t ? /* @__PURE__ */ (0, x.jsxs)(Wk, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? NAe : QO,
+ leadingIcon: y.busy ? NAe : $O,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -60661,7 +60661,7 @@ function FAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, x.jsx)(Gk, { children: "优先寻找" }), /* @__PURE__ */ (0, x.jsxs)(nL, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Kk, { children: "优先寻找" }), /* @__PURE__ */ (0, x.jsxs)(nL, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -60686,32 +60686,32 @@ function FAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, x.jsx)(mN, {
+ children: [/* @__PURE__ */ (0, x.jsx)(hN, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, x.jsx)(mN, {
+ }), /* @__PURE__ */ (0, x.jsx)(hN, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, x.jsx)(Uk, {
+ y.busy ? /* @__PURE__ */ (0, x.jsx)(Wk, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, x.jsx)(Uk, {
+ y.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, x.jsx)(Wk, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, x.jsx)(Uk, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, x.jsx)(Wk, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, x.jsx)(Uk, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, x.jsx)(Wk, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, x.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, x.jsxs)("li", {
@@ -60721,7 +60721,7 @@ function FAe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, x.jsx)(Uk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Wk, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -60752,7 +60752,7 @@ var IAe = {
adopted_remote: "远端已有同一任务,已接管"
};
function az({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, x.jsx)(gN, {
+ return /* @__PURE__ */ (0, x.jsx)(_N, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -60768,19 +60768,19 @@ function az({ prefill: e, close: t, receipt: n, provider: r }) {
}
function LAe({ prefill: e, close: t, receipt: n, provider: r }) {
let i = dt({
- queryKey: dA,
- queryFn: ({ signal: e }) => V(`${uA}?limit=50`, e),
- refetchInterval: (e) => fA(e.state.data)
+ queryKey: fA,
+ queryFn: ({ signal: e }) => V(`${dA}?limit=50`, e),
+ refetchInterval: (e) => pA(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, x.jsx)(qA, {
+ children: [/* @__PURE__ */ (0, x.jsx)(JA, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, x.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: UO,
+ leadingIcon: WO,
"aria-label": "关闭资源面板",
onClick: t
})]
@@ -60815,7 +60815,7 @@ function LAe({ prefill: e, close: t, receipt: n, provider: r }) {
});
}
function RAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = C(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, b.useState)(c?.key || "pikpak"), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(n.code ?? ""), [h, g] = (0, b.useState)(c?.target || ""), [_, v] = (0, b.useState)(n.code ? n : null), [y, S] = (0, b.useState)(""), w = t.available && s.some((e) => e.key === l), T = Nk(), E = (0, b.useRef)(null), D = (e) => {
+ let o = C(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, b.useState)(c?.key || "pikpak"), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(n.code ?? ""), [h, g] = (0, b.useState)(c?.target || ""), [_, v] = (0, b.useState)(n.code ? n : null), [y, S] = (0, b.useState)(""), w = t.available && s.some((e) => e.key === l), T = Pk(), E = (0, b.useRef)(null), D = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, x.jsxs)("form", {
@@ -60831,14 +60831,14 @@ function RAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- S(""), T.run("submit", (e) => H(uA, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: dA });
+ S(""), T.run("submit", (e) => H(dA, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: fA });
let t = IAe[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = pA(e.task);
+ let n = mA(e.task);
S(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -60862,7 +60862,7 @@ function RAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, x.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: [
+ }), _ ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: [
_.performers,
_.studio,
_.release_date,
@@ -60885,7 +60885,7 @@ function RAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
f(e), m(t), E.current?.focus();
}
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
ref: E,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -60897,7 +60897,7 @@ function RAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, x.jsx)(Gk, { children: "下载到" }),
+ /* @__PURE__ */ (0, x.jsx)(Kk, { children: "下载到" }),
/* @__PURE__ */ (0, x.jsx)(nL, {
"aria-label": "下载到",
selectedKey: l,
@@ -60908,13 +60908,13 @@ function RAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: s.map((e) => /* @__PURE__ */ (0, x.jsx)(rL, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, x.jsx)(lA, {
+ children: /* @__PURE__ */ (0, x.jsx)(uA, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
t.available ? null : /* @__PURE__ */ (0, x.jsx)(K, {
@@ -60928,7 +60928,7 @@ function RAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -60936,7 +60936,7 @@ function RAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, x.jsx)(mN, {
+ n.code ? null : /* @__PURE__ */ (0, x.jsx)(hN, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
@@ -60946,7 +60946,7 @@ function RAe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
m(e), iz(e, _?.code) || v(null);
}
}),
- y || T.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: y || T.error }) : null
+ y || T.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: y || T.error }) : null
]
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -61086,7 +61086,7 @@ function hz({ icon: e, children: t, title: n }) {
});
}
function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, b.useRef)(null), [c, l] = (0, b.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, b.useState)([]), f = Nk(), p = C(), m = (0, b.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, b.useMemo)(() => QAe(h, e.release_date), [h, e.release_date]);
+ let s = (0, b.useRef)(null), [c, l] = (0, b.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, b.useState)([]), f = Pk(), p = C(), m = (0, b.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, b.useMemo)(() => QAe(h, e.release_date), [h, e.release_date]);
(0, b.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -61129,7 +61129,7 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
]);
let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {
!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {
- let n = await H(uA, {
+ let n = await H(dA, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -61140,7 +61140,7 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: dA });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: fA });
});
}, S = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -61158,7 +61158,7 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: ZO,
+ leadingIcon: QO,
...q(w),
onClick: () => {
w || (m.current = !0, _.refetch());
@@ -61166,7 +61166,7 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
children: "重新查询"
})]
}),
- w ? /* @__PURE__ */ (0, x.jsx)(kk, { label: "正在查找资源链接…" }) : null,
+ w ? /* @__PURE__ */ (0, x.jsx)(Ak, { label: "正在查找资源链接…" }) : null,
T ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "资源链接未取得",
@@ -61176,11 +61176,11 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
tone: "neutral",
children: nje(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, x.jsx)(Ek, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: qO,
+ trailingIcon: JO,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -61205,7 +61205,7 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(wk, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -61220,25 +61220,25 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, x.jsx)(hz, {
- icon: uhe,
+ icon: lhe,
children: e.source
}),
/* @__PURE__ */ (0, x.jsx)(hz, {
- icon: JO,
+ icon: YO,
title: `来源大小:${e.size}`,
children: tje(e.size)
}),
e.files ? /* @__PURE__ */ (0, x.jsx)(hz, {
- icon: the,
+ icon: ehe,
children: e.files.replaceAll("個", "个")
}) : null,
/* @__PURE__ */ (0, x.jsx)(hz, {
- icon: qme,
+ icon: Kme,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, x.jsx)(hz, {
- icon: XO,
+ icon: ZO,
children: e
}, e))
]
@@ -61250,7 +61250,7 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
e.protocol === "magnet" ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "primary",
size: "small",
- leadingIcon: v ? cA[v.key] : Zme,
+ leadingIcon: v ? lA[v.key] : Xme,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
...q(f.busy === e.id),
@@ -61260,16 +61260,16 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
/* @__PURE__ */ (0, x.jsx)(G, {
variant: e.protocol === "magnet" ? "secondary" : "primary",
size: "small",
- leadingIcon: ehe,
+ leadingIcon: $me,
...q(f.busy === `copy:${e.id}`),
onClick: () => S(e),
children: "复制链接"
}),
- /* @__PURE__ */ (0, x.jsx)(Ek, {
+ /* @__PURE__ */ (0, x.jsx)(Dk, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: qO,
+ trailingIcon: JO,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -61282,7 +61282,7 @@ function rje({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, x.jsx)(Yk, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, x.jsx)(Xk, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, x.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -61329,7 +61329,7 @@ function cje({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
let [l, u] = (0, b.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, x.jsxs)("li", {
"data-want-id": e.id,
- className: Dk({
+ className: Ok({
bordered: "soft",
className: "flex flex-col gap-4 max-sm:p-4"
}),
@@ -61382,17 +61382,17 @@ function cje({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: KO,
+ leadingIcon: qO,
disabled: t,
...q(n === `remove:${e.id}`),
onClick: i,
children: "移除"
}),
- d ? /* @__PURE__ */ (0, x.jsx)(Ek, {
+ d ? /* @__PURE__ */ (0, x.jsx)(Dk, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: qO,
+ trailingIcon: JO,
href: d,
target: "_blank",
rel: "noopener noreferrer",
@@ -61427,19 +61427,19 @@ function lje({ phase: e, label: t, rows: n, row: r }) {
className: "text-body-2-regular tabular-nums text-text-secondary",
children: n.length.toLocaleString()
})]
- }), e === "searching" ? /* @__PURE__ */ (0, x.jsx)(MN, {
+ }), e === "searching" ? /* @__PURE__ */ (0, x.jsx)(NN, {
name: "want-magnet-filter",
"aria-label": "待找磁链筛选",
orientation: "horizontal",
value: o,
- className: NN,
+ className: PN,
onChange: (e) => {
s(e), a(1);
},
- children: aje.map(([e, t]) => /* @__PURE__ */ (0, x.jsxs)(MM, {
+ children: aje.map(([e, t]) => /* @__PURE__ */ (0, x.jsxs)(NM, {
value: e,
"aria-label": t,
- className: PN,
+ className: FN,
children: [t, /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-caption-1-regular tabular-nums text-text-tertiary",
children: (e === "all" ? n.length : e === "available" ? u.length : n.length - u.length).toLocaleString()
@@ -61447,9 +61447,9 @@ function lje({ phase: e, label: t, rows: n, row: r }) {
}, e))
}) : null]
}),
- d.length ? null : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ d.length ? null : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: phe,
+ icon: fhe,
title: "暂无符合条件的作品",
children: null
}),
@@ -61474,7 +61474,7 @@ function lje({ phase: e, label: t, rows: n, row: r }) {
});
}
function uje({ readOnly: e, toast: t, query: n = "" }) {
- let [r, i] = (0, b.useState)(""), [a, o] = (0, b.useState)(null), s = Nk(), c = dt({
+ let [r, i] = (0, b.useState)(""), [a, o] = (0, b.useState)(null), s = Pk(), c = dt({
queryKey: sz,
queryFn: ({ signal: e }) => VAe(e),
staleTime: 3e4,
@@ -61499,8 +61499,8 @@ function uje({ readOnly: e, toast: t, query: n = "" }) {
e.title,
e.performers
].join(" ").toLocaleLowerCase().includes(n.toLocaleLowerCase())), h = dt({
- queryKey: dA,
- queryFn: ({ signal: e }) => V(`${uA}?limit=100`, e),
+ queryKey: fA,
+ queryFn: ({ signal: e }) => V(`${dA}?limit=100`, e),
enabled: m.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
}), g = h.data?.providers.filter((e) => e.configured) || [], _ = g[0]?.key || "";
return /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -61508,7 +61508,7 @@ function uje({ readOnly: e, toast: t, query: n = "" }) {
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
- className: Dk({
+ className: Ok({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -61521,7 +61521,7 @@ function uje({ readOnly: e, toast: t, query: n = "" }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, x.jsx)(mN, {
+ children: /* @__PURE__ */ (0, x.jsx)(hN, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: r,
@@ -61554,7 +61554,7 @@ function uje({ readOnly: e, toast: t, query: n = "" }) {
"aria-label": "正在读取想要",
dangerouslySetInnerHTML: { __html: nz("wants") }
}) : null,
- p?.scraping ? /* @__PURE__ */ (0, x.jsx)(Uk, {
+ p?.scraping ? /* @__PURE__ */ (0, x.jsx)(Wk, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
@@ -61574,9 +61574,9 @@ function uje({ readOnly: e, toast: t, query: n = "" }) {
tone: "neutral",
children: "云下载只在账本写入端可用。"
}) : null,
- p && !m.length ? /* @__PURE__ */ (0, x.jsx)(Ok, {
+ p && !m.length ? /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: phe,
+ icon: fhe,
title: n ? "没有符合条件的作品" : "还没有想要的作品",
children: n ? "试试其他番号、女优或标题。" : "输入番号,添加想看的作品。"
}) : null,
@@ -61695,13 +61695,13 @@ function gje({ navigate: e, receipt: t }) {
}
//#endregion
//#region src/react/jav/jav-page.tsx
-var _je = yN("search");
+var _je = bN("search");
function gz(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
- FO(location.pathname + (t.size ? `?${t}` : ""), {
+ IO(location.pathname + (t.size ? `?${t}` : ""), {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
});
}
function vje({ tab: e, readOnly: t, navigate: n, receipt: r }) {
@@ -61721,7 +61721,7 @@ function vje({ tab: e, readOnly: t, navigate: n, receipt: r }) {
onSubmit: (e) => {
e.preventDefault();
},
- children: /* @__PURE__ */ (0, x.jsx)(mN, {
+ children: /* @__PURE__ */ (0, x.jsx)(hN, {
type: "search",
"aria-label": e === "discover" ? "筛选推荐" : "筛选想要",
placeholder: "筛选番号、女优或标题",
@@ -61790,7 +61790,7 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
(0, b.useEffect)(() => {
A?.job_id && (T.current[s] = A.job_id);
}, [s, A?.job_id]);
- let j = Nk(), M = Nk(), N = (e) => {
+ let j = Pk(), M = Pk(), N = (e) => {
M.run(e, async () => (D.current = e === "stop", E.current = e !== "stop", k.refetch({
cancelRefetch: !0,
throwOnError: !0
@@ -61809,7 +61809,7 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
"aria-busy": te,
className: "flex min-w-0 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, x.jsx)(xA, {
+ /* @__PURE__ */ (0, x.jsx)(SA, {
label: "发现筛选与排序",
topLabel: "发现范围与标签",
attrs: {
@@ -61824,7 +61824,7 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
"data-catalog-scroll": "",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
"data-catalog-views": "",
- children: [[["external", "库外发现"], ["library", "馆藏探索"]].map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(SA, {
+ children: [[["external", "库外发现"], ["library", "馆藏探索"]].map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(CA, {
"data-entity-tag": e,
"data-entity-press": "",
pressed: s === e,
@@ -61839,7 +61839,7 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
}), /* @__PURE__ */ (0, x.jsx)("div", {
"data-catalog-tags": "",
dangerouslySetInnerHTML: te ? { __html: AAe() } : void 0,
- children: te ? null : ee.map((e) => /* @__PURE__ */ (0, x.jsxs)(SA, {
+ children: te ? null : ee.map((e) => /* @__PURE__ */ (0, x.jsxs)(CA, {
"data-catalog-tag": e,
"data-entity-press": "",
pressed: l === e,
@@ -61860,7 +61860,7 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
className: "relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"
}) : `${F.length} 部`
}),
- r || l ? /* @__PURE__ */ (0, x.jsx)(CA, {
+ r || l ? /* @__PURE__ */ (0, x.jsx)(wA, {
onPress: () => {
g(""), a();
},
@@ -61880,13 +61880,13 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
onClick: () => N(A?.status === "running" ? "stop" : "update"),
dangerouslySetInnerHTML: { __html: M.busy ? ao("正在更新资料") : R(A?.status === "running" ? "x" : "refresh-cw") }
}) : null,
- /* @__PURE__ */ (0, x.jsx)(rP, {
+ /* @__PURE__ */ (0, x.jsx)(iP, {
label: "JAV 卡片版式",
value: C,
options: gw,
onChange: Sue
}),
- /* @__PURE__ */ (0, x.jsx)(aP, {
+ /* @__PURE__ */ (0, x.jsx)(oP, {
sorts: ez.map(([e, t, n]) => ({
key: e,
label: t,
@@ -61915,7 +61915,7 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
s === "external" && A?.status === "running" ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-jav-metadata": "",
className: "min-w-0",
- children: /* @__PURE__ */ (0, x.jsx)(eL, {
+ children: /* @__PURE__ */ (0, x.jsx)(tL, {
embedded: !0,
label: `正在读取作品资料 · ${A.completed} / ${A.total} 部`,
value: A.completed,
@@ -61936,11 +61936,11 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
tone: "error",
children: M.error
}) : null,
- !te && !k.error && !F.length ? /* @__PURE__ */ (0, x.jsx)(Ok, {
+ !te && !k.error && !F.length ? /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: WO,
+ icon: GO,
title: r || l ? "没有符合条件的推荐" : "暂无匹配口味的作品",
- actions: /* @__PURE__ */ (0, x.jsx)(Ek, {
+ actions: /* @__PURE__ */ (0, x.jsx)(Dk, {
href: "/taste",
variant: "secondary",
children: "查看口味"
@@ -61979,7 +61979,7 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
"data-media-pic": "",
"data-jav-cover-box": "",
className: "relative inline-grid place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default",
- children: o ? /* @__PURE__ */ (0, x.jsx)(dP, {
+ children: o ? /* @__PURE__ */ (0, x.jsx)(fP, {
artwork: {
kind: "cover",
html: o
@@ -62055,7 +62055,7 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
title: c,
"aria-label": `推荐分 ${s.score},${s.label}`,
className: "rounded-md outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, x.jsx)(wk, {
+ children: /* @__PURE__ */ (0, x.jsx)(Tk, {
color: s.color,
children: s.label
})
@@ -62094,10 +62094,10 @@ function yje({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
},
children: r.asset_id ? "已入库" : r.wanted ? "已加入想要" : "想要"
}),
- r.link ? /* @__PURE__ */ (0, x.jsx)(Ek, {
+ r.link ? /* @__PURE__ */ (0, x.jsx)(Dk, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: qO,
+ trailingIcon: JO,
href: r.link,
target: "_blank",
rel: "noopener noreferrer",
@@ -62148,9 +62148,9 @@ function xje({ value: e, max: t }) {
});
}
function Sje(e) {
- let { job: t } = tL(e), n = t.data, r = t.isError ? n ? sF : B(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+ let { job: t } = ISe(e), n = t.data, r = t.isError ? n ? cF : B(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?.total || 0, l = Math.min(n?.checked || 0, c), u = r || (a ? "扫描与资料采集未完成" : lF(n) + (c ? ` · ${iA(l, c)}` : "")), d = s === "gray" ? she : Qme;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.total || 0, l = Math.min(n?.checked || 0, c), u = r || (a ? "扫描与资料采集未完成" : uF(n) + (c ? ` · ${aA(l, c)}` : "")), d = s === "gray" ? ohe : Zme;
return /* @__PURE__ */ (0, x.jsxs)("aside", {
role: a ? "alert" : "status",
className: bje[s],
@@ -62166,10 +62166,10 @@ function Sje(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, x.jsx)(Rk, {
+ }), /* @__PURE__ */ (0, x.jsx)(zk, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: VO,
+ trailingIcon: HO,
children: r || a ? "查看并处理" : "查看进度"
})]
});
@@ -62211,7 +62211,7 @@ function Mje(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var Nje = yN("ellipsis"), Pje = yN("pencil"), Fje = yN("trash"), Ije = yN("playlist"), Lje = xk(kI, AI, "text-body-2-medium"), Rje = "播放列表名称不能为空", xz = (e) => async () => {
+var Nje = bN("ellipsis"), Pje = bN("pencil"), Fje = bN("trash"), Ije = bN("playlist"), Lje = Sk(AI, jI, "text-body-2-medium"), Rje = "播放列表名称不能为空", xz = (e) => async () => {
try {
await e();
} finally {
@@ -62235,7 +62235,7 @@ function zje({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, x.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, x.jsx)(mN, {
+ children: /* @__PURE__ */ (0, x.jsx)(hN, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -62271,7 +62271,7 @@ function Bje({ target: e, close: t, toast: n }) {
},
onError: (e) => o(B(e))
});
- return /* @__PURE__ */ (0, x.jsx)(gN, {
+ return /* @__PURE__ */ (0, x.jsx)(_N, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -62290,11 +62290,11 @@ function Bje({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, x.jsx)(qA, {
+ children: [/* @__PURE__ */ (0, x.jsx)(JA, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, x.jsx)(mN, {
+ }), /* @__PURE__ */ (0, x.jsx)(hN, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -62340,14 +62340,14 @@ function Vje({ name: e, onRename: t, onDelete: n }) {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, x.jsx)(fM, {
+ }), /* @__PURE__ */ (0, x.jsx)(pM, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: OI,
- children: /* @__PURE__ */ (0, x.jsxs)(DI, {
+ className: kI,
+ children: /* @__PURE__ */ (0, x.jsxs)(OI, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, x.jsxs)("button", {
@@ -62410,7 +62410,7 @@ function Hje({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
className: "card-grid-cover gap-4.5",
children: u.map((r) => {
let i = Eje(r), a = r.name.trim() || "未命名播放列表";
- return /* @__PURE__ */ (0, x.jsx)(wP, {
+ return /* @__PURE__ */ (0, x.jsx)(TP, {
"data-playlist-card": String(r.id),
name: a,
caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
@@ -62429,11 +62429,11 @@ function Hje({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
})
}, r.id);
})
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
icon: Ije,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
- }) : a.isError ? /* @__PURE__ */ (0, x.jsx)(uP, {
+ }) : a.isError ? /* @__PURE__ */ (0, x.jsx)(dP, {
message: B(a.error) || "播放列表读取失败",
onRetry: () => void a.refetch()
}) : null
@@ -62452,7 +62452,7 @@ function Uje({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
let o = () => t(e.id);
return /* @__PURE__ */ (0, x.jsxs)("li", {
"data-goal-id": e.id,
- className: Dk({
+ className: Ok({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -62468,7 +62468,7 @@ function Uje({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, x.jsx)("img", {
- src: yF(e),
+ src: bF(e),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -62516,7 +62516,7 @@ function Uje({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
origin: `asset:${e.id}`,
searchReason: e.reason || "",
duration: e.duration,
- cover: yF(e)
+ cover: bF(e)
}),
children: "查找资源"
}) : null, /* @__PURE__ */ (0, x.jsx)(G, {
@@ -62530,16 +62530,16 @@ function Uje({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
}
function Wje({ toast: e, ...t }) {
let [n, r] = (0, b.useState)(null), i = dt({
- queryKey: _F,
- queryFn: ({ signal: e }) => vF(e)
+ queryKey: vF,
+ queryFn: ({ signal: e }) => yF(e)
}), a = i.data;
- if (!a) return /* @__PURE__ */ (0, x.jsx)(Ak, { children: /* @__PURE__ */ (0, x.jsx)(K, {
+ if (!a) return /* @__PURE__ */ (0, x.jsx)(jk, { children: /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "高清版目标读取失败",
children: i.error ? B(i.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let o = a.items || [];
- return o.length ? /* @__PURE__ */ (0, x.jsxs)(Ak, { children: [
+ return o.length ? /* @__PURE__ */ (0, x.jsxs)(jk, { children: [
/* @__PURE__ */ (0, x.jsx)(nR, {
label: "待升级",
figure: `${Number(a.total || 0).toLocaleString()} 部作品`,
@@ -62562,9 +62562,9 @@ function Wje({ toast: e, ...t }) {
close: () => r(null),
receipt: e
})
- ] }) : /* @__PURE__ */ (0, x.jsx)(Ak, { children: /* @__PURE__ */ (0, x.jsx)(Ok, {
+ ] }) : /* @__PURE__ */ (0, x.jsx)(jk, { children: /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: bhe,
+ icon: yhe,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
@@ -62572,7 +62572,7 @@ function Wje({ toast: e, ...t }) {
//#endregion
//#region src/react/review/bulk-toolbar.tsx
function Gje(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 = pxe(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), S = y.length ? "统一选择来源" : "所选项目无共同来源";
+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = fxe(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), S = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -62610,7 +62610,7 @@ function Gje(e) {
/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: Yme,
+ leadingIcon: Jme,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -62747,13 +62747,13 @@ function Xje({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
children: /* @__PURE__ */ (0, x.jsx)(Yje, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, x.jsx)(jM, {
+ }) : /* @__PURE__ */ (0, x.jsx)(MM, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, x.jsx)(MM, {
+ children: a.map((e) => /* @__PURE__ */ (0, x.jsx)(NM, {
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, x.jsx)(Yje, {
@@ -62765,9 +62765,9 @@ function Xje({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}
function Zje({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(""), c = ft({
- mutationFn: (t) => xxe(e, t),
+ mutationFn: (t) => bxe(e, t),
onSuccess: async (t, n) => {
- t.ok ? (r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Cxe()) : s(t.error || "服务端拒绝了这次收录");
+ t.ok ? (r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Sxe()) : s(t.error || "服务端拒绝了这次收录");
},
onError: (e) => s(B(e))
}), l = () => {
@@ -62782,14 +62782,14 @@ function Zje({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, x.jsx)(dN, {
+ /* @__PURE__ */ (0, x.jsx)(fN, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, x.jsx)(pN, {
+ children: /* @__PURE__ */ (0, x.jsx)(mN, {
size: "small",
list: t.length ? qje : void 0,
autoComplete: "off",
@@ -62824,7 +62824,7 @@ function Zje({ genre: e, tags: t, locked: n, toast: r }) {
});
}
function Qje({ row: e, tags: t, locked: n, toast: r }) {
- let i = vxe(e);
+ let i = _xe(e);
return i.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -62910,7 +62910,7 @@ function rMe({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: dhe,
+ leadingIcon: uhe,
onClick: () => t(e.id),
children: "打开原视频"
})]
@@ -62951,10 +62951,10 @@ function aMe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, x.jsx)(Ek, {
+ children: [o ? /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
size: "small",
- trailingIcon: qO,
+ trailingIcon: JO,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -63085,13 +63085,13 @@ function oMe({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var sMe = Dk({
+var sMe = Ok({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
}), Sz = "flex min-h-6 min-w-0 items-center", Cz = 2, cMe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
function lMe(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, b.useRef)(!1), m = XI(), h = XI(), g = t === "metadata_fields", _ = lxe[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, S = hxe(t, n), C = DF(t, n), w = EF(t, n), T = gxe(n), E = _xe(n), D = TF(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, x.jsxs)("div", {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, b.useRef)(!1), m = ZI(), h = ZI(), g = t === "metadata_fields", _ = cxe[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, S = mxe(t, n), C = OF(t, n), w = DF(t, n), T = hxe(n), E = gxe(n), D = EF(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-3",
children: [O.slice(0, Cz).map((e) => /* @__PURE__ */ (0, x.jsx)(rMe, {
asset: e,
@@ -63135,9 +63135,9 @@ function lMe(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "inset",
- icon: ahe,
+ icon: ihe,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
}) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, x.jsx)(aMe, {
@@ -63152,7 +63152,7 @@ function lMe(e) {
children: [/* @__PURE__ */ (0, x.jsx)("span", {
title: C,
className: "flex max-w-full min-w-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, x.jsx)(wk, {
+ children: /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "blue",
children: C
@@ -63196,7 +63196,7 @@ function lMe(e) {
className: "min-w-0 flex-1",
children: N
}),
- A ? /* @__PURE__ */ (0, x.jsx)(wk, {
+ A ? /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -63220,7 +63220,7 @@ function lMe(e) {
!y && j ? j : null,
E.length || t === "creator_tags" ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: E.length ? E.map((e) => /* @__PURE__ */ (0, x.jsx)(wk, {
+ children: E.length ? E.map((e) => /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "soft",
children: e
@@ -63337,28 +63337,28 @@ function fMe(e) {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, b.useState)(CF(e.category) ? e.category : cxe), [p, m] = (0, b.useState)("candidates"), [h, g] = (0, b.useState)(""), [_, v] = (0, b.useState)(1), [y, S] = (0, b.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, b.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, b.useState)(/* @__PURE__ */ new Map()), [D, O] = (0, b.useState)(""), k = (0, b.useRef)(null), [A, j] = (0, b.useState)(0), [M, N] = (0, b.useState)(""), P = (0, b.useRef)(!0);
+ let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, b.useState)(wF(e.category) ? e.category : sxe), [p, m] = (0, b.useState)("candidates"), [h, g] = (0, b.useState)(""), [_, v] = (0, b.useState)(1), [y, S] = (0, b.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, b.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, b.useState)(/* @__PURE__ */ new Map()), [D, O] = (0, b.useState)(""), k = (0, b.useRef)(null), [A, j] = (0, b.useState)(0), [M, N] = (0, b.useState)(""), P = (0, b.useRef)(!0);
(0, b.useEffect)(() => () => {
P.current = !1;
}, []);
let ee = dt({
- queryKey: xF,
- queryFn: ({ signal: e }) => kF(e)
+ queryKey: SF,
+ queryFn: ({ signal: e }) => AF(e)
}), F = ee.data || {
sections: {},
counts: {}
- }, te = F.sections[d] || [], I = d === "metadata_fields", ne = c, re = uxe(te, I), ie = re.some(([e]) => e === p) ? p : "candidates", ae = wF(te, ie), oe = ae.some((e) => e.key === h) ? h : "", se = fxe(dxe(te, ie, oe), _), ce = se.rows.map((e) => e.item_key), le = new Set(ce), ue = ae.map((e) => ({
+ }, te = F.sections[d] || [], I = d === "metadata_fields", ne = c, re = lxe(te, I), ie = re.some(([e]) => e === p) ? p : "candidates", ae = TF(te, ie), oe = ae.some((e) => e.key === h) ? h : "", se = dxe(uxe(te, ie, oe), _), ce = se.rows.map((e) => e.item_key), le = new Set(ce), ue = ae.map((e) => ({
...e,
rows: e.rows.filter((e) => le.has(e.item_key))
- })).filter((e) => e.rows.length), de = (e) => C.get(e.item_key) || yxe(e), fe = te.filter((e) => y.has(e.item_key)), pe = (e) => {
+ })).filter((e) => e.rows.length), de = (e) => C.get(e.item_key) || vxe(e), fe = te.filter((e) => y.has(e.item_key)), pe = (e) => {
let t = new Set(e);
S((e) => new Set([...e].filter((e) => !t.has(e)))), w((e) => new Map([...e].filter(([e]) => !t.has(e)))), E((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, me = (e, t) => E((n) => new Map(n).set(e, t)), he = (e) => {
f(e), m("candidates"), g(""), v(1), S(/* @__PURE__ */ new Set()), w(/* @__PURE__ */ new Map()), E(/* @__PURE__ */ new Map()), O(""), k.current = null, r({ category: e === "metadata_fields" ? "" : e });
}, ge = ft({
- mutationFn: ({ row: e, status: t }) => AF(OF(d, e, t, de(e))),
+ mutationFn: ({ row: e, status: t }) => jF(kF(d, e, t, de(e))),
onSuccess: (e, { row: t, status: n }) => {
- e.ok ? (jF(d, [t.item_key]), pe([t.item_key]), s(bxe(n))) : me(t.item_key, e.error || "服务端拒绝了这次判定");
+ e.ok ? (MF(d, [t.item_key]), pe([t.item_key]), s(yxe(n))) : me(t.item_key, e.error || "服务端拒绝了这次判定");
},
onError: (e, { row: t }) => me(t.item_key, B(e))
}), _e = ft({
@@ -63368,7 +63368,7 @@ function fMe(e) {
if (!P.current) break;
O(`正在处理 ${i} / ${t.length}`);
try {
- let t = await AF(OF(d, a, e, de(a)));
+ let t = await jF(kF(d, a, e, de(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -63382,7 +63382,7 @@ function fMe(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- jF(d, t), pe(t), n.forEach(([e, t]) => me(e, t)), O(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ MF(d, t), pe(t), n.forEach(([e, t]) => me(e, t)), O(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
O(B(e));
@@ -63406,7 +63406,7 @@ function fMe(e) {
j(e), N("");
let t = await o(e);
P.current && (j(0), N(t));
- }, xe = wxe(F.mirror, l), Se = F.genre_tags || [], Ce = {
+ }, xe = Cxe(F.mirror, l), Se = F.genre_tags || [], Ce = {
openItem: i,
openEntity: a,
onReveal: be,
@@ -63414,7 +63414,7 @@ function fMe(e) {
revealNote: M,
toast: s
};
- return /* @__PURE__ */ (0, x.jsx)(Ak, { children: /* @__PURE__ */ (0, x.jsxs)("div", {
+ return /* @__PURE__ */ (0, x.jsx)(jk, { children: /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
ne ? /* @__PURE__ */ (0, x.jsx)(K, {
@@ -63431,12 +63431,12 @@ function fMe(e) {
children: xe
}) : null,
/* @__PURE__ */ (0, x.jsx)(Jje, { tags: Se }),
- /* @__PURE__ */ (0, x.jsxs)(oN, {
+ /* @__PURE__ */ (0, x.jsxs)(sN, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
onSelectionChange: (e) => {
let t = String(e);
- CF(t) && he(t);
+ wF(t) && he(t);
},
className: "flex flex-col gap-5 review-split:flex-row review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -63445,23 +63445,23 @@ function fMe(e) {
children: [/* @__PURE__ */ (0, x.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, x.jsx)(sN, {
+ }), /* @__PURE__ */ (0, x.jsx)(cN, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: sxe.map((e) => {
+ children: oxe.map((e) => {
let t = Number(F.counts[e] || 0);
- return /* @__PURE__ */ (0, x.jsxs)(cN, {
+ return /* @__PURE__ */ (0, x.jsxs)(lN, {
id: e,
className: uMe,
- children: [SF[e], t ? /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [CF[e], t ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, x.jsxs)(lN, {
+ }), /* @__PURE__ */ (0, x.jsxs)(uN, {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
@@ -63481,7 +63481,7 @@ function fMe(e) {
onSelected: S,
selectedRows: fe,
metadata: I,
- approvable: fe.every((e) => TF(d, e)),
+ approvable: fe.every((e) => EF(d, e)),
busy: _e.isPending,
feedback: D,
onUnifySource: ye,
@@ -63514,7 +63514,7 @@ function fMe(e) {
selected: y.has(e.item_key),
onSelect: (t, n) => S((r) => {
let i = new Set(r);
- return k.current = mxe(i, ce, k.current, e.item_key, t, n), i;
+ return k.current = pxe(i, ce, k.current, e.item_key, t, n), i;
}),
locked: ne,
busy: ge.isPending && ge.variables?.row.item_key === e.item_key,
@@ -63540,8 +63540,8 @@ function fMe(e) {
children: "重试"
}),
children: B(ee.error)
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
- icon: Xme,
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
+ icon: Yme,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
@@ -63696,16 +63696,16 @@ function NMe({ receipt: e }) {
let [t, n] = (0, b.useState)(null), r = dt({
queryKey: Tz,
queryFn: ({ signal: e }) => pMe(e)
- }), i = Nk(), a = (e) => U.setQueryData(Tz, e);
- return /* @__PURE__ */ (0, x.jsx)(zk, {
+ }), i = Pk(), a = (e) => U.setQueryData(Tz, e);
+ return /* @__PURE__ */ (0, x.jsx)(Bk, {
title: "自定义元数据来源",
- children: /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
+ children: /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
r.isPending ? /* @__PURE__ */ (0, x.jsx)("div", {
"aria-busy": "true",
"data-skeleton": "",
"aria-label": "读取自定义来源"
}) : null,
- r.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: B(r.error) }) : null,
+ r.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: B(r.error) }) : null,
r.data?.items.map((t) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [
@@ -63750,7 +63750,7 @@ function NMe({ receipt: e }) {
})
]
}, t.id)),
- i.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: i.error }) : null,
+ i.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: i.error }) : null,
t ? null : /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
onClick: () => n(MMe()),
@@ -63767,7 +63767,7 @@ function NMe({ receipt: e }) {
});
}
function PMe({ initial: e, cancel: t, saved: n }) {
- let [r, i] = (0, b.useState)(e), [a, o] = (0, b.useState)(""), [s, c] = (0, b.useState)(""), l = (0, b.useRef)(0), u = Nk(), d = (e) => {
+ let [r, i] = (0, b.useState)(e), [a, o] = (0, b.useState)(""), [s, c] = (0, b.useState)(""), l = (0, b.useRef)(0), u = Pk(), d = (e) => {
l.current++, i((t) => ({
...t,
...e
@@ -63779,14 +63779,14 @@ function PMe({ initial: e, cancel: t, saved: n }) {
onSubmit: (e) => {
e.preventDefault(), u.run("save", (e) => H(wz, r, "POST", e), n);
},
- children: [/* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "来源名称",
value: r.name,
maxLength: 80,
onChange: (e) => d({ name: e })
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "JSON 接口地址",
value: r.endpoint,
maxLength: 2048,
@@ -63795,7 +63795,7 @@ function PMe({ initial: e, cancel: t, saved: n }) {
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(Gk, { children: "来源连接方式" }), /* @__PURE__ */ (0, x.jsx)(Oz, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Kk, { children: "来源连接方式" }), /* @__PURE__ */ (0, x.jsx)(Oz, {
id: "custom-source-network",
label: "来源连接方式",
epoch: 0,
@@ -63806,7 +63806,7 @@ function PMe({ initial: e, cancel: t, saved: n }) {
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(Gk, { children: "接口番号格式" }), /* @__PURE__ */ (0, x.jsx)(Oz, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Kk, { children: "接口番号格式" }), /* @__PURE__ */ (0, x.jsx)(Oz, {
id: "custom-source-code-format",
label: "接口番号格式",
epoch: 0,
@@ -63820,8 +63820,8 @@ function PMe({ initial: e, cancel: t, saved: n }) {
onPick: (e) => d({ code_format: e })
})]
}),
- /* @__PURE__ */ (0, x.jsx)(Uk, { children: "填写公开 JSON 接口和响应字段路径,例如 data.title。番号字段用于核对作品身份。" }),
- AMe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(Wk, { children: "填写公开 JSON 接口和响应字段路径,例如 data.title。番号字段用于核对作品身份。" }),
+ AMe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(hN, {
label: `${t}字段路径`,
value: r.fields[e] || "",
onChange: (t) => {
@@ -63844,7 +63844,7 @@ function PMe({ initial: e, cancel: t, saved: n }) {
onChange: (e) => d({ enabled: e }),
children: "启用来源"
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "试查番号(回车查询)",
value: a,
onChange: (e) => {
@@ -63865,7 +63865,7 @@ function PMe({ initial: e, cancel: t, saved: n }) {
});
}
}),
- u.busy === "preview" ? /* @__PURE__ */ (0, x.jsxs)(Uk, {
+ u.busy === "preview" ? /* @__PURE__ */ (0, x.jsxs)(Wk, {
role: "status",
children: [/* @__PURE__ */ (0, x.jsx)("span", { dangerouslySetInnerHTML: { __html: ao("正在试查来源") } }), "正在试查来源…"]
}) : null,
@@ -63873,8 +63873,8 @@ function PMe({ initial: e, cancel: t, saved: n }) {
className: "whitespace-pre-wrap break-all",
children: s
}) : null,
- u.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: u.error }) : null
- ] }), /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
+ u.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: u.error }) : null
+ ] }), /* @__PURE__ */ (0, x.jsxs)(Uk, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
type: "button",
onClick: t,
@@ -63901,7 +63901,7 @@ function IMe(e) {
}
var LMe = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
function RMe({ source: e }) {
- if (e === "makers") return /* @__PURE__ */ (0, x.jsx)(Kme, {
+ if (e === "makers") return /* @__PURE__ */ (0, x.jsx)(Gme, {
"aria-hidden": !0,
className: "size-4 shrink-0"
});
@@ -63963,18 +63963,18 @@ function BMe({ source: e, toast: t }) {
}
}
let T = f || (g.error ? B(g.error) : "") || (_.error ? B(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || e.browser || !!T || E.length > 0;
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, x.jsx)(RMe, { source: e.source }), e.login ? /* @__PURE__ */ (0, x.jsx)(Kk, {
+ children: [/* @__PURE__ */ (0, x.jsx)(RMe, { source: e.source }), e.login ? /* @__PURE__ */ (0, x.jsx)(qk, {
href: e.login,
children: IMe(e.login)
}) : null]
}),
children: [
- /* @__PURE__ */ (0, x.jsx)(Bk, { children: /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "连接方式",
children: /* @__PURE__ */ (0, x.jsx)(nL, {
"aria-label": "连接方式",
@@ -63993,15 +63993,15 @@ function BMe({ source: e, toast: t }) {
tone: "warning",
children: ["来源正在冷却,截止 ", (/* @__PURE__ */ new Date(e.cooldown_until * 1e3)).toLocaleString("zh-CN")]
}) : null,
- D ? /* @__PURE__ */ (0, x.jsxs)(Vk, {
+ D ? /* @__PURE__ */ (0, x.jsxs)(Hk, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, x.jsx)(Rk, {
+ children: /* @__PURE__ */ (0, x.jsx)(zk, {
href: "/settings/library#peachProxy",
size: "small",
- trailingIcon: VO,
+ trailingIcon: HO,
children: "配置 Peach 代理"
})
}) : null,
@@ -64014,20 +64014,20 @@ function BMe({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, x.jsx)(MN, {
+ /* @__PURE__ */ (0, x.jsx)(NN, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: NN,
- children: LMe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(MM, {
+ className: PN,
+ children: LMe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(NM, {
value: e,
- className: PN,
+ className: FN,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, x.jsx)(mN, {
+ c === "paste" ? /* @__PURE__ */ (0, x.jsx)(hN, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -64036,7 +64036,7 @@ function BMe({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(Gk, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, x.jsx)(Kk, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, x.jsx)(G, {
@@ -64062,14 +64062,14 @@ function BMe({ source: e, toast: t }) {
]
})
] }) : null,
- T ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: T }) : null,
+ T ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: T }) : null,
E.map((t) => /* @__PURE__ */ (0, x.jsx)(K, {
tone: t.ok ? "success" : "error",
children: DMe(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
+ /* @__PURE__ */ (0, x.jsxs)(Uk, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
onClick: S,
@@ -64102,15 +64102,15 @@ function VMe({ toast: e }) {
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? B(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, x.jsx)(zk, {
+ return /* @__PURE__ */ (0, x.jsx)(Bk, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
+ children: /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, x.jsx)(mN, {
+ children: /* @__PURE__ */ (0, x.jsx)(hN, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -64125,7 +64125,7 @@ function VMe({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, x.jsx)(kk, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, x.jsx)(Ak, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
children: s
@@ -64151,51 +64151,51 @@ function HMe({ toast: e }) {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
}), a = ft({ mutationFn: () => H(yMe, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, x.jsx)(zk, {
+ if (!o) return t.error ? /* @__PURE__ */ (0, x.jsx)(Bk, {
title: "amane",
- children: /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(K, {
+ children: /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
children: B(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? B(i.error) : a.error ? B(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "amane",
- aside: /* @__PURE__ */ (0, x.jsx)(Kk, {
+ aside: /* @__PURE__ */ (0, x.jsx)(qk, {
href: o.repository,
leadingIcon: zMe,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, x.jsxs)(qk, { children: [
- /* @__PURE__ */ (0, x.jsx)(Jk, {
+ /* @__PURE__ */ (0, x.jsxs)(Jk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, x.jsx)(Jk, {
+ /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, x.jsx)(Jk, {
+ /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, x.jsxs)(Jk, {
+ /* @__PURE__ */ (0, x.jsxs)(Yk, {
term: "内置站点",
children: [o.sites.length.toLocaleString(), " 个"]
})
] }),
- /* @__PURE__ */ (0, x.jsxs)(Vk, {
+ /* @__PURE__ */ (0, x.jsxs)(Hk, {
divided: !0,
children: [
- o.sites.length ? /* @__PURE__ */ (0, x.jsx)(Yk, {
+ o.sites.length ? /* @__PURE__ */ (0, x.jsx)(Xk, {
summary: "查看内置站点",
children: /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: o.sites.map((e) => e.label).join("、")
})
}) : null,
- /* @__PURE__ */ (0, x.jsxs)(Uk, { children: [
+ /* @__PURE__ */ (0, x.jsxs)(Wk, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -64204,7 +64204,7 @@ function HMe({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, x.jsx)(kk, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, x.jsx)(Ak, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
children: c
@@ -64215,7 +64215,7 @@ function HMe({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
+ /* @__PURE__ */ (0, x.jsxs)(Uk, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -64237,7 +64237,7 @@ function UMe({ toast: e }) {
queryKey: Ez,
queryFn: ({ signal: e }) => CMe(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, x.jsxs)(Ak, { children: [
+ return n ? /* @__PURE__ */ (0, x.jsxs)(jk, { children: [
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
@@ -64249,7 +64249,7 @@ function UMe({ toast: e }) {
toast: e
}, t.source)),
/* @__PURE__ */ (0, x.jsx)(HMe, { toast: e })
- ] }) : /* @__PURE__ */ (0, x.jsx)(Ak, { children: /* @__PURE__ */ (0, x.jsx)(K, {
+ ] }) : /* @__PURE__ */ (0, x.jsx)(jk, { children: /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? B(t.error) : "读取采集来源失败"
@@ -64257,21 +64257,21 @@ function UMe({ toast: e }) {
}
//#endregion
//#region src/react/search/search.ts
-var WMe = /* @__PURE__ */ new Set([
+var Az = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), Az = /* @__PURE__ */ new Set(["asset"]), jz = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function GMe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+]), jz = /* @__PURE__ */ new Set(["asset"]), Mz = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function WMe({ 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 || jz(t).includes(jz(e)));
+ }, u = t.filter((t) => !e || Mz(t).includes(Mz(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -64318,7 +64318,7 @@ function GMe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, h = p.filter((e) => !Az.has(e.kind)).map(m), g = p.filter((e) => Az.has(e.kind)).map(m), _ = d && !p.some((e) => e.items.length);
+ }, h = p.filter((e) => !jz.has(e.kind)).map(m), g = p.filter((e) => jz.has(e.kind)).map(m), _ = d && !p.some((e) => e.items.length);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -64328,17 +64328,17 @@ function GMe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function KMe(e, t, n = Math.random) {
+function GMe(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) => jz(t) === jz(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => Mz(t) === Mz(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var qMe = () => ({
+var KMe = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -64354,7 +64354,7 @@ var qMe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), Mz = (e) => GMe({
+}), Nz = (e) => WMe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -64362,18 +64362,18 @@ var qMe = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), JMe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), Nz = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
+}), qMe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), Pz = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
-function YMe(e) {
+function JMe(e) {
let t = (0, b.useRef)(e);
t.current = e;
let n = (0, b.useRef)(null);
- n.current ??= qMe();
+ n.current ??= KMe();
let r = n.current, i = (0, b.useRef)(null), [, a] = (0, b.useReducer)((e) => e + 1, 0), o = (0, b.useRef)(null);
- o.current ??= XMe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= YMe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, b.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -64386,7 +64386,7 @@ function YMe(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 = Mz(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, x.jsx)(QMe, {
+ let c = Nz(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, x.jsx)(ZMe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -64410,7 +64410,7 @@ function YMe(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, x.jsx)(ZMe, {
+ c.tabs ? /* @__PURE__ */ (0, x.jsx)(XMe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -64436,7 +64436,7 @@ function YMe(e) {
]
});
}
-function XMe(e, t, n, r) {
+function YMe(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 () => {
@@ -64447,7 +64447,7 @@ function XMe(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) => jz(e) !== jz(t))]), H("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => Mz(e) !== Mz(t))]), H("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -64484,9 +64484,9 @@ function XMe(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 ? [] : KMe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : GMe(t.pool, o()), t.active = -1;
let a = n();
- a && (JMe(Mz(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (qMe(Nz(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -64498,7 +64498,7 @@ function XMe(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() ? Mz(t).options : [], v = (e) => {
+ }, _ = () => f() ? Nz(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) => {
@@ -64507,7 +64507,7 @@ function XMe(e, t, n, r) {
}, b = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, x = (t) => {
- t.type === "more" ? (y(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && WMe.has(t.kind) ? b(t.kind, t.value) : (i().value = t.value, y(!1, !0));
+ t.type === "more" ? (y(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && Az.has(t.kind) ? b(t.kind, t.value) : (i().value = t.value, y(!1, !0));
};
return {
input: (t) => {
@@ -64551,12 +64551,12 @@ function XMe(e, t, n, r) {
await H("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => jz(t) !== jz(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => Mz(t) !== Mz(e))), t.active = -1, r();
},
pickKind: g
};
}
-function ZMe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function XMe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, b.useRef)(null);
(0, b.useLayoutEffect)(() => {
r(i.current);
@@ -64578,8 +64578,8 @@ function ZMe({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var Pz = (e) => e.preventDefault();
-function QMe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var Fz = (e) => e.preventDefault();
+function ZMe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -64591,40 +64591,40 @@ function QMe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: Pz,
+ onMouseDown: Fz,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, x.jsx)(Nz, { name: "chevron-right" })
+ /* @__PURE__ */ (0, x.jsx)(Pz, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, x.jsx)(Nz, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, x.jsx)(Pz, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, x.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: Pz,
+ onMouseDown: Fz,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, x.jsx)(Nz, { name: "x" })
+ children: /* @__PURE__ */ (0, x.jsx)(Pz, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = WMe.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = Az.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, x.jsx)(Fz, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Iz, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, x.jsxs)("span", {
@@ -64650,7 +64650,7 @@ function QMe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, x.jsx)(Iz, {
+ /* @__PURE__ */ (0, x.jsx)(Lz, {
item: s,
kind: c
}),
@@ -64670,11 +64670,11 @@ function QMe({ 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: Pz,
+ onMouseDown: Fz,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, x.jsx)(Fz, {
+ children: /* @__PURE__ */ (0, x.jsx)(Iz, {
card: e,
helpers: n
})
@@ -64688,7 +64688,7 @@ function QMe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, x.jsx)(Iz, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, x.jsx)(Lz, {
item: s,
kind: c
}) : null,
@@ -64701,13 +64701,13 @@ function QMe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function Fz({ card: e, helpers: t }) {
+function Iz({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, x.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function Iz({ item: e, kind: t }) {
+function Lz({ item: e, kind: t }) {
let n = {
id: e.entity_id,
has_image: e.has_image,
@@ -64723,45 +64723,45 @@ function Iz({ item: e, kind: t }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var Lz = "/api/configuration", $Me = "/api/pick-folder", Rz = ["configuration"], zz = (e) => V(Lz, e);
-async function eNe(e) {
+var Rz = "/api/configuration", QMe = "/api/pick-folder", zz = ["configuration"], Bz = (e) => V(Rz, e);
+async function $Me(e) {
await U.fetchQuery({
- queryKey: Rz,
- queryFn: () => zz(e)
+ queryKey: zz,
+ queryFn: () => Bz(e)
});
}
//#endregion
//#region src/react/settings/configuration-panel.ts
-var Bz = "flex flex-col gap-6";
-function Vz(e) {
+var Vz = "flex flex-col gap-6";
+function Hz(e) {
return e ? {
- className: e.active ? `${Bz} ui-board-group-active` : Bz,
+ className: e.active ? `${Vz} ui-board-group-active` : Vz,
"data-board-group": String(e.index),
id: e.id,
role: "tabpanel",
"aria-labelledby": e.labelledBy
- } : { className: Bz };
+ } : { className: Vz };
}
//#endregion
//#region src/react/settings/download-settings.tsx
-var tNe = "/api/configuration/downloads", Hz = "/api/configuration/downloads/check", nNe = "/api/configuration/downloads/folder", rNe = "/api/configuration/downloads/pikpak/login", iNe = "/api/configuration/downloads/pikpak/logout", Uz = "/api/configuration/downloads/pikpak/browser-login", Wz = 2e3;
-function aNe({ initial: e, receipt: t, panel: n }) {
+var eNe = "/api/configuration/downloads", Uz = "/api/configuration/downloads/check", tNe = "/api/configuration/downloads/folder", nNe = "/api/configuration/downloads/pikpak/login", rNe = "/api/configuration/downloads/pikpak/logout", Wz = "/api/configuration/downloads/pikpak/browser-login", Gz = 2e3;
+function iNe({ initial: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
- ...Vz(n),
- children: /* @__PURE__ */ (0, x.jsx)(oNe, {
+ ...Hz(n),
+ children: /* @__PURE__ */ (0, x.jsx)(aNe, {
initial: e,
receipt: t
})
});
}
-function oNe({ initial: e, receipt: t }) {
+function aNe({ initial: e, receipt: t }) {
let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(""), o = n.pikpak.logged_in || !!i.trim();
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(sNe, {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(oNe, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, x.jsx)(lNe, {
+ }), /* @__PURE__ */ (0, x.jsx)(cNe, {
state: n,
settle: r,
receipt: t,
@@ -64769,8 +64769,8 @@ function oNe({ initial: e, receipt: t }) {
setUsername: a
})] });
}
-function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, b.useState)(e.config), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(String(e.config.wait_hours)), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(""), [m, h] = (0, b.useState)(Gz), [g, _] = (0, b.useState)(""), [v, y] = (0, b.useState)(!1), S = Nk(), C = (e) => i.targets[e] ?? "", w = (e, t) => a({
+function oNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
+ let [i, a] = (0, b.useState)(e.config), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(String(e.config.wait_hours)), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(""), [m, h] = (0, b.useState)(Kz), [g, _] = (0, b.useState)(""), [v, y] = (0, b.useState)(!1), S = Pk(), C = (e) => i.targets[e] ?? "", w = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -64799,8 +64799,8 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
target: !e.config.targets[115],
root: !e.config.pikpak_root
};
- S.run("auto", (e) => V(Hz, e), (e) => E(e, t), (e) => _(B(e)));
- }, []), /* @__PURE__ */ (0, x.jsxs)(zk, {
+ S.run("auto", (e) => V(Uz, e), (e) => E(e, t), (e) => _(B(e)));
+ }, []), /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), T) {
@@ -64813,18 +64813,18 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
token: o,
pikpak_account: r
};
- S.run("save", (e) => H(tNe, f, "POST", e), (e) => {
+ S.run("save", (e) => H(eNe, f, "POST", e), (e) => {
let { report: r, ...i } = e;
t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? E(r, {
address: !i.config.clouddrive_address,
target: u,
root: !i.config.pikpak_root
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(Gz), y(!1), _("")), n("已保存配置");
+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(Kz), y(!1), _("")), n("已保存配置");
}, (e) => _(B(e)));
},
children: [
- /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "CloudDrive2 地址",
placeholder: "留空自动查找",
autoComplete: "off",
@@ -64836,7 +64836,7 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@ -64847,8 +64847,8 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
- label: /* @__PURE__ */ (0, x.jsx)(lA, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
+ label: /* @__PURE__ */ (0, x.jsx)(uA, {
source: "115",
label: "115 目标目录"
}),
@@ -64862,8 +64862,8 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => w("115", e)
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
- label: /* @__PURE__ */ (0, x.jsx)(lA, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
+ label: /* @__PURE__ */ (0, x.jsx)(uA, {
source: "pikpak",
label: "PikPak 目标目录"
}),
@@ -64877,7 +64877,7 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, x.jsx)(Gk, { children: /* @__PURE__ */ (0, x.jsx)(lA, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Kk, { children: /* @__PURE__ */ (0, x.jsx)(uA, {
source: "pikpak",
label: "PikPak 根目录对应的媒体文件夹"
}) }), e.pikpak_roots.length ? /* @__PURE__ */ (0, x.jsx)(nL, {
@@ -64893,9 +64893,9 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, x.jsx)(Uk, { children: "先在「媒体库与入库」添加 PikPak 挂载文件夹。" })]
+ }) : /* @__PURE__ */ (0, x.jsx)(Wk, { children: "先在「媒体库与入库」添加 PikPak 挂载文件夹。" })]
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@ -64906,11 +64906,11 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: l
})
] }),
- S.busy === "auto" ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ S.busy === "auto" ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(kk, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, x.jsx)(Ak, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, x.jsx)(cNe, {
+ u ? /* @__PURE__ */ (0, x.jsx)(sNe, {
report: u,
detected: f,
suggested: m,
@@ -64922,7 +64922,7 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- S.run("folder", (e) => H(nNe, t, "POST", e), (t) => {
+ S.run("folder", (e) => H(tNe, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -64934,11 +64934,11 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
} : void 0,
creating: S.busy === "folder"
}) : null,
- g || S.error ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ g || S.error ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: g || S.error })
+ children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: g || S.error })
}) : null,
- /* @__PURE__ */ (0, x.jsxs)(Hk, {
+ /* @__PURE__ */ (0, x.jsxs)(Uk, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
children: [/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
@@ -64954,7 +64954,7 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- S.run("check", (e) => H(Hz, t, "POST", e), (t) => E(t, e), (e) => _(B(e)));
+ S.run("check", (e) => H(Uz, t, "POST", e), (t) => E(t, e), (e) => _(B(e)));
},
disabled: !e.available,
...q(S.busy === "check"),
@@ -64969,29 +64969,29 @@ function sNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
]
});
}
-var Gz = {
+var Kz = {
target: null,
root: "",
saved: !1
};
-function cNe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+function sNe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, x.jsxs)(Vk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Hk, {
divided: !0,
- children: [/* @__PURE__ */ (0, x.jsxs)(qk, { children: [
- t ? /* @__PURE__ */ (0, x.jsx)(Jk, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(Jk, { children: [
+ t ? /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, x.jsx)(Jk, {
- term: /* @__PURE__ */ (0, x.jsx)(lA, {
+ a?.exists ? /* @__PURE__ */ (0, x.jsx)(Yk, {
+ term: /* @__PURE__ */ (0, x.jsx)(uA, {
source: "115",
label: "115 目标目录"
}),
children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, x.jsxs)(Jk, {
- term: /* @__PURE__ */ (0, x.jsx)(lA, {
+ a && !a.exists ? /* @__PURE__ */ (0, x.jsxs)(Yk, {
+ term: /* @__PURE__ */ (0, x.jsx)(uA, {
source: "115",
label: "115 目标目录"
}),
@@ -65003,55 +65003,55 @@ function cNe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, x.jsx)(Jk, {
- term: /* @__PURE__ */ (0, x.jsx)(lA, {
+ n.root ? /* @__PURE__ */ (0, x.jsx)(Yk, {
+ term: /* @__PURE__ */ (0, x.jsx)(uA, {
source: "pikpak",
label: "PikPak 根目录"
}),
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, x.jsx)(Jk, {
+ e.permissions.length ? /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "离线权限",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
}) : null,
- e.folder ? /* @__PURE__ */ (0, x.jsx)(Jk, {
+ e.folder ? /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, x.jsx)(Jk, {
- term: /* @__PURE__ */ (0, x.jsx)(lA, {
+ e.quota ? /* @__PURE__ */ (0, x.jsx)(Yk, {
+ term: /* @__PURE__ */ (0, x.jsx)(uA, {
source: "115",
label: "115 离线配额"
}),
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, x.jsx)(Wk, { children: e }, e))]
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, x.jsx)(Gk, { children: e }, e))]
});
}
-function lNe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, b.useState)(""), [s, c] = (0, b.useState)(!1), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(""), h = Nk(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+function cNe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
+ let [a, o] = (0, b.useState)(""), [s, c] = (0, b.useState)(!1), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(""), h = Pk(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, b.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
try {
- let r = await V(Uz, e.signal);
+ let r = await V(Wz, e.signal);
if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
} catch (t) {
if (e.signal.aborted) return;
f(B(t));
}
- r = setTimeout(i, Wz);
+ r = setTimeout(i, Gz);
};
- return r = setTimeout(i, Wz), () => {
+ return r = setTimeout(i, Gz), () => {
e.abort(), clearTimeout(r);
};
}, [v]);
let y = () => {
- m(""), h.run("browser", (e) => H(Uz, {}, "POST", e), (e) => {
+ m(""), h.run("browser", (e) => H(Wz, {}, "POST", e), (e) => {
t(e), f("");
}, (e) => f(B(e)));
}, S = () => {
- h.run("cancel", (e) => H(`${Uz}/cancel`, {}, "POST", e), (e) => {
+ h.run("cancel", (e) => H(`${Wz}/cancel`, {}, "POST", e), (e) => {
t(e), f(""), m(e.pikpak_browser.message);
}, (e) => f(B(e)));
}, C = (e) => {
@@ -65061,15 +65061,15 @@ function lNe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- h.run("login", (e) => H(rNe, i, "POST", e), (e) => {
+ h.run("login", (e) => H(nNe, i, "POST", e), (e) => {
t(e.settings), f(""), e.ok ? (u(""), o(""), n("已登录 PikPak")) : u(e.captcha_url ?? "");
}, (e) => f(B(e)));
}, w = () => {
- h.run("logout", (e) => H(iNe, {}, "POST", e), (e) => {
+ h.run("logout", (e) => H(rNe, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(B(e)));
}, T = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@ -65078,7 +65078,7 @@ function lNe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@ -65098,7 +65098,7 @@ function lNe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
title: "需要人机验证",
extra: /* @__PURE__ */ (0, x.jsx)("div", {
className: "pt-2",
- children: /* @__PURE__ */ (0, x.jsx)(Kk, {
+ children: /* @__PURE__ */ (0, x.jsx)(qk, {
href: l,
children: "打开 PikPak 验证页"
})
@@ -65111,24 +65111,24 @@ function lNe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
...q(h.busy === "login"),
children: "登录"
}), D = _.state === "timeout" || _.state === "failed";
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "PikPak 账号",
- icon: /* @__PURE__ */ (0, x.jsx)(cA.pikpak, {}),
+ icon: /* @__PURE__ */ (0, x.jsx)(lA.pikpak, {}),
onSubmit: C,
children: [
- g.logged_in ? /* @__PURE__ */ (0, x.jsxs)(qk, { children: [/* @__PURE__ */ (0, x.jsx)(Jk, {
+ g.logged_in ? /* @__PURE__ */ (0, x.jsxs)(Jk, { children: [/* @__PURE__ */ (0, x.jsx)(Yk, {
term: "账号",
children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, x.jsx)(Jk, {
+ }), g.method === "browser" ? /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "登录方式",
children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, x.jsx)(Jk, {
+ }) : /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "密码",
children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : _.available ? /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [p ? D ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: p }) : /* @__PURE__ */ (0, x.jsx)(Uk, {
+ })] }) : _.available ? /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [p ? D ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: p }) : /* @__PURE__ */ (0, x.jsx)(Wk, {
role: "status",
children: p
- }) : null, /* @__PURE__ */ (0, x.jsx)(Yk, {
+ }) : null, /* @__PURE__ */ (0, x.jsx)(Xk, {
summary: "用账号密码登录",
children: /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-4",
@@ -65137,13 +65137,13 @@ function lNe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
children: E
})]
})
- })] }) : /* @__PURE__ */ (0, x.jsx)(Vk, { children: T }),
- d || h.error ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ })] }) : /* @__PURE__ */ (0, x.jsx)(Hk, { children: T }),
+ d || h.error ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: d || h.error })
+ children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: d || h.error })
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Hk, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, x.jsx)(kk, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ /* @__PURE__ */ (0, x.jsx)(Uk, {
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, x.jsx)(Ak, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
onClick: w,
@@ -65169,33 +65169,33 @@ function lNe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var uNe = [
+var lNe = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function dNe({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
+function uNe({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...Vz(r),
+ ...Hz(r),
children: [
- /* @__PURE__ */ (0, x.jsx)(mNe, { facts: e.facts }),
- /* @__PURE__ */ (0, x.jsx)(fNe, {
+ /* @__PURE__ */ (0, x.jsx)(pNe, { facts: e.facts }),
+ /* @__PURE__ */ (0, x.jsx)(dNe, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, x.jsx)(hNe, {
+ e.uninstall ? /* @__PURE__ */ (0, x.jsx)(mNe, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function fNe({ receipt: e, reopenTutorial: t }) {
- let n = Nk();
+function dNe({ receipt: e, reopenTutorial: t }) {
+ let n = Pk();
return /* @__PURE__ */ (0, x.jsx)("section", {
"aria-label": "安装教程",
className: "w-full",
- children: /* @__PURE__ */ (0, x.jsxs)(Pk, { children: [/* @__PURE__ */ (0, x.jsx)(Bk, { children: /* @__PURE__ */ (0, x.jsx)(Ik, {
+ children: /* @__PURE__ */ (0, x.jsxs)(Fk, { children: [/* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "安装教程",
children: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
@@ -65203,22 +65203,22 @@ function fNe({ receipt: e, reopenTutorial: t }) {
...q(n.busy === "reopen"),
children: "重新打开教程"
})
- }) }), n.error ? /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: n.error }) }) : null] })
+ }) }), n.error ? /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: n.error }) }) : null] })
});
}
-function pNe({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e.mode), [i, a] = (0, b.useState)(e.interval_hours), o = Nk(e.error), s = (r) => {
+function fNe({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e.mode), [i, a] = (0, b.useState)(e.interval_hours), o = Pk(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => H("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "下载完成后在这里确认重启安装。" : void 0 : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, x.jsxs)(Bk, { children: [
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "自动检查新版本",
children: /* @__PURE__ */ (0, x.jsx)(BR, {
"aria-label": "自动检查新版本",
@@ -65227,7 +65227,7 @@ function pNe({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "自动下载更新",
children: /* @__PURE__ */ (0, x.jsx)(BR, {
"aria-label": "自动下载更新",
@@ -65236,7 +65236,7 @@ function pNe({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "检查频率",
description: c,
children: /* @__PURE__ */ (0, x.jsx)(nL, {
@@ -65246,18 +65246,18 @@ function pNe({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: uNe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(rL, {
+ children: lNe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(rL, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ o.error ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: o.error })
+ children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
+ /* @__PURE__ */ (0, x.jsx)(Uk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
type: "submit",
disabled: !e.available,
...q(o.busy === "save"),
@@ -65266,18 +65266,18 @@ function pNe({ initial: e, receipt: t }) {
]
});
}
-function mNe({ facts: e }) {
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+function pNe({ facts: e }) {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "运行信息",
- children: [/* @__PURE__ */ (0, x.jsx)(qk, { children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(Jk, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Jk, { children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(Yk, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, x.jsx)(Kk, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, x.jsx)(qk, {
href: e.download_url,
children: e.download_label
}) : null]
- }, e.term)) }), /* @__PURE__ */ (0, x.jsx)(Bk, { children: /* @__PURE__ */ (0, x.jsx)(Ik, {
+ }, e.term)) }), /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "系统诊断",
- children: /* @__PURE__ */ (0, x.jsx)(Ek, {
+ children: /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
href: "/diagnostics",
children: "打开系统诊断"
@@ -65285,7 +65285,7 @@ function mNe({ facts: e }) {
}) })]
});
}
-function hNe({ uninstall: e, receipt: t }) {
+function mNe({ uninstall: e, receipt: t }) {
let [n, r] = (0, b.useState)(!1), [i, a] = (0, b.useState)(""), o = () => void ms({
title: "卸载 Peach",
danger: !0,
@@ -65299,12 +65299,12 @@ function hNe({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
- e.available ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
+ e.available ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "完全卸载",
description: "同时删除设置、本地数据库、观看记录、凭据和缓存",
children: /* @__PURE__ */ (0, x.jsx)(BR, {
@@ -65314,15 +65314,15 @@ function hNe({ uninstall: e, receipt: t }) {
onChange: r
})
}),
- /* @__PURE__ */ (0, x.jsx)(Yk, {
+ /* @__PURE__ */ (0, x.jsx)(Xk, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, x.jsx)($I, {
+ children: c.map((e) => /* @__PURE__ */ (0, x.jsx)(eL, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, x.jsx)(Hk, {
+ ] }), /* @__PURE__ */ (0, x.jsx)(Uk, {
status: s ? /* @__PURE__ */ (0, x.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -65338,23 +65338,23 @@ function hNe({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var Kz = /* @__PURE__ */ new Set([
+var qz = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), gNe = [
+]), hNe = [
65,
67,
90
-], qz = 120;
-function _Ne({ initial: e, initialJob: t }) {
+], Jz = 120;
+function gNe({ initial: e, initialJob: t }) {
let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, b.useState)(""), c = Nk(), l = (0, b.useRef)(!1), u = (0, b.useRef)(!0), d = Kz.has(i.state);
+ }), [o, s] = (0, b.useState)(""), c = Pk(), l = (0, b.useRef)(!1), u = (0, b.useRef)(!0), d = qz.has(i.state);
(0, b.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -65371,7 +65371,7 @@ function _Ne({ initial: e, initialJob: t }) {
(0, b.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, b.useEffect)(() => {
- let e = new AbortController(), t = Kz.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = qz.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await V("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -65384,9 +65384,9 @@ function _Ne({ initial: e, initialJob: t }) {
let n = await V("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= qz && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= Jz && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < qz && (n = setTimeout(c, t));
+ !e.signal.aborted && o < Jz && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -65400,57 +65400,57 @@ function _Ne({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(B(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, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, x.jsxs)(qk, { children: [
- /* @__PURE__ */ (0, x.jsx)(Jk, {
+ /* @__PURE__ */ (0, x.jsxs)(Jk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, x.jsx)(Jk, {
+ /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, x.jsx)(Jk, {
+ /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, x.jsx)(Jk, {
+ /* @__PURE__ */ (0, x.jsx)(Yk, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, x.jsxs)(Vk, {
+ n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, x.jsxs)(Hk, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, x.jsxs)(Uk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, x.jsxs)(Wk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, x.jsx)(Uk, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, x.jsx)(Wk, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, x.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(Mk, {
+ /* @__PURE__ */ (0, x.jsx)(Nk, {
label: "更新准备进度",
value: i.progress,
- stops: gNe
+ stops: hNe
}),
- /* @__PURE__ */ (0, x.jsxs)(Uk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, x.jsx)(Uk, { children: _ })
+ /* @__PURE__ */ (0, x.jsxs)(Wk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, x.jsx)(Wk, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsxs)(Hk, {
- status: /* @__PURE__ */ (0, x.jsx)(Kk, {
+ /* @__PURE__ */ (0, x.jsxs)(Uk, {
+ status: /* @__PURE__ */ (0, x.jsx)(qk, {
href: n.release_url,
children: "查看发布页"
}),
@@ -65478,28 +65478,28 @@ function _Ne({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function vNe({ data: e, receipt: t, panel: n }) {
+function _Ne({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...Vz(n),
+ ...Hz(n),
children: [
- e.startup ? /* @__PURE__ */ (0, x.jsx)(yNe, {
+ e.startup ? /* @__PURE__ */ (0, x.jsx)(vNe, {
startup: e.startup,
receipt: t
}) : null,
- e.automatic_updates ? /* @__PURE__ */ (0, x.jsx)(pNe, {
+ e.automatic_updates ? /* @__PURE__ */ (0, x.jsx)(fNe, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, x.jsx)(_Ne, {
+ e.updates ? /* @__PURE__ */ (0, x.jsx)(gNe, {
initial: e.updates,
initialJob: e.update_job
}) : null
]
});
}
-function yNe({ startup: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e.enabled), [i, a] = (0, b.useState)(e.silent), [o, s] = (0, b.useState)(e.desktop), c = Nk(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+function vNe({ startup: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e.enabled), [i, a] = (0, b.useState)(e.silent), [o, s] = (0, b.useState)(e.desktop), c = Pk(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => H("/api/configuration/startup", {
@@ -65509,8 +65509,8 @@ function yNe({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, x.jsxs)(Bk, { children: [
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "开机后启动 Peach",
children: /* @__PURE__ */ (0, x.jsx)(BR, {
"aria-label": "开机后启动 Peach",
@@ -65519,7 +65519,7 @@ function yNe({ startup: e, receipt: t }) {
onChange: r
})
}),
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "只启动托盘,不打开网页",
children: /* @__PURE__ */ (0, x.jsx)(BR, {
"aria-label": "只启动托盘,不打开网页",
@@ -65528,7 +65528,7 @@ function yNe({ startup: e, receipt: t }) {
onChange: a
})
}),
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "在桌面创建快捷方式",
description: e.desktop_message || void 0,
children: /* @__PURE__ */ (0, x.jsx)(BR, {
@@ -65539,11 +65539,11 @@ function yNe({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, x.jsxs)(Vk, {
+ e.message || c.error ? /* @__PURE__ */ (0, x.jsxs)(Hk, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
+ /* @__PURE__ */ (0, x.jsx)(Uk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
type: "submit",
disabled: !e.available,
...q(c.busy === "save"),
@@ -65554,7 +65554,7 @@ function yNe({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/restart-redirect.ts
-var Jz = 8e3, bNe = [
+var Yz = 8e3, yNe = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -65573,33 +65573,33 @@ var Jz = 8e3, bNe = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], xNe = [
+], bNe = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function SNe() {
+function xNe() {
return /* @__PURE__ */ (0, x.jsx)("div", {
className: "@container flex flex-col gap-3",
- children: /* @__PURE__ */ (0, x.jsxs)(Yk, {
+ children: /* @__PURE__ */ (0, x.jsxs)(Xk, {
summary: "CloudDrive 设置帮助",
children: [
- /* @__PURE__ */ (0, x.jsxs)(Uk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, x.jsx)(Kk, {
+ /* @__PURE__ */ (0, x.jsxs)(Wk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, x.jsx)(qk, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
})] }),
- /* @__PURE__ */ (0, x.jsx)(Uk, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, x.jsx)(Wk, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, x.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: bNe.map((e) => /* @__PURE__ */ (0, x.jsxs)("li", {
+ children: yNe.map((e) => /* @__PURE__ */ (0, x.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, x.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: xNe.map(([t, n]) => /* @__PURE__ */ (0, x.jsxs)("div", {
+ children: bNe.map(([t, n]) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, x.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -65620,7 +65620,7 @@ function SNe() {
/* @__PURE__ */ (0, x.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, x.jsx)(Uk, { children: /* @__PURE__ */ (0, x.jsx)(Kk, {
+ /* @__PURE__ */ (0, x.jsx)(Wk, { children: /* @__PURE__ */ (0, x.jsx)(qk, {
href: "https://github.com/peach-mitao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "完整配置与调优说明"
}) })
@@ -65630,7 +65630,7 @@ function SNe() {
}
//#endregion
//#region src/react/settings/folder-rows.tsx
-function CNe({ className: e }) {
+function SNe({ className: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -65643,12 +65643,12 @@ function CNe({ className: e }) {
children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-folder-search" })
});
}
-var Yz = [
+var Xz = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Xz = (e) => eo[e] || "database", wNe = (e) => e === "115" || e === "pikpak";
-function TNe({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
+], Zz = (e) => eo[e] || "database", CNe = (e) => e === "115" || e === "pikpak";
+function wNe({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
let [a, o] = (0, b.useState)(e), [s, c] = (0, b.useState)([]), [l, u] = (0, b.useState)(null), [d, f] = (0, b.useState)(null), p = (0, b.useRef)(!1), m = (0, b.useRef)([]);
(0, b.useLayoutEffect)(() => {
l !== null && (m.current[l]?.focus(), u(null));
@@ -65691,7 +65691,7 @@ function TNe({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:
}
};
}
-function ENe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
+function TNe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
let u = (0, b.useRef)(null), d = () => {
let e = u.current;
e && e.ownerDocument.activeElement !== e && (e.scrollLeft = e.scrollWidth);
@@ -65704,7 +65704,7 @@ function ENe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
className: "min-w-0 flex-1",
"aria-label": e,
placeholder: "本机文件夹路径",
@@ -65722,8 +65722,8 @@ function ENe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
className: "flex h-9 shrink-0 items-center",
children: c
}) : null,
- /* @__PURE__ */ (0, x.jsx)(QI, {
- icon: CNe,
+ /* @__PURE__ */ (0, x.jsx)($I, {
+ icon: SNe,
"aria-label": "选择文件夹",
onClick: o,
...q(a)
@@ -65731,7 +65731,7 @@ function ENe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
s ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "danger",
iconOnly: !0,
- leadingIcon: KO,
+ leadingIcon: qO,
"aria-label": "移除这个文件夹",
onClick: s
}) : null
@@ -65742,7 +65742,7 @@ function ENe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
})]
});
}
-function DNe({ index: e, value: t, onChange: n, options: r = Yz }) {
+function ENe({ index: e, value: t, onChange: n, options: r = Xz }) {
return /* @__PURE__ */ (0, x.jsx)(nL, {
className: "w-full @lg:w-60",
"aria-label": `媒体来源 ${e + 1}`,
@@ -65753,12 +65753,12 @@ function DNe({ index: e, value: t, onChange: n, options: r = Yz }) {
children: r.map(([e, t]) => /* @__PURE__ */ (0, x.jsxs)(rL, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, x.jsx)(Xk, { mark: Xz(e) }), t]
+ children: [/* @__PURE__ */ (0, x.jsx)(Zk, { mark: Zz(e) }), t]
}, e))
});
}
-function ONe({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
- return /* @__PURE__ */ (0, x.jsx)(mN, {
+function DNe({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
+ return /* @__PURE__ */ (0, x.jsx)(hN, {
label: n,
placeholder: r,
value: e,
@@ -65767,7 +65767,7 @@ function ONe({ value: e, onChange: t, label: n = "Windows 中的对应路径", p
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var Zz = [
+var Qz = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -65811,13 +65811,13 @@ var Zz = [
["star", "收藏"],
["tags", "主题"]
];
-function kNe(e) {
+function ONe(e) {
let t = e === "local" ? "" : eo[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var Qz = "auto";
-function ANe({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, b.useRef)(null), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(e), [l, u] = kNe(n);
+var $z = "auto";
+function kNe({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, b.useRef)(null), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(e), [l, u] = ONe(n);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
ref: i,
variant: "secondary",
@@ -65831,35 +65831,35 @@ function ANe({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, x.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(Xk, { mark: e || l }), ((e) => e && Zz.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, x.jsx)(Zk, { mark: e || l }), ((e) => e && Qz.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, x.jsx)(fM, {
+ }), /* @__PURE__ */ (0, x.jsx)(pM, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: OI,
- children: /* @__PURE__ */ (0, x.jsxs)(wM, {
+ className: kI,
+ children: /* @__PURE__ */ (0, x.jsxs)(TM, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, x.jsx)(qA, {
+ /* @__PURE__ */ (0, x.jsx)(JA, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, x.jsx)(jM, {
+ /* @__PURE__ */ (0, x.jsx)(MM, {
"aria-label": "候选图标",
- value: s || Qz,
- onChange: (e) => c(e === Qz ? "" : e),
+ value: s || $z,
+ onChange: (e) => c(e === $z ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: Zz.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(MM, {
- value: e || Qz,
+ children: Qz.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(NM, {
+ value: e || $z,
"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, x.jsx)(Xk, { mark: e || l })
- }, e || Qz))
+ children: /* @__PURE__ */ (0, x.jsx)(Zk, { mark: e || l })
+ }, e || $z))
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -65881,9 +65881,9 @@ function ANe({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var jNe = "/api/configuration/push-discovery", MNe = "/api/configuration/push-discovery/secret";
-function NNe({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(e.prefixes), [o, s] = (0, b.useState)(""), c = Nk(), l = XI(), u = n.media_roots, [d, f] = (0, b.useState)(e), p = (e, n) => {
+var ANe = "/api/configuration/push-discovery", jNe = "/api/configuration/push-discovery/secret";
+function MNe({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(e.prefixes), [o, s] = (0, b.useState)(""), c = Pk(), l = ZI(), u = n.media_roots, [d, f] = (0, b.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
@@ -65896,18 +65896,18 @@ function NNe({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => H(jNe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(B(e)));
+ c.run("save", (e) => H(ANe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(B(e)));
}, g = () => {
- c.run("secret", (e) => H(MNe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(B(e)));
+ c.run("secret", (e) => H(jNe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(B(e)));
}, _ = () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看配置」选中自己复制。"));
}, v = `已入库 ${d.queue.ingested} 个文件` + (d.queue.pending ? `,队列里还有 ${d.queue.pending} 条` : ""), y = d.local_running ? `正在监视 ${d.local_roots.join("、")}` : d.local_message || "没有运行";
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "推送发现",
onSubmit: h,
children: [
- /* @__PURE__ */ (0, x.jsxs)(Bk, { children: [
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "新文件落地就入库",
description: d.enabled ? v : void 0,
children: /* @__PURE__ */ (0, x.jsx)(BR, {
@@ -65920,7 +65920,7 @@ function NNe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "监视本机文件夹",
description: d.enabled && d.watch_local ? y : void 0,
children: /* @__PURE__ */ (0, x.jsx)(BR, {
@@ -65933,7 +65933,7 @@ function NNe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "接收 CloudDrive2 通知",
children: /* @__PURE__ */ (0, x.jsx)(BR, {
"aria-label": "接收 CloudDrive2 通知",
@@ -65945,7 +65945,7 @@ function NNe({ initial: e, receipt: t }) {
})
})
}),
- d.enabled && d.cloud ? /* @__PURE__ */ (0, x.jsx)(Ik, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "Webhook 配置",
description: d.config_toml ? "贴进 CloudDrive2「设置 → Webhooks」,需要会员;更换密钥后要重贴。" : d.origin ? "还没有共享密钥,保存配置后生成。" : "要先有 CloudDrive2 能访问的 HTTPS 地址才能生成。",
children: d.config_toml ? /* @__PURE__ */ (0, x.jsx)(G, {
@@ -65956,11 +65956,11 @@ function NNe({ initial: e, receipt: t }) {
}) : null
}) : null
] }),
- d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
children: /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col gap-3",
- children: /* @__PURE__ */ (0, x.jsxs)(Yk, {
+ children: /* @__PURE__ */ (0, x.jsxs)(Xk, {
summary: "查看配置",
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "relative",
@@ -65970,16 +65970,16 @@ function NNe({ initial: e, receipt: t }) {
className: "overflow-x-auto rounded-2xl bg-background-tertiary-default p-3 text-caption-1-regular whitespace-pre text-text-primary",
children: d.config_toml
})
- }), /* @__PURE__ */ (0, x.jsx)(Uk, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
+ }), /* @__PURE__ */ (0, x.jsx)(Wk, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
})
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
children: /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, x.jsx)(Gk, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, x.jsx)(Kk, { children: "云端路径前缀" }),
/* @__PURE__ */ (0, x.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -65987,7 +65987,7 @@ function NNe({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -66010,7 +66010,7 @@ function NNe({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, x.jsx)(G, {
variant: "danger",
iconOnly: !0,
- leadingIcon: KO,
+ leadingIcon: qO,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -66029,11 +66029,11 @@ function NNe({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ o || c.error ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: o || c.error })
+ children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, x.jsx)(G, {
+ /* @__PURE__ */ (0, x.jsxs)(Uk, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
onClick: g,
disabled: !n.available,
@@ -66050,30 +66050,30 @@ function NNe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/application/initial-follow-ranges.ts
-var $z = [
+var eB = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
["90", "最近 90 天"]
-], PNe = [
+], NNe = [
["off", "关闭"],
["precise", "每 10 秒一张"],
["coarse", "每 30 秒一张"]
];
-function FNe({ epoch: e = 0 }) {
+function PNe({ epoch: e = 0 }) {
let t = dt({
- queryKey: JF,
- queryFn: ({ signal: e }) => jxe(e),
+ queryKey: YF,
+ queryFn: ({ signal: e }) => Axe(e),
refetchOnMount: "always"
- }), n = Pxe(), r = n.reset;
+ }), n = Nxe(), r = n.reset;
(0, b.useEffect)(() => {
r();
}, [e, r]);
let i = t.data, a = n.error || t.error;
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "时间轴缩略图",
children: [
- /* @__PURE__ */ (0, x.jsx)(Bk, { children: /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "采集间隔",
description: "仅采集本机磁盘上的视频。",
children: /* @__PURE__ */ (0, x.jsx)("div", {
@@ -66085,40 +66085,40 @@ function FNe({ epoch: e = 0 }) {
onSelectionChange: (e) => {
e !== null && n.mutate(String(e));
},
- children: PNe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(rL, {
+ children: NNe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(rL, {
id: e,
children: t
}, e))
})
})
}) }),
- n.isPending || i?.status === "running" ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ n.isPending || i?.status === "running" ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Uk, {
+ children: /* @__PURE__ */ (0, x.jsx)(Wk, {
role: "status",
children: n.isPending ? "正在保存…" : "正在采集,进度在活动页查看。"
})
}) : null,
- a ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ a ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: B(a) })
+ children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: B(a) })
}) : null
]
});
}
-function INe({ receipt: e }) {
+function FNe({ receipt: e }) {
let t = uw();
(0, b.useSyncExternalStore)(t.subscribe, t.version);
let n = dt({
- queryKey: KF,
- queryFn: ({ signal: e }) => YF(e),
+ queryKey: qF,
+ queryFn: ({ signal: e }) => XF(e),
refetchOnMount: "always"
- }), r = XF(), i = n.data?.followInitialDays ?? t.value.followInitialDays, a = r.error || n.error;
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ }), r = ZF(), i = n.data?.followInitialDays ?? t.value.followInitialDays, a = r.error || n.error;
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "关注采集",
- children: [/* @__PURE__ */ (0, x.jsxs)(Bk, { children: [
- /* @__PURE__ */ (0, x.jsx)(LNe, {}),
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(INe, {}),
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "首次采集范围",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "followInitialDaysSetting",
@@ -66131,33 +66131,33 @@ function INe({ receipt: e }) {
typeof n.followInitialDays == "number" && (t.value.followInitialDays = n.followInitialDays), t.save(), e("已保存首次采集范围");
} });
},
- children: $z.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(rL, {
+ children: eB.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(rL, {
id: e,
children: t
}, e))
})
})
}),
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "头像刷新",
children: "每 3 个月"
}),
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "favicon 刷新",
children: "每年"
})
- ] }), a ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ ] }), a ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: B(a) })
+ children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: B(a) })
}) : null]
});
}
-function LNe() {
+function INe() {
let e = dt({
- queryKey: qF,
- queryFn: ({ signal: e }) => Axe(e),
+ queryKey: JF,
+ queryFn: ({ signal: e }) => kxe(e),
refetchOnMount: "always"
- }), t = Nxe(), n = e.data, r = (0, b.useRef)(FC(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, b.useState)("60"), [o, s] = (0, b.useState)(!1);
+ }), t = Mxe(), n = e.data, r = (0, b.useRef)(FC(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, b.useState)("60"), [o, s] = (0, b.useState)(!1);
(0, b.useEffect)(() => {
n?.enabled && (r.current = n.interval_minutes, a(String(n.interval_minutes)));
}, [n]);
@@ -66166,7 +66166,7 @@ function LNe() {
!Number.isInteger(e) || e < 15 || e > 10080 ? s(!0) : (s(!1), n?.enabled && !c && e !== n.interval_minutes && (r.current = e, localStorage.setItem("peach.number.followScheduleSetting", String(e)), t.mutate(e)));
}, u = t.error || e.error;
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "自动检查更新",
children: /* @__PURE__ */ (0, x.jsxs)("div", {
id: "followScheduleSetting",
@@ -66180,7 +66180,7 @@ function LNe() {
}
}), n?.enabled ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, x.jsx)(mN, {
+ children: [/* @__PURE__ */ (0, x.jsx)(hN, {
type: "number",
inputMode: "numeric",
name: "follow-interval",
@@ -66205,39 +66205,39 @@ function LNe() {
}) : null]
})
}),
- o ? /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: "请输入 15–10080 的整数(分钟)。" }) }) : null,
- t.isPending || n?.running ? /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(Uk, {
+ o ? /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: "请输入 15–10080 的整数(分钟)。" }) }) : null,
+ t.isPending || n?.running ? /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(Wk, {
role: "status",
children: t.isPending ? "正在保存…" : "正在检查来源更新…"
}) }) : null,
- u ? /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: B(u) }) }) : null
+ u ? /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: B(u) }) }) : null
] });
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var RNe = (e) => Yz.find(([t]) => t === e)?.[1] ?? e, zNe = async (e) => (await H($Me, { initial: e })).path, eB = (e = "") => ({
+var LNe = (e) => Xz.find(([t]) => t === e)?.[1] ?? e, RNe = async (e) => (await H(QMe, { initial: e })).path, tB = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function BNe(e) {
- let t = e.media_sources?.filter((e) => Yz.some(([t]) => t === e.location));
+function zNe(e) {
+ let t = e.media_sources?.filter((e) => Xz.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) => eB(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => tB(e));
}
-var VNe = (e) => !(e instanceof un) || e.status !== 400 ? null : e.body?.errors ?? null;
-function HNe({ data: e, receipt: t, panel: n }) {
+var BNe = (e) => !(e instanceof un) || e.status !== 400 ? null : e.body?.errors ?? null;
+function VNe({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...Vz(n),
+ ...Hz(n),
children: [
- e.editable ? /* @__PURE__ */ (0, x.jsx)(UNe, {
+ e.editable ? /* @__PURE__ */ (0, x.jsx)(HNe, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, x.jsx)(K, {
@@ -66245,29 +66245,29 @@ function HNe({ data: e, receipt: t, panel: n }) {
title: "只读",
children: e.notice
}),
- e.editable ? null : /* @__PURE__ */ (0, x.jsx)(WNe, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, x.jsx)(NNe, {
+ e.editable ? null : /* @__PURE__ */ (0, x.jsx)(UNe, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, x.jsx)(MNe, {
initial: e.push_discovery,
receipt: t
}) : null,
- /* @__PURE__ */ (0, x.jsx)(FNe, {})
+ /* @__PURE__ */ (0, x.jsx)(PNe, {})
]
});
}
-function UNe({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = TNe({
- initial: () => BNe(e),
- blank: () => eB(),
- pickFolder: zNe,
+function HNe({ data: e, receipt: t }) {
+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = wNe({
+ initial: () => zNe(e),
+ blank: () => tB(),
+ pickFolder: RNe,
describe: B
- }), [d, f] = (0, b.useState)(!1), [p, m] = (0, b.useState)(""), [h, g] = (0, b.useState)(null), _ = (0, b.useRef)(e.revision), v = Nk();
+ }), [d, f] = (0, b.useState)(!1), [p, m] = (0, b.useState)(""), [h, g] = (0, b.useState)(null), _ = (0, b.useRef)(e.revision), v = Pk();
(0, b.useEffect)(() => {
if (!h) return;
- let e = setTimeout(() => location.assign(h.url), Jz);
+ let e = setTimeout(() => location.assign(h.url), Yz);
return () => clearTimeout(e);
}, [h]);
let y = (r) => {
- r.preventDefault(), m(""), v.run("save", (t) => H(Lz, {
+ r.preventDefault(), m(""), v.run("save", (t) => H(Rz, {
revision: _.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -66276,18 +66276,18 @@ function UNe({ data: e, receipt: t }) {
}, "POST", t), (e) => {
_.current = e.revision, s([]), t("已保存配置"), g(e);
}, (e) => {
- let t = VNe(e);
+ let t = BNe(e);
s(t?.media_dirs ?? []), (!t || t.port) && m(t?.port || B(e));
});
};
- if (h) return /* @__PURE__ */ (0, x.jsx)(zk, {
+ if (h) return /* @__PURE__ */ (0, x.jsx)(Bk, {
title: "媒体文件夹",
- children: /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsxs)(K, {
+ children: /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsxs)(K, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, x.jsx)(Rk, {
+ /* @__PURE__ */ (0, x.jsx)(zk, {
href: h.url,
size: "small",
children: "进入馆藏"
@@ -66296,20 +66296,20 @@ function UNe({ data: e, receipt: t }) {
]
}) })
});
- let S = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, C = n.some((e) => wNe(e.location)), w = C ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ let S = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, C = n.some((e) => CNe(e.location)), w = C ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "媒体文件夹",
onSubmit: y,
- children: [/* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
+ children: [/* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, x.jsx)(Gk, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, x.jsx)(Kk, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, x.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, i) => /* @__PURE__ */ (0, x.jsxs)(ENe, {
+ children: n.map((t, i) => /* @__PURE__ */ (0, x.jsxs)(TNe, {
label: `媒体文件夹 ${i + 1}`,
path: t.path,
onPath: (e) => r(i, { path: e }),
@@ -66318,14 +66318,14 @@ function UNe({ data: e, receipt: t }) {
picking: c === i,
onPick: () => void l(i),
onRemove: n.length > 1 ? () => a(i) : void 0,
- status: S(t.path) ? /* @__PURE__ */ (0, x.jsx)(tB, { online: S(t.path)?.online }) : null,
+ status: S(t.path) ? /* @__PURE__ */ (0, x.jsx)(nB, { online: S(t.path)?.online }) : null,
children: [
- /* @__PURE__ */ (0, x.jsx)(DNe, {
+ /* @__PURE__ */ (0, x.jsx)(ENe, {
index: i,
value: t.location,
onChange: (e) => r(i, { location: e })
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
className: "min-w-40 flex-1",
"aria-label": `媒体库名称 ${i + 1}`,
maxLength: 80,
@@ -66333,13 +66333,13 @@ function UNe({ data: e, receipt: t }) {
value: t.library,
onChange: (e) => r(i, { library: e })
}),
- /* @__PURE__ */ (0, x.jsx)(ANe, {
+ /* @__PURE__ */ (0, x.jsx)(kNe, {
label: `媒体库图标 ${i + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => r(i, { library_icon: e })
}),
- e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(ONe, {
+ e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(DNe, {
value: t.root,
onChange: (e) => r(i, { root: e })
}) : null
@@ -66354,17 +66354,17 @@ function UNe({ data: e, receipt: t }) {
})
]
}),
- C ? /* @__PURE__ */ (0, x.jsx)(SNe, {}) : null,
- w.map((e) => /* @__PURE__ */ (0, x.jsxs)(Uk, { children: [
+ C ? /* @__PURE__ */ (0, x.jsx)(xNe, {}) : null,
+ w.map((e) => /* @__PURE__ */ (0, x.jsxs)(Wk, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, x.jsxs)(Kk, {
+ /* @__PURE__ */ (0, x.jsxs)(qk, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: "Windows 对应路径应与馆藏中记录的路径一致。" }) : null,
+ e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: "Windows 对应路径应与馆藏中记录的路径一致。" }) : null,
/* @__PURE__ */ (0, x.jsx)(aL, {
isSelected: d,
onChange: f,
@@ -66375,7 +66375,7 @@ function UNe({ data: e, receipt: t }) {
title: "没有保存",
children: p
}) : null
- ] }), /* @__PURE__ */ (0, x.jsx)(Hk, {
+ ] }), /* @__PURE__ */ (0, x.jsx)(Uk, {
status: "保存后 Peach 会重新启动。",
children: /* @__PURE__ */ (0, x.jsx)(G, {
type: "submit",
@@ -66385,7 +66385,7 @@ function UNe({ data: e, receipt: t }) {
})]
});
}
-function tB({ online: e }) {
+function nB({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -66409,22 +66409,22 @@ function tB({ online: e }) {
}), "未检测"]
});
}
-function WNe({ data: e }) {
- let t = e.media_sources, n = Nk();
- return t ? /* @__PURE__ */ (0, x.jsxs)(zk, {
+function UNe({ data: e }) {
+ let t = e.media_sources, n = Pk();
+ return t ? /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, x.jsx)(qk, { children: t.map((e, t) => /* @__PURE__ */ (0, x.jsxs)(Jk, {
- term: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Xk, { mark: Xz(e.location) }), RNe(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, x.jsx)(tB, { online: e.online })]
+ /* @__PURE__ */ (0, x.jsx)(Jk, { children: t.map((e, t) => /* @__PURE__ */ (0, x.jsxs)(Yk, {
+ term: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Zk, { mark: Zz(e.location) }), LNe(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, x.jsx)(nB, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, x.jsx)(Vk, {
+ n.error ? /* @__PURE__ */ (0, x.jsx)(Hk, {
divided: !0,
- children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: n.error })
+ children: /* @__PURE__ */ (0, x.jsx)(Gk, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
+ /* @__PURE__ */ (0, x.jsx)(Uk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
- onClick: () => void n.run("refresh", (e) => zz(e), (e) => U.setQueryData(Rz, e)),
+ onClick: () => void n.run("refresh", (e) => Bz(e), (e) => U.setQueryData(zz, e)),
...q(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -66433,8 +66433,8 @@ function WNe({ data: e }) {
}
//#endregion
//#region src/react/settings/password-pair.tsx
-function GNe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(mN, {
+function WNe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(hN, {
id: "access-password",
type: "password",
label: e,
@@ -66447,7 +66447,7 @@ function GNe({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
validationBehavior: "aria",
isInvalid: !a && !!o,
hint: a ? s : o || s
- }), /* @__PURE__ */ (0, x.jsx)(mN, {
+ }), /* @__PURE__ */ (0, x.jsx)(hN, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -66464,13 +66464,13 @@ function GNe({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var KNe = {
+var GNe = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function qNe({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(""), [u, d] = (0, b.useState)(!1), [f, p] = (0, b.useState)({}), m = (0, b.useRef)(null), h = Nk(), g = (e) => {
+function KNe({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(""), [u, d] = (0, b.useState)(!1), [f, p] = (0, b.useState)({}), m = (0, b.useRef)(null), h = Pk(), g = (e) => {
e.preventDefault();
let f = {};
n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length ? requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus()) : h.run("save", (e) => H("/api/configuration/access", {
@@ -66486,14 +66486,14 @@ function qNe({ initial: e, receipt: t }) {
let t = e instanceof un ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(B(e));
});
- }, _ = KNe[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ }, _ = GNe[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, x.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
- _ ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
+ _ ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "warning",
title: "未设置访问密码",
@@ -66504,7 +66504,7 @@ function qNe({ initial: e, receipt: t }) {
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, x.jsx)(mN, {
+ n.mode === "password" ? /* @__PURE__ */ (0, x.jsx)(hN, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -66517,7 +66517,7 @@ function qNe({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, x.jsx)(GNe, {
+ v ? /* @__PURE__ */ (0, x.jsx)(WNe, {
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
password: o,
confirmation: c,
@@ -66533,9 +66533,9 @@ function qNe({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
+ }), v ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
type: "submit",
...q(h.busy === "save"),
children: "保存配置"
@@ -66544,27 +66544,27 @@ function qNe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/port-settings.tsx
-function JNe({ data: e, receipt: t }) {
- let [n, r] = (0, b.useState)(String(e.port)), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(null), c = Nk();
+function qNe({ data: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(String(e.port)), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(null), c = Pk();
return (0, b.useEffect)(() => {
if (!o) return;
- let e = setTimeout(() => location.assign(o.url), Jz);
+ let e = setTimeout(() => location.assign(o.url), Yz);
return () => clearTimeout(e);
- }, [o]), o ? /* @__PURE__ */ (0, x.jsx)(zk, {
+ }, [o]), o ? /* @__PURE__ */ (0, x.jsx)(Bk, {
title: "本机访问端口",
- children: /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsxs)(K, {
+ children: /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsxs)(K, {
tone: "success",
title: "配置已保存",
- children: ["Peach 正在重新启动。", /* @__PURE__ */ (0, x.jsx)(Rk, {
+ children: ["Peach 正在重新启动。", /* @__PURE__ */ (0, x.jsx)(zk, {
href: o.url,
size: "small",
children: "进入馆藏"
})]
}) })
- }) : /* @__PURE__ */ (0, x.jsxs)(zk, {
+ }) : /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "本机访问端口",
onSubmit: (r) => {
- r.preventDefault(), a(""), c.run("save", (t) => H(Lz, {
+ r.preventDefault(), a(""), c.run("save", (t) => H(Rz, {
revision: e.revision,
media_dirs: e.media_dirs,
...e.media_sources ? { media_sources: e.media_sources } : {},
@@ -66577,7 +66577,7 @@ function JNe({ data: e, receipt: t }) {
t?.port ? a(t.port) : c.setError(B(e));
});
},
- children: [/* @__PURE__ */ (0, x.jsxs)(Vk, { children: [/* @__PURE__ */ (0, x.jsx)(mN, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(Hk, { children: [/* @__PURE__ */ (0, x.jsx)(hN, {
id: "configPort",
label: "端口",
inputMode: "numeric",
@@ -66590,7 +66590,7 @@ function JNe({ data: e, receipt: t }) {
tone: "error",
title: "没有保存",
children: c.error
- }) : null] }), /* @__PURE__ */ (0, x.jsx)(Hk, {
+ }) : null] }), /* @__PURE__ */ (0, x.jsx)(Uk, {
status: "保存后 Peach 会重启,并跳转到新地址。",
children: /* @__PURE__ */ (0, x.jsx)(G, {
type: "submit",
@@ -66602,19 +66602,19 @@ function JNe({ data: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var YNe = 2e3, XNe = [["quick", "临时链接"], ["named", "命名隧道"]], ZNe = {
+var JNe = 2e3, YNe = [["quick", "临时链接"], ["named", "命名隧道"]], XNe = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function QNe({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, b.useState)(t), [a, o] = (0, b.useState)(e), [s, c] = (0, b.useState)(t.mode), [l, u] = (0, b.useState)(t.hostname), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)({}), h = Nk(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+function ZNe({ revision: e, initial: t, receipt: n }) {
+ let [r, i] = (0, b.useState)(t), [a, o] = (0, b.useState)(e), [s, c] = (0, b.useState)(t.mode), [l, u] = (0, b.useState)(t.hostname), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)({}), h = Pk(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, b.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- zz(e.signal).then((t) => {
- !e.signal.aborted && t.tunnel && (U.setQueryData(Rz, t), i(t.tunnel), o(t.revision));
+ Bz(e.signal).then((t) => {
+ !e.signal.aborted && t.tunnel && (U.setQueryData(zz, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, YNe);
+ }, JNe);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -66633,26 +66633,26 @@ function QNe({ revision: e, initial: t, receipt: n }) {
n ? m(n) : h.setError(B(e));
});
};
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
- r.named_available ? /* @__PURE__ */ (0, x.jsx)(MN, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
+ r.named_available ? /* @__PURE__ */ (0, x.jsx)(NN, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: NN,
- children: XNe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(MM, {
+ className: PN,
+ children: YNe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(NM, {
value: e,
- className: PN,
+ className: FN,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Uk, { children: ZNe[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(Wk, { children: XNe[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(hN, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -66663,7 +66663,7 @@ function QNe({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "Cloudflare Zero Trust 里指向这台电脑的主机名。"
- }), /* @__PURE__ */ (0, x.jsx)(mN, {
+ }), /* @__PURE__ */ (0, x.jsx)(hN, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -66683,7 +66683,7 @@ function QNe({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, x.jsx)(Kk, {
+ children: /* @__PURE__ */ (0, x.jsx)(qk, {
href: r.url,
children: r.url
})
@@ -66693,9 +66693,9 @@ function QNe({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, x.jsxs)(Hk, {
+ r.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, x.jsxs)(Uk, {
status: r.enabled ? "Peach 重启后自动恢复。" : void 0,
children: [/* @__PURE__ */ (0, x.jsx)(G, {
variant: r.named_available ? "secondary" : "primary",
@@ -66712,28 +66712,28 @@ function QNe({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var $Ne = [
+var QNe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function ePe({ data: e, receipt: t, panel: n }) {
+function $Ne({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...Vz(n),
+ ...Hz(n),
children: [
- e.editable && e.port_editable !== !1 ? /* @__PURE__ */ (0, x.jsx)(JNe, {
+ e.editable && e.port_editable !== !1 ? /* @__PURE__ */ (0, x.jsx)(qNe, {
data: e,
receipt: t
}) : null,
- e.peach_proxy ? /* @__PURE__ */ (0, x.jsx)(tPe, {
+ e.peach_proxy ? /* @__PURE__ */ (0, x.jsx)(ePe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, x.jsx)(qNe, {
+ e.access ? /* @__PURE__ */ (0, x.jsx)(KNe, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, x.jsx)(QNe, {
+ e.tunnel ? /* @__PURE__ */ (0, x.jsx)(ZNe, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -66741,9 +66741,9 @@ function ePe({ data: e, receipt: t, panel: n }) {
]
});
}
-function tPe({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(e.mode), [o, s] = (0, b.useState)(""), c = Nk();
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+function ePe({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(e.mode), [o, s] = (0, b.useState)(""), c = Pk();
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -66755,7 +66755,7 @@ function tPe({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, x.jsx)(Bk, { children: /* @__PURE__ */ (0, x.jsx)(Ik, {
+ /* @__PURE__ */ (0, x.jsx)(Vk, { children: /* @__PURE__ */ (0, x.jsx)(Lk, {
label: "连接方式",
children: /* @__PURE__ */ (0, x.jsx)(nL, {
"aria-label": "连接方式",
@@ -66763,16 +66763,16 @@ function tPe({ initial: e, receipt: t }) {
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: $Ne.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(rL, {
+ children: QNe.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(rL, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, x.jsxs)(Vk, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, x.jsxs)(Hk, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, x.jsx)(mN, {
+ i === "proxy" ? /* @__PURE__ */ (0, x.jsx)(hN, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -66786,10 +66786,10 @@ function tPe({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
+ /* @__PURE__ */ (0, x.jsx)(Uk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
type: "submit",
...q(c.busy === "save"),
children: "保存配置"
@@ -66799,24 +66799,24 @@ function tPe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var nPe = "将清除这个来源在本机和共享副本中的登录凭据。", rPe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function iPe(e, t) {
+var tPe = "将清除这个来源在本机和共享副本中的登录凭据。", nPe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function rPe(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function aPe({ row: e }) {
- if (Kr(e)) return /* @__PURE__ */ (0, x.jsx)(wk, {
+function iPe({ row: e }) {
+ if (Kr(e)) return /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, x.jsx)(wk, {
+ return /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: t,
children: Gr[e.requirement] || ""
});
}
-function oPe({ row: e, readOnly: t, toast: n }) {
+function aPe({ row: e, readOnly: t, toast: n }) {
let [r, i] = (0, b.useState)({}), [a, o] = (0, b.useState)(""), s = Kr(e), c = ft({
mutationFn: (t) => Tr(e.provider, t),
onSuccess: (e, t) => {
@@ -66833,17 +66833,17 @@ function oPe({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, x.jsxs)(Uk, { children: [e.why, e.where ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [" ", /* @__PURE__ */ (0, x.jsx)(Kk, {
+ /* @__PURE__ */ (0, x.jsxs)(Wk, { children: [e.why, e.where ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [" ", /* @__PURE__ */ (0, x.jsx)(qk, {
href: e.where,
children: "获取凭据"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: e.howto }) : null,
/* @__PURE__ */ (0, x.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, x.jsx)(mN, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, x.jsx)(hN, {
type: "password",
label: n,
- placeholder: iPe(e, n),
+ placeholder: rPe(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -66871,7 +66871,7 @@ function oPe({ row: e, readOnly: t, toast: n }) {
...q(c.isPending),
onClick: () => void ms({
title: "清除来源凭据",
- body: nPe,
+ body: tPe,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -66879,11 +66879,11 @@ function oPe({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, x.jsx)(Uk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, x.jsx)(Yk, {
+ a ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, x.jsx)(Xk, {
summary: "凭据文件",
- children: /* @__PURE__ */ (0, x.jsx)($I, {
+ children: /* @__PURE__ */ (0, x.jsx)(eL, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -66892,7 +66892,7 @@ function oPe({ row: e, readOnly: t, toast: n }) {
]
});
}
-function sPe({ row: e, readOnly: t, toast: n }) {
+function oPe({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, x.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-2",
children: [
@@ -66904,8 +66904,8 @@ function sPe({ row: e, readOnly: t, toast: n }) {
className: "min-w-0 text-body-medium wrap-anywhere text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, x.jsx)(aPe, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, x.jsx)(wk, {
+ /* @__PURE__ */ (0, x.jsx)(iPe, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, x.jsx)(Tk, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -66914,15 +66914,15 @@ function sPe({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, x.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, x.jsx)(Uk, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, x.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, x.jsx)(Yk, {
+ /* @__PURE__ */ (0, x.jsx)(Xk, {
summary: Kr(e) ? "修改凭据" : "填写凭据",
defaultOpen: e.requirement === "required" && !Kr(e),
- children: /* @__PURE__ */ (0, x.jsx)(oPe, {
+ children: /* @__PURE__ */ (0, x.jsx)(aPe, {
row: e,
readOnly: t,
toast: n
@@ -66931,15 +66931,15 @@ function sPe({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "凭据文件权限过宽",
- children: rPe
+ children: nPe
}) : null
]
});
}
-function cPe({ data: e, readOnly: t, toast: n }) {
+function sPe({ data: e, readOnly: t, toast: n }) {
let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !Kr(e));
return r.length ? /* @__PURE__ */ (0, x.jsxs)("div", {
- className: Dk({
+ className: Ok({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -66972,36 +66972,36 @@ function cPe({ data: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, x.jsx)("div", {
- className: Dk({
+ className: Ok({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, x.jsx)(sPe, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, x.jsx)(oPe, {
row: e,
readOnly: t,
toast: n
}, e.provider))
})]
}, e.title))]
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: che,
+ icon: she,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region src/configuration-copy.ts
-var lPe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", uPe = "只填域名,留空用默认地址";
+var cPe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", lPe = "只填域名,留空用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function dPe({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e.sites), i = Nk(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function uPe({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e.sites), i = Pk(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "作品资料站点",
onSubmit: (e) => {
e.preventDefault();
@@ -67010,9 +67010,9 @@ function dPe({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
- /* @__PURE__ */ (0, x.jsx)(Uk, { children: lPe }),
- n.map((e) => /* @__PURE__ */ (0, x.jsx)(mN, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Wk, { children: cPe }),
+ n.map((e) => /* @__PURE__ */ (0, x.jsx)(hN, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -67021,10 +67021,10 @@ function dPe({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: uPe
+ hint: lPe
}, e.key)),
- i.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, x.jsx)(Hk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
+ i.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, x.jsx)(Uk, { children: /* @__PURE__ */ (0, x.jsx)(G, {
type: "submit",
...q(i.busy === "save"),
children: "保存配置"
@@ -67033,46 +67033,46 @@ function dPe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/indexer-settings.tsx
-var nB = "/api/configuration/indexers";
-function fPe({ receipt: e }) {
+var rB = "/api/configuration/indexers";
+function dPe({ receipt: e }) {
let t = dt({
queryKey: ["indexers"],
- queryFn: ({ signal: e }) => V(nB, e),
+ queryFn: ({ signal: e }) => V(rB, e),
refetchOnMount: "always"
});
- return t.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: B(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, x.jsx)(kk, { label: "正在读取资源搜索设置" }) : t.data ? /* @__PURE__ */ (0, x.jsx)(pPe, {
+ return t.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: B(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, x.jsx)(Ak, { label: "正在读取资源搜索设置" }) : t.data ? /* @__PURE__ */ (0, x.jsx)(fPe, {
initial: t.data,
receipt: e
}) : null;
}
-function pPe({ initial: e, receipt: t }) {
- let [n, r] = (0, b.useState)(e.indexers), i = Nk(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function fPe({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e.indexers), i = Pk(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, x.jsxs)(zk, {
+ return /* @__PURE__ */ (0, x.jsxs)(Bk, {
title: "资源搜索",
onSubmit: (e) => {
- e.preventDefault(), i.run("save", (e) => H(nB, { indexers: n }, "POST", e), (e) => {
+ e.preventDefault(), i.run("save", (e) => H(rB, { indexers: n }, "POST", e), (e) => {
r(e.indexers), t("已保存索引器");
});
},
- children: [/* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
- /* @__PURE__ */ (0, x.jsx)(Yk, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Xk, {
summary: "索引器连接帮助",
- children: /* @__PURE__ */ (0, x.jsx)(Uk, { children: "填写 Prowlarr 或 Jackett 提供的 Torznab 地址和 API key。" })
+ children: /* @__PURE__ */ (0, x.jsx)(Wk, { children: "填写 Prowlarr 或 Jackett 提供的 Torznab 地址和 API key。" })
}),
n.map((e, t) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: `索引器 ${t + 1} 名称`,
value: e.name,
maxLength: 80,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { name: t })
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: `索引器 ${t + 1} Torznab 地址`,
value: e.url,
type: "url",
@@ -67081,7 +67081,7 @@ function pPe({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { url: t })
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: `索引器 ${t + 1} API key`,
type: "password",
autoComplete: "new-password",
@@ -67111,8 +67111,8 @@ function pPe({ initial: e, receipt: t }) {
}) })
]
}, e.key)),
- i.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
+ i.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, x.jsxs)(Uk, { children: [/* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
type: "button",
disabled: !!i.busy || n.length >= e.max_indexers,
@@ -67133,7 +67133,7 @@ function pPe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/source-settings.tsx
-function mPe({ data: e, receipt: t, panel: n }) {
+function pPe({ data: e, receipt: t, panel: n }) {
let r = dt({
queryKey: Bn,
queryFn: ({ signal: e }) => mr(e),
@@ -67141,14 +67141,14 @@ function mPe({ data: e, receipt: t, panel: n }) {
refetchOnMount: "always"
});
return /* @__PURE__ */ (0, x.jsxs)("div", {
- ...Vz(n),
+ ...Hz(n),
children: [
- /* @__PURE__ */ (0, x.jsx)("div", { children: /* @__PURE__ */ (0, x.jsx)(Ek, {
+ /* @__PURE__ */ (0, x.jsx)("div", { children: /* @__PURE__ */ (0, x.jsx)(Dk, {
href: "/sources",
variant: "secondary",
children: "采集来源与登录状态"
}) }),
- r.data ? /* @__PURE__ */ (0, x.jsx)(cPe, {
+ r.data ? /* @__PURE__ */ (0, x.jsx)(sPe, {
data: r.data,
readOnly: !!e.ledger_read_only,
toast: t
@@ -67156,24 +67156,24 @@ function mPe({ data: e, receipt: t, panel: n }) {
tone: "error",
title: "来源凭据未取得",
children: B(r.error)
- }) : n?.active === !1 ? null : /* @__PURE__ */ (0, x.jsx)(kk, { label: "正在读取来源凭据" }),
- e.entry_links ? /* @__PURE__ */ (0, x.jsx)(dPe, {
+ }) : n?.active === !1 ? null : /* @__PURE__ */ (0, x.jsx)(Ak, { label: "正在读取来源凭据" }),
+ e.entry_links ? /* @__PURE__ */ (0, x.jsx)(uPe, {
initial: e.entry_links,
receipt: t
}) : null,
- /* @__PURE__ */ (0, x.jsx)(fPe, { receipt: t }),
- /* @__PURE__ */ (0, x.jsx)(INe, { receipt: t })
+ /* @__PURE__ */ (0, x.jsx)(dPe, { receipt: t }),
+ /* @__PURE__ */ (0, x.jsx)(FNe, { receipt: t })
]
});
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function hPe({ receipt: e, reopenTutorial: t, section: n = "" }) {
+function mPe({ receipt: e, reopenTutorial: t, section: n = "" }) {
let r = dt({
- queryKey: Rz,
- queryFn: ({ signal: e }) => zz(e)
+ queryKey: zz,
+ queryFn: ({ signal: e }) => Bz(e)
}), i = r.data;
- return i ? /* @__PURE__ */ (0, x.jsx)(_Pe, {
+ return i ? /* @__PURE__ */ (0, x.jsx)(gPe, {
data: i,
receipt: e,
reopenTutorial: t,
@@ -67187,12 +67187,16 @@ function hPe({ receipt: e, reopenTutorial: t, section: n = "" }) {
})
});
}
-var gPe = 0;
-function _Pe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
- let [i] = (0, b.useState)(() => `board-tabs-${++gPe}`), [a, o] = (0, b.useState)(r), s = (e) => {
- o(e), FO(tO(e), {
+var hPe = 0;
+function gPe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
+ let [i] = (0, b.useState)(() => `board-tabs-${++hPe}`), [a, o] = (0, b.useState)(r);
+ (0, b.useEffect)(() => {
+ o(r);
+ }, [r]);
+ let s = (e) => {
+ o(e), IO(nO(e), {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
});
}, [c, l] = (0, b.useState)(() => matchMedia("(max-width:900px)").matches);
(0, b.useEffect)(() => {
@@ -67205,21 +67209,21 @@ function _Pe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
}, f = !!(e.peach_proxy || e.access || e.tunnel || e.editable && e.port_editable !== !1), p = e.downloads, m = [
{
title: "媒体库与入库",
- body: (e) => /* @__PURE__ */ (0, x.jsx)(HNe, {
+ body: (e) => /* @__PURE__ */ (0, x.jsx)(VNe, {
...d,
panel: e
})
},
{
title: "来源与订阅",
- body: (e) => /* @__PURE__ */ (0, x.jsx)(mPe, {
+ body: (e) => /* @__PURE__ */ (0, x.jsx)(pPe, {
...d,
panel: e
})
},
...p ? [{
title: "下载渠道",
- body: (e) => /* @__PURE__ */ (0, x.jsx)(aNe, {
+ body: (e) => /* @__PURE__ */ (0, x.jsx)(iNe, {
initial: p,
receipt: t,
panel: e
@@ -67227,7 +67231,7 @@ function _Pe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
}] : [],
...f ? [{
title: "网络与访问",
- body: (e) => /* @__PURE__ */ (0, x.jsx)(ePe, {
+ body: (e) => /* @__PURE__ */ (0, x.jsx)($Ne, {
...d,
panel: e
})
@@ -67235,8 +67239,8 @@ function _Pe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
{
title: "应用与维护",
body: (e) => /* @__PURE__ */ (0, x.jsxs)("div", {
- ...Vz(e),
- children: [/* @__PURE__ */ (0, x.jsx)(vNe, { ...d }), /* @__PURE__ */ (0, x.jsx)(dNe, {
+ ...Hz(e),
+ children: [/* @__PURE__ */ (0, x.jsx)(_Ne, { ...d }), /* @__PURE__ */ (0, x.jsx)(uNe, {
...d,
reopenTutorial: n
})]
@@ -67287,7 +67291,7 @@ function _Pe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var vPe = [
+var _Pe = [
[
"strength",
"强度",
@@ -67314,7 +67318,7 @@ var vPe = [
100
]
];
-function yPe({ host: e, spot: t, index: n, glow: r }) {
+function vPe({ host: e, spot: t, index: n, glow: r }) {
let i = Zle[n], a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), [c, l] = (0, b.useState)("all");
(0, b.useLayoutEffect)(() => {
let [e, t, n] = [
@@ -67392,7 +67396,7 @@ function yPe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function bPe({ host: e }) {
+function yPe({ host: e }) {
let t = e.store.value.homeGlow, n = YC(t.preset);
return /* @__PURE__ */ (0, x.jsxs)("section", {
"data-glow-setting": "",
@@ -67422,7 +67426,7 @@ function bPe({ host: e }) {
}),
/* @__PURE__ */ (0, x.jsx)("div", {
"data-glow-fields": "",
- children: vPe.map(([r, i, a]) => /* @__PURE__ */ (0, x.jsx)(kMe, {
+ children: _Pe.map(([r, i, a]) => /* @__PURE__ */ (0, x.jsx)(kMe, {
field: r,
label: i,
max: a,
@@ -67444,7 +67448,7 @@ function bPe({ host: e }) {
hidden: n,
children: [/* @__PURE__ */ (0, x.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, x.jsx)("div", {
"data-glow-stops": "",
- children: KC.map((n, r) => /* @__PURE__ */ (0, x.jsx)(yPe, {
+ children: KC.map((n, r) => /* @__PURE__ */ (0, x.jsx)(vPe, {
host: e,
spot: n,
index: r,
@@ -67469,7 +67473,7 @@ function bPe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var xPe = {
+var bPe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -67510,22 +67514,22 @@ var xPe = {
optional: !0,
fallback: 60
}
-}, rB = (e) => `peach.number.${e}`;
-function iB(e, t) {
+}, iB = (e) => `peach.number.${e}`;
+function aB(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function aB({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = xPe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, b.useRef)(0);
- d.current ||= FC(Number(localStorage.getItem(rB(e))), o, s, n && n > 0 ? n : l);
+function oB({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = bPe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, b.useRef)(0);
+ d.current ||= FC(Number(localStorage.getItem(iB(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, b.useState)(n ?? 0), [m, h] = (0, b.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, b.useState)(""), v = (0, b.useRef)(null), y = (0, b.useRef)(i);
y.current = i, (0, b.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let S = () => {
let t = v.current;
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(rB(e), String(d.current)), y.current(d.current)));
+ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(iB(e), String(d.current)), y.current(d.current)));
}, C = (0, b.useRef)(S);
C.current = S, (0, b.useEffect)(() => {
let e = v.current;
@@ -67535,7 +67539,7 @@ function aB({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}, []);
let w = f > 0, T = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), w ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(rB(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
+ t?.removeAttribute("aria-invalid"), _(""), w ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(iB(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, E = r || n === null;
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-number-setting": "",
@@ -67572,7 +67576,7 @@ function aB({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, x.jsxs)("span", {
"aria-hidden": "true",
- children: [c, iB(Number(m), c) ? ` · ${iB(Number(m), c)}` : ""]
+ children: [c, aB(Number(m), c) ? ` · ${aB(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, x.jsx)("small", {
id: `${e}-error`,
@@ -67586,13 +67590,13 @@ function aB({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/sidebar/sidebar-order.ts
-function oB(e) {
- let { mutate: t } = XF();
+function sB(e) {
+ let { mutate: t } = ZF();
return (0, b.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function sB(e, t, n, r) {
+function cB(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -67602,17 +67606,17 @@ function sB(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var SPe = "__home__", cB = (e) => e === "" ? SPe : e;
-function CPe({ host: e }) {
- let t = oB(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, b.useState)(null), [c, l] = (0, b.useState)(!1), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(null), m = (0, b.useRef)(null), h = (0, b.useRef)(null), g = (e, r, i) => {
- let a = sB(n, e, r, i);
+var xPe = "__home__", lB = (e) => e === "" ? xPe : e;
+function SPe({ host: e }) {
+ let t = sB(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, b.useState)(null), [c, l] = (0, b.useState)(!1), [u, d] = (0, b.useState)(null), [f, p] = (0, b.useState)(null), m = (0, b.useRef)(null), h = (0, b.useRef)(null), g = (e, r, i) => {
+ let a = cB(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => cB(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => lB(e) === o) ?? a[0], y = () => {
h.current && qa(h.current), l(!1);
}, S = () => {
let e = h.current;
@@ -67633,7 +67637,7 @@ function CPe({ host: e }) {
}, T = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", cB(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", lB(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -67707,7 +67711,7 @@ function CPe({ host: e }) {
})
]
})]
- }, cB(e))), /* @__PURE__ */ (0, x.jsxs)("div", {
+ }, lB(e))), /* @__PURE__ */ (0, x.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -67740,15 +67744,15 @@ function CPe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": cB(e),
+ "data-sidebar-add-option": lB(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: C,
onClick: () => {
- s(cB(e)), y(), m.current?.focus();
+ s(lB(e)), y(), m.current?.focus();
},
children: [/* @__PURE__ */ (0, x.jsx)($E, { name: n ?? "" }), /* @__PURE__ */ (0, x.jsx)("span", { children: t })]
- }, cB(e)))
+ }, lB(e)))
}) : null]
}), /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -67765,13 +67769,13 @@ function CPe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
-var lB = [
+var uB = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], wPe = [
+], CPe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -67780,7 +67784,7 @@ var lB = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], TPe = [["desc", "降序"], ["asc", "升序"]], EPe = [[
+], wPe = [["desc", "降序"], ["asc", "升序"]], TPe = [[
"cover",
"官方封面",
""
@@ -67788,7 +67792,7 @@ var lB = [
"thumbnail",
"预览图",
""
-]], DPe = [
+]], EPe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -67807,88 +67811,88 @@ var lB = [
"切片",
"隐藏切片"
]
-], OPe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", uB = null, dB = {
+], DPe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", dB = null, fB = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, fB = 0, pB = null, mB = /* @__PURE__ */ new Set();
-function kPe(e) {
- return mB.add(e), () => {
- mB.delete(e);
+}, pB = 0, mB = null, hB = /* @__PURE__ */ new Set();
+function OPe(e) {
+ return hB.add(e), () => {
+ hB.delete(e);
};
}
-function APe() {
- for (let e of [...mB]) e();
+function kPe() {
+ for (let e of [...hB]) e();
}
-function hB(e) {
- dB = {
- ...dB,
+function gB(e) {
+ fB = {
+ ...fB,
...e
- }, (0, mt.flushSync)(APe);
+ }, (0, mt.flushSync)(kPe);
}
-async function jPe(e) {
- let t = dB.epoch, n = await e.configurable();
- dB.open && dB.epoch === t && hB({ configurable: n });
+async function APe(e) {
+ let t = fB.epoch, n = await e.configurable();
+ fB.open && fB.epoch === t && gB({ configurable: n });
}
-function MPe(e = "") {
- let t = uB;
+function jPe(e = "") {
+ let t = dB;
if (!t) return;
- let n = lB.findIndex(([t]) => t === e);
- if (dB.open && !dB.closing) {
- n >= 0 && n !== dB.tab && hB({ tab: n });
+ let n = uB.findIndex(([t]) => t === e);
+ if (fB.open && !fB.closing) {
+ n >= 0 && n !== fB.tab && gB({ tab: n });
return;
}
- Wa(), fB += 1, pB ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = Mxe();
- hB({
+ Wa(), pB += 1, mB ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = jxe();
+ gB({
open: !0,
closing: !1,
configurable: null,
- epoch: dB.epoch + 1,
- tab: n >= 0 ? n : dB.tab
+ epoch: fB.epoch + 1,
+ tab: n >= 0 ? n : fB.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), jPe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), APe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function gB(e = !0) {
- if (!dB.open || dB.closing) return;
- let t = ++fB;
- e && uB?.closed?.(), hB({ closing: !0 });
+function _B(e = !0) {
+ if (!fB.open || fB.closing) return;
+ let t = ++pB;
+ e && dB?.closed?.(), gB({ closing: !0 });
let n = () => {
- t === fB && dB.closing && (hB({
+ t === pB && fB.closing && (gB({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), pB instanceof HTMLElement && document.contains(pB) && pB.focus(), pB = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), mB instanceof HTMLElement && document.contains(mB) && mB.focus(), mB = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var NPe = {
- open: MPe,
- close: gB,
- isOpen: () => dB.open,
+var MPe = {
+ open: jPe,
+ close: _B,
+ isOpen: () => fB.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function PPe(e) {
- return uB = e, NPe;
+function NPe(e) {
+ return dB = e, MPe;
}
-function FPe() {
- let e = (0, b.useSyncExternalStore)(kPe, () => dB);
- return uB ? /* @__PURE__ */ (0, x.jsx)(RPe, {
- host: uB,
+function PPe() {
+ let e = (0, b.useSyncExternalStore)(OPe, () => fB);
+ return dB ? /* @__PURE__ */ (0, x.jsx)(LPe, {
+ host: dB,
view: e
}) : null;
}
-function IPe(e) {
+function FPe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(OPe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(DPe)].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 _B = (e) => `settings-tab-${e}`, vB = (e) => `settings-group-${e}`;
-function LPe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var vB = (e) => `settings-tab-${e}`, yB = (e) => `settings-group-${e}`;
+function IPe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = (0, b.useRef)(e), l = (0, b.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -67916,7 +67920,7 @@ function LPe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = lB.length, r = t;
+ let n = uB.length, r = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;
else if (e.key === "Home") r = 0;
@@ -67945,11 +67949,11 @@ function LPe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- lB.map(([t, n], r) => /* @__PURE__ */ (0, x.jsxs)("button", {
+ uB.map(([t, n], r) => /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
role: "tab",
- id: _B(r),
- "aria-controls": vB(r),
+ id: vB(r),
+ "aria-controls": yB(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -67980,17 +67984,17 @@ function LPe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
]
});
}
-function yB({ index: e, tab: t, children: n }) {
+function bB({ index: e, tab: t, children: n }) {
return /* @__PURE__ */ (0, x.jsxs)("section", {
"data-setting-group": "",
- id: vB(e),
+ id: yB(e),
role: "tabpanel",
- "aria-labelledby": _B(e),
+ "aria-labelledby": vB(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, x.jsx)("h3", { children: lB[e][0] }), n]
+ children: [/* @__PURE__ */ (0, x.jsx)("h3", { children: uB[e][0] }), n]
});
}
-function bB({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function xB({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, x.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, x.jsxs)("span", { children: [/* @__PURE__ */ (0, x.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, x.jsx)("small", {
@@ -68007,7 +68011,7 @@ function bB({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function xB({ title: e, description: t, kind: n, children: r }) {
+function SB({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -68015,7 +68019,7 @@ function xB({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, x.jsxs)("span", { children: [/* @__PURE__ */ (0, x.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, x.jsx)("small", { children: t }) : t] }), r]
});
}
-function RPe({ host: e, view: t }) {
+function LPe({ host: e, view: t }) {
(0, b.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, b.useRef)(null), i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = (0, b.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -68036,7 +68040,7 @@ function RPe({ host: e, view: t }) {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== dB.tab && (hB({ tab: t }), e.selectSection?.(lB[t][0]));
+ t !== fB.tab && (gB({ tab: t }), e.selectSection?.(uB[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, x.jsx)("section", {
"data-settings-panel": "",
@@ -68047,9 +68051,9 @@ function RPe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: IPe,
+ onKeyDown: FPe,
onClick: (e) => {
- e.target === e.currentTarget && gB();
+ e.target === e.currentTarget && _B();
},
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-settings-card": "",
@@ -68060,36 +68064,36 @@ function RPe({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, x.jsx)("h2", {
id: "settingsTitle",
- children: lB[t.tab][0]
+ children: uB[t.tab][0]
}), /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
id: "settingsClose",
"aria-label": "关闭设置",
- onClick: () => gB(),
+ onClick: () => _B(),
children: /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-x" })
})
})]
}),
- /* @__PURE__ */ (0, x.jsx)(LPe, {
+ /* @__PURE__ */ (0, x.jsx)(IPe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- gB(!1), e.openConfiguration();
+ _B(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, x.jsxs)(yB, {
+ /* @__PURE__ */ (0, x.jsxs)(bB, {
index: 0,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(SB, {
title: "主题",
children: /* @__PURE__ */ (0, x.jsx)(Dz, {
id: "themeSetting",
@@ -68119,7 +68123,7 @@ function RPe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, x.jsx)(bB, {
+ /* @__PURE__ */ (0, x.jsx)(xB, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -68127,7 +68131,7 @@ function RPe({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, x.jsx)(bB, {
+ /* @__PURE__ */ (0, x.jsx)(xB, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -68135,40 +68139,40 @@ function RPe({ host: e, view: t }) {
n.homeGlow.on = t, p(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, x.jsx)(bPe, { host: e }),
+ /* @__PURE__ */ (0, x.jsx)(yPe, { host: e }),
/* @__PURE__ */ (0, x.jsxs)("section", {
"data-sidebar-setting": "",
"aria-labelledby": "sidebarOrderTitle",
children: [/* @__PURE__ */ (0, x.jsx)("span", { children: /* @__PURE__ */ (0, x.jsx)("b", {
id: "sidebarOrderTitle",
children: "导航入口与顺序"
- }) }), /* @__PURE__ */ (0, x.jsx)(CPe, { host: e })]
+ }) }), /* @__PURE__ */ (0, x.jsx)(SPe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(BPe, {
+ /* @__PURE__ */ (0, x.jsx)(zPe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, x.jsx)(VPe, {
+ /* @__PURE__ */ (0, x.jsx)(BPe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, x.jsxs)(yB, {
+ /* @__PURE__ */ (0, x.jsxs)(bB, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, x.jsx)(WPe, {
+ /* @__PURE__ */ (0, x.jsx)(UPe, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(SB, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, x.jsx)(aB, {
+ children: /* @__PURE__ */ (0, x.jsx)(oB, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -68178,24 +68182,24 @@ function RPe({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(SB, {
title: "口味与记录",
children: /* @__PURE__ */ (0, x.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, x.jsx)(Ek, {
+ children: /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
href: "/taste",
- onClick: () => gB(!1),
+ onClick: () => _B(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(yB, {
+ /* @__PURE__ */ (0, x.jsx)(bB, {
index: 4,
tab: t.tab,
- children: /* @__PURE__ */ (0, x.jsx)(bB, {
+ children: /* @__PURE__ */ (0, x.jsx)(xB, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -68210,7 +68214,7 @@ function RPe({ host: e, view: t }) {
})
});
}
-function zPe(e, t) {
+function RPe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = uo("arrow-up", "arrow-down", "a", {
@@ -68220,17 +68224,17 @@ function zPe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function BPe({ host: e, tab: t, epoch: n }) {
+function zPe({ 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, x.jsxs)(yB, {
+ return /* @__PURE__ */ (0, x.jsxs)(bB, {
index: 1,
tab: t,
children: [
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(SB, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, x.jsx)(aB, {
+ children: /* @__PURE__ */ (0, x.jsx)(oB, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -68240,7 +68244,7 @@ function BPe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(SB, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -68248,7 +68252,7 @@ function BPe({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, x.jsx)(Oz, {
id: "defaultSortSetting",
label: "默认排序",
- options: wPe,
+ options: CPe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -68257,7 +68261,7 @@ function BPe({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, x.jsx)(Oz, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: TPe,
+ options: wPe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -68265,11 +68269,11 @@ function BPe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => zPe(e, o)
+ decorate: (e) => RPe(e, o)
})]
})
}),
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(SB, {
title: "视频卡片大小",
children: /* @__PURE__ */ (0, x.jsx)(Dz, {
id: "javSizeSetting",
@@ -68284,16 +68288,16 @@ function BPe({ host: e, tab: t, epoch: n }) {
onChoose: (t) => e.setVideoLayout(t)
})
}),
- /* @__PURE__ */ (0, x.jsx)(UPe, {
+ /* @__PURE__ */ (0, x.jsx)(HPe, {
host: e,
epoch: n
})
]
});
}
-function VPe({ host: e, tab: t, epoch: n }) {
+function BPe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, x.jsxs)(yB, {
+ return /* @__PURE__ */ (0, x.jsxs)(bB, {
index: 2,
tab: t,
children: [
@@ -68301,13 +68305,13 @@ function VPe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(SB, {
title: "默认图片",
children: /* @__PURE__ */ (0, x.jsx)(Dz, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: EPe,
+ options: TPe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -68335,7 +68339,7 @@ function VPe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, x.jsx)(bB, {
+ /* @__PURE__ */ (0, x.jsx)(xB, {
id: "feedAutoScrollSetting",
title: "新作自动滚动",
checked: r.feedAutoScroll,
@@ -68343,7 +68347,7 @@ function VPe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- DPe.map(([t, n, r, i]) => /* @__PURE__ */ (0, x.jsx)(HPe, {
+ EPe.map(([t, n, r, i]) => /* @__PURE__ */ (0, x.jsx)(VPe, {
host: e,
id: t,
settingKey: n,
@@ -68353,8 +68357,8 @@ function VPe({ host: e, tab: t, epoch: n }) {
]
});
}
-function HPe({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = XF(), [o, s] = (0, b.useState)(null), c = (0, b.useRef)(null), l = e.store.value, u = (t) => {
+function VPe({ host: e, id: t, settingKey: n, label: r, title: i }) {
+ let a = ZF(), [o, s] = (0, b.useState)(null), c = (0, b.useRef)(null), l = e.store.value, u = (t) => {
s(t), ts(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -68378,14 +68382,14 @@ function HPe({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function UPe({ host: e, epoch: t }) {
+function HPe({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(SB, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, x.jsx)(aB, {
+ children: /* @__PURE__ */ (0, x.jsx)(oB, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: n.hoverDelaySeconds,
@@ -68395,7 +68399,7 @@ function UPe({ host: e, epoch: t }) {
}, t)
})
}),
- /* @__PURE__ */ (0, x.jsx)(bB, {
+ /* @__PURE__ */ (0, x.jsx)(xB, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -68403,7 +68407,7 @@ function UPe({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, x.jsx)(bB, {
+ /* @__PURE__ */ (0, x.jsx)(xB, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -68411,11 +68415,11 @@ function UPe({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, x.jsx)(xB, {
+ /* @__PURE__ */ (0, x.jsx)(SB, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, x.jsx)(aB, {
+ children: /* @__PURE__ */ (0, x.jsx)(oB, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -68427,13 +68431,13 @@ function UPe({ host: e, epoch: t }) {
})
] });
}
-function WPe({ host: e, epoch: t }) {
- let n = e.store.value, r = XF();
- return /* @__PURE__ */ (0, x.jsx)(xB, {
+function UPe({ host: e, epoch: t }) {
+ let n = e.store.value, r = ZF();
+ return /* @__PURE__ */ (0, x.jsx)(SB, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, x.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, x.jsx)(aB, {
+ children: /* @__PURE__ */ (0, x.jsx)(oB, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
@@ -68446,68 +68450,68 @@ function WPe({ host: e, epoch: t }) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var SB = "__home__", GPe = {
+var CB = "__home__", WPe = {
creator: 26,
tag: 30,
tech: 16
-}, CB = 180, wB = null, TB = {
+}, wB = 180, TB = null, EB = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, EB = /* @__PURE__ */ new Set();
-function KPe(e) {
- return EB.add(e), () => {
- EB.delete(e);
+}, DB = /* @__PURE__ */ new Set();
+function GPe(e) {
+ return DB.add(e), () => {
+ DB.delete(e);
};
}
-function DB() {
- for (let e of [...EB]) e();
+function OB() {
+ for (let e of [...DB]) e();
}
-var qPe = {
+var KPe = {
render(e) {
- TB = {
- ...TB,
+ EB = {
+ ...EB,
props: e
- }, (0, mt.flushSync)(DB);
+ }, (0, mt.flushSync)(OB);
},
navChanged() {
- TB = {
- ...TB,
- epoch: TB.epoch + 1
- }, (0, mt.flushSync)(DB);
+ EB = {
+ ...EB,
+ epoch: EB.epoch + 1
+ }, (0, mt.flushSync)(OB);
}
};
-function JPe(e) {
- return wB = e, TB = {
- ...TB,
+function qPe(e) {
+ return TB = e, EB = {
+ ...EB,
props: {
content: null,
filters: {},
latest: null
}
- }, qPe;
+ }, KPe;
}
-function YPe() {
- let e = (0, b.useSyncExternalStore)(KPe, () => TB);
- return wB ? /* @__PURE__ */ (0, x.jsx)(XPe, {
- host: wB,
+function JPe() {
+ let e = (0, b.useSyncExternalStore)(GPe, () => EB);
+ return TB ? /* @__PURE__ */ (0, x.jsx)(YPe, {
+ host: TB,
props: e.props,
epoch: e.epoch
}) : null;
}
-function XPe({ host: e, props: t, epoch: n }) {
+function YPe({ host: e, props: t, epoch: n }) {
let r = (0, b.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, x.jsx)(ZPe, {
+ /* @__PURE__ */ (0, x.jsx)(XPe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, x.jsx)($Pe, {
+ t.content ? /* @__PURE__ */ (0, x.jsx)(QPe, {
host: e,
content: t.content,
filters: t.filters,
@@ -68515,8 +68519,8 @@ function XPe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function ZPe({ host: e, epoch: t, version: n }) {
- let r = oB(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, b.useRef)(null), l = (0, b.useRef)(null), u = EA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || SB : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function XPe({ host: e, epoch: t, version: n }) {
+ let r = sB(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, b.useRef)(null), l = (0, b.useRef)(null), u = DA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || CB : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, b.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
@@ -68534,7 +68538,7 @@ function ZPe({ host: e, epoch: t, version: n }) {
}, _ = (e) => ({
draggable: !0,
onDragStart: (t) => {
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || SB);
+ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || CB);
},
onDragOver: (t) => {
if (f === null || f === e) return;
@@ -68549,7 +68553,7 @@ function ZPe({ host: e, epoch: t, version: n }) {
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : sB(i, n, e, a);
+ let o = n === null ? null : cB(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@ -68573,15 +68577,15 @@ function ZPe({ host: e, epoch: t, version: n }) {
src: "/peach-logo.png",
alt: ""
}) : /* @__PURE__ */ (0, x.jsx)($E, { name: r }), /* @__PURE__ */ (0, x.jsx)("span", { children: n })]
- }, t || SB))
+ }, t || CB))
}), v ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
-var OB = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function QPe(e) {
+var kB = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function ZPe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -68594,7 +68598,7 @@ function QPe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function $Pe({ host: e, content: t, filters: n, latest: r }) {
+function QPe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, b.useLayoutEffect)(() => {
t.kind === "catalog" && _o(e.scroll, "drawer");
@@ -68603,8 +68607,8 @@ function $Pe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? eFe(e, t.facets, n, r, i) : tFe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, x.jsx)(nFe, {
+ let a = t.kind === "catalog" ? $Pe(e, t.facets, n, r, i) : eFe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, x.jsx)(tFe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -68613,11 +68617,11 @@ function $Pe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function eFe(e, t, n, r, i) {
- let a = QPe(r), o = (t, r, i) => {
+function $Pe(e, t, n, r, i) {
+ let a = ZPe(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = OB(n, r);
- return /* @__PURE__ */ (0, x.jsx)(jB, {
+ let o = kB(n, r);
+ return /* @__PURE__ */ (0, x.jsx)(MB, {
rows: t,
filterKey: r,
multi: i,
@@ -68627,7 +68631,7 @@ function eFe(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = OB(n, l), p = c.some((e) => f.includes(e.value));
+ let f = kB(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -68639,12 +68643,12 @@ function eFe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, x.jsx)(iFe, {
+ body: /* @__PURE__ */ (0, x.jsx)(rFe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: GPe[d],
+ limit: WPe[d],
filterKey: l,
selected: f,
counts: a,
@@ -68659,7 +68663,7 @@ function eFe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, x.jsx)(PB, {
+ body: /* @__PURE__ */ (0, x.jsx)(FB, {
host: e,
filters: n
})
@@ -68673,7 +68677,7 @@ function eFe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, x.jsx)(MB, {
+ body: /* @__PURE__ */ (0, x.jsx)(NB, {
rows: t.followTags,
host: e,
selected: null,
@@ -68682,14 +68686,14 @@ function eFe(e, t, n, r, i) {
} : null
];
}
-function tFe(e, t, n) {
- let r = t.providers || [], i = OB(n, "provider"), a = new Set(t.selected);
+function eFe(e, t, n) {
+ let r = t.providers || [], i = kB(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, x.jsx)(jB, {
+ body: /* @__PURE__ */ (0, x.jsx)(MB, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -68703,7 +68707,7 @@ function tFe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, x.jsx)(PB, {
+ body: /* @__PURE__ */ (0, x.jsx)(FB, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -68713,7 +68717,7 @@ function tFe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, x.jsx)(MB, {
+ body: /* @__PURE__ */ (0, x.jsx)(NB, {
rows: t.tags,
host: e,
selected: a,
@@ -68722,19 +68726,19 @@ function tFe(e, t, n) {
} : null
];
}
-function kB(e, t) {
+function AB(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function nFe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, b.useRef)(null), s = (0, b.useRef)(null), [c, l] = (0, b.useState)(() => kB(e, n)), u = (0, b.useRef)(!1);
+function tFe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, b.useRef)(null), s = (0, b.useRef)(null), [c, l] = (0, b.useState)(() => AB(e, n)), u = (0, b.useRef)(!1);
(0, b.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? kB(e, n) : c;
+ let i = u.current ? AB(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@ -68766,7 +68770,7 @@ function nFe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, x.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, x.jsx)(AB.Provider, {
+ children: /* @__PURE__ */ (0, x.jsx)(jB.Provider, {
value: d,
children: a
})
@@ -68775,15 +68779,15 @@ function nFe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var AB = (0, b.createContext)(() => {});
-function rFe({ dot: e }) {
+var jB = (0, b.createContext)(() => {});
+function nFe({ dot: e }) {
return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, x.jsx)($E, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, x.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, x.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function jB({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function MB({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -68800,7 +68804,7 @@ function jB({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, x.jsx)(rFe, { dot: e.dot }),
+ /* @__PURE__ */ (0, x.jsx)(nFe, { dot: e.dot }),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -68815,8 +68819,8 @@ function jB({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function iFe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, b.useContext)(AB), [d, f] = (0, b.useState)(null), [p, m] = (0, b.useState)(e);
+function rFe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, b.useContext)(jB), [d, f] = (0, b.useState)(null), [p, m] = (0, b.useState)(e);
p !== e && (m(e), f(null));
let h = (0, b.useRef)(null), g = (0, b.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, b.useLayoutEffect)(() => {
@@ -68831,7 +68835,7 @@ function iFe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
e.body.classList.add("ui-fcollapse"), Oa(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(jB, {
+ }, [d, _]), /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(MB, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -68859,7 +68863,7 @@ function iFe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
children: /* @__PURE__ */ (0, x.jsx)($E, { name: "chevron-down" })
}) : null] });
}
-function MB({ rows: e, host: t, selected: n, badges: r }) {
+function NB({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)("button", {
@@ -68881,10 +68885,10 @@ function MB({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var NB = (e, t) => e ? Math.min(CB, Number(e) / 60) : t;
-function PB({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, b.useState)(r), [o, s] = (0, b.useState)(() => [NB(t.dur_min, 0), NB(t.dur_max, CB)]), [c, l] = (0, b.useState)("max");
- i !== r && (a(r), s([NB(t.dur_min, 0), NB(t.dur_max, CB)]));
+var PB = (e, t) => e ? Math.min(wB, Number(e) / 60) : t;
+function FB({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, b.useState)(r), [o, s] = (0, b.useState)(() => [PB(t.dur_min, 0), PB(t.dur_max, wB)]), [c, l] = (0, b.useState)("max");
+ i !== r && (a(r), s([PB(t.dur_min, 0), PB(t.dur_max, wB)]));
let [u, d] = o, f = (0, b.useRef)(null), p = (0, b.useRef)(null), m = (0, b.useRef)(null), h = (0, b.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -68897,11 +68901,11 @@ function PB({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, b.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / CB * 100}%`), e.style.setProperty("--hi", `${d / CB * 100}%`);
+ e.style.setProperty("--lo", `${u / wB * 100}%`), e.style.setProperty("--hi", `${d / wB * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? d : u;
- e.style.left = `${n / CB * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / wB * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@ -68911,7 +68915,7 @@ function PB({ host: e, filters: t, commit: n = e.setDuration }) {
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= CB ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= wB ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-sidebar-duration": "",
@@ -68926,7 +68930,7 @@ function PB({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: CB,
+ max: wB,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -68937,7 +68941,7 @@ function PB({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: CB,
+ max: wB,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -68952,23 +68956,23 @@ function PB({ host: e, filters: t, commit: n = e.setDuration }) {
}
//#endregion
//#region src/configuration-skeleton.ts
-var aFe = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${PI({
+var iFe = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${FI({
label: "保存配置",
attrs: "disabled data-skeleton-action"
-})}</div></div></section>`, FB = (e, t = "", n = "ui-configuration-skeleton-toggle") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton ${n}"></span></div>`;
-function oFe() {
+})}</div></div></section>`, IB = (e, t = "", n = "ui-configuration-skeleton-toggle") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton ${n}"></span></div>`;
+function aFe() {
return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${[
"媒体库与入库",
"来源与订阅",
"下载渠道",
"网络与访问",
"应用与维护"
- ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${aFe("媒体文件夹", `<div class="flex flex-col gap-3 py-4 pr-3">${FB("媒体文件夹", "", "ui-configuration-skeleton-select")}${FB("媒体库名称", "", "ui-configuration-skeleton-select")}</div>`)}</div></div></div>`;
+ ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${iFe("媒体文件夹", `<div class="flex flex-col gap-3 py-4 pr-3">${IB("媒体文件夹", "", "ui-configuration-skeleton-select")}${IB("媒体库名称", "", "ui-configuration-skeleton-select")}</div>`)}</div></div></div>`;
}
//#endregion
//#region src/management-skeletons.ts
-var IB = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", LB = (e = "60%") => `<span class="${IB} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, RB = "disabled data-skeleton-action", zB = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function sFe() {
+var LB = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", RB = (e = "60%") => `<span class="${LB} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, zB = "disabled data-skeleton-action", BB = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function oFe() {
let e = [
"馆藏视频",
"看过",
@@ -68976,27 +68980,27 @@ function sFe() {
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${IB} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${LB("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${LB("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${zB}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${LB("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${LB} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${RB("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${RB("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${BB}" data-stats-chart>
+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${RB("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${LB()}</span><b class="text-title-2-medium">${LB("3em")}</b><small class="text-caption-1-regular">${LB()}</small></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${RB()}</span><b class="text-title-2-medium">${RB("3em")}</b><small class="text-caption-1-regular">${RB()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">账本当前快照 · ${LB("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">账本当前快照 · ${RB("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${zB}"><h3 class="text-title-2-medium">${e}</h3><div class="${IB} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${BB}"><h3 class="text-title-2-medium">${e}</h3><div class="${LB} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -69005,11 +69009,11 @@ function sFe() {
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${IB} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${LB} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function cFe() {
+function sFe() {
let e = (e) => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto rounded-2lg bg-background-tertiary-default p-1" data-taste-segments>${e.map((e, t) => `<span class="flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, t = [
"浏览记录",
"口味维度",
@@ -69017,20 +69021,20 @@ function cFe() {
"私有导出"
].map((e) => `
<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${IB} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${LB("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${LB("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${IB} h-6"></div>`).join(""), r = (e) => `<section class="${zB}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${IB} h-40"></div></section>`;
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${LB} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${RB("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${RB("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${LB} h-6"></div>`).join(""), r = (e) => `<section class="${BB}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${LB} h-40"></div></section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
- <div class="flex flex-wrap items-center gap-2">${FI("全部时间")}<span data-button-group data-split-button data-variant="primary">${PI({
+ <div class="flex flex-wrap items-center gap-2">${II("全部时间")}<span data-button-group data-split-button data-variant="primary">${FI({
glyph: "compass",
label: "读取浏览器历史",
- attrs: RB
- })}${PI({
+ attrs: zB
+ })}${FI({
glyph: "chevron-down",
- attrs: RB
+ attrs: zB
})}</span></div>
</div>
<div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>
@@ -69048,11 +69052,11 @@ function cFe() {
4,
5
].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>
- <small class="text-caption-1-regular">${LB("8em")}</small></div>
+ <small class="text-caption-1-regular">${RB("8em")}</small></div>
<div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div>
</section>
<div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>
- <section class="${zB}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${IB} h-72 max-sm:h-48"></div></section>
+ <section class="${BB}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${LB} h-72 max-sm:h-48"></div></section>
<section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col">
<div class="px-4 pt-3">${e([
"标签",
@@ -69060,128 +69064,128 @@ function cFe() {
"常访问网站",
"浏览候选"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${IB} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${LB} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function lFe() {
+function cFe() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
- <span class="${IB} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
- <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${LB("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${LB("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${LB("75%")}</span>
+ <span class="${LB} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
+ <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${RB("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${RB("3em")}</span>`).join("")}
+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${RB("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${LB("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${LB("8em")}</span>
+ <b class="text-title-2-medium">${RB("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${RB("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
"整组回收"
- ].map((e) => PI({
+ ].map((e) => FI({
variant: "secondary",
size: "small",
label: e,
- attrs: RB
+ attrs: zB
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${LB("4em")}</strong></div><p class="text-body-regular text-text-secondary">${LB("12em")}</p>
+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${RB("4em")}</strong></div><p class="text-body-regular text-text-secondary">${RB("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${RB} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${zB} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function uFe() {
+function lFe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
- <div class="flex min-w-0 gap-4"><span class="${IB} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
- <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${LB("80%")}</h3><p class="text-body-2-regular">${LB("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${LB} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
+ <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${RB("80%")}</h3><p class="text-body-2-regular">${RB("60%")}</p></div>
</div>
- <footer class="flex justify-end">${PI({
+ <footer class="flex justify-end">${FI({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: RB
+ attrs: zB
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- ${II("待升级")}
+ ${LI("待升级")}
<ul class="card-grid-cover gap-5">${e.repeat(6)}</ul>
</div></div>`;
}
//#endregion
//#region src/board-skeleton.ts
-var BB = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VB = () => `${BB("80%")}${BB("48%")}`, HB = (e, t) => e.repeat(t), UB = "disabled data-skeleton-action", WB = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, GB = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, dFe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", KB = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var VB = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, HB = () => `${VB("80%")}${VB("48%")}`, UB = (e, t) => e.repeat(t), WB = "disabled data-skeleton-action", GB = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, KB = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, uFe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", qB = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${dFe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${WB("3em")}</b></div>`).join("")}</div>`, qB = [
+].map((e) => `<div class="${uFe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${GB("3em")}</b></div>`).join("")}</div>`, JB = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"]
-], fFe = (e = "") => qB.some(([t]) => t === e) ? e : "list", JB = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${qB.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, YB = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, pFe = ({ table: e, sort: t, dir: n }) => {
+], dFe = (e = "") => JB.some(([t]) => t === e) ? e : "list", YB = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${JB.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, XB = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, fFe = ({ table: e, sort: t, dir: n }) => {
let r = fn.find(([e]) => e === t)[1];
- return `<div class="flex flex-wrap items-center gap-2 ui-follow-skeleton-toolbar"><span class="contents max-sm:flex max-sm:min-w-0 max-sm:flex-1 max-sm:flex-col"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${WB("132px")}</span></span>${PI({
+ return `<div class="flex flex-wrap items-center gap-2 ui-follow-skeleton-toolbar"><span class="contents max-sm:flex max-sm:min-w-0 max-sm:flex-1 max-sm:flex-col"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${GB("132px")}</span></span>${FI({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: UB
- })}<span data-follow-toolbar-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span data-button-group role="group">${PI({
+ attrs: WB
+ })}<span data-follow-toolbar-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span data-button-group role="group">${FI({
variant: "ghost",
glyph: "layout-grid",
attrs: `aria-pressed="${!e}"`
- })}${PI({
+ })}${FI({
variant: "ghost",
glyph: "table",
attrs: `aria-pressed="${e}"`
- })}</span>${FI(r)}${PI({
+ })}</span>${II(r)}${FI({
variant: "secondary",
glyph: n === "asc" ? "arrow-up" : "arrow-down"
- })}${e ? "" : PI({
+ })}${e ? "" : FI({
variant: "secondary",
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: UB
+ attrs: WB
})}</span></div>`;
-}, XB = () => `<span class="flex shrink-0 items-center gap-1">${PI({
+}, ZB = () => `<span class="flex shrink-0 items-center gap-1">${FI({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: UB
-})}${PI({
+ attrs: WB
+})}${FI({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: UB
-})}</span>`, mFe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${YB()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${WB("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${GB(14, 14)}</span>${GB(48, 24)}<span data-follow-source-controls class="contents max-sm:flex max-sm:w-full max-sm:flex-wrap max-sm:items-center max-sm:gap-1.5"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${WB("113px")}</span>${XB()}</span></div>`, ZB = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${GB(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${WB("92px")}</b>${PI({
+ attrs: WB
+})}</span>`, pFe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${XB()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${GB("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${KB(14, 14)}</span>${KB(48, 24)}<span data-follow-source-controls class="contents max-sm:flex max-sm:w-full max-sm:flex-wrap max-sm:items-center max-sm:gap-1.5"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${GB("113px")}</span>${ZB()}</span></div>`, QB = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${KB(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${GB("92px")}</b>${FI({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: UB
-})}<span data-follow-author-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${GB(14, 14)}${GB(14, 14)}</span>${PI({
+ attrs: WB
+})}<span data-follow-author-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${KB(14, 14)}${KB(14, 14)}</span>${FI({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: UB
-})}${PI({
+ attrs: WB
+})}${FI({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: UB
-})}</span></div><div data-source-divider>${HB(mFe(), e)}</div></section>`, hFe = () => {
+ attrs: WB
+})}</span></div><div data-source-divider>${UB(pFe(), e)}</div></section>`, mFe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, gFe = [
+}, hFe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -69189,64 +69193,64 @@ var BB = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VB
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], _Fe = {
+], gFe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, vFe = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", yFe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${gFe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${_Fe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${vFe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${HB(`<tr>${[
- YB(),
- `<span class="flex min-w-0 items-center gap-2">${GB(32, 32, !0)}${WB("5em")}</span>`,
- WB("10em"),
- `<span class="flex items-center gap-1.5">${GB(14, 14)}${WB("4em")}</span>`,
- GB(48, 24),
- WB("113px"),
- XB()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, bFe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${WB("111px")}</span>${FI(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${GB(204, 32)}</div>`, xFe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${WB("120px")}</h3>${[
+}, _Fe = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", vFe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${hFe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${gFe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${_Fe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${UB(`<tr>${[
+ XB(),
+ `<span class="flex min-w-0 items-center gap-2">${KB(32, 32, !0)}${GB("5em")}</span>`,
+ GB("10em"),
+ `<span class="flex items-center gap-1.5">${KB(14, 14)}${GB("4em")}</span>`,
+ KB(48, 24),
+ GB("113px"),
+ ZB()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, yFe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${GB("111px")}</span>${II(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${KB(204, 32)}</div>`, bFe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${GB("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${WB(e)}</span>`).join("")}</div>`, SFe = (e) => {
- let t = fFe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${KB()}<div class="flex flex-col gap-6">${JB(t)}<div class="flex flex-col gap-4">${xFe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = gn(e.followSort, e.followDir), i = e.followPageSize || hFe(), a = n ? yFe(i, r) : `${YB("全选本页")}<div class="flex flex-col gap-3">${ZB(3)}${ZB(4)}${ZB(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${KB()}<div class="flex flex-col gap-6">${JB(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${pFe({
+].map((e) => `<span class="text-body-medium">${GB(e)}</span>`).join("")}</div>`, xFe = (e) => {
+ let t = dFe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${qB()}<div class="flex flex-col gap-6">${YB(t)}<div class="flex flex-col gap-4">${bFe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = gn(e.followSort, e.followDir), i = e.followPageSize || mFe(), a = n ? vFe(i, r) : `${XB("全选本页")}<div class="flex flex-col gap-3">${QB(3)}${QB(4)}${QB(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${qB()}<div class="flex flex-col gap-6">${YB(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${fFe({
table: n,
...r
- })}${a}${bFe(n, i)}</div></div></div></div></div>`;
+ })}${a}${yFe(n, i)}</div></div></div></div></div>`;
};
-function CFe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${BB("85%")}${BB("65%")}${HB(VB(), 4)}</div></aside></div>`;
+function SFe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${VB("85%")}${VB("65%")}${UB(HB(), 4)}</div></aside></div>`;
}
-function wFe(e, t = {}) {
+function CFe(e, t = {}) {
let n = "";
- if (e === "/stats") n = sFe();
+ if (e === "/stats") n = oFe();
else if (e === "/jav") n = jAe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = cFe();
- else if (e === "/subscriptions") n = SFe(t);
- else if (e === "/settings/library") n = oFe();
+ else if (e === "/taste") n = sFe();
+ else if (e === "/subscriptions") n = xFe(t);
+ else if (e === "/settings/library") n = aFe();
else if (e === "/tasks") n = `<div class="ui-activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="ui-activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content ui-skeleton-lines">${BB("35%")}${VB()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = lFe();
- else if (e === "/quality-goals") n = uFe();
- else if (e === "/playlists") n = `<section class="ui-playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate ui-skeleton-lines"><span>新播放列表</span>${BB("200px")}</div></header><div class="ui-playlistcards">${HB(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy ui-skeleton-lines">${VB()}</div></div></article>`, 6)}</div></section>`;
+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="ui-activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content ui-skeleton-lines">${VB("35%")}${HB()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") n = cFe();
+ else if (e === "/quality-goals") n = lFe();
+ else if (e === "/playlists") n = `<section class="ui-playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate ui-skeleton-lines"><span>新播放列表</span>${VB("200px")}</div></header><div class="ui-playlistcards">${UB(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy ui-skeleton-lines">${HB()}</div></div></article>`, 6)}</div></section>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var QB = (e) => ["follow-item", e], TFe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, EFe = "/api/follow/save", DFe = "/api/follow/media/hide", $B = class extends Error {
+var $B = (e) => ["follow-item", e], wFe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, TFe = "/api/follow/save", EFe = "/api/follow/media/hide", eV = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function eV(e, t) {
- let n = await V(TFe(e), t);
+async function tV(e, t) {
+ let n = await V(wFe(e), t);
for (let t of n.groups || []) {
let r = ai(t).find((t) => t.id === e);
if (r) return {
@@ -69256,9 +69260,9 @@ async function eV(e, t) {
aliases: n.author_aliases || []
};
}
- throw new $B();
+ throw new eV();
}
-function OFe(e) {
+function DFe(e) {
for (let [, t] of U.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = ai(t.group).find((t) => t.id === e);
@@ -69269,20 +69273,20 @@ function OFe(e) {
}
return null;
}
-async function tV(e, t) {
- let n = QB(e.id), r = oi(e.id), i = U.getQueryData(ei) ? null : U.fetchQuery({
+async function nV(e, t) {
+ let n = $B(e.id), r = oi(e.id), i = U.getQueryData(ei) ? null : U.fetchQuery({
queryKey: ei,
queryFn: () => ti(t)
}), a = r ? {
...r,
item: r.item
- } : U.getQueryData(n) ?? OFe(e.id);
+ } : U.getQueryData(n) ?? DFe(e.id);
a ? U.setQueryData(n, a) : await U.fetchQuery({
queryKey: n,
- queryFn: () => eV(e.id, t)
+ queryFn: () => tV(e.id, t)
}), await i;
}
-function kFe(e, t, n, r) {
+function OFe(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 && mi(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,
@@ -69297,32 +69301,32 @@ function kFe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var AFe = (e) => ai(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), jFe = {
+var kFe = (e) => ai(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), AFe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, MFe = {
+}, jFe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function NFe(e) {
+function MFe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return jFe[t] || t;
+ return AFe[t] || t;
} catch {
return "外部文件页";
}
}
-function nV(e, t) {
- return MFe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function rV(e, t) {
+ return jFe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function PFe(e, t, n = "") {
+function NFe(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;
@@ -69331,54 +69335,54 @@ function PFe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var FFe = (e) => String(e.name || "").trim(), rV = (e, t) => e.tag_types?.[t] || "unknown", IFe = /* @__PURE__ */ new Set([
+var PFe = (e) => String(e.name || "").trim(), iV = (e, t) => e.tag_types?.[t] || "unknown", FFe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function LFe(e, t) {
- let n = rV(e, t);
- return `r34-${IFe.has(n) ? n : "general"}`;
+function IFe(e, t) {
+ let n = iV(e, t);
+ return `r34-${FFe.has(n) ? n : "general"}`;
}
-var iV = [
+var aV = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function RFe(e, t) {
+function LFe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = iV.indexOf(rV(e, t));
- return n < 0 ? iV.length : n;
+ let n = aV.indexOf(iV(e, t));
+ return n < 0 ? aV.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function aV(e, t) {
+function oV(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 zFe = (e, t) => ({
+var RFe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), oV = (e) => e?.size ? { size: e.size } : {};
-function BFe(e, t) {
+}), sV = (e) => e?.size ? { size: e.size } : {};
+function zFe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: nV(t, e),
- ...oV(t)
+ source: rV(t, e),
+ ...sV(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: nV(a, e),
- ...oV(a)
+ source: rV(a, e),
+ ...sV(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -69386,7 +69390,7 @@ function BFe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var VFe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", sV = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => xo(e, {
+var BFe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", cV = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => xo(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -69394,7 +69398,7 @@ var VFe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", sV
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), HFe = [
+}), VFe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -69404,41 +69408,41 @@ var VFe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", sV
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], UFe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], HFe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${HFe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${VFe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, WFe = {
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, UFe = {
...Object.fromEntries(Object.keys(ZD).map((e) => [`/settings/${e}`, () => bo()])),
- "/data-cleanup": () => WI(),
- "/resource-sync": () => WI(),
- "/review": () => UFe(),
+ "/data-cleanup": () => GI(),
+ "/resource-sync": () => GI(),
+ "/review": () => HFe(),
"/diagnostics": () => bo(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${sV("正在读取采集来源", {
+ ${cV("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function cV(e, { followLayout: t, followSort: n, followDir: r }) {
- return wFe(e, {
+function lV(e, { followLayout: t, followSort: n, followDir: r }) {
+ return CFe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (WFe[e] ?? (() => sV("正在读取页面")))();
+ }) || (UFe[e] ?? (() => cV("正在读取页面")))();
}
-var lV = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function uV(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = lV(t);
+var uV = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function dV(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = uV(t);
(!r || r !== n) && (e.innerHTML = t, ko(e));
}
//#endregion
//#region src/react/components/related-section.tsx
-function dV({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, ...o }) {
+function fV({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, ...o }) {
let s = (0, b.useCallback)((e) => {
e && (ko(e), t(e));
}, [t]);
@@ -69451,15 +69455,15 @@ function dV({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, x.jsx)(uP, {
+ children: /* @__PURE__ */ (0, x.jsx)(dP, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, x.jsx)(Ok, {
+ children: /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: yhe,
+ icon: vhe,
title: "暂无接着看的内容",
children: "可以回到列表挑选其他作品。"
})
@@ -69473,14 +69477,14 @@ function dV({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
}
//#endregion
//#region src/react/components/detail-continuation.tsx
-function fV({ queue: e, children: t, editionCards: n }) {
+function pV({ queue: e, children: t, editionCards: n }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-detail-continuation": "",
"data-edition-cards": n == null ? void 0 : Math.min(3, n),
children: [e, t]
});
}
-function pV({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function mV({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
let a = (0, b.useRef)(null), [o, s] = (0, b.useState)(!0), c = e.some((e) => e.video), l = !!i;
if ((0, b.useEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]"), t = Bo(e, { fade: !1 });
@@ -69546,7 +69550,7 @@ function pV({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, x.jsx)(GFe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, x.jsx)(WFe, {
item: e,
selected: r === t,
label: e.label || `第 ${r + 1} 张`,
@@ -69568,7 +69572,7 @@ function pV({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function GFe({ item: e, selected: t, label: n, onSelect: r, render: i }) {
+function WFe({ item: e, selected: t, label: n, onSelect: r, render: i }) {
let a = (0, b.useRef)(null), [o, s] = (0, b.useState)(typeof IntersectionObserver > "u");
return (0, b.useEffect)(() => {
if (!a.current || o) return;
@@ -69593,14 +69597,14 @@ function GFe({ item: e, selected: t, label: n, onSelect: r, render: i }) {
}
//#endregion
//#region src/react/follow-detail/follow-related.ts
-var KFe = (e, t, n) => [
+var GFe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function mV(e, t, n, r) {
+function hV(e, t, n, r) {
let i = new Set((t.group ? ai(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
let t = ai(e);
@@ -69615,7 +69619,7 @@ function mV(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-async function qFe(e, t, n, r) {
+async function KFe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...pi(i),
status: "new",
@@ -69629,29 +69633,29 @@ async function qFe(e, t, n, r) {
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return mV(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && mV(o, e, t, n).length < n && await s("", 0), {
+ return hV(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && hV(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
//#endregion
//#region src/react/follow-detail/follow-detail-page.tsx
-var hV = (e) => Number(e) > 0, JFe = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+var gV = (e) => Number(e) > 0, qFe = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), gV = R("external-link", "ui-externalmark");
-function YFe(e) {
+}), _V = R("external-link", "ui-externalmark");
+function JFe(e) {
let { id: t, actions: n } = e, r = dt({
- queryKey: QB(t),
- queryFn: ({ signal: e }) => eV(t, e)
+ queryKey: $B(t),
+ queryFn: ({ signal: e }) => tV(t, e)
}), i = dt({
queryKey: ei,
queryFn: ({ signal: e }) => ti(e)
}), a = (0, b.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, b.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, x.jsx)(QFe, {
+ return r.data ? /* @__PURE__ */ (0, x.jsx)(ZFe, {
...e,
data: r.data,
- context: zFe(r.data, a),
+ context: RFe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, x.jsx)("div", {
@@ -69660,9 +69664,9 @@ function YFe(e) {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, x.jsx)(_V, { onClose: n.close }), /* @__PURE__ */ (0, x.jsx)("div", {
+ children: [/* @__PURE__ */ (0, x.jsx)(vV, { onClose: n.close }), /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? XFe(r.error) ? /* @__PURE__ */ (0, x.jsx)(ZFe, { onBack: n.close }) : /* @__PURE__ */ (0, x.jsx)(uP, {
+ children: r.isError ? YFe(r.error) ? /* @__PURE__ */ (0, x.jsx)(XFe, { onBack: n.close }) : /* @__PURE__ */ (0, x.jsx)(dP, {
message: Et(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -69670,8 +69674,8 @@ function YFe(e) {
})
});
}
-var XFe = (e) => e instanceof $B || e instanceof un && e.status === 404;
-function ZFe({ onBack: e }) {
+var YFe = (e) => e instanceof eV || e instanceof un && e.status === 404;
+function XFe({ onBack: e }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -69680,7 +69684,7 @@ function ZFe({ onBack: e }) {
dangerouslySetInnerHTML: { __html: io("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var _V = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
+var vV = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -69689,8 +69693,8 @@ var _V = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function QFe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = kFe(c, l, n, i), d = iIe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, b.useState)({
+function ZFe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = OFe(c, l, n, i), d = rIe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, b.useState)({
key: "",
kind: ""
}), h = {
@@ -69710,20 +69714,20 @@ function QFe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? AFe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, x.jsx)(xV, {
+ let g = !u.embedded.length && u.collection ? kFe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, x.jsx)(SV, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, x.jsx)(xV, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, x.jsx)(SV, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, x.jsx)(tIe, {
+ }) : /* @__PURE__ */ (0, x.jsx)(eIe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -69733,14 +69737,14 @@ function QFe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, x.jsx)(eIe, {
+ children: [/* @__PURE__ */ (0, x.jsx)($Fe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, x.jsx)(nIe, {
+ }, f), /* @__PURE__ */ (0, x.jsx)(tIe, {
item: c,
data: e,
context: t,
@@ -69750,9 +69754,9 @@ function QFe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, x.jsx)(fV, {
+ }), /* @__PURE__ */ (0, x.jsx)(pV, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, x.jsx)($Fe, {
+ children: a > 0 ? /* @__PURE__ */ (0, x.jsx)(QFe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -69762,23 +69766,23 @@ function QFe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function $Fe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function QFe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = dt({
- queryKey: KFe(e.item.id, t, n),
- queryFn: ({ signal: r }) => qFe(e, t, n, r)
- }), [s] = (0, b.useState)(() => sV("正在读取推荐", {
+ queryKey: GFe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => KFe(e, t, n, r)
+ }), [s] = (0, b.useState)(() => cV("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, b.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: () => !1
- }), [a]), l = mV(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
+ }), [a]), l = hV(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
...r,
sources: u,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
};
- return /* @__PURE__ */ (0, x.jsx)(dV, {
+ return /* @__PURE__ */ (0, x.jsx)(fV, {
"data-follow-related": "",
wireDrag: i.wireDrag,
busy: o.isPending,
@@ -69791,7 +69795,7 @@ function $Fe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
variant: "next",
group: e,
media: t,
- authorSources: aV(e.primary, u),
+ authorSources: oV(e.primary, u),
context: d,
selected: !1,
selectMode: !1,
@@ -69804,8 +69808,8 @@ function $Fe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function eIe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, b.useRef)(null), p = BFe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, b.useState)(g), S = (0, b.useRef)({
+function $Fe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, b.useRef)(null), p = zFe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, b.useState)(g), S = (0, b.useRef)({
item: e,
selected: o
}), C = (0, b.useRef)(i.failed);
@@ -69819,7 +69823,7 @@ function eIe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-framed": d ? "" : void 0,
style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },
children: [
- /* @__PURE__ */ (0, x.jsx)(_V, { onClose: n.close }),
+ /* @__PURE__ */ (0, x.jsx)(vV, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, x.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
@@ -69834,10 +69838,10 @@ function eIe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: zN(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: BN(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, x.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, x.jsx)(pV, {
+ u ? /* @__PURE__ */ (0, x.jsx)(mV, {
items: c,
position: l,
onSelect: r
@@ -69845,11 +69849,11 @@ function eIe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var vV = ({ kind: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+var yV = ({ kind: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function yV({ src: e }) {
+function bV({ src: e }) {
let [t, n] = (0, b.useState)(!1);
return t ? null : /* @__PURE__ */ (0, x.jsx)("img", {
src: e,
@@ -69859,27 +69863,27 @@ function yV({ src: e }) {
onError: () => n(!0)
});
}
-function bV(e) {
+function xV(e) {
return (0, b.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function tIe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = mi(e), a = bV(n);
- return /* @__PURE__ */ (0, x.jsx)(HP, {
+function eIe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = mi(e), a = xV(n);
+ return /* @__PURE__ */ (0, x.jsx)(UP, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${VN(e.primary)} · ${i.length} 个视频`,
+ summary: `${HN(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = PFe(e, n, i ? n.provider_label : ""), o = i ? zN(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, x.jsxs)(UP, {
+ let i = e.duplicates.includes(n), a = NFe(e, n, i ? n.provider_label : ""), o = i ? BN(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, x.jsxs)(WP, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, x.jsx)(yV, { src: n.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(vV, { kind: "video" }), hV(n.duration) ? /* @__PURE__ */ (0, x.jsx)("i", {
+ pic: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, x.jsx)(bV, { src: n.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(yV, { kind: "video" }), gV(n.duration) ? /* @__PURE__ */ (0, x.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Xt(n.duration)
@@ -69897,15 +69901,15 @@ function tIe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, x.jsx)("time", {
dateTime: n.published_at || "",
- children: XN(n)
+ children: ZN(n)
})]
})]
}, n.id);
})
});
}
-function xV({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = bV(r), c = [];
+function SV({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = xV(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -69915,26 +69919,26 @@ function xV({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, x.jsx)(HP, {
+ return /* @__PURE__ */ (0, x.jsx)(UP, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${VN(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, x.jsx)(Cbe, {
+ summary: `${HN(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, x.jsx)(Sbe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, x.jsxs)(UP, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, x.jsxs)(WP, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, x.jsx)(yV, { src: n.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(vV, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, x.jsx)(bV, { src: n.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(yV, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, x.jsx)("b", {
"data-middle-truncate": "",
- children: FFe(n)
+ children: PFe(n)
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -69942,13 +69946,13 @@ function xV({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function nIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function tIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = qN(d, e), p = GN(e, aV(e, t.sources), n), m = p.credited ? "" : e.author && Gt(e.author) !== Gt(p.author) ? e.author : "", h = JN(e, n), g = RFe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = JN(d, e), p = KN(e, oV(e, t.sources), n), m = p.credited ? "" : e.author && Gt(e.author) !== Gt(p.author) ? e.author : "", h = YN(e, n), g = LFe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -69964,7 +69968,7 @@ function nIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: KN(d, e) + z(VN(e)) }
+ dangerouslySetInnerHTML: { __html: qN(d, e) + z(HN(e)) }
}), e.url ? /* @__PURE__ */ (0, x.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -69972,7 +69976,7 @@ function nIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: gV }
+ dangerouslySetInnerHTML: { __html: _V }
}) : null]
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -69980,8 +69984,8 @@ function nIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, x.jsx)("span", { children: XN(e) }),
- hV(e.duration) ? /* @__PURE__ */ (0, x.jsx)("span", { children: Xt(e.duration) }) : null,
+ /* @__PURE__ */ (0, x.jsx)("span", { children: ZN(e) }),
+ gV(e.duration) ? /* @__PURE__ */ (0, x.jsx)("span", { children: Xt(e.duration) }) : null,
f ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -70030,7 +70034,7 @@ function nIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, x.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, x.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, x.jsx)(rIe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, x.jsx)(nIe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, x.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -70053,9 +70057,9 @@ function nIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [NFe(e), /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [MFe(e), /* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: gV }
+ dangerouslySetInnerHTML: { __html: _V }
})]
}, e))
}) : null,
@@ -70155,7 +70159,7 @@ function nIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, x.jsx)(yV, { src: e.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(JFe, { name: "image-off" }), /* @__PURE__ */ (0, x.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, x.jsx)(bV, { src: e.thumb_url }) : /* @__PURE__ */ (0, x.jsx)(qFe, { name: "image-off" }), /* @__PURE__ */ (0, x.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -70169,7 +70173,7 @@ function nIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
- "data-tag-cat": LFe(e, t),
+ "data-tag-cat": IFe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@ -70179,7 +70183,7 @@ function nIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function rIe({ text: e }) {
+function nIe({ text: e }) {
let t = (0, b.useRef)(null), [n, r] = (0, b.useState)(!1), [i, a] = (0, b.useState)(!1);
return (0, b.useLayoutEffect)(() => {
let e = t.current;
@@ -70202,8 +70206,8 @@ function rIe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function iIe(e, t, n) {
- let r = e.id, i = QB(r), [a, o] = (0, b.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, b.useState)(""), l = (e, t) => o((n) => {
+function rIe(e, t, n) {
+ let r = e.id, i = $B(r), [a, o] = (0, b.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, b.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -70222,7 +70226,7 @@ function iIe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && uz(), t.toast(VFe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && uz(), t.toast(BFe(n), { undo: i === "saved" ? void 0 : async () => {
await H(Pn, {
item: r,
to: i
@@ -70232,7 +70236,7 @@ function iIe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = ft({
- mutationFn: () => H(EFe, { item: r }),
+ mutationFn: () => H(TFe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
@@ -70240,7 +70244,7 @@ function iIe(e, t, n) {
onSettled: () => l("save", !1)
}), m = ft({
mutationFn: async ({ index: e, hidden: t }) => {
- await H(DFe, {
+ await H(EFe, {
item: r,
media: e,
hidden: t
@@ -70301,7 +70305,7 @@ function iIe(e, t, n) {
}
//#endregion
//#region src/react/components/identity-cell.tsx
-function SV({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+function CV({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
let o = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z(nn(t.name))}</span>` + ca({
@@ -70344,7 +70348,7 @@ function SV({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: s
});
}
-function CV({ people: e, onOpen: t }) {
+function wV({ people: e, onOpen: t }) {
if (!e.length) return null;
let n = (e) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
@@ -70378,7 +70382,7 @@ function CV({ people: e, onOpen: t }) {
}
//#endregion
//#region src/react/components/folded-title.ts
-function wV(e) {
+function TV(e) {
let t = (0, b.useRef)(null), [n, r] = (0, b.useState)(!1), [i, a] = (0, b.useState)(!1);
return (0, b.useLayoutEffect)(() => {
let e = t.current;
@@ -70396,7 +70400,7 @@ function wV(e) {
}
//#endregion
//#region src/react/components/source-picture.tsx
-function TV({ item: e, image: t, thumbnail: n = !1 }) {
+function EV({ item: e, image: t, thumbnail: n = !1 }) {
let r = t === "cover" && e.has_cover, i = !r && (t !== "cover" || e.source_image), a = dt({
queryKey: [
"jav-image",
@@ -70439,9 +70443,9 @@ function TV({ item: e, image: t, thumbnail: n = !1 }) {
}
//#endregion
//#region src/react/item-detail/catalog-picture.tsx
-function EV({ item: e, image: t, thumbnail: n = !1, source: r = !1 }) {
+function DV({ item: e, image: t, thumbnail: n = !1, source: r = !1 }) {
let [i, a] = (0, b.useState)(!1), [o, s] = (0, b.useState)(0);
- if (r && t > 0 && e.code) return /* @__PURE__ */ (0, x.jsx)(TV, {
+ if (r && t > 0 && e.code) return /* @__PURE__ */ (0, x.jsx)(EV, {
item: {
code: e.code,
has_cover: !1,
@@ -70470,47 +70474,47 @@ function EV({ item: e, image: t, thumbnail: n = !1, source: r = !1 }) {
}
//#endregion
//#region src/react/jav-detail/jav-detail.ts
-var DV = (e) => ["jav-detail", e], OV = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), aIe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), kV = (e, t) => U.ensureQueryData({
- queryKey: DV(e.code),
- queryFn: () => OV(e.code, t),
+var OV = (e) => ["jav-detail", e], kV = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), iIe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), AV = (e, t) => U.ensureQueryData({
+ queryKey: OV(e.code),
+ queryFn: () => kV(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function oIe(e, t) {
+function aIe(e, t) {
if (!e.ok || !e.more) return;
let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));
return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;
}
//#endregion
//#region src/react/item-detail/external-playback.tsx
-var AV = "peach.external-player.v1", jV = [
+var jV = "peach.external-player.v1", MV = [
["m3u", "M3U 播放列表"],
["vlc-ios", "VLC(iPhone / iPad)"],
["iina", "IINA(Mac)"]
];
-function sIe(e, t, n) {
+function oIe(e, t, n) {
return e === "vlc-ios" ? `vlc-x-callback://x-callback-url/stream?url=${encodeURIComponent(t)}` : e === "iina" ? `iina://weblink?url=${encodeURIComponent(t)}` : n;
}
-function cIe({ id: e }) {
+function sIe({ id: e }) {
let [t, n] = (0, b.useState)(() => {
try {
- return jV.find(([e]) => e === localStorage.getItem(AV))?.[0] || "m3u";
+ return MV.find(([e]) => e === localStorage.getItem(jV))?.[0] || "m3u";
} catch {
return "m3u";
}
- }), [r, i] = (0, b.useState)(null), a = Nk();
- return /* @__PURE__ */ (0, x.jsxs)("details", { children: [/* @__PURE__ */ (0, x.jsx)("summary", { children: "外部播放器 / VR" }), /* @__PURE__ */ (0, x.jsxs)(Vk, { children: [
+ }), [r, i] = (0, b.useState)(null), a = Pk();
+ return /* @__PURE__ */ (0, x.jsxs)("details", { children: [/* @__PURE__ */ (0, x.jsx)("summary", { children: "外部播放器 / VR" }), /* @__PURE__ */ (0, x.jsxs)(Hk, { children: [
/* @__PURE__ */ (0, x.jsx)(Oz, {
id: `external-player-${e}`,
label: "此设备的外部播放器",
- options: jV,
+ options: MV,
value: t,
epoch: 0,
onPick: (e) => {
- let t = jV.find(([t]) => t === e)?.[0] || "m3u";
+ let t = MV.find(([t]) => t === e)?.[0] || "m3u";
n(t);
try {
- localStorage.setItem(AV, t);
+ localStorage.setItem(jV, t);
} catch {}
}
}),
@@ -70523,43 +70527,43 @@ function cIe({ id: e }) {
})),
children: "生成播放链接"
}),
- a.error ? /* @__PURE__ */ (0, x.jsx)(Wk, { children: a.error }) : null,
+ a.error ? /* @__PURE__ */ (0, x.jsx)(Gk, { children: a.error }) : null,
r ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsx)("a", {
- href: sIe(t, r.url, r.playlist),
+ href: oIe(t, r.url, r.playlist),
rel: "noreferrer",
- children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${jV.find(([e]) => e === t)?.[1]}`
+ children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${MV.find(([e]) => e === t)?.[1]}`
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "网络播放地址",
value: r.url,
isReadOnly: !0
}),
- /* @__PURE__ */ (0, x.jsx)(Uk, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
+ /* @__PURE__ */ (0, x.jsx)(Wk, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
] }) : null
] })] }, e);
}
//#endregion
//#region src/react/components/overlay-host.ts
-function lIe(e) {
+function cIe(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 uIe(e) {
+function lIe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return lIe(n ?? t.body);
+ return cIe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var dIe = "/api/cover-crop", fIe = (e, t) => H(dIe, {
+var uIe = "/api/cover-crop", dIe = (e, t) => H(uIe, {
code: e,
box: t
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
-function MV({ className: e }) {
+function NV({ className: e }) {
return /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -70572,7 +70576,7 @@ function MV({ className: e }) {
children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-crop" })
});
}
-function pIe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function fIe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, b.useState)(!1), o = (0, b.useRef)(null);
return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)("button", {
ref: o,
@@ -70583,15 +70587,15 @@ function pIe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, x.jsx)(MV, { className: "size-3.75" })
+ children: /* @__PURE__ */ (0, x.jsx)(NV, { className: "size-3.75" })
}), /* @__PURE__ */ (0, x.jsx)(pse, {
- getContainer: () => uIe(o.current),
- children: /* @__PURE__ */ (0, x.jsx)(gN, {
+ getContainer: () => lIe(o.current),
+ children: /* @__PURE__ */ (0, x.jsx)(_N, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, x.jsx)(mIe, {
+ children: /* @__PURE__ */ (0, x.jsx)(pIe, {
code: e,
coverUrl: t,
box: n,
@@ -70601,9 +70605,9 @@ function pIe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function mIe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, b.useState)(null), [s, c] = (0, b.useState)(null), [l, u] = (0, b.useState)(!0), d = XI(), f = ft({
- mutationFn: (t) => fIe(e, t),
+function pIe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, b.useState)(null), [s, c] = (0, b.useState)(null), [l, u] = (0, b.useState)(!0), d = ZI(), f = ft({
+ mutationFn: (t) => dIe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -70623,11 +70627,11 @@ function mIe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, x.jsx)(_N, { children: /* @__PURE__ */ (0, x.jsx)(MV, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, x.jsx)(vN, { children: /* @__PURE__ */ (0, x.jsx)(NV, { className: "size-6" }) }),
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, x.jsx)(qA, {
+ /* @__PURE__ */ (0, x.jsx)(JA, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -70642,8 +70646,8 @@ function mIe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsx)(QI, {
- icon: UO,
+ /* @__PURE__ */ (0, x.jsx)($I, {
+ icon: WO,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -70699,14 +70703,14 @@ function mIe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var NV = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+var PV = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), PV = ({ html: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+}), FV = ({ html: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), FV = (e) => Number(e) > 0 ? Qt(Number(e)) : "大小未知";
-function hIe(e) {
+}), IV = (e) => Number(e) > 0 ? Qt(Number(e)) : "大小未知";
+function mIe(e) {
let { queue: t, actions: n } = e, r = dt({
queryKey: t ? OT(t) : ["item-queue", "none"],
queryFn: ({ signal: n }) => LT(t, e.helpers, n),
@@ -70724,9 +70728,9 @@ function hIe(e) {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, x.jsx)(IV, { onClose: n.close }), /* @__PURE__ */ (0, x.jsx)("div", {
+ children: [/* @__PURE__ */ (0, x.jsx)(LV, { onClose: n.close }), /* @__PURE__ */ (0, x.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, x.jsx)(uP, {
+ children: e ? /* @__PURE__ */ (0, x.jsx)(dP, {
message: Et(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -70736,13 +70740,13 @@ function hIe(e) {
})
});
}
- return /* @__PURE__ */ (0, x.jsx)(gIe, {
+ return /* @__PURE__ */ (0, x.jsx)(hIe, {
...e,
item: ife(o.data, i),
queue: i
}, o.data.id);
}
-var IV = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
+var LV = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -70751,8 +70755,8 @@ var IV = ({ onClose: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function gIe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = MIe(t, r, i.tagLabel), o = (0, b.useRef)(t);
+function hIe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = jIe(t, r, i.tagLabel), o = (0, b.useRef)(t);
(0, b.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, b.useEffect)(() => {
@@ -70767,7 +70771,7 @@ function gIe(e) {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, x.jsx)(_Ie, {
+ children: [/* @__PURE__ */ (0, x.jsx)(gIe, {
item: t,
gate: s,
helpers: i,
@@ -70780,22 +70784,22 @@ function gIe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, x.jsx)(SIe, {
+ }), /* @__PURE__ */ (0, x.jsx)(xIe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, x.jsx)(fV, {
+ }), /* @__PURE__ */ (0, x.jsx)(pV, {
editionCards: n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, x.jsx)(yIe, {
+ queue: n ? /* @__PURE__ */ (0, x.jsx)(vIe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, x.jsx)(jIe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, x.jsx)(AIe, {
...e,
item: n ? {
...t,
@@ -70804,12 +70808,12 @@ function gIe(e) {
}) : null
})] });
}
-function _Ie({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function gIe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, b.useState)(t ? "" : "auto"), c = (0, b.useRef)(null), [l, u] = (0, b.useState)(-2), d = (0, b.useRef)(!1), f = dt({
- queryKey: DV(e.code || ""),
+ queryKey: OV(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, OV(e.code, t, n);
+ return d.current = !1, kV(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -70854,26 +70858,26 @@ function _Ie({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-item-gallery": h ? "" : void 0,
"data-item-picture": l === -2 ? void 0 : "",
children: [
- /* @__PURE__ */ (0, x.jsx)(IV, { onClose: r.close }),
+ /* @__PURE__ */ (0, x.jsx)(LV, { onClose: r.close }),
h ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
/* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, x.jsx)(NV, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, x.jsx)(PV, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}),
- l === -2 ? null : /* @__PURE__ */ (0, x.jsx)(EV, {
+ l === -2 ? null : /* @__PURE__ */ (0, x.jsx)(DV, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
}, l),
- /* @__PURE__ */ (0, x.jsx)(pV, {
+ /* @__PURE__ */ (0, x.jsx)(mV, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, x.jsx)(EV, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, x.jsx)(DV, {
item: e,
image: t.index === -2 ? m[0].index : t.index,
source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,
@@ -70898,7 +70902,7 @@ function _Ie({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "重试样图"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, x.jsx)(vIe, {
+ t === "offline" ? /* @__PURE__ */ (0, x.jsx)(_Ie, {
item: e,
badge: y,
helpers: n,
@@ -70908,7 +70912,7 @@ function _Ie({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, x.jsx)(PV, { html: y }),
+ /* @__PURE__ */ (0, x.jsx)(FV, { html: y }),
/* @__PURE__ */ (0, x.jsx)("b", { children: "在线资产" }),
/* @__PURE__ */ (0, x.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, x.jsx)("button", {
@@ -70923,12 +70927,12 @@ function _Ie({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, x.jsx)(PV, { html: y }), /* @__PURE__ */ (0, x.jsxs)("span", { children: ["点此开始拉流 · ", FV(e.size)] })]
+ children: [/* @__PURE__ */ (0, x.jsx)(FV, { html: y }), /* @__PURE__ */ (0, x.jsxs)("span", { children: ["点此开始拉流 · ", IV(e.size)] })]
}) : null
]
});
}
-function vIe({ item: e, badge: t, helpers: n, actions: r }) {
+function _Ie({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, b.useState)(!1), [o, s] = (0, b.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -70939,7 +70943,7 @@ function vIe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, x.jsx)(PV, { html: t }),
+ /* @__PURE__ */ (0, x.jsx)(FV, { html: t }),
/* @__PURE__ */ (0, x.jsx)("b", { children: "脱盘模式" }),
/* @__PURE__ */ (0, x.jsx)("span", { children: n.offlineReason(e.location || "") }),
/* @__PURE__ */ (0, x.jsx)("button", {
@@ -70953,8 +70957,8 @@ function vIe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function yIe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = pfe(e), a = (0, b.useRef)(null), o = xIe(e, t, r), s = (0, b.useRef)(o);
+function vIe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = pfe(e), a = (0, b.useRef)(null), o = bIe(e, t, r), s = (0, b.useRef)(o);
s.current = o;
let c = (0, b.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -70962,7 +70966,7 @@ function yIe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = bIe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, x.jsx)("button", {
+ }, [n, e.kind]), l = yIe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -70981,7 +70985,7 @@ function yIe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, x.jsx)(HP, {
+ return /* @__PURE__ */ (0, x.jsx)(UP, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -70994,7 +70998,7 @@ function yIe({ queue: e, itemId: t, helpers: n, actions: r }) {
"data-queue-edition": "",
children: i.edition_label
}) : null, s = e.kind === "playlist" && zT(i);
- return /* @__PURE__ */ (0, x.jsxs)(UP, {
+ return /* @__PURE__ */ (0, x.jsxs)(WP, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -71004,25 +71008,25 @@ function yIe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(PV, { html: ya(i, n.javImage()) }), /* @__PURE__ */ (0, x.jsx)("i", {
+ pic: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(FV, { html: ya(i, n.javImage()) }), /* @__PURE__ */ (0, x.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Xt(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, x.jsx)(PV, { html: Sa(i) }),
+ lead: /* @__PURE__ */ (0, x.jsx)(FV, { html: Sa(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, x.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "x" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, x.jsxs)("span", {
@@ -71039,7 +71043,7 @@ function yIe({ queue: e, itemId: t, helpers: n, actions: r }) {
})
});
}
-function bIe(e, t) {
+function yIe(e, t) {
let n = ft({ mutationFn: (t) => H(kT, {
action: "create",
name: t,
@@ -71053,7 +71057,7 @@ function bIe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function xIe(e, t, n) {
+function bIe(e, t, n) {
let r = OT({
kind: "playlist",
playlistId: e.playlistId
@@ -71116,7 +71120,7 @@ function xIe(e, t, n) {
}
};
}
-function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function xIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, b.useState)(!1);
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-stage-side": "",
@@ -71124,7 +71128,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(CIe, {
+ /* @__PURE__ */ (0, x.jsx)(SIe, {
item: e,
queue: t,
helpers: r,
@@ -71136,7 +71140,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, x.jsx)(TIe, {
+ /* @__PURE__ */ (0, x.jsx)(wIe, {
item: e,
write: n
}),
@@ -71147,7 +71151,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
e.width && e.height ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, x.jsx)(NV, { name: "monitor" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, x.jsx)(PV, { name: "monitor" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -71155,11 +71159,11 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, x.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, x.jsx)(NV, { name: "hard-drive" }), /* @__PURE__ */ (0, x.jsx)("span", { children: FV(e.size) })]
+ children: [/* @__PURE__ */ (0, x.jsx)(PV, { name: "hard-drive" }), /* @__PURE__ */ (0, x.jsx)("span", { children: IV(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, x.jsx)(NV, { name: "calendar" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, x.jsx)(PV, { name: "calendar" }), /* @__PURE__ */ (0, x.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
@@ -71167,23 +71171,23 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, x.jsx)(NV, { name: "globe" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, x.jsx)(PV, { name: "globe" }), /* @__PURE__ */ (0, x.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsx)(EIe, {
+ /* @__PURE__ */ (0, x.jsx)(TIe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, x.jsx)(DIe, {
+ /* @__PURE__ */ (0, x.jsx)(EIe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, x.jsx)(kIe, { item: e }),
- e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, x.jsx)(cIe, { id: e.id }, e.id) : null,
+ /* @__PURE__ */ (0, x.jsx)(OIe, { item: e }),
+ e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, x.jsx)(sIe, { id: e.id }, e.id) : null,
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -71197,7 +71201,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -71209,7 +71213,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -71220,7 +71224,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -71231,7 +71235,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "eye" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "eye" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -71242,7 +71246,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -71251,7 +71255,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "playlist" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "playlist" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -71262,7 +71266,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "sparkles" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
@@ -71273,11 +71277,11 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "trash" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(AIe, {
+ /* @__PURE__ */ (0, x.jsx)(kIe, {
item: e,
open: s,
write: n
@@ -71288,7 +71292,7 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, x.jsx)(NV, { name: "sperm" }),
+ /* @__PURE__ */ (0, x.jsx)(PV, { name: "sperm" }),
/* @__PURE__ */ (0, x.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, x.jsx)("b", {
className: "mono",
@@ -71301,8 +71305,8 @@ function SIe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function CIe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = wV(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + mfe(e, t);
+function SIe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = TV(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + mfe(e, t);
return /* @__PURE__ */ (0, x.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -71329,11 +71333,11 @@ function CIe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: o ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: o ? "chevron-up" : "chevron-down" })
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, x.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, x.jsx)(pIe, {
+ children: /* @__PURE__ */ (0, x.jsx)(fIe, {
code: e.cover_key || e.code || "",
coverUrl: ia(e),
box: e.poster_box || null,
@@ -71345,7 +71349,7 @@ function CIe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, x.jsx)(wIe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, x.jsx)(CIe, {
id: e.id,
actions: r,
onStatus: i
@@ -71355,7 +71359,7 @@ function CIe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function wIe({ id: e, actions: t, onStatus: n }) {
+function CIe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, b.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -71385,10 +71389,10 @@ function wIe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "folder-sync" })
})] });
}
-function TIe({ item: e, write: t }) {
+function wIe({ item: e, write: t }) {
let n = WT(e.rating);
return /* @__PURE__ */ (0, x.jsxs)("div", {
id: "detailRating",
@@ -71412,7 +71416,7 @@ function TIe({ item: e, write: t }) {
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "star" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "star" })
}, e))
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-rating-value": "",
@@ -71421,10 +71425,10 @@ function TIe({ item: e, write: t }) {
})]
});
}
-function EIe({ item: e, actions: t }) {
+function TIe({ item: e, actions: t }) {
let n = (0, b.useMemo)(() => afe(e), [e]), [r, i] = (0, b.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
- return /* @__PURE__ */ (0, x.jsx)(SV, {
+ return /* @__PURE__ */ (0, x.jsx)(CV, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -71456,7 +71460,7 @@ function EIe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, x.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "user-round" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "user-round" })
}), /* @__PURE__ */ (0, x.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -71468,7 +71472,7 @@ function EIe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: BO,
+ trailingIcon: VO,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -71487,13 +71491,13 @@ function EIe({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, x.jsx)(CV, {
+ }) : null, /* @__PURE__ */ (0, x.jsx)(wV, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function DIe({ item: e, write: t, helpers: n, actions: r }) {
+function EIe({ item: e, write: t, helpers: n, actions: r }) {
let i = cfe(e, n);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-stage-tags": "",
@@ -71514,16 +71518,16 @@ function DIe({ item: e, write: t, helpers: n, actions: r }) {
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "x" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, x.jsx)(OIe, {
+ }, e.k)), /* @__PURE__ */ (0, x.jsx)(DIe, {
item: e,
write: t,
helpers: n
})]
});
}
-function OIe({ item: e, write: t, helpers: n }) {
+function DIe({ item: e, write: t, helpers: n }) {
let r = (0, b.useRef)(null), i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(!1), [s, c] = (0, b.useState)(!1), [l, u] = (0, b.useState)(""), [d, f] = (0, b.useState)(""), [p, m] = (0, b.useState)(-1), h = (0, b.useCallback)(() => {
i.current && qa(i.current), c(!1);
}, []);
@@ -71573,7 +71577,7 @@ function OIe({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, x.jsx)(NV, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, x.jsx)(PV, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, x.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -71596,7 +71600,7 @@ function OIe({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (Ka(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, x.jsx)(NV, { name: "plus" })
+ children: /* @__PURE__ */ (0, x.jsx)(PV, { name: "plus" })
}), /* @__PURE__ */ (0, x.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -71606,7 +71610,7 @@ function OIe({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, x.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, x.jsx)(NV, { name: "search" }), /* @__PURE__ */ (0, x.jsx)("input", {
+ children: [/* @__PURE__ */ (0, x.jsx)(PV, { name: "search" }), /* @__PURE__ */ (0, x.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -71647,7 +71651,7 @@ function OIe({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, x.jsx)(NV, { name: "plus" }), /* @__PURE__ */ (0, x.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(PV, { name: "plus" }), /* @__PURE__ */ (0, x.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -71662,7 +71666,7 @@ function OIe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function kIe({ item: e }) {
+function OIe({ item: e }) {
let t = vfe(e);
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-item-trace": "",
@@ -71697,7 +71701,7 @@ function kIe({ item: e }) {
})]
});
}
-function AIe({ item: e, open: t, write: n }) {
+function kIe({ item: e, open: t, write: n }) {
let [r, i] = (0, b.useState)(e.like_reason || ""), a = (0, b.useRef)(null);
(0, b.useEffect)(() => {
t && a.current?.focus();
@@ -71736,12 +71740,12 @@ function AIe({ item: e, open: t, write: n }) {
})]
});
}
-function jIe(e) {
+function AIe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = dt({
queryKey: tfe(t.id, n),
queryFn: async ({ signal: e }) => (await V(rfe(t.id, n), e)).items || []
}), [o] = (0, b.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, x.jsx)(dV, {
+ return /* @__PURE__ */ (0, x.jsx)(fV, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -71749,7 +71753,7 @@ function jIe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, x.jsx)(qP, {
+ children: a.data ? /* @__PURE__ */ (0, x.jsx)(JP, {
mode: "items",
variant: "next",
items: a.data,
@@ -71762,10 +71766,10 @@ function jIe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, x.jsx)(PV, { html: o })
+ }) : /* @__PURE__ */ (0, x.jsx)(FV, { html: o })
});
}
-function MIe(e, t, n) {
+function jIe(e, t, n) {
let r = e.id, i = DT(r), [a, o] = (0, b.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, b.useState)(""), [l, u] = (0, b.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -71907,10 +71911,10 @@ function MIe(e, t, n) {
}
//#endregion
//#region src/react/jav-detail/review-cache.ts
-var LV = "peach.jav-reviews.v1";
-function RV() {
+var RV = "peach.jav-reviews.v1";
+function zV() {
try {
- let e = localStorage.getItem(LV) || "[]";
+ let e = localStorage.getItem(RV) || "[]";
if (e.length > 2e6) return [];
let t = JSON.parse(e);
return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];
@@ -71918,18 +71922,18 @@ function RV() {
return [];
}
}
-function NIe(e, t) {
+function MIe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
saved: Number.isFinite(n) ? n : Date.now(),
result: t
- }, ...RV().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(LV, i);
+ }, ...zV().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(RV, i);
} catch {}
}
-function PIe(e, t) {
- let n = RV(), r = [], i = Infinity;
+function NIe(e, t) {
+ let n = zV(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
if (!o || !fz(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
@@ -71940,17 +71944,17 @@ function PIe(e, t) {
saved: i
} : void 0;
}
-function FIe(e, t, n) {
+function PIe(e, t, n) {
return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && fz(Date.parse(e.checked_at || "") || t, n));
}
//#endregion
//#region src/react/jav-detail/jav-detail-page.tsx
-function IIe(e) {
+function FIe(e) {
let t = (0, b.useRef)(!1), n = dt({
- queryKey: DV(e.code),
+ queryKey: OV(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, OV(e.code, n, r);
+ return t.current = !1, kV(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -71960,21 +71964,21 @@ function IIe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, x.jsx)(LIe, {
+ children: n.data ? /* @__PURE__ */ (0, x.jsx)(IIe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, x.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, x.jsx)(zV, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, x.jsx)(uP, {
+ children: [/* @__PURE__ */ (0, x.jsx)(BV, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, x.jsx)(dP, {
message: B(n.error),
onRetry: r
}) : null]
})
});
}
-var zV = ({ close: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
+var BV = ({ close: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -71983,7 +71987,7 @@ var zV = ({ close: e }) => /* @__PURE__ */ (0, x.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function LIe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function IIe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, b.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, b.useEffect)(() => {
@@ -72003,9 +72007,9 @@ function LIe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, b.useState)(null), [d, f] = (0, b.useState)(t.want_id), p = Nk(), m = () => {
+ ], [l, u] = (0, b.useState)(null), [d, f] = (0, b.useState)(t.want_id), p = Pk(), m = () => {
p.run("want", async (e) => d ? (await lz([d], e), null) : (await cz({ code: t.code }, e)).want.id, (t) => {
- f(t), U.setQueryData(DV(e), (e) => e && {
+ f(t), U.setQueryData(OV(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
@@ -72018,24 +72022,24 @@ function LIe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-art": "",
"data-jav-playing": o === -2 ? "" : void 0,
children: [
- /* @__PURE__ */ (0, x.jsx)(zV, { close: n.close }),
+ /* @__PURE__ */ (0, x.jsx)(BV, { close: n.close }),
t.preview_video_url ? /* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, x.jsx)(BV, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, x.jsx)(VV, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, x.jsx)(BIe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, x.jsx)(TV, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, x.jsx)(zIe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, x.jsx)(EV, {
item: t,
image: o === -1 ? "cover" : String(o)
}, o),
- /* @__PURE__ */ (0, x.jsx)(pV, {
+ /* @__PURE__ */ (0, x.jsx)(mV, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, x.jsx)(TV, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, x.jsx)(EV, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -72049,32 +72053,32 @@ function LIe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, x.jsx)(RIe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, x.jsx)(HV, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, x.jsx)(LIe, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, x.jsx)(UV, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
- children: [/* @__PURE__ */ (0, x.jsx)(VV, {
+ children: [/* @__PURE__ */ (0, x.jsx)(HV, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, x.jsx)(VV, {
+ }), /* @__PURE__ */ (0, x.jsx)(HV, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, x.jsx)(zIe, {
+ /* @__PURE__ */ (0, x.jsx)(RIe, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, x.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, x.jsx)(VV, {
+ children: [/* @__PURE__ */ (0, x.jsx)(HV, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, x.jsx)(VV, {
+ }), /* @__PURE__ */ (0, x.jsx)(HV, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -72138,7 +72142,7 @@ function LIe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
}),
t.source_url ? /* @__PURE__ */ (0, x.jsx)(G, {
variant: "secondary",
- trailingIcon: qO,
+ trailingIcon: JO,
onClick: () => window.open(t.source_url, "_blank", "noopener,noreferrer"),
children: "作品来源"
}) : null
@@ -72148,12 +72152,12 @@ function LIe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, x.jsx)(VIe, {
+ /* @__PURE__ */ (0, x.jsx)(BIe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, x.jsx)(HIe, {
+ /* @__PURE__ */ (0, x.jsx)(VIe, {
item: t,
actions: n,
readOnly: r
@@ -72168,17 +72172,17 @@ function LIe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
] });
}
-var BV = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
+var VV = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: R(e) }
-}), VV = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, x.jsxs)("span", {
+}), HV = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, x.jsx)(BV, { name: e }), /* @__PURE__ */ (0, x.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, x.jsx)(VV, { name: e }), /* @__PURE__ */ (0, x.jsx)("span", { children: n })]
}) : null;
-function RIe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = wV(e.title), a = e.title === e.code ? "" : e.title;
+function LIe({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = TV(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, x.jsx)("h1", {
@@ -72204,12 +72208,12 @@ function RIe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, x.jsx)(BV, { name: n ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, x.jsx)(VV, { name: n ? "chevron-up" : "chevron-down" })
})
})]
});
}
-function HV({ score: e, review: t = !1 }) {
+function UV({ score: e, review: t = !1 }) {
let n = Math.max(0, Math.min(5, e));
return /* @__PURE__ */ (0, x.jsxs)("div", {
"data-item-rating": "",
@@ -72233,10 +72237,10 @@ function HV({ score: e, review: t = !1 }) {
"data-on": String(t === 1),
children: /* @__PURE__ */ (0, x.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, x.jsx)(BV, { name: "star" }), /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)(VV, { name: "star" }), /* @__PURE__ */ (0, x.jsx)("span", {
"data-rating-fill": "",
style: { width: `${t * 100}%` },
- children: /* @__PURE__ */ (0, x.jsx)(BV, { name: "star" })
+ children: /* @__PURE__ */ (0, x.jsx)(VV, { name: "star" })
})]
})
}, e);
@@ -72247,7 +72251,7 @@ function HV({ score: e, review: t = !1 }) {
})]
});
}
-function zIe({ item: e, navigate: t }) {
+function RIe({ item: e, navigate: t }) {
let n = (e, n) => t(It(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, x.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -72256,7 +72260,7 @@ function zIe({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, x.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, x.jsx)(SV, {
+ children: i.map((r) => /* @__PURE__ */ (0, x.jsx)(CV, {
kind: t,
person: {
...r,
@@ -72280,7 +72284,7 @@ function zIe({ item: e, navigate: t }) {
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, x.jsx)(CV, {
+ }), /* @__PURE__ */ (0, x.jsx)(wV, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -72289,7 +72293,7 @@ function zIe({ item: e, navigate: t }) {
})]
});
}
-function BIe({ src: e }) {
+function zIe({ src: e }) {
let t = (0, b.useRef)(null), [n, r] = (0, b.useState)(!1), [i, a] = (0, b.useState)(0);
return (0, b.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
@@ -72313,8 +72317,8 @@ function BIe({ src: e }) {
}) : null
});
}
-function VIe({ code: e, count: t, released: n }) {
- let r = C(), [i, a] = (0, b.useState)(!1), o = (0, b.useMemo)(() => PIe(e, n), [e, n]), s = (0, b.useRef)(!1), c = pt({
+function BIe({ code: e, count: t, released: n }) {
+ let r = C(), [i, a] = (0, b.useState)(!1), o = (0, b.useMemo)(() => NIe(e, n), [e, n]), s = (0, b.useRef)(!1), c = pt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -72323,12 +72327,12 @@ function VIe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => FIe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => PIe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await aIe(e, n, t, s.current);
- if (NIe(e, i), !i.ok || i.cache_stale) {
+ let i = await iIe(e, n, t, s.current);
+ if (MIe(e, i), !i.ok || i.cache_stale) {
let t = r.getQueryData(["jav-reviews", e])?.pages.find((e) => e.page === n);
if (t?.ok) return {
...t,
@@ -72338,7 +72342,7 @@ function VIe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: oIe
+ getNextPageParam: aIe
});
(0, b.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -72346,10 +72350,10 @@ function VIe({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? B(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, x.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, x.jsxs)(Yk, {
+ children: /* @__PURE__ */ (0, x.jsxs)(Xk, {
trailing: !0,
summary: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
- /* @__PURE__ */ (0, x.jsx)(Jme, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, x.jsx)(qme, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -72366,7 +72370,7 @@ function VIe({ code: e, count: t, released: n }) {
"data-jav-review-meta": "",
children: [
/* @__PURE__ */ (0, x.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, x.jsx)(HV, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, x.jsx)(UV, {
score: Number(e.score),
review: !0
}) : null,
@@ -72421,17 +72425,17 @@ function VIe({ code: e, count: t, released: n }) {
})
});
}
-function HIe({ item: e, actions: t, readOnly: n }) {
+function VIe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, b.useState)(!1), a = dt({
- queryKey: dA,
+ queryKey: fA,
enabled: r,
- queryFn: ({ signal: e }) => V(`${uA}?limit=50`, e)
+ queryFn: ({ signal: e }) => V(`${dA}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, b.useState)(!1);
return /* @__PURE__ */ (0, x.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, x.jsx)(Yk, {
+ children: /* @__PURE__ */ (0, x.jsx)(Xk, {
trailing: !0,
- summary: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(BV, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(VV, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
@@ -72453,31 +72457,31 @@ function HIe({ item: e, actions: t, readOnly: n }) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var UV = null, WV = null, GV = null, KV = null, qV = null, JV = !1, YV = 0, XV = null, ZV = () => !1, QV = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function UIe(e, t) {
- UV = e, ZV = () => t.isOpen(), XV = () => t.requestClose(), que({
+var WV = null, GV = null, KV = null, qV = null, JV = null, YV = !1, XV = 0, ZV = null, QV = () => !1, $V = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function HIe(e, t) {
+ WV = e, QV = () => t.isOpen(), ZV = () => t.requestClose(), que({
...e.player,
stage: () => document.getElementById("stage")
}), Jue({
- inMiniplayer: (e) => WV?.player === e,
- kind: (e) => WV?.player === e ? WV.kind : GV?.kind ?? KV?.kind ?? "item",
- expand: () => vH(),
- toMiniplayer: () => yH()
- }), $V || ($V = !0, addEventListener("pagehide", () => oT()));
-}
-var $V = !1;
-function eH() {
- if (!UV) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return UV;
-}
-function tH(e) {
- KV = e;
-}
-var WIe = () => KV;
-function nH(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = QV(n, r.id, i?.index ?? null);
- if (WV && WV.key === a) return KIe(e, WV);
- WV && _H();
+ inMiniplayer: (e) => GV?.player === e,
+ kind: (e) => GV?.player === e ? GV.kind : KV?.kind ?? qV?.kind ?? "item",
+ expand: () => yH(),
+ toMiniplayer: () => bH()
+ }), eH || (eH = !0, addEventListener("pagehide", () => oT()));
+}
+var eH = !1;
+function tH() {
+ if (!WV) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return WV;
+}
+function nH(e) {
+ qV = e;
+}
+var UIe = () => qV;
+function rH(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = $V(n, r.id, i?.index ?? null);
+ if (GV && GV.key === a) return GIe(e, GV);
+ GV && vH();
let o = {
player: null,
kind: n,
@@ -72485,7 +72489,7 @@ function nH(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- GV = o;
+ KV = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
let c = yT(s, {
@@ -72495,42 +72499,42 @@ function nH(e, t) {
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- GV === o && (o.player = e);
+ KV === o && (o.player = e);
},
- handedOff: (e) => WV?.player === e
+ handedOff: (e) => GV?.player === e
});
return () => {
- let e = !!o.player && WV?.player === o.player;
- GV === o && (GV = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), oT());
+ let e = !!o.player && GV?.player === o.player;
+ KV === o && (KV = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), oT());
};
}
-async function GIe(e, t, n) {
+async function WIe(e, t, n) {
let r = await Dt(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
if (r.location === "online") throw Error("请打开详情播放在线作品");
if (r.cost === "metered") throw Error("请打开详情确认计费来源");
- let i = await eH().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.location || "")] === !1) throw Error(eH().player.offlineReason(String(r.location || "")));
+ let i = await tH().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.location || "")] === !1) throw Error(tH().player.offlineReason(String(r.location || "")));
let a = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- tH(a);
- let o = nH(t, {
+ nH(a);
+ let o = rH(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && KV === a && iH(!0), o(), KV === a && tH(null));
+ s || (s = !0, e && qV === a && aH(!0), o(), qV === a && nH(null));
};
}
-function KIe(e, t) {
+function GIe(e, t) {
let { player: n } = t;
- hH(t), WV = null, gH(), n.el().classList.remove("vjs-peach-mini"), _T(e), e.append(n.el()), Rw(n);
+ gH(t), GV = null, _H(), n.el().classList.remove("vjs-peach-mini"), _T(e), e.append(n.el()), Rw(n);
let r = {
player: n,
kind: t.kind,
@@ -72538,23 +72542,23 @@ function KIe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- GV = r;
+ KV = r;
let i = vT(n, e);
return zw(n), () => {
- GV === r && (GV = null), i(), WV?.player !== n && (Lw() === n && Rw(null), Qw(n), oT());
+ KV === r && (KV = null), i(), GV?.player !== n && (Lw() === n && Rw(null), Qw(n), oT());
};
}
-var rH = () => {
- let e = GV?.player;
+var iH = () => {
+ let e = KV?.player;
return e && !e.isDisposed() ? e : null;
};
-function iH(e) {
- let t = JV;
- JV = !1, WV?.pending && _H();
- let n = GV, r = n?.player, i = KV;
- if (!n || !r || r.isDisposed() || !i || !qV) return;
- let a = eH().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && XIe({
+function aH(e) {
+ let t = YV;
+ YV = !1, GV?.pending && vH();
+ let n = KV, r = n?.player, i = qV;
+ if (!n || !r || r.isDisposed() || !i || !JV) return;
+ let a = tH().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && YIe({
player: r,
kind: n.kind,
item: n.item,
@@ -72562,46 +72566,46 @@ function iH(e) {
key: n.key
}, i);
}
-function aH(e, t) {
- JV = !1, WV && (WV.kind === e && WV.item.id === t ? (WV.pending = !0, gH()) : _H());
+function oH(e, t) {
+ YV = !1, GV && (GV.kind === e && GV.item.id === t ? (GV.pending = !0, _H()) : vH());
}
-function oH(e) {
- qV = e, qV && pH();
+function sH(e) {
+ JV = e, JV && mH();
}
-var sH = () => !!WV && !WV.pending && !WV.player.isDisposed();
-function qIe() {
- return sH() ? qV?.frame.querySelector("video") ?? null : null;
+var cH = () => !!GV && !GV.pending && !GV.player.isDisposed();
+function KIe() {
+ return cH() ? JV?.frame.querySelector("video") ?? null : null;
}
-function JIe() {
- return ZV() ? document.getElementById("stage")?.querySelector("video") ?? null : rH()?.el().querySelector("video") ?? qIe();
+function qIe() {
+ return QV() ? document.getElementById("stage")?.querySelector("video") ?? null : iH()?.el().querySelector("video") ?? KIe();
}
-function cH(e) {
- qV && (qV.title.textContent = e.title || "", qV.sub.textContent = e.sub || "", qV.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function lH(e) {
+ JV && (JV.title.textContent = e.title || "", JV.sub.textContent = e.sub || "", JV.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function lH(e = WV?.item) {
- if (!qV) return;
- let t = qV.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- qV.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function uH(e = GV?.item) {
+ if (!JV) return;
+ let t = JV.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ JV.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function uH() {
- let e = WV?.player;
- if (!e || e.isDisposed() || !qV) return;
+function dH() {
+ let e = GV?.player;
+ if (!e || e.isDisposed() || !JV) return;
let t = e.paused();
- qV.play.setAttribute("aria-label", t ? "播放" : "暂停"), qV.play.querySelector("[data-icon-swap]") || (qV.play.innerHTML = uo("player-pause", "player-play", t ? "b" : "a")), fo(qV.play, t ? "b" : "a");
+ JV.play.setAttribute("aria-label", t ? "播放" : "暂停"), JV.play.querySelector("[data-icon-swap]") || (JV.play.innerHTML = uo("player-pause", "player-play", t ? "b" : "a")), fo(JV.play, t ? "b" : "a");
}
-function dH() {
- let e = WV?.player;
- if (!e || e.isDisposed() || !qV) return;
- let t = Yt(WV?.item.duration) || Yt(e.duration());
- qV.time.textContent = `${Zt(e.currentTime())} / ${t ? Zt(t) : "0:00"}`;
-}
-var fH = () => Math.max(1, Number(eH().player.settings().seekSeconds) || 10);
-function pH() {
- if (!qV || !UV) return;
- let e = fH();
- for (let [t, n] of [[qV.back, `后退 ${e} 秒`], [qV.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function mH(e) {
+function fH() {
+ let e = GV?.player;
+ if (!e || e.isDisposed() || !JV) return;
+ let t = Yt(GV?.item.duration) || Yt(e.duration());
+ JV.time.textContent = `${Zt(e.currentTime())} / ${t ? Zt(t) : "0:00"}`;
+}
+var pH = () => Math.max(1, Number(tH().player.settings().seekSeconds) || 10);
+function mH() {
+ if (!JV || !WV) return;
+ let e = pH();
+ for (let [t, n] of [[JV.back, `后退 ${e} 秒`], [JV.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function hH(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -72613,17 +72617,17 @@ function mH(e) {
"play",
"pause",
"ended"
- ], uH), t([
+ ], dH), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], dH), t("loadedmetadata", () => lH()), uH(), dH(), lH(), pH();
+ ], fH), t("loadedmetadata", () => uH()), dH(), fH(), uH(), mH();
}
-function hH(e) {
+function gH(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function YIe() {
- let e = qV?.root;
+function JIe() {
+ let e = JV?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -72631,8 +72635,8 @@ function YIe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function gH() {
- let e = qV?.root;
+function _H() {
+ let e = JV?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -72643,73 +72647,73 @@ function gH() {
e.style.transform = "";
}
}
-function XIe(e, t) {
- if (!qV) return;
+function YIe(e, t) {
+ if (!JV) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- WV = n, YV++, e.player.el().classList.add("vjs-peach-mini"), qV.frame.prepend(e.player.el()), cH(t), mH(n), YIe(), zw(e.player);
-}
-function _H() {
- let e = WV;
- e && hH(e), WV = null, YV++;
- let t = e?.player ?? null;
- t && Lw() === t && Rw(null), Qw(t), t && oT(), qV?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), Iw(), gH();
+ GV = n, XV++, e.player.el().classList.add("vjs-peach-mini"), JV.frame.prepend(e.player.el()), lH(t), hH(n), JIe(), zw(e.player);
}
function vH() {
- if (!sH() || !WV) return;
- let { kind: e, item: t, mediaIndex: n } = WV;
- eH().expand(e, t.id, n);
+ let e = GV;
+ e && gH(e), GV = null, XV++;
+ let t = e?.player ?? null;
+ t && Lw() === t && Rw(null), Qw(t), t && oT(), JV?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), Iw(), _H();
}
function yH() {
- sH() && !ZV() ? vH() : ZV() && rH() && XV && (JV = !0, XV());
+ if (!cH() || !GV) return;
+ let { kind: e, item: t, mediaIndex: n } = GV;
+ tH().expand(e, t.id, n);
+}
+function bH() {
+ cH() && !QV() ? yH() : QV() && iH() && ZV && (YV = !0, ZV());
}
-function ZIe() {
- let e = WV?.player;
+function XIe() {
+ let e = GV?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function bH(e) {
- let t = WV?.player;
+function xH(e) {
+ let t = GV?.player;
if (!t || t.isDisposed()) return;
- let n = Yt(t.duration()) || Yt(WV?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + fH() * e);
+ let n = Yt(t.duration()) || Yt(GV?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + pH() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function xH(e) {
- return !(!sH() || !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 || eH().sourceOffline(String(e.location ?? "")));
-}
-async function QIe(e) {
- if (!sH() || !WV || !qV) return;
- let t = ++YV, n = await Dt(`/api/item?id=${e}`).catch(() => null);
- if (t !== YV || !sH() || !WV || !qV || !n || n.error) return;
- if (!xH(n)) {
- eH().openItem(e);
+function SH(e) {
+ return !(!cH() || !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 || tH().sourceOffline(String(e.location ?? "")));
+}
+async function ZIe(e) {
+ if (!cH() || !GV || !JV) return;
+ let t = ++XV, n = await Dt(`/api/item?id=${e}`).catch(() => null);
+ if (t !== XV || !cH() || !GV || !JV || !n || n.error) return;
+ if (!SH(n)) {
+ tH().openItem(e);
return;
}
- let r = WV;
- hH(r), Lw() === r.player && Rw(null), Qw(r.player), oT(), qV.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = GV;
+ gH(r), Lw() === r.player && Rw(null), Qw(r.player), oT(), JV.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", qV.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", JV.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- cH(a), yT(i, {
+ lH(a), yT(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== YV) {
+ if (t !== XV) {
r && Lw() === r && Rw(null), Qw(r);
return;
}
if (!r) {
- _H(), eH().openItem(e);
+ vH(), tH().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -72718,26 +72722,26 @@ async function QIe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: QV("item", n.id, null),
+ key: $V("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- WV = i, mH(i);
+ GV = i, hH(i);
}
- }), lH(n);
+ }), uH(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var SH = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
+var CH = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
-}), $Ie = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, CH = (e) => (t) => {
+}), QIe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, wH = (e) => (t) => {
t.stopPropagation(), e();
-}, eLe = (0, b.memo)(function() {
+}, $Ie = (0, b.memo)(function() {
let e = (0, b.useRef)(null), t = (0, b.useRef)(null), n = (0, b.useRef)(null), r = (0, b.useRef)(null), i = (0, b.useRef)(null), a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)(null), c = (0, b.useRef)(null), l = (0, b.useRef)(null);
- return (0, b.useLayoutEffect)(() => (oH({
+ return (0, b.useLayoutEffect)(() => (sH({
root: e.current,
frame: n.current,
play: r.current,
@@ -72747,7 +72751,7 @@ var SH = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => oH(null)), []), (0, b.useEffect)(() => nLe(e.current, t.current), []), /* @__PURE__ */ (0, x.jsx)("aside", {
+ }), () => sH(null)), []), (0, b.useEffect)(() => tLe(e.current, t.current), []), /* @__PURE__ */ (0, x.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -72771,24 +72775,24 @@ var SH = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: CH(vH),
- children: /* @__PURE__ */ (0, x.jsx)(SH, { name: "maximize-2" })
+ onClick: wH(yH),
+ children: /* @__PURE__ */ (0, x.jsx)(CH, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: CH(_H),
- children: /* @__PURE__ */ (0, x.jsx)(SH, { name: "x" })
+ onClick: wH(vH),
+ children: /* @__PURE__ */ (0, x.jsx)(CH, { name: "x" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: CH(() => bH(-1)),
- children: /* @__PURE__ */ (0, x.jsx)(SH, { name: "rotate-ccw" })
+ onClick: wH(() => xH(-1)),
+ children: /* @__PURE__ */ (0, x.jsx)(CH, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, x.jsx)("button", {
ref: r,
@@ -72797,16 +72801,16 @@ var SH = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: CH(ZIe),
- dangerouslySetInnerHTML: $Ie
+ onClick: wH(XIe),
+ dangerouslySetInnerHTML: QIe
}),
/* @__PURE__ */ (0, x.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: CH(() => bH(1)),
- children: /* @__PURE__ */ (0, x.jsx)(SH, { name: "rotate-cw" })
+ onClick: wH(() => xH(1)),
+ children: /* @__PURE__ */ (0, x.jsx)(CH, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, x.jsx)("span", {
ref: i,
@@ -72823,7 +72827,7 @@ var SH = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => vH(),
+ onClick: () => yH(),
children: [/* @__PURE__ */ (0, x.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -72837,7 +72841,7 @@ var SH = ({ name: e }) => /* @__PURE__ */ (0, x.jsx)("svg", {
})
});
});
-function tLe(e, t, n) {
+function eLe(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
@@ -72859,7 +72863,7 @@ function tLe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function nLe(e, t) {
+function tLe(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 = {
@@ -72885,7 +72889,7 @@ function nLe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), tLe(e, i.dx, i.dy));
+ }, 0), eLe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -72897,49 +72901,49 @@ function nLe(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var wH = null, TH = null, EH = /* @__PURE__ */ new Set(), DH = 0, OH = null, kH = !1, AH = !1, jH = () => {
+var TH = null, EH = null, DH = /* @__PURE__ */ new Set(), OH = 0, kH = null, AH = !1, jH = !1, MH = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function MH() {
- if (!wH) throw Error("舞台还没有接上宿主(configureStage)");
- return wH;
+function NH() {
+ if (!TH) throw Error("舞台还没有接上宿主(configureStage)");
+ return TH;
}
-function rLe(e) {
- return EH.add(e), () => {
- EH.delete(e);
+function nLe(e) {
+ return DH.add(e), () => {
+ DH.delete(e);
};
}
-function iLe() {
- for (let e of [...EH]) e();
+function rLe() {
+ for (let e of [...DH]) e();
}
-function NH() {
- (0, mt.flushSync)(iLe);
+function PH() {
+ (0, mt.flushSync)(rLe);
}
-function aLe({ view: e }) {
- return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [e ? /* @__PURE__ */ (0, x.jsx)(oLe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, x.jsx)(eLe, {})] });
+function iLe({ view: e }) {
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [e ? /* @__PURE__ */ (0, x.jsx)(aLe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, x.jsx)($Ie, {})] });
}
-var PH = () => /* @__PURE__ */ (0, x.jsx)("div", {
+var FH = () => /* @__PURE__ */ (0, x.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: CFe() }
+ dangerouslySetInnerHTML: { __html: SFe() }
});
-function FH(e) {
+function IH(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function oLe({ view: e }) {
+function aLe({ view: e }) {
let t = (0, b.useRef)(null);
(0, b.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
- e.preventDefault(), IH();
+ e.preventDefault(), LH();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, x.jsx)(hIe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, x.jsx)(IIe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, x.jsx)(YFe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, x.jsx)(mIe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, x.jsx)(FIe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, x.jsx)(JFe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, x.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -72947,20 +72951,20 @@ function oLe({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), IH());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), LH());
},
onPointerDown: (e) => {
- AH = FH(e);
+ jH = IH(e);
},
onClick: (e) => {
- AH && FH(e) && IH();
+ jH && IH(e) && LH();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, x.jsx)(PH, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, x.jsx)(FH, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, x.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, x.jsx)(PH, {})
+ children: /* @__PURE__ */ (0, x.jsx)(FH, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, x.jsx)("div", {
"data-stage-scroll": "",
@@ -72972,14 +72976,14 @@ function oLe({ view: e }) {
]
});
}
-function IH() {
- TH && !kH && (kH = !0, TH.request.actions.close());
+function LH() {
+ EH && !AH && (AH = !0, EH.request.actions.close());
}
-function LH(e, t) {
- let n = jH();
+function RH(e, t) {
+ let n = MH();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function RH(e) {
+function zH(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -72987,30 +72991,30 @@ function RH(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: IH
+ close: LH
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => MH().player.settings(), i = () => TH?.request === e;
+ }, r = () => NH().player.settings(), i = () => EH?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: IH,
+ close: LH,
present: (e, t) => {
let n = e.performers;
- tH({
+ nH({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), LH(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), RH(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => nH(e, {
+ mountPlayer: (e, t, r, i) => rH(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -73028,18 +73032,18 @@ function RH(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: IH,
+ close: LH,
present: (e, t) => {
- tH({
+ nH({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), LH(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), RH(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => nH(e, {
+ mountPlayer: (e, t, r, i) => rH(e, {
kind: "follow",
item: t,
media: r,
@@ -73056,78 +73060,78 @@ function RH(e) {
}
};
}
-function sLe(e, t) {
+function oLe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), TH?.generation === t && TH.phase === "reveal" && (TH = {
- ...TH,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), EH?.generation === t && EH.phase === "reveal" && (EH = {
+ ...EH,
phase: "content"
- }, NH());
+ }, PH());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function zH(e) {
- let t = jH();
- return !TH || TH.content.kind !== e || kH || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function BH(e) {
+ let t = MH();
+ return !EH || EH.content.kind !== e || AH || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function cLe(e) {
- let t = zH(e.kind);
+async function sLe(e) {
+ let t = BH(e.kind);
if (t) {
- await lLe(e, t);
+ await cLe(e, t);
return;
}
- TH && BH({ miniplayer: !1 });
- let n = ++DH, r = new AbortController();
- OH = r, kH = !1, AH = !1, e.kind === "jav" ? _H() : aH(e.kind, e.id ?? NaN), TH = {
+ EH && VH({ miniplayer: !1 });
+ let n = ++OH, r = new AbortController();
+ kH = r, AH = !1, jH = !1, e.kind === "jav" ? vH() : oH(e.kind, e.id ?? NaN), EH = {
generation: n,
request: e,
- content: RH(e),
+ content: zH(e),
phase: "skeleton"
- }, NH();
- let i = jH();
+ }, PH();
+ let i = MH();
if (!i) return;
ko(i), document.body.setAttribute("data-detail-open", ""), i.open || i.showModal();
- let a = TH.content;
+ let a = EH.content;
try {
- a.kind === "item" ? await HT(a.props, r.signal) : a.kind === "jav" ? await kV(a.props, r.signal) : await tV(a.props, r.signal);
+ a.kind === "item" ? await HT(a.props, r.signal) : a.kind === "jav" ? await AV(a.props, r.signal) : await nV(a.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== DH || !TH) return;
+ if (n !== OH || !EH) return;
let o = !!i.querySelector(".skeleton-awaiting");
- TH = {
- ...TH,
+ EH = {
+ ...EH,
phase: o ? "content" : "reveal"
- }, NH(), o || sLe(i, n), vo(i, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, PH(), o || oLe(i, n), vo(i, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let s = document.activeElement;
(s === i || !i.contains(s)) && i.querySelector("#closeStage")?.focus();
}
-async function lLe(e, t) {
- let n = ++DH;
- OH?.abort();
+async function cLe(e, t) {
+ let n = ++OH;
+ kH?.abort();
let r = new AbortController();
- OH = r, AH = !1;
- let i = RH(e);
+ kH = r, jH = !1;
+ let i = zH(e);
try {
- i.kind === "item" ? await HT(i.props, r.signal) : i.kind === "jav" ? await kV(i.props, r.signal) : await tV(i.props, r.signal);
+ i.kind === "item" ? await HT(i.props, r.signal) : i.kind === "jav" ? await AV(i.props, r.signal) : await nV(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== DH || !TH || zH(e.kind) !== t) return;
- e.kind === "jav" ? _H() : aH(e.kind, e.id ?? NaN), Qs(t), Iw(), TH = {
- ...TH,
+ if (n !== OH || !EH || BH(e.kind) !== t) return;
+ e.kind === "jav" ? vH() : oH(e.kind, e.id ?? NaN), Qs(t), Iw(), EH = {
+ ...EH,
request: e,
content: i,
phase: "content"
- }, NH(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), vo(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, PH(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), vo(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
(a === t || !t.contains(a)) && (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function uLe() {
- let e = jH();
+function lLe() {
+ let e = MH();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -73137,85 +73141,85 @@ function uLe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function BH({ miniplayer: e = !0 } = {}) {
- if (DH++, OH?.abort(), OH = null, iH(e), !TH) return;
- let t = jH();
- t && Qs(t), Iw(), t?.open && t.close(), TH = null, kH = !1, AH = !1, NH(), tH(null), document.body.removeAttribute("data-detail-open");
+function VH({ miniplayer: e = !0 } = {}) {
+ if (OH++, kH?.abort(), kH = null, aH(e), !EH) return;
+ let t = MH();
+ t && Qs(t), Iw(), t?.open && t.close(), EH = null, AH = !1, jH = !1, PH(), nH(null), document.body.removeAttribute("data-detail-open");
}
-function dLe(e) {
- TH && (TH = {
- ...TH,
- content: TH.content.kind === "item" ? {
+function uLe(e) {
+ EH && (EH = {
+ ...EH,
+ content: EH.content.kind === "item" ? {
kind: "item",
props: {
- ...TH.content.props,
+ ...EH.content.props,
...e
}
- } : TH.content.kind === "jav" ? TH.content : {
+ } : EH.content.kind === "jav" ? EH.content : {
kind: "follow",
props: {
- ...TH.content.props,
+ ...EH.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, NH());
+ }, PH());
}
-function fLe() {
- let e = WIe(), t = e?.kind === "item" ? e.item : null, n = t ? ba(t, MH().player.settings().javImage) : "";
+function dLe() {
+ let e = UIe(), t = e?.kind === "item" ? e.item : null, n = t ? ba(t, NH().player.settings().javImage) : "";
if (!n) return;
- let r = rH();
+ let r = iH();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var pLe = {
- open: cLe,
- update: dLe,
- exit: uLe,
- dispose: BH,
- requestClose: IH,
- repaintPoster: fLe,
- isOpen: () => !!TH,
- showing: () => TH && zH(TH.content.kind) ? TH.content.kind : null,
- activeVideo: () => JIe(),
- mountWallPlayer: GIe,
+var fLe = {
+ open: sLe,
+ update: uLe,
+ exit: lLe,
+ dispose: VH,
+ requestClose: LH,
+ repaintPoster: dLe,
+ isOpen: () => !!EH,
+ showing: () => EH && BH(EH.content.kind) ? EH.content.kind : null,
+ activeVideo: () => qIe(),
+ mountWallPlayer: WIe,
toggleTheater: () => {
- TH && gde(!MH().player.settings().theaterMode);
+ EH && gde(!NH().player.settings().theaterMode);
},
- toggleMiniplayer: () => yH(),
- closeMiniplayer: () => _H(),
- miniplayerActive: () => sH(),
- miniplayerTakesCard: (e) => xH(e),
+ toggleMiniplayer: () => bH(),
+ closeMiniplayer: () => vH(),
+ miniplayerActive: () => cH(),
+ miniplayerTakesCard: (e) => SH(e),
miniplayerPlay: (e) => {
- QIe(e);
+ ZIe(e);
}
};
-function mLe(e) {
- return wH = e, UIe(e, {
- isOpen: () => !!TH,
- requestClose: IH
- }), pLe;
+function pLe(e) {
+ return TH = e, HIe(e, {
+ isOpen: () => !!EH,
+ requestClose: LH
+ }), fLe;
}
-function hLe() {
- let e = (0, b.useSyncExternalStore)(rLe, () => TH);
- return wH ? /* @__PURE__ */ (0, x.jsx)(aLe, { view: e }) : null;
+function mLe() {
+ let e = (0, b.useSyncExternalStore)(nLe, () => EH);
+ return TH ? /* @__PURE__ */ (0, x.jsx)(iLe, { view: e }) : null;
}
//#endregion
//#region src/react/stats/stats.ts
-var gLe = "/api/stats", VH = ["stats"], HH = (e) => V(gLe, e);
-async function _Le(e) {
+var hLe = "/api/stats", HH = ["stats"], UH = (e) => V(hLe, e);
+async function gLe(e) {
await U.fetchQuery({
- queryKey: VH,
- queryFn: () => HH(e)
+ queryKey: HH,
+ queryFn: () => UH(e)
});
}
-var UH = (e) => e != null && Number.isFinite(e), WH = (e) => UH(e) ? e.toLocaleString() : "未取得", vLe = (e, t) => UH(e) && UH(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, GH = (e, t) => {
- let n = vLe(e, t);
- return !n && UH(e) && e > 0 && UH(t) && t > 0 ? "<1%" : `${n}%`;
-}, KH = (e) => {
- if (!UH(e)) return "未取得";
+var WH = (e) => e != null && Number.isFinite(e), GH = (e) => WH(e) ? e.toLocaleString() : "未取得", _Le = (e, t) => WH(e) && WH(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, KH = (e, t) => {
+ let n = _Le(e, t);
+ return !n && WH(e) && e > 0 && WH(t) && t > 0 ? "<1%" : `${n}%`;
+}, qH = (e) => {
+ if (!WH(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, qH = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, JH = (e) => (e.max_reached || 0) * 100, yLe = (e) => e.kind === "online" ? "在线直接观看" : qH(e) < JH(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", bLe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function xLe(e, t = 6) {
+}, JH = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, YH = (e) => (e.max_reached || 0) * 100, vLe = (e) => e.kind === "online" ? "在线直接观看" : JH(e) < YH(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", yLe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function bLe(e, t = 6) {
let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (n.length <= t) return n;
let r = [...n].sort((e, t) => t.value - e.value), i = r.slice(t - 1);
@@ -73225,7 +73229,7 @@ function xLe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var SLe = (e) => Math.max(1, ...e) * 1.1, CLe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, wLe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), TLe = {
+var xLe = (e) => Math.max(1, ...e) * 1.1, SLe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, CLe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), wLe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -73233,18 +73237,18 @@ var SLe = (e) => Math.max(1, ...e) * 1.1, CLe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, ELe = (e) => e.map((e) => ({
- name: TLe[e.k] ?? e.k,
+}, TLe = (e) => e.map((e) => ({
+ name: wLe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), DLe = {
+})).sort((e, t) => t.value - e.value), ELe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, YH = (e, t = {}) => e.map((e) => ({
+}, XH = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), OLe = (e) => YH(e, DLe), kLe = [
+})), DLe = (e) => XH(e, ELe), OLe = [
[
1,
1,
@@ -73280,49 +73284,49 @@ var SLe = (e) => Math.max(1, ...e) * 1.1, CLe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], ALe = (e) => kLe.map(([t, n, r]) => ({
+], kLe = (e) => OLe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), jLe = /* @__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 XH(e) {
- return typeof e == "string" && jLe.includes(e);
+})), ALe = /* @__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 ZH(e) {
+ return typeof e == "string" && ALe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var MLe = /* @__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 ZH(e) {
- return typeof e == "string" && MLe.has(e);
-}
+var jLe = /* @__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 QH(e) {
- return typeof e == "string" && e.startsWith("data-");
+ return typeof e == "string" && jLe.has(e);
}
function $H(e) {
+ return typeof e == "string" && e.startsWith("data-");
+}
+function eU(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (ZH(n) || QH(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (QH(n) || $H(n)) && (t[n] = e[n]);
return t;
}
-function eU(e) {
+function tU(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, b.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return $H(t);
+ return eU(t);
}
- return typeof e == "object" && !Array.isArray(e) ? $H(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? eU(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function tU(e) {
+function nU(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (ZH(n) || QH(n) || XH(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (QH(n) || $H(n) || ZH(n)) && (t[n] = e[n]);
return t;
}
-function NLe(e) {
- return e == null ? null : /*#__PURE__*/ (0, b.isValidElement)(e) ? tU(e.props) : typeof e == "object" && !Array.isArray(e) ? tU(e) : null;
+function MLe(e) {
+ return e == null ? null : /*#__PURE__*/ (0, b.isValidElement)(e) ? nU(e.props) : typeof e == "object" && !Array.isArray(e) ? nU(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var PLe = [
+var NLe = [
"children",
"width",
"height",
@@ -73332,25 +73336,25 @@ var PLe = [
"title",
"desc"
];
-function nU() {
- return nU = Object.assign ? Object.assign.bind() : function(e) {
+function rU() {
+ return rU = 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;
- }, nU.apply(null, arguments);
+ }, rU.apply(null, arguments);
}
-function FLe(e, t) {
+function PLe(e, t) {
if (e == null) return {};
- var n, r, i = ILe(e, t);
+ var n, r, i = FLe(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 ILe(e, t) {
+function FLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -73359,14 +73363,14 @@ function ILe(e, t) {
}
return n;
}
-var rU = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.children, r = e.width, i = e.height, a = e.viewBox, o = e.className, s = e.style, c = e.title, l = e.desc, u = FLe(e, PLe), d = a || {
+var iU = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.children, r = e.width, i = e.height, a = e.viewBox, o = e.className, s = e.style, c = e.title, l = e.desc, u = PLe(e, NLe), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = hy("recharts-surface", o);
- return /*#__PURE__*/ b.createElement("svg", nU({}, tU(u), {
+ return /*#__PURE__*/ b.createElement("svg", rU({}, nU(u), {
className: f,
width: r,
height: i,
@@ -73374,26 +73378,26 @@ var rU = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ b.createElement("title", null, c), /*#__PURE__*/ b.createElement("desc", null, l), n);
-}), LLe = ["children", "className"];
-function iU() {
- return iU = Object.assign ? Object.assign.bind() : function(e) {
+}), ILe = ["children", "className"];
+function aU() {
+ return aU = 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;
- }, iU.apply(null, arguments);
+ }, aU.apply(null, arguments);
}
-function RLe(e, t) {
+function LLe(e, t) {
if (e == null) return {};
- var n, r, i = zLe(e, t);
+ var n, r, i = RLe(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 zLe(e, t) {
+function RLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -73402,54 +73406,54 @@ function zLe(e, t) {
}
return n;
}
-var aU = /*#__PURE__*/ b.forwardRef((e, t) => {
- var n = e.children, r = e.className, i = RLe(e, LLe), a = hy("recharts-layer", r);
- return /*#__PURE__*/ b.createElement("g", iU({ className: a }, tU(i), { ref: t }), n);
+var oU = /*#__PURE__*/ b.forwardRef((e, t) => {
+ var n = e.children, r = e.className, i = LLe(e, ILe), a = hy("recharts-layer", r);
+ return /*#__PURE__*/ b.createElement("g", aU({ className: a }, nU(i), { ref: t }), n);
});
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function oU(e) {
+function sU(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var BLe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function sU(e) {
+var zLe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function cU(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : BLe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : zLe.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function cU(e) {
+function lU(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 lU(e) {
+function uU(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function VLe(e) {
- return e == null ? "" : uU(e);
+function BLe(e) {
+ return e == null ? "" : dU(e);
}
-function uU(e) {
+function dU(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(uU).join(",");
- if (lU(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(dU).join(",");
+ if (uU(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 dU(e) {
- if (Array.isArray(e)) return e.map(cU);
+function fU(e) {
+ if (Array.isArray(e)) return e.map(lU);
if (typeof e == "symbol") return [e];
- e = VLe(e);
+ e = BLe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -73477,86 +73481,86 @@ function dU(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function fU(e, t, n) {
+function pU(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (oU(t)) return n;
+ if (sU(t)) return n;
let r = e[t];
- return r === void 0 ? sU(t) && !Object.hasOwn(e, t) ? fU(e, dU(t), n) : n : r;
+ return r === void 0 ? cU(t) && !Object.hasOwn(e, t) ? pU(e, fU(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = cU(t));
+ typeof t == "number" && (t = lU(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return HLe(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), oU(t)) return n;
+ if (Array.isArray(t)) return VLe(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), sU(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function HLe(e, t, n) {
+function VLe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || oU(t[e])) return n;
+ if (r == null || sU(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var ULe = 4;
-function pU(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ULe), n = Math.round(e * t) / t;
+var HLe = 4;
+function mU(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : HLe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function mU(e) {
+function hU(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 + pU(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + mU(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var hU = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, gU = (e) => typeof e == "number" && e != +e, _U = (e) => typeof e == "string" && e.length > 1 && e.indexOf("%") === e.length - 1, vU = (e) => (typeof e == "number" || e instanceof Number) && !gU(e), yU = (e) => vU(e) || typeof e == "string", WLe = 0, bU = (e) => {
- var t = ++WLe;
+var gU = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, _U = (e) => typeof e == "number" && e != +e, vU = (e) => typeof e == "string" && e.length > 1 && e.indexOf("%") === e.length - 1, yU = (e) => (typeof e == "number" || e instanceof Number) && !_U(e), bU = (e) => yU(e) || typeof e == "string", ULe = 0, xU = (e) => {
+ var t = ++ULe;
return `${e || ""}${t}`;
-}, xU = function(e, t) {
+}, SU = 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 (!vU(e) && typeof e != "string") return n;
+ if (!yU(e) && typeof e != "string") return n;
var i;
- if (_U(e)) {
+ if (vU(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return gU(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, SU = (e) => {
+ return _U(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, CU = (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 CU(e, t, n) {
- return vU(e) && vU(t) ? pU(e + n * (t - e)) : t;
-}
function wU(e, t, n) {
- if (e && e.length) return e.find((e) => e && (typeof t == "function" ? t(e) : fU(e, t)) === n);
+ return yU(e) && yU(t) ? mU(e + n * (t - e)) : t;
}
-var TU = (e) => e == null, EU = (e) => TU(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function DU(e) {
+function TU(e, t, n) {
+ if (e && e.length) return e.find((e) => e && (typeof t == "function" ? t(e) : pU(e, t)) === n);
+}
+var EU = (e) => e == null, DU = (e) => EU(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function OU(e) {
return e != null;
}
-function OU() {}
+function kU() {}
//#endregion
//#region node_modules/recharts/es6/cartesian/cartesianViewBoxToTrapezoid.js
-function kU(e) {
+function AU(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -73568,7 +73572,7 @@ function kU(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function AU(e, t) {
+function jU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -73578,30 +73582,30 @@ function AU(e, t) {
}
return n;
}
-function jU(e) {
+function MU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? AU(Object(n), !0).forEach(function(t) {
- GLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AU(Object(n)).forEach(function(t) {
+ t % 2 ? jU(Object(n), !0).forEach(function(t) {
+ WLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function GLe(e, t, n) {
- return (t = KLe(t)) in e ? Object.defineProperty(e, t, {
+function WLe(e, t, n) {
+ return (t = GLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function KLe(e) {
- var t = qLe(e, "string");
+function GLe(e) {
+ var t = KLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qLe(e, t) {
+function KLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -73611,8 +73615,8 @@ function qLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var MU = (e) => {
- var t = e.viewBox, n = e.position, r = e.offset, i = r === void 0 ? 0 : r, a = e.parentViewBox, o = e.clamp, s = kU(t), c = s.x, l = s.y, u = s.height, d = s.upperWidth, f = s.lowerWidth, p = c, m = c + (d - f) / 2, h = (p + m) / 2, g = (d + f) / 2, _ = p + d / 2, v = u >= 0 ? 1 : -1, y = v * i, b = v > 0 ? "end" : "start", x = v > 0 ? "start" : "end", S = d >= 0 ? 1 : -1, C = S * i, w = S > 0 ? "end" : "start", T = S > 0 ? "start" : "end", E = a;
+var NU = (e) => {
+ var t = e.viewBox, n = e.position, r = e.offset, i = r === void 0 ? 0 : r, a = e.parentViewBox, o = e.clamp, s = AU(t), c = s.x, l = s.y, u = s.height, d = s.upperWidth, f = s.lowerWidth, p = c, m = c + (d - f) / 2, h = (p + m) / 2, g = (d + f) / 2, _ = p + d / 2, v = u >= 0 ? 1 : -1, y = v * i, b = v > 0 ? "end" : "start", x = v > 0 ? "start" : "end", S = d >= 0 ? 1 : -1, C = S * i, w = S > 0 ? "end" : "start", T = S > 0 ? "start" : "end", E = a;
if (n === "top") {
var D = {
x: p + d / 2,
@@ -73653,98 +73657,98 @@ var MU = (e) => {
width: g,
height: u
} : {};
- return n === "insideLeft" ? jU({
+ return n === "insideLeft" ? MU({
x: h + C,
y: l + u / 2,
horizontalAnchor: T,
verticalAnchor: "middle"
- }, j) : n === "insideRight" ? jU({
+ }, j) : n === "insideRight" ? MU({
x: h + g - C,
y: l + u / 2,
horizontalAnchor: w,
verticalAnchor: "middle"
- }, j) : n === "insideTop" ? jU({
+ }, j) : n === "insideTop" ? MU({
x: p + d / 2,
y: l + y,
horizontalAnchor: "middle",
verticalAnchor: x
- }, j) : n === "insideBottom" ? jU({
+ }, j) : n === "insideBottom" ? MU({
x: m + f / 2,
y: l + u - y,
horizontalAnchor: "middle",
verticalAnchor: b
- }, j) : n === "insideTopLeft" ? jU({
+ }, j) : n === "insideTopLeft" ? MU({
x: p + C,
y: l + y,
horizontalAnchor: T,
verticalAnchor: x
- }, j) : n === "insideTopRight" ? jU({
+ }, j) : n === "insideTopRight" ? MU({
x: p + d - C,
y: l + y,
horizontalAnchor: w,
verticalAnchor: x
- }, j) : n === "insideBottomLeft" ? jU({
+ }, j) : n === "insideBottomLeft" ? MU({
x: m + C,
y: l + u - y,
horizontalAnchor: T,
verticalAnchor: b
- }, j) : n === "insideBottomRight" ? jU({
+ }, j) : n === "insideBottomRight" ? MU({
x: m + f - C,
y: l + u - y,
horizontalAnchor: w,
verticalAnchor: b
- }, j) : n && typeof n == "object" && (vU(n.x) || _U(n.x)) && (vU(n.y) || _U(n.y)) ? jU({
- x: c + xU(n.x, g),
- y: l + xU(n.y, u),
+ }, j) : n && typeof n == "object" && (yU(n.x) || vU(n.x)) && (yU(n.y) || vU(n.y)) ? MU({
+ x: c + SU(n.x, g),
+ y: l + SU(n.y, u),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, j) : jU({
+ }, j) : MU({
x: _,
y: l + u / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, j);
-}, JLe = [
+}, qLe = [
"top",
"left",
"right",
"bottom"
];
-function NU(e) {
- return e == null ? !1 : typeof e == "object" || JLe.includes(e);
+function PU(e) {
+ return e == null ? !1 : typeof e == "object" || qLe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/context/legendPortalContext.js
-var PU = /*#__PURE__*/ (0, b.createContext)(null), YLe = () => (0, b.useContext)(PU);
+var FU = /*#__PURE__*/ (0, b.createContext)(null), JLe = () => (0, b.useContext)(FU);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function FU(e) {
+function IU(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var IU = Math.cos, LU = Math.sin, RU = Math.sqrt, zU = Math.PI;
-zU / 2;
-var BU = 2 * zU, VU = Math.PI, HU = 2 * VU, UU = 1e-6, XLe = HU - UU;
-function WU(e) {
+var LU = Math.cos, RU = Math.sin, zU = Math.sqrt, BU = Math.PI;
+BU / 2;
+var VU = 2 * BU, HU = Math.PI, UU = 2 * HU, WU = 1e-6, YLe = UU - WU;
+function GU(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function ZLe(e) {
+function XLe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return WU;
+ if (t > 15) return GU;
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 GU = class {
+var KU = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? WU : ZLe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? GU : XLe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -73765,18 +73769,18 @@ var GU = 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 > UU) {
- if (!(Math.abs(u * s - c * l) > UU) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > WU) {
+ if (!(Math.abs(u * s - c * l) > WU) || !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((VU - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > UU && 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((HU - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > WU && 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) > UU || Math.abs(this._y1 - l) > UU) && this._append`L${c},${l}`, n && (d < 0 && (d = d % HU + HU), d > XLe ? 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 > UU && this._append`A${n},${n},0,${+(d >= VU)},${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) > WU || Math.abs(this._y1 - l) > WU) && this._append`L${c},${l}`, n && (d < 0 && (d = d % UU + UU), d > YLe ? 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 > WU && this._append`A${n},${n},0,${+(d >= HU)},${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`;
@@ -73785,10 +73789,10 @@ var GU = class {
return this._;
}
};
-GU.prototype;
+KU.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function KU(e) {
+function qU(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -73799,18 +73803,18 @@ function KU(e) {
t = e;
}
return e;
- }, () => new GU(t);
+ }, () => new KU(t);
}
Array.prototype.slice;
-function qU(e) {
+function JU(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 JU(e) {
+function YU(e) {
this._context = e;
}
-JU.prototype = {
+YU.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -73833,33 +73837,33 @@ JU.prototype = {
}
}
};
-function YU(e) {
- return new JU(e);
+function XU(e) {
+ return new YU(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function XU(e) {
+function ZU(e) {
return e[0];
}
-function ZU(e) {
+function QU(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function QU(e, t) {
- var n = FU(!0), r = null, i = YU, a = null, o = KU(s);
- e = typeof e == "function" ? e : e === void 0 ? XU : FU(e), t = typeof t == "function" ? t : t === void 0 ? ZU : FU(t);
+function $U(e, t) {
+ var n = IU(!0), r = null, i = XU, a = null, o = qU(s);
+ e = typeof e == "function" ? e : e === void 0 ? ZU : IU(e), t = typeof t == "function" ? t : t === void 0 ? QU : IU(t);
function s(s) {
- var c, l = (s = qU(s)).length, u, d = !1, f;
+ var c, l = (s = JU(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 : FU(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : IU(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : FU(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : IU(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : FU(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : IU(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -73868,11 +73872,11 @@ function QU(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function $U(e, t, n) {
- var r = null, i = FU(!0), a = null, o = YU, s = null, c = KU(l);
- e = typeof e == "function" ? e : e === void 0 ? XU : FU(+e), t = typeof t == "function" ? t : FU(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? ZU : FU(+n);
+function eW(e, t, n) {
+ var r = null, i = IU(!0), a = null, o = XU, s = null, c = qU(l);
+ e = typeof e == "function" ? e : e === void 0 ? ZU : IU(+e), t = typeof t == "function" ? t : IU(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? QU : IU(+n);
function l(l) {
- var u, d, f, p = (l = qU(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = JU(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();
@@ -73886,20 +73890,20 @@ function $U(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return QU().defined(i).curve(o).context(a);
+ return $U().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : FU(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : IU(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : FU(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : IU(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : FU(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : IU(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : FU(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : IU(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : FU(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : IU(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : FU(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : IU(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -73907,7 +73911,7 @@ function $U(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : FU(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : IU(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -73916,7 +73920,7 @@ function $U(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var eW = class {
+var tW = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -73943,70 +73947,70 @@ var eW = class {
this._x0 = e, this._y0 = t;
}
};
-function QLe(e) {
- return new eW(e, !0);
+function ZLe(e) {
+ return new tW(e, !0);
}
-function $Le(e) {
- return new eW(e, !1);
+function QLe(e) {
+ return new tW(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var tW = { draw(e, t) {
- let n = RU(t / zU);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, BU);
-} }, eRe = { draw(e, t) {
- let n = RU(t / 5) / 2;
+var nW = { draw(e, t) {
+ let n = zU(t / BU);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, VU);
+} }, $Le = { draw(e, t) {
+ let n = zU(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();
-} }, nW = RU(1 / 3), tRe = nW * 2, nRe = { draw(e, t) {
- let n = RU(t / tRe), r = n * nW;
+} }, rW = zU(1 / 3), eRe = rW * 2, tRe = { draw(e, t) {
+ let n = zU(t / eRe), r = n * rW;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, rRe = { draw(e, t) {
- let n = RU(t), r = -n / 2;
+} }, nRe = { draw(e, t) {
+ let n = zU(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, iRe = .8908130915292852, rW = LU(zU / 10) / LU(7 * zU / 10), aRe = LU(BU / 10) * rW, oRe = -IU(BU / 10) * rW, sRe = { draw(e, t) {
- let n = RU(t * iRe), r = aRe * n, i = oRe * n;
+} }, rRe = .8908130915292852, iW = RU(BU / 10) / RU(7 * BU / 10), iRe = RU(VU / 10) * iW, aRe = -LU(VU / 10) * iW, oRe = { draw(e, t) {
+ let n = zU(t * rRe), r = iRe * n, i = aRe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = BU * t / 5, o = IU(a), s = LU(a);
+ let a = VU * t / 5, o = LU(a), s = RU(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, iW = RU(3), cRe = { draw(e, t) {
- let n = -RU(t / (iW * 3));
- e.moveTo(0, n * 2), e.lineTo(-iW * n, -n), e.lineTo(iW * n, -n), e.closePath();
-} }, aW = -.5, oW = RU(3) / 2, sW = 1 / RU(12), lRe = (sW / 2 + 1) * 3, uRe = { draw(e, t) {
- let n = RU(t / lRe), r = n / 2, i = n * sW, a = r, o = n * sW + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(aW * r - oW * i, oW * r + aW * i), e.lineTo(aW * a - oW * o, oW * a + aW * o), e.lineTo(aW * s - oW * c, oW * s + aW * c), e.lineTo(aW * r + oW * i, aW * i - oW * r), e.lineTo(aW * a + oW * o, aW * o - oW * a), e.lineTo(aW * s + oW * c, aW * c - oW * s), e.closePath();
+} }, aW = zU(3), sRe = { draw(e, t) {
+ let n = -zU(t / (aW * 3));
+ e.moveTo(0, n * 2), e.lineTo(-aW * n, -n), e.lineTo(aW * n, -n), e.closePath();
+} }, oW = -.5, sW = zU(3) / 2, cW = 1 / zU(12), cRe = (cW / 2 + 1) * 3, lRe = { draw(e, t) {
+ let n = zU(t / cRe), r = n / 2, i = n * cW, a = r, o = n * cW + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(oW * r - sW * i, sW * r + oW * i), e.lineTo(oW * a - sW * o, sW * a + oW * o), e.lineTo(oW * s - sW * c, sW * s + oW * c), e.lineTo(oW * r + sW * i, oW * i - sW * r), e.lineTo(oW * a + sW * o, oW * o - sW * a), e.lineTo(oW * s + sW * c, oW * c - sW * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function dRe(e, t) {
- let n = null, r = KU(i);
- e = typeof e == "function" ? e : FU(e || tW), t = typeof t == "function" ? t : FU(t === void 0 ? 64 : +t);
+function uRe(e, t) {
+ let n = null, r = qU(i);
+ e = typeof e == "function" ? e : IU(e || nW), t = typeof t == "function" ? t : IU(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 : FU(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : IU(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : FU(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : IU(+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 cW() {}
+function lW() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function lW(e, t, n) {
+function uW(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 uW(e) {
+function dW(e) {
this._context = e;
}
-uW.prototype = {
+dW.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -74018,7 +74022,7 @@ uW.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: lW(this, this._x1, this._y1);
+ case 3: uW(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;
@@ -74032,22 +74036,22 @@ uW.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: lW(this, e, t);
+ default: uW(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function fRe(e) {
- return new uW(e);
+function dRe(e) {
+ return new dW(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function dW(e) {
+function fW(e) {
this._context = e;
}
-dW.prototype = {
- areaStart: cW,
- areaEnd: cW,
+fW.prototype = {
+ areaStart: lW,
+ areaEnd: lW,
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;
},
@@ -74073,20 +74077,20 @@ dW.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: lW(this, e, t);
+ default: uW(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function pRe(e) {
- return new dW(e);
+function fRe(e) {
+ return new fW(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function fW(e) {
+function pW(e) {
this._context = e;
}
-fW.prototype = {
+pW.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -74113,22 +74117,22 @@ fW.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: lW(this, e, t);
+ default: uW(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function mRe(e) {
- return new fW(e);
+function pRe(e) {
+ return new pW(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function pW(e) {
+function mW(e) {
this._context = e;
}
-pW.prototype = {
- areaStart: cW,
- areaEnd: cW,
+mW.prototype = {
+ areaStart: lW,
+ areaEnd: lW,
lineStart: function() {
this._point = 0;
},
@@ -74139,30 +74143,30 @@ pW.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function hRe(e) {
- return new pW(e);
+function mRe(e) {
+ return new mW(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function mW(e) {
+function hW(e) {
return e < 0 ? -1 : 1;
}
-function hW(e, t, n) {
+function gW(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 (mW(a) + mW(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (hW(a) + hW(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function gW(e, t) {
+function _W(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function _W(e, t, n) {
+function vW(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 vW(e) {
+function yW(e) {
this._context = e;
}
-vW.prototype = {
+yW.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -74177,7 +74181,7 @@ vW.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: _W(this, this._t0, gW(this, this._t0));
+ case 3: vW(this, this._t0, _W(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -74192,24 +74196,24 @@ vW.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, _W(this, gW(this, n = hW(this, e, t)), n);
+ this._point = 3, vW(this, _W(this, n = gW(this, e, t)), n);
break;
- default: _W(this, this._t0, n = hW(this, e, t));
+ default: vW(this, this._t0, n = gW(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function yW(e) {
- this._context = new bW(e);
+function bW(e) {
+ this._context = new xW(e);
}
-(yW.prototype = Object.create(vW.prototype)).point = function(e, t) {
- vW.prototype.point.call(this, t, e);
+(bW.prototype = Object.create(yW.prototype)).point = function(e, t) {
+ yW.prototype.point.call(this, t, e);
};
-function bW(e) {
+function xW(e) {
this._context = e;
}
-bW.prototype = {
+xW.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -74223,18 +74227,18 @@ bW.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function gRe(e) {
- return new vW(e);
-}
-function _Re(e) {
+function hRe(e) {
return new yW(e);
}
+function gRe(e) {
+ return new bW(e);
+}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function xW(e) {
+function SW(e) {
this._context = e;
}
-xW.prototype = {
+SW.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -74248,7 +74252,7 @@ xW.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 = SW(e), i = SW(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 = CW(e), i = CW(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;
},
@@ -74256,7 +74260,7 @@ xW.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function SW(e) {
+function CW(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];
@@ -74264,15 +74268,15 @@ function SW(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 vRe(e) {
- return new xW(e);
+function _Re(e) {
+ return new SW(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function CW(e, t) {
+function wW(e, t) {
this._context = e, this._t = t;
}
-CW.prototype = {
+wW.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -74300,78 +74304,78 @@ CW.prototype = {
this._x = e, this._y = t;
}
};
+function vRe(e) {
+ return new wW(e, .5);
+}
function yRe(e) {
- return new CW(e, .5);
+ return new wW(e, 0);
}
function bRe(e) {
- return new CW(e, 0);
-}
-function xRe(e) {
- return new CW(e, 1);
+ return new wW(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function wW(e, t) {
+function TW(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 TW(e) {
+function EW(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 SRe(e, t) {
+function xRe(e, t) {
return e[t];
}
-function CRe(e) {
+function SRe(e) {
let t = [];
return t.key = e, t;
}
-function wRe() {
- var e = FU([]), t = TW, n = wW, r = SRe;
+function CRe() {
+ var e = IU([]), t = EW, n = TW, r = xRe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), CRe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), SRe), 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 = qU(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = JU(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 : FU(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : IU(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : FU(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : IU(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? TW : typeof e == "function" ? e : FU(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? EW : typeof e == "function" ? e : IU(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? wW, i) : n;
+ return arguments.length ? (n = e ?? TW, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function TRe(e, t) {
+function wRe(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;
}
- wW(e, t);
+ TW(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function ERe(e, t) {
+function TRe(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;
}
- wW(e, t);
+ TW(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function DRe(e, t) {
+function ERe(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) {
@@ -74383,26 +74387,26 @@ function DRe(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, wW(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, TW(e, t);
}
}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var ORe = [
+var DRe = [
"type",
"size",
"sizeType"
];
-function EW() {
- return EW = Object.assign ? Object.assign.bind() : function(e) {
+function DW() {
+ return DW = 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;
- }, EW.apply(null, arguments);
+ }, DW.apply(null, arguments);
}
-function DW(e, t) {
+function OW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -74412,30 +74416,30 @@ function DW(e, t) {
}
return n;
}
-function OW(e) {
+function kW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? DW(Object(n), !0).forEach(function(t) {
- kRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DW(Object(n)).forEach(function(t) {
+ t % 2 ? OW(Object(n), !0).forEach(function(t) {
+ ORe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kRe(e, t, n) {
- return (t = ARe(t)) in e ? Object.defineProperty(e, t, {
+function ORe(e, t, n) {
+ return (t = kRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ARe(e) {
- var t = jRe(e, "string");
+function kRe(e) {
+ var t = ARe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jRe(e, t) {
+function ARe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -74445,16 +74449,16 @@ function jRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function MRe(e, t) {
+function jRe(e, t) {
if (e == null) return {};
- var n, r, i = NRe(e, t);
+ var n, r, i = MRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function NRe(e, t) {
+function MRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -74463,68 +74467,68 @@ function NRe(e, t) {
}
return n;
}
-var kW = {
- symbolCircle: tW,
- symbolCross: eRe,
- symbolDiamond: nRe,
- symbolSquare: rRe,
- symbolStar: sRe,
- symbolTriangle: cRe,
- symbolWye: uRe
-}, PRe = Math.PI / 180, FRe = (e) => kW[`symbol${EU(e)}`] || tW, IRe = (e, t, n) => {
+var AW = {
+ symbolCircle: nW,
+ symbolCross: $Le,
+ symbolDiamond: tRe,
+ symbolSquare: nRe,
+ symbolStar: oRe,
+ symbolTriangle: sRe,
+ symbolWye: lRe
+}, NRe = Math.PI / 180, PRe = (e) => AW[`symbol${DU(e)}`] || nW, FRe = (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 * PRe;
+ var r = 18 * NRe;
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;
}
-}, LRe = (e, t) => {
- kW[`symbol${EU(e)}`] = t;
-}, AW = (e) => {
- var t = e.type, n = t === void 0 ? "circle" : t, r = e.size, i = r === void 0 ? 64 : r, a = e.sizeType, o = a === void 0 ? "area" : a, s = OW(OW({}, MRe(e, ORe)), {}, {
+}, IRe = (e, t) => {
+ AW[`symbol${DU(e)}`] = t;
+}, jW = (e) => {
+ var t = e.type, n = t === void 0 ? "circle" : t, r = e.size, i = r === void 0 ? 64 : r, a = e.sizeType, o = a === void 0 ? "area" : a, s = kW(kW({}, jRe(e, DRe)), {}, {
type: n,
size: i,
sizeType: o
}), c = "circle";
typeof n == "string" && (c = n);
var l = () => {
- var e = FRe(c), t = dRe().type(e).size(IRe(i, o, c))();
+ var e = PRe(c), t = uRe().type(e).size(FRe(i, o, c))();
if (t !== null) return t;
- }, u = s.className, d = s.cx, f = s.cy, p = tU(s);
- return vU(d) && vU(f) && vU(i) ? /*#__PURE__*/ b.createElement("path", EW({}, p, {
+ }, u = s.className, d = s.cx, f = s.cy, p = nU(s);
+ return yU(d) && yU(f) && yU(i) ? /*#__PURE__*/ b.createElement("path", DW({}, p, {
className: hy("recharts-symbols", u),
transform: `translate(${d}, ${f})`,
d: l()
})) : null;
};
-AW.registerSymbol = LRe;
+jW.registerSymbol = IRe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var jW = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, MW = (e, t) => {
+var MW = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, NW = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, b.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- XH(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ ZH(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, RRe = (e, t, n) => (r) => (e(t, n, r), null), NW = (e, t, n) => {
+}, LRe = (e, t, n) => (r) => (e(t, n, r), null), PW = (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];
- XH(i) && typeof a == "function" && (r ||= {}, r[i] = RRe(a, t, n));
+ ZH(i) && typeof a == "function" && (r ||= {}, r[i] = LRe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function PW(e, t) {
+function FW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -74534,30 +74538,30 @@ function PW(e, t) {
}
return n;
}
-function zRe(e) {
+function RRe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? PW(Object(n), !0).forEach(function(t) {
- BRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PW(Object(n)).forEach(function(t) {
+ t % 2 ? FW(Object(n), !0).forEach(function(t) {
+ zRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BRe(e, t, n) {
- return (t = VRe(t)) in e ? Object.defineProperty(e, t, {
+function zRe(e, t, n) {
+ return (t = BRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VRe(e) {
- var t = HRe(e, "string");
+function BRe(e) {
+ var t = VRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HRe(e, t) {
+function VRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -74567,22 +74571,22 @@ function HRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function FW(e, t) {
- var n = zRe({}, e), r = t;
+function IW(e, t) {
+ var n = RRe({}, 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 IW() {
- return IW = Object.assign ? Object.assign.bind() : function(e) {
+function LW() {
+ return LW = 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);
+ }, LW.apply(null, arguments);
}
-function LW(e, t) {
+function RW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -74592,30 +74596,30 @@ function LW(e, t) {
}
return n;
}
-function RW(e) {
+function zW(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) {
- URe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LW(Object(n)).forEach(function(t) {
+ t % 2 ? RW(Object(n), !0).forEach(function(t) {
+ HRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function URe(e, t, n) {
- return (t = WRe(t)) in e ? Object.defineProperty(e, t, {
+function HRe(e, t, n) {
+ return (t = URe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WRe(e) {
- var t = GRe(e, "string");
+function URe(e) {
+ var t = WRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GRe(e, t) {
+function WRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -74625,7 +74629,7 @@ function GRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zW = 32, KRe = {
+var BW = 32, GRe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -74633,20 +74637,20 @@ var zW = 32, KRe = {
verticalAlign: "middle",
labelStyle: {}
};
-function qRe(e) {
+function KRe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function JRe(e) {
- var t = e.data, n = e.iconType, r = e.inactiveColor, i = zW / 2, a = zW / 6, o = zW / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function qRe(e) {
+ var t = e.data, n = e.iconType, r = e.inactiveColor, i = BW / 2, a = BW / 6, o = BW / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ b.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: qRe(t.payload),
+ strokeDasharray: KRe(t.payload),
x1: 0,
y1: i,
- x2: zW,
+ x2: BW,
y2: i,
className: "recharts-legend-icon"
});
@@ -74656,35 +74660,35 @@ function JRe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${zW}M${2 * o},${i}
+ H${BW}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ b.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${zW / 8}h${zW}v${zW * 3 / 4}h${-zW}z`,
+ d: `M0,${BW / 8}h${BW}v${BW * 3 / 4}h${-BW}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ b.isValidElement(t.legendIcon)) {
- var l = RW({}, t);
+ var l = zW({}, t);
return delete l.legendIcon, /*#__PURE__*/ b.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ b.createElement(AW, {
+ return /*#__PURE__*/ b.createElement(jW, {
fill: s,
cx: i,
cy: i,
- size: zW,
+ size: BW,
sizeType: "diameter",
type: c
});
}
-function YRe(e) {
+function JRe(e) {
var t = e.payload, n = e.iconSize, r = e.layout, i = e.formatter, a = e.inactiveColor, o = e.iconType, s = e.labelStyle, c = {
x: 0,
y: 0,
- width: zW,
- height: zW
+ width: BW,
+ height: BW
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10,
@@ -74701,20 +74705,20 @@ function YRe(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? RW({}, s) : {};
+ var p = typeof s == "object" ? zW({}, s) : {};
p.color = t.inactive ? a : p.color || t.color, p.whiteSpace ??= "normal", p.overflowWrap ??= "break-word";
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ b.createElement("li", IW({
+ return /*#__PURE__*/ b.createElement("li", LW({
className: f,
style: l,
key: `legend-item-${r}`
- }, NW(e, t, r)), /*#__PURE__*/ b.createElement(rU, {
+ }, PW(e, t, r)), /*#__PURE__*/ b.createElement(iU, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": t.value == null ? "legend icon" : `${t.value} legend icon`
- }, /*#__PURE__*/ b.createElement(JRe, {
+ }, /*#__PURE__*/ b.createElement(qRe, {
data: t,
iconType: o,
inactiveColor: a
@@ -74724,8 +74728,8 @@ function YRe(e) {
}, m));
});
}
-var XRe = (e) => {
- var t = FW(e, KRe), n = t.payload, r = t.layout, i = t.align;
+var YRe = (e) => {
+ var t = IW(e, GRe), n = t.payload, r = t.layout, i = t.align;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -74735,11 +74739,11 @@ var XRe = (e) => {
return /*#__PURE__*/ b.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ b.createElement(YRe, IW({}, t, { payload: n })));
+ }, /*#__PURE__*/ b.createElement(JRe, LW({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function ZRe(e, t) {
+function XRe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -74749,77 +74753,77 @@ function ZRe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function QRe(e, t) {
+function ZRe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function BW(e) {
+function VW(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function $Re(e) {
+function QRe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function VW(e) {
- return e != null && typeof e != "function" && $Re(e.length);
+function HW(e) {
+ return e != null && typeof e != "function" && QRe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function eze(e) {
+function $Re(e) {
return function(t) {
- return fU(t, e);
+ return pU(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function HW(e) {
+function UW(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function tze(e) {
+function eze(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function UW(e) {
+function WW(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 WW(e) {
+function GW(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 GW = "[object RegExp]", KW = "[object String]", qW = "[object Number]", JW = "[object Boolean]", YW = "[object Arguments]", XW = "[object Symbol]", ZW = "[object Date]", QW = "[object Map]", $W = "[object Set]", eG = "[object Array]", nze = "[object Function]", tG = "[object ArrayBuffer]", nG = "[object Object]", rze = "[object Error]", rG = "[object DataView]", iG = "[object Uint8Array]", aG = "[object Uint8ClampedArray]", oG = "[object Uint16Array]", sG = "[object Uint32Array]", ize = "[object BigUint64Array]", cG = "[object Int8Array]", lG = "[object Int16Array]", uG = "[object Int32Array]", aze = "[object BigInt64Array]", dG = "[object Float32Array]", fG = "[object Float64Array]", pG = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var KW = "[object RegExp]", qW = "[object String]", JW = "[object Number]", YW = "[object Boolean]", XW = "[object Arguments]", ZW = "[object Symbol]", QW = "[object Date]", $W = "[object Map]", eG = "[object Set]", tG = "[object Array]", tze = "[object Function]", nG = "[object ArrayBuffer]", rG = "[object Object]", nze = "[object Error]", iG = "[object DataView]", aG = "[object Uint8Array]", oG = "[object Uint8ClampedArray]", sG = "[object Uint16Array]", cG = "[object Uint32Array]", rze = "[object BigUint64Array]", lG = "[object Int8Array]", uG = "[object Int16Array]", dG = "[object Int32Array]", ize = "[object BigInt64Array]", fG = "[object Float32Array]", pG = "[object Float64Array]", mG = 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 mG(e) {
- return pG.Buffer !== void 0 && pG.Buffer.isBuffer(e);
+function hG(e) {
+ return mG.Buffer !== void 0 && mG.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function oze(e, t) {
- return hG(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function aze(e, t) {
+ return gG(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function hG(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function gG(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (HW(e)) return e;
+ if (UW(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] = hG(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = gG(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());
@@ -74830,132 +74834,132 @@ function hG(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, hG(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, gG(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(hG(a, void 0, n, r, i));
+ for (let a of e) t.add(gG(a, void 0, n, r, i));
return t;
}
- if (mG(e)) return e.subarray();
- if (tze(e)) {
+ if (hG(e)) return e.subarray();
+ if (eze(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = hG(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = gG(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), gG(t, e, n, r, i), t;
+ return r.set(e, t), _G(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), gG(t, e, n, r, i), t;
+ return r.set(e, t), _G(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), gG(t, e, n, r, i), t;
+ return r.set(e, t), _G(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, gG(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, _G(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), gG(t, e, n, r, i), t;
+ return r.set(e, t), _G(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), gG(t, e, n, r, i), t;
+ return r.set(e, t), _G(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), gG(t, e, n, r, i), t;
+ return r.set(e, t), _G(t, e, n, r, i), t;
}
- if (typeof e == "object" && sze(e)) {
+ if (typeof e == "object" && oze(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), gG(t, e, n, r, i), t;
+ return r.set(e, t), _G(t, e, n, r, i), t;
}
return e;
}
-function gG(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...UW(t)];
+function _G(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...WW(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = hG(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = gG(t[s], s, n, r, i));
}
}
-function sze(e) {
- switch (WW(e)) {
- case YW:
- case eG:
+function oze(e) {
+ switch (GW(e)) {
+ case XW:
case tG:
- case rG:
- case JW:
- case ZW:
- case dG:
+ case nG:
+ case iG:
+ case YW:
+ case QW:
case fG:
- case cG:
+ case pG:
case lG:
case uG:
- case QW:
- case qW:
- case nG:
- case GW:
+ case dG:
case $W:
+ case JW:
+ case rG:
case KW:
- case XW:
- case iG:
+ case eG:
+ case qW:
+ case ZW:
case aG:
case oG:
- case sG: return !0;
+ case sG:
+ case cG: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function cze(e) {
- return hG(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function sze(e) {
+ return gG(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function _G(e, t) {
+function vG(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function vG(e) {
+function yG(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function yG(e, t, n) {
- return typeof n == "function" ? bG(e, t, function e(t, r, i, a, o, s) {
+function bG(e, t, n) {
+ return typeof n == "function" ? xG(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? bG(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : yG(e, t, () => void 0);
+ return c === void 0 ? xG(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : bG(e, t, () => void 0);
}
-function bG(e, t, n, r, i = !1) {
+function xG(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return lze(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? bG(e, { ...t }, n, r, i) : _G(e, t);
- default: return vG(e) && i ? typeof t != "string" || t === "" : _G(e, t);
+ case "object": return cze(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? xG(e, { ...t }, n, r, i) : vG(e, t);
+ default: return yG(e) && i ? typeof t != "string" || t === "" : vG(e, t);
}
}
-function lze(e, t, n, r, i = !1) {
+function cze(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return xG(e, t, n, r);
- if (t instanceof Map) return uze(e, t, n, r);
- if (t instanceof Set) return dze(e, t, n, r);
+ if (Array.isArray(t)) return SG(e, t, n, r);
+ if (t instanceof Map) return lze(e, t, n, r);
+ if (t instanceof Set) return uze(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) HW(e) && (e = Object(e));
+ if (i) UW(e) && (e = Object(e));
else {
- let t = WW(e);
+ let t = GW(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -74971,13 +74975,13 @@ function lze(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function uze(e, t, n, r) {
+function lze(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 xG(e, t, n, r) {
+function SG(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -74995,40 +74999,40 @@ function xG(e, t, n, r) {
}
return !0;
}
-function dze(e, t, n, r) {
- return t.size === 0 || e instanceof Set && xG([...e], [...t], n, r);
+function uze(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && SG([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function SG(e, t) {
- return yG(e, t, () => void 0);
+function CG(e, t) {
+ return bG(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function fze(e) {
- return e = cze(e), (t) => SG(t, e);
+function dze(e) {
+ return e = sze(e), (t) => CG(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function pze(e, t) {
- return oze(e, (n, r, i, a) => {
+function fze(e, t) {
+ return aze(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (WW(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (GW(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), gG(t, e, i, a), t;
+ return a.set(e, t), _G(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
+ case JW:
case qW:
- case KW:
- case JW: {
+ case YW: {
let t = new e.constructor(e?.valueOf());
- return gG(t, e), t;
+ return _G(t, e), t;
}
- case YW: {
+ case XW: {
let t = {};
- return gG(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return _G(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -75037,79 +75041,79 @@ function pze(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function mze(e) {
- return pze(e);
+function pze(e) {
+ return fze(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var hze = /^(?:0|[1-9]\d*)$/;
-function CG(e, t = 2 ** 53 - 1) {
+var mze = /^(?:0|[1-9]\d*)$/;
+function wG(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 hze.test(e);
+ case "string": return mze.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function gze(e) {
- return typeof e == "object" && !!e && WW(e) === "[object Arguments]";
+function hze(e) {
+ return typeof e == "object" && !!e && GW(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function _ze(e, t) {
+function gze(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && sU(t) && !(t in Object(e)) ? dU(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && cU(t) && !(t in Object(e)) ? fU(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = cU(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || gze(r)) && CG(t) && Number(t) < r.length)) return !1;
+ let t = lU(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || hze(r)) && wG(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function vze(e, t) {
+function _ze(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = cU(e);
+ case "number": e = lU(e);
}
- return t = mze(t), function(n) {
- let r = fU(n, e);
- return r === void 0 ? _ze(n, e) : t === void 0 ? r === void 0 : SG(r, t);
+ return t = pze(t), function(n) {
+ let r = pU(n, e);
+ return r === void 0 ? gze(n, e) : t === void 0 ? r === void 0 : CG(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function wG(e) {
- if (e == null) return BW;
+function TG(e) {
+ if (e == null) return VW;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? vze(e[0], e[1]) : fze(e);
- default: return eze(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? _ze(e[0], e[1]) : dze(e);
+ default: return $Re(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function yze(e) {
+function vze(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function TG(e, t = BW) {
- return VW(e) ? ZRe(Array.from(e), QRe(wG(t), 1)).map(yze) : [];
+function EG(e, t = VW) {
+ return HW(e) ? XRe(Array.from(e), ZRe(TG(t), 1)).map(vze) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function EG(e, t, n) {
- return t === !0 ? TG(e, n) : typeof t == "function" ? TG(e, t) : e;
+function DG(e, t, n) {
+ return t === !0 ? EG(e, n) : typeof t == "function" ? EG(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var bze = /* @__PURE__ */ o(((e) => {
+var yze = /* @__PURE__ */ o(((e) => {
var t = d(), n = ky();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -75154,60 +75158,60 @@ var bze = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), xze = /* @__PURE__ */ o(((e, t) => {
- t.exports = bze();
-})), DG = /*#__PURE__*/ (0, b.createContext)(null), Sze = xze(), Cze = (e) => e, OG = () => {
- var e = (0, b.useContext)(DG);
- return e ? e.store.dispatch : Cze;
-}, kG = () => {}, wze = () => kG, Tze = (e, t) => e === t;
+})), bze = /* @__PURE__ */ o(((e, t) => {
+ t.exports = yze();
+})), OG = /*#__PURE__*/ (0, b.createContext)(null), xze = bze(), Sze = (e) => e, kG = () => {
+ var e = (0, b.useContext)(OG);
+ return e ? e.store.dispatch : Sze;
+}, AG = () => {}, Cze = () => AG, wze = (e, t) => e === t;
function J(e) {
- var t = (0, b.useContext)(DG), n = (0, b.useMemo)(() => t ? (t) => {
+ var t = (0, b.useContext)(OG), n = (0, b.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : kG, [t, e]);
- return (0, Sze.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : wze, t ? t.store.getState : kG, t ? t.store.getState : kG, n, Tze);
+ } : AG, [t, e]);
+ return (0, xze.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : Cze, t ? t.store.getState : AG, t ? t.store.getState : AG, n, wze);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function Eze(e, t = `expected a function, instead received ${typeof e}`) {
+function Tze(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function Dze(e, t = "expected all items to be functions, instead received the following types: ") {
+function Eze(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 AG = (e) => Array.isArray(e) ? e : [e];
-function Oze(e) {
+var jG = (e) => Array.isArray(e) ? e : [e];
+function Dze(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return Dze(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return Eze(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function kze(e, t) {
+function Oze(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var Aze = class {
+var kze = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, jG = typeof WeakRef > "u" ? Aze : WeakRef, jze = 0, MG = 1;
-function NG() {
+}, MG = typeof WeakRef > "u" ? kze : WeakRef, Aze = 0, NG = 1;
+function PG() {
return {
- s: jze,
+ s: Aze,
v: void 0,
o: null,
p: null
};
}
-function Mze(e) {
- return e instanceof jG ? e.deref() : e;
+function jze(e) {
+ return e instanceof MG ? e.deref() : e;
}
-function PG(e, t = {}) {
- let n = NG(), { resultEqualityCheck: r } = t, i, a = 0;
+function FG(e, t = {}) {
+ let n = PG(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -75216,43 +75220,43 @@ function PG(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = NG(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = PG(), 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 = NG(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = PG(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === MG) c = t.v;
+ if (t.s === NG) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
- let e = Mze(i);
- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? /* @__PURE__ */ new jG(c) : c;
+ let e = jze(i);
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? /* @__PURE__ */ new MG(c) : c;
}
- return s.s = MG, s.v = c, c;
+ return s.s = NG, s.v = c, c;
}
return o.clearCache = () => {
- n = NG(), o.resetResultsCount();
+ n = PG(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function Nze(e, ...t) {
+function Mze(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()), Eze(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = PG, argsMemoizeOptions: u = [] } = {
+ typeof o == "object" && (a = o, o = e.pop()), Tze(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = FG, argsMemoizeOptions: u = [] } = {
...n,
...a
- }, d = AG(c), f = AG(u), p = Oze(e), m = s(function() {
+ }, d = jG(c), f = jG(u), p = Dze(e), m = s(function() {
return t++, o.apply(null, arguments);
}, ...d), h = l(function() {
r++;
- let e = kze(p, arguments);
+ let e = Oze(p, arguments);
return i = m.apply(null, e), i;
}, ...f);
return Object.assign(h, {
@@ -75274,10 +75278,10 @@ function Nze(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var Y = /* @__PURE__ */ Nze(PG);
+var Y = /* @__PURE__ */ Mze(FG);
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function Pze(e, t = 1) {
+function Nze(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -75288,17 +75292,17 @@ function Pze(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function FG(e, t, n) {
- return vG(n) && (typeof t == "number" && VW(n) && CG(t) && t < n.length || typeof t == "string" && t in n) ? _G(n[t], e) : !1;
+function IG(e, t, n) {
+ return yG(n) && (typeof t == "number" && HW(n) && wG(t) && t < n.length || typeof t == "string" && t in n) ? vG(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function IG(e) {
+function LG(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var Fze = (e, t, n) => {
+var Pze = (e, t, n) => {
if (e !== t) {
- let r = IG(e), i = IG(t);
+ let r = LG(e), i = LG(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -75306,15 +75310,15 @@ var Fze = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, Ize = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Lze = /^\w*$/;
-function Rze(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || lU(e) ? !0 : typeof e == "string" && (Lze.test(e) || !Ize.test(e)) || t != null && Object.hasOwn(t, e);
+}, Fze = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ize = /^\w*$/;
+function Lze(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || uU(e) ? !0 : typeof e == "string" && (Ize.test(e) || !Fze.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function zze(e, t, n, r) {
+function Rze(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = VW(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 = HW(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]];
@@ -75322,16 +75326,16 @@ function zze(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) || Rze(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || Lze(e) ? e : {
key: e,
- path: dU(e)
+ path: fU(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 = Fze(e.criteria[r], t.criteria[r], n[r]);
+ let i = Pze(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -75339,42 +75343,42 @@ function zze(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function LG(e, ...t) {
+function RG(e, ...t) {
let n = t.length;
- return n > 1 && FG(e, t[0], t[1]) ? t = [] : n > 2 && FG(t[0], t[1], t[2]) && (t = [t[0]]), zze(e, Pze(t), ["asc"]);
+ return n > 1 && IG(e, t[0], t[1]) ? t = [] : n > 2 && IG(t[0], t[1], t[2]) && (t = [t[0]]), Rze(e, Nze(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var RG = (e) => e.legend.settings, Bze = (e) => e.legend.size, Vze = Y([(e) => e.legend.payload, RG], (e, t) => {
+var zG = (e) => e.legend.settings, zze = (e) => e.legend.size, Bze = Y([(e) => e.legend.payload, zG], (e, t) => {
var n = t.itemSorter, r = e.flat(1);
- return n ? LG(r, n) : r;
+ return n ? RG(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function Hze() {
- return J(Vze);
+function Vze() {
+ return J(Bze);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-function Uze(e, t) {
- return qze(e) || Kze(e, t) || Gze(e, t) || Wze();
+function Hze(e, t) {
+ return Kze(e) || Gze(e, t) || Wze(e, t) || Uze();
}
-function Wze() {
+function Uze() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function Gze(e, t) {
+function Wze(e, t) {
if (e) {
- if (typeof e == "string") return zG(e, t);
+ if (typeof e == "string") return BG(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? zG(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? BG(e, t) : void 0;
}
}
-function zG(e, t) {
+function BG(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function Kze(e, t) {
+function Gze(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -75395,14 +75399,14 @@ function Kze(e, t) {
return s;
}
}
-function qze(e) {
+function Kze(e) {
if (Array.isArray(e)) return e;
}
-var BG = 1;
-function VG(e, t) {
- return Math.abs(e.height - t.height) > BG || Math.abs(e.left - t.left) > BG || Math.abs(e.top - t.top) > BG || Math.abs(e.width - t.width) > BG;
+var VG = 1;
+function HG(e, t) {
+ return Math.abs(e.height - t.height) > VG || Math.abs(e.left - t.left) > VG || Math.abs(e.top - t.top) > VG || Math.abs(e.width - t.width) > VG;
}
-function HG(e) {
+function UG(e) {
var t = e.getBoundingClientRect();
return {
height: t.height,
@@ -75411,8 +75415,8 @@ function HG(e) {
width: t.width
};
}
-function UG() {
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = Uze((0, b.useState)({
+function WG() {
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = Hze((0, b.useState)({
height: 0,
left: 0,
top: 0,
@@ -75421,11 +75425,11 @@ function UG() {
a.current = n;
var o = (0, b.useCallback)((e) => {
if (i.current != null && (i.current.disconnect(), i.current = null), e != null) {
- var t = HG(e);
- if (VG(t, a.current) && r(t), typeof ResizeObserver < "u") {
+ var t = UG(e);
+ if (HG(t, a.current) && r(t), typeof ResizeObserver < "u") {
var n = new ResizeObserver(() => {
- var t = HG(e);
- VG(t, a.current) && r(t);
+ var t = UG(e);
+ HG(t, a.current) && r(t);
});
n.observe(e), i.current = n;
}
@@ -75438,26 +75442,26 @@ function UG() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function WG(e) {
+function GG(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 GG = typeof Symbol == "function" && Symbol.observable || "@@observable", KG = () => Math.random().toString(36).substring(7).split("").join("."), qG = {
- INIT: `@@redux/INIT${/* @__PURE__ */ KG()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ KG()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${KG()}`
+var KG = typeof Symbol == "function" && Symbol.observable || "@@observable", qG = () => Math.random().toString(36).substring(7).split("").join("."), JG = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ qG()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ qG()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${qG()}`
};
-function JG(e) {
+function YG(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 YG(e, t, n) {
- if (typeof e != "function") throw Error(WG(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(WG(0));
+function XG(e, t, n) {
+ if (typeof e != "function") throw Error(GG(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(GG(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(WG(1));
- return n(YG)(e, t);
+ if (typeof n != "function") throw Error(GG(1));
+ return n(XG)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -75466,27 +75470,27 @@ function YG(e, t, n) {
}));
}
function u() {
- if (c) throw Error(WG(3));
+ if (c) throw Error(GG(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(WG(4));
- if (c) throw Error(WG(5));
+ if (typeof e != "function") throw Error(GG(4));
+ if (c) throw Error(GG(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(WG(6));
+ if (c) throw Error(GG(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!JG(e)) throw Error(WG(7));
- if (e.type === void 0) throw Error(WG(8));
- if (typeof e.type != "string") throw Error(WG(17));
- if (c) throw Error(WG(9));
+ if (!YG(e)) throw Error(GG(7));
+ if (e.type === void 0) throw Error(GG(8));
+ if (typeof e.type != "string") throw Error(GG(17));
+ if (c) throw Error(GG(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -75497,41 +75501,41 @@ function YG(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(WG(10));
- r = e, f({ type: qG.REPLACE });
+ if (typeof e != "function") throw Error(GG(10));
+ r = e, f({ type: JG.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(WG(11));
+ if (typeof t != "object" || !t) throw Error(GG(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [GG]() {
+ [KG]() {
return this;
}
};
}
- return f({ type: qG.INIT }), {
+ return f({ type: JG.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [GG]: m
+ [KG]: m
};
}
-function Jze(e) {
+function qze(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: qG.INIT }) === void 0) throw Error(WG(12));
- if (n(void 0, { type: qG.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(WG(13));
+ if (n(void 0, { type: JG.INIT }) === void 0) throw Error(GG(12));
+ if (n(void 0, { type: JG.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(GG(13));
});
}
-function XG(e) {
+function ZG(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -75539,7 +75543,7 @@ function XG(e) {
}
let r = Object.keys(n), i;
try {
- Jze(n);
+ qze(n);
} catch (e) {
i = e;
}
@@ -75548,124 +75552,124 @@ function XG(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(WG(14));
+ if (u === void 0) throw t && t.type, Error(GG(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function ZG(...e) {
+function QG(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function Yze(...e) {
+function Jze(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(WG(15));
+ throw Error(GG(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = ZG(...e.map((e) => e(o)))(i.dispatch), {
+ return a = QG(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function QG(e) {
- return JG(e) && "type" in e && typeof e.type == "string";
+function $G(e) {
+ return YG(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/immer/dist/immer.mjs
-var $G = Symbol.for("immer-nothing"), eK = Symbol.for("immer-draftable"), tK = Symbol.for("immer-state");
-function nK(e, ...t) {
+var eK = Symbol.for("immer-nothing"), tK = Symbol.for("immer-draftable"), nK = Symbol.for("immer-state");
+function rK(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var rK = Object, iK = rK.getPrototypeOf, aK = "constructor", oK = "prototype", sK = "configurable", cK = "enumerable", lK = "writable", uK = "value", dK = (e) => !!e && !!e[tK];
-function fK(e) {
- return e ? mK(e) || bK(e) || !!e[eK] || !!e[aK]?.[eK] || xK(e) || SK(e) : !1;
+var iK = Object, aK = iK.getPrototypeOf, oK = "constructor", sK = "prototype", cK = "configurable", lK = "enumerable", uK = "writable", dK = "value", fK = (e) => !!e && !!e[nK];
+function pK(e) {
+ return e ? hK(e) || xK(e) || !!e[tK] || !!e[oK]?.[tK] || SK(e) || CK(e) : !1;
}
-var Xze = rK[oK][aK].toString(), pK = /* @__PURE__ */ new WeakMap();
-function mK(e) {
- if (!e || !CK(e)) return !1;
- let t = iK(e);
- if (t === null || t === rK[oK]) return !0;
- let n = rK.hasOwnProperty.call(t, aK) && t[aK];
+var Yze = iK[sK][oK].toString(), mK = /* @__PURE__ */ new WeakMap();
+function hK(e) {
+ if (!e || !wK(e)) return !1;
+ let t = aK(e);
+ if (t === null || t === iK[sK]) return !0;
+ let n = iK.hasOwnProperty.call(t, oK) && t[oK];
if (n === Object) return !0;
- if (!wK(n)) return !1;
- let r = pK.get(n);
- return r === void 0 && (r = Function.toString.call(n), pK.set(n, r)), r === Xze;
+ if (!TK(n)) return !1;
+ let r = mK.get(n);
+ return r === void 0 && (r = Function.toString.call(n), mK.set(n, r)), r === Yze;
}
-function hK(e, t, n = !0) {
- gK(e) === 0 ? (n ? Reflect.ownKeys(e) : rK.keys(e)).forEach((n) => {
+function gK(e, t, n = !0) {
+ _K(e) === 0 ? (n ? Reflect.ownKeys(e) : iK.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function gK(e) {
- let t = e[tK];
- return t ? t.type_ : bK(e) ? 1 : xK(e) ? 2 : SK(e) ? 3 : 0;
+function _K(e) {
+ let t = e[nK];
+ return t ? t.type_ : xK(e) ? 1 : SK(e) ? 2 : CK(e) ? 3 : 0;
}
-var _K = (e, t, n = gK(e)) => n === 2 ? e.has(t) : rK[oK].hasOwnProperty.call(e, t), vK = (e, t, n = gK(e)) => n === 2 ? e.get(t) : e[t], yK = (e, t, n, r = gK(e)) => {
+var vK = (e, t, n = _K(e)) => n === 2 ? e.has(t) : iK[sK].hasOwnProperty.call(e, t), yK = (e, t, n = _K(e)) => n === 2 ? e.get(t) : e[t], bK = (e, t, n, r = _K(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function Zze(e, t) {
+function Xze(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var bK = Array.isArray, xK = (e) => e instanceof Map, SK = (e) => e instanceof Set, CK = (e) => typeof e == "object", wK = (e) => typeof e == "function", TK = (e) => typeof e == "boolean";
-function Qze(e) {
+var xK = Array.isArray, SK = (e) => e instanceof Map, CK = (e) => e instanceof Set, wK = (e) => typeof e == "object", TK = (e) => typeof e == "function", EK = (e) => typeof e == "boolean";
+function Zze(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var EK = (e) => e.copy_ || e.base_, DK = (e) => e.modified_ ? e.copy_ : e.base_;
-function OK(e, t) {
- if (xK(e)) return new Map(e);
- if (SK(e)) return new Set(e);
- if (bK(e)) return Array[oK].slice.call(e);
- let n = mK(e);
+var DK = (e) => e.copy_ || e.base_, OK = (e) => e.modified_ ? e.copy_ : e.base_;
+function kK(e, t) {
+ if (SK(e)) return new Map(e);
+ if (CK(e)) return new Set(e);
+ if (xK(e)) return Array[sK].slice.call(e);
+ let n = hK(e);
if (t === !0 || t === "class_only" && !n) {
- let t = rK.getOwnPropertyDescriptors(e);
- delete t[tK];
+ let t = iK.getOwnPropertyDescriptors(e);
+ delete t[nK];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[lK] === !1 && (a[lK] = !0, a[sK] = !0), (a.get || a.set) && (t[i] = {
- [sK]: !0,
- [lK]: !0,
- [cK]: a[cK],
- [uK]: e[i]
+ a[uK] === !1 && (a[uK] = !0, a[cK] = !0), (a.get || a.set) && (t[i] = {
+ [cK]: !0,
+ [uK]: !0,
+ [lK]: a[lK],
+ [dK]: e[i]
});
}
- return rK.create(iK(e), t);
+ return iK.create(aK(e), t);
}
{
- let t = iK(e);
+ let t = aK(e);
if (t !== null && n) return { ...e };
- let r = rK.create(t);
- return rK.assign(r, e);
- }
-}
-function kK(e, t = !1) {
- return jK(e) || dK(e) || !fK(e) || (gK(e) > 1 && rK.defineProperties(e, {
- set: AK,
- add: AK,
- clear: AK,
- delete: AK
- }), rK.freeze(e), t && hK(e, (e, t) => {
- kK(t, !0);
+ let r = iK.create(t);
+ return iK.assign(r, e);
+ }
+}
+function AK(e, t = !1) {
+ return MK(e) || fK(e) || !pK(e) || (_K(e) > 1 && iK.defineProperties(e, {
+ set: jK,
+ add: jK,
+ clear: jK,
+ delete: jK
+ }), iK.freeze(e), t && gK(e, (e, t) => {
+ AK(t, !0);
}, !1)), e;
}
-function $ze() {
- nK(2);
+function Qze() {
+ rK(2);
}
-var AK = { [uK]: $ze };
-function jK(e) {
- return e === null || !CK(e) || rK.isFrozen(e);
+var jK = { [dK]: Qze };
+function MK(e) {
+ return e === null || !wK(e) || iK.isFrozen(e);
}
-var MK = "MapSet", NK = "Patches", PK = "ArrayMethods", FK = {};
-function IK(e) {
- let t = FK[e];
- return t || nK(0, e), t;
+var NK = "MapSet", PK = "Patches", FK = "ArrayMethods", IK = {};
+function LK(e) {
+ let t = IK[e];
+ return t || rK(0, e), t;
}
-var LK = (e) => !!FK[e], RK, zK = () => RK, eBe = (e, t) => ({
+var RK = (e) => !!IK[e], zK, BK = () => zK, $ze = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -75673,114 +75677,114 @@ var LK = (e) => !!FK[e], RK, zK = () => RK, eBe = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: LK(MK) ? IK(MK) : void 0,
- arrayMethodsPlugin_: LK(PK) ? IK(PK) : void 0
+ mapSetPlugin_: RK(NK) ? LK(NK) : void 0,
+ arrayMethodsPlugin_: RK(FK) ? LK(FK) : void 0
});
-function BK(e, t) {
- t && (e.patchPlugin_ = IK(NK), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
-}
-function VK(e) {
- HK(e), e.drafts_.forEach(tBe), e.drafts_ = null;
+function VK(e, t) {
+ t && (e.patchPlugin_ = LK(PK), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function HK(e) {
- e === RK && (RK = e.parent_);
+ UK(e), e.drafts_.forEach(eBe), e.drafts_ = null;
+}
+function UK(e) {
+ e === zK && (zK = e.parent_);
}
-var UK = (e) => RK = eBe(RK, e);
-function tBe(e) {
- let t = e[tK];
+var WK = (e) => zK = $ze(zK, e);
+function eBe(e) {
+ let t = e[nK];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function WK(e, t) {
+function GK(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[tK].modified_ && (VK(t), nK(4)), fK(e) && (e = GK(t, e));
+ n[nK].modified_ && (HK(t), rK(4)), pK(e) && (e = KK(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[tK].base_, e, t);
- } else e = GK(t, n);
- return nBe(t, e, !0), VK(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === $G ? void 0 : e;
-}
-function GK(e, t) {
- if (jK(t)) return t;
- let n = t[tK];
- if (!n) return XK(t, e.handledSet_, e);
- if (!qK(n, e)) return t;
+ r && r.generateReplacementPatches_(n[nK].base_, e, t);
+ } else e = KK(t, n);
+ return tBe(t, e, !0), HK(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === eK ? void 0 : e;
+}
+function KK(e, t) {
+ if (MK(t)) return t;
+ let n = t[nK];
+ if (!n) return ZK(t, e.handledSet_, e);
+ if (!JK(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);
- YK(n, e);
+ XK(n, e);
}
return n.copy_;
}
-function nBe(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && kK(t, n);
+function tBe(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && AK(t, n);
}
-function KK(e) {
+function qK(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var qK = (e, t) => e.scope_ === t, rBe = [];
-function JK(e, t, n, r) {
- let i = EK(e), a = e.type_;
- if (r !== void 0 && vK(i, r, a) === t) {
- yK(i, r, n, a);
+var JK = (e, t) => e.scope_ === t, nBe = [];
+function YK(e, t, n, r) {
+ let i = DK(e), a = e.type_;
+ if (r !== void 0 && yK(i, r, a) === t) {
+ bK(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- hK(i, (e, n) => {
- if (dK(n)) {
+ gK(i, (e, n) => {
+ if (fK(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? rBe;
- for (let e of o) yK(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? nBe;
+ for (let e of o) bK(i, e, n, a);
}
-function iBe(e, t, n) {
+function rBe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !qK(i, r)) return;
+ if (!i || !JK(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = DK(i);
- JK(e, i.draft_ ?? i, a, n), YK(i, r);
+ let a = OK(i);
+ YK(e, i.draft_ ?? i, a, n), XK(i, r);
});
}
-function YK(e, t) {
+function XK(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);
}
- KK(e);
+ qK(e);
}
}
-function aBe(e, t, n) {
+function iBe(e, t, n) {
let { scope_: r } = e;
- if (dK(n)) {
- let i = n[tK];
- qK(i, r) && i.callbacks_.push(function() {
- nq(e), JK(e, n, DK(i), t);
+ if (fK(n)) {
+ let i = n[nK];
+ JK(i, r) && i.callbacks_.push(function() {
+ rq(e), YK(e, n, OK(i), t);
});
- } else fK(n) && e.callbacks_.push(function() {
- let i = EK(e);
- e.type_ === 3 ? i.has(n) && XK(n, r.handledSet_, r) : vK(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && XK(vK(e.copy_, t, e.type_), r.handledSet_, r);
+ } else pK(n) && e.callbacks_.push(function() {
+ let i = DK(e);
+ e.type_ === 3 ? i.has(n) && ZK(n, r.handledSet_, r) : yK(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && ZK(yK(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function XK(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || dK(e) || t.has(e) || !fK(e) || jK(e) || (t.add(e), hK(e, (r, i) => {
- if (dK(i)) {
- let t = i[tK];
- qK(t, n) && (yK(e, r, DK(t), e.type_), KK(t));
- } else fK(i) && XK(i, t, n);
+function ZK(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || fK(e) || t.has(e) || !pK(e) || MK(e) || (t.add(e), gK(e, (r, i) => {
+ if (fK(i)) {
+ let t = i[nK];
+ JK(t, n) && (bK(e, r, OK(t), e.type_), qK(t));
+ } else pK(i) && ZK(i, t, n);
})), e;
}
-function oBe(e, t) {
- let n = bK(e), r = {
+function aBe(e, t) {
+ let n = xK(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : zK(),
+ scope_: t ? t.scope_ : BK(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -75791,108 +75795,108 @@ function oBe(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = ZK;
- n && (i = [r], a = QK);
+ }, i = r, a = QK;
+ n && (i = [r], a = $K);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var ZK = {
+var QK = {
get(e, t) {
- if (t === tK) return e;
+ if (t === nK) 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 = EK(e);
- if (!_K(i, t, e.type_)) return cBe(e, i, t);
+ let i = DK(e);
+ if (!vK(i, t, e.type_)) return sBe(e, i, t);
let a = i[t];
- if (e.finalized_ || !fK(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Qze(t)) return a;
- if (a === $K(e.base_, t) || sBe(e, t, a)) {
- nq(e);
- let n = e.type_ === 1 ? +t : t, r = rq(e.scope_, a, e, n);
+ if (e.finalized_ || !pK(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Zze(t)) return a;
+ if (a === eq(e.base_, t) || oBe(e, t, a)) {
+ rq(e);
+ let n = e.type_ === 1 ? +t : t, r = iq(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in EK(e);
+ return t in DK(e);
},
ownKeys(e) {
- return Reflect.ownKeys(EK(e));
+ return Reflect.ownKeys(DK(e));
},
set(e, t, n) {
- let r = eq(EK(e), t);
+ let r = tq(DK(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = $K(EK(e), t), i = r?.[tK];
+ let r = eq(DK(e), t), i = r?.[nK];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.delete(t), !0;
- if (Zze(n, r) && (n !== void 0 || _K(e.base_, t, e.type_))) return !0;
- nq(e), tq(e);
+ if (Xze(n, r) && (n !== void 0 || vK(e.base_, t, e.type_))) return !0;
+ rq(e), nq(e);
}
- return e.copy_[t] === n && (n !== void 0 || _K(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_.set(t, !0), aBe(e, t, n)), !0;
+ return e.copy_[t] === n && (n !== void 0 || vK(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_.set(t, !0), iBe(e, t, n)), !0;
},
deleteProperty(e, t) {
- return nq(e), $K(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), tq(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return rq(e), eq(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), nq(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = EK(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = DK(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [lK]: !0,
- [sK]: e.type_ !== 1 || t !== "length",
- [cK]: r[cK],
- [uK]: n[t]
+ [uK]: !0,
+ [cK]: e.type_ !== 1 || t !== "length",
+ [lK]: r[lK],
+ [dK]: n[t]
};
},
defineProperty() {
- nK(11);
+ rK(11);
},
getPrototypeOf(e) {
- return iK(e.base_);
+ return aK(e.base_);
},
setPrototypeOf() {
- nK(12);
+ rK(12);
}
-}, QK = {};
-for (let e in ZK) {
- let t = ZK[e];
- QK[e] = function() {
+}, $K = {};
+for (let e in QK) {
+ let t = QK[e];
+ $K[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-QK.deleteProperty = function(e, t) {
- return QK.set.call(this, e, t, void 0);
-}, QK.set = function(e, t, n) {
- return ZK.set.call(this, e[0], t, n, e[0]);
+$K.deleteProperty = function(e, t) {
+ return $K.set.call(this, e, t, void 0);
+}, $K.set = function(e, t, n) {
+ return QK.set.call(this, e[0], t, n, e[0]);
};
-function $K(e, t) {
- let n = e[tK];
- return (n ? EK(n) : e)[t];
+function eq(e, t) {
+ let n = e[nK];
+ return (n ? DK(n) : e)[t];
}
-function sBe(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !fK(n) || n[tK] ? !1 : e.baseRefs_.has(n);
+function oBe(e, t, n) {
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !pK(n) || n[nK] ? !1 : e.baseRefs_.has(n);
}
-function cBe(e, t, n) {
- let r = eq(t, n);
- return r ? uK in r ? r[uK] : r.get?.call(e.draft_) : void 0;
+function sBe(e, t, n) {
+ let r = tq(t, n);
+ return r ? dK in r ? r[dK] : r.get?.call(e.draft_) : void 0;
}
-function eq(e, t) {
+function tq(e, t) {
if (!(t in e)) return;
- let n = iK(e);
+ let n = aK(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = iK(n);
+ n = aK(n);
}
}
-function tq(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && tq(e.parent_));
-}
function nq(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), OK(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+ e.modified_ || (e.modified_ = !0, e.parent_ && nq(e.parent_));
+}
+function rq(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), kK(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var lBe = class {
+var cBe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (wK(e) && !wK(t)) {
+ if (TK(e) && !TK(t)) {
let n = t;
t = e;
let r = this;
@@ -75900,30 +75904,30 @@ var lBe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- wK(t) || nK(6), n !== void 0 && !wK(n) && nK(7);
+ TK(t) || rK(6), n !== void 0 && !TK(n) && rK(7);
let r;
- if (fK(e)) {
- let i = UK(this), a = rq(i, e, void 0), o = !0;
+ if (pK(e)) {
+ let i = WK(this), a = iq(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? VK(i) : HK(i);
+ o ? HK(i) : UK(i);
}
- return BK(i, n), WK(r, i);
+ return VK(i, n), GK(r, i);
}
- if (!e || !CK(e)) {
- if (r = t(e), r === void 0 && (r = e), r === $G && (r = void 0), this.autoFreeze_ && kK(r, !0), n) {
+ if (!e || !wK(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === eK && (r = void 0), this.autoFreeze_ && AK(r, !0), n) {
let t = [], i = [];
- IK(NK).generateReplacementPatches_(e, r, {
+ LK(PK).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- nK(1, e);
+ rK(1, e);
}, this.produceWithPatches = (e, t) => {
- if (wK(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (TK(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -75932,18 +75936,18 @@ var lBe = class {
n,
r
];
- }, TK(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), TK(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), TK(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, EK(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), EK(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), EK(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- fK(e) || nK(8), dK(e) && (e = iq(e));
- let t = UK(this), n = rq(t, e, void 0);
- return n[tK].isManual_ = !0, HK(t), n;
+ pK(e) || rK(8), fK(e) && (e = aq(e));
+ let t = WK(this), n = iq(t, e, void 0);
+ return n[nK].isManual_ = !0, UK(t), n;
}
finishDraft(e, t) {
- let n = e && e[tK];
- (!n || !n.isManual_) && nK(9);
+ let n = e && e[nK];
+ (!n || !n.isManual_) && rK(9);
let { scope_: r } = n;
- return BK(r, t), WK(void 0, r);
+ return VK(r, t), GK(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -75967,48 +75971,48 @@ var lBe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = IK(NK).applyPatches_;
- return dK(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = LK(PK).applyPatches_;
+ return fK(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function rq(e, t, n, r) {
- let [i, a] = xK(t) ? IK(MK).proxyMap_(t, n) : SK(t) ? IK(MK).proxySet_(t, n) : oBe(t, n);
- return (n?.scope_ ?? zK()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? iBe(n, a, r) : a.callbacks_.push(function(e) {
+function iq(e, t, n, r) {
+ let [i, a] = SK(t) ? LK(NK).proxyMap_(t, n) : CK(t) ? LK(NK).proxySet_(t, n) : aBe(t, n);
+ return (n?.scope_ ?? BK()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? rBe(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 iq(e) {
- return dK(e) || nK(10, e), aq(e);
-}
function aq(e) {
- if (!fK(e) || jK(e)) return e;
- let t = e[tK], n, r = !0;
+ return fK(e) || rK(10, e), oq(e);
+}
+function oq(e) {
+ if (!pK(e) || MK(e)) return e;
+ let t = e[nK], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = OK(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = OK(e, !0);
- return hK(n, (e, t) => {
- yK(n, e, aq(t));
+ t.finalized_ = !0, n = kK(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = kK(e, !0);
+ return gK(n, (e, t) => {
+ bK(n, e, oq(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var oq = new lBe().produce, sq = (e) => e;
+var sq = new cBe().produce, cq = (e) => e;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function cq(e) {
+function lq(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var uBe = cq(), dBe = cq, fBe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? ZG : ZG.apply(null, arguments);
+var lBe = lq(), uBe = lq, dBe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? QG : QG.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function lq(e, t) {
+function uq(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(Wq(0));
+ if (!r) throw Error(Gq(0));
return {
type: e,
payload: r.payload,
@@ -76021,9 +76025,9 @@ function lq(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => QG(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => $G(t) && t.type === e, n;
}
-var uq = class e extends Array {
+var dq = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -76037,29 +76041,29 @@ var uq = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function dq(e) {
- return fK(e) ? oq(e, () => {}) : e;
+function fq(e) {
+ return pK(e) ? sq(e, () => {}) : e;
}
-function fq(e, t, n) {
+function pq(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function pBe(e) {
+function fBe(e) {
return typeof e == "boolean";
}
-var mBe = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new uq();
- return t && (pBe(t) ? a.push(uBe) : a.push(dBe(t.extraArgument))), a;
-}, pq = "RTK_autoBatch", mq = () => (e) => ({
+var pBe = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new dq();
+ return t && (fBe(t) ? a.push(lBe) : a.push(uBe(t.extraArgument))), a;
+}, mq = "RTK_autoBatch", hq = () => (e) => ({
payload: e,
- meta: { [pq]: !0 }
-}), hq = (e) => (t) => {
+ meta: { [mq]: !0 }
+}), gq = (e) => (t) => {
setTimeout(t, e);
-}, hBe = (e, t) => (n) => {
+}, mBe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, gq = (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 ? hBe(window.requestAnimationFrame, 100) : hq(10) : e.type === "callback" ? e.queueNotification : hq(e.timeout), l = () => {
+}, _q = (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 ? mBe(window.requestAnimationFrame, 100) : gq(10) : e.type === "callback" ? e.queueNotification : gq(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -76071,37 +76075,37 @@ var mBe = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[pq], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[mq], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, gBe = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new uq(e);
- return n && r.push(gq(typeof n == "object" ? n : void 0)), r;
+}, hBe = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new dq(e);
+ return n && r.push(_q(typeof n == "object" ? n : void 0)), r;
};
-function _Be(e) {
- let t = mBe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function gBe(e) {
+ let t = pBe(), { 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 (JG(n)) c = XG(n);
- else throw Error(Wq(1));
+ else if (YG(n)) c = ZG(n);
+ else throw Error(Gq(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = ZG;
- i && (u = fBe({
+ let u = QG;
+ i && (u = dBe({
trace: !1,
...typeof i == "object" && i
}));
- let d = gBe(Yze(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return YG(c, o, p);
+ let d = hBe(Jze(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return XG(c, o, p);
}
-function _q(e) {
+function vq(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(Wq(28));
- if (r in t) throw Error(Wq(29));
+ if (!r) throw Error(Gq(28));
+ if (r in t) throw Error(Gq(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -76126,25 +76130,25 @@ function _q(e) {
r
];
}
-function vBe(e) {
+function _Be(e) {
return typeof e == "function";
}
-function yBe(e, t) {
- let [n, r, i] = _q(t), a;
- if (vBe(e)) a = () => dq(e());
+function vBe(e, t) {
+ let [n, r, i] = vq(t), a;
+ if (_Be(e)) a = () => fq(e());
else {
- let t = dq(e);
+ let t = fq(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 (dK(e)) {
+ if (fK(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (fK(e)) return oq(e, (e) => n(e, t));
+ if (pK(e)) return sq(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -76159,20 +76163,20 @@ function yBe(e, t) {
}
return o.getInitialState = a, o;
}
-var bBe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", xBe = (e = 21) => {
+var yBe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", bBe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += bBe[Math.random() * 64 | 0];
+ for (; n--;) t += yBe[Math.random() * 64 | 0];
return t;
-}, SBe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function CBe(e, t) {
+}, xBe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function SBe(e, t) {
return `${e}/${t}`;
}
-function wBe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[SBe];
+function CBe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[xBe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(Wq(11));
- let i = (typeof e.reducers == "function" ? e.reducers(EBe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(Gq(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(TBe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -76180,8 +76184,8 @@ function wBe({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(Wq(12));
- if (n in o.sliceCaseReducersByType) throw Error(Wq(13));
+ if (!n) throw Error(Gq(12));
+ if (n in o.sliceCaseReducersByType) throw Error(Gq(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -76200,17 +76204,17 @@ function wBe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: CBe(n, r),
+ type: SBe(n, r),
createNotation: typeof e.reducers == "function"
};
- OBe(a) ? ABe(o, a, s, t) : DBe(o, a, s);
+ DBe(a) ? kBe(o, a, s, t) : EBe(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? _q(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? vq(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return yBe(e.initialState, (e) => {
+ return vBe(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);
@@ -76227,12 +76231,12 @@ function wBe({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = fq(d, r, m)), i;
+ return i === void 0 && n && (i = pq(d, r, m)), i;
}
function i(t = l) {
- return fq(fq(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return pq(pq(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = TBe(a, t, () => fq(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = wBe(a, t, () => pq(d, t, m), n);
return r;
});
}
@@ -76266,15 +76270,15 @@ function wBe({ creators: e } = {}) {
return g;
};
}
-function TBe(e, t, n, r) {
+function wBe(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 vq = /* @__PURE__ */ wBe();
-function EBe() {
+var yq = /* @__PURE__ */ CBe();
+function TBe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -76298,53 +76302,53 @@ function EBe() {
asyncThunk: e
};
}
-function DBe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function EBe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !kBe(r)) throw Error(Wq(17));
+ if (n && !OBe(r)) throw Error(Gq(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? lq(e, o) : lq(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? uq(e, o) : uq(e));
}
-function OBe(e) {
+function DBe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function kBe(e) {
+function OBe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function ABe({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(Wq(18));
+function kBe({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(Gq(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 || yq,
- pending: s || yq,
- rejected: c || yq,
- settled: l || yq
+ fulfilled: o || bq,
+ pending: s || bq,
+ rejected: c || bq,
+ settled: l || bq
});
}
-function yq() {}
-var jBe = "task", bq = "listener", xq = "completed", Sq = "cancelled", MBe = `task-${Sq}`, NBe = `task-${xq}`, Cq = `${bq}-${Sq}`, PBe = `${bq}-${xq}`, wq = class {
+function bq() {}
+var ABe = "task", xq = "listener", Sq = "completed", Cq = "cancelled", jBe = `task-${Cq}`, MBe = `task-${Sq}`, wq = `${xq}-${Cq}`, NBe = `${xq}-${Sq}`, Tq = class {
constructor(e) {
- this.code = e, this.message = `${jBe} ${Sq} (reason: ${e})`;
+ this.code = e, this.message = `${ABe} ${Cq} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, Tq = (e, t) => {
- if (typeof e != "function") throw TypeError(Wq(32));
-}, Eq = () => {}, Dq = (e, t = Eq) => (e.catch(t), e), Oq = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), kq = (e) => {
- if (e.aborted) throw new wq(e.reason);
+}, Eq = (e, t) => {
+ if (typeof e != "function") throw TypeError(Gq(32));
+}, Dq = () => {}, Oq = (e, t = Dq) => (e.catch(t), e), kq = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), Aq = (e) => {
+ if (e.aborted) throw new Tq(e.reason);
};
-function Aq(e, t) {
- let n = Eq;
+function jq(e, t) {
+ let n = Dq;
return new Promise((r, i) => {
- let a = () => i(new wq(e.reason));
- e.aborted ? a() : (n = Oq(e, a), t.finally(() => n()).then(r, i));
+ let a = () => i(new Tq(e.reason));
+ e.aborted ? a() : (n = kq(e, a), t.finally(() => n()).then(r, i));
}).finally(() => {
- n = Eq;
+ n = Dq;
});
}
-var FBe = async (e, t) => {
+var PBe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -76352,40 +76356,40 @@ var FBe = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof wq ? "cancelled" : "rejected",
+ status: e instanceof Tq ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, jq = (e) => (t) => Dq(Aq(e, t).then((t) => (kq(e), t))), Mq = (e) => {
- let t = jq(e);
+}, Mq = (e) => (t) => Oq(jq(e, t).then((t) => (Aq(e), t))), Nq = (e) => {
+ let t = Mq(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: Nq } = Object, Pq = {}, Fq = "listenerMiddleware", IBe = (e, t) => {
- let n = (t) => Oq(e, () => t.abort(e.reason));
+}, { assign: Pq } = Object, Fq = {}, Iq = "listenerMiddleware", FBe = (e, t) => {
+ let n = (t) => kq(e, () => t.abort(e.reason));
return (r, i) => {
- Tq(r, "taskExecutor");
+ Eq(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = FBe(async () => {
- kq(e), kq(a.signal);
+ let o = PBe(async () => {
+ Aq(e), Aq(a.signal);
let t = await r({
- pause: jq(a.signal),
- delay: Mq(a.signal),
+ pause: Mq(a.signal),
+ delay: Nq(a.signal),
signal: a.signal
});
- return kq(a.signal), t;
- }, () => a.abort(NBe));
- return i?.autoJoin && t.push(o.catch(Eq)), {
- result: jq(e)(o),
+ return Aq(a.signal), t;
+ }, () => a.abort(MBe));
+ return i?.autoJoin && t.push(o.catch(Dq)), {
+ result: Mq(e)(o),
cancel() {
- a.abort(MBe);
+ a.abort(jBe);
}
};
};
-}, LBe = (e, t) => {
+}, IBe = (e, t) => {
let n = async (n, r) => {
- kq(t);
+ Aq(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -76403,47 +76407,47 @@ var FBe = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await Aq(t, Promise.race(a));
- return kq(t), e;
+ let e = await jq(t, Promise.race(a));
+ return Aq(t), e;
} finally {
i();
}
};
- return ((e, t) => Dq(n(e, t)));
-}, Iq = (e) => {
+ return ((e, t) => Oq(n(e, t)));
+}, Lq = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = lq(t).match;
+ if (t) i = uq(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(Wq(21));
- return Tq(a, "options.listener"), {
+ else if (!i) throw Error(Gq(21));
+ return Eq(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, Lq = /* @__PURE__ */ Nq((e) => {
- let { type: t, predicate: n, effect: r } = Iq(e);
+}, Rq = /* @__PURE__ */ Pq((e) => {
+ let { type: t, predicate: n, effect: r } = Lq(e);
return {
- id: xBe(),
+ id: bBe(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(Wq(22));
+ throw Error(Gq(22));
}
};
-}, { withTypes: () => Lq }), Rq = (e, t) => {
- let { type: n, effect: r, predicate: i } = Iq(t);
+}, { withTypes: () => Rq }), zq = (e, t) => {
+ let { type: n, effect: r, predicate: i } = Lq(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, zq = (e) => {
+}, Bq = (e) => {
e.pending.forEach((e) => {
- e.abort(Cq);
+ e.abort(wq);
});
-}, RBe = (e, t) => () => {
- for (let e of t.keys()) zq(e);
+}, LBe = (e, t) => () => {
+ for (let e of t.keys()) Bq(e);
e.clear();
-}, Bq = (e, t, n) => {
+}, Vq = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -76451,74 +76455,74 @@ var FBe = async (e, t) => {
throw e;
}, 0);
}
-}, Vq = /* @__PURE__ */ Nq(/* @__PURE__ */ lq(`${Fq}/add`), { withTypes: () => Vq }), zBe = /* @__PURE__ */ lq(`${Fq}/removeAll`), Hq = /* @__PURE__ */ Nq(/* @__PURE__ */ lq(`${Fq}/remove`), { withTypes: () => Hq }), BBe = (...e) => {
- console.error(`${Fq}/error`, ...e);
-}, Uq = (e = {}) => {
+}, Hq = /* @__PURE__ */ Pq(/* @__PURE__ */ uq(`${Iq}/add`), { withTypes: () => Hq }), RBe = /* @__PURE__ */ uq(`${Iq}/removeAll`), Uq = /* @__PURE__ */ Pq(/* @__PURE__ */ uq(`${Iq}/remove`), { withTypes: () => Uq }), zBe = (...e) => {
+ console.error(`${Iq}/error`, ...e);
+}, Wq = (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 = BBe } = e;
- Tq(o, "onError");
+ }, { extra: a, onError: o = zBe } = e;
+ Eq(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && zq(e);
+ e.unsubscribe(), t?.cancelActive && Bq(e);
}), c = ((e) => {
- let n = Rq(t, e) ?? Lq(e);
+ let n = zq(t, e) ?? Rq(e);
return s(n);
});
- Nq(c, { withTypes: () => c });
+ Pq(c, { withTypes: () => c });
let l = (e) => {
- let n = Rq(t, e);
- return n && (n.unsubscribe(), e.cancelActive && zq(n)), !!n;
+ let n = zq(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && Bq(n)), !!n;
};
- Nq(l, { withTypes: () => l });
+ Pq(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = LBe(c, u.signal), f = [];
+ let u = new AbortController(), d = IBe(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, Nq({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, Pq({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: Mq(u.signal),
- pause: jq(u.signal),
+ delay: Nq(u.signal),
+ pause: Mq(u.signal),
extra: a,
signal: u.signal,
- fork: IBe(u.signal, f),
+ fork: FBe(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(Cq), n.delete(e));
+ e !== u && (e.abort(wq), n.delete(e));
});
},
cancel: () => {
- u.abort(Cq), e.pending.delete(u);
+ u.abort(wq), e.pending.delete(u);
},
throwIfCancelled: () => {
- kq(u.signal);
+ Aq(u.signal);
}
})));
} catch (e) {
- e instanceof wq || Bq(o, e, { raisedBy: "effect" });
+ e instanceof Tq || Vq(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(PBe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(NBe), i(e), e.pending.delete(u);
}
- }, d = RBe(t, n);
+ }, d = LBe(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!QG(r)) return n(r);
- if (Vq.match(r)) return c(r.payload);
- if (zBe.match(r)) {
+ if (!$G(r)) return n(r);
+ if (Hq.match(r)) return c(r.payload);
+ if (RBe.match(r)) {
d();
return;
}
- if (Hq.match(r)) return l(r.payload);
+ if (Uq.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === Pq) throw Error(Wq(23));
+ if (i === Fq) throw Error(Gq(23));
return i;
}, s;
try {
@@ -76529,13 +76533,13 @@ var FBe = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, Bq(o, e, { raisedBy: "predicate" });
+ s = !1, Vq(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = Pq;
+ i = Fq;
}
return s;
},
@@ -76544,12 +76548,12 @@ var FBe = async (e, t) => {
clearListeners: d
};
};
-function Wq(e) {
+function Gq(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 Gq = vq({
+var Kq = yq({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -76577,23 +76581,23 @@ var Gq = vq({
e.scale = t.payload;
}
}
-}), Kq = Gq.actions, VBe = Kq.setMargin, HBe = Kq.setLayout, UBe = Kq.setChartSize, WBe = Kq.setScale, GBe = Gq.reducer;
+}), qq = Kq.actions, BBe = qq.setMargin, VBe = qq.setLayout, HBe = qq.setChartSize, UBe = qq.setScale, WBe = Kq.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function qq(e, t, n) {
+function Jq(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 Jq(e) {
+function Yq(e) {
return Number.isFinite(e);
}
-function Yq(e) {
+function Xq(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function Xq(e, t) {
+function Zq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -76603,30 +76607,30 @@ function Xq(e, t) {
}
return n;
}
-function Zq(e) {
+function Qq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Xq(Object(n), !0).forEach(function(t) {
- KBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Xq(Object(n)).forEach(function(t) {
+ t % 2 ? Zq(Object(n), !0).forEach(function(t) {
+ GBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Zq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KBe(e, t, n) {
- return (t = qBe(t)) in e ? Object.defineProperty(e, t, {
+function GBe(e, t, n) {
+ return (t = KBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qBe(e) {
- var t = JBe(e, "string");
+function KBe(e) {
+ var t = qBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JBe(e, t) {
+function qBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -76636,72 +76640,72 @@ function JBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Qq(e, t, n) {
- return TU(e) || TU(t) ? n : yU(t) ? fU(e, t, n) : typeof t == "function" ? t(e) : n;
+function $q(e, t, n) {
+ return EU(e) || EU(t) ? n : bU(t) ? pU(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var YBe = (e, t, n) => {
+var JBe = (e, t, n) => {
if (t && n) {
var r = n.width, i = n.height, a = t.align, o = t.verticalAlign, s = t.layout, c = t.position, l = t.offset, u = l === void 0 ? 0 : l;
if (c != null) {
- if (NU(c)) {
- if (c === "top" && vU(e.top)) return Zq(Zq({}, e), {}, { top: e.top + (i || 0) + u });
- if (c === "bottom" && vU(e.bottom)) return Zq(Zq({}, e), {}, { bottom: e.bottom + (i || 0) + u });
- if (c === "left" && vU(e.left)) return Zq(Zq({}, e), {}, { left: e.left + (r || 0) + u });
- if (c === "right" && vU(e.right)) return Zq(Zq({}, e), {}, { right: e.right + (r || 0) + u });
+ if (PU(c)) {
+ if (c === "top" && yU(e.top)) return Qq(Qq({}, e), {}, { top: e.top + (i || 0) + u });
+ if (c === "bottom" && yU(e.bottom)) return Qq(Qq({}, e), {}, { bottom: e.bottom + (i || 0) + u });
+ if (c === "left" && yU(e.left)) return Qq(Qq({}, e), {}, { left: e.left + (r || 0) + u });
+ if (c === "right" && yU(e.right)) return Qq(Qq({}, e), {}, { right: e.right + (r || 0) + u });
}
return e;
}
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && vU(e[a])) return Zq(Zq({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && vU(e[o])) return Zq(Zq({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && yU(e[a])) return Qq(Qq({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && yU(e[o])) return Qq(Qq({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, $q = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", eJ = (e, t, n, r) => {
+}, eJ = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", tJ = (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;
-}, tJ = (e, t, n) => {
+}, nJ = (e, t, n) => {
if (!e) return null;
var r = e.duplicateDomain, i = e.type, a = e.range, o = e.scale, s = e.realScaleType, c = e.isCategorical, l = e.categoricalDomain, u = e.tickCount, d = e.ticks, f = e.niceTicks, p = e.axisType;
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 ? hU(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? gU(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 Jq(i) ? {
+ return Yq(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(DU) : c && l ? l.map((e, t) => {
+ }).filter(OU) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return Jq(n) ? {
+ return Yq(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(DU) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(OU) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return Jq(n) ? {
+ return Yq(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(DU) : o.domain().map((e, t) => {
+ }).filter(OU) : o.domain().map((e, t) => {
var n = o.map(e);
- return Jq(n) ? {
+ return Yq(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(DU);
-}, nJ = (e, t) => {
- if (!t || t.length !== 2 || !vU(t[0]) || !vU(t[1])) return e;
+ }).filter(OU);
+}, rJ = (e, t) => {
+ if (!t || t.length !== 2 || !yU(t[0]) || !yU(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 (!vU(e[0]) || e[0] < n) && (i[0] = n), (!vU(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, XBe = {
+ return (!yU(e[0]) || e[0] < n) && (i[0] = n), (!yU(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
+}, YBe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -76709,16 +76713,16 @@ var YBe = (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 = gU(c) ? l : c;
+ var c = s[1], l = s[0], u = _U(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: TRe,
- none: wW,
- silhouette: ERe,
- wiggle: DRe,
+ expand: wRe,
+ none: TW,
+ silhouette: TRe,
+ wiggle: ERe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -76726,70 +76730,70 @@ var YBe = (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 = gU(o[1]) ? o[0] : o[1];
+ var s = _U(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, ZBe = (e, t, n) => {
- var r = XBe[n] ?? wW, i = wRe().keys(t).value((e, t) => Number(Qq(e, t, 0))).order(TW).offset(r)(e);
+}, XBe = (e, t, n) => {
+ var r = YBe[n] ?? TW, i = CRe().keys(t).value((e, t) => Number($q(e, t, 0))).order(EW).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = Qq(e[i], t[r], 0);
- Array.isArray(a) && a.length === 2 && vU(a[0]) && vU(a[1]) && (n[0] = a[0], n[1] = a[1]);
+ var a = $q(e[i], t[r], 0);
+ Array.isArray(a) && a.length === 2 && yU(a[0]) && yU(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function rJ(e) {
+function iJ(e) {
return e == null ? void 0 : String(e);
}
-function iJ(e) {
+function aJ(e) {
var t = e.axis, n = e.ticks, r = e.bandSize, i = e.entry, a = e.index, o = e.dataKey;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !TU(i[t.dataKey])) {
- var s = wU(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !EU(i[t.dataKey])) {
+ var s = TU(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 = Qq(i, TU(o) ? t.dataKey : o), l = t.scale.map(c);
- return vU(l) ? l : null;
+ var c = $q(i, EU(o) ? t.dataKey : o), l = t.scale.map(c);
+ return yU(l) ? l : null;
}
-var aJ = (e) => {
+var oJ = (e) => {
var t = e.axis, n = e.ticks, r = e.offset, i = e.bandSize, a = e.entry, o = e.index;
if (t.type === "category") return n[o] ? n[o].coordinate + r : null;
- var s = Qq(a, t.dataKey, t.scale.domain()[o]);
- if (TU(s)) return null;
+ var s = $q(a, t.dataKey, t.scale.domain()[o]);
+ if (EU(s)) return null;
var c = t.scale.map(s);
- return vU(c) ? c - i / 2 + r : null;
-}, oJ = (e) => {
+ return yU(c) ? c - i / 2 + r : null;
+}, sJ = (e) => {
var t = e.numericAxis, 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];
-}, QBe = (e) => {
- var t = e.flat(2).filter(vU);
+}, ZBe = (e) => {
+ var t = e.flat(2).filter(yU);
return [Math.min(...t), Math.max(...t)];
-}, $Be = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], eVe = (e, t, n) => {
- if (e != null && Object.keys(e).length !== 0) return $Be(Object.keys(e).reduce((r, i) => {
+}, QBe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], $Be = (e, t, n) => {
+ if (e != null && Object.keys(e).length !== 0) return QBe(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var o = a.stackedData.reduce((e, r) => {
- var i = QBe(qq(r, t, n));
- return !Jq(i[0]) || !Jq(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = ZBe(Jq(r, t, n));
+ return !Yq(i[0]) || !Yq(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(o[0], r[0]), Math.max(o[1], r[1])];
}, [Infinity, -Infinity]));
-}, sJ = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, cJ = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, lJ = (e, t, n) => {
+}, cJ = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, lJ = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, uJ = (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 = LG(t, (e) => e.coordinate), a = [], o = 0, s = 1, c = i.length; s < c; s++) {
+ for (var i = RG(t, (e) => e.coordinate), a = [], o = 0, s = 1, c = i.length; s < c; s++) {
var l = (i[s]?.coordinate || 0) - (i[s - 1]?.coordinate || 0);
a.push(l), o = Math.max(l, o);
}
@@ -76799,26 +76803,26 @@ var aJ = (e) => {
}
return n ? void 0 : 0;
};
-function uJ(e) {
+function dJ(e) {
var t = e.tooltipEntrySettings, n = e.dataKey, r = e.payload, i = e.value, a = e.name;
- return Zq(Zq({}, t), {}, {
+ return Qq(Qq({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function dJ(e, t) {
+function fJ(e, t) {
if (e != null) return String(e);
if (typeof t == "string") return t;
}
-var tVe = (e, t) => {
+var eVe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, nVe = (e, t) => t === "centric" ? e.angle : e.radius, fJ = (e) => e.layout.width, pJ = (e) => e.layout.height, rVe = (e) => e.layout.scale, mJ = (e) => e.layout.margin, hJ = Y((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), gJ = Y((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), iVe = "data-recharts-item-index";
+}, tVe = (e, t) => t === "centric" ? e.angle : e.radius, pJ = (e) => e.layout.width, mJ = (e) => e.layout.height, nVe = (e) => e.layout.scale, hJ = (e) => e.layout.margin, gJ = Y((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), _J = Y((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), rVe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function _J(e, t) {
+function vJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -76828,30 +76832,30 @@ function _J(e, t) {
}
return n;
}
-function vJ(e) {
+function yJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? _J(Object(n), !0).forEach(function(t) {
- aVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _J(Object(n)).forEach(function(t) {
+ t % 2 ? vJ(Object(n), !0).forEach(function(t) {
+ iVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function aVe(e, t, n) {
- return (t = oVe(t)) in e ? Object.defineProperty(e, t, {
+function iVe(e, t, n) {
+ return (t = aVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function oVe(e) {
- var t = sVe(e, "string");
+function aVe(e) {
+ var t = oVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sVe(e, t) {
+function oVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -76861,67 +76865,67 @@ function sVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var cVe = (e) => e.brush.height;
+var sVe = (e) => e.brush.height;
+function cVe(e) {
+ return _J(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+}
function lVe(e) {
- return gJ(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return _J(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function uVe(e) {
- return gJ(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return gJ(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + (typeof t.height == "number" ? t.height : 30) : e, 0);
}
function dVe(e) {
- return hJ(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + (typeof t.height == "number" ? t.height : 30) : e, 0);
+ return gJ(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + (typeof t.height == "number" ? t.height : 30) : e, 0);
}
-function fVe(e) {
- return hJ(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + (typeof t.height == "number" ? t.height : 30) : e, 0);
-}
-var yJ = Y([
- fJ,
+var bJ = Y([
pJ,
mJ,
+ hJ,
+ sVe,
cVe,
lVe,
uVe,
dVe,
- fVe,
- RG,
- Bze
+ zG,
+ zze
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = vJ(vJ({}, {
+ }, d = yJ(yJ({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = YBe(d, c, l);
+ d.bottom += r, d = JBe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return vJ(vJ({ brushBottom: f }, d), {}, {
+ return yJ(yJ({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), bJ = Y(yJ, (e) => ({
+}), xJ = Y(bJ, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), xJ = Y(fJ, pJ, (e, t) => ({
+})), SJ = Y(pJ, mJ, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), pVe = /*#__PURE__*/ (0, b.createContext)(null), SJ = () => (0, b.useContext)(pVe) != null, CJ = (e) => e.brush, wJ = Y([
- CJ,
- yJ,
- mJ
+})), fVe = /*#__PURE__*/ (0, b.createContext)(null), CJ = () => (0, b.useContext)(fVe) != null, wJ = (e) => e.brush, TJ = Y([
+ wJ,
+ bJ,
+ hJ
], (e, t, n) => ({
height: e.height,
- x: vU(e.x) ? e.x : t.left,
- y: vU(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),
- width: vU(e.width) ? e.width : t.width
+ x: yU(e.x) ? e.x : t.left,
+ y: yU(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),
+ width: yU(e.width) ? e.width : t.width
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function mVe(e, t, { signal: n, edges: r } = {}) {
+function pVe(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 = () => {
@@ -76946,11 +76950,11 @@ function mVe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function hVe(e, t = 0, n = {}) {
+function mVe(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 = mVe(function(...t) {
+ let s, c = null, l = pVe(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);
@@ -76959,9 +76963,9 @@ function hVe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function gVe(e, t = 0, n = {}) {
+function hVe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return hVe(e, t, {
+ return mVe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -76969,7 +76973,7 @@ function gVe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var TJ = function(e, t) {
+var EJ = 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.");
@@ -76978,7 +76982,7 @@ var TJ = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, EJ = {
+}, DJ = {
width: "100%",
height: "100%",
debounce: 0,
@@ -76987,36 +76991,36 @@ var TJ = function(e, t) {
width: -1,
height: -1
}
-}, DJ = (e, t, n) => {
- var r = n.width, i = r === void 0 ? EJ.width : r, a = n.height, o = a === void 0 ? EJ.height : a, s = n.aspect, c = n.maxHeight, l = _U(i) ? e : Number(i), u = _U(o) ? t : Number(o);
+}, OJ = (e, t, n) => {
+ var r = n.width, i = r === void 0 ? DJ.width : r, a = n.height, o = a === void 0 ? DJ.height : a, s = n.aspect, c = n.maxHeight, l = vU(i) ? e : Number(i), u = vU(o) ? t : Number(o);
return s && s > 0 && (l ? u = l / s : u && (l = u * s), c && u != null && u > c && (u = c)), {
calculatedWidth: l,
calculatedHeight: u
};
-}, _Ve = {
+}, gVe = {
width: 0,
height: 0,
overflow: "visible"
-}, vVe = {
+}, _Ve = {
width: 0,
overflowX: "visible"
-}, yVe = {
+}, vVe = {
height: 0,
overflowY: "visible"
-}, bVe = {}, xVe = (e) => {
- var t = e.width, n = e.height, r = _U(t), i = _U(n);
- return r && i ? _Ve : r ? vVe : i ? yVe : bVe;
+}, yVe = {}, bVe = (e) => {
+ var t = e.width, n = e.height, r = vU(t), i = vU(n);
+ return r && i ? gVe : r ? _Ve : i ? vVe : yVe;
};
-function SVe(e) {
+function xVe(e) {
var t = e.width, n = e.height, r = e.aspect, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = EJ.width, a = EJ.height) : i === void 0 ? i = r && r > 0 ? void 0 : EJ.width : a === void 0 && (a = r && r > 0 ? void 0 : EJ.height), {
+ return i === void 0 && a === void 0 ? (i = DJ.width, a = DJ.height) : i === void 0 ? i = r && r > 0 ? void 0 : DJ.width : a === void 0 && (a = r && r > 0 ? void 0 : DJ.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-var CVe = [
+var SVe = [
"aspect",
"initialDimension",
"width",
@@ -77031,16 +77035,16 @@ var CVe = [
"onResize",
"style"
];
-function OJ() {
- return OJ = Object.assign ? Object.assign.bind() : function(e) {
+function kJ() {
+ return kJ = 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;
- }, OJ.apply(null, arguments);
+ }, kJ.apply(null, arguments);
}
-function kJ(e, t) {
+function AJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -77050,30 +77054,30 @@ function kJ(e, t) {
}
return n;
}
-function AJ(e) {
+function jJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? kJ(Object(n), !0).forEach(function(t) {
- wVe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kJ(Object(n)).forEach(function(t) {
+ t % 2 ? AJ(Object(n), !0).forEach(function(t) {
+ CVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wVe(e, t, n) {
- return (t = TVe(t)) in e ? Object.defineProperty(e, t, {
+function CVe(e, t, n) {
+ return (t = wVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TVe(e) {
- var t = EVe(e, "string");
+function wVe(e) {
+ var t = TVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EVe(e, t) {
+function TVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -77083,25 +77087,25 @@ function EVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function DVe(e, t) {
- return jVe(e) || AVe(e, t) || kVe(e, t) || OVe();
+function EVe(e, t) {
+ return AVe(e) || kVe(e, t) || OVe(e, t) || DVe();
}
-function OVe() {
+function DVe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function kVe(e, t) {
+function OVe(e, t) {
if (e) {
- if (typeof e == "string") return jJ(e, t);
+ if (typeof e == "string") return MJ(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? jJ(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? MJ(e, t) : void 0;
}
}
-function jJ(e, t) {
+function MJ(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function AVe(e, t) {
+function kVe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -77122,19 +77126,19 @@ function AVe(e, t) {
return s;
}
}
-function jVe(e) {
+function AVe(e) {
if (Array.isArray(e)) return e;
}
-function MVe(e, t) {
+function jVe(e, t) {
if (e == null) return {};
- var n, r, i = NVe(e, t);
+ var n, r, i = MVe(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 NVe(e, t) {
+function MVe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -77143,21 +77147,21 @@ function NVe(e, t) {
}
return n;
}
-var MJ = /*#__PURE__*/ (0, b.createContext)(EJ.initialDimension);
-function PVe(e) {
- return Yq(e.width) && Yq(e.height);
+var NJ = /*#__PURE__*/ (0, b.createContext)(DJ.initialDimension);
+function NVe(e) {
+ return Xq(e.width) && Xq(e.height);
}
-function NJ(e) {
+function PJ(e) {
var t = e.children, n = e.width, r = e.height, i = (0, b.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return PVe(i) ? /*#__PURE__*/ b.createElement(MJ.Provider, { value: i }, t) : null;
+ return NVe(i) ? /*#__PURE__*/ b.createElement(NJ.Provider, { value: i }, t) : null;
}
-var PJ = () => (0, b.useContext)(MJ), FVe = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.aspect, r = e.initialDimension, i = r === void 0 ? EJ.initialDimension : r, a = e.width, o = e.height, s = e.minWidth, c = s === void 0 ? EJ.minWidth : s, l = e.minHeight, u = e.maxHeight, d = e.children, f = e.debounce, p = f === void 0 ? EJ.debounce : f, m = e.id, h = e.className, g = e.onResize, _ = e.style, v = _ === void 0 ? {} : _, y = MVe(e, CVe), x = (0, b.useRef)(null), S = (0, b.useRef)();
+var FJ = () => (0, b.useContext)(NJ), PVe = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = e.aspect, r = e.initialDimension, i = r === void 0 ? DJ.initialDimension : r, a = e.width, o = e.height, s = e.minWidth, c = s === void 0 ? DJ.minWidth : s, l = e.minHeight, u = e.maxHeight, d = e.children, f = e.debounce, p = f === void 0 ? DJ.debounce : f, m = e.id, h = e.className, g = e.onResize, _ = e.style, v = _ === void 0 ? {} : _, y = jVe(e, SVe), x = (0, b.useRef)(null), S = (0, b.useRef)();
S.current = g, (0, b.useImperativeHandle)(t, () => x.current);
- var C = DVe((0, b.useState)({
+ var C = EVe((0, b.useState)({
containerWidth: i.width,
containerHeight: i.height
}), 2), w = C[0], T = C[1], E = (0, b.useCallback)((e, t) => {
@@ -77170,7 +77174,7 @@ var PJ = () => (0, b.useContext)(MJ), FVe = /*#__PURE__*/ (0, b.forwardRef)((e,
});
}, []);
(0, b.useEffect)(() => {
- if (x.current == null || typeof ResizeObserver > "u") return OU;
+ if (x.current == null || typeof ResizeObserver > "u") return kU;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -77178,7 +77182,7 @@ var PJ = () => (0, b.useContext)(MJ), FVe = /*#__PURE__*/ (0, b.forwardRef)((e,
E(i, a), (t = S.current) == null || t.call(S, i, a);
}
};
- p > 0 && (e = gVe(e, p, {
+ p > 0 && (e = hVe(e, p, {
trailing: !0,
leading: !1
}));
@@ -77188,17 +77192,17 @@ var PJ = () => (0, b.useContext)(MJ), FVe = /*#__PURE__*/ (0, b.forwardRef)((e,
};
}, [E, p]);
var D = w.containerWidth, O = w.containerHeight;
- TJ(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var k = DJ(D, O, {
+ EJ(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var k = OJ(D, O, {
width: a,
height: o,
aspect: n,
maxHeight: u
}), A = k.calculatedWidth, j = k.calculatedHeight;
- return TJ(D < 0 || O < 0 || A != null && A > 0 || j != null && j > 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.", A, j, a, o, c, l, n), /*#__PURE__*/ b.createElement("div", OJ({
+ return EJ(D < 0 || O < 0 || A != null && A > 0 || j != null && j > 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.", A, j, a, o, c, l, n), /*#__PURE__*/ b.createElement("div", kJ({
id: m ? `${m}` : void 0,
className: hy("recharts-responsive-container", h),
- style: AJ(AJ({}, v), {}, {
+ style: jJ(jJ({}, v), {}, {
width: a,
height: o,
minWidth: c,
@@ -77206,43 +77210,43 @@ var PJ = () => (0, b.useContext)(MJ), FVe = /*#__PURE__*/ (0, b.forwardRef)((e,
maxHeight: u
}),
ref: x
- }, y), /*#__PURE__*/ b.createElement("div", { style: xVe({
+ }, y), /*#__PURE__*/ b.createElement("div", { style: bVe({
width: a,
height: o
- }) }, /*#__PURE__*/ b.createElement(NJ, {
+ }) }, /*#__PURE__*/ b.createElement(PJ, {
width: A,
height: j
}, d)));
-}), FJ = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = PJ();
- if (Yq(n.width) && Yq(n.height)) return e.children;
- var r = SVe({
+}), IJ = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
+ var n = FJ();
+ if (Xq(n.width) && Xq(n.height)) return e.children;
+ var r = xVe({
width: e.width,
height: e.height,
aspect: e.aspect
- }), i = r.width, a = r.height, o = DJ(void 0, void 0, {
+ }), i = r.width, a = r.height, o = OJ(void 0, void 0, {
width: i,
height: a,
aspect: e.aspect,
maxHeight: e.maxHeight
}), s = o.calculatedWidth, c = o.calculatedHeight;
- return vU(s) && vU(c) ? /*#__PURE__*/ b.createElement(NJ, {
+ return yU(s) && yU(c) ? /*#__PURE__*/ b.createElement(PJ, {
width: s,
height: c
- }, e.children) : /*#__PURE__*/ b.createElement(FVe, OJ({}, e, {
+ }, e.children) : /*#__PURE__*/ b.createElement(PVe, kJ({}, e, {
width: i,
height: a,
ref: t
}));
-}), IJ = () => {
- var e = SJ(), t = J(bJ), n = J(wJ), r = J(CJ)?.padding;
+}), LJ = () => {
+ var e = CJ(), t = J(xJ), n = J(TJ), r = J(wJ)?.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
};
-}, IVe = {
+}, FVe = {
top: 0,
bottom: 0,
left: 0,
@@ -77250,16 +77254,16 @@ var PJ = () => (0, b.useContext)(MJ), FVe = /*#__PURE__*/ (0, b.forwardRef)((e,
width: 0,
height: 0,
brushBottom: 0
-}, LJ = () => J(yJ) ?? IVe, RJ = () => J(fJ), zJ = () => J(pJ), LVe = () => J((e) => e.layout.margin), BJ = (e) => e.layout.layoutType, VJ = () => J(BJ), HJ = () => {
- var e = VJ();
+}, RJ = () => J(bJ) ?? FVe, zJ = () => J(pJ), BJ = () => J(mJ), IVe = () => J((e) => e.layout.margin), VJ = (e) => e.layout.layoutType, HJ = () => J(VJ), UJ = () => {
+ var e = HJ();
if (e === "horizontal" || e === "vertical") return e;
-}, UJ = (e) => {
+}, WJ = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, WJ = () => J(UJ), RVe = () => VJ() !== void 0, GJ = (e) => {
- var t = OG(), n = SJ(), r = e.width, i = e.height, a = PJ(), o = r, s = i;
+}, GJ = () => J(WJ), LVe = () => HJ() !== void 0, KJ = (e) => {
+ var t = kG(), n = CJ(), r = e.width, i = e.height, a = FJ(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, b.useEffect)(() => {
- !n && Yq(o) && Yq(s) && t(UBe({
+ !n && Xq(o) && Xq(s) && t(HBe({
width: o,
height: s
}));
@@ -77269,7 +77273,7 @@ var PJ = () => (0, b.useContext)(MJ), FVe = /*#__PURE__*/ (0, b.forwardRef)((e,
o,
s
]), null;
-}, KJ = vq({
+}, qJ = yq({
name: "legend",
initialState: {
settings: {
@@ -77295,43 +77299,43 @@ var PJ = () => (0, b.useContext)(MJ), FVe = /*#__PURE__*/ (0, b.forwardRef)((e,
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(sq(t.payload));
+ e.payload.push(cq(t.payload));
},
- prepare: mq()
+ prepare: hq()
},
replaceLegendPayload: {
reducer(e, t) {
- var n = t.payload, r = n.prev, i = n.next, a = iq(e).payload.indexOf(sq(r));
- a > -1 && (e.payload[a] = sq(i));
+ var n = t.payload, r = n.prev, i = n.next, a = aq(e).payload.indexOf(cq(r));
+ a > -1 && (e.payload[a] = cq(i));
},
- prepare: mq()
+ prepare: hq()
},
removeLegendPayload: {
reducer(e, t) {
- var n = iq(e).payload.indexOf(sq(t.payload));
+ var n = aq(e).payload.indexOf(cq(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: mq()
+ prepare: hq()
}
}
-}), qJ = KJ.actions, JJ = qJ.setLegendSize, zVe = qJ.setLegendSettings, YJ = qJ.addLegendPayload, XJ = qJ.replaceLegendPayload, ZJ = qJ.removeLegendPayload, BVe = KJ.reducer, VVe = /* @__PURE__ */ o(((e) => {
+}), JJ = qJ.actions, YJ = JJ.setLegendSize, RVe = JJ.setLegendSettings, XJ = JJ.addLegendPayload, ZJ = JJ.replaceLegendPayload, QJ = JJ.removeLegendPayload, zVe = qJ.reducer, BVe = /* @__PURE__ */ o(((e) => {
var t = d();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ o(((e, t) => {
- t.exports = VVe();
+ t.exports = BVe();
})))();
-function HVe(e) {
+function VVe(e) {
e();
}
-function UVe() {
+function HVe() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- HVe(() => {
+ VVe(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -77353,12 +77357,12 @@ function UVe() {
}
};
}
-var QJ = {
+var $J = {
notify() {},
get: () => []
};
-function WVe(e, t) {
- let n, r = QJ, i = 0, a = !1;
+function UVe(e, t) {
+ let n, r = $J, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -77376,10 +77380,10 @@ function WVe(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = UVe());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = HVe());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = QJ);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = $J);
}
function f() {
a || (a = !0, u());
@@ -77398,44 +77402,44 @@ function WVe(e, t) {
};
return m;
}
-var GVe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, KVe = typeof navigator < "u" && navigator.product === "ReactNative", qVe = GVe || KVe ? b.useLayoutEffect : b.useEffect;
-function $J(e, t) {
+var WVe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, GVe = typeof navigator < "u" && navigator.product === "ReactNative", KVe = WVe || GVe ? b.useLayoutEffect : b.useEffect;
+function eY(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function JVe(e, t) {
- if ($J(e, t)) return !0;
+function qVe(e, t) {
+ if (eY(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]) || !$J(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !eY(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var YVe = /* @__PURE__ */ Symbol.for("react-redux-context"), XVe = typeof globalThis < "u" ? globalThis : {};
-function ZVe() {
+var JVe = /* @__PURE__ */ Symbol.for("react-redux-context"), YVe = typeof globalThis < "u" ? globalThis : {};
+function XVe() {
if (!b.createContext) return {};
- let e = XVe[YVe] ??= /* @__PURE__ */ new Map(), t = e.get(b.createContext);
+ let e = YVe[JVe] ??= /* @__PURE__ */ new Map(), t = e.get(b.createContext);
return t || (t = b.createContext(null), e.set(b.createContext, t)), t;
}
-var QVe = /* @__PURE__ */ ZVe();
-function $Ve(e) {
+var ZVe = /* @__PURE__ */ XVe();
+function QVe(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = b.useMemo(() => {
- let e = WVe(i);
+ let e = UVe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = b.useMemo(() => i.getState(), [i]);
- qVe(() => {
+ KVe(() => {
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 || QVe;
+ let s = n || ZVe;
return /* @__PURE__ */ b.createElement(s.Provider, { value: a }, t);
}
-var eHe = $Ve, tHe = /* @__PURE__ */ new Set([
+var $Ve = QVe, eHe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -77458,22 +77462,22 @@ var eHe = $Ve, tHe = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function nHe(e, t) {
+function tHe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function eY(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (tHe.has(n)) {
+function tY(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (eHe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!JVe(e[n], t[n])) return !1;
- } else if (!nHe(e[n], t[n])) return !1;
+ if (!qVe(e[n], t[n])) return !1;
+ } else if (!tHe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectLegendArea.js
-var rHe = Y([
- fJ,
+var nHe = Y([
pJ,
- mJ
+ mJ,
+ hJ
], (e, t, n) => ({
x: n.left || 0,
y: n.top || 0,
@@ -77482,7 +77486,7 @@ var rHe = Y([
}));
//#endregion
//#region node_modules/recharts/es6/cartesian/cartesianPositionToCSSTranslate.js
-function iHe(e, t) {
+function rHe(e, t) {
return e === "start" && t === "start" ? "" : `translate(${e === "inherit" ? "0" : {
start: "0",
middle: "-50%",
@@ -77495,35 +77499,35 @@ function iHe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var aHe = ["contextPayload"];
-function tY() {
- return tY = Object.assign ? Object.assign.bind() : function(e) {
+var iHe = ["contextPayload"];
+function nY() {
+ return nY = 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;
- }, tY.apply(null, arguments);
+ }, nY.apply(null, arguments);
}
-function oHe(e, t) {
- return uHe(e) || lHe(e, t) || cHe(e, t) || sHe();
+function aHe(e, t) {
+ return lHe(e) || cHe(e, t) || sHe(e, t) || oHe();
}
-function sHe() {
+function oHe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function cHe(e, t) {
+function sHe(e, t) {
if (e) {
- if (typeof e == "string") return nY(e, t);
+ if (typeof e == "string") return rY(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? nY(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? rY(e, t) : void 0;
}
}
-function nY(e, t) {
+function rY(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function lHe(e, t) {
+function cHe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -77544,10 +77548,10 @@ function lHe(e, t) {
return s;
}
}
-function uHe(e) {
+function lHe(e) {
if (Array.isArray(e)) return e;
}
-function rY(e, t) {
+function iY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -77557,30 +77561,30 @@ function rY(e, t) {
}
return n;
}
-function iY(e) {
+function aY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? rY(Object(n), !0).forEach(function(t) {
- dHe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rY(Object(n)).forEach(function(t) {
+ t % 2 ? iY(Object(n), !0).forEach(function(t) {
+ uHe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dHe(e, t, n) {
- return (t = fHe(t)) in e ? Object.defineProperty(e, t, {
+function uHe(e, t, n) {
+ return (t = dHe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fHe(e) {
- var t = pHe(e, "string");
+function dHe(e) {
+ var t = fHe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pHe(e, t) {
+function fHe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -77590,16 +77594,16 @@ function pHe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function mHe(e, t) {
+function pHe(e, t) {
if (e == null) return {};
- var n, r, i = hHe(e, t);
+ var n, r, i = mHe(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 mHe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -77608,30 +77612,30 @@ function hHe(e, t) {
}
return n;
}
-function gHe(e) {
+function hHe(e) {
return e.value;
}
-function _He(e) {
- var t = e.contextPayload, n = mHe(e, aHe), r = EG(t, e.payloadUniqBy, gHe), i = iY(iY({}, n), {}, { payload: r });
- return /*#__PURE__*/ b.isValidElement(e.content) ? /*#__PURE__*/ b.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ b.createElement(e.content, i) : /*#__PURE__*/ b.createElement(XRe, i);
+function gHe(e) {
+ var t = e.contextPayload, n = pHe(e, iHe), r = DG(t, e.payloadUniqBy, hHe), i = aY(aY({}, n), {}, { payload: r });
+ return /*#__PURE__*/ b.isValidElement(e.content) ? /*#__PURE__*/ b.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ b.createElement(e.content, i) : /*#__PURE__*/ b.createElement(YRe, i);
}
-function vHe(e) {
+function _He(e) {
return e === "left" || e === "right" || e === "insideLeft" || e === "insideRight" ? "vertical" : "horizontal";
}
-function yHe(e, t) {
- return t == null ? null : NU(t) ? rHe(e) : bJ(e);
+function vHe(e, t) {
+ return t == null ? null : PU(t) ? nHe(e) : xJ(e);
}
-function bHe(e, t, n) {
+function yHe(e, t, n) {
return e === "top" ? { top: n.height + t } : e === "bottom" ? { top: -n.height - t } : e === "left" ? { left: n.width + t } : e === "right" ? { left: -n.width - t } : {};
}
-function xHe(e, t, n, r, i, a) {
+function bHe(e, t, n, r, i, a) {
var o = t.layout, s = t.align, c = t.verticalAlign, 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 }), iY(iY({}, 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 }), aY(aY({}, l), u);
}
-function SHe(e) {
- var t = e.align, n = e.layout, r = e.verticalAlign, i = e.itemSorter, a = e.position, o = e.offset, s = OG();
+function xHe(e) {
+ var t = e.align, n = e.layout, r = e.verticalAlign, i = e.itemSorter, a = e.position, o = e.offset, s = kG();
return (0, b.useLayoutEffect)(() => {
- s(zVe({
+ s(RVe({
align: t,
layout: n,
verticalAlign: r,
@@ -77649,10 +77653,10 @@ function SHe(e) {
o
]), null;
}
-function CHe(e) {
- var t = e.width, n = e.height, r = OG();
+function SHe(e) {
+ var t = e.width, n = e.height, r = kG();
return (0, b.useLayoutEffect)(() => {
- r(JJ({
+ r(YJ({
width: t,
height: n
}));
@@ -77661,16 +77665,16 @@ function CHe(e) {
t,
n
]), (0, b.useLayoutEffect)(() => () => {
- r(JJ({
+ r(YJ({
width: 0,
height: 0
}));
}, [r]), null;
}
-function wHe(e, t, n, r) {
+function CHe(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var THe = {
+var wHe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -77680,10 +77684,10 @@ var THe = {
verticalAlign: "bottom",
offset: 0
};
-function EHe(e) {
- var t = FW(e, THe), n = e.layout && e.layout !== "auto" ? e.layout : vHe(t.position), r = Hze(), i = YLe(), a = LVe(), o = J((e) => yHe(e, t.position)), s = t.width, c = t.height, l = t.wrapperStyle, u = t.portal, d = u == null && (t.position == null || NU(t.position)), f = oHe(UG([r]), 2), p = f[0], m = f[1], h = RJ(), g = zJ();
+function THe(e) {
+ var t = IW(e, wHe), n = e.layout && e.layout !== "auto" ? e.layout : _He(t.position), r = Vze(), i = JLe(), a = IVe(), o = J((e) => vHe(e, t.position)), s = t.width, c = t.height, l = t.wrapperStyle, u = t.portal, d = u == null && (t.position == null || PU(t.position)), f = aHe(WG([r]), 2), p = f[0], m = f[1], h = zJ(), g = BJ();
if (h == null || g == null || t.position != null && o == null) return null;
- var _ = wHe(n, c, s, h - (a?.left || 0) - (a?.right || 0)), v = t.position == null ? null : MU({
+ var _ = CHe(n, c, s, h - (a?.left || 0) - (a?.right || 0)), v = t.position == null ? null : NU({
viewBox: o ?? {
x: 0,
y: 0,
@@ -77692,7 +77696,7 @@ function EHe(e) {
},
position: t.position,
offset: t.offset ?? 0
- }), y = bHe(t.position, t.offset ?? 0, p), x = n === "vertical" ? (o?.width ?? 0) / 2 : o?.width ?? 0, S = n === "horizontal" ? (o?.height ?? 0) / 2 : o?.height ?? 0, C = v ? {
+ }), y = yHe(t.position, t.offset ?? 0, p), x = n === "vertical" ? (o?.width ?? 0) / 2 : o?.width ?? 0, S = n === "horizontal" ? (o?.height ?? 0) / 2 : o?.height ?? 0, C = v ? {
width: "max-content",
height: "max-content",
maxWidth: x,
@@ -77700,8 +77704,8 @@ function EHe(e) {
overflowY: "auto",
top: v.y + (y.top ?? 0),
left: v.x + (y.left ?? 0),
- transform: iHe(v.horizontalAnchor, v.verticalAnchor)
- } : xHe(l, t, a, h, g, p), w = u ? l : iY(iY({
+ transform: rHe(v.horizontalAnchor, v.verticalAnchor)
+ } : bHe(l, t, a, h, g, p), w = u ? l : aY(aY({
position: "absolute",
width: _?.width || s || "auto",
height: _?.height || c || "auto"
@@ -77711,14 +77715,14 @@ function EHe(e) {
className: "recharts-legend-wrapper",
style: w,
ref: m
- }, /*#__PURE__*/ b.createElement(SHe, {
+ }, /*#__PURE__*/ b.createElement(xHe, {
layout: n,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter,
position: t.position,
offset: t.offset
- }), d && /*#__PURE__*/ b.createElement(CHe, p), /*#__PURE__*/ b.createElement(_He, tY({}, t, { layout: n }, _, {
+ }), d && /*#__PURE__*/ b.createElement(SHe, p), /*#__PURE__*/ b.createElement(gHe, nY({}, t, { layout: n }, _, {
margin: a,
chartWidth: h,
chartHeight: g,
@@ -77726,20 +77730,20 @@ function EHe(e) {
})));
return /*#__PURE__*/ (0, mt.createPortal)(E, T);
}
-var aY = /*#__PURE__*/ b.memo(EHe, eY);
-aY.displayName = "Legend";
+var oY = /*#__PURE__*/ b.memo(THe, tY);
+oY.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function oY() {
- return oY = Object.assign ? Object.assign.bind() : function(e) {
+function sY() {
+ return sY = 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;
- }, oY.apply(null, arguments);
+ }, sY.apply(null, arguments);
}
-function sY(e, t) {
+function cY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -77749,30 +77753,30 @@ function sY(e, t) {
}
return n;
}
-function cY(e) {
+function lY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? sY(Object(n), !0).forEach(function(t) {
- DHe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sY(Object(n)).forEach(function(t) {
+ t % 2 ? cY(Object(n), !0).forEach(function(t) {
+ EHe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DHe(e, t, n) {
- return (t = OHe(t)) in e ? Object.defineProperty(e, t, {
+function EHe(e, t, n) {
+ return (t = DHe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OHe(e) {
- var t = kHe(e, "string");
+function DHe(e) {
+ var t = OHe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kHe(e, t) {
+function OHe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -77782,25 +77786,25 @@ function kHe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function AHe(e, t) {
- return PHe(e) || NHe(e, t) || MHe(e, t) || jHe();
+function kHe(e, t) {
+ return NHe(e) || MHe(e, t) || jHe(e, t) || AHe();
}
-function jHe() {
+function AHe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function MHe(e, t) {
+function jHe(e, t) {
if (e) {
- if (typeof e == "string") return lY(e, t);
+ if (typeof e == "string") return uY(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? lY(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? uY(e, t) : void 0;
}
}
-function lY(e, t) {
+function uY(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function NHe(e, t) {
+function MHe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -77821,13 +77825,13 @@ function NHe(e, t) {
return s;
}
}
-function PHe(e) {
+function NHe(e) {
if (Array.isArray(e)) return e;
}
-function FHe(e) {
- return Array.isArray(e) && yU(e[0]) && yU(e[1]) ? e.join(" ~ ") : e;
+function PHe(e) {
+ return Array.isArray(e) && bU(e[0]) && bU(e[1]) ? e.join(" ~ ") : e;
}
-var uY = {
+var dY = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -77845,32 +77849,32 @@ var uY = {
labelStyle: {},
accessibilityLayer: !1
};
-function IHe(e, t) {
- return t == null ? e : LG(e, t);
+function FHe(e, t) {
+ return t == null ? e : RG(e, t);
}
-var LHe = (e) => {
- var t = e.separator, n = t === void 0 ? uY.separator : t, r = e.contentStyle, i = e.itemStyle, a = e.labelStyle, o = a === void 0 ? uY.labelStyle : a, s = e.payload, c = e.formatter, l = e.itemSorter, u = e.wrapperClassName, d = e.labelClassName, f = e.label, p = e.labelFormatter, m = e.accessibilityLayer, h = m === void 0 ? uY.accessibilityLayer : m, g = () => {
+var IHe = (e) => {
+ var t = e.separator, n = t === void 0 ? dY.separator : t, r = e.contentStyle, i = e.itemStyle, a = e.labelStyle, o = a === void 0 ? dY.labelStyle : a, s = e.payload, c = e.formatter, l = e.itemSorter, u = e.wrapperClassName, d = e.labelClassName, f = e.label, p = e.labelFormatter, m = e.accessibilityLayer, h = m === void 0 ? dY.accessibilityLayer : m, g = () => {
if (s && s.length) {
var e = {
padding: 0,
margin: 0
- }, t = IHe(s, l).map((e, t) => {
+ }, t = FHe(s, l).map((e, t) => {
if (!e || e.type === "none") return null;
- var r = e.formatter || c || FHe, a = e.value, o = e.name, l = a, u = o;
+ var r = e.formatter || c || PHe, a = e.value, o = e.name, l = a, u = o;
if (r) {
var d = r(a, o, e, t, s);
if (Array.isArray(d)) {
- var f = AHe(d, 2);
+ var f = kHe(d, 2);
l = f[0], u = f[1];
} else if (d != null) l = d;
else return null;
}
- var p = cY(cY({}, uY.itemStyle), {}, { color: e.color || uY.itemStyle.color }, i);
+ var p = lY(lY({}, dY.itemStyle), {}, { color: e.color || dY.itemStyle.color }, i);
return /*#__PURE__*/ b.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${t}`,
style: p
- }, yU(u) ? /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, yU(u) ? /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-separator" }, n) : null, /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, bU(u) ? /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, bU(u) ? /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-separator" }, n) : null, /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ b.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ b.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -77878,44 +77882,44 @@ var LHe = (e) => {
}, t);
}
return null;
- }, _ = cY(cY({}, uY.contentStyle), r), v = cY({ margin: 0 }, o), y = !TU(f), x = y ? f : "", S = hy("recharts-default-tooltip", u), C = hy("recharts-tooltip-label", d);
+ }, _ = lY(lY({}, dY.contentStyle), r), v = lY({ margin: 0 }, o), y = !EU(f), x = y ? f : "", S = hy("recharts-default-tooltip", u), C = hy("recharts-tooltip-label", d);
y && p && s != null && (x = p(f, s));
var w = h ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ b.createElement("div", oY({
+ return /*#__PURE__*/ b.createElement("div", sY({
className: S,
style: _
}, w), /*#__PURE__*/ b.createElement("p", {
className: C,
style: v
}, /*#__PURE__*/ b.isValidElement(x) ? x : `${x}`), g());
-}, dY = "recharts-tooltip-wrapper", RHe = { visibility: "hidden" };
-function zHe(e) {
+}, fY = "recharts-tooltip-wrapper", LHe = { visibility: "hidden" };
+function RHe(e) {
var t = e.coordinate, n = e.translateX, r = e.translateY;
- return hy(dY, {
- [`${dY}-right`]: vU(n) && t && vU(t.x) && n >= t.x,
- [`${dY}-left`]: vU(n) && t && vU(t.x) && n < t.x,
- [`${dY}-bottom`]: vU(r) && t && vU(t.y) && r >= t.y,
- [`${dY}-top`]: vU(r) && t && vU(t.y) && r < t.y
+ return hy(fY, {
+ [`${fY}-right`]: yU(n) && t && yU(t.x) && n >= t.x,
+ [`${fY}-left`]: yU(n) && t && yU(t.x) && n < t.x,
+ [`${fY}-bottom`]: yU(r) && t && yU(t.y) && r >= t.y,
+ [`${fY}-top`]: yU(r) && t && yU(t.y) && r < t.y
});
}
-function fY(e) {
+function pY(e) {
var t = e.allowEscapeViewBox, n = e.coordinate, r = e.key, i = e.offset, a = e.position, o = e.reverseDirection, s = e.tooltipDimension, c = e.viewBox, l = e.viewBoxDimension;
- if (a && vU(a[r])) return a[r];
+ if (a && yU(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
if (t[r]) return o[r] ? u : d;
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function BHe(e) {
+function zHe(e) {
var t = e.translateX, n = e.translateY;
return { transform: e.useTranslate3d ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function VHe(e) {
+function BHe(e) {
var t = e.allowEscapeViewBox, n = e.coordinate, r = e.offsetTop, i = e.offsetLeft, a = e.position, o = e.reverseDirection, s = e.tooltipBox, c = e.useTranslate3d, l = e.viewBox, u, d, f;
- return s && s.height > 0 && s.width > 0 && n ? (d = fY({
+ return s && s.height > 0 && s.width > 0 && n ? (d = pY({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -77925,7 +77929,7 @@ function VHe(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = fY({
+ }), f = pY({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -77935,44 +77939,44 @@ function VHe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = BHe({
+ }), u = zHe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = RHe, {
+ })) : u = LHe, {
cssProperties: u,
- cssClasses: zHe({
+ cssClasses: RHe({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var pY = {
+var mY = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function HHe(e, t) {
- return KHe(e) || GHe(e, t) || WHe(e, t) || UHe();
+function VHe(e, t) {
+ return GHe(e) || WHe(e, t) || UHe(e, t) || HHe();
}
-function UHe() {
+function HHe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function WHe(e, t) {
+function UHe(e, t) {
if (e) {
- if (typeof e == "string") return mY(e, t);
+ if (typeof e == "string") return hY(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? mY(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? hY(e, t) : void 0;
}
}
-function mY(e, t) {
+function hY(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function GHe(e, t) {
+function WHe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -77993,11 +77997,11 @@ function GHe(e, t) {
return s;
}
}
-function KHe(e) {
+function GHe(e) {
if (Array.isArray(e)) return e;
}
-function hY() {
- var e = HHe((0, b.useState)(() => pY.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches), 2), t = e[0], n = e[1];
+function gY() {
+ var e = VHe((0, b.useState)(() => mY.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches), 2), t = e[0], n = e[1];
return (0, b.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), t = () => {
@@ -78011,7 +78015,7 @@ function hY() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function gY(e, t) {
+function _Y(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -78021,30 +78025,30 @@ function gY(e, t) {
}
return n;
}
-function _Y(e) {
+function vY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? gY(Object(n), !0).forEach(function(t) {
- qHe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gY(Object(n)).forEach(function(t) {
+ t % 2 ? _Y(Object(n), !0).forEach(function(t) {
+ KHe(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 qHe(e, t, n) {
- return (t = JHe(t)) in e ? Object.defineProperty(e, t, {
+function KHe(e, t, n) {
+ return (t = qHe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JHe(e) {
- var t = YHe(e, "string");
+function qHe(e) {
+ var t = JHe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YHe(e, t) {
+function JHe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78054,25 +78058,25 @@ function YHe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function XHe(e, t) {
- return eUe(e) || $He(e, t) || QHe(e, t) || ZHe();
+function YHe(e, t) {
+ return $He(e) || QHe(e, t) || ZHe(e, t) || XHe();
}
-function ZHe() {
+function XHe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function QHe(e, t) {
+function ZHe(e, t) {
if (e) {
- if (typeof e == "string") return vY(e, t);
+ if (typeof e == "string") return yY(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? vY(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? yY(e, t) : void 0;
}
}
-function vY(e, t) {
+function yY(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function $He(e, t) {
+function QHe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -78093,17 +78097,17 @@ function $He(e, t) {
return s;
}
}
-function eUe(e) {
+function $He(e) {
if (Array.isArray(e)) return e;
}
-function tUe(e) {
+function eUe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) {
var t = typeof e.animationEasing == "string" ? e.animationEasing : "ease";
return `transform ${e.animationDuration}ms ${t}`;
}
}
-function nUe(e) {
- var t = hY(), n = XHe(b.useState(() => ({
+function tUe(e) {
+ var t = gY(), n = YHe(b.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -78123,8 +78127,8 @@ function nUe(e) {
return document.addEventListener("keydown", t), () => {
document.removeEventListener("keydown", t);
};
- }, [e.coordinate?.x, e.coordinate?.y]), r.dismissed && ((e.coordinate?.x ?? 0) !== r.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== r.dismissedAtCoordinate.y) && i(_Y(_Y({}, r), {}, { dismissed: !1 }));
- var a = VHe({
+ }, [e.coordinate?.x, e.coordinate?.y]), r.dismissed && ((e.coordinate?.x ?? 0) !== r.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== r.dismissedAtCoordinate.y) && i(vY(vY({}, r), {}, { dismissed: !1 }));
+ var a = BHe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -78134,7 +78138,7 @@ function nUe(e) {
tooltipBox: e.lastBoundingBox,
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = a.cssClasses, s = a.cssProperties, c = _Y(_Y({}, e.hasPortalFromProps ? {} : _Y(_Y({ transition: tUe({
+ }), o = a.cssClasses, s = a.cssProperties, c = vY(vY({}, e.hasPortalFromProps ? {} : vY(vY({ transition: eUe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -78154,19 +78158,19 @@ function nUe(e) {
ref: e.innerRef
}, e.children);
}
-var rUe = /*#__PURE__*/ b.memo(nUe), yY = () => J((e) => e.rootProps.accessibilityLayer) ?? !0;
+var nUe = /*#__PURE__*/ b.memo(tUe), bY = () => J((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function bY() {
- return bY = Object.assign ? Object.assign.bind() : function(e) {
+function xY() {
+ return xY = 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;
- }, bY.apply(null, arguments);
+ }, xY.apply(null, arguments);
}
-function xY(e, t) {
+function SY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -78176,30 +78180,30 @@ function xY(e, t) {
}
return n;
}
-function SY(e) {
+function CY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? xY(Object(n), !0).forEach(function(t) {
- iUe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xY(Object(n)).forEach(function(t) {
+ t % 2 ? SY(Object(n), !0).forEach(function(t) {
+ rUe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iUe(e, t, n) {
- return (t = aUe(t)) in e ? Object.defineProperty(e, t, {
+function rUe(e, t, n) {
+ return (t = iUe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aUe(e) {
- var t = oUe(e, "string");
+function iUe(e) {
+ var t = aUe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oUe(e, t) {
+function aUe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78209,40 +78213,40 @@ function oUe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var CY = {
- curveBasisClosed: pRe,
- curveBasisOpen: mRe,
- curveBasis: fRe,
- curveBumpX: QLe,
- curveBumpY: $Le,
- curveLinearClosed: hRe,
- curveLinear: YU,
- curveMonotoneX: gRe,
- curveMonotoneY: _Re,
- curveNatural: vRe,
- curveStep: yRe,
- curveStepAfter: xRe,
- curveStepBefore: bRe
-}, wY = (e) => Jq(e.x) && Jq(e.y), TY = (e) => e.base != null && wY(e.base) && wY(e), EY = (e) => e.x, DY = (e) => e.y, sUe = (e, t) => {
+var wY = {
+ curveBasisClosed: fRe,
+ curveBasisOpen: pRe,
+ curveBasis: dRe,
+ curveBumpX: ZLe,
+ curveBumpY: QLe,
+ curveLinearClosed: mRe,
+ curveLinear: XU,
+ curveMonotoneX: hRe,
+ curveMonotoneY: gRe,
+ curveNatural: _Re,
+ curveStep: vRe,
+ curveStepAfter: bRe,
+ curveStepBefore: yRe
+}, TY = (e) => Yq(e.x) && Yq(e.y), EY = (e) => e.base != null && TY(e.base) && TY(e), DY = (e) => e.x, OY = (e) => e.y, oUe = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${EU(e)}`;
+ var n = `curve${DU(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = CY[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = wY[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return CY[n] || YU;
-}, OY = {
+ return wY[n] || XU;
+}, kY = {
connectNulls: !1,
type: "linear"
-}, cUe = (e) => {
- var t = e.type, n = t === void 0 ? OY.type : t, r = e.points, i = r === void 0 ? [] : r, a = e.baseLine, o = e.layout, s = e.connectNulls, c = s === void 0 ? OY.connectNulls : s, l = sUe(n, o), u = c ? i.filter(wY) : i;
+}, sUe = (e) => {
+ var t = e.type, n = t === void 0 ? kY.type : t, r = e.points, i = r === void 0 ? [] : r, a = e.baseLine, o = e.layout, s = e.connectNulls, c = s === void 0 ? kY.connectNulls : s, l = oUe(n, o), u = c ? i.filter(TY) : i;
if (Array.isArray(a)) {
- var d, f = i.map((e, t) => SY(SY({}, e), {}, { base: a[t] }));
- return d = o === "vertical" ? $U().y(DY).x1(EY).x0((e) => e.base.x) : $U().x(EY).y1(DY).y0((e) => e.base.y), d.defined(TY).curve(l)(c ? f.filter(TY) : f);
+ var d, f = i.map((e, t) => CY(CY({}, e), {}, { base: a[t] }));
+ return d = o === "vertical" ? eW().y(OY).x1(DY).x0((e) => e.base.x) : eW().x(DY).y1(OY).y0((e) => e.base.y), d.defined(EY).curve(l)(c ? f.filter(EY) : f);
}
- return (o === "vertical" && vU(a) ? $U().y(DY).x1(EY).x0(a) : vU(a) ? $U().x(EY).y1(DY).y0(a) : QU().x(EY).y(DY)).defined(wY).curve(l)(u);
-}, kY = (e) => {
- var t = e.className, n = e.points, r = e.path, i = e.pathRef, a = VJ();
+ return (o === "vertical" && yU(a) ? eW().y(OY).x1(DY).x0(a) : yU(a) ? eW().x(DY).y1(OY).y0(a) : $U().x(DY).y(OY)).defined(TY).curve(l)(u);
+}, AY = (e) => {
+ var t = e.className, n = e.points, r = e.path, i = e.pathRef, a = HJ();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -78250,13 +78254,13 @@ var CY = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? cUe(o) : r;
- return /*#__PURE__*/ b.createElement("path", bY({}, $H(e), MW(e), {
+ }, s = n && n.length ? sUe(o) : r;
+ return /*#__PURE__*/ b.createElement("path", xY({}, eU(e), NW(e), {
className: hy("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, lUe = [
+}, cUe = [
"x",
"y",
"top",
@@ -78265,16 +78269,16 @@ var CY = {
"height",
"className"
];
-function AY() {
- return AY = Object.assign ? Object.assign.bind() : function(e) {
+function jY() {
+ return jY = 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;
- }, AY.apply(null, arguments);
+ }, jY.apply(null, arguments);
}
-function jY(e, t) {
+function MY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -78284,30 +78288,30 @@ function jY(e, t) {
}
return n;
}
-function uUe(e) {
+function lUe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? jY(Object(n), !0).forEach(function(t) {
- dUe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jY(Object(n)).forEach(function(t) {
+ t % 2 ? MY(Object(n), !0).forEach(function(t) {
+ uUe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dUe(e, t, n) {
- return (t = fUe(t)) in e ? Object.defineProperty(e, t, {
+function uUe(e, t, n) {
+ return (t = dUe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fUe(e) {
- var t = pUe(e, "string");
+function dUe(e) {
+ var t = fUe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pUe(e, t) {
+function fUe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78317,16 +78321,16 @@ function pUe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function mUe(e, t) {
+function pUe(e, t) {
if (e == null) return {};
- var n, r, i = hUe(e, t);
+ var n, r, i = mUe(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 hUe(e, t) {
+function mUe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -78335,8 +78339,8 @@ function hUe(e, t) {
}
return n;
}
-var gUe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, _Ue = (e) => {
- var t = e.x, n = t === void 0 ? 0 : t, r = e.y, i = r === void 0 ? 0 : r, a = e.top, o = a === void 0 ? 0 : a, s = e.left, c = s === void 0 ? 0 : s, l = e.width, u = l === void 0 ? 0 : l, d = e.height, f = d === void 0 ? 0 : d, p = e.className, m = mUe(e, lUe), h = uUe({
+var hUe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, gUe = (e) => {
+ var t = e.x, n = t === void 0 ? 0 : t, r = e.y, i = r === void 0 ? 0 : r, a = e.top, o = a === void 0 ? 0 : a, s = e.left, c = s === void 0 ? 0 : s, l = e.width, u = l === void 0 ? 0 : l, d = e.height, f = d === void 0 ? 0 : d, p = e.className, m = pUe(e, cUe), h = lUe({
x: n,
y: i,
top: o,
@@ -78344,14 +78348,14 @@ var gUe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, _Ue = (e) => {
width: u,
height: f
}, m);
- return !vU(n) || !vU(i) || !vU(u) || !vU(f) || !vU(o) || !vU(c) ? null : /*#__PURE__*/ b.createElement("path", AY({}, tU(h), {
+ return !yU(n) || !yU(i) || !yU(u) || !yU(f) || !yU(o) || !yU(c) ? null : /*#__PURE__*/ b.createElement("path", jY({}, nU(h), {
className: hy("recharts-cross", p),
- d: gUe(n, i, u, f, o, c)
+ d: hUe(n, i, u, f, o, c)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function vUe(e, t, n, r) {
+function _Ue(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -78362,12 +78366,12 @@ function vUe(e, t, n, r) {
height: e === "horizontal" ? n.height - 1 : r
};
}
-var MY = (e, t) => [
+var NY = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], NY = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), PY = (e, t) => (n) => NY(MY(e, t), n), yUe = (e, t) => (n) => NY([...MY(e, t).map((e, t) => e * t).slice(1), 0], n), bUe = (e) => {
+], PY = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), FY = (e, t) => (n) => PY(NY(e, t), n), vUe = (e, t) => (n) => PY([...NY(e, t).map((e, t) => e * t).slice(1), 0], n), yUe = (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(",");
@@ -78379,7 +78383,7 @@ var MY = (e, t) => [
i[2],
i[3]
];
-}, xUe = function() {
+}, bUe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -78413,7 +78417,7 @@ var MY = (e, t) => [
1
];
default:
- var t = bUe(e[0]);
+ var t = yUe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -78422,8 +78426,8 @@ var MY = (e, t) => [
1,
1
];
-}, SUe = (e, t, n, r) => {
- var i = PY(e, n), a = PY(t, r), o = yUe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, xUe = (e, t, n, r) => {
+ var i = FY(e, n), a = FY(t, r), o = vUe(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);
@@ -78432,9 +78436,9 @@ var MY = (e, t) => [
return a(n);
};
return c.isStepper = !1, c;
-}, FY = function() {
- return SUe(...xUe(...arguments));
-}, CUe = function() {
+}, IY = function() {
+ return xUe(...bUe(...arguments));
+}, SUe = function() {
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.stiff, n = t === void 0 ? 100 : t, r = e.damping, i = r === void 0 ? 8 : r, a = e.dt, o = a === void 0 ? 16.67 : a, s = 1, c = [0], l = 0, u = 0, d = 1e4, f = 0; f < d;) {
var p = -(l - s) * n, m = u * i;
if (u += (p - m) * o / 1e3, l += u * o / 1e3, c.push(l), Math.abs(l - s) < 1e-4 && Math.abs(u) < 1e-4) break;
@@ -78448,18 +78452,18 @@ var MY = (e, t) => [
var t = e * h, n = Math.floor(t), r = t - n;
return (c[n] ?? 0) + ((c[n + 1] ?? 0) - (c[n] ?? 0)) * r;
};
-}, wUe = (e) => {
+}, CUe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return FY(e);
- case "spring": return CUe();
- default: if (e.split("(")[0] === "cubic-bezier") return FY(e);
+ case "linear": return IY(e);
+ case "spring": return SUe();
+ default: if (e.split("(")[0] === "cubic-bezier") return IY(e);
}
return typeof e == "function" ? e : null;
-}, IY = /*#__PURE__*/ (0, b.createContext)((e, t, n) => {
+}, LY = /*#__PURE__*/ (0, b.createContext)((e, t, n) => {
var r, i = (a) => {
var o = t.tick(a);
if (t.getState() === "active") {
@@ -78472,26 +78476,26 @@ var MY = (e, t) => [
};
return r = e.setTimeout(i, 0), () => r?.();
});
-IY.Provider;
-function TUe(e) {
- var t = (0, b.useContext)(IY);
+LY.Provider;
+function wUe(e) {
+ var t = (0, b.useContext)(LY);
return (0, b.useMemo)(() => e ?? t, [e, t]);
}
//#endregion
//#region node_modules/recharts/es6/animation/AnimationHandle.js
-function EUe(e, t, n) {
- return (t = DUe(t)) in e ? Object.defineProperty(e, t, {
+function TUe(e, t, n) {
+ return (t = EUe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DUe(e) {
- var t = OUe(e, "string");
+function EUe(e) {
+ var t = DUe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OUe(e, t) {
+function DUe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78501,11 +78505,11 @@ function OUe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var LY = "init", RY = "pending", zY = "active", kUe = "completed";
-function BY(e) {
+var RY = "init", zY = "pending", BY = "active", OUe = "completed";
+function VY(e) {
return Math.max(0, e);
}
-var AUe = class {
+var kUe = class {
getAnimationStartedTime() {
return this.animationStartedTime;
}
@@ -78514,7 +78518,7 @@ var AUe = class {
}
constructor(e) {
var t;
- EUe(this, "state", LY), this.animationId = e.animationId, this.onAnimationEnd = e.onAnimationEnd, this.animationDuration = BY(e.animationDuration), this.animationBegin = BY(e.animationBegin), this.progress = 0, this.from = e.from, this.to = e.to, this.easing = e.easing, (t = e.onAnimationStart) == null || t.call(e);
+ TUe(this, "state", RY), this.animationId = e.animationId, this.onAnimationEnd = e.onAnimationEnd, this.animationDuration = VY(e.animationDuration), this.animationBegin = VY(e.animationBegin), this.progress = 0, this.from = e.from, this.to = e.to, this.easing = e.easing, (t = e.onAnimationStart) == null || t.call(e);
}
getState() {
return this.state;
@@ -78526,13 +78530,13 @@ var AUe = class {
return this.animationDuration;
}
tick(e) {
- if (this.getState() === LY) return this.state = RY, this.beginStartedTime = e, this.animationBegin;
- if (this.getState() === RY) {
+ if (this.getState() === RY) return this.state = zY, this.beginStartedTime = e, this.animationBegin;
+ if (this.getState() === zY) {
if (this.beginStartedTime == null) throw Error();
var t = e - this.beginStartedTime;
- return t >= this.animationBegin ? (this.state = zY, this.animationStartedTime = e, this.nextAnimationUpdate(0)) : BY(this.animationBegin - t);
+ return t >= this.animationBegin ? (this.state = BY, this.animationStartedTime = e, this.nextAnimationUpdate(0)) : VY(this.animationBegin - t);
}
- if (this.getState() === zY) {
+ if (this.getState() === BY) {
if (this.animationStartedTime == null) throw Error();
var n = e - this.animationStartedTime;
return this.setProgress(n / this.animationDuration), this.nextAnimationUpdate(n);
@@ -78550,7 +78554,7 @@ var AUe = class {
var e;
(e = this.onAnimationEnd) == null || e.call(this);
}
- this.state = kUe;
+ this.state = OUe;
}
getFrom() {
return this.from;
@@ -78564,14 +78568,14 @@ var AUe = class {
getAnimationBegin() {
return this.animationBegin;
}
-}, jUe = class extends AUe {
+}, AUe = class extends kUe {
nextAnimationUpdate() {
return 0;
}
getInterpolated() {
- return this.easing(CU(this.getFrom(), this.getTo(), this.getProgress()));
+ return this.easing(wU(this.getFrom(), this.getTo(), this.getProgress()));
}
-}, MUe = class {
+}, jUe = 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) : r = requestAnimationFrame(i);
@@ -78583,25 +78587,25 @@ var AUe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-function NUe(e, t) {
- return LUe(e) || IUe(e, t) || FUe(e, t) || PUe();
+function MUe(e, t) {
+ return IUe(e) || FUe(e, t) || PUe(e, t) || NUe();
}
-function PUe() {
+function NUe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function FUe(e, t) {
+function PUe(e, t) {
if (e) {
- if (typeof e == "string") return VY(e, t);
+ if (typeof e == "string") return HY(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? VY(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? HY(e, t) : void 0;
}
}
-function VY(e, t) {
+function HY(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function IUe(e, t) {
+function FUe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -78622,10 +78626,10 @@ function IUe(e, t) {
return s;
}
}
-function LUe(e) {
+function IUe(e) {
if (Array.isArray(e)) return e;
}
-var RUe = {
+var LUe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -78633,22 +78637,22 @@ var RUe = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, HY = 0, UY = 1;
-function WY(e) {
- var t = FW(e, RUe), n = t.animationId, r = t.isActive, i = t.canBegin, a = t.duration, o = t.easing, s = t.begin, c = t.onAnimationEnd, l = t.onAnimationStart, u = t.children, d = hY(), f = r === "auto" ? !pY.isSsr && !d : r, p = TUe(t.animationController), m = NUe((0, b.useState)(f ? HY : UY), 2), h = m[0], g = m[1];
+}, UY = 0, WY = 1;
+function GY(e) {
+ var t = IW(e, LUe), n = t.animationId, r = t.isActive, i = t.canBegin, a = t.duration, o = t.easing, s = t.begin, c = t.onAnimationEnd, l = t.onAnimationStart, u = t.children, d = gY(), f = r === "auto" ? !mY.isSsr && !d : r, p = wUe(t.animationController), m = MUe((0, b.useState)(f ? UY : WY), 2), h = m[0], g = m[1];
return (0, b.useEffect)(() => {
- f || g(UY);
+ f || g(WY);
}, [f]), (0, b.useEffect)(() => {
- var e = wUe(o);
- return !f || !i || e == null ? OU : p(new MUe(), new jUe({
+ var e = CUe(o);
+ return !f || !i || e == null ? kU : p(new jUe(), new AUe({
animationId: n,
easing: e,
animationDuration: a,
animationBegin: s,
onAnimationStart: l,
onAnimationEnd: c,
- from: HY,
- to: UY
+ from: UY,
+ to: WY
}), g);
}, [
p,
@@ -78664,14 +78668,14 @@ function WY(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function GY(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, b.useRef)(bU(t)), r = (0, b.useRef)(e);
- return r.current !== e && (n.current = bU(t), r.current = e), n.current;
+function KY(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, b.useRef)(xU(t)), r = (0, b.useRef)(e);
+ return r.current !== e && (n.current = xU(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-var zUe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), BUe = (e, t, n) => e.map((e) => `${zUe(e)} ${t}ms ${n}`).join(","), VUe = ["radius"], HUe = ["radius"], UUe, WUe, GUe, KUe, qUe, JUe, YUe, XUe, ZUe, QUe;
-function KY(e, t) {
+var RUe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), zUe = (e, t, n) => e.map((e) => `${RUe(e)} ${t}ms ${n}`).join(","), BUe = ["radius"], VUe = ["radius"], HUe, UUe, WUe, GUe, KUe, qUe, JUe, YUe, XUe, ZUe;
+function qY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -78681,30 +78685,30 @@ function KY(e, t) {
}
return n;
}
-function qY(e) {
+function JY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? KY(Object(n), !0).forEach(function(t) {
- $Ue(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KY(Object(n)).forEach(function(t) {
+ t % 2 ? qY(Object(n), !0).forEach(function(t) {
+ QUe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Ue(e, t, n) {
- return (t = eWe(t)) in e ? Object.defineProperty(e, t, {
+function QUe(e, t, n) {
+ return (t = $Ue(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eWe(e) {
- var t = tWe(e, "string");
+function $Ue(e) {
+ var t = eWe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tWe(e, t) {
+function eWe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78714,25 +78718,25 @@ function tWe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function JY() {
- return JY = Object.assign ? Object.assign.bind() : function(e) {
+function YY() {
+ return YY = 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;
- }, JY.apply(null, arguments);
+ }, YY.apply(null, arguments);
}
-function YY(e, t) {
+function XY(e, t) {
if (e == null) return {};
- var n, r, i = nWe(e, t);
+ var n, r, i = tWe(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 nWe(e, t) {
+function tWe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -78741,25 +78745,25 @@ function nWe(e, t) {
}
return n;
}
-function rWe(e, t) {
- return sWe(e) || oWe(e, t) || aWe(e, t) || iWe();
+function nWe(e, t) {
+ return oWe(e) || aWe(e, t) || iWe(e, t) || rWe();
}
-function iWe() {
+function rWe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function aWe(e, t) {
+function iWe(e, t) {
if (e) {
- if (typeof e == "string") return XY(e, t);
+ if (typeof e == "string") return ZY(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? XY(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ZY(e, t) : void 0;
}
}
-function XY(e, t) {
+function ZY(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function oWe(e, t) {
+function aWe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -78780,14 +78784,14 @@ function oWe(e, t) {
return s;
}
}
-function sWe(e) {
+function oWe(e) {
if (Array.isArray(e)) return e;
}
-function ZY(e, t) {
+function QY(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var QY = (e, t, n, r, i) => {
- var a = pU(n), o = pU(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 $Y = (e, t, n, r, i) => {
+ var a = mU(n), o = mU(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,
@@ -78798,44 +78802,44 @@ var QY = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = mU(UUe ||= ZY([
+ d = hU(HUe ||= QY([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += mU(WUe ||= ZY([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += hU(UUe ||= QY([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += mU(GUe ||= ZY([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += hU(WUe ||= QY([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += mU(KUe ||= ZY([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += hU(GUe ||= QY([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += mU(qUe ||= ZY([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += hU(KUe ||= QY([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += mU(JUe ||= ZY([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += hU(qUe ||= QY([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += mU(YUe ||= ZY([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += hU(JUe ||= QY([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += mU(XUe ||= ZY([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += hU(YUe ||= QY([
"A ",
",",
",0,0,",
@@ -78845,8 +78849,8 @@ var QY = (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 = mU(ZUe ||= ZY(/* @__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 = mU(QUe ||= ZY([
+ d = hU(XUe ||= QY(/* @__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 = hU(ZUe ||= QY([
"M ",
",",
" h ",
@@ -78855,7 +78859,7 @@ var QY = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, $Y = {
+}, eX = {
x: 0,
y: 0,
width: 0,
@@ -78866,15 +78870,15 @@ var QY = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, eX = (e) => {
- var t = FW(e, $Y), n = (0, b.useRef)(null), r = rWe((0, b.useState)(-1), 2), i = r[0], a = r[1];
+}, tX = (e) => {
+ var t = IW(e, eX), n = (0, b.useRef)(null), r = nWe((0, b.useState)(-1), 2), i = r[0], a = r[1];
(0, b.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
e && a(e);
} catch {}
}, []);
- var o = t.x, s = t.y, c = t.width, l = t.height, u = t.radius, d = t.className, f = t.animationEasing, p = t.animationDuration, m = t.animationBegin, h = t.isAnimationActive, g = t.isUpdateAnimationActive, _ = (0, b.useRef)(c), v = (0, b.useRef)(l), y = (0, b.useRef)(o), x = (0, b.useRef)(s), S = GY((0, b.useMemo)(() => ({
+ var o = t.x, s = t.y, c = t.width, l = t.height, u = t.radius, d = t.className, f = t.animationEasing, p = t.animationDuration, m = t.animationBegin, h = t.isAnimationActive, g = t.isUpdateAnimationActive, _ = (0, b.useRef)(c), v = (0, b.useRef)(l), y = (0, b.useRef)(o), x = (0, b.useRef)(s), S = KY((0, b.useMemo)(() => ({
x: o,
y: s,
width: c,
@@ -78890,21 +78894,21 @@ var QY = (e, t, n, r, i) => {
if (o !== +o || s !== +s || c !== +c || l !== +l || c === 0 || l === 0) return null;
var C = hy("recharts-rectangle", d);
if (!g) {
- var w = tU(t);
+ var w = nU(t);
w.radius;
- var T = YY(w, VUe);
- return /*#__PURE__*/ b.createElement("path", JY({}, T, {
- x: pU(o),
- y: pU(s),
- width: pU(c),
- height: pU(l),
+ var T = XY(w, BUe);
+ return /*#__PURE__*/ b.createElement("path", YY({}, T, {
+ x: mU(o),
+ y: mU(s),
+ width: mU(c),
+ height: mU(l),
radius: typeof u == "number" ? u : void 0,
className: C,
- d: QY(o, s, c, l, u)
+ d: $Y(o, s, c, l, u)
}));
}
- var E = _.current, D = v.current, O = y.current, k = x.current, A = `0px ${i === -1 ? 1 : i}px`, j = `${i}px ${i}px`, M = BUe(["strokeDasharray"], p, typeof f == "string" ? f : $Y.animationEasing);
- return /*#__PURE__*/ b.createElement(WY, {
+ var E = _.current, D = v.current, O = y.current, k = x.current, A = `0px ${i === -1 ? 1 : i}px`, j = `${i}px ${i}px`, M = zUe(["strokeDasharray"], p, typeof f == "string" ? f : eX.animationEasing);
+ return /*#__PURE__*/ b.createElement(GY, {
animationId: S,
key: S,
canBegin: i > 0,
@@ -78913,26 +78917,26 @@ var QY = (e, t, n, r, i) => {
isActive: g,
begin: m
}, (e) => {
- var r = CU(E, c, e), i = CU(D, l, e), a = CU(O, o, e), d = CU(k, s, e);
+ var r = wU(E, c, e), i = wU(D, l, e), a = wU(O, o, e), d = wU(k, s, e);
n.current && (_.current = r, v.current = i, y.current = a, x.current = d);
var f = h ? e > 0 ? {
transition: M,
strokeDasharray: j
- } : { strokeDasharray: A } : { strokeDasharray: j }, p = tU(t);
+ } : { strokeDasharray: A } : { strokeDasharray: j }, p = nU(t);
p.radius;
- var m = YY(p, HUe);
- return /*#__PURE__*/ b.createElement("path", JY({}, m, {
+ var m = XY(p, VUe);
+ return /*#__PURE__*/ b.createElement("path", YY({}, m, {
radius: typeof u == "number" ? u : void 0,
className: C,
- d: QY(a, d, r, i, u),
+ d: $Y(a, d, r, i, u),
ref: n,
- style: qY(qY({}, f), t.style)
+ style: JY(JY({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function tX(e, t) {
+function nX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -78942,30 +78946,30 @@ function tX(e, t) {
}
return n;
}
-function nX(e) {
+function rX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? tX(Object(n), !0).forEach(function(t) {
- cWe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tX(Object(n)).forEach(function(t) {
+ t % 2 ? nX(Object(n), !0).forEach(function(t) {
+ sWe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cWe(e, t, n) {
- return (t = lWe(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 lWe(e) {
- var t = uWe(e, "string");
+function cWe(e) {
+ var t = lWe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uWe(e, t) {
+function lWe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -78975,10 +78979,10 @@ function uWe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rX = Math.PI / 180, iX = (e) => e * Math.PI / 180, dWe = (e) => e * 180 / Math.PI, aX = (e, t, n, r) => ({
- x: e + Math.cos(-rX * r) * n,
- y: t + Math.sin(-rX * r) * n
-}), fWe = function(e, t) {
+var iX = Math.PI / 180, aX = (e) => e * Math.PI / 180, uWe = (e) => e * 180 / Math.PI, oX = (e, t, n, r) => ({
+ x: e + Math.cos(-iX * r) * n,
+ y: t + Math.sin(-iX * r) * n
+}), dWe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -78989,11 +78993,11 @@ var rX = Math.PI / 180, iX = (e) => e * Math.PI / 180, dWe = (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;
-}, pWe = (e, t) => {
+}, fWe = (e, t) => {
var n = e.x, r = e.y, i = t.x, a = t.y;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, mWe = (e, t) => {
- var n = e.x, r = e.y, i = t.cx, a = t.cy, o = pWe({
+}, pWe = (e, t) => {
+ var n = e.x, r = e.y, i = t.cx, a = t.cy, o = fWe({
x: n,
y: r
}, {
@@ -79007,25 +79011,25 @@ var rX = Math.PI / 180, iX = (e) => e * Math.PI / 180, dWe = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: dWe(c),
+ angle: uWe(c),
angleInRadian: c
};
-}, hWe = (e) => {
+}, mWe = (e) => {
var t = e.startAngle, n = e.endAngle, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, gWe = (e, t) => {
+}, hWe = (e, t) => {
var n = t.startAngle, r = t.endAngle, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, _We = (e, t) => {
- var n = e.relativeX, r = e.relativeY, i = mWe({
+}, gWe = (e, t) => {
+ var n = e.relativeX, r = e.relativeY, i = pWe({
x: n,
y: r
}, t), a = i.radius, o = i.angle, s = t.innerRadius, c = t.outerRadius;
if (a < s || a > c || a === 0) return null;
- var l = hWe(t), u = l.startAngle, d = l.endAngle, f = o, p;
+ var l = mWe(t), u = l.startAngle, d = l.endAngle, f = o, p;
if (u <= d) {
for (; f > d;) f -= 360;
for (; f < u;) f += 360;
@@ -79035,17 +79039,17 @@ var rX = Math.PI / 180, iX = (e) => e * Math.PI / 180, dWe = (e) => e * 180 / Ma
for (; f < d;) f += 360;
p = f >= d && f <= u;
}
- return p ? nX(nX({}, t), {}, {
+ return p ? rX(rX({}, t), {}, {
radius: a,
- angle: gWe(f, t)
+ angle: hWe(f, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function oX(e) {
+function sX(e) {
var t = e.cx, n = e.cy, r = e.radius, i = e.startAngle, a = e.endAngle;
return {
- points: [aX(t, n, r, i), aX(t, n, r, a)],
+ points: [oX(t, n, r, i), oX(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -79055,29 +79059,29 @@ function oX(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var vWe, yWe, bWe, xWe, SWe, CWe, wWe;
-function sX() {
- return sX = Object.assign ? Object.assign.bind() : function(e) {
+var _We, vWe, yWe, bWe, xWe, SWe, CWe;
+function cX() {
+ return cX = 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;
- }, sX.apply(null, arguments);
+ }, cX.apply(null, arguments);
}
-function cX(e, t) {
+function lX(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) => {
- var t = e.cx, n = e.cy, r = e.radius, i = e.angle, a = e.sign, o = e.isExternal, s = e.cornerRadius, c = e.cornerIsExternal, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / rX, d = c ? i : i + a * u, f = aX(t, n, l, d), p = aX(t, n, r, d), m = c ? i - a * u : i;
+var wWe = (e, t) => gU(t - e) * Math.min(Math.abs(t - e), 359.999), uX = (e) => {
+ var t = e.cx, n = e.cy, r = e.radius, i = e.angle, a = e.sign, o = e.isExternal, s = e.cornerRadius, c = e.cornerIsExternal, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / iX, d = c ? i : i + a * u, f = oX(t, n, l, d), p = oX(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: aX(t, n, l * Math.cos(u * rX), m),
+ lineTangency: oX(t, n, l * Math.cos(u * iX), m),
theta: u
};
-}, uX = (e) => {
- var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = TWe(a, o), c = a + s, l = aX(t, n, i, a), u = aX(t, n, i, c), d = mU(vWe ||= cX([
+}, dX = (e) => {
+ var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = wWe(a, o), c = a + s, l = oX(t, n, i, a), u = oX(t, n, i, c), d = hU(_We ||= lX([
"M ",
",",
"\n A ",
@@ -79089,8 +79093,8 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = aX(t, n, r, a), p = aX(t, n, r, c);
- d += mU(yWe ||= cX([
+ var f = oX(t, n, r, a), p = oX(t, n, r, c);
+ d += hU(vWe ||= lX([
"L ",
",",
"\n A ",
@@ -79101,14 +79105,14 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += mU(bWe ||= cX([
+ } else d += hU(yWe ||= lX([
"L ",
",",
" Z"
]), t, n);
return d;
-}, EWe = (e) => {
- var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.cornerRadius, o = e.forceCornerRadius, s = e.cornerIsExternal, c = e.startAngle, l = e.endAngle, u = hU(l - c), d = lX({
+}, TWe = (e) => {
+ var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.cornerRadius, o = e.forceCornerRadius, s = e.cornerIsExternal, c = e.startAngle, l = e.endAngle, u = gU(l - c), d = uX({
cx: t,
cy: n,
radius: i,
@@ -79116,7 +79120,7 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), f = d.circleTangency, p = d.lineTangency, m = d.theta, h = lX({
+ }), f = d.circleTangency, p = d.lineTangency, m = d.theta, h = uX({
cx: t,
cy: n,
radius: i,
@@ -79125,7 +79129,7 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), g = h.circleTangency, _ = h.lineTangency, v = h.theta, y = s ? Math.abs(c - l) : Math.abs(c - l) - m - v;
- if (y < 0) return o ? mU(xWe ||= cX([
+ if (y < 0) return o ? hU(bWe ||= lX([
"M ",
",",
"\n a",
@@ -79135,7 +79139,7 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
",",
",0,0,1,",
",0\n "
- ]), p.x, p.y, a, a, a * 2, a, a, -a * 2) : uX({
+ ]), p.x, p.y, a, a, a * 2, a, a, -a * 2) : dX({
cx: t,
cy: n,
innerRadius: r,
@@ -79143,7 +79147,7 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
startAngle: c,
endAngle: l
});
- var b = mU(SWe ||= cX([
+ var b = hU(xWe ||= lX([
"M ",
",",
"\n A",
@@ -79165,7 +79169,7 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
"\n "
]), p.x, p.y, a, a, +(u < 0), f.x, f.y, i, i, +(y > 180), +(u < 0), g.x, g.y, a, a, +(u < 0), _.x, _.y);
if (r > 0) {
- var x = lX({
+ var x = uX({
cx: t,
cy: n,
radius: r,
@@ -79174,7 +79178,7 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), S = x.circleTangency, C = x.lineTangency, w = x.theta, T = lX({
+ }), S = x.circleTangency, C = x.lineTangency, w = x.theta, T = uX({
cx: t,
cy: n,
radius: r,
@@ -79185,7 +79189,7 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
cornerIsExternal: s
}), E = T.circleTangency, D = T.lineTangency, O = T.theta, k = s ? Math.abs(c - l) : Math.abs(c - l) - w - O;
if (k < 0 && a === 0) return `${b}L${t},${n}Z`;
- b += mU(CWe ||= cX([
+ b += hU(SWe ||= lX([
"L",
",",
"\n A",
@@ -79206,13 +79210,13 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
",",
"Z"
]), D.x, D.y, a, a, +(u < 0), E.x, E.y, r, r, +(k > 180), +(u > 0), S.x, S.y, a, a, +(u < 0), C.x, C.y);
- } else b += mU(wWe ||= cX([
+ } else b += hU(CWe ||= lX([
"L",
",",
"Z"
]), t, n);
return b;
-}, DWe = {
+}, EWe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -79222,10 +79226,10 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, dX = (e) => {
- var t = FW(e, DWe), n = t.cx, r = t.cy, i = t.innerRadius, a = t.outerRadius, o = t.cornerRadius, s = t.forceCornerRadius, c = t.cornerIsExternal, l = t.startAngle, u = t.endAngle, d = t.className;
+}, fX = (e) => {
+ var t = IW(e, EWe), n = t.cx, r = t.cy, i = t.innerRadius, a = t.outerRadius, o = t.cornerRadius, s = t.forceCornerRadius, c = t.cornerIsExternal, l = t.startAngle, u = t.endAngle, d = t.className;
if (a < i || l === u) return null;
- var f = hy("recharts-sector", d), p = a - i, m = xU(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? EWe({
+ var f = hy("recharts-sector", d), p = a - i, m = SU(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? TWe({
cx: n,
cy: r,
innerRadius: i,
@@ -79235,7 +79239,7 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : uX({
+ }) : dX({
cx: n,
cy: r,
innerRadius: i,
@@ -79243,14 +79247,14 @@ var TWe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 359.999), lX = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ b.createElement("path", sX({}, tU(t), {
+ return /*#__PURE__*/ b.createElement("path", cX({}, nU(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function OWe(e, t, n) {
+function DWe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -79265,9 +79269,9 @@ function OWe(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (jW(t)) {
+ if (MW(t)) {
if (e === "centric") {
- var r = t.cx, i = t.cy, a = t.innerRadius, o = t.outerRadius, s = t.angle, c = aX(r, i, a, s), l = aX(r, i, o, s);
+ var r = t.cx, i = t.cy, a = t.innerRadius, o = t.outerRadius, s = t.angle, c = oX(r, i, a, s), l = oX(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -79276,30 +79280,30 @@ function OWe(e, t, n) {
y: l.y
}];
}
- return oX(t);
+ return sX(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function kWe(e) {
- return lU(e) ? NaN : Number(e);
+function OWe(e) {
+ return uU(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function fX(e) {
- return e ? (e = kWe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function pX(e) {
+ return e ? (e = OWe(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 pX(e, t, n) {
- n && typeof n != "number" && FG(e, t, n) && (t = n = void 0), e = fX(e), t === void 0 ? (t = e, e = 0) : t = fX(t), n = n === void 0 ? e < t ? 1 : -1 : fX(n);
+function mX(e, t, n) {
+ n && typeof n != "number" && IG(e, t, n) && (t = n = void 0), e = pX(e), t === void 0 ? (t = e, e = 0) : t = pX(t), n = n === void 0 ? e < t ? 1 : -1 : pX(n);
let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);
for (let t = 0; t < r; t++) i[t] = e, e += n;
return i;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/dataSelectors.js
-var mX = (e) => e.chartData, hX = Y([mX], (e) => {
+var hX = (e) => e.chartData, gX = Y([hX], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -79307,37 +79311,37 @@ var mX = (e) => e.chartData, hX = Y([mX], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), gX = (e, t, n, r) => r ? hX(e) : mX(e), _X = (e, t, n) => n ? hX(e) : mX(e), AWe = Y([gX], (e) => {
+}), _X = (e, t, n, r) => r ? gX(e) : hX(e), vX = (e, t, n) => n ? gX(e) : hX(e), kWe = Y([_X], (e) => {
var t = e.chartData, n = e.dataStartIndex, r = e.dataEndIndex;
return t == null ? [] : t.slice(n, r + 1);
-}), jWe = Y([hX], (e) => {
+}), AWe = Y([gX], (e) => {
var t = e.chartData, n = e.dataStartIndex, r = e.dataEndIndex;
return t == null ? [] : t.slice(n, r + 1);
-}), MWe = Y([mX], (e) => {
+}), jWe = Y([hX], (e) => {
var t = e.chartData, n = e.dataStartIndex, r = e.dataEndIndex;
return t == null ? [] : t.slice(n, r + 1);
});
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function vX(e, t) {
- return IWe(e) || FWe(e, t) || PWe(e, t) || NWe();
+function yX(e, t) {
+ return FWe(e) || PWe(e, t) || NWe(e, t) || MWe();
}
-function NWe() {
+function MWe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function PWe(e, t) {
+function NWe(e, t) {
if (e) {
- if (typeof e == "string") return yX(e, t);
+ if (typeof e == "string") return bX(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? yX(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? bX(e, t) : void 0;
}
}
-function yX(e, t) {
+function bX(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function FWe(e, t) {
+function PWe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -79358,45 +79362,45 @@ function FWe(e, t) {
return s;
}
}
-function IWe(e) {
+function FWe(e) {
if (Array.isArray(e)) return e;
}
-function bX(e) {
+function xX(e) {
if (Array.isArray(e) && e.length === 2) {
- var t = vX(e, 2), n = t[0], r = t[1];
- if (Jq(n) && Jq(r)) return !0;
+ var t = yX(e, 2), n = t[0], r = t[1];
+ if (Yq(n) && Yq(r)) return !0;
}
return !1;
}
-function xX(e, t, n) {
+function SX(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function SX(e, t) {
+function CX(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
- var n = vX(e, 2), r = n[0], i = n[1], a, o;
- if (Jq(r)) a = r;
+ var n = yX(e, 2), r = n[0], i = n[1], a, o;
+ if (Yq(r)) a = r;
else if (typeof r == "function") return;
- if (Jq(i)) o = i;
+ if (Yq(i)) o = i;
else if (typeof i == "function") return;
var s = [a, o];
- if (bX(s)) return s;
+ if (xX(s)) return s;
}
}
-function LWe(e, t, n) {
+function IWe(e, t, n) {
if (n || t != null) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (bX(r)) return xX(r, t, n);
+ if (xX(r)) return SX(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
- var i = vX(e, 2), a = i[0], o = i[1], s, c;
+ var i = yX(e, 2), a = i[0], o = i[1], s, c;
if (a === "auto") t != null && (s = Math.min(...t));
- else if (vU(a)) s = a;
+ else if (yU(a)) s = a;
else if (typeof a == "function") try {
t != null && (s = a(t?.[0]));
} catch {}
- else if (typeof a == "string" && sJ.test(a)) {
- var l = sJ.exec(a);
+ else if (typeof a == "string" && cJ.test(a)) {
+ var l = cJ.exec(a);
if (l == null || l[1] == null || t == null) s = void 0;
else {
var u = +l[1];
@@ -79404,12 +79408,12 @@ function LWe(e, t, n) {
}
} else s = t?.[0];
if (o === "auto") t != null && (c = Math.max(...t));
- else if (vU(o)) c = o;
+ else if (yU(o)) c = o;
else if (typeof o == "function") try {
t != null && (c = o(t?.[1]));
} catch {}
- else if (typeof o == "string" && cJ.test(o)) {
- var d = cJ.exec(o);
+ else if (typeof o == "string" && lJ.test(o)) {
+ var d = lJ.exec(o);
if (d == null || d[1] == null || t == null) c = void 0;
else {
var f = +d[1];
@@ -79417,13 +79421,13 @@ function LWe(e, t, n) {
}
} else c = t?.[1];
var p = [s, c];
- if (bX(p)) return t == null ? p : xX(p, t, n);
+ if (xX(p)) return t == null ? p : SX(p, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var CX = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
+var wX = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -79798,34 +79802,34 @@ var CX = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
}) : t !== void 0 && t.exports ? t.exports = r : (e ||= typeof self < "u" && self && self.self == self ? self : Function("return this")(), e.Decimal = r);
})(e);
})))());
-function wX(e) {
- return e === 0 ? 1 : Math.floor(new CX.default(e).abs().log(10).toNumber()) + 1;
+function TX(e) {
+ return e === 0 ? 1 : Math.floor(new wX.default(e).abs().log(10).toNumber()) + 1;
}
-function TX(e, t, n) {
- for (var r = new CX.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function EX(e, t, n) {
+ for (var r = new wX.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
return a;
}
//#endregion
//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js
-function EX(e, t) {
- return VWe(e) || BWe(e, t) || zWe(e, t) || RWe();
+function DX(e, t) {
+ return BWe(e) || zWe(e, t) || RWe(e, t) || LWe();
}
-function RWe() {
+function LWe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function zWe(e, t) {
+function RWe(e, t) {
if (e) {
- if (typeof e == "string") return DX(e, t);
+ if (typeof e == "string") return OX(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? DX(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? OX(e, t) : void 0;
}
}
-function DX(e, t) {
+function OX(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function BWe(e, t) {
+function zWe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -79846,74 +79850,74 @@ function BWe(e, t) {
return s;
}
}
-function VWe(e) {
+function BWe(e) {
if (Array.isArray(e)) return e;
}
-var OX = (e) => {
- var t = EX(e, 2), n = t[0], r = t[1], i = n, a = r;
+var kX = (e) => {
+ var t = DX(e, 2), n = t[0], r = t[1], i = n, a = r;
return n > r && (i = r, a = n), [i, a];
-}, kX = (e, t, n) => {
- if (e.lte(0)) return new CX.default(0);
- var r = wX(e.toNumber()), i = new CX.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new CX.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new CX.default(s.toNumber()) : new CX.default(Math.ceil(s.toNumber()));
}, AX = (e, t, n) => {
- if (e.lte(0)) return new CX.default(0);
+ if (e.lte(0)) return new wX.default(0);
+ var r = TX(e.toNumber()), i = new wX.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new wX.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new wX.default(s.toNumber()) : new wX.default(Math.ceil(s.toNumber()));
+}, jX = (e, t, n) => {
+ if (e.lte(0)) return new wX.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new CX.default(i).abs().log(10).toNumber()), o = new CX.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new wX.default(i).abs().log(10).toNumber()), o = new wX.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
if (c === -1 && (o = o.mul(10), c = 0), c += n, c >= r.length) {
var l = Math.floor(c / r.length);
- c %= r.length, o = o.mul(new CX.default(10).pow(l));
+ c %= r.length, o = o.mul(new wX.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new CX.default(u).mul(o);
- return t ? d : new CX.default(Math.ceil(d.toNumber()));
-}, HWe = (e, t, n) => {
- var r = new CX.default(1), i = new CX.default(e);
+ var u = r[c] ?? 1, d = new wX.default(u).mul(o);
+ return t ? d : new wX.default(Math.ceil(d.toNumber()));
+}, VWe = (e, t, n) => {
+ var r = new wX.default(1), i = new wX.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new CX.default(10).pow(wX(e) - 1), i = new CX.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new CX.default(Math.floor(e)));
- } else e === 0 ? i = new CX.default(Math.floor((t - 1) / 2)) : n || (i = new CX.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new CX.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new wX.default(10).pow(TX(e) - 1), i = new wX.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new wX.default(Math.floor(e)));
+ } else e === 0 ? i = new wX.default(Math.floor((t - 1) / 2)) : n || (i = new wX.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new wX.default(c - o).mul(r)).toNumber());
return s;
-}, jX = function(e, t, n, r) {
- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : kX;
+}, MX = function(e, t, n, r) {
+ var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : AX;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new CX.default(0),
- tickMin: new CX.default(0),
- tickMax: new CX.default(0)
- };
- var o = a(new CX.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new CX.default(0) : (s = new CX.default(e).add(t).div(2), s = s.sub(new CX.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new CX.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? jX(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ step: new wX.default(0),
+ tickMin: new wX.default(0),
+ tickMax: new wX.default(0)
+ };
+ var o = a(new wX.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new wX.default(0) : (s = new wX.default(e).add(t).div(2), s = s.sub(new wX.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new wX.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? MX(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
step: o,
- tickMin: s.sub(new CX.default(c).mul(o)),
- tickMax: s.add(new CX.default(l).mul(o))
+ tickMin: s.sub(new wX.default(c).mul(o)),
+ tickMax: s.add(new wX.default(l).mul(o))
});
-}, MX = function(e) {
- var t = EX(e, 2), n = t[0], r = t[1], i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", s = Math.max(i, 2), c = EX(OX([n, r]), 2), l = c[0], u = c[1];
+}, NX = function(e) {
+ var t = DX(e, 2), n = t[0], r = t[1], i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", s = Math.max(i, 2), c = DX(kX([n, r]), 2), l = c[0], u = c[1];
if (l === -Infinity || u === Infinity) {
var d = u === Infinity ? [l, ...Array(i - 1).fill(Infinity)] : [...Array(i - 1).fill(-Infinity), u];
return n > r ? d.reverse() : d;
}
- if (l === u) return HWe(l, i, a);
- var f = jX(l, u, s, a, 0, o === "snap125" ? AX : kX), p = f.step, m = f.tickMin, h = f.tickMax, g = TX(m, h.add(new CX.default(.1).mul(p)), p);
+ if (l === u) return VWe(l, i, a);
+ var f = MX(l, u, s, a, 0, o === "snap125" ? jX : AX), p = f.step, m = f.tickMin, h = f.tickMax, g = EX(m, h.add(new wX.default(.1).mul(p)), p);
return n > r ? g.reverse() : g;
-}, NX = function(e, t) {
- var n = EX(e, 2), r = n[0], i = n[1], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", s = EX(OX([r, i]), 2), c = s[0], l = s[1];
+}, PX = function(e, t) {
+ var n = DX(e, 2), r = n[0], i = n[1], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", s = DX(kX([r, i]), 2), c = s[0], l = s[1];
if (c === -Infinity || l === Infinity) return [r, i];
if (c === l) return [c];
- var u = o === "snap125" ? AX : kX, d = Math.max(t, 2), f = u(new CX.default(l).sub(c).div(d - 1), a, 0), p = [...TX(new CX.default(c), new CX.default(l), f), l];
+ var u = o === "snap125" ? jX : AX, d = Math.max(t, 2), f = u(new wX.default(l).sub(c).div(d - 1), a, 0), p = [...EX(new wX.default(c), new wX.default(l), f), l];
if (a === !1) {
p = p.map((e) => Math.round(e));
var m = p.length - 1;
m > 0 && p[m] === p[m - 1] && (p = p.slice(0, m));
}
return r > i ? p.reverse() : p;
-}, PX = (e) => e.rootProps.maxBarSize, FX = (e) => e.rootProps.barGap, IX = (e) => e.rootProps.barCategoryGap, LX = (e) => e.rootProps.barSize, RX = (e) => e.rootProps.stackOffset, zX = (e) => e.rootProps.reverseStackOrder, BX = (e) => e.options.chartName, VX = (e) => e.rootProps.syncId, HX = (e) => e.rootProps.syncMethod, UX = (e) => e.options.eventEmitter, UWe = (e) => e.rootProps.baseValue, WX = {
+}, FX = (e) => e.rootProps.maxBarSize, IX = (e) => e.rootProps.barGap, LX = (e) => e.rootProps.barCategoryGap, RX = (e) => e.rootProps.barSize, zX = (e) => e.rootProps.stackOffset, BX = (e) => e.rootProps.reverseStackOrder, VX = (e) => e.options.chartName, HX = (e) => e.rootProps.syncId, UX = (e) => e.rootProps.syncMethod, WX = (e) => e.options.eventEmitter, HWe = (e) => e.rootProps.baseValue, GX = {
grid: -100,
barBackground: -50,
area: 100,
@@ -79926,7 +79930,7 @@ var OX = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, GX = {
+}, KX = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -79947,8 +79951,8 @@ var OX = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: WX.axis
-}, KX = {
+ zIndex: GX.axis
+}, qX = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -79967,19 +79971,19 @@ var OX = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: WX.axis
-}, qX = (e, t) => {
+ zIndex: GX.axis
+}, JX = (e, t) => {
if (e && t) return e != null && e.reversed ? [t[1], t[0]] : t;
};
//#endregion
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
-function JX(e, t, n) {
+function YX(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return $q(e, t) ? "category" : "number";
+ if (e != null) return eJ(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function YX(e, t) {
+function XX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -79989,30 +79993,30 @@ function YX(e, t) {
}
return n;
}
-function XX(e) {
+function ZX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? YX(Object(n), !0).forEach(function(t) {
- WWe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YX(Object(n)).forEach(function(t) {
+ t % 2 ? XX(Object(n), !0).forEach(function(t) {
+ UWe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : XX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function WWe(e, t, n) {
- return (t = GWe(t)) in e ? Object.defineProperty(e, t, {
+function UWe(e, t, n) {
+ return (t = WWe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GWe(e) {
- var t = KWe(e, "string");
+function WWe(e) {
+ var t = GWe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KWe(e, t) {
+function GWe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -80022,77 +80026,77 @@ function KWe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ZX = {
- allowDataOverflow: GX.allowDataOverflow,
- allowDecimals: GX.allowDecimals,
+var QX = {
+ allowDataOverflow: KX.allowDataOverflow,
+ allowDecimals: KX.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: GX.angleAxisId,
+ id: KX.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: GX.reversed,
- scale: GX.scale,
- tick: GX.tick,
+ reversed: KX.reversed,
+ scale: KX.scale,
+ tick: KX.tick,
tickCount: void 0,
ticks: void 0,
- type: GX.type,
+ type: KX.type,
unit: void 0,
niceTicks: "auto"
-}, QX = {
- allowDataOverflow: KX.allowDataOverflow,
- allowDecimals: KX.allowDecimals,
- allowDuplicatedCategory: KX.allowDuplicatedCategory,
+}, $X = {
+ allowDataOverflow: qX.allowDataOverflow,
+ allowDecimals: qX.allowDecimals,
+ allowDuplicatedCategory: qX.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: KX.radiusAxisId,
- includeHidden: KX.includeHidden,
+ id: qX.radiusAxisId,
+ includeHidden: qX.includeHidden,
name: void 0,
- reversed: KX.reversed,
- scale: KX.scale,
- tick: KX.tick,
- tickCount: KX.tickCount,
+ reversed: qX.reversed,
+ scale: qX.scale,
+ tick: qX.tick,
+ tickCount: qX.tickCount,
ticks: void 0,
- type: KX.type,
+ type: qX.type,
unit: void 0,
niceTicks: "auto"
-}, $X = Y([(e, t) => {
+}, eZ = Y([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, UJ], (e, t) => {
+}, WJ], (e, t) => {
if (e != null) return e;
- var n = JX(t, "angleAxis", ZX.type) ?? "category";
- return XX(XX({}, ZX), {}, { type: n });
-}), eZ = Y([(e, t) => e.polarAxis.radiusAxis[t], UJ], (e, t) => {
+ var n = YX(t, "angleAxis", QX.type) ?? "category";
+ return ZX(ZX({}, QX), {}, { type: n });
+}), tZ = Y([(e, t) => e.polarAxis.radiusAxis[t], WJ], (e, t) => {
if (e != null) return e;
- var n = JX(t, "radiusAxis", QX.type) ?? "category";
- return XX(XX({}, QX), {}, { type: n });
-}), tZ = (e) => e.polarOptions, nZ = Y([
- fJ,
+ var n = YX(t, "radiusAxis", $X.type) ?? "category";
+ return ZX(ZX({}, $X), {}, { type: n });
+}), nZ = (e) => e.polarOptions, rZ = Y([
pJ,
- yJ
-], fWe), rZ = Y([tZ, nZ], (e, t) => {
- if (e != null) return xU(e.innerRadius, t, 0);
-}), iZ = Y([tZ, nZ], (e, t) => {
- if (e != null) return xU(e.outerRadius, t, t * .8);
-}), aZ = Y([tZ], (e) => e == null ? [0, 0] : [e.startAngle, e.endAngle]), qWe = Y([$X, aZ], qX), oZ = Y([
- nZ,
+ mJ,
+ bJ
+], dWe), iZ = Y([nZ, rZ], (e, t) => {
+ if (e != null) return SU(e.innerRadius, t, 0);
+}), aZ = Y([nZ, rZ], (e, t) => {
+ if (e != null) return SU(e.outerRadius, t, t * .8);
+}), oZ = Y([nZ], (e) => e == null ? [0, 0] : [e.startAngle, e.endAngle]), KWe = Y([eZ, oZ], JX), sZ = Y([
rZ,
- iZ
+ iZ,
+ aZ
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), JWe = Y([eZ, oZ], qX), sZ = Y([
- BJ,
- tZ,
- rZ,
+}), qWe = Y([tZ, sZ], JX), cZ = Y([
+ VJ,
+ nZ,
iZ,
- fJ,
- pJ
+ aZ,
+ pJ,
+ mJ
], (e, t, n, r, i, a) => {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var o = t.cx, s = t.cy, c = t.startAngle, l = t.endAngle;
return {
- cx: xU(o, i, i / 2),
- cy: xU(s, a, a / 2),
+ cx: SU(o, i, i / 2),
+ cy: SU(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -80100,22 +80104,22 @@ var ZX = {
clockWise: !1
};
}
-}), cZ = (e, t) => t, lZ = (e, t, n) => n;
+}), lZ = (e, t) => t, uZ = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function uZ(e) {
+function dZ(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function dZ(e, t, n) {
+function fZ(e, t, n) {
var r = t.chartData, i = r === void 0 ? [] : r, a = n.allowDuplicatedCategory, o = n.dataKey, s = /* @__PURE__ */ new Map();
return e.forEach((e) => {
var t = e.data ?? i;
if (t != null && t.length !== 0) {
- var n = uZ(e);
+ var n = dZ(e);
t.forEach((t, r) => {
- var i = o == null || a ? r : String(Qq(t, o, null)), c = Qq(t, e.dataKey, 0), l = s.has(i) ? s.get(i) : {};
+ var i = o == null || a ? r : String($q(t, o, null)), c = $q(t, e.dataKey, 0), l = s.has(i) ? s.get(i) : {};
Object.assign(l, { [n]: c }), s.set(i, l);
});
}
@@ -80123,18 +80127,18 @@ function dZ(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function fZ(e) {
+function pZ(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var pZ = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var mZ = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
//#endregion
//#region node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js
-function mZ(e, t) {
+function hZ(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function YWe(e, t) {
+function JWe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -80143,13 +80147,13 @@ function YWe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var hZ = (e) => {
- var t = BJ(e);
+var gZ = (e) => {
+ var t = VJ(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, gZ = (e) => e.tooltip.settings.axisId;
+}, _Z = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function _Z(e) {
+function vZ(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -80190,13 +80194,13 @@ function _Z(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var vZ = (e, t) => {
+var yZ = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!bX(t)) {
+ if (!xX(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- Jq(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ Yq(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;
}
@@ -80206,14 +80210,14 @@ var vZ = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function yZ(e, t) {
+function bZ(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function bZ(e) {
+function xZ(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = XWe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = YWe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -80239,15 +80243,15 @@ function bZ(e) {
right: i
};
}
-function XWe(e) {
- return (t, n) => yZ(e(t), n);
+function YWe(e) {
+ return (t, n) => bZ(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function xZ(e) {
+function SZ(e) {
return e === null ? NaN : +e;
}
-function* ZWe(e, t) {
+function* XWe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -80256,52 +80260,52 @@ function* ZWe(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var SZ = bZ(yZ), CZ = SZ.right;
-SZ.left, bZ(xZ).center;
+var CZ = xZ(bZ), wZ = CZ.right;
+CZ.left, xZ(SZ).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var wZ = class extends Map {
- constructor(e, t = eGe) {
+var TZ = class extends Map {
+ constructor(e, t = $We) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
}), e != null) for (let [t, n] of e) this.set(t, n);
}
get(e) {
- return super.get(TZ(this, e));
+ return super.get(EZ(this, e));
}
has(e) {
- return super.has(TZ(this, e));
+ return super.has(EZ(this, e));
}
set(e, t) {
- return super.set(QWe(this, e), t);
+ return super.set(ZWe(this, e), t);
}
delete(e) {
- return super.delete($We(this, e));
+ return super.delete(QWe(this, e));
}
};
-function TZ({ _intern: e, _key: t }, n) {
+function EZ({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function QWe({ _intern: e, _key: t }, n) {
+function ZWe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function $We({ _intern: e, _key: t }, n) {
+function QWe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function eGe(e) {
+function $We(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
//#region node_modules/d3-array/src/ticks.js
-var EZ = Math.sqrt(50), DZ = Math.sqrt(10), OZ = Math.sqrt(2);
-function kZ(e, t, n) {
+var DZ = Math.sqrt(50), OZ = Math.sqrt(10), kZ = Math.sqrt(2);
+function AZ(e, t, n) {
var r, i = -1, a, o, s;
if (t = +t, e = +e, n = +n, e === t && n > 0) return [e];
- if ((r = t < e) && (a = e, e = t, t = a), (s = AZ(e, t, n)) === 0 || !isFinite(s)) return [];
+ if ((r = t < e) && (a = e, e = t, t = a), (s = jZ(e, t, n)) === 0 || !isFinite(s)) return [];
if (s > 0) {
let n = Math.round(e / s), r = Math.round(t / s);
for (n * s < e && ++n, r * s > t && --r, o = Array(a = r - n + 1); ++i < a;) o[i] = (n + i) * s;
@@ -80312,17 +80316,17 @@ function kZ(e, t, n) {
}
return r && o.reverse(), o;
}
-function AZ(e, t, n) {
+function jZ(e, t, n) {
var r = (t - e) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), a = r / 10 ** i;
- return i >= 0 ? (a >= EZ ? 10 : a >= DZ ? 5 : a >= OZ ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= EZ ? 10 : a >= DZ ? 5 : a >= OZ ? 2 : 1);
+ return i >= 0 ? (a >= DZ ? 10 : a >= OZ ? 5 : a >= kZ ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= DZ ? 10 : a >= OZ ? 5 : a >= kZ ? 2 : 1);
}
-function jZ(e, t, n) {
+function MZ(e, t, n) {
var r = Math.abs(t - e) / Math.max(0, n), i = 10 ** Math.floor(Math.log(r) / Math.LN10), a = r / i;
- return a >= EZ ? i *= 10 : a >= DZ ? i *= 5 : a >= OZ && (i *= 2), t < e ? -i : i;
+ return a >= DZ ? i *= 10 : a >= OZ ? i *= 5 : a >= kZ && (i *= 2), t < e ? -i : i;
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function MZ(e, t) {
+function NZ(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -80333,7 +80337,7 @@ function MZ(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function NZ(e, t) {
+function PZ(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -80344,36 +80348,36 @@ function NZ(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function PZ(e, t, n = 0, r = e.length - 1, i = yZ) {
+function FZ(e, t, n = 0, r = e.length - 1, i = bZ) {
for (; r > n;) {
if (r - n > 600) {
let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);
- PZ(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
+ FZ(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
}
let a = e[t], o = n, s = r;
- for (FZ(e, n, t), i(e[r], a) > 0 && FZ(e, n, r); o < s;) {
- for (FZ(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
+ for (IZ(e, n, t), i(e[r], a) > 0 && IZ(e, n, r); o < s;) {
+ for (IZ(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
for (; i(e[s], a) > 0;) --s;
}
- i(e[n], a) === 0 ? FZ(e, n, s) : (++s, FZ(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
+ i(e[n], a) === 0 ? IZ(e, n, s) : (++s, IZ(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
}
return e;
}
-function FZ(e, t, n) {
+function IZ(e, t, n) {
let r = e[t];
e[t] = e[n], e[n] = r;
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function tGe(e, t, n) {
- if (e = Float64Array.from(ZWe(e, n)), r = e.length) {
- if ((t = +t) <= 0 || r < 2) return NZ(e);
- if (t >= 1) return MZ(e);
- var r, i = (r - 1) * t, a = Math.floor(i), o = MZ(PZ(e, a).subarray(0, a + 1));
- return o + (NZ(e.subarray(a + 1)) - o) * (i - a);
+function eGe(e, t, n) {
+ if (e = Float64Array.from(XWe(e, n)), r = e.length) {
+ if ((t = +t) <= 0 || r < 2) return PZ(e);
+ if (t >= 1) return NZ(e);
+ var r, i = (r - 1) * t, a = Math.floor(i), o = NZ(FZ(e, a).subarray(0, a + 1));
+ return o + (PZ(e.subarray(a + 1)) - o) * (i - a);
}
}
-function nGe(e, t, n = xZ) {
+function tGe(e, t, n = SZ) {
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);
@@ -80383,14 +80387,14 @@ function nGe(e, t, n = xZ) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function rGe(e, t, n) {
+function nGe(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function IZ(e, t) {
+function LZ(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -80401,7 +80405,7 @@ function IZ(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/init.js
-function LZ(e, t) {
+function RZ(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -80411,7 +80415,7 @@ function LZ(e, t) {
}
return this;
}
-function RZ(e, t) {
+function zZ(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -80423,20 +80427,20 @@ function RZ(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/ordinal.js
-var zZ = Symbol("implicit");
-function BZ() {
- var e = new wZ(), t = [], n = [], r = zZ;
+var BZ = Symbol("implicit");
+function VZ() {
+ var e = new TZ(), t = [], n = [], r = BZ;
function i(i) {
let a = e.get(i);
if (a === void 0) {
- if (r !== zZ) return r;
+ if (r !== BZ) return r;
e.set(i, a = t.push(i) - 1);
}
return n[a % n.length];
}
return i.domain = function(n) {
if (!arguments.length) return t.slice();
- t = [], e = new wZ();
+ t = [], e = new TZ();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -80444,18 +80448,18 @@ function BZ() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return BZ(t, n).unknown(r);
- }, LZ.apply(i, arguments), i;
+ return VZ(t, n).unknown(r);
+ }, RZ.apply(i, arguments), i;
}
//#endregion
//#region node_modules/d3-scale/src/band.js
-function VZ() {
- var e = BZ().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
+function HZ() {
+ var e = VZ().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
delete e.unknown;
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = rGe(e).map(function(e) {
+ var m = nGe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -80481,32 +80485,32 @@ function VZ() {
}, e.align = function(e) {
return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
}, e.copy = function() {
- return VZ(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
- }, LZ.apply(d(), arguments);
+ return HZ(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
+ }, RZ.apply(d(), arguments);
}
-function HZ(e) {
+function UZ(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
- return HZ(t());
+ return UZ(t());
}, e;
}
-function iGe() {
- return HZ(VZ.apply(null, arguments).paddingInner(1));
+function rGe() {
+ return UZ(HZ.apply(null, arguments).paddingInner(1));
}
//#endregion
//#region node_modules/d3-color/src/define.js
-function UZ(e, t, n) {
+function WZ(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e;
}
-function WZ(e, t) {
+function GZ(e, t) {
var n = Object.create(e.prototype);
for (var r in t) n[r] = t[r];
return n;
}
//#endregion
//#region node_modules/d3-color/src/color.js
-function GZ() {}
-var KZ = .7, qZ = 1 / KZ, JZ = "\\s*([+-]?\\d+)\\s*", YZ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", XZ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", aGe = /^#([0-9a-f]{3,8})$/, oGe = RegExp(`^rgb\\(${JZ},${JZ},${JZ}\\)$`), sGe = RegExp(`^rgb\\(${XZ},${XZ},${XZ}\\)$`), cGe = RegExp(`^rgba\\(${JZ},${JZ},${JZ},${YZ}\\)$`), lGe = RegExp(`^rgba\\(${XZ},${XZ},${XZ},${YZ}\\)$`), uGe = RegExp(`^hsl\\(${YZ},${XZ},${XZ}\\)$`), dGe = RegExp(`^hsla\\(${YZ},${XZ},${XZ},${YZ}\\)$`), ZZ = {
+function KZ() {}
+var qZ = .7, JZ = 1 / qZ, YZ = "\\s*([+-]?\\d+)\\s*", XZ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ZZ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", iGe = /^#([0-9a-f]{3,8})$/, aGe = RegExp(`^rgb\\(${YZ},${YZ},${YZ}\\)$`), oGe = RegExp(`^rgb\\(${ZZ},${ZZ},${ZZ}\\)$`), sGe = RegExp(`^rgba\\(${YZ},${YZ},${YZ},${XZ}\\)$`), cGe = RegExp(`^rgba\\(${ZZ},${ZZ},${ZZ},${XZ}\\)$`), lGe = RegExp(`^hsl\\(${XZ},${ZZ},${ZZ}\\)$`), uGe = RegExp(`^hsla\\(${XZ},${ZZ},${ZZ},${XZ}\\)$`), QZ = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -80656,170 +80660,170 @@ var KZ = .7, qZ = 1 / KZ, JZ = "\\s*([+-]?\\d+)\\s*", YZ = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-UZ(GZ, eQ, {
+WZ(KZ, tQ, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
displayable() {
return this.rgb().displayable();
},
- hex: QZ,
- formatHex: QZ,
- formatHex8: fGe,
- formatHsl: pGe,
- formatRgb: $Z,
- toString: $Z
+ hex: $Z,
+ formatHex: $Z,
+ formatHex8: dGe,
+ formatHsl: fGe,
+ formatRgb: eQ,
+ toString: eQ
});
-function QZ() {
+function $Z() {
return this.rgb().formatHex();
}
-function fGe() {
+function dGe() {
return this.rgb().formatHex8();
}
-function pGe() {
- return dQ(this).formatHsl();
+function fGe() {
+ return fQ(this).formatHsl();
}
-function $Z() {
+function eQ() {
return this.rgb().formatRgb();
}
-function eQ(e) {
- var t, n;
- return e = (e + "").trim().toLowerCase(), (t = aGe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? tQ(t) : n === 3 ? new iQ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? nQ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? nQ(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 = oGe.exec(e)) ? new iQ(t[1], t[2], t[3], 1) : (t = sGe.exec(e)) ? new iQ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = cGe.exec(e)) ? nQ(t[1], t[2], t[3], t[4]) : (t = lGe.exec(e)) ? nQ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = uGe.exec(e)) ? uQ(t[1], t[2] / 100, t[3] / 100, 1) : (t = dGe.exec(e)) ? uQ(t[1], t[2] / 100, t[3] / 100, t[4]) : ZZ.hasOwnProperty(e) ? tQ(ZZ[e]) : e === "transparent" ? new iQ(NaN, NaN, NaN, 0) : null;
-}
function tQ(e) {
- return new iQ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
-}
-function nQ(e, t, n, r) {
- return r <= 0 && (e = t = n = NaN), new iQ(e, t, n, r);
+ var t, n;
+ return e = (e + "").trim().toLowerCase(), (t = iGe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? nQ(t) : n === 3 ? new aQ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? rQ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? rQ(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 = aGe.exec(e)) ? new aQ(t[1], t[2], t[3], 1) : (t = oGe.exec(e)) ? new aQ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = sGe.exec(e)) ? rQ(t[1], t[2], t[3], t[4]) : (t = cGe.exec(e)) ? rQ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = lGe.exec(e)) ? dQ(t[1], t[2] / 100, t[3] / 100, 1) : (t = uGe.exec(e)) ? dQ(t[1], t[2] / 100, t[3] / 100, t[4]) : QZ.hasOwnProperty(e) ? nQ(QZ[e]) : e === "transparent" ? new aQ(NaN, NaN, NaN, 0) : null;
}
-function mGe(e) {
- return e instanceof GZ || (e = eQ(e)), e ? (e = e.rgb(), new iQ(e.r, e.g, e.b, e.opacity)) : new iQ();
+function nQ(e) {
+ return new aQ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
}
function rQ(e, t, n, r) {
- return arguments.length === 1 ? mGe(e) : new iQ(e, t, n, r ?? 1);
+ return r <= 0 && (e = t = n = NaN), new aQ(e, t, n, r);
+}
+function pGe(e) {
+ return e instanceof KZ || (e = tQ(e)), e ? (e = e.rgb(), new aQ(e.r, e.g, e.b, e.opacity)) : new aQ();
}
function iQ(e, t, n, r) {
+ return arguments.length === 1 ? pGe(e) : new aQ(e, t, n, r ?? 1);
+}
+function aQ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-UZ(iQ, rQ, WZ(GZ, {
+WZ(aQ, iQ, GZ(KZ, {
brighter(e) {
- return e = e == null ? qZ : qZ ** +e, new iQ(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? JZ : JZ ** +e, new aQ(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? KZ : KZ ** +e, new iQ(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? qZ : qZ ** +e, new aQ(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
},
clamp() {
- return new iQ(cQ(this.r), cQ(this.g), cQ(this.b), sQ(this.opacity));
+ return new aQ(lQ(this.r), lQ(this.g), lQ(this.b), cQ(this.opacity));
},
displayable() {
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
},
- hex: aQ,
- formatHex: aQ,
- formatHex8: hGe,
- formatRgb: oQ,
- toString: oQ
+ hex: oQ,
+ formatHex: oQ,
+ formatHex8: mGe,
+ formatRgb: sQ,
+ toString: sQ
}));
-function aQ() {
- return `#${lQ(this.r)}${lQ(this.g)}${lQ(this.b)}`;
+function oQ() {
+ return `#${uQ(this.r)}${uQ(this.g)}${uQ(this.b)}`;
}
-function hGe() {
- return `#${lQ(this.r)}${lQ(this.g)}${lQ(this.b)}${lQ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
+function mGe() {
+ return `#${uQ(this.r)}${uQ(this.g)}${uQ(this.b)}${uQ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
-function oQ() {
- let e = sQ(this.opacity);
- return `${e === 1 ? "rgb(" : "rgba("}${cQ(this.r)}, ${cQ(this.g)}, ${cQ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
+function sQ() {
+ let e = cQ(this.opacity);
+ return `${e === 1 ? "rgb(" : "rgba("}${lQ(this.r)}, ${lQ(this.g)}, ${lQ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
}
-function sQ(e) {
+function cQ(e) {
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
}
-function cQ(e) {
+function lQ(e) {
return Math.max(0, Math.min(255, Math.round(e) || 0));
}
-function lQ(e) {
- return e = cQ(e), (e < 16 ? "0" : "") + e.toString(16);
+function uQ(e) {
+ return e = lQ(e), (e < 16 ? "0" : "") + e.toString(16);
}
-function uQ(e, t, n, r) {
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new fQ(e, t, n, r);
+function dQ(e, t, n, r) {
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new pQ(e, t, n, r);
}
-function dQ(e) {
- if (e instanceof fQ) return new fQ(e.h, e.s, e.l, e.opacity);
- if (e instanceof GZ || (e = eQ(e)), !e) return new fQ();
- if (e instanceof fQ) return e;
+function fQ(e) {
+ if (e instanceof pQ) return new pQ(e.h, e.s, e.l, e.opacity);
+ if (e instanceof KZ || (e = tQ(e)), !e) return new pQ();
+ if (e instanceof pQ) return e;
e = e.rgb();
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
- return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new fQ(o, s, c, e.opacity);
+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new pQ(o, s, c, e.opacity);
}
-function gGe(e, t, n, r) {
- return arguments.length === 1 ? dQ(e) : new fQ(e, t, n, r ?? 1);
+function hGe(e, t, n, r) {
+ return arguments.length === 1 ? fQ(e) : new pQ(e, t, n, r ?? 1);
}
-function fQ(e, t, n, r) {
+function pQ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-UZ(fQ, gGe, WZ(GZ, {
+WZ(pQ, hGe, GZ(KZ, {
brighter(e) {
- return e = e == null ? qZ : qZ ** +e, new fQ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? JZ : JZ ** +e, new pQ(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? KZ : KZ ** +e, new fQ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? qZ : qZ ** +e, new pQ(this.h, this.s, this.l * e, this.opacity);
},
rgb() {
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
- return new iQ(hQ(e >= 240 ? e - 240 : e + 120, i, r), hQ(e, i, r), hQ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
+ return new aQ(gQ(e >= 240 ? e - 240 : e + 120, i, r), gQ(e, i, r), gQ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
},
clamp() {
- return new fQ(pQ(this.h), mQ(this.s), mQ(this.l), sQ(this.opacity));
+ return new pQ(mQ(this.h), hQ(this.s), hQ(this.l), cQ(this.opacity));
},
displayable() {
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
},
formatHsl() {
- let e = sQ(this.opacity);
- return `${e === 1 ? "hsl(" : "hsla("}${pQ(this.h)}, ${mQ(this.s) * 100}%, ${mQ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
+ let e = cQ(this.opacity);
+ return `${e === 1 ? "hsl(" : "hsla("}${mQ(this.h)}, ${hQ(this.s) * 100}%, ${hQ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
}
}));
-function pQ(e) {
+function mQ(e) {
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
}
-function mQ(e) {
+function hQ(e) {
return Math.max(0, Math.min(1, e || 0));
}
-function hQ(e, t, n) {
+function gQ(e, t, n) {
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
}
//#endregion
//#region node_modules/d3-interpolate/src/constant.js
-var gQ = (e) => () => e;
+var _Q = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function _Ge(e, t) {
+function gGe(e, t) {
return function(n) {
return e + n * t;
};
}
-function vGe(e, t, n) {
+function _Ge(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function yGe(e) {
- return (e = +e) == 1 ? _Q : function(t, n) {
- return n - t ? vGe(t, n, e) : gQ(isNaN(t) ? n : t);
+function vGe(e) {
+ return (e = +e) == 1 ? vQ : function(t, n) {
+ return n - t ? _Ge(t, n, e) : _Q(isNaN(t) ? n : t);
};
}
-function _Q(e, t) {
+function vQ(e, t) {
var n = t - e;
- return n ? _Ge(e, n) : gQ(isNaN(e) ? t : e);
+ return n ? gGe(e, n) : _Q(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
-var vQ = (function e(t) {
- var n = yGe(t);
+var yQ = (function e(t) {
+ var n = vGe(t);
function r(e, t) {
- var r = n((e = rQ(e)).r, (t = rQ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = _Q(e.opacity, t.opacity);
+ var r = n((e = iQ(e)).r, (t = iQ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = vQ(e.opacity, t.opacity);
return function(t) {
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
};
@@ -80828,7 +80832,7 @@ var vQ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function bGe(e, t) {
+function yGe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -80836,13 +80840,13 @@ function bGe(e, t) {
return r;
};
}
-function xGe(e) {
+function bGe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function SGe(e, t) {
- for (var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o = 0; o < r; ++o) i[o] = SQ(e[o], t[o]);
+function xGe(e, t) {
+ for (var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o = 0; o < r; ++o) i[o] = CQ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
return function(e) {
for (o = 0; o < r; ++o) a[o] = i[o](e);
@@ -80851,7 +80855,7 @@ function SGe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function CGe(e, t) {
+function SGe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -80859,16 +80863,16 @@ function CGe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/number.js
-function yQ(e, t) {
+function bQ(e, t) {
return e = +e, t = +t, function(n) {
return e * (1 - n) + t * n;
};
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function wGe(e, t) {
+function CGe(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] = SQ(e[i], t[i]) : r[i] = t[i];
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = CQ(e[i], t[i]) : r[i] = t[i];
return function(e) {
for (i in n) r[i] = n[i](e);
return r;
@@ -80876,45 +80880,45 @@ function wGe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/string.js
-var bQ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, xQ = new RegExp(bQ.source, "g");
-function TGe(e) {
+var xQ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, SQ = new RegExp(xQ.source, "g");
+function wGe(e) {
return function() {
return e;
};
}
-function EGe(e) {
+function TGe(e) {
return function(t) {
return e(t) + "";
};
}
-function DGe(e, t) {
- var n = bQ.lastIndex = xQ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
- for (e += "", t += ""; (r = bQ.exec(e)) && (i = xQ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
+function EGe(e, t) {
+ var n = xQ.lastIndex = SQ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
+ for (e += "", t += ""; (r = xQ.exec(e)) && (i = SQ.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: yQ(r, i)
- })), n = xQ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? EGe(c[0].x) : TGe(t) : (t = c.length, function(e) {
+ x: bQ(r, i)
+ })), n = SQ.lastIndex;
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? TGe(c[0].x) : wGe(t) : (t = c.length, function(e) {
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
return s.join("");
});
}
//#endregion
//#region node_modules/d3-interpolate/src/value.js
-function SQ(e, t) {
+function CQ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? gQ(t) : (n === "number" ? yQ : n === "string" ? (r = eQ(t)) ? (t = r, vQ) : DGe : t instanceof eQ ? vQ : t instanceof Date ? CGe : xGe(t) ? bGe : Array.isArray(t) ? SGe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? wGe : yQ)(e, t);
+ return t == null || n === "boolean" ? _Q(t) : (n === "number" ? bQ : n === "string" ? (r = tQ(t)) ? (t = r, yQ) : EGe : t instanceof tQ ? yQ : t instanceof Date ? SGe : bGe(t) ? yGe : Array.isArray(t) ? xGe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? CGe : bQ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
-function CQ(e, t) {
+function wQ(e, t) {
return e = +e, t = +t, function(n) {
return Math.round(e * (1 - n) + t * n);
};
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function OGe(e, t) {
- t === void 0 && (t = e, e = SQ);
+function DGe(e, t) {
+ t === void 0 && (t = e, e = CQ);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
var t = Math.max(0, Math.min(r - 1, Math.floor(e *= r)));
@@ -80923,69 +80927,69 @@ function OGe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function kGe(e) {
+function OGe(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-scale/src/number.js
-function wQ(e) {
+function TQ(e) {
return +e;
}
//#endregion
//#region node_modules/d3-scale/src/continuous.js
-var TQ = [0, 1];
-function EQ(e) {
+var EQ = [0, 1];
+function DQ(e) {
return e;
}
-function DQ(e, t) {
+function OQ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : kGe(isNaN(t) ? NaN : .5);
+ } : OGe(isNaN(t) ? NaN : .5);
}
-function AGe(e, t) {
+function kGe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function jGe(e, t, n) {
+function AGe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
- return i < r ? (r = DQ(i, r), a = n(o, a)) : (r = DQ(r, i), a = n(a, o)), function(e) {
+ return i < r ? (r = OQ(i, r), a = n(o, a)) : (r = OQ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function MGe(e, t, n) {
+function jGe(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] = DQ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = OQ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = CZ(e, t, 1, r) - 1;
+ var n = wZ(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
-function OQ(e, t) {
+function kQ(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
-function kQ() {
- var e = TQ, t = TQ, n = SQ, r, i, a, o = EQ, s, c, l;
+function AQ() {
+ var e = EQ, t = EQ, n = CQ, r, i, a, o = DQ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== EQ && (o = AGe(e[0], e[n - 1])), s = n > 2 ? MGe : jGe, c = l = null, d;
+ return o !== DQ && (o = kGe(e[0], e[n - 1])), s = n > 2 ? jGe : AGe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
}
return d.invert = function(n) {
- return o(i((l ||= s(t, e.map(r), yQ))(n)));
+ return o(i((l ||= s(t, e.map(r), bQ))(n)));
}, d.domain = function(t) {
- return arguments.length ? (e = Array.from(t, wQ), u()) : e.slice();
+ return arguments.length ? (e = Array.from(t, TQ), u()) : e.slice();
}, d.range = function(e) {
return arguments.length ? (t = Array.from(e), u()) : t.slice();
}, d.rangeRound = function(e) {
- return t = Array.from(e), n = CQ, u();
+ return t = Array.from(e), n = wQ, u();
}, d.clamp = function(e) {
- return arguments.length ? (o = e ? !0 : EQ, u()) : o !== EQ;
+ return arguments.length ? (o = e ? !0 : DQ, u()) : o !== DQ;
}, d.interpolate = function(e) {
return arguments.length ? (n = e, u()) : n;
}, d.unknown = function(e) {
@@ -80994,27 +80998,27 @@ function kQ() {
return r = e, i = t, u();
};
}
-function AQ() {
- return kQ()(EQ, EQ);
+function jQ() {
+ return AQ()(DQ, DQ);
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function NGe(e) {
+function MGe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
-function jQ(e, t) {
+function MQ(e, t) {
if (!isFinite(e) || e === 0) return null;
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
}
//#endregion
//#region node_modules/d3-format/src/exponent.js
-function MQ(e) {
- return e = jQ(Math.abs(e)), e ? e[1] : NaN;
+function NQ(e) {
+ return e = MQ(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function PGe(e, t) {
+function NGe(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);
@@ -81022,7 +81026,7 @@ function PGe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function FGe(e) {
+function PGe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -81031,11 +81035,11 @@ function FGe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var IGe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
-function NQ(e) {
- if (!(t = IGe.exec(e))) throw Error("invalid format: " + e);
+var FGe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+function PQ(e) {
+ if (!(t = FGe.exec(e))) throw Error("invalid format: " + e);
var t;
- return new PQ({
+ return new FQ({
fill: t[1],
align: t[2],
sign: t[3],
@@ -81048,16 +81052,16 @@ function NQ(e) {
type: t[10]
});
}
-NQ.prototype = PQ.prototype;
-function PQ(e) {
+PQ.prototype = FQ.prototype;
+function FQ(e) {
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
}
-PQ.prototype.toString = function() {
+FQ.prototype.toString = function() {
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function LGe(e) {
+function IGe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -81073,46 +81077,46 @@ function LGe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
-var FQ;
-function RGe(e, t) {
- var n = jQ(e, t);
- if (!n) return FQ = void 0, e.toPrecision(t);
- var r = n[0], i = n[1], a = i - (FQ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
- return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + jQ(e, Math.max(0, t + a - 1))[0];
+var IQ;
+function LGe(e, t) {
+ var n = MQ(e, t);
+ if (!n) return IQ = void 0, e.toPrecision(t);
+ var r = n[0], i = n[1], a = i - (IQ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + MQ(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region node_modules/d3-format/src/formatRounded.js
-function IQ(e, t) {
- var n = jQ(e, t);
+function LQ(e, t) {
+ var n = MQ(e, t);
if (!n) return e + "";
var r = n[0], i = n[1];
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
}
//#endregion
//#region node_modules/d3-format/src/formatTypes.js
-var LQ = {
+var RQ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: NGe,
+ d: MGe,
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) => IQ(e * 100, t),
- r: IQ,
- s: RGe,
+ p: (e, t) => LQ(e * 100, t),
+ r: LQ,
+ s: LGe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
//#endregion
//#region node_modules/d3-format/src/identity.js
-function RQ(e) {
+function zQ(e) {
return e;
}
//#endregion
//#region node_modules/d3-format/src/locale.js
-var zQ = Array.prototype.map, BQ = [
+var BQ = Array.prototype.map, VQ = [
"y",
"z",
"a",
@@ -81131,13 +81135,13 @@ var zQ = Array.prototype.map, BQ = [
"Z",
"Y"
];
-function zGe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? RQ : PGe(zQ.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 ? RQ : FGe(zQ.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 RGe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? zQ : NGe(BQ.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 ? zQ : PGe(BQ.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 = NQ(e);
+ e = PQ(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
- y === "n" ? (g = !0, y = "g") : LQ[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
- var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = LQ[y], C = /[defgprs%]/.test(y);
+ y === "n" ? (g = !0, y = "g") : RQ[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
+ var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = RQ[y], C = /[defgprs%]/.test(y);
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
function w(e) {
var n = b, r = x, o, l, p;
@@ -81145,7 +81149,7 @@ function zGe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = LGe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && FQ !== void 0 ? BQ[8 + FQ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = IGe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && IQ !== void 0 ? VQ[8 + IQ / 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;
@@ -81173,7 +81177,7 @@ function zGe(e) {
}, w;
}
function u(e, t) {
- var n = Math.max(-8, Math.min(8, Math.floor(MQ(t) / 3))) * 3, r = 10 ** -n, i = l((e = NQ(e), e.type = "f", e), { suffix: BQ[8 + n / 3] });
+ var n = Math.max(-8, Math.min(8, Math.floor(NQ(t) / 3))) * 3, r = 10 ** -n, i = l((e = PQ(e), e.type = "f", e), { suffix: VQ[8 + n / 3] });
return function(e) {
return i(r * e);
};
@@ -81185,65 +81189,65 @@ function zGe(e) {
}
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
-var VQ, HQ, UQ;
-BGe({
+var HQ, UQ, WQ;
+zGe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function BGe(e) {
- return VQ = zGe(e), HQ = VQ.format, UQ = VQ.formatPrefix, VQ;
+function zGe(e) {
+ return HQ = RGe(e), UQ = HQ.format, WQ = HQ.formatPrefix, HQ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function VGe(e) {
- return Math.max(0, -MQ(Math.abs(e)));
+function BGe(e) {
+ return Math.max(0, -NQ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function HGe(e, t) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(MQ(t) / 3))) * 3 - MQ(Math.abs(e)));
+function VGe(e, t) {
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(NQ(t) / 3))) * 3 - NQ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function UGe(e, t) {
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, MQ(t) - MQ(e)) + 1;
+function HGe(e, t) {
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, NQ(t) - NQ(e)) + 1;
}
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
-function WQ(e, t, n, r) {
- var i = jZ(e, t, n), a;
- switch (r = NQ(r ?? ",f"), r.type) {
+function GQ(e, t, n, r) {
+ var i = MZ(e, t, n), a;
+ switch (r = PQ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = HGe(i, o)) && (r.precision = a), UQ(r, o);
+ return r.precision == null && !isNaN(a = VGe(i, o)) && (r.precision = a), WQ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = UGe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = HGe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = VGe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = BGe(i)) && (r.precision = a - (r.type === "%") * 2);
}
- return HQ(r);
+ return UQ(r);
}
//#endregion
//#region node_modules/d3-scale/src/linear.js
-function GQ(e) {
+function KQ(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
- return kZ(n[0], n[n.length - 1], e ?? 10);
+ return AZ(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
- return WQ(r[0], r[r.length - 1], e ?? 10, n);
+ return GQ(r[0], r[r.length - 1], e ?? 10, n);
}, e.nice = function(n) {
n ??= 10;
var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
- if (l = AZ(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
+ if (l = jZ(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
else break;
@@ -81252,64 +81256,64 @@ function GQ(e) {
return e;
}, e;
}
-function KQ() {
- var e = AQ();
+function qQ() {
+ var e = jQ();
return e.copy = function() {
- return OQ(e, KQ());
- }, LZ.apply(e, arguments), GQ(e);
+ return kQ(e, qQ());
+ }, RZ.apply(e, arguments), KQ(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
-function qQ(e) {
+function JQ(e) {
var t;
function n(e) {
return e == null || isNaN(e = +e) ? t : e;
}
return n.invert = n, n.domain = n.range = function(t) {
- return arguments.length ? (e = Array.from(t, wQ), n) : e.slice();
+ return arguments.length ? (e = Array.from(t, TQ), n) : e.slice();
}, n.unknown = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.copy = function() {
- return qQ(e).unknown(t);
- }, e = arguments.length ? Array.from(e, wQ) : [0, 1], GQ(n);
+ return JQ(e).unknown(t);
+ }, e = arguments.length ? Array.from(e, TQ) : [0, 1], KQ(n);
}
//#endregion
//#region node_modules/d3-scale/src/nice.js
-function JQ(e, t) {
+function YQ(e, t) {
e = e.slice();
var n = 0, r = e.length - 1, i = e[n], a = e[r], o;
return a < i && (o = n, n = r, r = o, o = i, i = a, a = o), e[n] = t.floor(i), e[r] = t.ceil(a), e;
}
//#endregion
//#region node_modules/d3-scale/src/log.js
-function YQ(e) {
+function XQ(e) {
return Math.log(e);
}
-function XQ(e) {
+function ZQ(e) {
return Math.exp(e);
}
-function WGe(e) {
+function UGe(e) {
return -Math.log(-e);
}
-function GGe(e) {
+function WGe(e) {
return -Math.exp(-e);
}
-function KGe(e) {
+function GGe(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function qGe(e) {
- return e === 10 ? KGe : e === Math.E ? Math.exp : (t) => e ** +t;
+function KGe(e) {
+ return e === 10 ? GGe : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function JGe(e) {
+function qGe(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 ZQ(e) {
+function QQ(e) {
return (t, n) => -e(-t, n);
}
-function QQ(e) {
- let t = e(YQ, XQ), n = t.domain, r = 10, i, a;
+function $Q(e) {
+ let t = e(XQ, ZQ), n = t.domain, r = 10, i, a;
function o() {
- return i = JGe(r), a = qGe(r), n()[0] < 0 ? (i = ZQ(i), a = ZQ(a), e(WGe, GGe)) : e(YQ, XQ), t;
+ return i = qGe(r), a = KGe(r), n()[0] < 0 ? (i = QQ(i), a = QQ(a), e(UGe, WGe)) : e(XQ, ZQ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -81329,100 +81333,100 @@ function QQ(e) {
if (f > s) break;
m.push(f);
}
- m.length * 2 < p && (m = kZ(o, s, p));
- } else m = kZ(l, u, Math.min(u - l, p)).map(a);
+ m.length * 2 < p && (m = AZ(o, s, p));
+ } else m = AZ(l, u, Math.min(u - l, p)).map(a);
return c ? m.reverse() : m;
}, t.tickFormat = (e, n) => {
- if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = NQ(n)).precision == null && (n.trim = !0), n = HQ(n)), e === Infinity) return n;
+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = PQ(n)).precision == null && (n.trim = !0), n = UQ(n)), e === Infinity) return n;
let o = Math.max(1, r * e / t.ticks().length);
return (e) => {
let t = e / a(Math.round(i(e)));
return t * r < r - .5 && (t *= r), t <= o ? n(e) : "";
};
- }, t.nice = () => n(JQ(n(), {
+ }, t.nice = () => n(YQ(n(), {
floor: (e) => a(Math.floor(i(e))),
ceil: (e) => a(Math.ceil(i(e)))
})), t;
}
-function $Q() {
- let e = QQ(kQ()).domain([1, 10]);
- return e.copy = () => OQ(e, $Q()).base(e.base()), LZ.apply(e, arguments), e;
+function e$() {
+ let e = $Q(AQ()).domain([1, 10]);
+ return e.copy = () => kQ(e, e$()).base(e.base()), RZ.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
-function e$(e) {
+function t$(e) {
return function(t) {
return Math.sign(t) * Math.log1p(Math.abs(t / e));
};
}
-function t$(e) {
+function n$(e) {
return function(t) {
return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
};
}
-function n$(e) {
- var t = 1, n = e(e$(t), t$(t));
+function r$(e) {
+ var t = 1, n = e(t$(t), n$(t));
return n.constant = function(n) {
- return arguments.length ? e(e$(t = +n), t$(t)) : t;
- }, GQ(n);
+ return arguments.length ? e(t$(t = +n), n$(t)) : t;
+ }, KQ(n);
}
-function r$() {
- var e = n$(kQ());
+function i$() {
+ var e = r$(AQ());
return e.copy = function() {
- return OQ(e, r$()).constant(e.constant());
- }, LZ.apply(e, arguments);
+ return kQ(e, i$()).constant(e.constant());
+ }, RZ.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
-function i$(e) {
+function a$(e) {
return function(t) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function YGe(e) {
+function JGe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function XGe(e) {
+function YGe(e) {
return e < 0 ? -e * e : e * e;
}
-function a$(e) {
- var t = e(EQ, EQ), n = 1;
+function o$(e) {
+ var t = e(DQ, DQ), n = 1;
function r() {
- return n === 1 ? e(EQ, EQ) : n === .5 ? e(YGe, XGe) : e(i$(n), i$(1 / n));
+ return n === 1 ? e(DQ, DQ) : n === .5 ? e(JGe, YGe) : e(a$(n), a$(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
- }, GQ(t);
+ }, KQ(t);
}
-function o$() {
- var e = a$(kQ());
+function s$() {
+ var e = o$(AQ());
return e.copy = function() {
- return OQ(e, o$()).exponent(e.exponent());
- }, LZ.apply(e, arguments), e;
+ return kQ(e, s$()).exponent(e.exponent());
+ }, RZ.apply(e, arguments), e;
}
-function ZGe() {
- return o$.apply(null, arguments).exponent(.5);
+function XGe() {
+ return s$.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/radial.js
-function s$(e) {
+function c$(e) {
return Math.sign(e) * e * e;
}
-function QGe(e) {
+function ZGe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
-function c$() {
- var e = AQ(), t = [0, 1], n = !1, r;
+function l$() {
+ var e = jQ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = QGe(e(t));
+ var i = ZGe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
- return e.invert(s$(t));
+ return e.invert(c$(t));
}, i.domain = function(t) {
return arguments.length ? (e.domain(t), i) : e.domain();
}, i.range = function(n) {
- return arguments.length ? (e.range((t = Array.from(n, wQ)).map(s$)), i) : t.slice();
+ return arguments.length ? (e.range((t = Array.from(n, TQ)).map(c$)), i) : t.slice();
}, i.rangeRound = function(e) {
return i.range(e).round(!0);
}, i.round = function(e) {
@@ -81432,20 +81436,20 @@ function c$() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return c$(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, LZ.apply(i, arguments), GQ(i);
+ return l$(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
+ }, RZ.apply(i, arguments), KQ(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
-function l$() {
+function u$() {
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] = nGe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = tGe(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[CZ(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[wZ(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -81454,7 +81458,7 @@ function l$() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(yZ), i();
+ return e.sort(bZ), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -81462,15 +81466,15 @@ function l$() {
}, a.quantiles = function() {
return n.slice();
}, a.copy = function() {
- return l$().domain(e).range(t).unknown(r);
- }, LZ.apply(a, arguments);
+ return u$().domain(e).range(t).unknown(r);
+ }, RZ.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
-function u$() {
+function d$() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[CZ(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[wZ(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -81489,15 +81493,15 @@ function u$() {
}, o.thresholds = function() {
return r.slice();
}, o.copy = function() {
- return u$().domain([e, t]).range(i).unknown(a);
- }, LZ.apply(GQ(o), arguments);
+ return d$().domain([e, t]).range(i).unknown(a);
+ }, RZ.apply(KQ(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
-function d$() {
+function f$() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[CZ(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[wZ(e, i, 0, r)] : n;
}
return i.domain = function(n) {
return arguments.length ? (e = Array.from(n), r = Math.min(e.length, t.length - 1), i) : e.slice();
@@ -81509,13 +81513,13 @@ function d$() {
}, i.unknown = function(e) {
return arguments.length ? (n = e, i) : n;
}, i.copy = function() {
- return d$().domain(e).range(t).unknown(n);
- }, LZ.apply(i, arguments);
+ return f$().domain(e).range(t).unknown(n);
+ }, RZ.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
-var f$ = /* @__PURE__ */ new Date(), p$ = /* @__PURE__ */ new Date();
-function m$(e, t, n, r) {
+var p$ = /* @__PURE__ */ new Date(), m$ = /* @__PURE__ */ new Date();
+function h$(e, t, n, r) {
function i(t) {
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
}
@@ -81530,226 +81534,226 @@ function m$(e, t, n, r) {
o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);
while (s < n && n < r);
return o;
- }, i.filter = (n) => m$((t) => {
+ }, i.filter = (n) => h$((t) => {
if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
}, (e, r) => {
if (e >= e) {
if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
else for (; --r >= 0;) for (; t(e, 1), !n(e););
}
- }), n && (i.count = (t, r) => (f$.setTime(+t), p$.setTime(+r), e(f$), e(p$), Math.floor(n(f$, p$))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
+ }), n && (i.count = (t, r) => (p$.setTime(+t), m$.setTime(+r), e(p$), e(m$), Math.floor(n(p$, m$))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
}
//#endregion
//#region node_modules/d3-time/src/millisecond.js
-var h$ = m$(() => {}, (e, t) => {
+var g$ = h$(() => {}, (e, t) => {
e.setTime(+e + t);
}, (e, t) => t - e);
-h$.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? m$((t) => {
+g$.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? h$((t) => {
t.setTime(Math.floor(t / e) * e);
}, (t, n) => {
t.setTime(+t + n * e);
-}, (t, n) => (n - t) / e) : h$), h$.range;
+}, (t, n) => (n - t) / e) : g$), g$.range;
//#endregion
//#region node_modules/d3-time/src/duration.js
-var g$ = 1e3, _$ = g$ * 60, v$ = _$ * 60, y$ = v$ * 24, b$ = y$ * 7, x$ = y$ * 30, S$ = y$ * 365, C$ = m$((e) => {
+var _$ = 1e3, v$ = _$ * 60, y$ = v$ * 60, b$ = y$ * 24, x$ = b$ * 7, S$ = b$ * 30, C$ = b$ * 365, w$ = h$((e) => {
e.setTime(e - e.getMilliseconds());
}, (e, t) => {
- e.setTime(+e + t * g$);
-}, (e, t) => (t - e) / g$, (e) => e.getUTCSeconds());
-C$.range;
+ e.setTime(+e + t * _$);
+}, (e, t) => (t - e) / _$, (e) => e.getUTCSeconds());
+w$.range;
//#endregion
//#region node_modules/d3-time/src/minute.js
-var w$ = m$((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * g$);
+var T$ = h$((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * _$);
}, (e, t) => {
- e.setTime(+e + t * _$);
-}, (e, t) => (t - e) / _$, (e) => e.getMinutes());
-w$.range;
-var T$ = m$((e) => {
+ e.setTime(+e + t * v$);
+}, (e, t) => (t - e) / v$, (e) => e.getMinutes());
+T$.range;
+var E$ = h$((e) => {
e.setUTCSeconds(0, 0);
}, (e, t) => {
- e.setTime(+e + t * _$);
-}, (e, t) => (t - e) / _$, (e) => e.getUTCMinutes());
-T$.range;
+ e.setTime(+e + t * v$);
+}, (e, t) => (t - e) / v$, (e) => e.getUTCMinutes());
+E$.range;
//#endregion
//#region node_modules/d3-time/src/hour.js
-var E$ = m$((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * g$ - e.getMinutes() * _$);
+var D$ = h$((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * _$ - e.getMinutes() * v$);
}, (e, t) => {
- e.setTime(+e + t * v$);
-}, (e, t) => (t - e) / v$, (e) => e.getHours());
-E$.range;
-var D$ = m$((e) => {
+ e.setTime(+e + t * y$);
+}, (e, t) => (t - e) / y$, (e) => e.getHours());
+D$.range;
+var O$ = h$((e) => {
e.setUTCMinutes(0, 0, 0);
}, (e, t) => {
- e.setTime(+e + t * v$);
-}, (e, t) => (t - e) / v$, (e) => e.getUTCHours());
-D$.range;
+ e.setTime(+e + t * y$);
+}, (e, t) => (t - e) / y$, (e) => e.getUTCHours());
+O$.range;
//#endregion
//#region node_modules/d3-time/src/day.js
-var O$ = m$((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * _$) / y$, (e) => e.getDate() - 1);
-O$.range;
-var k$ = m$((e) => {
+var k$ = h$((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * v$) / b$, (e) => e.getDate() - 1);
+k$.range;
+var A$ = h$((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / y$, (e) => e.getUTCDate() - 1);
-k$.range;
-var A$ = m$((e) => {
+}, (e, t) => (t - e) / b$, (e) => e.getUTCDate() - 1);
+A$.range;
+var j$ = h$((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / y$, (e) => Math.floor(e / y$));
-A$.range;
+}, (e, t) => (t - e) / b$, (e) => Math.floor(e / b$));
+j$.range;
//#endregion
//#region node_modules/d3-time/src/week.js
-function j$(e) {
- return m$((t) => {
+function M$(e) {
+ return h$((t) => {
t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setDate(e.getDate() + t * 7);
- }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * _$) / b$);
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * v$) / x$);
}
-var M$ = j$(0), N$ = j$(1), $Ge = j$(2), eKe = j$(3), P$ = j$(4), tKe = j$(5), nKe = j$(6);
-M$.range, N$.range, $Ge.range, eKe.range, P$.range, tKe.range, nKe.range;
-function F$(e) {
- return m$((t) => {
+var N$ = M$(0), P$ = M$(1), QGe = M$(2), $Ge = M$(3), F$ = M$(4), eKe = M$(5), tKe = M$(6);
+N$.range, P$.range, QGe.range, $Ge.range, F$.range, eKe.range, tKe.range;
+function I$(e) {
+ return h$((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t * 7);
- }, (e, t) => (t - e) / b$);
+ }, (e, t) => (t - e) / x$);
}
-var I$ = F$(0), L$ = F$(1), rKe = F$(2), iKe = F$(3), R$ = F$(4), aKe = F$(5), oKe = F$(6);
-I$.range, L$.range, rKe.range, iKe.range, R$.range, aKe.range, oKe.range;
+var L$ = I$(0), R$ = I$(1), nKe = I$(2), rKe = I$(3), z$ = I$(4), iKe = I$(5), aKe = I$(6);
+L$.range, R$.range, nKe.range, rKe.range, z$.range, iKe.range, aKe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
-var z$ = m$((e) => {
+var B$ = h$((e) => {
e.setDate(1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setMonth(e.getMonth() + t);
}, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
-z$.range;
-var B$ = m$((e) => {
+B$.range;
+var V$ = h$((e) => {
e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCMonth(e.getUTCMonth() + t);
}, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
-B$.range;
+V$.range;
//#endregion
//#region node_modules/d3-time/src/year.js
-var V$ = m$((e) => {
+var H$ = h$((e) => {
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setFullYear(e.getFullYear() + t);
}, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
-V$.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : m$((t) => {
+H$.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : h$((t) => {
t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
}, (t, n) => {
t.setFullYear(t.getFullYear() + n * e);
-}), V$.range;
-var H$ = m$((e) => {
+}), H$.range;
+var U$ = h$((e) => {
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCFullYear(e.getUTCFullYear() + t);
}, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
-H$.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : m$((t) => {
+U$.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : h$((t) => {
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
}, (t, n) => {
t.setUTCFullYear(t.getUTCFullYear() + n * e);
-}), H$.range;
+}), U$.range;
//#endregion
//#region node_modules/d3-time/src/ticks.js
-function U$(e, t, n, r, i, a) {
+function W$(e, t, n, r, i, a) {
let o = [
[
- C$,
+ w$,
1,
- g$
+ _$
],
[
- C$,
+ w$,
5,
- 5 * g$
+ 5 * _$
],
[
- C$,
+ w$,
15,
- 15 * g$
+ 15 * _$
],
[
- C$,
+ w$,
30,
- 30 * g$
+ 30 * _$
],
[
a,
1,
- _$
+ v$
],
[
a,
5,
- 5 * _$
+ 5 * v$
],
[
a,
15,
- 15 * _$
+ 15 * v$
],
[
a,
30,
- 30 * _$
+ 30 * v$
],
[
i,
1,
- v$
+ y$
],
[
i,
3,
- 3 * v$
+ 3 * y$
],
[
i,
6,
- 6 * v$
+ 6 * y$
],
[
i,
12,
- 12 * v$
+ 12 * y$
],
[
r,
1,
- y$
+ b$
],
[
r,
2,
- 2 * y$
+ 2 * b$
],
[
n,
1,
- b$
+ x$
],
[
t,
1,
- x$
+ S$
],
[
t,
3,
- 3 * x$
+ 3 * S$
],
[
e,
1,
- S$
+ C$
]
];
function s(e, t, n) {
@@ -81759,32 +81763,32 @@ function U$(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = bZ(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(jZ(t / S$, n / S$, r));
- if (a === 0) return h$.every(Math.max(jZ(t, n, r), 1));
+ let i = Math.abs(n - t) / r, a = xZ(([, , e]) => e).right(o, i);
+ if (a === o.length) return e.every(MZ(t / C$, n / C$, r));
+ if (a === 0) return g$.every(Math.max(MZ(t, n, r), 1));
let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
return s.every(c);
}
return [s, c];
}
-var [sKe, cKe] = U$(H$, B$, I$, A$, D$, T$), [lKe, uKe] = U$(V$, z$, M$, O$, E$, w$);
+var [oKe, sKe] = W$(U$, V$, L$, j$, O$, E$), [cKe, lKe] = W$(H$, B$, N$, k$, D$, T$);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
-function W$(e) {
+function G$(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
return t.setFullYear(e.y), t;
}
return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
}
-function G$(e) {
+function K$(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
return t.setUTCFullYear(e.y), t;
}
return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
}
-function K$(e, t, n) {
+function q$(e, t, n) {
return {
y: e,
m: t,
@@ -81795,133 +81799,133 @@ function K$(e, t, n) {
L: 0
};
}
-function dKe(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 = X$(i), u = Z$(i), d = X$(a), f = Z$(a), p = X$(o), m = Z$(o), h = X$(s), g = Z$(s), _ = X$(c), v = Z$(c), y = {
+function uKe(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 = Z$(i), u = Q$(i), d = Z$(a), f = Q$(a), p = Z$(o), m = Q$(o), h = Z$(s), g = Q$(s), _ = Z$(c), v = Q$(c), y = {
a: N,
A: P,
b: ee,
B: F,
c: null,
- d: n1,
- e: n1,
- f: PKe,
- g: WKe,
- G: KKe,
- H: jKe,
- I: MKe,
- j: NKe,
- L: r1,
- m: FKe,
- M: IKe,
+ d: r1,
+ e: r1,
+ f: NKe,
+ g: UKe,
+ G: GKe,
+ H: AKe,
+ I: jKe,
+ j: MKe,
+ L: i1,
+ m: PKe,
+ M: FKe,
p: te,
q: I,
- Q: l1,
- s: u1,
- S: LKe,
- u: RKe,
- U: zKe,
- V: BKe,
- w: VKe,
- W: HKe,
+ Q: u1,
+ s: d1,
+ S: IKe,
+ u: LKe,
+ U: RKe,
+ V: zKe,
+ w: BKe,
+ W: VKe,
x: null,
X: null,
- y: UKe,
- Y: GKe,
- Z: qKe,
- "%": c1
+ y: HKe,
+ Y: WKe,
+ Z: KKe,
+ "%": l1
}, b = {
a: ne,
A: re,
b: ie,
B: ae,
c: null,
- d: a1,
- e: a1,
- f: ZKe,
- g: sqe,
- G: lqe,
- H: JKe,
- I: YKe,
- j: XKe,
- L: o1,
- m: QKe,
- M: $Ke,
+ d: o1,
+ e: o1,
+ f: XKe,
+ g: oqe,
+ G: cqe,
+ H: qKe,
+ I: JKe,
+ j: YKe,
+ L: s1,
+ m: ZKe,
+ M: QKe,
p: oe,
q: se,
- Q: l1,
- s: u1,
- S: eqe,
- u: tqe,
- U: nqe,
- V: rqe,
- w: iqe,
- W: aqe,
+ Q: u1,
+ s: d1,
+ S: $Ke,
+ u: eqe,
+ U: tqe,
+ V: nqe,
+ w: rqe,
+ W: iqe,
x: null,
X: null,
- y: oqe,
- Y: cqe,
- Z: uqe,
- "%": c1
+ y: aqe,
+ Y: sqe,
+ Z: lqe,
+ "%": l1
}, x = {
a: E,
A: D,
b: O,
B: k,
c: A,
- d: e1,
- e: e1,
- f: DKe,
- g: $$,
- G: Q$,
- H: t1,
- I: t1,
- j: CKe,
- L: EKe,
- m: SKe,
- M: wKe,
+ d: t1,
+ e: t1,
+ f: EKe,
+ g: e1,
+ G: $$,
+ H: n1,
+ I: n1,
+ j: SKe,
+ L: TKe,
+ m: xKe,
+ M: CKe,
p: T,
- q: xKe,
- Q: kKe,
- s: AKe,
- S: TKe,
- u: gKe,
- U: _Ke,
- V: vKe,
- w: hKe,
- W: yKe,
+ q: bKe,
+ Q: OKe,
+ s: kKe,
+ S: wKe,
+ u: hKe,
+ U: gKe,
+ V: _Ke,
+ w: mKe,
+ W: vKe,
x: j,
X: M,
- y: $$,
- Y: Q$,
- Z: bKe,
- "%": OKe
+ y: e1,
+ Y: $$,
+ Z: yKe,
+ "%": DKe
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
return function(n) {
var r = [], i = -1, a = 0, o = e.length, s, c, l;
- for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = q$[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
+ for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = J$[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
return r.push(e.slice(a, i)), r.join("");
};
}
function C(e, t) {
return function(n) {
- var r = K$(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
+ var r = q$(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
if (i != n.length) return null;
if ("Q" in r) return new Date(r.Q);
if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
if (r.V < 1 || r.V > 53) return null;
- "w" in r || (r.w = 1), "Z" in r ? (a = G$(K$(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? L$.ceil(a) : L$(a), a = k$.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = W$(K$(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? N$.ceil(a) : N$(a), a = O$.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
- } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? G$(K$(r.y, 0, 1)).getUTCDay() : W$(K$(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
- return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, G$(r)) : W$(r);
+ "w" in r || (r.w = 1), "Z" in r ? (a = K$(q$(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? R$.ceil(a) : R$(a), a = A$.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = G$(q$(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? P$.ceil(a) : P$(a), a = k$.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
+ } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? K$(q$(r.y, 0, 1)).getUTCDay() : G$(q$(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
+ return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, K$(r)) : G$(r);
};
}
function w(e, t, n, r) {
for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
if (r >= o) return -1;
if (s = t.charCodeAt(i++), s === 37) {
- if (s = t.charAt(i++), c = x[s in q$ ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
+ if (s = t.charAt(i++), c = x[s in J$ ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
} else if (s != n.charCodeAt(r++)) return -1;
}
return r;
@@ -82018,244 +82022,244 @@ function dKe(e) {
}
};
}
-var q$ = {
+var J$ = {
"-": "",
_: " ",
0: "0"
-}, J$ = /^\s*\d+/, fKe = /^%/, pKe = /[\\^$*+?|[\]().{}]/g;
-function Y$(e, t, n) {
+}, Y$ = /^\s*\d+/, dKe = /^%/, fKe = /[\\^$*+?|[\]().{}]/g;
+function X$(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 mKe(e) {
- return e.replace(pKe, "\\$&");
-}
-function X$(e) {
- return RegExp("^(?:" + e.map(mKe).join("|") + ")", "i");
+function pKe(e) {
+ return e.replace(fKe, "\\$&");
}
function Z$(e) {
+ return RegExp("^(?:" + e.map(pKe).join("|") + ")", "i");
+}
+function Q$(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function hKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 1));
+function mKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function gKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 1));
+function hKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function _Ke(e, t, n) {
- var r = J$.exec(t.slice(n, n + 2));
+function gKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function vKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 2));
+function _Ke(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function yKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 2));
+function vKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
-function Q$(e, t, n) {
- var r = J$.exec(t.slice(n, n + 4));
+function $$(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 4));
return r ? (e.y = +r[0], n + r[0].length) : -1;
}
-function $$(e, t, n) {
- var r = J$.exec(t.slice(n, n + 2));
+function e1(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function bKe(e, t, n) {
+function yKe(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 xKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 1));
+function bKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function SKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 2));
+function xKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
-function e1(e, t, n) {
- var r = J$.exec(t.slice(n, n + 2));
+function t1(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function CKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 3));
+function SKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
-function t1(e, t, n) {
- var r = J$.exec(t.slice(n, n + 2));
+function n1(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function wKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 2));
+function CKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function TKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 2));
+function wKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function EKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 3));
+function TKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function DKe(e, t, n) {
- var r = J$.exec(t.slice(n, n + 6));
+function EKe(e, t, n) {
+ var r = Y$.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function OKe(e, t, n) {
- var r = fKe.exec(t.slice(n, n + 1));
+function DKe(e, t, n) {
+ var r = dKe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function kKe(e, t, n) {
- var r = J$.exec(t.slice(n));
+function OKe(e, t, n) {
+ var r = Y$.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function AKe(e, t, n) {
- var r = J$.exec(t.slice(n));
+function kKe(e, t, n) {
+ var r = Y$.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
-function n1(e, t) {
- return Y$(e.getDate(), t, 2);
+function r1(e, t) {
+ return X$(e.getDate(), t, 2);
+}
+function AKe(e, t) {
+ return X$(e.getHours(), t, 2);
}
function jKe(e, t) {
- return Y$(e.getHours(), t, 2);
+ return X$(e.getHours() % 12 || 12, t, 2);
}
function MKe(e, t) {
- return Y$(e.getHours() % 12 || 12, t, 2);
+ return X$(1 + k$.count(H$(e), e), t, 3);
}
-function NKe(e, t) {
- return Y$(1 + O$.count(V$(e), e), t, 3);
+function i1(e, t) {
+ return X$(e.getMilliseconds(), t, 3);
}
-function r1(e, t) {
- return Y$(e.getMilliseconds(), t, 3);
+function NKe(e, t) {
+ return i1(e, t) + "000";
}
function PKe(e, t) {
- return r1(e, t) + "000";
+ return X$(e.getMonth() + 1, t, 2);
}
function FKe(e, t) {
- return Y$(e.getMonth() + 1, t, 2);
+ return X$(e.getMinutes(), t, 2);
}
function IKe(e, t) {
- return Y$(e.getMinutes(), t, 2);
+ return X$(e.getSeconds(), t, 2);
}
-function LKe(e, t) {
- return Y$(e.getSeconds(), t, 2);
-}
-function RKe(e) {
+function LKe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function zKe(e, t) {
- return Y$(M$.count(V$(e) - 1, e), t, 2);
+function RKe(e, t) {
+ return X$(N$.count(H$(e) - 1, e), t, 2);
}
-function i1(e) {
+function a1(e) {
var t = e.getDay();
- return t >= 4 || t === 0 ? P$(e) : P$.ceil(e);
+ return t >= 4 || t === 0 ? F$(e) : F$.ceil(e);
}
-function BKe(e, t) {
- return e = i1(e), Y$(P$.count(V$(e), e) + (V$(e).getDay() === 4), t, 2);
+function zKe(e, t) {
+ return e = a1(e), X$(F$.count(H$(e), e) + (H$(e).getDay() === 4), t, 2);
}
-function VKe(e) {
+function BKe(e) {
return e.getDay();
}
+function VKe(e, t) {
+ return X$(P$.count(H$(e) - 1, e), t, 2);
+}
function HKe(e, t) {
- return Y$(N$.count(V$(e) - 1, e), t, 2);
+ return X$(e.getFullYear() % 100, t, 2);
}
function UKe(e, t) {
- return Y$(e.getFullYear() % 100, t, 2);
+ return e = a1(e), X$(e.getFullYear() % 100, t, 2);
}
function WKe(e, t) {
- return e = i1(e), Y$(e.getFullYear() % 100, t, 2);
+ return X$(e.getFullYear() % 1e4, t, 4);
}
function GKe(e, t) {
- return Y$(e.getFullYear() % 1e4, t, 4);
-}
-function KKe(e, t) {
var n = e.getDay();
- return e = n >= 4 || n === 0 ? P$(e) : P$.ceil(e), Y$(e.getFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? F$(e) : F$.ceil(e), X$(e.getFullYear() % 1e4, t, 4);
}
-function qKe(e) {
+function KKe(e) {
var t = e.getTimezoneOffset();
- return (t > 0 ? "-" : (t *= -1, "+")) + Y$(t / 60 | 0, "0", 2) + Y$(t % 60, "0", 2);
+ return (t > 0 ? "-" : (t *= -1, "+")) + X$(t / 60 | 0, "0", 2) + X$(t % 60, "0", 2);
+}
+function o1(e, t) {
+ return X$(e.getUTCDate(), t, 2);
}
-function a1(e, t) {
- return Y$(e.getUTCDate(), t, 2);
+function qKe(e, t) {
+ return X$(e.getUTCHours(), t, 2);
}
function JKe(e, t) {
- return Y$(e.getUTCHours(), t, 2);
+ return X$(e.getUTCHours() % 12 || 12, t, 2);
}
function YKe(e, t) {
- return Y$(e.getUTCHours() % 12 || 12, t, 2);
+ return X$(1 + A$.count(U$(e), e), t, 3);
}
-function XKe(e, t) {
- return Y$(1 + k$.count(H$(e), e), t, 3);
+function s1(e, t) {
+ return X$(e.getUTCMilliseconds(), t, 3);
}
-function o1(e, t) {
- return Y$(e.getUTCMilliseconds(), t, 3);
+function XKe(e, t) {
+ return s1(e, t) + "000";
}
function ZKe(e, t) {
- return o1(e, t) + "000";
+ return X$(e.getUTCMonth() + 1, t, 2);
}
function QKe(e, t) {
- return Y$(e.getUTCMonth() + 1, t, 2);
+ return X$(e.getUTCMinutes(), t, 2);
}
function $Ke(e, t) {
- return Y$(e.getUTCMinutes(), t, 2);
-}
-function eqe(e, t) {
- return Y$(e.getUTCSeconds(), t, 2);
+ return X$(e.getUTCSeconds(), t, 2);
}
-function tqe(e) {
+function eqe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function nqe(e, t) {
- return Y$(I$.count(H$(e) - 1, e), t, 2);
+function tqe(e, t) {
+ return X$(L$.count(U$(e) - 1, e), t, 2);
}
-function s1(e) {
+function c1(e) {
var t = e.getUTCDay();
- return t >= 4 || t === 0 ? R$(e) : R$.ceil(e);
+ return t >= 4 || t === 0 ? z$(e) : z$.ceil(e);
}
-function rqe(e, t) {
- return e = s1(e), Y$(R$.count(H$(e), e) + (H$(e).getUTCDay() === 4), t, 2);
+function nqe(e, t) {
+ return e = c1(e), X$(z$.count(U$(e), e) + (U$(e).getUTCDay() === 4), t, 2);
}
-function iqe(e) {
+function rqe(e) {
return e.getUTCDay();
}
+function iqe(e, t) {
+ return X$(R$.count(U$(e) - 1, e), t, 2);
+}
function aqe(e, t) {
- return Y$(L$.count(H$(e) - 1, e), t, 2);
+ return X$(e.getUTCFullYear() % 100, t, 2);
}
function oqe(e, t) {
- return Y$(e.getUTCFullYear() % 100, t, 2);
+ return e = c1(e), X$(e.getUTCFullYear() % 100, t, 2);
}
function sqe(e, t) {
- return e = s1(e), Y$(e.getUTCFullYear() % 100, t, 2);
+ return X$(e.getUTCFullYear() % 1e4, t, 4);
}
function cqe(e, t) {
- return Y$(e.getUTCFullYear() % 1e4, t, 4);
-}
-function lqe(e, t) {
var n = e.getUTCDay();
- return e = n >= 4 || n === 0 ? R$(e) : R$.ceil(e), Y$(e.getUTCFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? z$(e) : z$.ceil(e), X$(e.getUTCFullYear() % 1e4, t, 4);
}
-function uqe() {
+function lqe() {
return "+0000";
}
-function c1() {
+function l1() {
return "%";
}
-function l1(e) {
+function u1(e) {
return +e;
}
-function u1(e) {
+function d1(e) {
return Math.floor(e / 1e3);
}
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
-var d1, f1, p1;
-dqe({
+var f1, p1, m1;
+uqe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -82307,26 +82311,26 @@ dqe({
"Dec"
]
});
-function dqe(e) {
- return d1 = dKe(e), f1 = d1.format, d1.parse, p1 = d1.utcFormat, d1.utcParse, d1;
+function uqe(e) {
+ return f1 = uKe(e), p1 = f1.format, f1.parse, m1 = f1.utcFormat, f1.utcParse, f1;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function fqe(e) {
+function dqe(e) {
return new Date(e);
}
-function pqe(e) {
+function fqe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
-function m1(e, t, n, r, i, a, o, s, c, l) {
- var u = AQ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
+function h1(e, t, n, r, i, a, o, s, c, l) {
+ var u = jQ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
function x(e) {
return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);
}
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, pqe)) : f().map(fqe);
+ return arguments.length ? f(Array.from(e, fqe)) : f().map(dqe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -82334,23 +82338,23 @@ function m1(e, t, n, r, i, a, o, s, c, l) {
return t == null ? x : l(t);
}, u.nice = function(e) {
var n = f();
- return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(JQ(n, e)) : u;
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(YQ(n, e)) : u;
}, u.copy = function() {
- return OQ(u, m1(e, t, n, r, i, a, o, s, c, l));
+ return kQ(u, h1(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function mqe() {
- return LZ.apply(m1(lKe, uKe, V$, z$, M$, O$, E$, w$, C$, f1).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function pqe() {
+ return RZ.apply(h1(cKe, lKe, H$, B$, N$, k$, D$, T$, w$, p1).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function hqe() {
- return LZ.apply(m1(sKe, cKe, H$, B$, I$, k$, D$, T$, C$, p1).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function mqe() {
+ return RZ.apply(h1(oKe, sKe, U$, V$, L$, A$, O$, E$, w$, m1).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
-function h1() {
- var e = 0, t = 1, n, r, i, a, o = EQ, s = !1, c;
+function g1() {
+ var e = 0, t = 1, n, r, i, a, o = DQ, s = !1, c;
function l(e) {
return e == null || isNaN(e = +e) ? c : o(i === 0 ? .5 : (e = (a(e) - n) * i, s ? Math.max(0, Math.min(1, e)) : e));
}
@@ -82367,68 +82371,68 @@ function h1() {
return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];
};
}
- return l.range = u(SQ), l.rangeRound = u(CQ), l.unknown = function(e) {
+ return l.range = u(CQ), l.rangeRound = u(wQ), l.unknown = function(e) {
return arguments.length ? (c = e, l) : c;
}, function(o) {
return a = o, n = o(e), r = o(t), i = n === r ? 0 : 1 / (r - n), l;
};
}
-function g1(e, t) {
+function _1(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
-function _1() {
- var e = GQ(h1()(EQ));
- return e.copy = function() {
- return g1(e, _1());
- }, RZ.apply(e, arguments);
-}
function v1() {
- var e = QQ(h1()).domain([1, 10]);
+ var e = KQ(g1()(DQ));
return e.copy = function() {
- return g1(e, v1()).base(e.base());
- }, RZ.apply(e, arguments);
+ return _1(e, v1());
+ }, zZ.apply(e, arguments);
}
function y1() {
- var e = n$(h1());
+ var e = $Q(g1()).domain([1, 10]);
return e.copy = function() {
- return g1(e, y1()).constant(e.constant());
- }, RZ.apply(e, arguments);
+ return _1(e, y1()).base(e.base());
+ }, zZ.apply(e, arguments);
}
function b1() {
- var e = a$(h1());
+ var e = r$(g1());
return e.copy = function() {
- return g1(e, b1()).exponent(e.exponent());
- }, RZ.apply(e, arguments);
+ return _1(e, b1()).constant(e.constant());
+ }, zZ.apply(e, arguments);
}
-function gqe() {
- return b1.apply(null, arguments).exponent(.5);
+function x1() {
+ var e = o$(g1());
+ return e.copy = function() {
+ return _1(e, x1()).exponent(e.exponent());
+ }, zZ.apply(e, arguments);
+}
+function hqe() {
+ return x1.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
-function x1() {
- var e = [], t = EQ;
+function S1() {
+ var e = [], t = DQ;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((CZ(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((wZ(e, n, 1) - 1) / (e.length - 1));
}
return n.domain = function(t) {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(yZ), n;
+ return e.sort(bZ), n;
}, n.interpolator = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => tGe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => eGe(e, r / t));
}, n.copy = function() {
- return x1(t).domain(e);
- }, RZ.apply(n, arguments);
+ return S1(t).domain(e);
+ }, zZ.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
-function S1() {
- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = EQ, u, d = !1, f;
+function C1() {
+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = DQ, u, d = !1, f;
function p(e) {
return isNaN(e = +e) ? f : (e = .5 + ((e = +u(e)) - a) * (r * e < r * a ? s : c), l(d ? Math.max(0, Math.min(1, e)) : e));
}
@@ -82446,7 +82450,7 @@ function S1() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = OGe(e, [
+ return arguments.length ? ([n, r, i] = t, l = DGe(e, [
n,
r,
i
@@ -82457,122 +82461,122 @@ function S1() {
];
};
}
- return p.range = m(SQ), p.rangeRound = m(CQ), p.unknown = function(e) {
+ return p.range = m(CQ), p.rangeRound = m(wQ), p.unknown = function(e) {
return arguments.length ? (f = e, p) : f;
}, function(l) {
return u = l, i = l(e), a = l(t), o = l(n), s = i === a ? 0 : .5 / (a - i), c = a === o ? 0 : .5 / (o - a), r = a < i ? -1 : 1, p;
};
}
-function C1() {
- var e = GQ(S1()(EQ));
+function w1() {
+ var e = KQ(C1()(DQ));
return e.copy = function() {
- return g1(e, C1());
- }, RZ.apply(e, arguments);
+ return _1(e, w1());
+ }, zZ.apply(e, arguments);
}
-function w1() {
- var e = QQ(S1()).domain([
+function T1() {
+ var e = $Q(C1()).domain([
.1,
1,
10
]);
return e.copy = function() {
- return g1(e, w1()).base(e.base());
- }, RZ.apply(e, arguments);
+ return _1(e, T1()).base(e.base());
+ }, zZ.apply(e, arguments);
}
-function T1() {
- var e = n$(S1());
+function E1() {
+ var e = r$(C1());
return e.copy = function() {
- return g1(e, T1()).constant(e.constant());
- }, RZ.apply(e, arguments);
+ return _1(e, E1()).constant(e.constant());
+ }, zZ.apply(e, arguments);
}
-function E1() {
- var e = a$(S1());
+function D1() {
+ var e = o$(C1());
return e.copy = function() {
- return g1(e, E1()).exponent(e.exponent());
- }, RZ.apply(e, arguments);
+ return _1(e, D1()).exponent(e.exponent());
+ }, zZ.apply(e, arguments);
}
-function _qe() {
- return E1.apply(null, arguments).exponent(.5);
+function gqe() {
+ return D1.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var D1 = /* @__PURE__ */ s({
- scaleBand: () => VZ,
- scaleDiverging: () => C1,
- scaleDivergingLog: () => w1,
- scaleDivergingPow: () => E1,
- scaleDivergingSqrt: () => _qe,
- scaleDivergingSymlog: () => T1,
- scaleIdentity: () => qQ,
- scaleImplicit: () => zZ,
- scaleLinear: () => KQ,
- scaleLog: () => $Q,
- scaleOrdinal: () => BZ,
- scalePoint: () => iGe,
- scalePow: () => o$,
- scaleQuantile: () => l$,
- scaleQuantize: () => u$,
- scaleRadial: () => c$,
- scaleSequential: () => _1,
- scaleSequentialLog: () => v1,
- scaleSequentialPow: () => b1,
- scaleSequentialQuantile: () => x1,
- scaleSequentialSqrt: () => gqe,
- scaleSequentialSymlog: () => y1,
- scaleSqrt: () => ZGe,
- scaleSymlog: () => r$,
- scaleThreshold: () => d$,
- scaleTime: () => mqe,
- scaleUtc: () => hqe,
- tickFormat: () => WQ
+var O1 = /* @__PURE__ */ s({
+ scaleBand: () => HZ,
+ scaleDiverging: () => w1,
+ scaleDivergingLog: () => T1,
+ scaleDivergingPow: () => D1,
+ scaleDivergingSqrt: () => gqe,
+ scaleDivergingSymlog: () => E1,
+ scaleIdentity: () => JQ,
+ scaleImplicit: () => BZ,
+ scaleLinear: () => qQ,
+ scaleLog: () => e$,
+ scaleOrdinal: () => VZ,
+ scalePoint: () => rGe,
+ scalePow: () => s$,
+ scaleQuantile: () => u$,
+ scaleQuantize: () => d$,
+ scaleRadial: () => l$,
+ scaleSequential: () => v1,
+ scaleSequentialLog: () => y1,
+ scaleSequentialPow: () => x1,
+ scaleSequentialQuantile: () => S1,
+ scaleSequentialSqrt: () => hqe,
+ scaleSequentialSymlog: () => b1,
+ scaleSqrt: () => XGe,
+ scaleSymlog: () => i$,
+ scaleThreshold: () => f$,
+ scaleTime: () => pqe,
+ scaleUtc: () => mqe,
+ tickFormat: () => GQ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function vqe(e) {
- var t = D1;
+function _qe(e) {
+ var t = O1;
if (e in t && typeof t[e] == "function") return t[e]();
- var n = `scale${EU(e)}`;
+ var n = `scale${DU(e)}`;
if (n in t && typeof t[n] == "function") return t[n]();
}
-function O1(e, t, n) {
+function k1(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = vqe(e);
+ var r = _qe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function k1(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? O1(e.scale, n, r) : O1(t, n, r);
+function A1(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? k1(e.scale, n, r) : k1(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function yqe(e) {
- return `scale${EU(e)}`;
+function vqe(e) {
+ return `scale${DU(e)}`;
}
-function bqe(e) {
- return yqe(e) in D1;
+function yqe(e) {
+ return vqe(e) in O1;
}
-var A1 = (e, t, n) => {
+var j1 = (e, t, n) => {
if (e != null) {
var r = e.scale, i = e.type;
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 bqe(r) ? r : "point";
+ if (typeof r == "string") return yqe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function xqe(e, t) {
+function bqe(e, t) {
for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {
var a = Math.floor((n + r) / 2);
(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;
}
return n;
}
-function j1(e, t) {
+function M1(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 = xqe(r, e);
+ var t = bqe(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;
@@ -82582,12 +82586,12 @@ function j1(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function Sqe(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : j1(e, void 0);
+function xqe(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : M1(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function M1(e, t) {
+function N1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -82597,30 +82601,30 @@ function M1(e, t) {
}
return n;
}
-function N1(e) {
+function P1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? M1(Object(n), !0).forEach(function(t) {
- Cqe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M1(Object(n)).forEach(function(t) {
+ t % 2 ? N1(Object(n), !0).forEach(function(t) {
+ Sqe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Cqe(e, t, n) {
- return (t = wqe(t)) in e ? Object.defineProperty(e, t, {
+function Sqe(e, t, n) {
+ return (t = Cqe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wqe(e) {
- var t = Tqe(e, "string");
+function Cqe(e) {
+ var t = wqe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Tqe(e, t) {
+function wqe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -82630,25 +82634,25 @@ function Tqe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function P1(e, t) {
- return kqe(e) || Oqe(e, t) || Dqe(e, t) || Eqe();
+function F1(e, t) {
+ return Oqe(e) || Dqe(e, t) || Eqe(e, t) || Tqe();
}
-function Eqe() {
+function Tqe() {
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
-function Dqe(e, t) {
+function Eqe(e, t) {
if (e) {
- if (typeof e == "string") return F1(e, t);
+ if (typeof e == "string") return I1(e, t);
var n = {}.toString.call(e).slice(8, -1);
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? F1(e, t) : void 0;
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? I1(e, t) : void 0;
}
}
-function F1(e, t) {
+function I1(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
-function Oqe(e, t) {
+function Dqe(e, t) {
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r, i, a, o, s = [], c = !0, l = !1;
@@ -82669,10 +82673,10 @@ function Oqe(e, t) {
return s;
}
}
-function kqe(e) {
+function Oqe(e) {
if (Array.isArray(e)) return e;
}
-var I1 = [0, "auto"], L1 = {
+var L1 = [0, "auto"], R1 = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -82701,13 +82705,13 @@ var I1 = [0, "auto"], L1 = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, R1 = (e, t) => e.cartesianAxis.xAxis[t], z1 = (e, t) => R1(e, t) ?? L1, B1 = {
+}, z1 = (e, t) => e.cartesianAxis.xAxis[t], B1 = (e, t) => z1(e, t) ?? R1, V1 = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: I1,
+ domain: L1,
hide: !0,
id: 0,
includeHidden: !1,
@@ -82730,7 +82734,7 @@ var I1 = [0, "auto"], L1 = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, V1 = (e, t) => e.cartesianAxis.yAxis[t], H1 = (e, t) => V1(e, t) ?? B1, Aqe = {
+}, H1 = (e, t) => e.cartesianAxis.yAxis[t], U1 = (e, t) => H1(e, t) ?? V1, kqe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -82743,31 +82747,31 @@ var I1 = [0, "auto"], L1 = {
scale: "auto",
type: "number",
unit: ""
-}, U1 = (e, t) => e.cartesianAxis.zAxis[t] ?? Aqe, W1 = (e, t, n) => {
+}, W1 = (e, t) => e.cartesianAxis.zAxis[t] ?? kqe, G1 = (e, t, n) => {
switch (t) {
- case "xAxis": return z1(e, n);
- case "yAxis": return H1(e, n);
- case "zAxis": return U1(e, n);
- case "angleAxis": return $X(e, n);
- case "radiusAxis": return eZ(e, n);
+ case "xAxis": return B1(e, n);
+ case "yAxis": return U1(e, n);
+ case "zAxis": return W1(e, n);
+ case "angleAxis": return eZ(e, n);
+ case "radiusAxis": return tZ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, jqe = (e, t, n) => {
+}, Aqe = (e, t, n) => {
switch (t) {
- case "xAxis": return z1(e, n);
- case "yAxis": return H1(e, n);
+ case "xAxis": return B1(e, n);
+ case "yAxis": return U1(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, G1 = (e, t, n) => {
+}, K1 = (e, t, n) => {
switch (t) {
- case "xAxis": return z1(e, n);
- case "yAxis": return H1(e, n);
- case "angleAxis": return $X(e, n);
- case "radiusAxis": return eZ(e, n);
+ case "xAxis": return B1(e, n);
+ case "yAxis": return U1(e, n);
+ case "angleAxis": return eZ(e, n);
+ case "radiusAxis": return tZ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, K1 = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function q1(e, t) {
+}, q1 = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function J1(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -82779,254 +82783,254 @@ function q1(e, t) {
}
};
}
-var J1 = (e) => e.graphicalItems.cartesianItems, Mqe = Y([cZ, lZ], q1), Y1 = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), X1 = Y([
- J1,
- W1,
- Mqe
-], Y1, { memoizeOptions: { resultEqualityCheck: mZ } }), Z1 = Y([X1], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(fZ)), Q1 = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Nqe = Y([X1], Q1), $1 = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Pqe = Y([X1], (e) => e.some((e) => !e.data)), e0 = Y([X1], $1, { memoizeOptions: { resultEqualityCheck: mZ } }), t0 = (e, t) => {
+var Y1 = (e) => e.graphicalItems.cartesianItems, jqe = Y([lZ, uZ], J1), X1 = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), Z1 = Y([
+ Y1,
+ G1,
+ jqe
+], X1, { memoizeOptions: { resultEqualityCheck: hZ } }), Q1 = Y([Z1], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(pZ)), $1 = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Mqe = Y([Z1], $1), e0 = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Nqe = Y([Z1], (e) => e.some((e) => !e.data)), t0 = Y([Z1], e0, { memoizeOptions: { resultEqualityCheck: hZ } }), n0 = (e, t) => {
var n = t.chartData, r = n === void 0 ? [] : n, i = t.dataStartIndex, a = t.dataEndIndex;
return e.length > 0 ? e : r.slice(i, a + 1);
-}, n0 = Y([e0, gX], t0), r0 = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: Qq(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: Qq(e, t.dataKey) })), i0 = (e, t, n, r, i, a) => {
- var o = r.chartData, s = o === void 0 ? [] : o, c = r.dataStartIndex, l = r.dataEndIndex, u = r0(e, t, n);
- return i && t?.dataKey != null && a.length > 0 ? [...s.slice(c, l + 1).map((e) => ({ value: Qq(e, t.dataKey) })).filter((e) => e.value != null), ...u] : u;
-}, a0 = Y([
- n0,
- W1,
- X1,
- gX,
- Pqe,
- e0
-], i0);
-function o0(e) {
- if (yU(e) || e instanceof Date) {
+}, r0 = Y([t0, _X], n0), i0 = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: $q(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: $q(e, t.dataKey) })), a0 = (e, t, n, r, i, a) => {
+ var o = r.chartData, s = o === void 0 ? [] : o, c = r.dataStartIndex, l = r.dataEndIndex, u = i0(e, t, n);
+ return i && t?.dataKey != null && a.length > 0 ? [...s.slice(c, l + 1).map((e) => ({ value: $q(e, t.dataKey) })).filter((e) => e.value != null), ...u] : u;
+}, o0 = Y([
+ r0,
+ G1,
+ Z1,
+ _X,
+ Nqe,
+ t0
+], a0);
+function s0(e) {
+ if (bU(e) || e instanceof Date) {
var t = Number(e);
- if (Jq(t)) return t;
+ if (Yq(t)) return t;
}
}
-function s0(e) {
+function c0(e) {
if (Array.isArray(e)) {
- var t = [o0(e[0]), o0(e[1])];
- return bX(t) ? t : void 0;
+ var t = [s0(e[0]), s0(e[1])];
+ return xX(t) ? t : void 0;
}
- var n = o0(e);
+ var n = s0(e);
if (n != null) return [n, n];
}
-function c0(e) {
- return e.map(o0).filter(DU);
+function l0(e) {
+ return e.map(s0).filter(OU);
}
-function Fqe(e, t) {
- var n = o0(e), r = o0(t);
+function Pqe(e, t) {
+ var n = s0(e), r = s0(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var Iqe = Y([a0], (e) => e?.map((e) => e.value).sort(Fqe));
-function l0(e, t) {
+var Fqe = Y([o0], (e) => e?.map((e) => e.value).sort(Pqe));
+function u0(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function Lqe(e, t, n) {
+function Iqe(e, t, n) {
if (!n || !n.length) return [];
var r;
- if (typeof t == "number" && !gU(t)) r = t;
+ if (typeof t == "number" && !_U(t)) r = t;
else if (Array.isArray(t)) {
- var i = c0(t);
+ var i = l0(t);
i.length > 0 && (r = Math.max(...i));
}
- return r == null ? [] : c0(n.flatMap((t) => {
- var n = Qq(e, t.dataKey), i, a;
+ return r == null ? [] : l0(n.flatMap((t) => {
+ var n = $q(e, t.dataKey), i, a;
if (Array.isArray(n)) {
- var o = P1(n, 2);
+ var o = F1(n, 2);
i = o[0], a = o[1];
} else i = a = n;
- if (Jq(i) && Jq(a)) return [r - i, r + a];
+ if (Yq(i) && Yq(a)) return [r - i, r + a];
}));
}
-var u0 = (e) => G1(e, hZ(e), gZ(e)), d0 = Y([u0], (e) => e?.dataKey), Rqe = Y([
- Z1,
- gX,
- u0
-], dZ), f0 = (e, t, n, r) => {
+var d0 = (e) => K1(e, gZ(e), _Z(e)), f0 = Y([d0], (e) => e?.dataKey), Lqe = Y([
+ Q1,
+ _X,
+ d0
+], fZ), p0 = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, {});
return Object.fromEntries(Object.entries(i).map((t) => {
- var i = P1(t, 2), a = i[0], o = i[1], s = r ? [...o].reverse() : o;
+ var i = F1(t, 2), a = i[0], o = i[1], s = r ? [...o].reverse() : o;
return [a, {
- stackedData: ZBe(e, s.map(uZ), n),
+ stackedData: XBe(e, s.map(dZ), n),
graphicalItems: s
}];
}));
-}, p0 = Y([
- Rqe,
- Z1,
- RX,
- zX
-], f0), m0 = (e, t, n, r) => {
+}, m0 = Y([
+ Lqe,
+ Q1,
+ zX,
+ BX
+], p0), h0 = (e, t, n, r) => {
var i = t.dataStartIndex, a = t.dataEndIndex;
- if (r == null && n !== "zAxis") return eVe(e, i, a);
-}, zqe = Y([W1], (e) => e.allowDataOverflow), h0 = (e) => {
- if (e == null || !("domain" in e)) return I1;
+ if (r == null && n !== "zAxis") return $Be(e, i, a);
+}, Rqe = Y([G1], (e) => e.allowDataOverflow), g0 = (e) => {
+ if (e == null || !("domain" in e)) return L1;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = c0(e.ticks);
+ var t = l0(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? I1;
-}, g0 = Y([W1], h0), _0 = Y([g0, zqe], SX), Bqe = Y([
- p0,
- mX,
- cZ,
- _0
-], m0, { memoizeOptions: { resultEqualityCheck: pZ } }), v0 = (e) => e.errorBars, Vqe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => l0(n, e)), y0 = function() {
+ return e?.domain ?? L1;
+}, _0 = Y([G1], g0), v0 = Y([_0, Rqe], CX), zqe = Y([
+ m0,
+ hX,
+ lZ,
+ v0
+], h0, { memoizeOptions: { resultEqualityCheck: mZ } }), y0 = (e) => e.errorBars, Bqe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => u0(n, e)), b0 = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, b0 = function(e, t, n, r, i) {
+}, x0 = function(e, t, n, r, i) {
var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : [], o, s;
if (n.length > 0 && n.forEach((e) => {
- var n = e.data == null ? a : [...e.data], c = r[e.id]?.filter((e) => l0(i, e));
+ var n = e.data == null ? a : [...e.data], c = r[e.id]?.filter((e) => u0(i, e));
n.forEach((n) => {
- var r = Qq(n, t.dataKey ?? e.dataKey), i = Lqe(n, r, c);
+ var r = $q(n, t.dataKey ?? e.dataKey), i = Iqe(n, r, c);
if (i.length >= 2) {
var a = Math.min(...i), l = Math.max(...i);
(o == null || a < o) && (o = a), (s == null || l > s) && (s = l);
}
- var u = s0(r);
+ var u = c0(r);
u != null && (o = o == null ? u[0] : Math.min(o, u[0]), s = s == null ? u[1] : Math.max(s, u[1]));
});
}), t?.dataKey != null && n.length === 0 && e.forEach((e) => {
- var n = s0(Qq(e, t.dataKey));
+ var n = c0($q(e, t.dataKey));
n != null && (o = o == null ? n[0] : Math.min(o, n[0]), s = s == null ? n[1] : Math.max(s, n[1]));
- }), Jq(o) && Jq(s)) return [o, s];
-}, Hqe = Y([
- n0,
- W1,
- Nqe,
- v0,
- cZ,
- AWe
-], b0, { memoizeOptions: { resultEqualityCheck: pZ } });
-function Uqe(e) {
+ }), Yq(o) && Yq(s)) return [o, s];
+}, Vqe = Y([
+ r0,
+ G1,
+ Mqe,
+ y0,
+ lZ,
+ kWe
+], x0, { memoizeOptions: { resultEqualityCheck: mZ } });
+function Hqe(e) {
var t = e.value;
- if (yU(t) || t instanceof Date) return t;
-}
-var Wqe = (e, t, n) => {
- var r = e.map(Uqe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && SU(r)) ? pX(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, x0 = (e) => e.referenceElements.dots, S0 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Gqe = Y([
- x0,
- cZ,
- lZ
-], S0), C0 = (e) => e.referenceElements.areas, Kqe = Y([
- C0,
- cZ,
- lZ
-], S0), w0 = (e) => e.referenceElements.lines, qqe = Y([
+ if (bU(t) || t instanceof Date) return t;
+}
+var Uqe = (e, t, n) => {
+ var r = e.map(Hqe).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && CU(r)) ? mX(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, S0 = (e) => e.referenceElements.dots, C0 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Wqe = Y([
+ S0,
+ lZ,
+ uZ
+], C0), w0 = (e) => e.referenceElements.areas, Gqe = Y([
w0,
- cZ,
- lZ
-], S0), T0 = (e, t) => {
+ lZ,
+ uZ
+], C0), T0 = (e) => e.referenceElements.lines, Kqe = Y([
+ T0,
+ lZ,
+ uZ
+], C0), E0 = (e, t) => {
if (e != null) {
- var n = c0(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = l0(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Jqe = Y(Gqe, cZ, T0), E0 = (e, t) => {
+}, qqe = Y(Wqe, lZ, E0), D0 = (e, t) => {
if (e != null) {
- var n = c0(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = l0(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)];
}
-}, Yqe = Y([Kqe, cZ], E0);
-function Xqe(e) {
- if (e.x != null) return c0([e.x]);
+}, Jqe = Y([Gqe, lZ], D0);
+function Yqe(e) {
+ if (e.x != null) return l0([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : c0(t);
+ return t == null || t.length === 0 ? [] : l0(t);
}
-function Zqe(e) {
- if (e.y != null) return c0([e.y]);
+function Xqe(e) {
+ if (e.y != null) return l0([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : c0(t);
+ return t == null || t.length === 0 ? [] : l0(t);
}
-var D0 = (e, t) => {
+var O0 = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? Xqe(e) : Zqe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? Yqe(e) : Xqe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Qqe = Y(Jqe, Y([qqe, cZ], D0), Yqe, (e, t, n) => y0(e, n, t)), O0 = (e, t, n, r, i, a, o, s, c) => {
+}, Zqe = Y(qqe, Y([Kqe, lZ], O0), Jqe, (e, t, n) => b0(e, n, t)), k0 = (e, t, n, r, i, a, o, s, c) => {
if (n != null) return n;
- var l = o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? y0(r, a, i) : y0(a, i), u = LWe(t, l, e.allowDataOverflow);
+ var l = o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? b0(r, a, i) : b0(a, i), u = IWe(t, l, e.allowDataOverflow);
return u == null && e.allowDataOverflow && l == null && c != null ? c : u;
-}, $qe = Y([
- W1,
- g0,
+}, Qqe = Y([
+ G1,
_0,
- Bqe,
- Hqe,
- Qqe,
- BJ,
- cZ,
- Y([W1], (e) => {
+ v0,
+ zqe,
+ Vqe,
+ Zqe,
+ VJ,
+ lZ,
+ Y([G1], (e) => {
if (e != null && e.type === "number" && "ticks" in e && e.ticks != null) {
- var t = c0(e.ticks);
+ var t = l0(e.ticks);
if (t.length !== 0) return [Math.min(...t), Math.max(...t)];
}
- }, { memoizeOptions: { resultEqualityCheck: pZ } })
-], O0, { memoizeOptions: { resultEqualityCheck: pZ } }), eJe = [0, 1], k0 = (e, t, n, r, i, a, o) => {
+ }, { memoizeOptions: { resultEqualityCheck: mZ } })
+], k0, { memoizeOptions: { resultEqualityCheck: mZ } }), $qe = [0, 1], A0 = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
- var s = e.dataKey, c = e.type, l = $q(t, a);
- return l && s == null ? pX(0, n?.length ?? 0) : c === "category" ? Wqe(r, e, l) : i === "expand" && !l ? eJe : o;
- }
-}, A0 = Y([
- W1,
- BJ,
- n0,
- a0,
- RX,
- cZ,
- $qe
-], k0), j0 = Y([
- W1,
- K1,
- BX
-], A1), M0 = (e, t, n) => {
+ var s = e.dataKey, c = e.type, l = eJ(t, a);
+ return l && s == null ? mX(0, n?.length ?? 0) : c === "category" ? Uqe(r, e, l) : i === "expand" && !l ? $qe : o;
+ }
+}, j0 = Y([
+ G1,
+ VJ,
+ r0,
+ o0,
+ zX,
+ lZ,
+ Qqe
+], A0), M0 = Y([
+ G1,
+ q1,
+ VX
+], j1), N0 = (e, t, n) => {
var r = t.niceTicks;
if (r !== "none") {
- var i = h0(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && bX(e)) {
- if (a) return MX(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return NX(e, t.tickCount, t.allowDecimals, r);
+ var i = g0(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && xX(e)) {
+ if (a) return NX(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return PX(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && bX(e)) return MX(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && bX(e)) return NX(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && xX(e)) return NX(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && xX(e)) return PX(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, N0 = Y([
- A0,
- G1,
- j0
-], M0), P0 = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && bX(t) && Array.isArray(n) && n.length > 0) {
+}, P0 = Y([
+ j0,
+ K1,
+ M0
+], N0), F0 = (e, t, n, r) => {
+ if (r !== "angleAxis" && e?.type === "number" && xX(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, tJe = Y([
- W1,
- A0,
- N0,
- cZ
-], P0), F0 = Y(Y(a0, W1, (e, t) => {
+}, eJe = Y([
+ G1,
+ j0,
+ P0,
+ lZ
+], F0), I0 = Y(Y(o0, G1, (e, t) => {
if (t && t.type === "number") {
- var n = Infinity, r = Array.from(c0(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(l0(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
if (i == null || a == null) return Infinity;
var o = a - i;
if (o === 0) return Infinity;
@@ -83039,22 +83043,22 @@ var D0 = (e, t) => {
}
return n / o;
}
-}), BJ, IX, yJ, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!Jq(e)) return 0;
+}), VJ, LX, bJ, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!Yq(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = xU(n, e * a), s = e * a / 2;
+ var o = SU(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), nJe = (e, t, n) => {
- var r = z1(e, t);
- return r == null || typeof r.padding != "string" ? 0 : F0(e, "xAxis", t, n, r.padding);
-}, rJe = (e, t, n) => {
- var r = H1(e, t);
- return r == null || typeof r.padding != "string" ? 0 : F0(e, "yAxis", t, n, r.padding);
-}, iJe = Y(z1, nJe, (e, t) => {
+}), tJe = (e, t, n) => {
+ var r = B1(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : I0(e, "xAxis", t, n, r.padding);
+}, nJe = (e, t, n) => {
+ var r = U1(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : I0(e, "yAxis", t, n, r.padding);
+}, rJe = Y(B1, tJe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -83067,7 +83071,7 @@ var D0 = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), aJe = Y(H1, rJe, (e, t) => {
+}), iJe = Y(U1, nJe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -83080,101 +83084,101 @@ var D0 = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), I0 = Y([
- yJ,
- iJe,
+}), L0 = Y([
+ bJ,
+ rJe,
+ TJ,
wJ,
- CJ,
(e, t, n) => n
], (e, t, n, r, i) => {
var a = r.padding;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), L0 = Y([
- yJ,
- BJ,
- aJe,
+}), R0 = Y([
+ bJ,
+ VJ,
+ iJe,
+ TJ,
wJ,
- CJ,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var o = i.padding;
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];
-}), R0 = (e, t, n, r) => {
+}), z0 = (e, t, n, r) => {
switch (t) {
- case "xAxis": return I0(e, n, r);
- case "yAxis": return L0(e, n, r);
- case "zAxis": return U1(e, n)?.range;
- case "angleAxis": return aZ(e);
- case "radiusAxis": return oZ(e, n);
+ case "xAxis": return L0(e, n, r);
+ case "yAxis": return R0(e, n, r);
+ case "zAxis": return W1(e, n)?.range;
+ case "angleAxis": return oZ(e);
+ case "radiusAxis": return sZ(e, n);
default: return;
}
-}, z0 = Y([W1, R0], qX), B0 = Y([
- W1,
- j0,
- Y([j0, tJe], vZ),
- z0
-], k1), V0 = (e, t, n, r) => {
+}, B0 = Y([G1, z0], JX), V0 = Y([
+ G1,
+ M0,
+ Y([M0, eJe], yZ),
+ B0
+], A1), H0 = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var i = n.type, a = n.scale;
- if ($q(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (eJ(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, H0 = Y([
- BJ,
- a0,
- G1,
- cZ
-], V0), U0 = Y([B0], _Z);
-Y([B0], Sqe), Y([B0, Iqe], j1), Y([
- X1,
- v0,
- cZ
-], Vqe);
-function W0(e, t) {
+}, U0 = Y([
+ VJ,
+ o0,
+ K1,
+ lZ
+], H0), W0 = Y([V0], vZ);
+Y([V0], xqe), Y([V0, Fqe], M1), Y([
+ Z1,
+ y0,
+ lZ
+], Bqe);
+function G0(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var G0 = (e, t) => t, K0 = (e, t, n) => n, oJe = Y(hJ, G0, K0, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(W0)), sJe = Y(gJ, G0, K0, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(W0)), q0 = (e, t) => {
+var K0 = (e, t) => t, q0 = (e, t, n) => n, aJe = Y(gJ, K0, q0, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(G0)), oJe = Y(_J, K0, q0, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(G0)), J0 = (e, t) => {
var n = typeof t.height == "number" ? t.height : 30;
return {
width: e.width,
height: n
};
-}, cJe = (e, t) => ({
+}, sJe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), J0 = Y(yJ, z1, q0), lJe = (e, t, n) => {
+}), Y0 = Y(bJ, B1, J0), cJe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, uJe = (e, t, n) => {
+}, lJe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, dJe = Y(pJ, yJ, oJe, G0, K0, (e, t, n, r, i) => {
+}, uJe = Y(mJ, bJ, aJe, K0, q0, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = q0(t, n);
- o ??= lJe(t, r, e);
+ var s = J0(t, n);
+ o ??= cJe(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;
-}), fJe = Y(fJ, yJ, sJe, G0, K0, (e, t, n, r, i) => {
+}), dJe = Y(pJ, bJ, oJe, K0, q0, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = cJe(t, n);
- o ??= uJe(t, r, e);
+ var s = sJe(t, n);
+ o ??= lJe(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;
-}), pJe = Y([
- yJ,
- z1,
+}), fJe = Y([
+ bJ,
+ B1,
(e, t) => {
- var n = z1(e, t);
- if (n != null) return dJe(e, n.orientation, n.mirror);
+ var n = B1(e, t);
+ if (n != null) return uJe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -83188,12 +83192,12 @@ var G0 = (e, t) => t, K0 = (e, t, n) => n, oJe = Y(hJ, G0, K0, (e, t, n) => e.fi
y: i
};
}
-}), mJe = Y([
- yJ,
- H1,
+}), pJe = Y([
+ bJ,
+ U1,
(e, t) => {
- var n = H1(e, t);
- if (n != null) return fJe(e, n.orientation, n.mirror);
+ var n = U1(e, t);
+ if (n != null) return dJe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -83207,38 +83211,38 @@ var G0 = (e, t) => t, K0 = (e, t, n) => n, oJe = Y(hJ, G0, K0, (e, t, n) => e.fi
y: e.top
};
}
-}), Y0 = Y(yJ, H1, (e, t) => ({
+}), X0 = Y(bJ, U1, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), X0 = (e, t, n) => {
+})), Z0 = (e, t, n) => {
switch (t) {
- case "xAxis": return J0(e, n).width;
- case "yAxis": return Y0(e, n).height;
+ case "xAxis": return Y0(e, n).width;
+ case "yAxis": return X0(e, n).height;
default: return;
}
-}, Z0 = (e, t, n, r) => {
+}, Q0 = (e, t, n, r) => {
if (n != null) {
- var i = n.allowDuplicatedCategory, a = n.type, o = n.dataKey, s = $q(e, r), c = t.map((e) => e.value), l = c.filter((e) => e != null);
- if (o && s && a === "category" && i && SU(l)) return c;
+ var i = n.allowDuplicatedCategory, a = n.type, o = n.dataKey, s = eJ(e, r), c = t.map((e) => e.value), l = c.filter((e) => e != null);
+ if (o && s && a === "category" && i && CU(l)) return c;
}
-}, Q0 = Y([
- BJ,
- a0,
- W1,
- cZ
-], Z0), $0 = Y([
- BJ,
- jqe,
- j0,
+}, $0 = Y([
+ VJ,
+ o0,
+ G1,
+ lZ
+], Q0), e2 = Y([
+ VJ,
+ Aqe,
+ M0,
+ W0,
+ $0,
U0,
- Q0,
- H0,
- R0,
- N0,
- cZ
+ z0,
+ P0,
+ lZ
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = $q(e, c);
+ var l = eJ(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -83260,107 +83264,107 @@ var G0 = (e, t) => t, K0 = (e, t, n) => n, oJe = Y(hJ, G0, K0, (e, t, n) => e.fi
scale: r
};
}
-}), e2 = (e, t, n, r, i, a, o, s, c) => {
+}), t2 = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = $q(e, c), u = t.type, d = t.ticks, f = t.tickCount, 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 ? hU(a[0] - a[1]) * 2 * m : m;
+ var l = eJ(e, c), u = t.type, d = t.ticks, f = t.tickCount, 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 ? gU(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 Jq(i) ? {
+ return Yq(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(DU) : l && s ? s.map((e, t) => {
+ }).filter(OU) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return Jq(n) ? {
+ return Yq(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(DU) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(OU) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return Jq(n) ? {
+ return Yq(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(DU) : r.domain().map((e, t) => {
+ }).filter(OU) : r.domain().map((e, t) => {
var n = r.map(e);
- return Jq(n) ? {
+ return Yq(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(DU);
+ }).filter(OU);
}
-}, t2 = Y([
- BJ,
- G1,
- j0,
+}, n2 = Y([
+ VJ,
+ K1,
+ M0,
+ W0,
+ P0,
+ z0,
+ $0,
U0,
- N0,
- R0,
- Q0,
- H0,
- cZ
-], e2), n2 = (e, t, n, r, i, a, o) => {
+ lZ
+], t2), r2 = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = $q(e, o), c = t.tickCount, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? hU(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = eJ(e, o), c = t.tickCount, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? gU(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return Jq(r) ? {
+ return Yq(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(DU) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(OU) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return Jq(r) ? {
+ return Yq(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(DU) : n.domain().map((e, t) => {
+ }).filter(OU) : n.domain().map((e, t) => {
var r = n.map(e);
- return Jq(r) ? {
+ return Yq(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(DU);
+ }).filter(OU);
}
-}, r2 = Y([
- BJ,
- G1,
+}, i2 = Y([
+ VJ,
+ K1,
+ W0,
+ z0,
+ $0,
U0,
- R0,
- Q0,
- H0,
- cZ
-], n2), i2 = Y(W1, U0, (e, t) => {
- if (e != null && t != null) return N1(N1({}, e), {}, { scale: t });
+ lZ
+], r2), a2 = Y(G1, W0, (e, t) => {
+ if (e != null && t != null) return P1(P1({}, e), {}, { scale: t });
});
-Y((e, t, n) => U1(e, n), Y([Y([
- W1,
+Y((e, t, n) => W1(e, n), Y([Y([
+ G1,
+ M0,
j0,
- A0,
- z0
-], k1)], _Z), (e, t) => {
- if (e != null && t != null) return N1(N1({}, e), {}, { scale: t });
+ B0
+], A1)], vZ), (e, t) => {
+ if (e != null && t != null) return P1(P1({}, e), {}, { scale: t });
});
-var hJe = Y([
- BJ,
- hJ,
- gJ
+var mJe = Y([
+ VJ,
+ gJ,
+ _J
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -83382,41 +83386,41 @@ Y([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var a2 = (e) => e.options.defaultTooltipEventType, o2 = (e) => e.options.validateTooltipEventTypes;
-function s2(e, t, n) {
+var o2 = (e) => e.options.defaultTooltipEventType, s2 = (e) => e.options.validateTooltipEventTypes;
+function c2(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function c2(e, t) {
- return s2(t, a2(e), o2(e));
+function l2(e, t) {
+ return c2(t, o2(e), s2(e));
}
-function gJe(e) {
- return J((t) => c2(t, e));
+function hJe(e) {
+ return J((t) => l2(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var l2 = (e, t) => {
+var u2 = (e, t) => {
var n, r = Number(t);
- if (!(gU(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, _Je = (e) => e.tooltip.settings, u2 = {
+ if (!(_U(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, gJe = (e) => e.tooltip.settings, d2 = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, d2 = vq({
+}, f2 = yq({
name: "tooltip",
initialState: {
itemInteraction: {
- click: u2,
- hover: u2
+ click: d2,
+ hover: d2
},
axisInteraction: {
- click: u2,
- hover: u2
+ click: d2,
+ hover: d2
},
- keyboardInteraction: u2,
+ keyboardInteraction: d2,
syncInteraction: {
active: !1,
index: null,
@@ -83438,23 +83442,23 @@ var l2 = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(sq(t.payload));
+ e.tooltipItemPayloads.push(cq(t.payload));
},
- prepare: mq()
+ prepare: hq()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var n = t.payload, r = n.prev, i = n.next, a = iq(e).tooltipItemPayloads.indexOf(sq(r));
- a > -1 && (e.tooltipItemPayloads[a] = sq(i));
+ var n = t.payload, r = n.prev, i = n.next, a = aq(e).tooltipItemPayloads.indexOf(cq(r));
+ a > -1 && (e.tooltipItemPayloads[a] = cq(i));
},
- prepare: mq()
+ prepare: hq()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = iq(e).tooltipItemPayloads.indexOf(sq(t.payload));
+ var n = aq(e).tooltipItemPayloads.indexOf(cq(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: mq()
+ prepare: hq()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -83484,10 +83488,10 @@ var l2 = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), f2 = d2.actions, vJe = f2.addTooltipEntrySettings, yJe = f2.replaceTooltipEntrySettings, bJe = f2.removeTooltipEntrySettings, xJe = f2.setTooltipSettingsState, p2 = f2.setActiveMouseOverItemIndex, SJe = f2.mouseLeaveItem, m2 = f2.mouseLeaveChart, CJe = f2.setActiveClickItemIndex, h2 = f2.setMouseOverAxisIndex, wJe = f2.setMouseClickAxisIndex, g2 = f2.setSyncInteraction, _2 = f2.setKeyboardInteraction, TJe = d2.reducer;
+}), p2 = f2.actions, _Je = p2.addTooltipEntrySettings, vJe = p2.replaceTooltipEntrySettings, yJe = p2.removeTooltipEntrySettings, bJe = p2.setTooltipSettingsState, m2 = p2.setActiveMouseOverItemIndex, xJe = p2.mouseLeaveItem, h2 = p2.mouseLeaveChart, SJe = p2.setActiveClickItemIndex, g2 = p2.setMouseOverAxisIndex, CJe = p2.setMouseClickAxisIndex, _2 = p2.setSyncInteraction, v2 = p2.setKeyboardInteraction, wJe = f2.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function v2(e, t) {
+function y2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -83497,30 +83501,30 @@ function v2(e, t) {
}
return n;
}
-function y2(e) {
+function b2(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) {
- EJe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v2(Object(n)).forEach(function(t) {
+ t % 2 ? y2(Object(n), !0).forEach(function(t) {
+ TJe(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 EJe(e, t, n) {
- return (t = DJe(t)) in e ? Object.defineProperty(e, t, {
+function TJe(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 DJe(e) {
- var t = OJe(e, "string");
+function EJe(e) {
+ var t = DJe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OJe(e, t) {
+function DJe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -83530,22 +83534,22 @@ function OJe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function kJe(e, t, n) {
+function OJe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function AJe(e) {
+function kJe(e) {
return e.index != null;
}
-var b2 = (e, t, n, r) => {
- if (t == null) return u2;
- var i = kJe(e, t, n);
- if (i == null) return u2;
+var x2 = (e, t, n, r) => {
+ if (t == null) return d2;
+ var i = OJe(e, t, n);
+ if (i == null) return d2;
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 (AJe(i)) {
- if (a) return y2(y2({}, i), {}, { active: !0 });
+ if (kJe(i)) {
+ if (a) return b2(b2({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -83553,11 +83557,11 @@ var b2 = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return y2(y2({}, u2), {}, { coordinate: i.coordinate });
+ return b2(b2({}, d2), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function jJe(e) {
+function AJe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -83566,25 +83570,25 @@ function jJe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function MJe(e, t) {
- var n = jJe(e), r = t[0], i = t[1];
+function jJe(e, t) {
+ var n = AJe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function NJe(e, t, n) {
+function MJe(e, t, n) {
if (n == null || t == null) return !0;
- var r = Qq(e, t);
- return r == null || !bX(n) || MJe(r, n);
+ var r = $q(e, t);
+ return r == null || !xX(n) || jJe(r, n);
}
-var x2 = (e, t, n, r) => {
+var S2 = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!Jq(a)) return i;
+ if (!Yq(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 || NJe(l, n, r) ? String(c) : null;
-}, S2 = (e, t, n, r, i, a, o) => {
+ return l == null || MJe(l, n, r) ? String(c) : null;
+}, C2 = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -83600,7 +83604,7 @@ var x2 = (e, t, n, r) => {
};
}
}
-}, C2 = (e, t, n, r) => {
+}, w2 = (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;
@@ -83610,10 +83614,10 @@ var x2 = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, w2 = (e) => e.options.tooltipPayloadSearcher, T2 = (e) => e.tooltip;
+}, T2 = (e) => e.options.tooltipPayloadSearcher, E2 = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function E2(e, t) {
+function D2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -83623,30 +83627,30 @@ function E2(e, t) {
}
return n;
}
-function D2(e) {
+function O2(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) {
- PJe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E2(Object(n)).forEach(function(t) {
+ t % 2 ? D2(Object(n), !0).forEach(function(t) {
+ NJe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function PJe(e, t, n) {
- return (t = FJe(t)) in e ? Object.defineProperty(e, t, {
+function NJe(e, t, n) {
+ return (t = PJe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FJe(e) {
- var t = IJe(e, "string");
+function PJe(e) {
+ var t = FJe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function IJe(e, t) {
+function FJe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -83656,226 +83660,226 @@ function IJe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function LJe(e) {
+function IJe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function RJe(e) {
+function LJe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function zJe(e) {
+function RJe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function O2(e) {
+function k2(e) {
if (typeof e == "string") return e;
}
-function BJe(e) {
+function zJe(e) {
if (typeof e == "object" && e) return {
- name: "name" in e ? LJe(e.name) : void 0,
- unit: "unit" in e ? RJe(e.unit) : void 0,
- dataKey: "dataKey" in e ? zJe(e.dataKey) : void 0,
+ name: "name" in e ? IJe(e.name) : void 0,
+ unit: "unit" in e ? LJe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? RJe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? O2(e.color) : void 0,
- fill: "fill" in e ? O2(e.fill) : void 0
+ color: "color" in e ? k2(e.color) : void 0,
+ fill: "fill" in e ? k2(e.fill) : void 0
};
}
-function VJe(e, t) {
+function BJe(e, t) {
return e ?? t;
}
-var k2 = (e, t, n, r, i, a, o) => {
+var A2 = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var s = n.chartData, c = n.computedData, l = n.dataStartIndex, u = n.dataEndIndex;
return e.reduce((e, n) => {
- var d = n.dataDefinedOnItem, f = n.settings, p = VJe(d, s), m = Array.isArray(p) ? qq(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _;
- return r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? (_ = wU(m, r, i), _ ??= a(m, t, c, g)) : _ = a(m, t, c, g), Array.isArray(_) ? _.forEach((t) => {
- var n = BJe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = D2(D2({}, f), {}, {
+ var d = n.dataDefinedOnItem, f = n.settings, p = BJe(d, s), m = Array.isArray(p) ? Jq(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _;
+ return r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? (_ = TU(m, r, i), _ ??= a(m, t, c, g)) : _ = a(m, t, c, g), Array.isArray(_) ? _.forEach((t) => {
+ var n = zJe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = O2(O2({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(uJ({
+ e.push(dJ({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: Qq(a, i),
+ value: $q(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(uJ({
+ }) : e.push(dJ({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: Qq(_, h),
- name: Qq(_, g) ?? f?.name
+ value: $q(_, h),
+ name: $q(_, g) ?? f?.name
})), e;
}, []);
}
-}, A2 = Y([
- u0,
- K1,
- BX
-], A1), j2 = Y([
+}, j2 = Y([
+ d0,
+ q1,
+ VX
+], j1), M2 = Y([
Y([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- u0,
- Y([hZ, gZ], q1)
-], Y1, { memoizeOptions: { resultEqualityCheck: mZ } }), HJe = Y([j2], (e) => e.filter(fZ)), M2 = Y([j2], $1, { memoizeOptions: { resultEqualityCheck: mZ } }), UJe = Y([j2], (e) => e.some((e) => !e.data)), N2 = Y([M2, mX], t0), WJe = Y([
+ d0,
+ Y([gZ, _Z], J1)
+], X1, { memoizeOptions: { resultEqualityCheck: hZ } }), VJe = Y([M2], (e) => e.filter(pZ)), N2 = Y([M2], e0, { memoizeOptions: { resultEqualityCheck: hZ } }), HJe = Y([M2], (e) => e.some((e) => !e.data)), P2 = Y([N2, hX], n0), UJe = Y([
+ VJe,
+ hX,
+ d0
+], fZ), F2 = Y([
+ P2,
+ d0,
+ M2,
+ hX,
HJe,
- mX,
- u0
-], dZ), P2 = Y([
- N2,
- u0,
- j2,
- mX,
- UJe,
- M2
-], i0), F2 = Y([u0], h0), I2 = Y([F2, Y([u0], (e) => e.allowDataOverflow)], SX), GJe = Y([
+ N2
+], a0), I2 = Y([d0], g0), L2 = Y([I2, Y([d0], (e) => e.allowDataOverflow)], CX), WJe = Y([
Y([
- WJe,
- Y([j2], (e) => e.filter(fZ)),
- RX,
- zX
- ], f0),
- mX,
- hZ,
- I2
-], m0), KJe = Y([
- N2,
- u0,
- Y([j2], Q1),
- v0,
- hZ,
- MWe
-], b0, { memoizeOptions: { resultEqualityCheck: pZ } }), qJe = Y([Y([
- x0,
- hZ,
- gZ
-], S0), hZ], T0), JJe = Y([Y([
- C0,
- hZ,
- gZ
-], S0), hZ], E0), L2 = Y([
- u0,
- BJ,
- N2,
+ UJe,
+ Y([M2], (e) => e.filter(pZ)),
+ zX,
+ BX
+ ], p0),
+ hX,
+ gZ,
+ L2
+], h0), GJe = Y([
P2,
- RX,
- hZ,
+ d0,
+ Y([M2], $1),
+ y0,
+ gZ,
+ jWe
+], x0, { memoizeOptions: { resultEqualityCheck: mZ } }), KJe = Y([Y([
+ S0,
+ gZ,
+ _Z
+], C0), gZ], E0), qJe = Y([Y([
+ w0,
+ gZ,
+ _Z
+], C0), gZ], D0), R2 = Y([
+ d0,
+ VJ,
+ P2,
+ F2,
+ zX,
+ gZ,
Y([
- u0,
- F2,
+ d0,
I2,
+ L2,
+ WJe,
GJe,
- KJe,
Y([
- qJe,
+ KJe,
Y([Y([
- w0,
- hZ,
- gZ
- ], S0), hZ], D0),
- JJe
- ], y0),
- BJ,
- hZ
- ], O0)
-], k0), YJe = Y([
- u0,
- L2,
- Y([
- L2,
- u0,
- A2
- ], M0),
- hZ
-], P0), R2 = (e) => R0(e, hZ(e), gZ(e), !1), z2 = Y([u0, R2], qX), B2 = Y([Y([
- u0,
- A2,
- YJe,
- z2
-], k1)], _Z), V2 = Y([
- BJ,
- u0,
- A2,
- B2,
+ T0,
+ gZ,
+ _Z
+ ], C0), gZ], O0),
+ qJe
+ ], b0),
+ VJ,
+ gZ
+ ], k0)
+], A0), JJe = Y([
+ d0,
R2,
Y([
- BJ,
- P2,
- u0,
- hZ
- ], Z0),
+ R2,
+ d0,
+ j2
+ ], N0),
+ gZ
+], F0), z2 = (e) => z0(e, gZ(e), _Z(e), !1), B2 = Y([d0, z2], JX), V2 = Y([Y([
+ d0,
+ j2,
+ JJe,
+ B2
+], A1)], vZ), H2 = Y([
+ VJ,
+ d0,
+ j2,
+ V2,
+ z2,
+ Y([
+ VJ,
+ F2,
+ d0,
+ gZ
+ ], Q0),
Y([
- BJ,
- P2,
- u0,
- hZ
- ], V0),
- hZ
+ VJ,
+ F2,
+ d0,
+ gZ
+ ], H0),
+ gZ
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var c = t.type, l = $q(e, s);
+ var c = t.type, l = eJ(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 ? hU(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? gU(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return Jq(n) ? {
+ return Yq(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(DU) : r.domain().map((e, t) => {
+ }).filter(OU) : r.domain().map((e, t) => {
var n = r.map(e);
- return Jq(n) ? {
+ return Yq(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(DU);
+ }).filter(OU);
}
}
-}), H2 = Y([
- a2,
+}), U2 = Y([
o2,
- _Je
-], (e, t, n) => s2(n.shared, e, t)), U2 = (e) => e.tooltip.settings.trigger, W2 = (e) => e.tooltip.settings.defaultIndex, G2 = Y([
- T2,
- H2,
+ s2,
+ gJe
+], (e, t, n) => c2(n.shared, e, t)), W2 = (e) => e.tooltip.settings.trigger, G2 = (e) => e.tooltip.settings.defaultIndex, K2 = Y([
+ E2,
U2,
- W2
-], b2), K2 = Y([
- G2,
- N2,
- d0,
- L2
-], x2), q2 = Y([V2, K2], l2), J2 = Y([G2], (e) => {
+ W2,
+ G2
+], x2), q2 = Y([
+ K2,
+ P2,
+ f0,
+ R2
+], S2), J2 = Y([H2, q2], u2), Y2 = Y([K2], (e) => {
if (e) return e.dataKey;
-}), XJe = Y([G2], (e) => {
+}), YJe = Y([K2], (e) => {
if (e) return e.graphicalItemId;
-}), Y2 = Y([
- T2,
- H2,
+}), X2 = Y([
+ E2,
U2,
- W2
-], C2), ZJe = Y([G2, Y([
- fJ,
- pJ,
- BJ,
- yJ,
- V2,
W2,
- Y2
-], S2)], (e, t) => e != null && e.coordinate ? e.coordinate : t), QJe = Y([G2], (e) => e?.active ?? !1), $Je = Y([Y([
- Y2,
- K2,
- mX,
- d0,
+ G2
+], w2), XJe = Y([K2, Y([
+ pJ,
+ mJ,
+ VJ,
+ bJ,
+ H2,
+ G2,
+ X2
+], C2)], (e, t) => e != null && e.coordinate ? e.coordinate : t), ZJe = Y([K2], (e) => e?.active ?? !1), QJe = Y([Y([
+ X2,
q2,
- w2,
- H2
-], k2)], (e) => {
+ hX,
+ f0,
+ J2,
+ T2,
+ U2
+], A2)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -83883,7 +83887,7 @@ var k2 = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function X2(e, t) {
+function $Je(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -83896,9 +83900,9 @@ function X2(e, t) {
function eYe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? X2(Object(n), !0).forEach(function(t) {
+ t % 2 ? $Je(Object(n), !0).forEach(function(t) {
tYe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X2(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $Je(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -83926,9 +83930,9 @@ function rYe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var iYe = () => J(u0), aYe = () => {
- var e = iYe(), t = J(V2), n = J(B2);
- return lJ(!e || !n ? void 0 : eYe(eYe({}, e), {}, { scale: n }), t);
+var iYe = () => J(d0), aYe = () => {
+ var e = iYe(), t = J(H2), n = J(V2);
+ return uJ(!e || !n ? void 0 : eYe(eYe({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
@@ -83996,13 +84000,13 @@ var uYe = (e, t, n, r) => {
if (i) {
if (e === "centric") {
var a = i.coordinate, o = r.radius;
- return Z2(Z2(Z2({}, r), aX(r.cx, r.cy, o, a)), {}, {
+ return Z2(Z2(Z2({}, r), oX(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, c = r.angle;
- return Z2(Z2(Z2({}, r), aX(r.cx, r.cy, s, c)), {}, {
+ return Z2(Z2(Z2({}, r), oX(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -84035,9 +84039,9 @@ var pYe = (e, t, n, r, i) => {
].some((e) => (r ? e >= t : e > t) && e <= n), c = 0; c < a; c++) {
var l = c > 0 ? n[c - 1]?.coordinate : n[a - 1]?.coordinate, u = n[c]?.coordinate, d = c >= a - 1 ? n[0]?.coordinate : n[c + 1]?.coordinate, f = void 0;
if (l != null && u != null && d != null) {
- if (hU(u - l) !== hU(d - u)) {
+ if (gU(u - l) !== gU(d - u)) {
var p = [];
- if (hU(d - u) === hU(i[1] - i[0])) {
+ if (gU(d - u) === gU(i[1] - i[0])) {
f = d;
var m = u + i[1] - i[0];
p[0] = Math.min(m, (m + l) / 2), p[1] = Math.max(m, (m + l) / 2);
@@ -84062,48 +84066,48 @@ var pYe = (e, t, n, r, i) => {
}
}
return -1;
-}, mYe = () => J(BX), Q2 = (e, t) => t, hYe = (e, t, n) => n, $2 = (e, t, n, r) => r, gYe = Y(V2, (e) => LG(e, (e) => e.coordinate)), e4 = Y([
- T2,
+}, mYe = () => J(VX), Q2 = (e, t) => t, hYe = (e, t, n) => n, $2 = (e, t, n, r) => r, gYe = Y(H2, (e) => RG(e, (e) => e.coordinate)), e4 = Y([
+ E2,
Q2,
hYe,
$2
-], b2), t4 = Y([
+], x2), t4 = Y([
e4,
- N2,
- d0,
- L2
-], x2), _Ye = (e, t, n) => {
+ P2,
+ f0,
+ R2
+], S2), _Ye = (e, t, n) => {
if (t != null) {
- var r = T2(e);
+ var r = E2(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
}, vYe = Y([
- T2,
+ E2,
Q2,
hYe,
$2
-], C2), n4 = Y([
- fJ,
+], w2), n4 = Y([
pJ,
- BJ,
- yJ,
- V2,
+ mJ,
+ VJ,
+ bJ,
+ H2,
$2,
vYe
-], S2), yYe = Y([e4, n4], (e, t) => e.coordinate ?? t), bYe = Y([V2, t4], l2), xYe = Y([
+], C2), yYe = Y([e4, n4], (e, t) => e.coordinate ?? t), bYe = Y([H2, t4], u2), xYe = Y([
vYe,
t4,
- mX,
- d0,
+ hX,
+ f0,
bYe,
- w2,
+ T2,
Q2
-], k2), SYe = Y([e4, t4], (e, t) => ({
+], A2), SYe = Y([e4, t4], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
})), CYe = (e, t, n, r, i, a, o) => {
if (e && n && r && i && fYe(e, o)) {
- var s = pYe(tVe(e, t), a, i, n, r), c = uYe(t, i, s, e);
+ var s = pYe(eVe(e, t), a, i, n, r), c = uYe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
@@ -84111,9 +84115,9 @@ var pYe = (e, t, n, r, i) => {
}
}, wYe = (e, t, n, r, i, a, o) => {
if (e && r && i && a && n) {
- var s = _We(e, n);
+ var s = gWe(e, n);
if (s) {
- var c = pYe(nVe(s, t), o, a, r, i), l = dYe(t, a, c, s);
+ var c = pYe(tVe(s, t), o, a, r, i), l = dYe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
@@ -84128,9 +84132,9 @@ var pYe = (e, t, n, r, i) => {
if (r != null) return n ? r.panoramaElement : r.element;
}
}), DYe = Y((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(WX));
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(GX));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: YWe } });
+}, { memoizeOptions: { resultEqualityCheck: JWe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
function OYe(e, t) {
@@ -84176,15 +84180,15 @@ function MYe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var NYe = { zIndexMap: Object.values(WX).reduce((e, t) => kYe(kYe({}, e), {}, { [t]: {
+var NYe = { zIndexMap: Object.values(GX).reduce((e, t) => kYe(kYe({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, PYe = new Set(Object.values(WX));
+} }), {}) }, PYe = new Set(Object.values(GX));
function FYe(e) {
return PYe.has(e);
}
-var IYe = vq({
+var IYe = yq({
name: "zIndex",
initialState: NYe,
reducers: {
@@ -84197,39 +84201,39 @@ var IYe = vq({
panoramaElement: void 0
};
},
- prepare: mq()
+ prepare: hq()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var n = t.payload.zIndex;
e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !FYe(n) && delete e.zIndexMap[n]);
},
- prepare: mq()
+ prepare: hq()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var n = t.payload, r = n.zIndex, i = n.element, a = n.isPanorama;
- e.zIndexMap[r] ? a ? e.zIndexMap[r].panoramaElement = sq(i) : e.zIndexMap[r].element = sq(i) : e.zIndexMap[r] = {
+ e.zIndexMap[r] ? a ? e.zIndexMap[r].panoramaElement = cq(i) : e.zIndexMap[r].element = cq(i) : e.zIndexMap[r] = {
consumers: 0,
- element: a ? void 0 : sq(i),
- panoramaElement: a ? sq(i) : void 0
+ element: a ? void 0 : cq(i),
+ panoramaElement: a ? cq(i) : void 0
};
},
- prepare: mq()
+ prepare: hq()
},
unregisterZIndexPortalElement: {
reducer: (e, t) => {
var n = t.payload.zIndex;
e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);
},
- prepare: mq()
+ prepare: hq()
}
}
}), r4 = IYe.actions, LYe = r4.registerZIndexPortal, i4 = r4.unregisterZIndexPortal, RYe = r4.registerZIndexPortalElement, zYe = r4.unregisterZIndexPortalElement, BYe = IYe.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function a4(e) {
- var t = e.zIndex, n = e.children, r = RVe() && t !== void 0 && t !== 0, i = SJ(), a = (0, b.useRef)(void 0), o = (0, b.useRef)(/* @__PURE__ */ new Set()), s = OG(), c = J((e) => EYe(e, t, i));
+ var t = e.zIndex, n = e.children, r = LVe() && t !== void 0 && t !== 0, i = CJ(), a = (0, b.useRef)(void 0), o = (0, b.useRef)(/* @__PURE__ */ new Set()), s = kG(), c = J((e) => EYe(e, t, i));
if ((0, b.useLayoutEffect)(() => {
if (!r) {
var e = o.current;
@@ -84321,10 +84325,10 @@ function KYe(e) {
var t = e.coordinate, n = e.payload, r = e.index, i = e.offset, a = e.tooltipAxisBandSize, o = e.layout, s = e.cursor, c = e.tooltipEventType, l = e.chartName, 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 = _Ue, h = WX.cursorLine;
- else if (l === "BarChart") p = vUe(o, u, i, a), m = eX, h = WX.cursorRectangle;
- else if (o === "radial" && jW(u)) {
- var g = oX(u), _ = g.cx, v = g.cy, y = g.radius;
+ if (l === "ScatterChart") p = u, m = gUe, h = GX.cursorLine;
+ else if (l === "BarChart") p = _Ue(o, u, i, a), m = tX, h = GX.cursorRectangle;
+ else if (o === "radial" && MW(u)) {
+ var g = sX(u), _ = g.cx, v = g.cy, y = g.radius;
p = {
cx: _,
cy: v,
@@ -84332,12 +84336,12 @@ function KYe(e) {
endAngle: g.endAngle,
innerRadius: y,
outerRadius: y
- }, m = dX, h = WX.cursorLine;
- } else p = { points: OWe(o, u, i) }, m = kY, h = WX.cursorLine;
+ }, m = fX, h = GX.cursorLine;
+ } else p = { points: DWe(o, u, i) }, m = AY, h = GX.cursorLine;
var x = typeof s == "object" && "className" in s ? s.className : void 0, S = s4(s4(s4(s4({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), eU(s)), {}, {
+ }, i), p), tU(s)), {}, {
payload: d,
payloadIndex: f,
className: hy("recharts-tooltip-cursor", x)
@@ -84349,7 +84353,7 @@ function KYe(e) {
}));
}
function qYe(e) {
- var t = aYe(), n = LJ(), r = VJ(), i = mYe();
+ var t = aYe(), n = RJ(), r = HJ(), i = mYe();
return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ b.createElement(KYe, o4({}, e, {
offset: n,
layout: r,
@@ -84449,9 +84453,9 @@ var JYe = /*#__PURE__*/ (0, b.createContext)(null), YYe = () => (0, b.useContext
})))(), 1)).default, c4 = new XYe(), l4 = "recharts.syncEvent.tooltip", ZYe = "recharts.syncEvent.brush", u4 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!gU(n)) return e[n];
+ if (!_U(n)) return e[n];
}
-}, QYe = vq({
+}, QYe = yq({
name: "options",
initialState: {
chartName: "",
@@ -84468,7 +84472,7 @@ var JYe = /*#__PURE__*/ (0, b.createContext)(null), YYe = () => (0, b.useContext
function tXe(e) {
return e.tooltip.syncInteraction;
}
-var nXe = vq({
+var nXe = yq({
name: "chartData",
initialState: {
chartData: void 0,
@@ -84478,7 +84482,7 @@ var nXe = vq({
},
reducers: {
setChartData(e, t) {
- e.chartData = sq(t.payload), t.payload == null ? (e.dataStartIndex = 0, e.dataEndIndex = 0) : t.payload.length > 0 && e.dataEndIndex !== t.payload.length - 1 && (e.dataEndIndex = t.payload.length - 1);
+ e.chartData = cq(t.payload), t.payload == null ? (e.dataStartIndex = 0, e.dataEndIndex = 0) : t.payload.length > 0 && e.dataEndIndex !== t.payload.length - 1 && (e.dataEndIndex = t.payload.length - 1);
},
setComputedData(e, t) {
e.computedData = t.payload;
@@ -84553,12 +84557,12 @@ function fXe(e, t) {
return n;
}
function pXe() {
- var e = J(VX), t = J(UX), n = OG(), r = J(HX), i = J(V2), a = VJ(), o = IJ(), s = J((e) => e.rootProps.className);
+ var e = J(HX), t = J(WX), n = kG(), r = J(UX), i = J(H2), a = HJ(), o = LJ(), s = J((e) => e.rootProps.className);
(0, b.useEffect)(() => {
- if (e == null) return OU;
+ if (e == null) return kU;
var s = (s, c, l) => {
if (t !== l && e === s) {
- if (c.payload.active === !1) n(g2({
+ if (c.payload.active === !1) n(_2({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -84587,7 +84591,7 @@ function pXe() {
activeCoordinate: c.payload.coordinate
})] : r === "value" && (x = i.find((e) => String(e.value) === c.payload.label));
var S = c.payload.coordinate;
- if (S == null || o == null) n(g2({
+ if (S == null || o == null) n(_2({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -84596,7 +84600,7 @@ function pXe() {
sourceViewBox: void 0,
graphicalItemId: void 0
}));
- else if (x == null) n(g2({
+ else if (x == null) n(_2({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -84610,7 +84614,7 @@ function pXe() {
x: a === "horizontal" ? x.coordinate : T,
y: a === "horizontal" ? E : x.coordinate
};
- n(g2({
+ n(_2({
active: c.payload.active,
coordinate: D,
dataKey: c.payload.dataKey,
@@ -84638,9 +84642,9 @@ function pXe() {
]);
}
function mXe() {
- var e = J(VX), t = J(UX), n = OG();
+ var e = J(HX), t = J(WX), n = kG();
(0, b.useEffect)(() => {
- if (e == null) return OU;
+ if (e == null) return kU;
var r = (r, i, a) => {
t !== a && e === r && n(iXe(i));
};
@@ -84654,16 +84658,16 @@ function mXe() {
]);
}
function hXe() {
- var e = OG();
+ var e = kG();
(0, b.useEffect)(() => {
e(eXe());
}, [e]), pXe(), mXe();
}
function gXe(e, t, n, r, i, a) {
- var o = J((n) => _Ye(n, e, t)), s = J(XJe), c = J(UX), l = J(VX), u = J(HX), d = J(tXe)?.sourceViewBox != null, f = IJ();
+ var o = J((n) => _Ye(n, e, t)), s = J(YJe), c = J(WX), l = J(HX), u = J(UX), d = J(tXe)?.sourceViewBox != null, f = LJ();
(0, b.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = g2({
+ var e = _2({
active: a,
coordinate: n,
dataKey: o,
@@ -84779,7 +84783,7 @@ function OXe(e) {
return e.dataKey;
}
function kXe(e, t) {
- return /*#__PURE__*/ b.isValidElement(e) ? /*#__PURE__*/ b.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ b.createElement(e, t) : /*#__PURE__*/ b.createElement(LHe, t);
+ return /*#__PURE__*/ b.isValidElement(e) ? /*#__PURE__*/ b.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ b.createElement(e, t) : /*#__PURE__*/ b.createElement(IHe, t);
}
var AXe = [], jXe = {
allowEscapeViewBox: {
@@ -84808,9 +84812,9 @@ var AXe = [], jXe = {
wrapperStyle: {}
};
function MXe(e) {
- var t = FW(e, jXe), n = t.active, r = t.allowEscapeViewBox, i = t.animationDuration, a = t.animationEasing, o = t.content, s = t.filterNull, c = t.isAnimationActive, l = t.offset, u = t.payloadUniqBy, d = t.position, f = t.reverseDirection, p = t.useTranslate3d, m = t.wrapperStyle, h = t.cursor, g = t.shared, _ = t.trigger, v = t.defaultIndex, y = t.portal, x = t.axisId, S = OG(), C = typeof v == "number" ? String(v) : v;
+ var t = IW(e, jXe), n = t.active, r = t.allowEscapeViewBox, i = t.animationDuration, a = t.animationEasing, o = t.content, s = t.filterNull, c = t.isAnimationActive, l = t.offset, u = t.payloadUniqBy, d = t.position, f = t.reverseDirection, p = t.useTranslate3d, m = t.wrapperStyle, h = t.cursor, g = t.shared, _ = t.trigger, v = t.defaultIndex, y = t.portal, x = t.axisId, S = kG(), C = typeof v == "number" ? String(v) : v;
(0, b.useEffect)(() => {
- S(xJe({
+ S(bJe({
shared: g,
trigger: _,
axisId: x,
@@ -84825,12 +84829,12 @@ function MXe(e) {
n,
C
]);
- var w = IJ(), T = yY(), E = gJe(g), D = J((e) => SYe(e, E, _, C)) ?? {}, O = D.activeIndex, k = D.isActive, A = J((e) => xYe(e, E, _, C)), j = J((e) => bYe(e, E, _, C)), M = J((e) => yYe(e, E, _, C)), N = A, P = YYe(), ee = n ?? k ?? !1, F = SXe(UG([N, ee]), 2), te = F[0], I = F[1], ne = E === "axis" ? j : void 0;
+ var w = LJ(), T = bY(), E = hJe(g), D = J((e) => SYe(e, E, _, C)) ?? {}, O = D.activeIndex, k = D.isActive, A = J((e) => xYe(e, E, _, C)), j = J((e) => bYe(e, E, _, C)), M = J((e) => yYe(e, E, _, C)), N = A, P = YYe(), ee = n ?? k ?? !1, F = SXe(WG([N, ee]), 2), te = F[0], I = F[1], ne = E === "axis" ? j : void 0;
gXe(E, _, M, ne, O, ee);
var re = y ?? P;
if (re == null || w == null || E == null) return null;
var ie = N ?? AXe;
- ee || (ie = AXe), s && ie.length && (ie = EG(ie.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, OXe));
+ ee || (ie = AXe), s && ie.length && (ie = DG(ie.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, OXe));
var ae = ie.length > 0, oe = vXe(vXe({}, t), {}, {
payload: ie,
label: ne,
@@ -84838,7 +84842,7 @@ function MXe(e) {
activeIndex: O,
coordinate: M,
accessibilityLayer: T
- }), se = /*#__PURE__*/ b.createElement(rUe, {
+ }), se = /*#__PURE__*/ b.createElement(nUe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -84992,7 +84996,7 @@ var qXe = (e, t) => {
}
}, m4 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || pY.isSsr) return {
+ if (e == null || mY.isSsr) return {
width: 0,
height: 0
};
@@ -85096,7 +85100,7 @@ var _4 = class e {
return r == null ? e.NaN : new e(parseFloat(r), i ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, gU(e) && (this.unit = ""), t !== "" && !aZe.test(t) && (this.num = NaN, this.unit = ""), lZe(t) && (this.num = uZe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, _U(e) && (this.unit = ""), t !== "" && !aZe.test(t) && (this.num = NaN, this.unit = ""), lZe(t) && (this.num = uZe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -85114,7 +85118,7 @@ var _4 = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return gU(this.num);
+ return _U(this.num);
}
};
JXe = _4, eZe(_4, "NaN", new JXe(NaN, ""));
@@ -85246,7 +85250,7 @@ var EZe = /[ \f\n\r\t\v\u2028\u2029]+/, DZe = (e) => {
var t = e.children, n = e.breakAll, r = e.style;
try {
var i = [];
- return TU(t) || (i = n ? t.toString().split("") : t.toString().split(EZe)), {
+ return EU(t) || (i = n ? t.toString().split("") : t.toString().split(EZe)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
width: m4(e, r).width
@@ -85261,7 +85265,7 @@ function OZe(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
function kZe(e) {
- return TU(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+ return EU(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var AZe = (e, t, n, r) => e.reduce((e, i) => {
var a = i.word, o = i.width, s = e[e.length - 1];
@@ -85284,7 +85288,7 @@ var AZe = (e, t, n, r) => e.reduce((e, i) => {
var l = AZe(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || jZe(l).width > Number(a), l];
}, PZe = (e, t, n, r, i) => {
- var a = e.maxLines, o = e.children, s = e.style, c = e.breakAll, l = vU(a), u = String(o), d = AZe(t, r, n, i);
+ var a = e.maxLines, o = e.children, s = e.style, c = e.breakAll, l = yU(a), u = String(o), d = AZe(t, r, n, i);
if (!l || i || !(d.length > a || jZe(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
var g = Math.floor((f + p) / 2), _ = bZe(NZe(u, g - 1, c, s, a, r, n, i), 2), v = _[0], y = _[1], b = bZe(NZe(u, g, c, s, a, r, n, i), 1)[0];
@@ -85296,11 +85300,11 @@ var AZe = (e, t, n, r) => e.reduce((e, i) => {
}
return h || d;
}, FZe = (e) => [{
- words: TU(e) ? [] : e.toString().split(EZe),
+ words: EU(e) ? [] : e.toString().split(EZe),
width: void 0
}], IZe = (e) => {
var t = e.width, n = e.scaleToFit, r = e.children, i = e.style, a = e.breakAll, o = e.maxLines;
- if ((t || n) && !pY.isSsr) {
+ if ((t || n) && !mY.isSsr) {
var s, c, l = DZe({
breakAll: a,
children: r,
@@ -85330,7 +85334,7 @@ var AZe = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, b4 = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = FW(e, RZe), r = n.x, i = n.y, a = n.lineHeight, o = n.capHeight, s = n.fill, c = n.scaleToFit, l = n.textAnchor, u = n.verticalAnchor, d = vZe(n, gZe), f = (0, b.useMemo)(() => IZe({
+ var n = IW(e, RZe), r = n.x, i = n.y, a = n.lineHeight, o = n.capHeight, s = n.fill, c = n.scaleToFit, l = n.textAnchor, u = n.verticalAnchor, d = vZe(n, gZe), f = (0, b.useMemo)(() => IZe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -85345,9 +85349,9 @@ var AZe = (e, t, n, r) => e.reduce((e, i) => {
d.style,
d.width
]), p = d.dx, m = d.dy, h = d.angle, g = d.className, _ = d.breakAll, v = vZe(d, _Ze);
- if (!yU(r) || !yU(i) || f.length === 0) return null;
- var y = Number(r) + (vU(p) ? p : 0), x = Number(i) + (vU(m) ? m : 0);
- if (!Jq(y) || !Jq(x)) return null;
+ if (!bU(r) || !bU(i) || f.length === 0) return null;
+ var y = Number(r) + (yU(p) ? p : 0), x = Number(i) + (yU(m) ? m : 0);
+ if (!Yq(y) || !Yq(x)) return null;
var S;
switch (u) {
case "start":
@@ -85361,9 +85365,9 @@ var AZe = (e, t, n, r) => e.reduce((e, i) => {
var C = [], w = f[0];
if (c && w != null) {
var T = w.width, E = d.width;
- C.push(`scale(${vU(E) && vU(T) ? E / T : 1})`);
+ C.push(`scale(${yU(E) && yU(T) ? E / T : 1})`);
}
- return h && C.push(`rotate(${h}, ${y}, ${x})`), C.length && (v.transform = C.join(" ")), /*#__PURE__*/ b.createElement("text", y4({}, tU(v), {
+ return h && C.push(`rotate(${h}, ${y}, ${x})`), C.length && (v.transform = C.join(" ")), /*#__PURE__*/ b.createElement("text", y4({}, nU(v), {
ref: t,
x: y,
y: x,
@@ -85471,8 +85475,8 @@ var qZe = /*#__PURE__*/ (0, b.createContext)(null), JZe = (e) => {
]);
return /*#__PURE__*/ b.createElement(qZe.Provider, { value: c }, s);
}, YZe = () => {
- var e = (0, b.useContext)(qZe), t = IJ();
- return e || (t ? kU(t) : void 0);
+ var e = (0, b.useContext)(qZe), t = LJ();
+ return e || (t ? AU(t) : void 0);
}, XZe = /*#__PURE__*/ (0, b.createContext)(null), ZZe = (e) => {
var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = e.clockWise, c = e.children, l = (0, b.useMemo)(() => ({
cx: t,
@@ -85493,12 +85497,12 @@ var qZe = /*#__PURE__*/ (0, b.createContext)(null), JZe = (e) => {
]);
return /*#__PURE__*/ b.createElement(XZe.Provider, { value: l }, c);
}, QZe = () => {
- var e = (0, b.useContext)(XZe), t = J(sZ);
+ var e = (0, b.useContext)(XZe), t = J(cZ);
return e || t;
}, $Ze = (e) => {
- var t = e.value, n = e.formatter, r = TU(e.children) ? t : e.children;
+ var t = e.value, n = e.formatter, r = EU(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, C4 = (e) => e != null && typeof e == "function", eQe = (e, t) => hU(t - e) * Math.min(Math.abs(t - e), 360), tQe = (e, t, n, r, i) => {
+}, C4 = (e) => e != null && typeof e == "function", eQe = (e, t) => gU(t - e) * Math.min(Math.abs(t - e), 360), tQe = (e, t, n, r, i) => {
var a = e.offset, o = e.className, s = i.cx, c = i.cy, l = i.innerRadius, u = i.outerRadius, d = i.startAngle, f = i.endAngle, p = i.clockWise, m = (l + u) / 2, h = eQe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
@@ -85513,9 +85517,9 @@ var qZe = /*#__PURE__*/ (0, b.createContext)(null), JZe = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = aX(s, c, m, _), x = aX(s, c, m, _ + (v ? 1 : -1) * 359), S = `M${y.x},${y.y}
+ var y = oX(s, c, m, _), x = oX(s, c, m, _ + (v ? 1 : -1) * 359), S = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${x.x},${x.y}`, C = TU(e.id) ? bU("recharts-radial-line-") : e.id;
+ ${x.x},${x.y}`, C = EU(e.id) ? xU("recharts-radial-line-") : e.id;
return /*#__PURE__*/ b.createElement("text", S4({}, r, {
dominantBaseline: "central",
className: hy("recharts-radial-bar-label", o)
@@ -85526,7 +85530,7 @@ var qZe = /*#__PURE__*/ (0, b.createContext)(null), JZe = (e) => {
}, nQe = (e, t, n) => {
var r = e.cx, i = e.cy, a = e.innerRadius, o = e.outerRadius, s = (e.startAngle + e.endAngle) / 2;
if (n === "outside") {
- var c = aX(r, i, o + t, s), l = c.x;
+ var c = oX(r, i, o + t, s), l = c.x;
return {
x: l,
y: c.y,
@@ -85552,17 +85556,17 @@ var qZe = /*#__PURE__*/ (0, b.createContext)(null), JZe = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var u = aX(r, i, (a + o) / 2, s);
+ var u = oX(r, i, (a + o) / 2, s);
return {
x: u.x,
y: u.y,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, w4 = (e) => e != null && "cx" in e && vU(e.cx), rQe = {
+}, w4 = (e) => e != null && "cx" in e && yU(e.cx), rQe = {
angle: 0,
offset: 5,
- zIndex: WX.label,
+ zIndex: GX.label,
position: "middle",
textBreakAll: !1
};
@@ -85579,12 +85583,12 @@ function iQe(e) {
};
}
function T4(e) {
- var t = FW(e, rQe), n = t.viewBox, r = t.parentViewBox, i = t.position, a = t.value, o = t.children, s = t.content, c = t.className, l = c === void 0 ? "" : c, u = t.textBreakAll, d = t.labelRef, f = QZe(), p = YZe(), m = n == null ? i === "center" ? p : f ?? p : w4(n) ? n : kU(n), h, g, _ = iQe(m);
- if (!m || TU(a) && TU(o) && !/*#__PURE__*/ (0, b.isValidElement)(s) && typeof s != "function") return null;
+ var t = IW(e, rQe), n = t.viewBox, r = t.parentViewBox, i = t.position, a = t.value, o = t.children, s = t.content, c = t.className, l = c === void 0 ? "" : c, u = t.textBreakAll, d = t.labelRef, f = QZe(), p = YZe(), m = n == null ? i === "center" ? p : f ?? p : w4(n) ? n : AU(n), h, g, _ = iQe(m);
+ if (!m || EU(a) && EU(o) && !/*#__PURE__*/ (0, b.isValidElement)(s) && typeof s != "function") return null;
var v = w4(m) && (i === "insideStart" || i === "insideEnd" || i === "end");
if (w4(m)) v || (g = nQe(m, t.offset, t.position));
else if (_) {
- var y = MU({
+ var y = NU({
viewBox: _,
position: i,
offset: t.offset,
@@ -85609,7 +85613,7 @@ function T4(e) {
var C = VZe(x, BZe);
if (h = /*#__PURE__*/ (0, b.createElement)(s, C), /*#__PURE__*/ (0, b.isValidElement)(h)) return h;
} else h = $Ze(t);
- var w = tU(t);
+ var w = nU(t);
return v && w4(m) ? tQe(t, i, h, w, m) : g == null ? null : /*#__PURE__*/ b.createElement(a4, { zIndex: t.zIndex }, /*#__PURE__*/ b.createElement(b4, S4({
ref: d,
className: hy("recharts-label", l)
@@ -85625,7 +85629,7 @@ var aQe = (e, t, n) => {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ b.createElement(T4, S4({ key: "label-implicit" }, r)) : yU(e) ? /*#__PURE__*/ b.createElement(T4, S4({
+ return e === !0 ? /*#__PURE__*/ b.createElement(T4, S4({ key: "label-implicit" }, r)) : bU(e) ? /*#__PURE__*/ b.createElement(T4, S4({
key: "label-implicit",
value: e
}, r)) : /*#__PURE__*/ (0, b.isValidElement)(e) ? e.type === T4 ? /*#__PURE__*/ (0, b.cloneElement)(e, x4({ key: "label-implicit" }, r)) : /*#__PURE__*/ b.createElement(T4, S4({
@@ -85694,9 +85698,9 @@ function O4(e) {
var t = e.valueAccessor, n = t === void 0 ? fQe : t, r = uQe(e, cQe), i = r.dataKey;
r.clockWise;
var a = r.id, o = r.textBreakAll, s = r.zIndex, c = uQe(r, lQe), l = gQe(), u = _Qe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ b.createElement(a4, { zIndex: s ?? WX.label }, /*#__PURE__*/ b.createElement(aU, { className: "recharts-label-list" }, d.map((e, t) => {
- var s = TU(i) ? n(e, t) : Qq(e.payload, i), l = TU(a) ? {} : { id: `${a}-${t}` };
- return /*#__PURE__*/ b.createElement(T4, E4({ key: `label-${t}` }, tU(e), c, l, {
+ return !d || !d.length ? null : /*#__PURE__*/ b.createElement(a4, { zIndex: s ?? GX.label }, /*#__PURE__*/ b.createElement(oU, { className: "recharts-label-list" }, d.map((e, t) => {
+ var s = EU(i) ? n(e, t) : $q(e.payload, i), l = EU(a) ? {} : { id: `${a}-${t}` };
+ return /*#__PURE__*/ b.createElement(T4, E4({ key: `label-${t}` }, nU(e), c, l, {
fill: r.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -85766,7 +85770,7 @@ var CQe = (e) => e != null && e.x === +e.x && e.y === +e.y, wQe = function() {
}, j4 = (e, t) => {
var n = wQe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => mU(yQe ||= SQe([
+ var r = n.map((e) => e.reduce((e, t, n) => hU(yQe ||= SQe([
"",
"",
"",
@@ -85783,20 +85787,20 @@ var CQe = (e) => e != null && e.x === +e.x && e.y === +e.y, wQe = function() {
var o = hy("recharts-polygon", n);
if (r && r.length) {
var s = a.stroke && a.stroke !== "none", c = TQe(t, r, i);
- return /*#__PURE__*/ b.createElement("g", { className: o }, /*#__PURE__*/ b.createElement("path", A4({}, tU(a), {
+ return /*#__PURE__*/ b.createElement("g", { className: o }, /*#__PURE__*/ b.createElement("path", A4({}, nU(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ b.createElement("path", A4({}, tU(a), {
+ })), s ? /*#__PURE__*/ b.createElement("path", A4({}, nU(a), {
fill: "none",
d: j4(t, i)
- })) : null, s ? /*#__PURE__*/ b.createElement("path", A4({}, tU(a), {
+ })) : null, s ? /*#__PURE__*/ b.createElement("path", A4({}, nU(a), {
fill: "none",
d: j4(r, i)
})) : null);
}
var l = j4(t, i);
- return /*#__PURE__*/ b.createElement("path", A4({}, tU(a), {
+ return /*#__PURE__*/ b.createElement("path", A4({}, nU(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -85815,7 +85819,7 @@ function M4() {
}
var N4 = (e) => {
var t = e.cx, n = e.cy, r = e.r, i = e.className, a = hy("recharts-dot", i);
- return vU(t) && vU(n) && vU(r) ? /*#__PURE__*/ b.createElement("circle", M4({}, $H(e), MW(e), {
+ return yU(t) && yU(n) && yU(r) ? /*#__PURE__*/ b.createElement("circle", M4({}, eU(e), NW(e), {
className: a,
cx: t,
cy: n,
@@ -85823,93 +85827,93 @@ var N4 = (e) => {
})) : null;
}, P4 = (e) => e.graphicalItems.polarItems, F4 = Y([
P4,
- W1,
- Y([cZ, lZ], q1)
-], Y1), I4 = Y([Y([F4], $1), hX], t0), DQe = Y([
+ G1,
+ Y([lZ, uZ], J1)
+], X1), I4 = Y([Y([F4], e0), gX], n0), DQe = Y([
I4,
- W1,
+ G1,
F4
-], r0);
+], i0);
Y([
I4,
- W1,
+ G1,
F4
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: Qq(e, t.dataKey ?? n.dataKey),
+ value: $q(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: Qq(e, t.dataKey),
+ value: $q(e, t.dataKey),
errorDomain: []
})));
var OQe = () => void 0, kQe = Y([
- W1,
- BJ,
+ G1,
+ VJ,
I4,
DQe,
- RX,
- cZ,
+ zX,
+ lZ,
Y([
- W1,
- g0,
+ G1,
_0,
+ v0,
OQe,
Y([
I4,
- W1,
+ G1,
F4,
- v0,
- cZ,
- jWe
- ], b0),
+ y0,
+ lZ,
+ AWe
+ ], x0),
OQe,
- BJ,
- cZ
- ], O0)
-], k0), AQe = Y([
+ VJ,
+ lZ
+ ], k0)
+], A0), AQe = Y([
kQe,
+ K1,
+ M0
+], N0), jQe = Y([M0, Y([
G1,
- j0
-], M0), jQe = Y([j0, Y([
- W1,
kQe,
AQe,
- cZ
-], P0)], vZ), L4 = (e, t, n) => {
+ lZ
+], F0)], yZ), L4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return $X(e, n);
- case "radiusAxis": return eZ(e, n);
+ case "angleAxis": return eZ(e, n);
+ case "radiusAxis": return tZ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, R4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return qWe(e, n);
- case "radiusAxis": return JWe(e, n);
+ case "angleAxis": return KWe(e, n);
+ case "radiusAxis": return qWe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, z4 = Y([Y([
L4,
- j0,
+ M0,
jQe,
R4
-], k1)], _Z), MQe = Y([
- BJ,
+], A1)], vZ), MQe = Y([
+ VJ,
DQe,
- G1,
- cZ
-], V0), B4 = Y([
- BJ,
+ K1,
+ lZ
+], H0), B4 = Y([
+ VJ,
L4,
- j0,
+ M0,
z4,
AQe,
R4,
- Q0,
+ $0,
MQe,
- cZ
-], e2), NQe = Y([B4], (e) => {
+ lZ
+], t2), NQe = Y([B4], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -85918,14 +85922,14 @@ var OQe = () => void 0, kQe = Y([
}), Array.from(t.values());
}
}), PQe = Y([
- BJ,
+ VJ,
L4,
z4,
R4,
- Q0,
+ $0,
MQe,
- cZ
-], n2), FQe = Y([(e, t) => B4(e, "angleAxis", t, !1)], (e) => {
+ lZ
+], r2), FQe = Y([(e, t) => B4(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
}), IQe = Y([(e, t) => B4(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
@@ -86015,15 +86019,15 @@ function UQe(e, t) {
var WQe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = aX(t, n, e, r);
+ var o = oX(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
}, GQe = (e) => {
var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.polarAngles, o = e.radialLines;
if (!a || !a.length || !o) return null;
- var s = H4({}, $H(e));
+ var s = H4({}, eU(e));
return /*#__PURE__*/ b.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = aX(t, n, r, e), o = aX(t, n, i, e);
+ var a = oX(t, n, r, e), o = oX(t, n, i, e);
return /*#__PURE__*/ b.createElement("line", V4({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
@@ -86032,7 +86036,7 @@ var WQe = (e, t, n, r) => {
}));
}));
}, KQe = (e) => {
- var t = e.cx, n = e.cy, r = e.radius, i = H4({}, $H(e));
+ var t = e.cx, n = e.cy, r = e.radius, i = H4({}, eU(e));
return /*#__PURE__*/ b.createElement("circle", V4({}, i, {
className: hy("recharts-polar-grid-concentric-circle", e.className),
cx: t,
@@ -86040,7 +86044,7 @@ var WQe = (e, t, n, r) => {
r
}));
}, qQe = (e) => {
- var t = e.radius, n = H4({}, $H(e));
+ var t = e.radius, n = H4({}, eU(e));
return /*#__PURE__*/ b.createElement("path", V4({}, n, {
className: hy("recharts-polar-grid-concentric-polygon", e.className),
d: WQe(t, e.cx, e.cy, e.polarAngles)
@@ -86064,12 +86068,12 @@ var WQe = (e, t, n, r) => {
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: WX.grid,
+ zIndex: GX.grid,
stroke: "#ccc",
strokeWidth: 1,
fill: "none"
}, XQe = (e) => {
- var t = FW(e, YQe), n = t.gridType, r = t.radialLines, i = t.angleAxisId, a = t.radiusAxisId, o = t.cx, s = t.cy, c = t.innerRadius, l = t.outerRadius, u = t.polarAngles, d = t.polarRadius, f = t.zIndex, p = RQe(t, LQe), m = J(sZ), h = J((e) => FQe(e, i)), g = J((e) => IQe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = IW(e, YQe), n = t.gridType, r = t.radialLines, i = t.angleAxisId, a = t.radiusAxisId, o = t.cx, s = t.cy, c = t.innerRadius, l = t.outerRadius, u = t.polarAngles, d = t.polarRadius, f = t.zIndex, p = RQe(t, LQe), m = J(cZ), h = J((e) => FQe(e, i)), g = J((e) => IQe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = H4({
cx: m?.cx ?? o ?? 0,
@@ -86102,11 +86106,11 @@ function U4(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function ZQe(e, t = BW) {
+function ZQe(e, t = VW) {
if (e == null) return;
let n = U4(e);
if (n.length === 0) return;
- let r = wG(t), i, a;
+ let r = TG(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);
@@ -86115,11 +86119,11 @@ function ZQe(e, t = BW) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function QQe(e, t = BW) {
+function QQe(e, t = VW) {
if (e == null) return;
let n = U4(e);
if (n.length === 0) return;
- let r = wG(t), i, a;
+ let r = TG(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);
@@ -86128,7 +86132,7 @@ function QQe(e, t = BW) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var $Qe = vq({
+var $Qe = yq({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -86136,13 +86140,13 @@ var $Qe = vq({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = sq(t.payload);
+ e.radiusAxis[t.payload.id] = cq(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = sq(t.payload);
+ e.angleAxis[t.payload.id] = cq(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
@@ -86239,17 +86243,17 @@ function f$e(e, t) {
}
var p$e = "radiusAxis";
function m$e(e) {
- var t = OG(), n = WJ(), r = (0, b.useMemo)(() => {
- var t = e.type, r = J4(e, a$e), i = JX(n, "radiusAxis", t);
+ var t = kG(), n = GJ(), r = (0, b.useMemo)(() => {
+ var t = e.type, r = J4(e, a$e), i = YX(n, "radiusAxis", t);
if (i != null) return q4(q4({}, r), {}, { type: i });
}, [e, n]);
- return (0, b.useEffect)(() => r == null ? OU : (t(e$e(r)), () => {
+ return (0, b.useEffect)(() => r == null ? kU : (t(e$e(r)), () => {
t(t$e(r));
}), [t, r]), null;
}
var h$e = (e, t, n, r) => {
var i = e.coordinate;
- return aX(n, r, i, t);
+ return oX(n, r, i, t);
}, g$e = (e) => {
var t;
switch (e) {
@@ -86274,7 +86278,7 @@ var h$e = (e, t, n, r) => {
clockWise: !1
};
}, v$e = (e, t) => {
- var n = e.cx, r = e.cy, i = e.angle, a = e.axisLine, o = J4(e, o$e), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = aX(n, r, s[0], i), l = aX(n, r, s[1], i), u = q4(q4(q4({}, $H(o)), {}, { fill: "none" }, $H(a)), {}, {
+ var n = e.cx, r = e.cy, i = e.angle, a = e.axisLine, o = J4(e, o$e), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = oX(n, r, s[0], i), l = oX(n, r, s[1], i), u = q4(q4(q4({}, eU(o)), {}, { fill: "none" }, eU(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
@@ -86282,7 +86286,7 @@ var h$e = (e, t, n, r) => {
});
return /*#__PURE__*/ b.createElement("line", K4({ className: "recharts-polar-radius-axis-line" }, u));
}, y$e = (e, t, n) => /*#__PURE__*/ b.isValidElement(e) ? /*#__PURE__*/ b.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ b.createElement(b4, K4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), b$e = (e, t) => {
- var n = e.angle, r = e.tickFormatter, i = e.stroke, a = e.tick, o = J4(e, s$e), s = g$e(e.orientation), c = $H(o), l = eU(a), u = t.map((t, o) => {
+ var n = e.angle, r = e.tickFormatter, i = e.stroke, a = e.tick, o = J4(e, s$e), s = g$e(e.orientation), c = eU(o), l = tU(a), u = t.map((t, o) => {
var u = h$e(t, e.angle, e.cx, e.cy), d = q4(q4(q4(q4({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
@@ -86290,20 +86294,20 @@ var h$e = (e, t, n, r) => {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ b.createElement(aU, K4({
+ return /*#__PURE__*/ b.createElement(oU, K4({
className: hy("recharts-polar-radius-axis-tick", G4(a)),
key: `tick-${t.coordinate}`
- }, NW(e, t, o)), y$e(a, d, r ? r(t.value, o) : t.value));
+ }, PW(e, t, o)), y$e(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ b.createElement(aU, { className: "recharts-polar-radius-axis-ticks" }, u);
+ return /*#__PURE__*/ b.createElement(oU, { className: "recharts-polar-radius-axis-ticks" }, u);
}, x$e = (e) => {
- var t = e.radiusAxisId, n = J(sZ), r = J((e) => z4(e, "radiusAxis", t)), i = J((e) => B4(e, "radiusAxis", t, !1));
+ var t = e.radiusAxisId, n = J(cZ), r = J((e) => z4(e, "radiusAxis", t)), i = J((e) => B4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = q4(q4({}, e), {}, { scale: r }, n), o = a.tick, s = a.axisLine;
- return /*#__PURE__*/ b.createElement(a4, { zIndex: a.zIndex }, /*#__PURE__*/ b.createElement(aU, { className: hy("recharts-polar-radius-axis", p$e, a.className) }, s && v$e(a, i), o && b$e(a, i), /*#__PURE__*/ b.createElement(ZZe, _$e(a.angle, a.cx, a.cy, i), /*#__PURE__*/ b.createElement(sQe, { label: a.label }), a.children)));
+ return /*#__PURE__*/ b.createElement(a4, { zIndex: a.zIndex }, /*#__PURE__*/ b.createElement(oU, { className: hy("recharts-polar-radius-axis", p$e, a.className) }, s && v$e(a, i), o && b$e(a, i), /*#__PURE__*/ b.createElement(ZZe, _$e(a.angle, a.cx, a.cy, i), /*#__PURE__*/ b.createElement(sQe, { label: a.label }), a.children)));
};
function S$e(e) {
- var t = FW(e, KX);
+ var t = IW(e, qX);
return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(m$e, {
domain: t.domain,
id: t.radiusAxisId,
@@ -86397,19 +86401,19 @@ function A$e(e, t) {
}
return n;
}
-var j$e = 1e-5, M$e = Math.cos(iX(45)), N$e = "angleAxis";
+var j$e = 1e-5, M$e = Math.cos(aX(45)), N$e = "angleAxis";
function P$e(e) {
- var t = OG(), n = WJ(), r = (0, b.useMemo)(() => {
+ var t = kG(), n = GJ(), r = (0, b.useMemo)(() => {
e.children;
- var t = e.type, r = k$e(e, C$e), i = JX(n, "angleAxis", t);
+ var t = e.type, r = k$e(e, C$e), i = YX(n, "angleAxis", t);
if (i != null) return X4(X4({}, r), {}, { type: i });
- }, [e, n]), i = r === J((e) => $X(e, r?.id));
- return (0, b.useEffect)(() => r == null ? OU : (t(n$e(r)), () => {
+ }, [e, n]), i = r === J((e) => eZ(e, r?.id));
+ return (0, b.useEffect)(() => r == null ? kU : (t(n$e(r)), () => {
t(r$e(r));
}), [t, r]), i ? e.children : null;
}
var F$e = (e, t) => {
- var n = t.cx, r = t.cy, i = t.radius, a = t.orientation, o = t.tickSize || 8, s = aX(n, r, i, e.coordinate), c = aX(n, r, i + (a === "inner" ? -1 : 1) * o, e.coordinate);
+ var n = t.cx, r = t.cy, i = t.radius, a = t.orientation, o = t.tickSize || 8, s = oX(n, r, i, e.coordinate), c = oX(n, r, i + (a === "inner" ? -1 : 1) * o, e.coordinate);
return {
x1: s.x,
y1: s.y,
@@ -86417,29 +86421,29 @@ var F$e = (e, t) => {
y2: c.y
};
}, I$e = (e, t) => {
- var n = Math.cos(iX(-e.coordinate));
+ var n = Math.cos(aX(-e.coordinate));
return n > j$e ? t === "outer" ? "start" : "end" : n < -j$e ? t === "outer" ? "end" : "start" : "middle";
}, L$e = (e) => {
- var t = Math.cos(iX(-e.coordinate)), n = Math.sin(iX(-e.coordinate));
+ var t = Math.cos(aX(-e.coordinate)), n = Math.sin(aX(-e.coordinate));
return Math.abs(t) <= M$e ? n > 0 ? "start" : "end" : "middle";
}, R$e = (e) => {
var t = e.cx, n = e.cy, r = e.radius, i = e.axisLineType, a = e.axisLine, o = e.ticks;
if (!a) return null;
- var s = X4(X4({}, $H(e)), {}, { fill: "none" }, $H(a));
+ var s = X4(X4({}, eU(e)), {}, { fill: "none" }, eU(a));
if (i === "circle") return /*#__PURE__*/ b.createElement(N4, Y4({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => aX(t, n, r, e.coordinate));
+ var c = o.map((e) => oX(t, n, r, e.coordinate));
return /*#__PURE__*/ b.createElement(EQe, Y4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
}, z$e = (e) => {
var t = e.tick, n = e.tickProps, r = e.value;
return t ? /*#__PURE__*/ b.isValidElement(t) ? /*#__PURE__*/ b.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ b.createElement(b4, Y4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
}, B$e = (e) => {
- var t = e.tick, n = e.tickLine, r = e.tickFormatter, i = e.stroke, a = e.ticks, o = $H(e);
+ var t = e.tick, n = e.tickLine, r = e.tickFormatter, i = e.stroke, a = e.ticks, o = eU(e);
o.ref;
- var s = k$e(o, w$e), c = eU(t), l = X4(X4({}, s), {}, { fill: "none" }, $H(n)), u = a.map((a, o) => {
+ var s = k$e(o, w$e), c = tU(t), l = X4(X4({}, s), {}, { fill: "none" }, eU(n)), u = a.map((a, o) => {
var u = F$e(a, e), d = I$e(a, e.orientation), f = L$e(a), p = X4(X4(X4({}, s), {}, {
textAnchor: d,
verticalAnchor: f,
@@ -86451,27 +86455,27 @@ var F$e = (e, t) => {
x: u.x2,
y: u.y2
});
- return /*#__PURE__*/ b.createElement(aU, Y4({
+ return /*#__PURE__*/ b.createElement(oU, Y4({
className: hy("recharts-polar-angle-axis-tick", G4(t)),
key: `tick-${a.coordinate}`
- }, NW(e, a, o)), n && /*#__PURE__*/ b.createElement("line", Y4({ className: "recharts-polar-angle-axis-tick-line" }, l, u)), /*#__PURE__*/ b.createElement(z$e, {
+ }, PW(e, a, o)), n && /*#__PURE__*/ b.createElement("line", Y4({ className: "recharts-polar-angle-axis-tick-line" }, l, u)), /*#__PURE__*/ b.createElement(z$e, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ b.createElement(aU, { className: "recharts-polar-angle-axis-ticks" }, u);
+ return /*#__PURE__*/ b.createElement(oU, { className: "recharts-polar-angle-axis-ticks" }, u);
}, V$e = (e) => {
- var t = e.angleAxisId, n = J(sZ), r = J((e) => z4(e, "angleAxis", t)), i = SJ(), a = J((e) => NQe(e, "angleAxis", t, i));
+ var t = e.angleAxisId, n = J(cZ), r = J((e) => z4(e, "angleAxis", t)), i = CJ(), a = J((e) => NQe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = X4(X4(X4({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ b.createElement(a4, { zIndex: o.zIndex }, /*#__PURE__*/ b.createElement(aU, { className: hy("recharts-polar-angle-axis", N$e, o.className) }, /*#__PURE__*/ b.createElement(R$e, o), /*#__PURE__*/ b.createElement(B$e, o)));
+ return /*#__PURE__*/ b.createElement(a4, { zIndex: o.zIndex }, /*#__PURE__*/ b.createElement(oU, { className: hy("recharts-polar-angle-axis", N$e, o.className) }, /*#__PURE__*/ b.createElement(R$e, o), /*#__PURE__*/ b.createElement(B$e, o)));
};
function Z4(e) {
- var t = FW(e, GX);
+ var t = IW(e, KX);
return /*#__PURE__*/ b.createElement(P$e, {
id: t.angleAxisId,
scale: t.scale,
@@ -86529,13 +86533,13 @@ var H$e = /* @__PURE__ */ o(((e) => {
if (e === G$e && Array.isArray(Q4)) return Q4;
var t = [];
return b.Children.forEach(e, (e) => {
- TU(e) || ((0, U$e.isFragment)(e) ? t = t.concat(K$e(e.props.children)) : t.push(e));
+ EU(e) || ((0, U$e.isFragment)(e) ? t = t.concat(K$e(e.props.children)) : t.push(e));
}), Q4 = t, G$e = e, t;
};
function q$e(e, t) {
var n = [], r = [];
return r = Array.isArray(t) ? t.map((e) => W$e(e)) : [W$e(t)], K$e(e).forEach((e) => {
- var t = fU(e, "type.displayName") || fU(e, "type.name");
+ var t = pU(e, "type.displayName") || pU(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
@@ -86605,14 +86609,14 @@ function r1e(e) {
}
function e3(e) {
var t = e.option, n = e.DefaultShape, r = e.shapeProps, i = e.activeClassName, a = i === void 0 ? "recharts-active-shape" : i, o = e.inActiveClassName, s = o === void 0 ? "recharts-shape" : o, c = n1e(r), l = /*#__PURE__*/ (0, b.isValidElement)(t) ? t1e(t, r) : t === n ? /*#__PURE__*/ b.createElement(n, r) : typeof t == "function" ? t(r, c) : typeof t == "object" ? /*#__PURE__*/ b.createElement(n, $$e(t, r)) : /*#__PURE__*/ b.createElement(n, r);
- return r1e(r) ? /*#__PURE__*/ b.createElement(aU, { className: a }, l) : /*#__PURE__*/ b.createElement(aU, { className: s }, l);
+ return r1e(r) ? /*#__PURE__*/ b.createElement(oU, { className: a }, l) : /*#__PURE__*/ b.createElement(oU, { className: s }, l);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
var t3 = (e, t, n) => {
- var r = OG();
+ var r = kG();
return (i, a) => (o) => {
- e?.(i, a, o), r(p2({
+ e?.(i, a, o), r(m2({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -86620,14 +86624,14 @@ var t3 = (e, t, n) => {
}));
};
}, n3 = (e) => {
- var t = OG();
+ var t = kG();
return (n, r) => (i) => {
- e?.(n, r, i), t(SJe());
+ e?.(n, r, i), t(xJe());
};
}, r3 = (e, t, n) => {
- var r = OG();
+ var r = kG();
return (i, a) => (o) => {
- e?.(i, a, o), r(CJe({
+ e?.(i, a, o), r(SJe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -86638,9 +86642,9 @@ var t3 = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function i3(e) {
- var t = e.tooltipEntrySettings, n = OG(), r = SJ(), i = (0, b.useRef)(null);
+ var t = e.tooltipEntrySettings, n = kG(), r = CJ(), i = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
- r || (i.current === null ? n(vJe(t)) : i.current !== t && n(yJe({
+ r || (i.current === null ? n(_Je(t)) : i.current !== t && n(vJe({
prev: i.current,
next: t
})), i.current = t);
@@ -86649,15 +86653,15 @@ function i3(e) {
n,
r
]), (0, b.useLayoutEffect)(() => () => {
- i.current &&= (n(bJe(i.current)), null);
+ i.current &&= (n(yJe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function a3(e) {
- var t = e.legendPayload, n = OG(), r = SJ(), i = (0, b.useRef)(null);
+ var t = e.legendPayload, n = kG(), r = CJ(), i = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
- r || (i.current === null ? n(YJ(t)) : i.current !== t && n(XJ({
+ r || (i.current === null ? n(XJ(t)) : i.current !== t && n(ZJ({
prev: i.current,
next: t
})), i.current = t);
@@ -86666,13 +86670,13 @@ function a3(e) {
r,
t
]), (0, b.useLayoutEffect)(() => () => {
- i.current &&= (n(ZJ(i.current)), null);
+ i.current &&= (n(QJ(i.current)), null);
}, [n]), null;
}
function i1e(e) {
- var t = e.legendPayload, n = OG(), r = J(BJ), i = (0, b.useRef)(null);
+ var t = e.legendPayload, n = kG(), r = J(VJ), i = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(YJ(t)) : i.current !== t && n(XJ({
+ (r === "centric" || r === "radial") && (i.current === null ? n(XJ(t)) : i.current !== t && n(ZJ({
prev: i.current,
next: t
})), i.current = t);
@@ -86681,7 +86685,7 @@ function i1e(e) {
r,
t
]), (0, b.useLayoutEffect)(() => () => {
- i.current &&= (n(ZJ(i.current)), null);
+ i.current &&= (n(QJ(i.current)), null);
}, [n]), null;
}
//#endregion
@@ -86856,8 +86860,8 @@ function u3(e, t) {
};
}
function d3(e) {
- var t = e.animationInput, n = e.animationIdPrefix, r = e.items, i = e.previousItemsRef, a = e.isAnimationActive, o = e.animationBegin, s = e.animationDuration, c = e.animationEasing, l = e.onAnimationStart, u = e.onAnimationEnd, d = e.animationInterpolateFn, f = e.animationMatchBy, p = e.shouldUpdatePreviousRef, m = e.children, h = e.layout, g = GY(t, n), _ = l3(g, i), v = _.startValue ?? null, y = c3(v, r, f ?? o3);
- return /*#__PURE__*/ b.createElement(WY, {
+ var t = e.animationInput, n = e.animationIdPrefix, r = e.items, i = e.previousItemsRef, a = e.isAnimationActive, o = e.animationBegin, s = e.animationDuration, c = e.animationEasing, l = e.onAnimationStart, u = e.onAnimationEnd, d = e.animationInterpolateFn, f = e.animationMatchBy, p = e.shouldUpdatePreviousRef, m = e.children, h = e.layout, g = KY(t, n), _ = l3(g, i), v = _.startValue ?? null, y = c3(v, r, f ?? o3);
+ return /*#__PURE__*/ b.createElement(GY, {
animationId: g,
begin: o,
duration: s,
@@ -86913,7 +86917,7 @@ function E1e(e, t) {
function D1e(e) {
if (Array.isArray(e)) return e;
}
-var O1e = b.useId ?? (() => S1e(b.useState(() => bU("uid-")), 1)[0]);
+var O1e = b.useId ?? (() => S1e(b.useState(() => xU("uid-")), 1)[0]);
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
function k1e(e, t) {
@@ -86925,7 +86929,7 @@ function k1e(e, t) {
var A1e = /*#__PURE__*/ (0, b.createContext)(void 0), f3 = (e) => {
var t = e.id, n = e.type, r = e.children, i = k1e(`recharts-${n}`, t);
return /*#__PURE__*/ b.createElement(A1e.Provider, { value: i }, r(i));
-}, j1e = vq({
+}, j1e = yq({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -86934,47 +86938,47 @@ var A1e = /*#__PURE__*/ (0, b.createContext)(void 0), f3 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(sq(t.payload));
+ e.cartesianItems.push(cq(t.payload));
},
- prepare: mq()
+ prepare: hq()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var n = t.payload, r = n.prev, i = n.next, a = iq(e).cartesianItems.indexOf(sq(r));
- a > -1 && (e.cartesianItems[a] = sq(i));
+ var n = t.payload, r = n.prev, i = n.next, a = aq(e).cartesianItems.indexOf(cq(r));
+ a > -1 && (e.cartesianItems[a] = cq(i));
},
- prepare: mq()
+ prepare: hq()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = iq(e).cartesianItems.indexOf(sq(t.payload));
+ var n = aq(e).cartesianItems.indexOf(cq(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: mq()
+ prepare: hq()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(sq(t.payload));
+ e.polarItems.push(cq(t.payload));
},
- prepare: mq()
+ prepare: hq()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = iq(e).polarItems.indexOf(sq(t.payload));
+ var n = aq(e).polarItems.indexOf(cq(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: mq()
+ prepare: hq()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var n = t.payload, r = n.prev, i = n.next, a = iq(e).polarItems.indexOf(sq(r));
- a > -1 && (e.polarItems[a] = sq(i));
+ var n = t.payload, r = n.prev, i = n.next, a = aq(e).polarItems.indexOf(cq(r));
+ a > -1 && (e.polarItems[a] = cq(i));
},
- prepare: mq()
+ prepare: hq()
}
}
}), p3 = j1e.actions, M1e = p3.addCartesianGraphicalItem, N1e = p3.replaceCartesianGraphicalItem, P1e = p3.removeCartesianGraphicalItem, F1e = p3.addPolarGraphicalItem, I1e = p3.removePolarGraphicalItem, L1e = p3.replacePolarGraphicalItem, R1e = j1e.reducer, m3 = /*#__PURE__*/ (0, b.memo)((e) => {
- var t = OG(), n = (0, b.useRef)(null);
+ var t = kG(), n = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
n.current === null ? t(M1e(e)) : n.current !== e && t(N1e({
prev: n.current,
@@ -86984,7 +86988,7 @@ var A1e = /*#__PURE__*/ (0, b.createContext)(void 0), f3 = (e) => {
n.current &&= (t(P1e(n.current)), null);
}, [t]), null;
}), z1e = /*#__PURE__*/ (0, b.memo)((e) => {
- var t = OG(), n = (0, b.useRef)(null);
+ var t = kG(), n = (0, b.useRef)(null);
return (0, b.useLayoutEffect)(() => {
n.current === null ? t(F1e(e)) : n.current !== e && t(L1e({
prev: n.current,
@@ -87002,7 +87006,7 @@ function B1e(e) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
function V1e(e) {
- if (VW(e) && e.length !== 0) return B1e(U4(e));
+ if (HW(e) && e.length !== 0) return B1e(U4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
@@ -87090,9 +87094,9 @@ function X1e(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function _3(e) {
- var t = e.points, n = e.dot, r = e.className, i = e.dotClassName, a = e.dataKey, o = e.baseProps, s = e.needClip, c = e.clipPathId, l = e.zIndex, u = l === void 0 ? WX.scatter : l;
+ var t = e.points, n = e.dot, r = e.className, i = e.dotClassName, a = e.dataKey, o = e.baseProps, s = e.needClip, c = e.clipPathId, l = e.zIndex, u = l === void 0 ? GX.scatter : l;
if (!X1e(t, n)) return null;
- var d = $4(n), f = NLe(n), p = t.map((e, r) => {
+ var d = $4(n), f = MLe(n), p = t.map((e, r) => {
var s = h3(h3(h3({ r: 3 }, o), f), {}, {
index: r,
cx: e.x ?? void 0,
@@ -87109,7 +87113,7 @@ function _3(e) {
className: i
});
}), m = {};
- return s && c != null && (m.clipPath = `url(#clipPath-${d ? "" : "dots-"}${c})`), /*#__PURE__*/ b.createElement(a4, { zIndex: u }, /*#__PURE__*/ b.createElement(aU, g3({ className: r }, m), p));
+ return s && c != null && (m.clipPath = `url(#clipPath-${d ? "" : "dots-"}${c})`), /*#__PURE__*/ b.createElement(a4, { zIndex: u }, /*#__PURE__*/ b.createElement(oU, g3({ className: r }, m), p));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@ -87156,7 +87160,7 @@ function e0e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var t0e = vq({
+var t0e = yq({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -87166,60 +87170,60 @@ var t0e = vq({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = sq(t.payload);
+ e.xAxis[t.payload.id] = cq(t.payload);
},
- prepare: mq()
+ prepare: hq()
},
replaceXAxis: {
reducer(e, t) {
var n = t.payload, r = n.prev, i = n.next;
- e.xAxis[r.id] !== void 0 && (r.id !== i.id && delete e.xAxis[r.id], e.xAxis[i.id] = sq(i));
+ e.xAxis[r.id] !== void 0 && (r.id !== i.id && delete e.xAxis[r.id], e.xAxis[i.id] = cq(i));
},
- prepare: mq()
+ prepare: hq()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: mq()
+ prepare: hq()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = sq(t.payload);
+ e.yAxis[t.payload.id] = cq(t.payload);
},
- prepare: mq()
+ prepare: hq()
},
replaceYAxis: {
reducer(e, t) {
var n = t.payload, r = n.prev, i = n.next;
- e.yAxis[r.id] !== void 0 && (r.id !== i.id && delete e.yAxis[r.id], e.yAxis[i.id] = sq(i));
+ e.yAxis[r.id] !== void 0 && (r.id !== i.id && delete e.yAxis[r.id], e.yAxis[i.id] = cq(i));
},
- prepare: mq()
+ prepare: hq()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: mq()
+ prepare: hq()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = sq(t.payload);
+ e.zAxis[t.payload.id] = cq(t.payload);
},
- prepare: mq()
+ prepare: hq()
},
replaceZAxis: {
reducer(e, t) {
var n = t.payload, r = n.prev, i = n.next;
- e.zAxis[r.id] !== void 0 && (r.id !== i.id && delete e.zAxis[r.id], e.zAxis[i.id] = sq(i));
+ e.zAxis[r.id] !== void 0 && (r.id !== i.id && delete e.zAxis[r.id], e.zAxis[i.id] = cq(i));
},
- prepare: mq()
+ prepare: hq()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: mq()
+ prepare: hq()
},
updateYAxisWidth(e, t) {
var n = t.payload, r = n.id, i = n.width, a = e.yAxis[r];
@@ -87249,14 +87253,14 @@ var t0e = vq({
}), y3 = t0e.actions, n0e = y3.addXAxis, r0e = y3.replaceXAxis, i0e = y3.removeXAxis, a0e = y3.addYAxis, o0e = y3.replaceYAxis, s0e = y3.removeYAxis;
y3.addZAxis, y3.replaceZAxis, y3.removeZAxis;
var c0e = y3.updateYAxisWidth, l0e = y3.updateXAxisHeight, u0e = t0e.reducer, d0e = Y([
- Y([yJ], (e) => ({
+ Y([bJ], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- fJ,
- pJ
+ pJ,
+ mJ
], (e, t, n) => {
if (e && t != null && n != null) return {
x: e.left,
@@ -87264,7 +87268,7 @@ var c0e = y3.updateYAxisWidth, l0e = y3.updateXAxisHeight, u0e = t0e.reducer, d0
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), b3 = () => J(d0e), f0e = () => J($Je);
+}), b3 = () => J(d0e), f0e = () => J(QJe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function p0e(e, t) {
@@ -87324,17 +87328,17 @@ var _0e = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), eU(i)), MW(i)), c = /*#__PURE__*/ (0, b.isValidElement)(i) ? /*#__PURE__*/ (0, b.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ b.createElement(N4, s);
- return /*#__PURE__*/ b.createElement(aU, {
+ }), tU(i)), NW(i)), c = /*#__PURE__*/ (0, b.isValidElement)(i) ? /*#__PURE__*/ (0, b.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ b.createElement(N4, s);
+ return /*#__PURE__*/ b.createElement(oU, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
function S3(e) {
- var t = e.points, n = e.mainColor, r = e.activeDot, i = e.itemDataKey, a = e.clipPath, o = e.zIndex, s = o === void 0 ? WX.activeDot : o, c = J(K2), l = f0e();
+ var t = e.points, n = e.mainColor, r = e.activeDot, i = e.itemDataKey, a = e.clipPath, o = e.zIndex, s = o === void 0 ? GX.activeDot : o, c = J(q2), l = f0e();
if (t == null || l == null) return null;
var u = t.find((e) => l.includes(e.payload));
- return TU(u) ? null : /*#__PURE__*/ b.createElement(a4, { zIndex: s }, /*#__PURE__*/ b.createElement(_0e, {
+ return EU(u) ? null : /*#__PURE__*/ b.createElement(a4, { zIndex: s }, /*#__PURE__*/ b.createElement(_0e, {
point: u,
childIndex: Number(c),
mainColor: n,
@@ -87390,14 +87394,14 @@ function x0e(e, t) {
}
var S0e = (e, t) => z4(e, "radiusAxis", t), C0e = Y([S0e], (e) => {
if (e != null) return { scale: e };
-}), w0e = Y([eZ, S0e], (e, t) => {
+}), w0e = Y([tZ, S0e], (e, t) => {
if (e != null && t != null) return C3(C3({}, e), {}, { scale: t });
-}), T0e = (e, t, n, r) => B4(e, "radiusAxis", t, r), E0e = (e, t, n) => $X(e, n), D0e = (e, t, n) => z4(e, "angleAxis", n), O0e = Y([E0e, D0e], (e, t) => {
+}), T0e = (e, t, n, r) => B4(e, "radiusAxis", t, r), E0e = (e, t, n) => eZ(e, n), D0e = (e, t, n) => z4(e, "angleAxis", n), O0e = Y([E0e, D0e], (e, t) => {
if (e != null && t != null) return C3(C3({}, e), {}, { scale: t });
}), k0e = (e, t, n, r) => B4(e, "angleAxis", n, r), A0e = Y([
E0e,
D0e,
- sZ
+ cZ
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -87407,15 +87411,15 @@ var S0e = (e, t) => z4(e, "radiusAxis", t), C0e = Y([S0e], (e) => {
cy: n.cy
};
}), j0e = (e, t, n, r, i) => i, M0e = Y([
- BJ,
+ VJ,
w0e,
T0e,
O0e,
k0e
-], (e, t, n, r, i) => $q(e, "radiusAxis") ? lJ(t, n, !1) : lJ(r, i, !1)), N0e = Y([
+], (e, t, n, r, i) => eJ(e, "radiusAxis") ? uJ(t, n, !1) : uJ(r, i, !1)), N0e = Y([
C0e,
A0e,
- hX,
+ gX,
Y([P4, j0e], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
@@ -87510,20 +87514,20 @@ var V0e = (e) => {
dataKey: t,
type: a,
color: E3(r, i),
- value: dJ(n, t),
+ value: fJ(n, t),
payload: e
}];
}, H0e = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.stroke, r = e.strokeWidth, i = e.fill, a = e.name, o = e.hide, s = e.tooltipType, c = e.id, l = {
dataDefinedOnItem: void 0,
- getPosition: OU,
+ getPosition: kU,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: dJ(a, t),
+ name: fJ(a, t),
hide: o,
type: s,
color: E3(n, i),
@@ -87536,7 +87540,7 @@ var V0e = (e) => {
function U0e(e) {
var t = e.points, n = e.props, r = n.dot, i = n.dataKey;
n.id;
- var a = $H(z0e(n, P0e));
+ var a = eU(z0e(n, P0e));
return /*#__PURE__*/ b.createElement(_3, {
points: t,
dot: r,
@@ -87549,8 +87553,8 @@ function U0e(e) {
function W0e(e) {
var t = e.radiusAxis, n = e.angleAxis, r = e.displayedData, i = e.dataKey, a = e.bandSize, o = n.cx, s = n.cy, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = Qq(e, n.dataKey, r), d = Qq(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? V1e(d) : d, m = TU(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(T3(T3({}, aX(o, s, m, f)), {}, {
+ var a = $q(e, n.dataKey, r), d = $q(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? V1e(d) : d, m = EU(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(T3(T3({}, oX(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -87563,8 +87567,8 @@ function W0e(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = TU(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(T3(T3({}, e), {}, { radius: r }, aX(o, s, r, e.angle)));
+ var n = e.value[0], r = EU(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(T3(T3({}, e), {}, { radius: r }, oX(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -87595,7 +87599,7 @@ function G0e(e) {
function K0e(e) {
var t = e.points, n = e.baseLinePoints, r = e.props;
if (t == null) return null;
- var i = r.shape, a = r.isRange, o = r.connectNulls, s = /*#__PURE__*/ b.isValidElement(i) ? /*#__PURE__*/ b.cloneElement(i, T3(T3({}, r), {}, { points: t })) : typeof i == "function" ? i(T3(T3({}, r), {}, { points: t })) : /*#__PURE__*/ b.createElement(EQe, w3({}, tU(r), {
+ var i = r.shape, a = r.isRange, o = r.connectNulls, s = /*#__PURE__*/ b.isValidElement(i) ? /*#__PURE__*/ b.cloneElement(i, T3(T3({}, r), {}, { points: t })) : typeof i == "function" ? i(T3(T3({}, r), {}, { points: t })) : /*#__PURE__*/ b.createElement(EQe, w3({}, nU(r), {
onMouseEnter: (e) => {
var t = r.onMouseEnter;
t && t(r, e);
@@ -87608,20 +87612,20 @@ function K0e(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ b.createElement(aU, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ b.createElement(U0e, {
+ return /*#__PURE__*/ b.createElement(oU, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ b.createElement(U0e, {
props: r,
points: t
}));
}
var q0e = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [T3(T3({}, e.next), {}, {
- x: CU(e.prev.x, e.next.x, t),
- y: CU(e.prev.y, e.next.y, t)
+ x: wU(e.prev.x, e.next.x, t),
+ y: wU(e.prev.y, e.next.y, t)
})] : [T3(T3({}, e.next), {}, {
- x: CU(e.next.cx, e.next.x, t),
- y: CU(e.next.cy, e.next.y, t)
+ x: wU(e.next.cx, e.next.x, t),
+ y: wU(e.next.cy, e.next.y, t)
})]);
function J0e(e) {
- var t = e.props, n = e.previousPointsRef, r = e.previousBaseLinePointsRef, i = t.points, a = t.baseLinePoints, o = t.isAnimationActive, s = t.animationBegin, c = t.animationDuration, l = t.animationEasing, u = t.animationMatchBy, d = t.animationInterpolateFn, f = t.onAnimationStart, p = t.onAnimationEnd, m = l3(t, r), h = m.startValue, g = c3(h ?? null, a, u), _ = u3(f, p), v = _.isAnimating, y = _.handleAnimationStart, x = _.handleAnimationEnd, S = WJ();
+ var t = e.props, n = e.previousPointsRef, r = e.previousBaseLinePointsRef, i = t.points, a = t.baseLinePoints, o = t.isAnimationActive, s = t.animationBegin, c = t.animationDuration, l = t.animationEasing, u = t.animationMatchBy, d = t.animationInterpolateFn, f = t.onAnimationStart, p = t.onAnimationEnd, m = l3(t, r), h = m.startValue, g = c3(h ?? null, a, u), _ = u3(f, p), v = _.isAnimating, y = _.handleAnimationStart, x = _.handleAnimationEnd, S = GJ();
return S == null ? null : /*#__PURE__*/ b.createElement(G0e, {
showLabels: !v,
points: i
@@ -87670,13 +87674,13 @@ var X0e = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: WX.area
+ zIndex: GX.area
};
function Z0e(e) {
var t = e.hide, n = e.className, r = e.points;
if (t) return null;
var i = hy("recharts-radar", n);
- return /*#__PURE__*/ b.createElement(a4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(aU, { className: i }, /*#__PURE__*/ b.createElement(Y0e, e)), /*#__PURE__*/ b.createElement(S3, {
+ return /*#__PURE__*/ b.createElement(a4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(oU, { className: i }, /*#__PURE__*/ b.createElement(Y0e, e)), /*#__PURE__*/ b.createElement(S3, {
points: r,
mainColor: E3(e.stroke, e.fill),
itemDataKey: e.dataKey,
@@ -87684,7 +87688,7 @@ function Z0e(e) {
}));
}
function Q0e(e) {
- var t = SJ(), n = J((n) => N0e(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ var t = CJ(), n = J((n) => N0e(n, e.radiusAxisId, e.angleAxisId, t, e.id));
return n?.points == null ? null : /*#__PURE__*/ b.createElement(Z0e, w3({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
@@ -87692,7 +87696,7 @@ function Q0e(e) {
}));
}
function D3(e) {
- var t = FW(e, X0e);
+ var t = IW(e, X0e);
return /*#__PURE__*/ b.createElement(f3, {
id: t.id,
type: "radar"
@@ -87737,7 +87741,7 @@ function t2e(e, t) {
}
return n;
}
-var n2e = dX;
+var n2e = fX;
function r2e(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
@@ -87795,9 +87799,9 @@ function l2e(e) {
}
var u2e = (e, t, n) => {
var r = n ?? e;
- if (!TU(r)) return xU(r, t, 0);
+ if (!EU(r)) return SU(r, t, 0);
}, d2e = (e, t, n) => {
- var r = {}, i = e.filter(fZ), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ var r = {}, i = e.filter(pZ), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, r), s = Object.entries(o).map((e) => {
@@ -87862,8 +87866,8 @@ function h2e(e, t) {
function g2e(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = xU(e, n, 0, !0), s, c = [];
- if (Jq(r[0]?.barSize)) {
+ var o = SU(e, n, 0, !0), s, c = [];
+ if (Yq(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 = {
@@ -87882,11 +87886,11 @@ function g2e(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = xU(t, n, 0, !0);
+ var p = SU(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 = Math.round(m));
- var h = Jq(i) ? Math.min(m, i) : m;
+ var h = Yq(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -87900,10 +87904,10 @@ function g2e(e, t, n, r, i) {
}
}
var _2e = (e, t, n, r, i, a, o) => {
- var s = TU(o) ? t : o, c = g2e(n, r, i === a ? a : i, e, s);
+ var s = EU(o) ? t : o, c = g2e(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => k3(k3({}, e), {}, { position: k3(k3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, v2e = (e, t) => {
- var n = uZ(t);
+ var n = dZ(t);
if (e && n != null && t != null) {
var r = t.stackId;
if (r != null) {
@@ -87965,76 +87969,76 @@ function C2e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var j3 = Y([(e, t) => eZ(e, t), (e, t) => z4(e, "radiusAxis", t)], (e, t) => {
+var j3 = Y([(e, t) => tZ(e, t), (e, t) => z4(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return A3(A3({}, e), {}, { scale: t });
-}), M3 = (e, t) => PQe(e, "radiusAxis", t, !1), N3 = Y([(e, t, n) => $X(e, n), (e, t, n) => z4(e, "angleAxis", n)], (e, t) => {
+}), M3 = (e, t) => PQe(e, "radiusAxis", t, !1), N3 = Y([(e, t, n) => eZ(e, n), (e, t, n) => z4(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return A3(A3({}, e), {}, { scale: t });
}), P3 = (e, t, n) => B4(e, "angleAxis", n, !1), F3 = Y([P4, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
}), w2e = Y([
- BJ,
+ VJ,
j3,
M3,
N3,
P3
-], (e, t, n, r, i) => $q(e, "radiusAxis") ? lJ(t, n, !1) : lJ(r, i, !1)), T2e = Y([
+], (e, t, n, r, i) => eJ(e, "radiusAxis") ? uJ(t, n, !1) : uJ(r, i, !1)), T2e = Y([
N3,
j3,
- BJ
+ VJ
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return oJ({ numericAxis: r });
+ if (r != null && r.scale != null) return sJ({ numericAxis: r });
}), E2e = (e, t, n, r, i) => i, D2e = (e, t, n, r, i) => n, O2e = (e, t, n, r, i) => t, k2e = (e, t, n, r, i) => r.maxBarSize, A2e = (e) => e.type === "radialBar", j2e = Y([Y([
Y([
Y([
- BJ,
+ VJ,
P4,
D2e,
O2e
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(A2e)),
- LX,
+ RX,
() => void 0
], d2e),
- PX,
FX,
IX,
+ LX,
Y([
- BJ,
- PX,
+ VJ,
+ FX,
N3,
P3,
j3,
M3,
k2e
], (e, t, n, r, i, a, o) => {
- var s = TU(o) ? t : o;
- return e === "centric" ? lJ(n, r, !0) ?? s ?? 0 : lJ(i, a, !0) ?? s ?? 0;
+ var s = EU(o) ? t : o;
+ return e === "centric" ? uJ(n, r, !0) ?? s ?? 0 : uJ(i, a, !0) ?? s ?? 0;
}),
w2e,
k2e
-], _2e), F3], y2e), M2e = Y([F4], (e) => e.filter(A2e).filter(fZ)), N2e = Y([
+], _2e), F3], y2e), M2e = Y([F4], (e) => e.filter(A2e).filter(pZ)), N2e = Y([
Y([
M2e,
- hX,
- u0
- ], dZ),
+ gX,
+ d0
+ ], fZ),
M2e,
- RX,
- zX
-], f0), P2e = Y([
+ zX,
+ BX
+], p0), P2e = Y([
N3,
P3,
j3,
M3,
- mX,
+ hX,
F3,
w2e,
- BJ,
+ VJ,
T2e,
- sZ,
+ cZ,
E2e,
j2e,
- Y([(e, t, n) => BJ(e) === "centric" ? N2e(e, "radiusAxis", t) : N2e(e, "angleAxis", n), F3], v2e)
+ Y([(e, t, n) => VJ(e) === "centric" ? N2e(e, "radiusAxis", t) : N2e(e, "angleAxis", n), F3], v2e)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var p = i.chartData, m = i.dataStartIndex, h = i.dataEndIndex;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
@@ -88060,7 +88064,7 @@ var j3 = Y([(e, t) => eZ(e, t), (e, t) => z4(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), F2e = Y([hX, (e, t) => t], (e, t) => {
+}), F2e = Y([gX, (e, t) => t], (e, t) => {
var n = e.chartData, r = e.dataStartIndex, i = e.dataEndIndex;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -88074,7 +88078,7 @@ var j3 = Y([(e, t) => eZ(e, t), (e, t) => z4(e, "radiusAxis", t)], (e, t) => {
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
function I2e(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && Jq(e.zIndex) ? e.zIndex : t;
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && Yq(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
@@ -88179,12 +88183,12 @@ function K2e(e) {
return /*#__PURE__*/ b.createElement(hQe, { value: t ? i : void 0 }, r);
}
function q2e(e) {
- var t = e.sectors, n = e.allOtherRadialBarProps, r = e.showLabels, i = e.animationElapsedTime, a = e.isAnimating, o = e.isEntrance, s = n.shape, c = n.activeShape, l = n.cornerRadius, u = n.id, d = R3(n, L2e), f = $H(d), p = J(K2), m = n.onMouseEnter, h = n.onClick, g = n.onMouseLeave, _ = R3(n, R2e), v = t3(m, n.dataKey, u), y = n3(g), x = r3(h, n.dataKey, u);
+ var t = e.sectors, n = e.allOtherRadialBarProps, r = e.showLabels, i = e.animationElapsedTime, a = e.isAnimating, o = e.isEntrance, s = n.shape, c = n.activeShape, l = n.cornerRadius, u = n.id, d = R3(n, L2e), f = eU(d), p = J(q2), m = n.onMouseEnter, h = n.onClick, g = n.onMouseLeave, _ = R3(n, R2e), v = t3(m, n.dataKey, u), y = n3(g), x = r3(h, n.dataKey, u);
return t == null ? null : /*#__PURE__*/ b.createElement(K2e, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(c && p === String(t)), r = v(e, t), u = y(e, t), m = x(e, t), h = L3(L3(L3(L3({}, f), {}, { cornerRadius: r2e(l) }, e), NW(_, e, t)), {}, {
+ var n = !!(c && p === String(t)), r = v(e, t), u = y(e, t), m = x(e, t), h = L3(L3(L3(L3({}, f), {}, { cornerRadius: r2e(l) }, e), PW(_, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: u,
onClick: m,
@@ -88199,17 +88203,17 @@ function q2e(e) {
index: t
});
return n ? /*#__PURE__*/ b.createElement(a4, {
- zIndex: WX.activeBar,
+ zIndex: GX.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
}, /*#__PURE__*/ b.createElement(O3, h)) : /*#__PURE__*/ b.createElement(O3, I3({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, h));
}), /*#__PURE__*/ b.createElement(k4, { label: n.label }), n.children);
}
var J2e = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [L3(L3({}, e.next), {}, {
- startAngle: CU(e.prev.startAngle, e.next.startAngle, t),
- endAngle: CU(e.prev.endAngle, e.next.endAngle, t)
-})] : [L3(L3({}, e.next), {}, { endAngle: CU(e.next.startAngle, e.next.endAngle, t) })]);
+ startAngle: wU(e.prev.startAngle, e.next.startAngle, t),
+ endAngle: wU(e.prev.endAngle, e.next.endAngle, t)
+})] : [L3(L3({}, e.next), {}, { endAngle: wU(e.next.startAngle, e.next.endAngle, t) })]);
function Y2e(e) {
- var t = e.props, n = e.previousSectorsRef, r = t.sectors, i = t.isAnimationActive, a = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.onAnimationStart, l = t.onAnimationEnd, u = u3(c, l), d = u.isAnimating, f = u.handleAnimationStart, p = u.handleAnimationEnd, m = WJ();
+ var t = e.props, n = e.previousSectorsRef, r = t.sectors, i = t.isAnimationActive, a = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.onAnimationStart, l = t.onAnimationEnd, u = u3(c, l), d = u.isAnimating, f = u.handleAnimationStart, p = u.handleAnimationEnd, m = GJ();
return m == null ? null : /*#__PURE__*/ b.createElement(d3, {
animationInput: t,
animationIdPrefix: "recharts-radialbar-",
@@ -88247,7 +88251,7 @@ function Z2e(e) {
var Q2e = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.sectors, r = e.stroke, i = e.strokeWidth, a = e.name, o = e.hide, s = e.fill, c = e.tooltipType, l = e.formatter, u = {
dataDefinedOnItem: n,
- getPosition: OU,
+ getPosition: kU,
settings: {
graphicalItemId: e.id,
stroke: r,
@@ -88255,7 +88259,7 @@ var Q2e = /*#__PURE__*/ b.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: dJ(a, t),
+ name: fJ(a, t),
hide: o,
type: c,
color: s,
@@ -88267,12 +88271,12 @@ var Q2e = /*#__PURE__*/ b.memo((e) => {
}), $2e = class extends b.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var t = this.props.cornerRadius, n = eU(this.props.background);
- return /*#__PURE__*/ b.createElement(a4, { zIndex: I2e(this.props.background, WX.barBackground) }, e.map((e, r) => {
+ var t = this.props.cornerRadius, n = tU(this.props.background);
+ return /*#__PURE__*/ b.createElement(a4, { zIndex: I2e(this.props.background, GX.barBackground) }, e.map((e, r) => {
e.value;
var i = e.background, a = R3(e, z2e);
if (!i) return null;
- var o = L3(L3(L3(L3(L3({ cornerRadius: r2e(t) }, a), {}, { fill: "#eee" }, i), n), NW(this.props, e, r)), {}, {
+ var o = L3(L3(L3(L3(L3({ cornerRadius: r2e(t) }, a), {}, { fill: "#eee" }, i), n), PW(this.props, e, r)), {}, {
index: r,
className: hy("recharts-radial-bar-background-sector", String(n?.className)),
option: i,
@@ -88285,7 +88289,7 @@ var Q2e = /*#__PURE__*/ b.memo((e) => {
var e = this.props, t = e.hide, n = e.sectors, r = e.className, i = e.background;
if (t) return null;
var a = hy("recharts-area", r);
- return /*#__PURE__*/ b.createElement(a4, { zIndex: this.props.zIndex }, /*#__PURE__*/ b.createElement(aU, { className: a }, i && /*#__PURE__*/ b.createElement(aU, { className: "recharts-radial-bar-background" }, this.renderBackground(n)), /*#__PURE__*/ b.createElement(aU, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ b.createElement(X2e, this.props))));
+ return /*#__PURE__*/ b.createElement(a4, { zIndex: this.props.zIndex }, /*#__PURE__*/ b.createElement(oU, { className: a }, i && /*#__PURE__*/ b.createElement(oU, { className: "recharts-radial-bar-background" }, this.renderBackground(n)), /*#__PURE__*/ b.createElement(oU, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ b.createElement(X2e, this.props))));
}
};
function e4e(e) {
@@ -88295,7 +88299,7 @@ function e4e(e) {
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: rJ(e.stackId),
+ stackId: iJ(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -88342,14 +88346,14 @@ var z3 = {
minPointSize: 0,
radiusAxisId: 0,
shape: n2e,
- zIndex: WX.bar
+ zIndex: GX.bar
};
function t4e(e) {
var t = e.displayedData, n = e.stackedData, r = e.dataStartIndex, i = e.stackedDomain, a = e.dataKey, o = e.baseValue, s = e.layout, c = e.radiusAxis, l = e.radiusAxisTicks, u = e.bandSize, d = e.pos, f = e.angleAxis, p = e.minPointSize, m = e.cx, h = e.cy, g = e.angleAxisTicks, _ = e.cells, v = e.startAngle, y = e.endAngle;
return g == null || l == null ? G2e : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = nJ(n[r + t], i) : (b = Qq(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 = aJ({
+ if (n ? b = rJ(n[r + t], i) : (b = $q(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 = oJ({
axis: c,
ticks: l,
bandSize: u,
@@ -88360,7 +88364,7 @@ function t4e(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = hU(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = gU(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -88372,7 +88376,7 @@ function t4e(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = aJ({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = oJ({
axis: f,
ticks: g,
bandSize: u,
@@ -88383,7 +88387,7 @@ function t4e(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = hU(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = gU(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
@@ -88400,7 +88404,7 @@ function t4e(e) {
});
}
function B3(e) {
- var t = FW(e, z3);
+ var t = IW(e, z3);
return /*#__PURE__*/ b.createElement(f3, {
id: t.id,
type: "radialBar"
@@ -88412,7 +88416,7 @@ function B3(e) {
hide: t.hide ?? z3.hide,
angleAxisId: t.angleAxisId ?? z3.angleAxisId,
radiusAxisId: t.radiusAxisId ?? z3.radiusAxisId,
- stackId: rJ(t.stackId),
+ stackId: iJ(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
@@ -88422,7 +88426,7 @@ B3.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var n4e = (e) => {
- var t = e.chartData, n = OG(), r = SJ();
+ var t = e.chartData, n = kG(), r = CJ();
return (0, b.useEffect)(() => r ? () => {} : (n(rXe(t)), () => {
n(rXe(void 0));
}), [
@@ -88441,7 +88445,7 @@ var n4e = (e) => {
bottom: 0,
left: 0
}
-}, i4e = vq({
+}, i4e = yq({
name: "brush",
initialState: r4e,
reducers: { setBrushSettings(e, t) {
@@ -88473,7 +88477,7 @@ function c4e(e) {
var l4e = function(e) {
var t = e.width, n = e.height, r = c4e(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);
-}, u4e = vq({
+}, u4e = yq({
name: "referenceElements",
initialState: {
dots: [],
@@ -88485,21 +88489,21 @@ var l4e = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = iq(e).dots.findIndex((e) => e === t.payload);
+ var n = aq(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 = iq(e).areas.findIndex((e) => e === t.payload);
+ var n = aq(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(sq(t.payload));
+ e.lines.push(cq(t.payload));
},
removeLine: (e, t) => {
- var n = iq(e).lines.findIndex((e) => e === t.payload);
+ var n = aq(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
@@ -88551,7 +88555,7 @@ function y4e(e) {
if (Array.isArray(e)) return e;
}
var b4e = /*#__PURE__*/ (0, b.createContext)(void 0), x4e = (e) => {
- var t = e.children, n = m4e((0, b.useState)(`${bU("recharts")}-clip`), 1)[0], r = b3();
+ var t = e.children, n = m4e((0, b.useState)(`${xU("recharts")}-clip`), 1)[0], r = b3();
if (r == null) return null;
var i = r.x, a = r.y, o = r.width, s = r.height;
return /*#__PURE__*/ b.createElement(b4e.Provider, { value: n }, /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement("clipPath", { id: n }, /*#__PURE__*/ b.createElement("rect", {
@@ -88643,13 +88647,13 @@ var k4e = (e, t) => {
if (/*#__PURE__*/ b.isValidElement(e)) n = /*#__PURE__*/ b.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!Jq(t.x1) || !Jq(t.y1) || !Jq(t.x2) || !Jq(t.y2)) return null;
+ if (!Yq(t.x1) || !Yq(t.y1) || !Yq(t.x2) || !Yq(t.y2)) return null;
n = /*#__PURE__*/ b.createElement("line", H3({}, t, { className: "recharts-reference-line-line" }));
}
return n;
}, A4e = (e, t, n, r, i, a) => {
var o = a.x, s = a.width, c = i.map(e, { position: n });
- if (!Jq(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!Yq(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -88660,7 +88664,7 @@ var k4e = (e, t) => {
return r === "left" ? l.reverse() : l;
}, j4e = (e, t, n, r, i, a) => {
var o = a.y, s = a.height, c = i.map(e, { position: n });
- if (!Jq(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!Yq(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -88679,26 +88683,26 @@ var k4e = (e, t) => {
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
}, N4e = (e, t, n, r, i, a, o) => {
- var s = o.x, c = o.y, l = o.segment, u = o.ifOverflow, d = yU(s);
- return yU(c) ? A4e(c, u, r, a, t, n) : d ? j4e(s, u, r, i, e, n) : l != null && l.length === 2 ? M4e(l, u, r, new C4e({
+ var s = o.x, c = o.y, l = o.segment, u = o.ifOverflow, d = bU(s);
+ return bU(c) ? A4e(c, u, r, a, t, n) : d ? j4e(s, u, r, i, e, n) : l != null && l.length === 2 ? M4e(l, u, r, new C4e({
x: e,
y: t
})) : null;
};
function P4e(e) {
- var t = OG();
+ var t = kG();
return (0, b.useEffect)(() => (t(d4e(e)), () => {
t(f4e(e));
})), null;
}
function F4e(e) {
- var t = e.xAxisId, n = e.yAxisId, r = e.shape, i = e.className, a = e.ifOverflow, o = SJ(), s = S4e(), c = J((e) => z1(e, t)), l = J((e) => H1(e, n)), u = J((e) => U0(e, "xAxis", t, o)), d = J((e) => U0(e, "yAxis", n, o)), f = IJ();
+ var t = e.xAxisId, n = e.yAxisId, r = e.shape, i = e.className, a = e.ifOverflow, o = CJ(), s = S4e(), c = J((e) => B1(e, t)), l = J((e) => U1(e, n)), u = J((e) => W0(e, "xAxis", t, o)), d = J((e) => W0(e, "yAxis", n, o)), f = LJ();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
var p = N4e(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 g = m.x, _ = m.y, v = h.x, y = h.y, x = T4e(T4e({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, tU(e)), {}, {
+ var g = m.x, _ = m.y, v = h.x, y = h.y, x = T4e(T4e({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, nU(e)), {}, {
x1: g,
y1: _,
x2: v,
@@ -88709,7 +88713,7 @@ function F4e(e) {
x2: v,
y2: y
});
- return /*#__PURE__*/ b.createElement(a4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(aU, { className: hy("recharts-reference-line", i) }, k4e(r, x), /*#__PURE__*/ b.createElement(JZe, H3({}, S, {
+ return /*#__PURE__*/ b.createElement(a4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(oU, { className: hy("recharts-reference-line", i) }, k4e(r, x), /*#__PURE__*/ b.createElement(JZe, H3({}, S, {
lowerWidth: S.width,
upperWidth: S.width
}), /*#__PURE__*/ b.createElement(oQe, { label: e.label }), e.children)));
@@ -88724,10 +88728,10 @@ var I4e = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: WX.line
+ zIndex: GX.line
};
function L4e(e) {
- var t = FW(e, I4e);
+ var t = IW(e, I4e);
return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(P4e, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
@@ -88770,16 +88774,16 @@ function U3(e, t, n, r, i, a, o) {
}
function W3(e, t, n, r) {
if (Object.is(e, t)) return !0;
- let i = WW(e), a = WW(t);
- if (i === "[object Arguments]" && (i = nG), a === "[object Arguments]" && (a = nG), i !== a) return !1;
+ let i = GW(e), a = GW(t);
+ if (i === "[object Arguments]" && (i = rG), a === "[object Arguments]" && (a = rG), i !== a) return !1;
switch (i) {
- case KW: return e.toString() === t.toString();
- case qW: return _G(e.valueOf(), t.valueOf());
- case JW:
- case ZW:
- case XW: return Object.is(e.valueOf(), t.valueOf());
- case GW: return e.source === t.source && e.flags === t.flags;
- case nze: return e === t;
+ case qW: return e.toString() === t.toString();
+ case JW: return vG(e.valueOf(), t.valueOf());
+ case YW:
+ case QW:
+ case ZW: return Object.is(e.valueOf(), t.valueOf());
+ case KW: return e.source === t.source && e.flags === t.flags;
+ case tze: return e === t;
}
n ??= /* @__PURE__ */ new Map();
let o = n.get(e), s = n.get(t);
@@ -88787,11 +88791,11 @@ function W3(e, t, n, r) {
n.set(e, t), n.set(t, e);
try {
switch (i) {
- case QW:
+ case $W:
if (e.size !== t.size) return !1;
for (let [i, a] of e.entries()) if (!t.has(i) || !U3(a, t.get(i), i, e, t, n, r)) return !1;
return !0;
- case $W: {
+ case eG: {
if (e.size !== t.size) return !1;
let i = Array.from(e.values()), a = Array.from(t.values());
for (let o = 0; o < i.length; o++) {
@@ -88801,27 +88805,27 @@ function W3(e, t, n, r) {
}
return !0;
}
- case eG:
- case iG:
+ case tG:
case aG:
case oG:
case sG:
- case ize:
case cG:
+ case rze:
case lG:
case uG:
- case aze:
case dG:
+ case ize:
case fG:
- if (mG(e) !== mG(t) || e.length !== t.length) return !1;
+ case pG:
+ if (hG(e) !== hG(t) || e.length !== t.length) return !1;
for (let i = 0; i < e.length; i++) if (!U3(e[i], t[i], i, e, t, n, r)) return !1;
return !0;
- case tG: return e.byteLength === t.byteLength && W3(new Uint8Array(e), new Uint8Array(t), n, r);
- case rG: return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : W3(new Uint8Array(e), new Uint8Array(t), n, r);
- case rze: return e.name === t.name && e.message === t.message;
- case nG: {
+ case nG: return e.byteLength === t.byteLength && W3(new Uint8Array(e), new Uint8Array(t), n, r);
+ case iG: return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : W3(new Uint8Array(e), new Uint8Array(t), n, r);
+ case nze: return e.name === t.name && e.message === t.message;
+ case rG: {
if (!(W3(e.constructor, t.constructor, n, r) || z4e(e) && z4e(t))) return !1;
- let i = [...Object.keys(e), ...UW(e)], a = [...Object.keys(t), ...UW(t)];
+ let i = [...Object.keys(e), ...WW(e)], a = [...Object.keys(t), ...WW(t)];
if (i.length !== a.length) return !1;
for (let a = 0; a < i.length; a++) {
let o = i[a], s = e[o];
@@ -88993,7 +88997,7 @@ function $4e(e, t, n, r, i, a) {
function q3(e, t, n) {
var r = e.tick, i = e.ticks, a = e.viewBox, o = e.minTickGap, s = e.orientation, c = e.interval, l = e.tickFormatter, u = e.unit, d = e.angle;
if (!i || !i.length || !r) return [];
- if (vU(c) || pY.isSsr) return G4e(i, vU(c) ? c : 0) ?? [];
+ if (yU(c) || mY.isSsr) return G4e(i, yU(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? m4(u, {
fontSize: t,
letterSpacing: n
@@ -89009,7 +89013,7 @@ function q3(e, t, n) {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? hU(_.coordinate - g.coordinate) : 1, y = W4e(a, v, p);
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? gU(_.coordinate - g.coordinate) : 1, y = W4e(a, v, p);
return c === "equidistantPreserveStart" ? K4e(v, y, h, i, o) : c === "equidistantPreserveEnd" ? q4e(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? $4e(v, y, h, i, o, c === "preserveStartEnd") : Q4e(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
@@ -89040,7 +89044,7 @@ var e3e = (e) => {
return Math.round(f);
}
return 0;
-}, n3e = vq({
+}, n3e = yq({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -89049,7 +89053,7 @@ var e3e = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var n = t.payload, r = n.axisType, i = n.axisId, a = n.ticks;
- e[r][i] = sq(a);
+ e[r][i] = cq(a);
},
removeRenderedTicks: (e, t) => {
var n = t.payload, r = n.axisType, i = n.axisId;
@@ -89200,12 +89204,12 @@ var X3 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: WX.axis
+ zIndex: GX.axis
};
function b3e(e) {
var t = e.x, n = e.y, r = e.width, i = e.height, a = e.orientation, o = e.mirror, s = e.axisLine, c = e.otherSvgProps;
if (!s) return null;
- var l = Y3(Y3(Y3({}, c), $H(s)), {}, { fill: "none" });
+ var l = Y3(Y3(Y3({}, c), eU(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
l = Y3(Y3({}, l), {}, {
@@ -89223,10 +89227,10 @@ function b3e(e) {
y2: n + i
});
}
- return /*#__PURE__*/ b.createElement("line", J3({}, l, { className: hy("recharts-cartesian-axis-line", fU(s, "className")) }));
+ return /*#__PURE__*/ b.createElement("line", J3({}, l, { className: hy("recharts-cartesian-axis-line", pU(s, "className")) }));
}
function x3e(e, t, n, r, i, a, o, s, c) {
- var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = vU(e.tickCoord) ? e.tickCoord : e.coordinate;
+ var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = yU(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
l = u = e.coordinate, f = n + +!s * i, d = f - h * g, m = d - h * c, p = _;
@@ -89278,7 +89282,7 @@ function w3e(e) {
return i;
}
function T3e(e) {
- var t = e.ticks, n = e.axisType, r = e.axisId, i = OG(), a = (0, b.useRef)(null);
+ var t = e.ticks, n = e.axisType, r = e.axisId, i = kG(), a = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
if (r != null && n != null) {
var e = t.map((e) => ({
@@ -89302,7 +89306,7 @@ function T3e(e) {
t,
r,
n
- ]), (0, b.useEffect)(() => r == null || n == null ? OU : () => {
+ ]), (0, b.useEffect)(() => r == null || n == null ? kU : () => {
i(a3e({
axisId: r,
axisType: n
@@ -89314,14 +89318,14 @@ function T3e(e) {
]), null;
}
var E3e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.ticks, r = n === void 0 ? [] : n, i = e.tick, a = e.tickLine, o = e.stroke, s = e.tickFormatter, c = e.unit, l = e.padding, u = e.tickTextProps, d = e.orientation, f = e.mirror, p = e.x, m = e.y, h = e.width, g = e.height, _ = e.tickSize, v = e.tickMargin, y = e.fontSize, x = e.letterSpacing, S = e.getTicksConfig, C = e.events, w = e.axisType, T = e.axisId, E = q3(Y3(Y3({}, S), {}, { ticks: r }), y, x), D = $H(S), O = eU(i), k = OZe(D.textAnchor) ? D.textAnchor : S3e(d, f), A = C3e(d, f), j = {};
+ var n = e.ticks, r = n === void 0 ? [] : n, i = e.tick, a = e.tickLine, o = e.stroke, s = e.tickFormatter, c = e.unit, l = e.padding, u = e.tickTextProps, d = e.orientation, f = e.mirror, p = e.x, m = e.y, h = e.width, g = e.height, _ = e.tickSize, v = e.tickMargin, y = e.fontSize, x = e.letterSpacing, S = e.getTicksConfig, C = e.events, w = e.axisType, T = e.axisId, E = q3(Y3(Y3({}, S), {}, { ticks: r }), y, x), D = eU(S), O = tU(i), k = OZe(D.textAnchor) ? D.textAnchor : S3e(d, f), A = C3e(d, f), j = {};
typeof a == "object" && (j = a);
var M = Y3(Y3({}, D), {}, { fill: "none" }, j), N = E.map((e) => Y3({ entry: e }, x3e(e, p, m, h, g, d, _, f, v))), P = N.map((e) => {
var t = e.entry, n = e.line;
- return /*#__PURE__*/ b.createElement(aU, {
+ return /*#__PURE__*/ b.createElement(oU, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, a && /*#__PURE__*/ b.createElement("line", J3({}, M, n, { className: hy("recharts-cartesian-axis-tick-line", fU(a, "className")) })));
+ }, a && /*#__PURE__*/ b.createElement("line", J3({}, M, n, { className: hy("recharts-cartesian-axis-tick-line", pU(a, "className")) })));
}), ee = N.map((e, t) => {
var n = e.entry, r = e.tick, a = Y3(Y3({}, Y3(Y3(Y3(Y3({ verticalAnchor: A }, D), {}, {
textAnchor: k,
@@ -89334,10 +89338,10 @@ var E3e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
tickFormatter: s,
padding: l
}, u), {}, { angle: u?.angle ?? D.angle ?? 0 })), O);
- return /*#__PURE__*/ b.createElement(aU, J3({
+ return /*#__PURE__*/ b.createElement(oU, J3({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, NW(C, n, t)), i && /*#__PURE__*/ b.createElement(w3e, {
+ }, PW(C, n, t)), i && /*#__PURE__*/ b.createElement(w3e, {
option: i,
tickProps: a,
value: `${typeof s == "function" ? s(n.value, t) : n.value}${c || ""}`
@@ -89347,7 +89351,7 @@ var E3e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
ticks: E,
axisId: T,
axisType: w
- }), ee.length > 0 && /*#__PURE__*/ b.createElement(a4, { zIndex: WX.label }, /*#__PURE__*/ b.createElement("g", {
+ }), ee.length > 0 && /*#__PURE__*/ b.createElement(a4, { zIndex: GX.label }, /*#__PURE__*/ b.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${w}-tick-labels`,
ref: t
}, ee)), P.length > 0 && /*#__PURE__*/ b.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${w}-tick-lines` }, P));
@@ -89380,7 +89384,7 @@ var E3e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
}
}
}, [f, h]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ b.createElement(a4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(aU, { className: hy("recharts-cartesian-axis", a) }, /*#__PURE__*/ b.createElement(b3e, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ b.createElement(a4, { zIndex: e.zIndex }, /*#__PURE__*/ b.createElement(oU, { className: hy("recharts-cartesian-axis", a) }, /*#__PURE__*/ b.createElement(b3e, {
x: e.x,
y: e.y,
width: r,
@@ -89388,7 +89392,7 @@ var E3e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: $H(e)
+ otherSvgProps: eU(e)
}), /*#__PURE__*/ b.createElement(E3e, {
ref: v,
axisType: c,
@@ -89425,7 +89429,7 @@ var E3e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
labelRef: e.labelRef
}), e.children)));
}), Z3 = /*#__PURE__*/ b.forwardRef((e, t) => {
- var n = FW(e, X3);
+ var n = IW(e, X3);
return /*#__PURE__*/ b.createElement(D3e, J3({}, n, { ref: t }));
});
Z3.displayName = "CartesianAxis";
@@ -89534,7 +89538,7 @@ function B3e(e) {
if (/*#__PURE__*/ b.isValidElement(t)) r = /*#__PURE__*/ b.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var i = n.x1, a = n.y1, o = n.x2, s = n.y2, c = n.key, l = $H(e6(n, A3e)) ?? {};
+ var i = n.x1, a = n.y1, o = n.x2, s = n.y2, c = n.key, l = eU(e6(n, A3e)) ?? {};
l.offset;
var u = e6(l, j3e), d = Array.isArray(u.strokeDasharray) ? u.strokeDasharray.join(",") : u.strokeDasharray;
r = /*#__PURE__*/ b.createElement("line", $3({}, u, {
@@ -89639,8 +89643,8 @@ function W3e(e) {
}
var G3e = (e, t) => {
var n = e.xAxis, r = e.width, i = e.height, a = e.offset;
- return eJ(q3(Q3(Q3(Q3({}, X3), n), {}, {
- ticks: tJ(n, !0),
+ return tJ(q3(Q3(Q3(Q3({}, X3), n), {}, {
+ ticks: nJ(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -89650,8 +89654,8 @@ var G3e = (e, t) => {
})), a.left, a.left + a.width, t);
}, K3e = (e, t) => {
var n = e.yAxis, r = e.width, i = e.height, a = e.offset;
- return eJ(q3(Q3(Q3(Q3({}, X3), n), {}, {
- ticks: tJ(n, !0),
+ return tJ(q3(Q3(Q3(Q3({}, X3), n), {}, {
+ ticks: nJ(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -89669,21 +89673,21 @@ var G3e = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: WX.grid
+ zIndex: GX.grid
};
function J3e(e) {
- var t = RJ(), n = zJ(), r = LJ(), i = Q3(Q3({}, FW(e, q3e)), {}, {
- x: vU(e.x) ? e.x : r.left,
- y: vU(e.y) ? e.y : r.top,
- width: vU(e.width) ? e.width : r.width,
- height: vU(e.height) ? e.height : r.height
- }), a = i.xAxisId, o = i.yAxisId, s = i.x, c = i.y, l = i.width, u = i.height, d = i.syncWithTicks, f = i.horizontalValues, p = i.verticalValues, m = SJ(), h = J((e) => $0(e, "xAxis", a, m)), g = J((e) => $0(e, "yAxis", o, m)), _ = k3e(), v = {
+ var t = zJ(), n = BJ(), r = RJ(), i = Q3(Q3({}, IW(e, q3e)), {}, {
+ x: yU(e.x) ? e.x : r.left,
+ y: yU(e.y) ? e.y : r.top,
+ width: yU(e.width) ? e.width : r.width,
+ height: yU(e.height) ? e.height : r.height
+ }), a = i.xAxisId, o = i.yAxisId, s = i.x, c = i.y, l = i.width, u = i.height, d = i.syncWithTicks, f = i.horizontalValues, p = i.verticalValues, m = CJ(), h = J((e) => e2(e, "xAxis", a, m)), g = J((e) => e2(e, "yAxis", o, m)), _ = k3e(), v = {
stroke: i.stroke ?? _.grid.stroke,
strokeWidth: i.strokeWidth ?? _.grid.strokeWidth,
strokeOpacity: i.strokeOpacity ?? _.grid.strokeOpacity,
strokeDasharray: i.strokeDasharray ?? _.grid.strokeDasharray
};
- if (!Yq(l) || !Yq(u) || !vU(s) || !vU(c)) return null;
+ if (!Xq(l) || !Xq(u) || !yU(s) || !yU(c)) return null;
var y = i.verticalCoordinatesGenerator || G3e, x = i.horizontalCoordinatesGenerator || K3e, S = i.horizontalPoints, C = i.verticalPoints;
if ((!S || !S.length) && typeof x == "function") {
var w = f && f.length, T = x({
@@ -89692,7 +89696,7 @@ function J3e(e) {
height: n ?? u,
offset: r
}, w ? !0 : d);
- TJ(Array.isArray(T), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof T}]`), Array.isArray(T) && (S = T);
+ EJ(Array.isArray(T), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof T}]`), Array.isArray(T) && (S = T);
}
if ((!C || !C.length) && typeof y == "function") {
var E = p && p.length, D = y({
@@ -89701,7 +89705,7 @@ function J3e(e) {
height: n ?? u,
offset: r
}, E ? !0 : d);
- TJ(Array.isArray(D), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof D}]`), Array.isArray(D) && (C = D);
+ EJ(Array.isArray(D), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof D}]`), Array.isArray(D) && (C = D);
}
return /*#__PURE__*/ b.createElement(a4, { zIndex: i.zIndex }, /*#__PURE__*/ b.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ b.createElement(z3e, {
fill: i.fill ?? _.grid.fill,
@@ -89805,7 +89809,7 @@ function i6e(e) {
var s = i.pathRef;
o = r6e(n, Q3e(s?.current ?? null), t);
} else n != null && (o = String(n));
- return /*#__PURE__*/ b.createElement(kY, t6({}, i, {
+ return /*#__PURE__*/ b.createElement(AY, t6({}, i, {
connectNulls: a,
strokeDasharray: o
}));
@@ -89816,13 +89820,13 @@ function a6e(e) {
var t = (0, b.useRef)(0), n = (0, b.useRef)(0), r = (0, b.useRef)(!1), i = (0, b.useRef)(e);
return i.current !== e && (t.current = n.current, i.current = e), (0, b.useCallback)((e, i) => {
if (r.current) return null;
- var a = Math.min(pU(t.current + e * i), i);
+ var a = Math.min(mU(t.current + e * i), i);
return e > 0 && i > 0 && (n.current = Math.max(n.current, a), a >= i) ? (r.current = !0, null) : a;
}, []);
}
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var o6e = vq({
+var o6e = yq({
name: "errorBars",
initialState: {},
reducers: {
@@ -89878,7 +89882,7 @@ function f6e(e) {
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
function r6(e, t) {
- var n = J((t) => z1(t, e)), r = J((e) => H1(e, t)), i = n?.allowDataOverflow ?? L1.allowDataOverflow, a = r?.allowDataOverflow ?? B1.allowDataOverflow;
+ var n = J((t) => B1(t, e)), r = J((e) => U1(e, t)), i = n?.allowDataOverflow ?? R1.allowDataOverflow, a = r?.allowDataOverflow ?? V1.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
@@ -89886,7 +89890,7 @@ function r6(e, t) {
};
}
function i6(e) {
- var t = e.xAxisId, n = e.yAxisId, r = e.clipPathId, i = b3(), a = r6(t, n), o = a.needClipX, s = a.needClipY, c = a.needClip, l = J((e) => I0(e, t, !1)), u = J((e) => L0(e, n, !1));
+ var t = e.xAxisId, n = e.yAxisId, r = e.clipPathId, i = b3(), a = r6(t, n), o = a.needClipX, s = a.needClipY, c = a.needClip, l = J((e) => L0(e, t, !1)), u = J((e) => R0(e, n, !1));
if (!c || !i) return null;
var d = i.x, f = i.y, p = i.width, m = i.height, h = o && l ? Math.min(l[0], l[1]) : d - p / 2, g = s && u ? Math.min(u[0], u[1]) : f - m / 2, _ = o && l ? Math.abs(l[1] - l[0]) : p * 2, v = s && u ? Math.abs(u[1] - u[0]) : m * 2;
return /*#__PURE__*/ b.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ b.createElement("rect", {
@@ -89898,25 +89902,25 @@ function i6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var p6e = (e, t, n, r) => i2(e, "xAxis", t, r), m6e = (e, t, n, r) => r2(e, "xAxis", t, r), h6e = (e, t, n, r) => i2(e, "yAxis", n, r), g6e = (e, t, n, r) => r2(e, "yAxis", n, r), _6e = Y([
- BJ,
+var p6e = (e, t, n, r) => a2(e, "xAxis", t, r), m6e = (e, t, n, r) => i2(e, "xAxis", t, r), h6e = (e, t, n, r) => a2(e, "yAxis", n, r), g6e = (e, t, n, r) => i2(e, "yAxis", n, r), _6e = Y([
+ VJ,
p6e,
h6e,
m6e,
g6e
-], (e, t, n, r, i) => $q(e, "xAxis") ? lJ(t, r, !1) : lJ(n, i, !1)), v6e = (e, t, n, r, i) => i;
+], (e, t, n, r, i) => eJ(e, "xAxis") ? uJ(t, r, !1) : uJ(n, i, !1)), v6e = (e, t, n, r, i) => i;
function y6e(e) {
return e.type === "line";
}
var b6e = Y([
- BJ,
+ VJ,
p6e,
h6e,
m6e,
g6e,
- Y([J1, v6e], (e, t) => e.filter(y6e).find((e) => e.id === t)),
+ Y([Y1, v6e], (e, t) => e.filter(y6e).find((e) => e.id === t)),
_6e,
- gX
+ _X
], (e, t, n, r, i, a, o, s) => {
var c = s.chartData, l = s.dataStartIndex, u = s.dataEndIndex;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
@@ -89936,7 +89940,7 @@ var b6e = Y([
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
function x6e(e) {
- var t = eU(e), n = 3, r = 2;
+ var t = tU(e), n = 3, r = 2;
if (t != null) {
var i = t.r, a = t.strokeWidth, o = Number(i), s = Number(a);
return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {
@@ -90067,21 +90071,21 @@ var c6 = {
if (t === 1) return e.flatMap((e) => e.status === "removed" ? [] : [e.next]);
var n = j6e(e), r = [];
for (var i of e) if (i.status === "matched") r.push(s6(s6({}, i.next), {}, {
- x: CU(i.prev.x, i.next.x, t),
- y: CU(i.prev.y, i.next.y, t)
+ x: wU(i.prev.x, i.next.x, t),
+ y: wU(i.prev.y, i.next.y, t)
}));
else if (i.status === "added") {
if (i.next.x != null) {
var a = i.next.x - n;
r.push(s6(s6({}, i.next), {}, {
- x: CU(a, i.next.x, t),
+ x: wU(a, i.next.x, t),
y: i.next.y
}));
} else r.push(i.next);
} else if (i.status === "removed" && i.prev.x != null) {
var o = i.prev.x + n;
r.push(s6(s6({}, i.prev), {}, {
- x: CU(i.prev.x, o, t),
+ x: wU(i.prev.x, o, t),
y: i.prev.y
}));
}
@@ -90100,7 +90104,7 @@ var c6 = {
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: WX.line,
+ zIndex: GX.line,
type: "linear"
}, M6e = (e) => {
var t = e.dataKey, n = e.name, r = e.stroke, i = e.legendType;
@@ -90109,20 +90113,20 @@ var c6 = {
dataKey: t,
type: i,
color: r,
- value: dJ(n, t),
+ value: fJ(n, t),
payload: e
}];
}, N6e = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.data, r = e.stroke, i = e.strokeWidth, a = e.fill, o = e.name, s = e.hide, c = e.unit, l = e.formatter, u = e.tooltipType, d = e.id, f = {
dataDefinedOnItem: n,
- getPosition: OU,
+ getPosition: kU,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: dJ(o, t),
+ name: fJ(o, t),
hide: s,
type: u,
color: r,
@@ -90136,7 +90140,7 @@ var c6 = {
function P6e(e) {
var t = e.clipPathId, n = e.points, r = e.props, i = r.dot, a = r.dataKey, o = r.needClip;
r.id;
- var s = $H(o6(r, S6e));
+ var s = eU(o6(r, S6e));
return /*#__PURE__*/ b.createElement(_3, {
points: n,
dot: i,
@@ -90169,7 +90173,7 @@ function F6e(e) {
return /*#__PURE__*/ b.createElement(D4, { value: t ? i : void 0 }, n);
}
function I6e(e) {
- var t = e.clipPathId, n = e.pathRef, r = e.points, i = e.props, a = e.animationElapsedTime, o = e.isAnimating, s = e.isEntrance, c = e.visibleLength, l = i.type, u = i.layout, d = i.connectNulls, f = i.needClip, p = i.shape, m = i.strokeDasharray, h = s6(s6({}, tU(o6(i, C6e))), {}, {
+ var t = e.clipPathId, n = e.pathRef, r = e.points, i = e.props, a = e.animationElapsedTime, o = e.isAnimating, s = e.isEntrance, c = e.visibleLength, l = i.type, u = i.layout, d = i.connectNulls, f = i.needClip, p = i.shape, m = i.strokeDasharray, h = s6(s6({}, nU(o6(i, C6e))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: f ? `url(#clipPath-${t})` : void 0,
@@ -90241,13 +90245,13 @@ var z6e = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: Qq(e.payload, t)
+ errorVal: $q(e.payload, t)
}), B6e = class extends b.Component {
render() {
var e = this.props, t = e.hide, n = e.dot, r = e.points, i = e.className, a = e.xAxisId, o = e.yAxisId, s = e.top, c = e.left, l = e.width, u = e.height, d = e.id, f = e.needClip, p = e.zIndex;
if (t) return null;
var m = hy("recharts-line", i), h = d, g = x6e(n), _ = g.r, v = g.strokeWidth, y = $4(n), x = _ * 2 + v, S = f ? `url(#clipPath-${y ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ b.createElement(a4, { zIndex: p }, /*#__PURE__*/ b.createElement(aU, { className: m }, f && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(i6, {
+ return /*#__PURE__*/ b.createElement(a4, { zIndex: p }, /*#__PURE__*/ b.createElement(oU, { className: m }, f && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(i6, {
clipPathId: h,
xAxisId: a,
yAxisId: o
@@ -90275,7 +90279,7 @@ var z6e = (e, t) => ({
}
};
function V6e(e) {
- var t = FW(e, c6), n = t.activeDot, r = t.animateNewValues, i = t.animationBegin, a = t.animationDuration, o = t.animationEasing, s = t.connectNulls, c = t.dot, l = t.hide, u = t.isAnimationActive, d = t.label, f = t.legendType, p = t.xAxisId, m = t.yAxisId, h = t.id, g = o6(t, w6e), _ = r6(p, m).needClip, v = b3(), y = VJ(), x = SJ(), S = J((e) => b6e(e, p, m, x, h));
+ var t = IW(e, c6), n = t.activeDot, r = t.animateNewValues, i = t.animationBegin, a = t.animationDuration, o = t.animationEasing, s = t.connectNulls, c = t.dot, l = t.hide, u = t.isAnimationActive, d = t.label, f = t.legendType, p = t.xAxisId, m = t.yAxisId, h = t.id, g = o6(t, w6e), _ = r6(p, m).needClip, v = b3(), y = HJ(), x = CJ(), S = J((e) => b6e(e, p, m, x, h));
if (y !== "horizontal" && y !== "vertical" || S == null || v == null) return null;
var C = v.height, w = v.width, T = v.x, E = v.y;
return /*#__PURE__*/ b.createElement(B6e, a6({}, g, {
@@ -90305,20 +90309,20 @@ function V6e(e) {
function H6e(e) {
var t = e.layout, n = e.xAxis, r = e.yAxis, i = e.xAxisTicks, a = e.yAxisTicks, o = e.dataKey, s = e.bandSize;
return e.displayedData.map((e, c) => {
- var l = Qq(e, o);
+ var l = $q(e, o);
if (t === "horizontal") return {
- x: iJ({
+ x: aJ({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (TU(l) ? null : r.scale.map(l)) ?? null,
+ y: (EU(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = TU(l) ? null : n.scale.map(l), d = iJ({
+ var u = EU(l) ? null : n.scale.map(l), d = aJ({
axis: r,
ticks: a,
bandSize: s,
@@ -90334,7 +90338,7 @@ function H6e(e) {
}).filter(Boolean);
}
function U6e(e) {
- var t = FW(e, c6), n = SJ();
+ var t = IW(e, c6), n = CJ();
return /*#__PURE__*/ b.createElement(f3, {
id: t.id,
type: "line"
@@ -90362,7 +90366,7 @@ function U6e(e) {
isPanorama: n
}), /*#__PURE__*/ b.createElement(V6e, a6({}, t, { id: e }))));
}
-var W6e = /*#__PURE__*/ b.memo(U6e, eY);
+var W6e = /*#__PURE__*/ b.memo(U6e, tY);
W6e.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -90374,35 +90378,35 @@ function u6(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var G6e = (e, t, n) => i2(e, "xAxis", l6(e, t), n), K6e = (e, t, n) => r2(e, "xAxis", l6(e, t), n), q6e = (e, t, n) => i2(e, "yAxis", u6(e, t), n), J6e = (e, t, n) => r2(e, "yAxis", u6(e, t), n), Y6e = Y([
- BJ,
+var G6e = (e, t, n) => a2(e, "xAxis", l6(e, t), n), K6e = (e, t, n) => i2(e, "xAxis", l6(e, t), n), q6e = (e, t, n) => a2(e, "yAxis", u6(e, t), n), J6e = (e, t, n) => i2(e, "yAxis", u6(e, t), n), Y6e = Y([
+ VJ,
G6e,
q6e,
K6e,
J6e
-], (e, t, n, r, i) => $q(e, "xAxis") ? lJ(t, r, !1) : lJ(n, i, !1)), d6 = Y([J1, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), X6e = (e) => $q(BJ(e), "xAxis") ? "yAxis" : "xAxis", Z6e = (e, t) => X6e(e) === "yAxis" ? u6(e, t) : l6(e, t), Q6e = (e, t, n) => p0(e, X6e(e), Z6e(e, t), n), $6e = Y([
- BJ,
+], (e, t, n, r, i) => eJ(e, "xAxis") ? uJ(t, r, !1) : uJ(n, i, !1)), d6 = Y([Y1, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), X6e = (e) => eJ(VJ(e), "xAxis") ? "yAxis" : "xAxis", Z6e = (e, t) => X6e(e) === "yAxis" ? u6(e, t) : l6(e, t), Q6e = (e, t, n) => m0(e, X6e(e), Z6e(e, t), n), $6e = Y([
+ VJ,
G6e,
q6e,
K6e,
J6e,
Y([d6, Q6e], (e, t) => {
if (e != null && t != null) {
- var n = e.stackId, r = uZ(e);
+ var n = e.stackId, r = dZ(e);
if (n != null && r != null) {
var i = (t[n]?.stackedData)?.find((e) => e.key === r);
if (i != null) return i.map((e) => [e[0], e[1]]);
}
}
}),
- _X,
+ vX,
Y6e,
d6,
- UWe,
+ HWe,
Y([d6, Q6e], (e, t) => {
if (e != null && e.stackId != null && t != null) {
var n = t[e.stackId];
- if (n != null) return n.graphicalItems.map((e) => e.dataKey).filter(DU);
+ if (n != null) return n.graphicalItems.map((e) => e.dataKey).filter(OU);
}
})
], (e, t, n, r, i, a, o, s, c, l, u) => {
@@ -90462,9 +90466,9 @@ function r8e(e, t) {
}
function i8e(e) {
var t = e.alpha, n = e.baseLine, r = e.points, i = e.strokeWidth, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!Jq(a) || !Jq(o)) return null;
+ if (!Yq(a) || !Yq(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
- return vU(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), vU(c) ? /*#__PURE__*/ b.createElement("rect", {
+ return yU(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), yU(c) ? /*#__PURE__*/ b.createElement("rect", {
x: a < o ? a : a - s,
y: 0,
width: s,
@@ -90473,9 +90477,9 @@ function i8e(e) {
}
function a8e(e) {
var t = e.alpha, n = e.baseLine, r = e.points, i = e.strokeWidth, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!Jq(a) || !Jq(o)) return null;
+ if (!Yq(a) || !Yq(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
- return vU(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), vU(c) ? /*#__PURE__*/ b.createElement("rect", {
+ return yU(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), yU(c) ? /*#__PURE__*/ b.createElement("rect", {
x: 0,
y: a < o ? a : a - s,
width: c + (i ? parseInt(`${i}`, 10) : 1),
@@ -90497,14 +90501,14 @@ function o8e(e) {
});
}
function s8e(e) {
- var t = e.animationElapsedTime, n = t === void 0 ? 1 : t, r = e.isAnimating, i = r !== void 0 && r, a = e.isEntrance, o = a !== void 0 && a, s = e.layout, c = e.isRange, l = e.stroke, u = e.connectNulls, d = n8e(e, e8e), f = s === "vertical" ? "vertical" : "horizontal", p = u ?? !1, m = O1e(), h = d.id, g = d.baseLine, _ = $H(n8e(d, t8e)), v = /*#__PURE__*/ b.createElement(kY, f6({}, d, {
+ var t = e.animationElapsedTime, n = t === void 0 ? 1 : t, r = e.isAnimating, i = r !== void 0 && r, a = e.isEntrance, o = a !== void 0 && a, s = e.layout, c = e.isRange, l = e.stroke, u = e.connectNulls, d = n8e(e, e8e), f = s === "vertical" ? "vertical" : "horizontal", p = u ?? !1, m = O1e(), h = d.id, g = d.baseLine, _ = eU(n8e(d, t8e)), v = /*#__PURE__*/ b.createElement(AY, f6({}, d, {
id: h,
baseLine: g,
connectNulls: p,
stroke: "none",
className: "recharts-area-area",
layout: f
- })), y = l !== "none" && /*#__PURE__*/ b.createElement(kY, f6({}, _, {
+ })), y = l !== "none" && /*#__PURE__*/ b.createElement(AY, f6({}, _, {
className: "recharts-area-curve",
layout: f,
type: d.type,
@@ -90512,7 +90516,7 @@ function s8e(e) {
fill: "none",
stroke: l,
points: d.points
- })), x = l !== "none" && c && Array.isArray(g) && /*#__PURE__*/ b.createElement(kY, f6({}, _, {
+ })), x = l !== "none" && c && Array.isArray(g) && /*#__PURE__*/ b.createElement(AY, f6({}, _, {
className: "recharts-area-curve",
layout: f,
type: d.type,
@@ -90521,13 +90525,13 @@ function s8e(e) {
stroke: l,
points: g
}));
- return o && (i || n < 1) ? /*#__PURE__*/ b.createElement(aU, null, /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement("clipPath", { id: m }, /*#__PURE__*/ b.createElement(o8e, {
+ return o && (i || n < 1) ? /*#__PURE__*/ b.createElement(oU, null, /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement("clipPath", { id: m }, /*#__PURE__*/ b.createElement(o8e, {
alpha: n,
points: d.points ?? [],
baseLine: g,
layout: f,
strokeWidth: d.strokeWidth
- }))), /*#__PURE__*/ b.createElement(aU, { clipPath: `url(#${m})` }, v, y, x)) : /*#__PURE__*/ b.createElement(b.Fragment, null, v, y, x);
+ }))), /*#__PURE__*/ b.createElement(oU, { clipPath: `url(#${m})` }, v, y, x)) : /*#__PURE__*/ b.createElement(b.Fragment, null, v, y, x);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Area.js
@@ -90624,8 +90628,8 @@ var g8e = {
animationEasing: "ease",
animationMatchBy: o3,
animationInterpolateFn: (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "matched" ? [m6(m6({}, e.next), {}, {
- x: CU(e.prev.x, e.next.x, t),
- y: CU(e.prev.y, e.next.y, t)
+ x: wU(e.prev.x, e.next.x, t),
+ y: wU(e.prev.y, e.next.y, t)
})] : e.status === "added" ? [e.next] : []),
connectNulls: !1,
dot: !1,
@@ -90641,7 +90645,7 @@ var g8e = {
shape: s8e,
xAxisId: 0,
yAxisId: 0,
- zIndex: WX.area
+ zIndex: GX.area
};
function h6(e, t) {
return e && e !== "none" ? e : t;
@@ -90653,20 +90657,20 @@ var _8e = (e) => {
dataKey: t,
type: a,
color: h6(r, i),
- value: dJ(n, t),
+ value: fJ(n, t),
payload: e
}];
}, v8e = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.data, r = e.stroke, i = e.strokeWidth, a = e.fill, o = e.name, s = e.hide, c = e.unit, l = e.formatter, u = e.tooltipType, d = e.id, f = {
dataDefinedOnItem: n,
- getPosition: OU,
+ getPosition: kU,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: dJ(o, t),
+ name: fJ(o, t),
hide: s,
type: u,
color: h6(r, a),
@@ -90678,7 +90682,7 @@ var _8e = (e) => {
return /*#__PURE__*/ b.createElement(i3, { tooltipEntrySettings: f });
});
function y8e(e) {
- var t = e.clipPathId, n = e.points, r = e.props, i = r.needClip, a = r.dot, o = r.dataKey, s = $H(r);
+ var t = e.clipPathId, n = e.points, r = e.props, i = r.needClip, a = r.dot, o = r.dataKey, s = eU(r);
return /*#__PURE__*/ b.createElement(_3, {
points: n,
dot: a,
@@ -90711,7 +90715,7 @@ function b8e(e) {
return /*#__PURE__*/ b.createElement(D4, { value: t ? r : void 0 }, n);
}
function x8e(e) {
- var t = e.points, n = e.baseLine, r = e.needClip, i = e.clipPathId, a = e.props, o = e.animationElapsedTime, s = e.isAnimating, c = e.isEntrance, l = a.layout, u = a.type, d = a.stroke, f = a.connectNulls, p = a.isRange, m = a.shape, h = a.id, g = u8e(a, c8e), _ = m6(m6({}, tU(g)), {}, {
+ var t = e.points, n = e.baseLine, r = e.needClip, i = e.clipPathId, a = e.props, o = e.animationElapsedTime, s = e.isAnimating, c = e.isEntrance, l = a.layout, u = a.type, d = a.stroke, f = a.connectNulls, p = a.isRange, m = a.shape, h = a.id, g = u8e(a, c8e), _ = m6(m6({}, nU(g)), {}, {
id: h,
points: t,
connectNulls: f,
@@ -90724,7 +90728,7 @@ function x8e(e) {
isAnimating: s,
isEntrance: c
});
- return /*#__PURE__*/ b.createElement(b.Fragment, null, t?.length > 1 && /*#__PURE__*/ b.createElement(aU, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ b.createElement(e3, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, t?.length > 1 && /*#__PURE__*/ b.createElement(oU, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ b.createElement(e3, {
option: m,
DefaultShape: g8e.shape,
shapeProps: _
@@ -90735,13 +90739,13 @@ function x8e(e) {
}));
}
function S8e(e, t, n) {
- return vU(e) ? CU(vU(t) ? t : void 0, e, n) : TU(e) || gU(e) ? CU(vU(t) ? t : void 0, 0, n) : e;
+ return yU(e) ? wU(yU(t) ? t : void 0, e, n) : EU(e) || _U(e) ? wU(yU(t) ? t : void 0, 0, n) : e;
}
function C8e(e) {
var t = e.needClip, n = e.clipPathId, r = e.props, i = e.previousPointsRef, a = e.previousBaselineRef, o = r.points, s = r.baseLine, c = r.isAnimationActive, l = r.animationBegin, u = r.animationDuration, d = r.animationEasing, f = r.animationMatchBy, p = r.animationInterpolateFn, m = (0, b.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), h = l3(m, a), g = HJ(), _ = u3(r.onAnimationStart, r.onAnimationEnd), v = _.isAnimating, y = _.handleAnimationStart, x = _.handleAnimationEnd, S = h.startValue;
+ }), [o, s]), h = l3(m, a), g = UJ(), _ = u3(r.onAnimationStart, r.onAnimationEnd), v = _.isAnimating, y = _.handleAnimationStart, x = _.handleAnimationEnd, S = h.startValue;
if (g == null) return null;
var C = Array.isArray(s) && Array.isArray(S) ? c3(S, s, f) : Array.isArray(s) ? c3(null, s, f) : null;
return /*#__PURE__*/ b.createElement(d3, {
@@ -90790,7 +90794,7 @@ var T8e = class extends b.PureComponent {
var e = this.props, t = e.hide, n = e.dot, r = e.points, i = e.className, a = e.top, o = e.left, s = e.needClip, c = e.xAxisId, l = e.yAxisId, u = e.width, d = e.height, f = e.id, p = e.baseLine, m = e.zIndex;
if (t) return null;
var h = hy("recharts-area", i), g = f, _ = x6e(n), v = _.r, y = _.strokeWidth, x = $4(n), S = v * 2 + y, C = s ? `url(#clipPath-${x ? "" : "dots-"}${g})` : void 0;
- return /*#__PURE__*/ b.createElement(a4, { zIndex: m }, /*#__PURE__*/ b.createElement(aU, { className: h }, s && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(i6, {
+ return /*#__PURE__*/ b.createElement(a4, { zIndex: m }, /*#__PURE__*/ b.createElement(oU, { className: h }, s && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(i6, {
clipPathId: g,
xAxisId: c,
yAxisId: l
@@ -90819,7 +90823,7 @@ var T8e = class extends b.PureComponent {
}
};
function E8e(e) {
- var t = e.activeDot, n = e.animationBegin, r = e.animationDuration, i = e.animationEasing, a = e.connectNulls, o = e.dot, s = e.fill, c = e.fillOpacity, l = e.hide, u = e.isAnimationActive, d = e.legendType, f = e.stroke, p = e.xAxisId, m = e.yAxisId, h = u8e(e, l8e), g = VJ(), _ = mYe(), v = r6(p, m).needClip, y = SJ(), x = J((t) => $6e(t, e.id, y)) ?? {}, S = x.points, C = x.isRange, w = x.baseLine, T = b3();
+ var t = e.activeDot, n = e.animationBegin, r = e.animationDuration, i = e.animationEasing, a = e.connectNulls, o = e.dot, s = e.fill, c = e.fillOpacity, l = e.hide, u = e.isAnimationActive, d = e.legendType, f = e.stroke, p = e.xAxisId, m = e.yAxisId, h = u8e(e, l8e), g = HJ(), _ = mYe(), v = r6(p, m).needClip, y = CJ(), x = J((t) => $6e(t, e.id, y)) ?? {}, S = x.points, C = x.isRange, w = x.baseLine, T = b3();
if (g !== "horizontal" && g !== "vertical" || T == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var E = T.height, D = T.width, O = T.x, k = T.y;
return !S || !S.length ? null : /*#__PURE__*/ b.createElement(T8e, p6({}, h, {
@@ -90850,7 +90854,7 @@ function E8e(e) {
}
var D8e = (e, t, n, r, i) => {
var a = n ?? t;
- if (vU(a)) return a;
+ if (yU(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
if (o.type === "number") {
var c = Math.max(s[0], s[1]), l = Math.min(s[0], s[1]);
@@ -90863,12 +90867,12 @@ function O8e(e) {
var r;
if (g) r = a[d + t];
else {
- var o = Qq(e, i);
+ var o = $q(e, i);
Array.isArray(o) ? (r = o, y = !0) : r = [_, o];
}
- var s = r?.[1] ?? null, u = Qq(e, i), b = g && u == null && h != null && h.length > 0 && h.every((t) => Qq(e, t) == null), x = s == null || g && !n && u == null || b;
+ var s = r?.[1] ?? null, u = $q(e, i), b = g && u == null && h != null && h.length > 0 && h.every((t) => $q(e, t) == null), x = s == null || g && !n && u == null || b;
return v ? {
- x: iJ({
+ x: aJ({
axis: c,
ticks: f,
bandSize: m,
@@ -90880,7 +90884,7 @@ function O8e(e) {
payload: e
} : {
x: x ? null : c.scale.map(s) ?? null,
- y: iJ({
+ y: aJ({
axis: l,
ticks: p,
bandSize: m,
@@ -90909,7 +90913,7 @@ function O8e(e) {
};
}
function k8e(e) {
- var t = FW(e, g8e), n = SJ();
+ var t = IW(e, g8e), n = CJ();
return /*#__PURE__*/ b.createElement(f3, {
id: t.id,
type: "area"
@@ -90933,7 +90937,7 @@ function k8e(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: rJ(t.stackId),
+ stackId: iJ(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
@@ -90941,7 +90945,7 @@ function k8e(e) {
connectNulls: t.connectNulls
}), /*#__PURE__*/ b.createElement(E8e, p6({}, t, { id: e }))));
}
-var A8e = /*#__PURE__*/ b.memo(k8e, eY);
+var A8e = /*#__PURE__*/ b.memo(k8e, tY);
A8e.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
@@ -90970,7 +90974,7 @@ function F8e(e, t) {
}
return n;
}
-var g6 = eX;
+var g6 = tX;
function _6(e) {
var t = e.option, n = P8e(e, N8e);
return /*#__PURE__*/ b.createElement(e3, {
@@ -90984,69 +90988,69 @@ function _6(e) {
var I8e = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
- if (vU(e)) return e;
- var i = vU(n) || TU(n);
+ if (yU(e)) return e;
+ var i = yU(n) || EU(n);
return i ? e(n, r) : (!i && M8e(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, L8e = (e, t, n) => n, v6 = Y([J1, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), R8e = Y([v6], (e) => e?.maxBarSize), z8e = (e, t, n, r) => r, B8e = Y([
- BJ,
- J1,
+}, L8e = (e, t, n) => n, v6 = Y([Y1, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), R8e = Y([v6], (e) => e?.maxBarSize), z8e = (e, t, n, r) => r, B8e = Y([
+ VJ,
+ Y1,
l6,
u6,
L8e
], (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")), V8e = (e, t, n) => {
- var r = BJ(e), i = l6(e, t), a = u6(e, t);
- if (i != null && a != null) return r === "horizontal" ? p0(e, "yAxis", a, n) : p0(e, "xAxis", i, n);
+ var r = VJ(e), i = l6(e, t), a = u6(e, t);
+ if (i != null && a != null) return r === "horizontal" ? m0(e, "yAxis", a, n) : m0(e, "xAxis", i, n);
}, H8e = Y([
B8e,
- LX,
+ RX,
(e, t) => {
- var n = BJ(e), r = l6(e, t), i = u6(e, t);
- if (r != null && i != null) return n === "horizontal" ? X0(e, "xAxis", r) : X0(e, "yAxis", i);
+ var n = VJ(e), r = l6(e, t), i = u6(e, t);
+ if (r != null && i != null) return n === "horizontal" ? Z0(e, "xAxis", r) : Z0(e, "yAxis", i);
}
], d2e), U8e = (e, t, n) => {
var r = v6(e, t);
if (r == null) return 0;
var i = l6(e, t), a = u6(e, t);
if (i == null || a == null) return 0;
- var o = BJ(e), s = PX(e), c = r.maxBarSize, l = TU(c) ? s : c, u, d;
- return o === "horizontal" ? (u = i2(e, "xAxis", i, n), d = r2(e, "xAxis", i, n)) : (u = i2(e, "yAxis", a, n), d = r2(e, "yAxis", a, n)), lJ(u, d, !0) ?? l ?? 0;
+ var o = VJ(e), s = FX(e), c = r.maxBarSize, l = EU(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = a2(e, "xAxis", i, n), d = i2(e, "xAxis", i, n)) : (u = a2(e, "yAxis", a, n), d = i2(e, "yAxis", a, n)), uJ(u, d, !0) ?? l ?? 0;
}, W8e = (e, t, n) => {
- var r = BJ(e), i = l6(e, t), a = u6(e, t);
+ var r = VJ(e), i = l6(e, t), a = u6(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = i2(e, "xAxis", i, n), s = r2(e, "xAxis", i, n)) : (o = i2(e, "yAxis", a, n), s = r2(e, "yAxis", a, n)), lJ(o, s);
+ return r === "horizontal" ? (o = a2(e, "xAxis", i, n), s = i2(e, "xAxis", i, n)) : (o = a2(e, "yAxis", a, n), s = i2(e, "yAxis", a, n)), uJ(o, s);
}
}, G8e = Y([
- yJ,
- xJ,
+ bJ,
+ SJ,
(e, t, n) => {
var r = l6(e, t);
- if (r != null) return i2(e, "xAxis", r, n);
+ if (r != null) return a2(e, "xAxis", r, n);
},
(e, t, n) => {
var r = u6(e, t);
- if (r != null) return i2(e, "yAxis", r, n);
+ if (r != null) return a2(e, "yAxis", r, n);
},
(e, t, n) => {
var r = l6(e, t);
- if (r != null) return r2(e, "xAxis", r, n);
+ if (r != null) return i2(e, "xAxis", r, n);
},
(e, t, n) => {
var r = u6(e, t);
- if (r != null) return r2(e, "yAxis", r, n);
+ if (r != null) return i2(e, "yAxis", r, n);
},
Y([Y([
H8e,
- PX,
FX,
IX,
+ LX,
U8e,
W8e,
R8e
], _2e), v6], y2e),
- BJ,
- _X,
+ VJ,
+ vX,
W8e,
Y([V8e, v6], v2e),
v6,
@@ -91103,7 +91107,7 @@ function J8e(e, t) {
var Y8e = /*#__PURE__*/ (0, b.createContext)(void 0), X8e = (e) => {
var t = (0, b.useContext)(Y8e);
if (t != null) return t.stackId;
- if (e != null) return rJ(e);
+ if (e != null) return iJ(e);
}, Z8e = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, Q8e = (e) => {
var t = (0, b.useContext)(Y8e);
if (t != null) {
@@ -91112,7 +91116,7 @@ var Y8e = /*#__PURE__*/ (0, b.createContext)(void 0), X8e = (e) => {
}
}, $8e = (e) => {
var t = e.index, n = q8e(e, K8e), r = Q8e(t);
- return /*#__PURE__*/ b.createElement(aU, y6({
+ return /*#__PURE__*/ b.createElement(oU, y6({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
@@ -91248,20 +91252,20 @@ var h5e = (e) => {
dataKey: t,
type: i,
color: r,
- value: dJ(n, t),
+ value: fJ(n, t),
payload: e
}];
}, g5e = /*#__PURE__*/ b.memo((e) => {
var t = e.dataKey, n = e.stroke, r = e.strokeWidth, i = e.fill, a = e.name, o = e.hide, s = e.unit, c = e.formatter, l = e.tooltipType, u = e.id, d = {
dataDefinedOnItem: void 0,
- getPosition: OU,
+ getPosition: kU,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: dJ(a, t),
+ name: fJ(a, t),
hide: o,
type: l,
color: i,
@@ -91273,10 +91277,10 @@ var h5e = (e) => {
return /*#__PURE__*/ b.createElement(i3, { tooltipEntrySettings: d });
});
function _5e(e) {
- var t = J(K2), n = e.data, r = e.dataKey, i = e.background, a = e.allOtherBarProps, o = a.onMouseEnter, s = a.onMouseLeave, c = a.onClick, l = S6(a, e5e), u = t3(o, r, a.id), d = n3(s), f = r3(c, r, a.id);
+ var t = J(q2), n = e.data, r = e.dataKey, i = e.background, a = e.allOtherBarProps, o = a.onMouseEnter, s = a.onMouseLeave, c = a.onClick, l = S6(a, e5e), u = t3(o, r, a.id), d = n3(s), f = r3(c, r, a.id);
if (!i || n == null) return null;
- var p = eU(i);
- return /*#__PURE__*/ b.createElement(a4, { zIndex: I2e(i, WX.barBackground) }, n.map((e, n) => {
+ var p = tU(i);
+ return /*#__PURE__*/ b.createElement(a4, { zIndex: I2e(i, GX.barBackground) }, n.map((e, n) => {
e.value;
var a = e.background;
e.tooltipPosition;
@@ -91285,7 +91289,7 @@ function _5e(e) {
var s = u(e, e.originalDataIndex), c = d(e, e.originalDataIndex), m = f(e, e.originalDataIndex), h = x6(x6(x6(x6(x6({
option: i,
isActive: String(e.originalDataIndex) === t
- }, o), {}, { fill: "#eee" }, a), p), NW(l, e, n)), {}, {
+ }, o), {}, { fill: "#eee" }, a), p), PW(l, e, n)), {}, {
onMouseEnter: s,
onMouseLeave: c,
onClick: m,
@@ -91317,7 +91321,7 @@ function v5e(e) {
return /*#__PURE__*/ b.createElement(D4, { value: t ? r : void 0 }, n);
}
function y5e(e) {
- var t = e.shape, n = e.activeBar, r = e.baseProps, i = e.entry, a = e.index, o = e.dataKey, s = J(K2), c = J(J2), l = n && String(i.originalDataIndex) === s && (c == null || o === c), u = s != null && (String(i.originalDataIndex) !== s || c != null && o !== c), d = i5e((0, b.useState)(!1), 2), f = d[0], p = d[1], m = i5e((0, b.useState)(!1), 2), h = m[0], g = m[1];
+ var t = e.shape, n = e.activeBar, r = e.baseProps, i = e.entry, a = e.index, o = e.dataKey, s = J(q2), c = J(Y2), l = n && String(i.originalDataIndex) === s && (c == null || o === c), u = s != null && (String(i.originalDataIndex) !== s || c != null && o !== c), d = i5e((0, b.useState)(!1), 2), f = d[0], p = d[1], m = i5e((0, b.useState)(!1), 2), h = m[0], g = m[1];
(0, b.useEffect)(() => {
var e;
return l ? (p(!0), e = requestAnimationFrame(() => {
@@ -91338,7 +91342,7 @@ function y5e(e) {
isEntrance: e.isEntrance,
onTransitionEnd: _
}));
- return y ? /*#__PURE__*/ b.createElement(a4, { zIndex: WX.activeBar }, /*#__PURE__*/ b.createElement($8e, { index: i.originalDataIndex }, S)) : S;
+ return y ? /*#__PURE__*/ b.createElement(a4, { zIndex: GX.activeBar }, /*#__PURE__*/ b.createElement($8e, { index: i.originalDataIndex }, S)) : S;
}
function b5e(e) {
var t = e.shape, n = e.baseProps, r = e.entry, i = e.index, a = e.dataKey;
@@ -91353,12 +91357,12 @@ function b5e(e) {
}));
}
function x5e(e) {
- var t = e.data, n = e.props, r = e.animationElapsedTime, i = e.isAnimating, a = e.isEntrance, o = $H(n) ?? {}, s = o.id, c = S6(o, n5e), l = n.shape, u = n.dataKey, d = n.activeBar, f = n.onMouseEnter, p = n.onClick, m = n.onMouseLeave, h = S6(n, r5e), g = t3(f, u, s), _ = n3(m), v = r3(p, u, s);
+ var t = e.data, n = e.props, r = e.animationElapsedTime, i = e.isAnimating, a = e.isEntrance, o = eU(n) ?? {}, s = o.id, c = S6(o, n5e), l = n.shape, u = n.dataKey, d = n.activeBar, f = n.onMouseEnter, p = n.onClick, m = n.onMouseLeave, h = S6(n, r5e), g = t3(f, u, s), _ = n3(m), v = r3(p, u, s);
return t ? /*#__PURE__*/ b.createElement(b.Fragment, null, t.map((e, t) => /*#__PURE__*/ b.createElement($8e, b6({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, NW(h, e, t), {
+ }, PW(h, e, t), {
onMouseEnter: g(e, e.originalDataIndex),
onMouseLeave: _(e, e.originalDataIndex),
onClick: v(e, e.originalDataIndex)
@@ -91385,22 +91389,22 @@ function x5e(e) {
}
var S5e = (e, t, n) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => {
if (e.status === "removed") return n === "horizontal" ? [x6(x6({}, e.prev), {}, {
- height: CU(e.prev.height, 0, t),
- y: CU(e.prev.y, e.prev.y + e.prev.height, t)
- })] : [x6(x6({}, e.prev), {}, { width: CU(e.prev.width, 0, t) })];
+ height: wU(e.prev.height, 0, t),
+ y: wU(e.prev.y, e.prev.y + e.prev.height, t)
+ })] : [x6(x6({}, e.prev), {}, { width: wU(e.prev.width, 0, t) })];
if (e.status === "matched") return [x6(x6({}, e.next), {}, {
- x: CU(e.prev.x, e.next.x, t),
- y: CU(e.prev.y, e.next.y, t),
- width: CU(e.prev.width, e.next.width, t),
- height: CU(e.prev.height, e.next.height, t)
+ x: wU(e.prev.x, e.next.x, t),
+ y: wU(e.prev.y, e.next.y, t),
+ width: wU(e.prev.width, e.next.width, t),
+ height: wU(e.prev.height, e.next.height, t)
})];
var r = e.next;
return n === "horizontal" ? [x6(x6({}, r), {}, {
- height: CU(0, r.height, t),
- y: CU(r.stackedBarStart, r.y, t)
+ height: wU(0, r.height, t),
+ y: wU(r.stackedBarStart, r.y, t)
})] : [x6(x6({}, r), {}, {
- width: CU(0, r.width, t),
- x: CU(r.stackedBarStart, r.x, t)
+ width: wU(0, r.width, t),
+ x: wU(r.stackedBarStart, r.x, t)
})];
});
function C5e(e) {
@@ -91422,7 +91426,7 @@ function C5e(e) {
animationInterpolateFn: c,
animationMatchBy: t.animationMatchBy,
layout: l
- }, (e, n, r) => /*#__PURE__*/ b.createElement(aU, null, /*#__PURE__*/ b.createElement(x5e, {
+ }, (e, n, r) => /*#__PURE__*/ b.createElement(oU, null, /*#__PURE__*/ b.createElement(x5e, {
props: t,
data: e,
animationElapsedTime: n,
@@ -91443,21 +91447,21 @@ var T5e = 0, E5e = (e, t) => {
x: e.x,
y: e.y,
value: n,
- errorVal: Qq(e, t)
+ errorVal: $q(e, t)
};
}, D5e = class extends b.PureComponent {
render() {
var e = this.props, t = e.hide, n = e.data, r = e.dataKey, i = e.className, a = e.xAxisId, o = e.yAxisId, s = e.needClip, c = e.background, l = e.id;
if (t || n == null) return null;
var u = hy("recharts-bar", i), d = l;
- return /*#__PURE__*/ b.createElement(aU, {
+ return /*#__PURE__*/ b.createElement(oU, {
className: u,
id: l
}, s && /*#__PURE__*/ b.createElement("defs", null, /*#__PURE__*/ b.createElement(i6, {
clipPathId: d,
xAxisId: a,
yAxisId: o
- })), /*#__PURE__*/ b.createElement(aU, {
+ })), /*#__PURE__*/ b.createElement(oU, {
className: "recharts-bar-rectangles",
clipPath: s ? `url(#clipPath-${d})` : void 0
}, /*#__PURE__*/ b.createElement(_5e, {
@@ -91483,10 +91487,10 @@ var T5e = 0, E5e = (e, t) => {
shape: g6,
xAxisId: 0,
yAxisId: 0,
- zIndex: WX.bar
+ zIndex: GX.bar
};
function k5e(e) {
- var t = e.xAxisId, n = e.yAxisId, r = e.hide, i = e.legendType, a = e.minPointSize, o = e.activeBar, s = e.animationBegin, c = e.animationDuration, l = e.animationEasing, u = e.isAnimationActive, d = r6(t, n).needClip, f = VJ(), p = SJ(), m = q$e(e.children, p4), h = J((t) => G8e(t, e.id, p, m));
+ var t = e.xAxisId, n = e.yAxisId, r = e.hide, i = e.legendType, a = e.minPointSize, o = e.activeBar, s = e.animationBegin, c = e.animationDuration, l = e.animationEasing, u = e.isAnimationActive, d = r6(t, n).needClip, f = HJ(), p = CJ(), m = q$e(e.children, p4), h = J((t) => G8e(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ b.createElement(f6e, {
@@ -91512,19 +91516,19 @@ function k5e(e) {
})));
}
function A5e(e) {
- var t = e.layout, n = e.barSettings, r = n.dataKey, i = n.minPointSize, a = n.hasCustomShape, o = e.pos, s = e.bandSize, c = e.xAxis, l = e.yAxis, u = e.xAxisTicks, d = e.yAxisTicks, f = e.stackedData, p = e.displayedData, m = e.offset, h = e.cells, g = e.parentViewBox, _ = e.dataStartIndex, v = t === "horizontal" ? l : c, y = f ? v.scale.domain() : null, b = oJ({ numericAxis: v }), x = v.scale.map(b);
+ var t = e.layout, n = e.barSettings, r = n.dataKey, i = n.minPointSize, a = n.hasCustomShape, o = e.pos, s = e.bandSize, c = e.xAxis, l = e.yAxis, u = e.xAxisTicks, d = e.yAxisTicks, f = e.stackedData, p = e.displayedData, m = e.offset, h = e.cells, g = e.parentViewBox, _ = e.dataStartIndex, v = t === "horizontal" ? l : c, y = f ? v.scale.domain() : null, b = sJ({ numericAxis: v }), x = v.scale.map(b);
return p.map((e, n) => {
var p, v, S, C, w, T;
if (f) {
var E = f[n + _];
if (E == null) return null;
- p = nJ(E, y);
- } else p = Qq(e, r), Array.isArray(p) || (p = [b, p]);
+ p = rJ(E, y);
+ } else p = $q(e, r), Array.isArray(p) || (p = [b, p]);
var D = I8e(i, T5e)(p[1], n);
if (t === "horizontal") {
var O = l.scale.map(p[0]), k = l.scale.map(p[1]);
if (O == null || k == null) return null;
- v = aJ({
+ v = oJ({
axis: c,
ticks: u,
bandSize: s,
@@ -91533,19 +91537,19 @@ function A5e(e) {
index: n
}), S = k ?? O ?? void 0, C = o.size;
var A = O - k;
- if (w = gU(A) ? 0 : A, T = {
+ if (w = _U(A) ? 0 : A, T = {
x: v,
y: m.top,
width: C,
height: m.height
}, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {
- var j = hU(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = gU(w || D) * (Math.abs(D) - Math.abs(w));
S -= j, w += j;
}
} else {
var M = c.scale.map(p[0]), N = c.scale.map(p[1]);
if (M == null || N == null) return null;
- if (v = M, S = aJ({
+ if (v = M, S = oJ({
axis: l,
ticks: d,
bandSize: s,
@@ -91558,7 +91562,7 @@ function A5e(e) {
width: m.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var P = hU(C || D) * (Math.abs(D) - Math.abs(C));
+ var P = gU(C || D) * (Math.abs(D) - Math.abs(C));
C += P;
}
}
@@ -91581,7 +91585,7 @@ function A5e(e) {
}).filter(Boolean);
}
function j5e(e) {
- var t = FW(e, O5e), n = X8e(t.stackId), r = SJ();
+ var t = IW(e, O5e), n = X8e(t.stackId), r = CJ();
return /*#__PURE__*/ b.createElement(f3, {
id: t.id,
type: "bar"
@@ -91613,7 +91617,7 @@ function j5e(e) {
hasCustomShape: t.shape != null && t.shape !== g6
}), /*#__PURE__*/ b.createElement(a4, { zIndex: t.zIndex }, /*#__PURE__*/ b.createElement(k5e, b6({}, t, { id: e })))));
}
-var C6 = /*#__PURE__*/ b.memo(j5e, eY);
+var C6 = /*#__PURE__*/ b.memo(j5e, tY);
C6.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
@@ -91642,7 +91646,7 @@ function I5e(e, t) {
function L5e(e, t) {
if (e === t) return !0;
var n = e.domain, r = e.range, i = P5e(e, M5e), a = t.domain, o = t.range, s = P5e(t, N5e);
- return !I5e(n, a) || !I5e(r, o) ? !1 : eY(i, s);
+ return !I5e(n, a) || !I5e(r, o) ? !1 : tY(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
@@ -91722,7 +91726,7 @@ function K5e(e, t) {
return n;
}
function q5e(e) {
- var t = OG(), n = (0, b.useRef)(null), r = HJ(), i = e.type, a = T6(e, R5e), o = JX(r, "xAxis", i), s = (0, b.useMemo)(() => {
+ var t = kG(), n = (0, b.useRef)(null), r = UJ(), i = e.type, a = T6(e, R5e), o = YX(r, "xAxis", i), s = (0, b.useMemo)(() => {
if (o != null) return H5e(H5e({}, a), {}, { type: o });
}, [a, o]);
return (0, b.useLayoutEffect)(() => {
@@ -91735,7 +91739,7 @@ function q5e(e) {
}, [t]), null;
}
var J5e = (e) => {
- var t = e.xAxisId, n = e.className, r = e.height, i = e.label, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = J(xJ), c = SJ(), l = OG(), u = "xAxis", d = J((e) => t2(e, u, t, c)), f = J((e) => J0(e, t)), p = J((e) => pJe(e, t)), m = J((e) => R1(e, t));
+ var t = e.xAxisId, n = e.className, r = e.height, i = e.label, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = J(SJ), c = CJ(), l = kG(), u = "xAxis", d = J((e) => n2(e, u, t, c)), f = J((e) => Y0(e, t)), p = J((e) => fJe(e, t)), m = J((e) => z1(e, t));
if ((0, b.useLayoutEffect)(() => {
if (!(r !== "auto" || !f || C4(i) || /*#__PURE__*/ (0, b.isValidElement)(i) || m == null)) {
var e = a.current;
@@ -91774,31 +91778,31 @@ var J5e = (e) => {
axisId: t
}));
}, Y5e = {
- allowDataOverflow: L1.allowDataOverflow,
- allowDecimals: L1.allowDecimals,
- allowDuplicatedCategory: L1.allowDuplicatedCategory,
- angle: L1.angle,
+ allowDataOverflow: R1.allowDataOverflow,
+ allowDecimals: R1.allowDecimals,
+ allowDuplicatedCategory: R1.allowDuplicatedCategory,
+ angle: R1.angle,
axisLine: X3.axisLine,
- height: L1.height,
+ height: R1.height,
hide: !1,
- includeHidden: L1.includeHidden,
- interval: L1.interval,
+ includeHidden: R1.includeHidden,
+ interval: R1.interval,
label: !1,
- minTickGap: L1.minTickGap,
- mirror: L1.mirror,
- orientation: L1.orientation,
- padding: L1.padding,
- reversed: L1.reversed,
- scale: L1.scale,
- tick: L1.tick,
- tickCount: L1.tickCount,
+ minTickGap: R1.minTickGap,
+ mirror: R1.mirror,
+ orientation: R1.orientation,
+ padding: R1.padding,
+ reversed: R1.reversed,
+ scale: R1.scale,
+ tick: R1.tick,
+ tickCount: R1.tickCount,
tickLine: X3.tickLine,
tickSize: X3.tickSize,
- type: L1.type,
- niceTicks: L1.niceTicks,
+ type: R1.type,
+ niceTicks: R1.niceTicks,
xAxisId: 0
}, X5e = /*#__PURE__*/ b.memo((e) => {
- var t = FW(e, Y5e);
+ var t = IW(e, Y5e);
return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(q5e, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
@@ -91906,7 +91910,7 @@ function a7e(e, t) {
return n;
}
function o7e(e) {
- var t = OG(), n = (0, b.useRef)(null), r = HJ(), i = e.type, a = D6(e, Z5e), o = JX(r, "yAxis", i), s = (0, b.useMemo)(() => {
+ var t = kG(), n = (0, b.useRef)(null), r = UJ(), i = e.type, a = D6(e, Z5e), o = YX(r, "yAxis", i), s = (0, b.useMemo)(() => {
if (o != null) return t7e(t7e({}, a), {}, { type: o });
}, [o, a]);
return (0, b.useLayoutEffect)(() => {
@@ -91919,7 +91923,7 @@ function o7e(e) {
}, [t]), null;
}
function s7e(e) {
- var t = e.yAxisId, n = e.className, r = e.width, i = e.label, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = J(xJ), c = SJ(), l = OG(), u = "yAxis", d = J((e) => Y0(e, t)), f = J((e) => mJe(e, t)), p = J((e) => t2(e, u, t, c)), m = J((e) => V1(e, t));
+ var t = e.yAxisId, n = e.className, r = e.width, i = e.label, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = J(SJ), c = CJ(), l = kG(), u = "yAxis", d = J((e) => X0(e, t)), f = J((e) => pJe(e, t)), p = J((e) => n2(e, u, t, c)), m = J((e) => H1(e, t));
if ((0, b.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || C4(i) || /*#__PURE__*/ (0, b.isValidElement)(i) || m == null)) {
var e = a.current;
@@ -91960,31 +91964,31 @@ function s7e(e) {
}));
}
var c7e = {
- allowDataOverflow: B1.allowDataOverflow,
- allowDecimals: B1.allowDecimals,
- allowDuplicatedCategory: B1.allowDuplicatedCategory,
- angle: B1.angle,
+ allowDataOverflow: V1.allowDataOverflow,
+ allowDecimals: V1.allowDecimals,
+ allowDuplicatedCategory: V1.allowDuplicatedCategory,
+ angle: V1.angle,
axisLine: X3.axisLine,
hide: !1,
- includeHidden: B1.includeHidden,
- interval: B1.interval,
+ includeHidden: V1.includeHidden,
+ interval: V1.interval,
label: !1,
- minTickGap: B1.minTickGap,
- mirror: B1.mirror,
- orientation: B1.orientation,
- padding: B1.padding,
- reversed: B1.reversed,
- scale: B1.scale,
- tick: B1.tick,
- tickCount: B1.tickCount,
+ minTickGap: V1.minTickGap,
+ mirror: V1.mirror,
+ orientation: V1.orientation,
+ padding: V1.padding,
+ reversed: V1.reversed,
+ scale: V1.scale,
+ tick: V1.tick,
+ tickCount: V1.tickCount,
tickLine: X3.tickLine,
tickSize: X3.tickSize,
- type: B1.type,
- niceTicks: B1.niceTicks,
- width: B1.width,
+ type: V1.type,
+ niceTicks: V1.niceTicks,
+ width: V1.width,
yAxisId: 0
}, l7e = /*#__PURE__*/ b.memo((e) => {
- var t = FW(e, c7e);
+ var t = IW(e, c7e);
return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(o7e, {
interval: t.interval,
id: t.yAxisId,
@@ -92016,13 +92020,13 @@ var c7e = {
l7e.displayName = "YAxis";
var O6 = Y([
(e, t) => t,
- BJ,
- sZ,
- hZ,
- z2,
- V2,
+ VJ,
+ cZ,
+ gZ,
+ B2,
+ H2,
gYe,
- yJ
+ bJ
], TYe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
@@ -92046,31 +92050,31 @@ function k6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var d7e = lq("mouseClick"), f7e = Uq();
+var d7e = uq("mouseClick"), f7e = Wq();
f7e.startListening({
actionCreator: d7e,
effect: (e, t) => {
var n = e.payload, r = O6(t.getState(), k6(n));
- r?.activeIndex != null && t.dispatch(wJe({
+ r?.activeIndex != null && t.dispatch(CJe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var A6 = lq("mouseMove"), p7e = Uq(), j6 = null, M6 = null, N6 = null;
+var A6 = uq("mouseMove"), p7e = Wq(), j6 = null, M6 = null, N6 = null;
p7e.startListening({
actionCreator: A6,
effect: (e, t) => {
var n = e.payload, r = t.getState().eventSettings, i = r.throttleDelay, a = r.throttledEvents, o = a === "all" || a?.includes("mousemove");
j6 !== null && (cancelAnimationFrame(j6), j6 = null), M6 !== null && (typeof i != "number" || !o) && (clearTimeout(M6), M6 = null), N6 = k6(n);
var s = () => {
- var e = t.getState(), n = c2(e, e.tooltip.settings.shared);
+ var e = t.getState(), n = l2(e, e.tooltip.settings.shared);
if (!N6) j6 = null, M6 = null;
else {
if (n === "axis") {
var r = O6(e, N6);
- r?.activeIndex == null ? t.dispatch(m2()) : t.dispatch(h2({
+ r?.activeIndex == null ? t.dispatch(h2()) : t.dispatch(g2({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
@@ -92101,17 +92105,17 @@ var h7e = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, g7e = vq({
+}, g7e = yq({
name: "rootProps",
initialState: h7e,
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? h7e.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;
} }
-}), _7e = g7e.reducer, v7e = g7e.actions.updateOptions, y7e = vq({
+}), _7e = g7e.reducer, v7e = g7e.actions.updateOptions, y7e = yq({
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) }
-}), b7e = y7e.actions.updatePolarOptions, x7e = y7e.reducer, S7e = lq("keyDown"), C7e = lq("focus"), w7e = lq("blur"), P6 = Uq(), F6 = null, I6 = null, L6 = null;
+}), b7e = y7e.actions.updatePolarOptions, x7e = y7e.reducer, S7e = uq("keyDown"), C7e = uq("focus"), w7e = uq("blur"), P6 = Wq(), F6 = null, I6 = null, L6 = null;
P6.startListening({
actionCreator: S7e,
effect: (e, t) => {
@@ -92124,20 +92128,20 @@ P6.startListening({
if (e.rootProps.accessibilityLayer === !1) return;
var n = e.tooltip.keyboardInteraction, r = L6;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = x2(n, N2(e), d0(e), L2(e)), a = i == null ? -1 : Number(i), o = !Number.isFinite(a) || a < 0, s = V2(e), c = N2(e), l = c2(e, e.tooltip.settings.shared);
+ var i = S2(n, P2(e), f0(e), R2(e)), a = i == null ? -1 : Number(i), o = !Number.isFinite(a) || a < 0, s = H2(e), c = P2(e), l = l2(e, e.tooltip.settings.shared);
if (r === "Enter") {
if (o) return;
var u = n4(e, l, "hover", String(n.index));
- t.dispatch(_2({
+ t.dispatch(v2({
active: !n.active,
activeIndex: n.index,
activeCoordinate: u
}));
return;
}
- var d = hJe(e) === "left-to-right" ? 1 : -1, f = r === "ArrowRight" ? 1 : -1, p;
+ var d = mJe(e) === "left-to-right" ? 1 : -1, f = r === "ArrowRight" ? 1 : -1, p;
if (o) {
- var m = d0(e), h = L2(e), g = f * d, _ = (e) => ({
+ var m = f0(e), h = R2(e), g = f * d, _ = (e) => ({
active: !1,
index: String(e),
dataKey: void 0,
@@ -92145,11 +92149,11 @@ P6.startListening({
coordinate: void 0
});
if (p = -1, g > 0) {
- for (var v = 0; v < c.length; v++) if (x2(_(v), c, m, h) != null) {
+ for (var v = 0; v < c.length; v++) if (S2(_(v), c, m, h) != null) {
p = v;
break;
}
- } else for (var y = c.length - 1; y >= 0; y--) if (x2(_(y), c, m, h) != null) {
+ } else for (var y = c.length - 1; y >= 0; y--) if (S2(_(y), c, m, h) != null) {
p = y;
break;
}
@@ -92160,7 +92164,7 @@ P6.startListening({
if (b === 0 || p >= b || p < 0) return;
}
var x = n4(e, l, "hover", String(p));
- t.dispatch(_2({
+ t.dispatch(v2({
active: !0,
activeIndex: p.toString(),
activeCoordinate: x
@@ -92180,8 +92184,8 @@ P6.startListening({
if (n.rootProps.accessibilityLayer !== !1) {
var r = n.tooltip.keyboardInteraction;
if (!r.active && r.index == null) {
- var i = "0", a = n4(n, c2(n, n.tooltip.settings.shared), "hover", String(i));
- t.dispatch(_2({
+ var i = "0", a = n4(n, l2(n, n.tooltip.settings.shared), "hover", String(i));
+ t.dispatch(v2({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -92195,7 +92199,7 @@ P6.startListening({
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var r = n.tooltip.keyboardInteraction;
- r.active && t.dispatch(_2({
+ r.active && t.dispatch(v2({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -92216,7 +92220,7 @@ function T7e(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var R6 = lq("externalEvent"), E7e = Uq(), z6 = /* @__PURE__ */ new Map(), B6 = /* @__PURE__ */ new Map(), V6 = /* @__PURE__ */ new Map();
+var R6 = uq("externalEvent"), E7e = Wq(), z6 = /* @__PURE__ */ new Map(), B6 = /* @__PURE__ */ new Map(), V6 = /* @__PURE__ */ new Map();
E7e.startListening({
actionCreator: R6,
effect: (e, t) => {
@@ -92236,12 +92240,12 @@ E7e.startListening({
try {
if (!e) return;
var n = e.handler, r = e.reactEvent, i = t.getState(), o = {
- activeCoordinate: ZJe(i),
- activeDataKey: J2(i),
- activeIndex: K2(i),
- activeLabel: q2(i),
- activeTooltipIndex: K2(i),
- isTooltipActive: QJe(i)
+ activeCoordinate: XJe(i),
+ activeDataKey: Y2(i),
+ activeIndex: q2(i),
+ activeLabel: J2(i),
+ activeTooltipIndex: q2(i),
+ isTooltipActive: ZJe(i)
};
n && n(o, r);
} finally {
@@ -92263,7 +92267,7 @@ E7e.startListening({
}
});
var D7e = Y([
- Y([T2], (e) => e.tooltipItemPayloads),
+ Y([E2], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -92274,7 +92278,7 @@ var D7e = Y([
if (i != null) return i(t);
}
}
-}), O7e = lq("touchMove"), k7e = Uq(), H6 = null, U6 = null, A7e = null, W6 = null;
+}), O7e = uq("touchMove"), k7e = Wq(), H6 = null, U6 = null, A7e = null, W6 = null;
k7e.startListening({
actionCreator: O7e,
effect: (e, t) => {
@@ -92289,7 +92293,7 @@ k7e.startListening({
}));
var s = () => {
if (W6 != null) {
- var e = t.getState(), n = c2(e, e.tooltip.settings.shared);
+ var e = t.getState(), n = l2(e, e.tooltip.settings.shared);
if (n === "axis") {
var r = A7e?.[0];
if (r == null) {
@@ -92297,7 +92301,7 @@ k7e.startListening({
return;
}
var i = O6(e, r);
- i?.activeIndex != null && t.dispatch(h2({
+ i?.activeIndex != null && t.dispatch(g2({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
@@ -92307,10 +92311,10 @@ k7e.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(iVe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = j2(e).find((e) => e.id === c);
+ var s = o.getAttribute(rVe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = M2(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
var u = l.dataKey, d = D7e(e, s, c);
- t.dispatch(p2({
+ t.dispatch(m2({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
@@ -92337,32 +92341,32 @@ var G6 = {
"scroll",
"wheel"
]
-}, j7e = vq({
+}, j7e = yq({
name: "eventSettings",
initialState: G6,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = sq(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = cq(t.payload.throttledEvents));
} }
-}), M7e = j7e.actions.setEventSettings, N7e = j7e.reducer, P7e = XG({
+}), M7e = j7e.actions.setEventSettings, N7e = j7e.reducer, P7e = ZG({
brush: a4e,
cartesianAxis: u0e,
chartData: aXe,
errorBars: s6e,
eventSettings: N7e,
graphicalItems: R1e,
- layout: GBe,
- legend: BVe,
+ layout: WBe,
+ legend: zVe,
options: $Ye,
polarAxis: i$e,
polarOptions: x7e,
referenceElements: p4e,
renderedTicks: o3e,
rootProps: _7e,
- tooltip: TJe,
+ tooltip: wJe,
zIndex: BYe
}), F7e = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return _Be({
+ return gBe({
reducer: P7e,
preloadedState: e,
middleware: (e) => e({
@@ -92381,9 +92385,9 @@ var G6 = {
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(gq({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(_q({ type: "raf" }));
},
- devTools: pY.devToolsEnabled && {
+ devTools: mY.devToolsEnabled && {
serialize: { replacer: m7e },
name: `recharts-${t}`
}
@@ -92392,11 +92396,11 @@ var G6 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function I7e(e) {
- var t = e.preloadedState, n = e.children, r = e.reduxStoreName, i = SJ(), a = (0, b.useRef)(null);
+ var t = e.preloadedState, n = e.children, r = e.reduxStoreName, i = CJ(), a = (0, b.useRef)(null);
if (i) return n;
a.current ??= F7e(t, r);
- var o = DG;
- return /*#__PURE__*/ b.createElement(eHe, {
+ var o = OG;
+ return /*#__PURE__*/ b.createElement($Ve, {
context: o,
store: a.current
}, n);
@@ -92404,9 +92408,9 @@ function I7e(e) {
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
function L7e(e) {
- var t = e.layout, n = e.margin, r = OG(), i = SJ();
+ var t = e.layout, n = e.margin, r = kG(), i = CJ();
return (0, b.useEffect)(() => {
- i || (r(HBe(t)), r(VBe(n)));
+ i || (r(VBe(t)), r(BBe(n)));
}, [
r,
i,
@@ -92414,25 +92418,25 @@ function L7e(e) {
n
]), null;
}
-var R7e = /*#__PURE__*/ (0, b.memo)(L7e, eY);
+var R7e = /*#__PURE__*/ (0, b.memo)(L7e, tY);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function z7e(e) {
- var t = OG();
+ var t = kG();
return (0, b.useEffect)(() => {
t(v7e(e));
}, [t, e]), null;
}
var B7e = /*#__PURE__*/ (0, b.memo)((e) => {
- var t = OG();
+ var t = kG();
return (0, b.useEffect)(() => {
t(M7e(e));
}, [t, e]), null;
-}, eY);
+}, tY);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function V7e(e) {
- var t = e.zIndex, n = e.isPanorama, r = (0, b.useRef)(null), i = OG();
+ var t = e.zIndex, n = e.isPanorama, r = (0, b.useRef)(null), i = kG();
return (0, b.useLayoutEffect)(() => (r.current && i(RYe({
zIndex: t,
element: r.current,
@@ -92501,10 +92505,10 @@ var K7e = {
height: "100%",
display: "block"
}, q7e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = RJ(), r = zJ(), i = yY();
- if (!Yq(n) || !Yq(r)) return null;
+ var n = zJ(), r = BJ(), i = bY();
+ if (!Xq(n) || !Xq(r)) return null;
var a = e.children, o = e.otherAttributes, s = e.title, c = e.desc, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ b.createElement(rU, K6({}, o, {
+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ b.createElement(iU, K6({}, o, {
title: s,
desc: c,
role: u,
@@ -92515,10 +92519,10 @@ var K7e = {
ref: t
}), a);
}), J7e = (e) => {
- var t = e.children, n = J(wJ);
+ var t = e.children, n = J(TJ);
if (!n) return null;
var r = n.width, i = n.height, a = n.y, o = n.x;
- return /*#__PURE__*/ b.createElement(rU, {
+ return /*#__PURE__*/ b.createElement(iU, {
width: r,
height: i,
x: o,
@@ -92526,7 +92530,7 @@ var K7e = {
}, t);
}, Y7e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
var n = e.children, r = W7e(e, U7e);
- return SJ() ? /*#__PURE__*/ b.createElement(J7e, null, /*#__PURE__*/ b.createElement(H7e, { isPanorama: !0 }, n)) : /*#__PURE__*/ b.createElement(q7e, K6({ ref: t }, r), /*#__PURE__*/ b.createElement(H7e, { isPanorama: !1 }, n));
+ return CJ() ? /*#__PURE__*/ b.createElement(J7e, null, /*#__PURE__*/ b.createElement(H7e, { isPanorama: !0 }, n)) : /*#__PURE__*/ b.createElement(q7e, K6({ ref: t }, r), /*#__PURE__*/ b.createElement(H7e, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
@@ -92573,11 +92577,11 @@ function t9e(e) {
if (Array.isArray(e)) return e;
}
function n9e() {
- var e = OG(), t = X7e((0, b.useState)(null), 2), n = t[0], r = t[1], i = J(rVe);
+ var e = kG(), t = X7e((0, b.useState)(null), 2), n = t[0], r = t[1], i = J(nVe);
return (0, b.useEffect)(() => {
if (n != null) {
var t = n.getBoundingClientRect().width / n.offsetWidth;
- Jq(t) && t !== i && e(WBe(t));
+ Yq(t) && t !== i && e(UBe(t));
}
}, [
n,
@@ -92718,7 +92722,7 @@ var m9e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
}, [t, o]);
return (0, b.useEffect)(() => () => {
n.current?.disconnect();
- }, [o]), /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(GJ, {
+ }, [o]), /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(KJ, {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ b.createElement("div", q6({ ref: s }, e)));
@@ -92740,13 +92744,13 @@ var m9e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
s(r, i);
}
}, [t, s]);
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(GJ, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(KJ, {
width: a.containerWidth,
height: a.containerHeight
}), /*#__PURE__*/ b.createElement("div", q6({ ref: c }, e)));
}), g9e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
var n = e.width, r = e.height;
- return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(GJ, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(KJ, {
width: n,
height: r
}), /*#__PURE__*/ b.createElement("div", q6({ ref: t }, e)));
@@ -92756,7 +92760,7 @@ var m9e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(GJ, {
+ })) : /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(KJ, {
width: n,
height: r
}), /*#__PURE__*/ b.createElement("div", q6({ ref: t }, e)));
@@ -92765,7 +92769,7 @@ function v9e(e) {
return e ? m9e : _9e;
}
var y9e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.children, r = e.className, i = e.height, a = e.onClick, o = e.onContextMenu, s = e.onDoubleClick, c = e.onMouseDown, l = e.onMouseEnter, u = e.onMouseLeave, d = e.onMouseMove, f = e.onMouseUp, p = e.onTouchEnd, m = e.onTouchMove, h = e.onTouchStart, g = e.style, _ = e.width, v = e.responsive, y = e.dispatchTouchEvents, x = y === void 0 || y, S = (0, b.useRef)(null), C = OG(), w = J6((0, b.useState)(null), 2), T = w[0], E = w[1], D = J6((0, b.useState)(null), 2), O = D[0], k = D[1], A = n9e(), j = PJ(), M = j?.width > 0 ? j.width : _, N = j?.height > 0 ? j.height : i, P = (0, b.useCallback)((e) => {
+ var n = e.children, r = e.className, i = e.height, a = e.onClick, o = e.onContextMenu, s = e.onDoubleClick, c = e.onMouseDown, l = e.onMouseEnter, u = e.onMouseLeave, d = e.onMouseMove, f = e.onMouseUp, p = e.onTouchEnd, m = e.onTouchMove, h = e.onTouchStart, g = e.style, _ = e.width, v = e.responsive, y = e.dispatchTouchEvents, x = y === void 0 || y, S = (0, b.useRef)(null), C = kG(), w = J6((0, b.useState)(null), 2), T = w[0], E = w[1], D = J6((0, b.useState)(null), 2), O = D[0], k = D[1], A = n9e(), j = FJ(), M = j?.width > 0 ? j.width : _, N = j?.height > 0 ? j.height : i, P = (0, b.useCallback)((e) => {
A(e), typeof t == "function" && t(e), E(e), k(e), e != null && (S.current = e);
}, [
A,
@@ -92783,7 +92787,7 @@ var y9e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
reactEvent: e
}));
}, [C, l]), te = (0, b.useCallback)((e) => {
- C(m2()), C(R6({
+ C(h2()), C(R6({
handler: u,
reactEvent: e
}));
@@ -92838,7 +92842,7 @@ var y9e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
reactEvent: e
}));
}, [C, p]), fe = v9e(v);
- return /*#__PURE__*/ b.createElement(JYe.Provider, { value: T }, /*#__PURE__*/ b.createElement(PU.Provider, { value: O }, /*#__PURE__*/ b.createElement(fe, {
+ return /*#__PURE__*/ b.createElement(JYe.Provider, { value: T }, /*#__PURE__*/ b.createElement(FU.Provider, { value: O }, /*#__PURE__*/ b.createElement(fe, {
width: M ?? g?.width,
height: N ?? g?.height,
className: hy("recharts-wrapper", r),
@@ -92894,8 +92898,8 @@ function S9e(e, t) {
return n;
}
var C9e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = e.width, r = e.height, i = e.responsive, a = e.children, o = e.className, s = e.style, c = e.compact, l = e.title, u = e.desc, d = $H(x9e(e, b9e));
- return c ? /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(GJ, {
+ var n = e.width, r = e.height, i = e.responsive, a = e.children, o = e.className, s = e.style, c = e.compact, l = e.title, u = e.desc, d = eU(x9e(e, b9e));
+ return c ? /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(KJ, {
width: n,
height: r
}), /*#__PURE__*/ b.createElement(Y7e, {
@@ -92996,7 +93000,7 @@ var k9e = T9e({
stackOffset: "none",
syncMethod: "index"
}, G6), Z6 = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- var n = FW(e.categoricalChartProps, k9e), r = e.chartName, i = e.defaultTooltipEventType, a = e.validateTooltipEventTypes, o = e.tooltipPayloadSearcher, s = e.categoricalChartProps, c = {
+ var n = IW(e.categoricalChartProps, k9e), r = e.chartName, i = e.defaultTooltipEventType, a = e.validateTooltipEventTypes, o = e.tooltipPayloadSearcher, s = e.categoricalChartProps, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -93043,7 +93047,7 @@ var k9e = T9e({
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
function P9e(e) {
- var t = OG();
+ var t = kG();
return (0, b.useEffect)(() => {
t(b7e(e));
}, [t, e]), null;
@@ -93141,7 +93145,7 @@ var $6 = z9e({
innerRadius: 0,
outerRadius: "80%"
}, G6), U9e = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
- var n = FW(e.categoricalChartProps, $6), r = n.layout, i = I9e(n, F9e), a = e.chartName, o = {
+ var n = IW(e.categoricalChartProps, $6), r = n.layout, i = I9e(n, F9e), a = e.chartName, o = {
chartName: a,
defaultTooltipEventType: e.defaultTooltipEventType,
validateTooltipEventTypes: e.validateTooltipEventTypes,
@@ -93228,7 +93232,7 @@ var Y9e = ["axis"], X9e = G9e(G9e({}, $6), {}, {
startAngle: 90,
endAngle: -270
}), Z9e = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = FW(e, X9e);
+ var n = IW(e, X9e);
return /*#__PURE__*/ b.createElement(U9e, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
@@ -93295,7 +93299,7 @@ var aet = ["axis", "item"], oet = tet(tet({}, $6), {}, {
startAngle: 0,
endAngle: 360
}), set = /*#__PURE__*/ (0, b.forwardRef)((e, t) => {
- var n = FW(e, oet);
+ var n = IW(e, oet);
return /*#__PURE__*/ b.createElement(U9e, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
@@ -93308,7 +93312,7 @@ var aet = ["axis", "item"], oet = tet(tet({}, $6), {}, {
//#endregion
//#region src/react/charts/cn.ts
function e8(...e) {
- return xk(hy(e));
+ return Sk(hy(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
@@ -93342,7 +93346,7 @@ function r8({ id: e, config: t, initialDimension: n = {
id: c,
config: t
}),
- /* @__PURE__ */ (0, x.jsx)(FJ, {
+ /* @__PURE__ */ (0, x.jsx)(IJ, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -93538,7 +93542,7 @@ function bet(e, t) {
...n
};
}
-var u8 = aY, d8 = () => null, xet = {
+var u8 = oY, d8 = () => null, xet = {
stiffness: 300,
damping: 35,
mass: .8
@@ -93805,7 +93809,7 @@ function Eet({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, x.jsx)(FJ, {
+ if (r === "line") return /* @__PURE__ */ (0, x.jsx)(IJ, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, x.jsxs)(j9e, {
@@ -93832,7 +93836,7 @@ function Eet({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, x.jsx)(FJ, {
+ return /* @__PURE__ */ (0, x.jsx)(IJ, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, x.jsxs)(N9e, {
@@ -93861,7 +93865,7 @@ function Eet({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, x.jsx)(FJ, {
+ return /* @__PURE__ */ (0, x.jsx)(IJ, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, x.jsxs)($9e, {
@@ -94360,7 +94364,7 @@ var Uet = (e) => {
c,
0,
0
- ] : c, j = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(eX, {
+ ] : c, j = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(tX, {
x: t,
y: n,
width: r,
@@ -94371,7 +94375,7 @@ var Uet = (e) => {
filter: D,
stroke: C ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: C ? 1 : void 0
- }), w && /* @__PURE__ */ (0, x.jsx)(eX, {
+ }), w && /* @__PURE__ */ (0, x.jsx)(tX, {
x: t,
y: n - 4,
width: r,
@@ -94382,7 +94386,7 @@ var Uet = (e) => {
return /* @__PURE__ */ (0, x.jsxs)("g", {
style: k,
onClick: b,
- children: [/* @__PURE__ */ (0, x.jsx)(eX, {
+ children: [/* @__PURE__ */ (0, x.jsx)(tX, {
...e,
fill: "transparent"
}), T ? /* @__PURE__ */ (0, x.jsx)(R_.g, {
@@ -94856,7 +94860,7 @@ var rtt = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, x.jsxs)(x.Fr
m8.Bar = Let, m8.XAxis = Ret, m8.YAxis = zet, m8.Grid = Bet, m8.Tooltip = Vet, m8.Legend = Het, m8.Brush = d8;
//#endregion
//#region src/react/charts/chart-card.tsx
-var h8 = `${Dk({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+var h8 = `${Ok({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
function g8({ title: e, children: t }) {
return /* @__PURE__ */ (0, x.jsxs)("section", {
className: h8,
@@ -95294,7 +95298,7 @@ function Dtt({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, x.jsx)(BO, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, x.jsx)(VO, { "aria-hidden": !0 })
}) : null]
});
}
@@ -95384,7 +95388,7 @@ function Ftt({ dataKey: e, cornerRadius: t = Att, barSize: n = jtt, showBackgrou
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, x.jsx)(dX, {
+ return /* @__PURE__ */ (0, x.jsx)(fX, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -95483,7 +95487,7 @@ var Htt = () => /* @__PURE__ */ (0, x.jsx)(B3, {
isAnimationActive: !0,
animationDuration: Ntt,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, x.jsx)(dX, {
+ shape: (e) => /* @__PURE__ */ (0, x.jsx)(fX, {
...e,
fill: "currentColor",
fillOpacity: .25
@@ -95508,15 +95512,15 @@ var Utt = [
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
function Gtt({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
- let [i, a] = (0, b.useState)(-1), [o, s] = (0, b.useState)(-1), c = xLe(t);
+ let [i, a] = (0, b.useState)(-1), [o, s] = (0, b.useState)(-1), c = bLe(t);
if (!c.length) return /* @__PURE__ */ (0, x.jsx)(g8, {
title: e,
children: n
});
- let l = o >= 0 ? o : i, u = c.reduce((e, t) => e + t.value, 0), d = c[l], f = (e) => a((t) => t === e ? -1 : e), p = SLe(c.map((e) => e.value)), m = c.map((e, t) => ({
+ let l = o >= 0 ? o : i, u = c.reduce((e, t) => e + t.value, 0), d = c[l], f = (e) => a((t) => t === e ? -1 : e), p = xLe(c.map((e) => e.value)), m = c.map((e, t) => ({
slice: C8(t),
value: e.value,
- arc: CLe(e.value, p)
+ arc: SLe(e.value, p)
}));
return /* @__PURE__ */ (0, x.jsxs)("section", {
className: h8,
@@ -95527,7 +95531,7 @@ function Gtt({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, x.jsxs)("h3", {
className: "flex items-center gap-1.5 text-title-2-medium wrap-anywhere text-text-primary",
- children: [d?.mark ? /* @__PURE__ */ (0, x.jsx)(Xk, { mark: d.mark }) : null, d ? d.name : e]
+ children: [d?.mark ? /* @__PURE__ */ (0, x.jsx)(Zk, { mark: d.mark }) : null, d ? d.name : e]
}), /* @__PURE__ */ (0, x.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: (d ? d.value : u).toLocaleString()
@@ -95550,9 +95554,9 @@ function Gtt({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
className: "aspect-auto h-75 max-sm:h-65",
children: [/* @__PURE__ */ (0, x.jsx)(A8.RadialBar, {
dataKey: "arc",
- barSize: wLe(c.length),
+ barSize: CLe(c.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, x.jsx)(dX, {
+ shape: (e) => /* @__PURE__ */ (0, x.jsx)(fX, {
...e,
opacity: l >= 0 && l !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -95586,7 +95590,7 @@ function Gtt({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
className: `mt-0.5 size-3 shrink-0 rounded-sm ${Utt[t % 6]}`
}), /* @__PURE__ */ (0, x.jsxs)("span", {
className: "inline-flex min-w-0 items-start gap-1.5 wrap-anywhere",
- children: [e.mark ? /* @__PURE__ */ (0, x.jsx)(Xk, { mark: e.mark }) : null, e.name]
+ children: [e.mark ? /* @__PURE__ */ (0, x.jsx)(Zk, { mark: e.mark }) : null, e.name]
})]
}),
/* @__PURE__ */ (0, x.jsx)("b", {
@@ -95605,7 +95609,7 @@ function Gtt({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var Ktt = 10, j8 = x8[5], qtt = x8[4], Jtt = `${Dk()} flex flex-col gap-4`, M8 = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Ytt = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", Xtt = "开始播放后,这里会显示最近的真实观看证据。", Ztt = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Qtt = "添加媒体文件夹后,这里会显示存储空间。", $tt = "把媒体文件夹归进媒体库后,这里会按库显示视频数。", ent = "探测时长后,这里会显示时长分布。", tnt = "探测画质后,这里会显示画质分布。", nnt = "开始播放后,这里会显示播放落在一周的哪些时段。", rnt = "开始播放后,这里会显示每个作品播了几次。", N8 = (e, t) => Math.min(Math.max(e, 0), t);
+var Ktt = 10, j8 = x8[5], qtt = x8[4], Jtt = `${Ok()} flex flex-col gap-4`, M8 = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Ytt = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", Xtt = "开始播放后,这里会显示最近的真实观看证据。", Ztt = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Qtt = "添加媒体文件夹后,这里会显示存储空间。", $tt = "把媒体文件夹归进媒体库后,这里会按库显示视频数。", ent = "探测时长后,这里会显示时长分布。", tnt = "探测画质后,这里会显示画质分布。", nnt = "开始播放后,这里会显示播放落在一周的哪些时段。", rnt = "开始播放后,这里会显示每个作品播了几次。", N8 = (e, t) => Math.min(Math.max(e, 0), t);
function P8({ term: e, value: t }) {
return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -95614,7 +95618,7 @@ function P8({ term: e, value: t }) {
children: e
}), /* @__PURE__ */ (0, x.jsx)("b", {
className: "text-title-3-medium tabular-nums text-text-primary",
- children: WH(t)
+ children: GH(t)
})]
});
}
@@ -95626,14 +95630,14 @@ function F8({ term: e, value: t, total: n }) {
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
children: [/* @__PURE__ */ (0, x.jsx)("span", { children: e }), /* @__PURE__ */ (0, x.jsxs)("b", {
className: "tabular-nums",
- children: [WH(t), UH(t) ? /* @__PURE__ */ (0, x.jsx)("span", {
+ children: [GH(t), WH(t) ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: GH(t, n)
+ children: KH(t, n)
}) : null]
})]
- }), /* @__PURE__ */ (0, x.jsx)(Mk, {
- label: `${e}:${WH(t)} / ${n.toLocaleString()}`,
- value: UH(t) ? N8(t, r) : 0,
+ }), /* @__PURE__ */ (0, x.jsx)(Nk, {
+ label: `${e}:${GH(t)} / ${n.toLocaleString()}`,
+ value: WH(t) ? N8(t, r) : 0,
max: r
})]
});
@@ -95698,7 +95702,7 @@ function int({ data: e, configurable: t, openMediaSettings: n }) {
unit: "个视频",
series: "视频",
color: j8,
- rows: OLe(e.by_length),
+ rows: DLe(e.by_length),
empty: ent
}),
/* @__PURE__ */ (0, x.jsx)(E8, {
@@ -95706,7 +95710,7 @@ function int({ data: e, configurable: t, openMediaSettings: n }) {
unit: "个视频",
series: "视频",
color: j8,
- rows: YH(e.by_quality),
+ rows: XH(e.by_quality),
empty: tnt
}),
/* @__PURE__ */ (0, x.jsx)(E8, {
@@ -95715,20 +95719,20 @@ function int({ data: e, configurable: t, openMediaSettings: n }) {
series: "条目",
color: j8,
layout: "horizontal",
- rows: ELe(e.by_medium),
+ rows: TLe(e.by_medium),
empty: M8
})
]
})]
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: yhe,
+ icon: vhe,
title: "还没有视频",
actions: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [t ? /* @__PURE__ */ (0, x.jsx)(G, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, x.jsx)(Ek, {
+ }) : null, /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
href: "/subscriptions?tab=add",
size: "small",
@@ -95754,7 +95758,7 @@ function ant({ data: e }) {
unit: "个作品",
series: "作品",
color: qtt,
- rows: ALe(e.replays),
+ rows: kLe(e.replays),
empty: rnt
})] });
}
@@ -95808,11 +95812,11 @@ function snt({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [Qt(n), /* @__PURE__ */ (0, x.jsx)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: GH(n, t)
+ children: KH(n, t)
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, x.jsx)(Mk, {
+ t == null ? null : /* @__PURE__ */ (0, x.jsx)(Nk, {
label: `${e.label}空间使用率`,
value: N8(n, Math.max(t, 1)),
max: Math.max(t, 1)
@@ -95834,9 +95838,9 @@ function cnt({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col",
children: e.map((e) => /* @__PURE__ */ (0, x.jsx)(snt, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: JO,
+ icon: YO,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, x.jsx)(G, {
size: "small",
@@ -95872,11 +95876,11 @@ function lnt({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, `${e.k}:${r}`))
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: XO,
+ icon: ZO,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, x.jsx)(Ek, {
+ actions: /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
@@ -95889,7 +95893,7 @@ function unt({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = qH(e);
+ let t = JH(e);
return /* @__PURE__ */ (0, x.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -95897,7 +95901,7 @@ function unt({ rows: e }) {
children: [/* @__PURE__ */ (0, x.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, x.jsx)("a", {
- href: bLe(e),
+ href: yLe(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
@@ -95907,25 +95911,25 @@ function unt({ rows: e }) {
children: [e.creator ? /* @__PURE__ */ (0, x.jsx)("span", {
className: "min-w-0 wrap-anywhere",
children: e.creator
- }) : null, /* @__PURE__ */ (0, x.jsx)("span", { children: yLe(e) })]
+ }) : null, /* @__PURE__ */ (0, x.jsx)("span", { children: vLe(e) })]
})]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, x.jsx)(Mk, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Nk, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, x.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${JH(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${YH(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: YO,
+ icon: XO,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, x.jsx)(Ek, {
+ actions: /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
href: "/",
size: "small",
@@ -95953,7 +95957,7 @@ function dnt({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, x.jsx)(Mk, {
+ /* @__PURE__ */ (0, x.jsx)(Nk, {
label: `${e.k} 覆盖视频`,
value: N8(e.assets, Math.max(t, 1)),
max: Math.max(t, 1)
@@ -95964,11 +95968,11 @@ function dnt({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: XO,
+ icon: ZO,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, x.jsx)(Ek, {
+ actions: /* @__PURE__ */ (0, x.jsx)(Dk, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
@@ -95978,13 +95982,13 @@ function dnt({ sources: e, videos: t }) {
});
}
function R8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, x.jsx)(cN, {
+ return /* @__PURE__ */ (0, x.jsx)(lN, {
id: e,
- className: SI({
+ className: CI({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, x.jsx)(EI, {
+ children: /* @__PURE__ */ (0, x.jsx)(DI, {
label: t,
icon: i,
accent: a,
@@ -95995,32 +95999,32 @@ function R8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
}
function fnt(e) {
let t = dt({
- queryKey: VH,
- queryFn: ({ signal: e }) => HH(e)
+ queryKey: HH,
+ queryFn: ({ signal: e }) => UH(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, x.jsx)(Ak, { children: /* @__PURE__ */ (0, x.jsx)(K, {
+ if (!n) return /* @__PURE__ */ (0, x.jsx)(jk, { children: /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? B(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = UH(n.tag_cov) ? GH(n.tag_cov, n.attribution.videos) : "未取得", c = `${WH(n.tag_cov)} / ${n.attribution.videos.toLocaleString()}`;
- return /* @__PURE__ */ (0, x.jsxs)(Ak, { children: [
+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = WH(n.tag_cov) ? KH(n.tag_cov, n.attribution.videos) : "未取得", c = `${GH(n.tag_cov)} / ${n.attribution.videos.toLocaleString()}`;
+ return /* @__PURE__ */ (0, x.jsxs)(jk, { children: [
/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${Qt(o)}`
}),
- /* @__PURE__ */ (0, x.jsxs)(oN, {
+ /* @__PURE__ */ (0, x.jsxs)(sN, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, x.jsxs)(sN, {
+ /* @__PURE__ */ (0, x.jsxs)(cN, {
"aria-label": "统计视图",
- className: CI,
+ className: wI,
children: [
/* @__PURE__ */ (0, x.jsx)(R8, {
id: "inventory",
label: "馆藏视频",
- icon: GO,
+ icon: KO,
accent: 0,
figure: a.toLocaleString(),
detail: Qt(o)
@@ -96028,15 +96032,15 @@ function fnt(e) {
/* @__PURE__ */ (0, x.jsx)(R8, {
id: "viewing",
label: "看过",
- icon: $me,
+ icon: Qme,
accent: 1,
- figure: WH(r.played),
- detail: KH(r.play_seconds)
+ figure: GH(r.played),
+ detail: qH(r.play_seconds)
}),
/* @__PURE__ */ (0, x.jsx)(R8, {
id: "coverage",
label: "内容标签",
- icon: XO,
+ icon: ZO,
accent: 2,
figure: s,
detail: c
@@ -96044,27 +96048,27 @@ function fnt(e) {
/* @__PURE__ */ (0, x.jsx)(R8, {
id: "storage",
label: "使用空间",
- icon: JO,
+ icon: YO,
accent: 3,
figure: `${i.online.toLocaleString()} 个卷`,
detail: i.measured ? `已用 ${Qt(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, x.jsx)(lN, {
+ /* @__PURE__ */ (0, x.jsx)(uN, {
id: "inventory",
children: /* @__PURE__ */ (0, x.jsx)(int, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, x.jsxs)(lN, {
+ /* @__PURE__ */ (0, x.jsxs)(uN, {
id: "viewing",
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, x.jsx)(L8, {
headline: /* @__PURE__ */ (0, x.jsx)(I8, {
term: "观看",
- figure: WH(r.played),
+ figure: GH(r.played),
unit: "个作品有播放记录"
}),
children: /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -96106,7 +96110,7 @@ function fnt(e) {
})
}), /* @__PURE__ */ (0, x.jsx)(ant, { data: n })]
}),
- /* @__PURE__ */ (0, x.jsx)(lN, {
+ /* @__PURE__ */ (0, x.jsx)(uN, {
id: "coverage",
children: /* @__PURE__ */ (0, x.jsx)(L8, {
headline: /* @__PURE__ */ (0, x.jsx)(I8, {
@@ -96117,7 +96121,7 @@ function fnt(e) {
children: /* @__PURE__ */ (0, x.jsx)(ont, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, x.jsx)(lN, {
+ /* @__PURE__ */ (0, x.jsx)(uN, {
id: "storage",
children: /* @__PURE__ */ (0, x.jsx)(L8, {
headline: /* @__PURE__ */ (0, x.jsx)(I8, {
@@ -96133,35 +96137,35 @@ function fnt(e) {
})
]
}),
- /* @__PURE__ */ (0, x.jsxs)(oN, {
+ /* @__PURE__ */ (0, x.jsxs)(sN, {
defaultSelectedKey: "tags",
- className: `${Dk({ padding: "none" })} flex flex-col`,
+ className: `${Ok({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, x.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, x.jsxs)(jN, {
+ children: /* @__PURE__ */ (0, x.jsxs)(MN, {
"aria-label": "统计维度",
- className: NN,
+ className: PN,
children: [
- /* @__PURE__ */ (0, x.jsx)(cN, {
+ /* @__PURE__ */ (0, x.jsx)(lN, {
id: "tags",
- className: PN,
+ className: FN,
children: "内容标签"
}),
- /* @__PURE__ */ (0, x.jsx)(cN, {
+ /* @__PURE__ */ (0, x.jsx)(lN, {
id: "recent",
- className: PN,
+ className: FN,
children: "最近看过"
}),
- /* @__PURE__ */ (0, x.jsx)(cN, {
+ /* @__PURE__ */ (0, x.jsx)(lN, {
id: "sources",
- className: PN,
+ className: FN,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, x.jsx)(lN, {
+ /* @__PURE__ */ (0, x.jsx)(uN, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, x.jsx)(lnt, {
@@ -96169,12 +96173,12 @@ function fnt(e) {
...e
})
}),
- /* @__PURE__ */ (0, x.jsx)(lN, {
+ /* @__PURE__ */ (0, x.jsx)(uN, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, x.jsx)(unt, { rows: n.recent })
}),
- /* @__PURE__ */ (0, x.jsx)(lN, {
+ /* @__PURE__ */ (0, x.jsx)(uN, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, x.jsx)(dnt, {
@@ -96278,7 +96282,7 @@ function xnt() {
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(IZ(t.sourceLinks, V8), IZ(t.targetLinks, V8)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(LZ(t.sourceLinks, V8), LZ(t.targetLinks, V8)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -96303,7 +96307,7 @@ function xnt() {
}
}
function y({ nodes: t }) {
- let r = MZ(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = NZ(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -96312,7 +96316,7 @@ function xnt() {
return o;
}
function b(e) {
- let n = NZ(e, (e) => (r - t - (e.length - 1) * o) / IZ(e, V8));
+ let n = PZ(e, (e) => (r - t - (e.length - 1) * o) / LZ(e, V8));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -96329,7 +96333,7 @@ function xnt() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (MZ(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (NZ(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -96581,7 +96585,7 @@ function Xnt(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
return !e.range_start && !e.range_end ? t : `${t} · ${q8(e.range_start)}—${q8(e.range_end)}`;
}
-var Znt = KH, Qnt = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), $nt = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+var Znt = qH, Qnt = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), $nt = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
function ert(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
@@ -97298,7 +97302,7 @@ function Jrt({ browsers: e, range: t }) {
}
});
return /* @__PURE__ */ (0, x.jsxs)("section", {
- className: `${Dk()} flex flex-col gap-4`,
+ className: `${Ok()} flex flex-col gap-4`,
"aria-label": "浏览器同步",
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
@@ -97332,7 +97336,7 @@ function Jrt({ browsers: e, range: t }) {
});
},
children: [
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "浏览器名称",
value: i,
onChange: a,
@@ -97340,7 +97344,7 @@ function Jrt({ browsers: e, range: t }) {
isRequired: !0,
isDisabled: c.isPending
}),
- /* @__PURE__ */ (0, x.jsx)(mN, {
+ /* @__PURE__ */ (0, x.jsx)(hN, {
label: "资料目录或历史文件",
value: o,
onChange: s,
@@ -97417,11 +97421,11 @@ function Jrt({ browsers: e, range: t }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var Yrt = 10, Xrt = xk(kI, AI, "text-body-2-medium"), Z8 = `${Dk()} flex flex-col gap-4`, Q8 = "rounded-xl bg-background-primary-default p-3", Zrt = "读取运行 Peach 的这台电脑上的浏览记录", Qrt = "导入或读取浏览记录后,这里会列出已采集设备。", $rt = "馆藏里暂时没有对得上浏览信号的标签。", eit = "采集浏览记录后,这里会显示聚合后的口味证据。", tit = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", nit = "采集浏览记录后,这里会列出浏览过的标签。", rit = "采集浏览记录后,这里会列出浏览过的创作者。", iit = "采集浏览记录后,这里会列出常访问的网站。", ait = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", oit = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", sit = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", cit = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", lit = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", uit = "需要刷新时再次读取或导入;数据源可在页面底部移除。", dit = "删除这个来源的已导入记录,原始文件保留。若浏览器仍启用,下次读取会再次导入。", fit = "peach-taste-guide-dismissed";
+var Yrt = 10, Xrt = Sk(AI, jI, "text-body-2-medium"), Z8 = `${Ok()} flex flex-col gap-4`, Q8 = "rounded-xl bg-background-primary-default p-3", Zrt = "读取运行 Peach 的这台电脑上的浏览记录", Qrt = "导入或读取浏览记录后,这里会列出已采集设备。", $rt = "馆藏里暂时没有对得上浏览信号的标签。", eit = "采集浏览记录后,这里会显示聚合后的口味证据。", tit = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", nit = "采集浏览记录后,这里会列出浏览过的标签。", rit = "采集浏览记录后,这里会列出浏览过的创作者。", iit = "采集浏览记录后,这里会列出常访问的网站。", ait = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", oit = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", sit = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", cit = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", lit = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", uit = "需要刷新时再次读取或导入;数据源可在页面底部移除。", dit = "删除这个来源的已导入记录,原始文件保留。若浏览器仍启用,下次读取会再次导入。", fit = "peach-taste-guide-dismissed";
function $8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, x.jsx)("div", {
- className: SI(),
- children: /* @__PURE__ */ (0, x.jsx)(EI, {
+ className: CI(),
+ children: /* @__PURE__ */ (0, x.jsx)(DI, {
label: t,
icon: e,
accent: i,
@@ -97451,9 +97455,9 @@ function mit({ html: e }) {
});
}
function hit({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, x.jsx)(Ok, {
+ if (!e.length) return /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: QO,
+ icon: $O,
title: "暂无足够证据",
children: r
});
@@ -97503,7 +97507,7 @@ function hit({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: ert(e)
})]
}),
- o ? /* @__PURE__ */ (0, x.jsx)(HO, {
+ o ? /* @__PURE__ */ (0, x.jsx)(UO, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -97524,20 +97528,20 @@ function hit({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
});
}
function git({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, x.jsxs)(oN, {
- className: `${Dk({ padding: "none" })} flex flex-col`,
+ return /* @__PURE__ */ (0, x.jsxs)(sN, {
+ className: `${Ok({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, x.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, x.jsx)(jN, {
+ children: /* @__PURE__ */ (0, x.jsx)(MN, {
"aria-label": e,
- className: NN,
- children: t.map((e) => /* @__PURE__ */ (0, x.jsx)(cN, {
+ className: PN,
+ children: t.map((e) => /* @__PURE__ */ (0, x.jsx)(lN, {
id: e.id,
- className: PN,
+ className: FN,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(lN, {
+ }), t.map((e) => /* @__PURE__ */ (0, x.jsx)(uN, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
children: /* @__PURE__ */ (0, x.jsx)(hit, {
@@ -97616,14 +97620,14 @@ function _it({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular wrap-anywhere text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, x.jsx)(HO, {
+ }), /* @__PURE__ */ (0, x.jsx)(UO, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: QO,
+ icon: $O,
title: "还没有可探索的入口",
children: $rt
})
@@ -97639,11 +97643,11 @@ function vit({ onboarding: e, done: t }) {
}
});
return t || n ? null : /* @__PURE__ */ (0, x.jsx)("div", {
- className: Dk({
+ className: Ok({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, x.jsxs)(Yk, {
+ children: /* @__PURE__ */ (0, x.jsxs)(Xk, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
@@ -97712,7 +97716,7 @@ function yit({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, x.jsx)(G, {
- leadingIcon: WO,
+ leadingIcon: GO,
title: Zrt,
onClick: t,
...q(e),
@@ -97720,7 +97724,7 @@ function yit({ busy: e, onRefresh: t, onImport: n }) {
}), /* @__PURE__ */ (0, x.jsx)(G, {
ref: r,
iconOnly: !0,
- leadingIcon: BO,
+ leadingIcon: VO,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -97729,21 +97733,21 @@ function yit({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, x.jsx)(fM, {
+ }), /* @__PURE__ */ (0, x.jsx)(pM, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: OI,
- children: /* @__PURE__ */ (0, x.jsxs)(DI, {
+ className: kI,
+ children: /* @__PURE__ */ (0, x.jsxs)(OI, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, x.jsxs)("button", {
type: "button",
className: Xrt,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, x.jsx)(WO, {
+ children: [/* @__PURE__ */ (0, x.jsx)(GO, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
@@ -97751,7 +97755,7 @@ function yit({ busy: e, onRefresh: t, onImport: n }) {
type: "button",
className: Xrt,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, x.jsx)(_he, {
+ children: [/* @__PURE__ */ (0, x.jsx)(ghe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -97785,10 +97789,10 @@ function bit({ sources: e, window: t, toast: n }) {
children: [
/* @__PURE__ */ (0, x.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, x.jsx)(_he, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, x.jsx)(ghe, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, x.jsx)(GO, {
+ }) : /* @__PURE__ */ (0, x.jsx)(KO, {
"aria-hidden": !0,
className: "size-4"
})
@@ -97809,7 +97813,7 @@ function bit({ sources: e, window: t, toast: n }) {
"aria-label": `移除 ${e.profile}`,
className: "shrink-0",
iconOnly: !0,
- leadingIcon: KO,
+ leadingIcon: qO,
...q(r.isPending),
onClick: () => {
r.isPending || ms({
@@ -97822,9 +97826,9 @@ function bit({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: GO,
+ icon: KO,
title: "还没有数据源",
children: Qrt
})
@@ -97855,30 +97859,30 @@ function xit(e) {
}, _ = () => {
f || m.isPending || (m.reset(), m.mutate());
}, v = u.data;
- if (!v) return /* @__PURE__ */ (0, x.jsx)(Ak, { children: /* @__PURE__ */ (0, x.jsx)(K, {
+ if (!v) return /* @__PURE__ */ (0, x.jsx)(jk, { children: /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
title: "口味分析读取失败",
children: u.error ? B(u.error) : "读取口味分析失败"
}) });
let y = v.summary || {}, S = v.coverage || {}, C = v.rankings || {}, w = v.storage || {}, T = Qnt(C.browser_categories || []), E = rrt(T).length > 0, D = v.gaps || [], O = S.tagged || 0, k = S.identified || 0, A = m.error ? B(m.error) : h.error ? B(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, x.jsxs)(Ak, { children: [
- /* @__PURE__ */ (0, x.jsxs)(oN, {
+ return /* @__PURE__ */ (0, x.jsxs)(jk, { children: [
+ /* @__PURE__ */ (0, x.jsxs)(sN, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, x.jsxs)(jN, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(MN, {
"aria-label": "口味证据来源",
- className: NN,
- children: [/* @__PURE__ */ (0, x.jsx)(cN, {
+ className: PN,
+ children: [/* @__PURE__ */ (0, x.jsx)(lN, {
id: "browser",
- className: PN,
+ className: FN,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, x.jsx)(cN, {
+ }), /* @__PURE__ */ (0, x.jsx)(lN, {
id: "peach",
- className: PN,
+ className: FN,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, x.jsxs)("div", {
@@ -97919,12 +97923,12 @@ function xit(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- f ? /* @__PURE__ */ (0, x.jsx)(eL, {
+ f ? /* @__PURE__ */ (0, x.jsx)(tL, {
label: d?.message || "正在读取浏览记录并更新口味分析",
value: d?.checked,
total: d?.total
}) : null,
- h.isPending ? /* @__PURE__ */ (0, x.jsx)(eL, { label: "正在导入历史文件" }) : null,
+ h.isPending ? /* @__PURE__ */ (0, x.jsx)(tL, { label: "正在导入历史文件" }) : null,
A ? /* @__PURE__ */ (0, x.jsx)(K, {
tone: "error",
children: A
@@ -97935,36 +97939,36 @@ function xit(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, x.jsxs)(lN, {
+ /* @__PURE__ */ (0, x.jsxs)(uN, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
- className: CI,
+ className: wI,
children: [
/* @__PURE__ */ (0, x.jsx)($8, {
accent: 0,
- icon: YO,
+ icon: XO,
term: "浏览记录",
figure: Number(y.history_visits || 0).toLocaleString(),
detail: Xnt(y)
}),
/* @__PURE__ */ (0, x.jsx)($8, {
accent: 1,
- icon: XO,
+ icon: ZO,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
/* @__PURE__ */ (0, x.jsx)($8, {
accent: 2,
- icon: QO,
+ icon: $O,
term: "浏览候选",
figure: D.length.toLocaleString()
}),
/* @__PURE__ */ (0, x.jsx)($8, {
accent: 3,
- icon: GO,
+ icon: KO,
term: "私有导出",
figure: Number(w.exports || 0).toLocaleString(),
detail: Qt(w.bytes || 0)
@@ -97995,9 +97999,9 @@ function xit(e) {
children: T.length ? /* @__PURE__ */ (0, x.jsx)(Krt, {
rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, x.jsx)(Ok, {
+ }) : /* @__PURE__ */ (0, x.jsx)(kk, {
shell: "plain",
- icon: QO,
+ icon: $O,
title: "暂无口味维度",
children: eit
})
@@ -98074,35 +98078,35 @@ function xit(e) {
})
]
}),
- /* @__PURE__ */ (0, x.jsxs)(lN, {
+ /* @__PURE__ */ (0, x.jsxs)(uN, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, x.jsxs)("div", {
- className: CI,
+ className: wI,
children: [
/* @__PURE__ */ (0, x.jsx)($8, {
accent: 0,
- icon: $me,
+ icon: Qme,
term: "Peach 看过",
figure: Number(y.peach_items || 0).toLocaleString(),
detail: Znt(y.peach_seconds || 0)
}),
/* @__PURE__ */ (0, x.jsx)($8, {
accent: 1,
- icon: ghe,
+ icon: hhe,
term: "喜欢",
figure: Number(y.liked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, x.jsx)($8, {
accent: 2,
- icon: hhe,
+ icon: mhe,
term: "不合口味",
figure: Number(y.disliked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, x.jsx)($8, {
accent: 3,
- icon: XO,
+ icon: ZO,
term: "有标签",
figure: O.toLocaleString()
})
@@ -98209,7 +98213,7 @@ function Sit({ term: e, value: t, rest: n }) {
children: `${n.toLocaleString()} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, x.jsx)(Mk, {
+ }), /* @__PURE__ */ (0, x.jsx)(Nk, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -98308,13 +98312,13 @@ function Mit({ kind: e, q: t, scope: n, view: r, category: i }, a) {
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
- ${PI({
+ ${FI({
variant: "secondary",
size: "small",
label: "我的收藏",
attrs: "data-shortcuts-trigger aria-disabled=\"true\" tabindex=\"-1\""
})}
- <div data-index-search class="ml-auto min-w-35 max-w-80 flex-1 max-board-narrow:order-1 max-board-narrow:basis-40">${NI("", t, "过滤" + o)}</div>
+ <div data-index-search class="ml-auto min-w-35 max-w-80 flex-1 max-board-narrow:order-1 max-board-narrow:basis-40">${PI("", t, "过滤" + o)}</div>
</div>
${e === "tags" ? t5(Eit, n, "词表") : e === "performers" || e === "creators" ? t5(Dit, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? t5(Tit, e, "公司类型") : ""}
${e === "tags" ? jit(r) : ""}
@@ -98336,7 +98340,7 @@ var Fit = () => Nc, Iit = () => vc, n5 = () => document.getElementById("index");
function r5(e, t, n = {}) {
let r = (0, b.useSyncExternalStore)(Wc, Fit);
BD();
- let i = oO(PO.navigation.location.pathname), a = (0, b.useRef)({
+ let i = sO(FO.navigation.location.pathname), a = (0, b.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
@@ -98361,7 +98365,7 @@ function r5(e, t, n = {}) {
let t = a.current;
if (!t.mounted) return;
let n = t.epoch !== e || t.opens !== Nc, r = t.opens !== Nc;
- if (t.epoch = e, t.opens = Nc, oO(PO.navigation.location.pathname)) {
+ if (t.epoch = e, t.opens = Nc, sO(FO.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -98388,7 +98392,7 @@ async function Lit(e, t, n, r) {
let a = `/${t}`;
e.surfaceChanged("index", a);
let o = Ait(t, n), s = kit(uw().value.peopleLayout);
- Pit(i, o, s), await wO(a, {
+ Pit(i, o, s), await TO(a, {
...o,
layout: s,
selectMode: vc,
@@ -98399,7 +98403,7 @@ async function Lit(e, t, n, r) {
}) && r() && e.surfaceShown?.("index", a);
}
function Rit(e) {
- let t = n5(), n = t ? bO(t) : null;
+ let t = n5(), n = t ? xO(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
function zit({ epoch: e }) {
@@ -98411,7 +98415,7 @@ function zit({ epoch: e }) {
function Bit() {
let e = JL(), t = (0, b.useSyncExternalStore)(Wc, Iit), n = (0, b.useRef)(t);
return (0, b.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && TO(n5(), { selectMode: t }));
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && EO(n5(), { selectMode: t }));
}, [t]), /* @__PURE__ */ (0, x.jsx)(zit, { epoch: e }, e);
}
function Vit(e) {
@@ -98443,7 +98447,7 @@ function Uit(e) {
}, Hit.set(e, t)), t;
}
function Wit() {
- let e = n5(), t = e ? bO(e) : null;
+ let e = n5(), t = e ? xO(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
async function Git(e, t, n, r, i, a, o) {
@@ -98470,7 +98474,7 @@ async function Git(e, t, n, r, i, a, o) {
}
}
};
- await wO(`/${c}/*`, g, {
+ await TO(`/${c}/*`, g, {
container: s,
isCurrent: a,
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
@@ -98497,9 +98501,9 @@ function Kit({ target: e }) {
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
- FO(It(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ IO(It(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
});
return;
}
@@ -98511,9 +98515,9 @@ function Kit({ target: e }) {
l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && Git(t, a, {
...e,
name: c
- }, r.pathname, r.search, i, s) : FO(l + r.search + r.hash, {
+ }, r.pathname, r.search, i, s) : IO(l + r.search + r.hash, {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
});
})();
}, { shown: () => Wit() && !n5()?.hidden }), null;
@@ -98524,12 +98528,12 @@ function qit() {
}
//#endregion
//#region src/react/router/pages/catalog.tsx
-var Jit = () => Nc, Yit = PO.navigation.seq, Xit = PO.navigation.openEpoch, i5 = PO.navigation.location.pathname, a5 = {
+var Jit = () => Nc, Yit = FO.navigation.seq, Xit = FO.navigation.openEpoch, i5 = FO.navigation.location.pathname, a5 = {
seq: Yit,
claimed: !0,
from: i5
};
-PO.listen((e) => {
+FO.listen((e) => {
a5 = {
seq: e.seq,
claimed: e.openEpoch === Xit,
@@ -98538,7 +98542,7 @@ PO.listen((e) => {
});
var o5 = !1;
function Zit(e) {
- let { seq: t, openEpoch: n, location: r } = PO.navigation, i = oO(r.pathname), a = LO() ?? r, o = W ?? {};
+ let { seq: t, openEpoch: n, location: r } = FO.navigation, i = sO(r.pathname), a = RO() ?? r, o = W ?? {};
return {
seq: t,
epoch: n,
@@ -98588,7 +98592,7 @@ function $it(e, t) {
let i = t.catalog;
if (!i || r.opens === 0) return;
if (r.covered) {
- LO() || i.fill();
+ RO() || i.fill();
return;
}
let a = !1;
@@ -98598,12 +98602,12 @@ function $it(e, t) {
i.load();
return;
}
- r.epoch !== n.epoch && (a = PO.navigation.action === "POP" && a5.from !== "/");
+ r.epoch !== n.epoch && (a = FO.navigation.action === "POP" && a5.from !== "/");
}
- let { pathname: o, search: s } = PO.navigation.location;
+ let { pathname: o, search: s } = FO.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
let { kind: e, view: t } = XR(s);
- o5 = !0, FO(ZR(e, t), { replace: !0 });
+ o5 = !0, IO(ZR(e, t), { replace: !0 });
return;
}
let c = o5;
@@ -98613,7 +98617,7 @@ function $it(e, t) {
});
}
function eat(e) {
- return Nt(e) || e === "/trash" || oO(e) || e === "/immerse" || !!Vit(e);
+ return Nt(e) || e === "/trash" || sO(e) || e === "/immerse" || !!Vit(e);
}
function tat() {
let e = (0, b.useContext)(YL), t = JL(), n = (0, b.useSyncExternalStore)(Wc, Jit), r = BD(), i = (0, b.useRef)(null), a = (0, b.useRef)({
@@ -98623,10 +98627,10 @@ function tat() {
return (0, b.useEffect)(() => {
let t = a.current;
t.mounted = !0;
- let n = Zit(!oO(PO.navigation.location.pathname));
+ let n = Zit(!sO(FO.navigation.location.pathname));
return !n.covered && n.opens > 0 && (o5 || a5.seq === Yit ? n.opens = -1 : a5.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
t.mounted = !1, queueMicrotask(() => {
- e?.catalog && !eat(PO.navigation.location.pathname) && e.catalog.release();
+ e?.catalog && !eat(FO.navigation.location.pathname) && e.catalog.release();
});
};
}, []), (0, b.useEffect)(() => {
@@ -98660,7 +98664,7 @@ function nat() {
if (r) return r.hidden = !i, () => {
r.hidden = !0;
};
- }, [r, i]), oO(e) && !aO(e) ? null : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(tat, {}, e === "/junk-files" ? "/junk-files" : "/"), i && r && n ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(gje, {
+ }, [r, i]), sO(e) && !oO(e) ? null : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(tat, {}, e === "/junk-files" ? "/junk-files" : "/"), i && r && n ? (0, mt.createPortal)(/* @__PURE__ */ (0, x.jsx)(gje, {
navigate: n.navigate,
receipt: (e) => n.receipt(e)
}), r) : null] });
@@ -98678,7 +98682,7 @@ async function aat(e, t) {
let n = s5(), r = e.follow;
if (!n || !r || r.refresh()) return;
let i = Rc;
- e.surfaceChanged("follow", "/follow"), uV(n, r.skeleton()), await wO("/follow", r.props(), {
+ e.surfaceChanged("follow", "/follow"), dV(n, r.skeleton()), await TO("/follow", r.props(), {
container: n,
isCurrent: t,
place: iat
@@ -98691,7 +98695,7 @@ async function aat(e, t) {
});
}
function oat() {
- let e = s5(), t = e ? bO(e) : null;
+ let e = s5(), t = e ? xO(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
function sat() {
@@ -98701,21 +98705,21 @@ function sat() {
}, {
shown: oat,
onCovered: () => {
- PO.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ FO.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
function cat(e) {
- let t = e ? bO(e) : null;
+ let t = e ? xO(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
async function lat(e, t) {
let n = s5();
- n && (e.surfaceChanged("playlists", "/playlists"), uV(n, cV("/playlists", {
+ n && (e.surfaceChanged("playlists", "/playlists"), dV(n, lV("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), await wO("/playlists", { revision: zc }, {
+ })), await TO("/playlists", { revision: zc }, {
container: n,
isCurrent: t
}), t() && window.scrollTo({
@@ -98729,7 +98733,7 @@ function uat() {
if (n.current === t) return;
n.current = t;
let e = s5();
- cat(e) && TO(e, { revision: t });
+ cat(e) && EO(e, { revision: t });
}, [t]), r5(JL(), (t, n) => {
e && lat(e, n);
}, { shown: () => {
@@ -98740,7 +98744,7 @@ function uat() {
//#endregion
//#region src/react/router/pages/immerse.tsx
function dat() {
- let e = new URLSearchParams(PO.navigation.location.search).get("id");
+ let e = new URLSearchParams(FO.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
function fat() {
@@ -98761,7 +98765,7 @@ var mat = [
], hat = () => Nc > 0, gat = () => (0, b.useSyncExternalStore)(Wc, hat), c5 = !1, _at = () => uw().value.followLayout === "table" ? "table" : "default", l5 = () => new URLSearchParams(window.location.search);
function vat(e) {
let t = l5();
- return cV(e, {
+ return lV(e, {
followLayout: _at(),
followSort: t.get("sort") || "",
followDir: t.get("dir") || ""
@@ -98795,13 +98799,13 @@ async function bat(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && Hc({ configurationRequestedSection: "网络与访问" });
- let t = l5().get("section") || Ac || wme(e);
+ let t = l5().get("section") || Ac || QD(e);
return t ? { section: t } : {};
}
if (e === "/review") {
let e = l5().get("category") || "", n = await u5(t);
return t.live ? {
- category: CF(e) ? e : "",
+ category: wF(e) ? e : "",
...yat(n, "/review")
} : null;
}
@@ -98838,15 +98842,15 @@ var d5 = () => {
]);
async function Cat(e, t, n) {
if (e === "/jav" && $R(l5().get("tab")) === "library") {
- PO.replace(TAe(window.location.search));
+ FO.replace(TAe(window.location.search));
return;
}
if (e === "/subscriptions" && l5().get("tab") === "wants") {
- FO("/jav?tab=wants", { replace: !0 });
+ IO("/jav?tab=wants", { replace: !0 });
return;
}
if (e === "/subscriptions" && l5().get("tab") === "source") {
- FO("/settings/subscriptions", { replace: !0 });
+ IO("/settings/subscriptions", { replace: !0 });
return;
}
let r = document.getElementById("stats");
@@ -98870,17 +98874,17 @@ async function Cat(e, t, n) {
jav: ""
} }), t.clearSearch());
let i = e === "/data-cleanup" && c5;
- i && (c5 = !1), uV(r, vat(e));
+ i && (c5 = !1), dV(r, vat(e));
let a = await bat(e, n);
if (!a) return;
- let o = await wO(e, a, {
+ let o = await TO(e, a, {
container: r,
isCurrent: () => n.live
});
- if (o && (n.revision = bO(r)?.revision ?? 0), e.startsWith("/settings/") && o && Hc({ configurationRequestedSection: "" }), xat.has(e) && d5(), n.live) {
+ if (o && (n.revision = xO(r)?.revision ?? 0), e.startsWith("/settings/") && o && Hc({ configurationRequestedSection: "" }), xat.has(e) && d5(), n.live) {
let { hash: t } = window.location;
Sat.has(e) && d5(), e === "/settings/library" && (t === "#libraryProcessing" ? queueMicrotask(() => {
- n.live && FO("/data-cleanup#libraryProcessing", {
+ n.live && IO("/data-cleanup#libraryProcessing", {
replace: !0,
state: null
});
@@ -98891,15 +98895,19 @@ async function Cat(e, t, n) {
function p5({ path: e }) {
let t = JL();
BD();
- let n = oO(PO.navigation.location.pathname), r = (0, b.useRef)(n ? null : t), i = (0, b.useRef)(n);
- return !n && (!i.current || r.current === null) && (r.current = t), i.current = n, /* @__PURE__ */ (0, x.jsx)(wat, {
+ let n = sO(FO.navigation.location.pathname), r = (0, b.useRef)(n ? null : t), i = (0, b.useRef)(n);
+ !n && (!i.current || r.current === null) && (r.current = t), i.current = n;
+ let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
+ return /* @__PURE__ */ (0, x.jsx)(wat, {
path: e,
covered: r.current === null
- }, `${e} ${r.current ?? "covered"}`);
+ }, `${a} ${r.current ?? "covered"}`);
}
function wat({ path: e, covered: t }) {
let n = (0, b.useContext)(YL), r = gat(), i = (0, b.useRef)(null);
return (0, b.useEffect)(() => {
+ e.startsWith("/settings/") && EO(document.getElementById("stats"), { section: QD(e) });
+ }, [e]), (0, b.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
live: !0,
@@ -98915,18 +98923,18 @@ function wat({ path: e, covered: t }) {
e.live = !1, e.controller.abort();
let t = document.getElementById("stats");
queueMicrotask(() => {
- t && e.revision && !t.hidden && bO(t)?.revision === e.revision && EO(t);
+ t && e.revision && !t.hidden && xO(t)?.revision === e.revision && DO(t);
});
}, []), null;
}
function Tat() {
let e = gat(), t = (0, b.useRef)(!1);
return (0, b.useEffect)(() => {
- if (!e || t.current || oO(PO.navigation.location.pathname)) return;
+ if (!e || t.current || sO(FO.navigation.location.pathname)) return;
t.current = !0;
let n = !0;
return queueMicrotask(() => {
- n && (c5 = !0, FO("/data-cleanup#resource-sync", { replace: !0 }));
+ n && (c5 = !0, IO("/data-cleanup#resource-sync", { replace: !0 }));
}), () => {
n = !1;
};
@@ -98944,8 +98952,8 @@ function Eat(e, t, n) {
}
var m5 = (e) => ({
element: /* @__PURE__ */ (0, x.jsx)(p5, { path: e }),
- prefetch: (e, t) => eNe(t),
- page: (e, t) => /* @__PURE__ */ (0, x.jsx)(hPe, {
+ prefetch: (e, t) => $Me(t),
+ page: (e, t) => /* @__PURE__ */ (0, x.jsx)(mPe, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial,
section: e.section ?? ""
@@ -98962,7 +98970,7 @@ var m5 = (e) => ({
},
"/stats": {
element: /* @__PURE__ */ (0, x.jsx)(p5, { path: "/stats" }),
- prefetch: (e, t) => _Le(t),
+ prefetch: (e, t) => gLe(t),
page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(fnt, {
tagLabel: rc,
onTag: t.openTag,
@@ -98984,7 +98992,7 @@ var m5 = (e) => ({
},
"/review": {
element: /* @__PURE__ */ (0, x.jsx)(p5, { path: "/review" }),
- prefetch: (e, t) => Sxe(t),
+ prefetch: (e, t) => xxe(t),
page: (e, t) => /* @__PURE__ */ (0, x.jsx)(fMe, {
...e,
route: t.routeReview,
@@ -98996,7 +99004,7 @@ var m5 = (e) => ({
},
"/data-cleanup": {
element: /* @__PURE__ */ (0, x.jsx)(p5, { path: "/data-cleanup" }),
- prefetch: (e, t) => cSe(t),
+ prefetch: (e, t) => sSe(t),
page: (e, t, n) => /* @__PURE__ */ (0, x.jsx)(KCe, {
failure: t.failure,
open: (e) => Eat(e, t, n),
@@ -99005,7 +99013,7 @@ var m5 = (e) => ({
},
"/duplicates": {
element: /* @__PURE__ */ (0, x.jsx)(p5, { path: "/duplicates" }),
- prefetch: (e, t) => zbe(t),
+ prefetch: (e, t) => Rbe(t),
page: (e, t) => /* @__PURE__ */ (0, x.jsx)(BDe, {
openItem: t.openItem,
failure: t.failure,
@@ -99014,11 +99022,11 @@ var m5 = (e) => ({
},
"/quality-goals": {
element: /* @__PURE__ */ (0, x.jsx)(p5, { path: "/quality-goals" }),
- prefetch: (e, t) => rxe(t),
+ prefetch: (e, t) => nxe(t),
page: (e, t) => /* @__PURE__ */ (0, x.jsx)(Wje, {
openItem: t.openItem,
- javTitleHtml: zO,
- javDisplayName: RO,
+ javTitleHtml: BO,
+ javDisplayName: zO,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
})
@@ -99041,14 +99049,14 @@ var m5 = (e) => ({
openItem: t.openItem,
receipt: (e) => t.receipt(e),
configure: (e) => {
- t.requestConfigurationSection(e), n(tO(e));
+ t.requestConfigurationSection(e), n(nO(e));
}
})
},
"/tasks": {
element: /* @__PURE__ */ (0, x.jsx)(p5, { path: "/tasks" }),
- prefetch: (e, t) => Yge(t),
- page: () => /* @__PURE__ */ (0, x.jsx)(h_e, {})
+ prefetch: (e, t) => Jge(t),
+ page: () => /* @__PURE__ */ (0, x.jsx)(m_e, {})
},
"/subscriptions": {
element: /* @__PURE__ */ (0, x.jsx)(p5, { path: "/subscriptions" }),
@@ -99116,7 +99124,7 @@ var m5 = (e) => ({
"/": {
element: /* @__PURE__ */ (0, x.jsx)(nat, {}),
prefetch: (e, t) => qde(e, t),
- page: (e) => /* @__PURE__ */ (0, x.jsx)(qP, { ...e })
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(JP, { ...e })
},
"/junk-files": {
element: /* @__PURE__ */ (0, x.jsx)(nat, {}),
@@ -99126,19 +99134,19 @@ var m5 = (e) => ({
}, Aat = (e) => Object.hasOwn(S5, e), jat = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, x.jsx)(Sje, { ...e }) : /* @__PURE__ */ (0, x.jsx)(WSe, { ...e }), Mat = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, x.jsx)(Fye, { ...e })
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(Pye, { ...e })
},
"feed-new": {
prefetch: (e) => QCe(e),
page: (e) => /* @__PURE__ */ (0, x.jsx)(YDe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => oF(t),
+ prefetch: (e, t) => sF(t),
page: (e) => /* @__PURE__ */ (0, x.jsx)(jat, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, x.jsx)(YMe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, x.jsx)(JMe, { ...e })
}
}, Nat = (e) => Object.hasOwn(Mat, e), Pat = {
"batch-dock": {
@@ -99159,15 +99167,15 @@ var m5 = (e) => ({
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, x.jsx)(FPe, {})
+ page: () => /* @__PURE__ */ (0, x.jsx)(PPe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, x.jsx)(YPe, {})
+ page: () => /* @__PURE__ */ (0, x.jsx)(JPe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, x.jsx)(hLe, {})
+ page: () => /* @__PURE__ */ (0, x.jsx)(mLe, {})
}
}, Fat = (e) => Object.hasOwn(Pat, e), Iat = [
"/",
@@ -99873,11 +99881,11 @@ function xot(e) {
};
}
function Sot(e) {
- return D5 && (O5 = e, D5(e), jme(Promise.resolve(zat))), Promise.resolve();
+ return D5 && (O5 = e, D5(e), Ame(Promise.resolve(zat))), Promise.resolve();
}
async function j5(e, t, n = (e) => e) {
let r = k5;
- if (t.isConnected || A5.add(t), !await wO(e, {}, {
+ if (t.isConnected || A5.add(t), !await TO(e, {}, {
container: t,
resident: !0,
isCurrent: () => !!D5 && r === k5,
@@ -99892,7 +99900,7 @@ function Cot() {
var M5 = null, N5 = null;
function P5(e) {
return M5 ??= (async () => {
- let t = mLe(e), n = document.createElement("div");
+ let t = pLe(e), n = document.createElement("div");
return n.dataset.stageHost = "", await j5("stage", n, (e) => (document.body.append(e), e)), N5 = t, t;
})(), M5;
}
@@ -99906,14 +99914,14 @@ function wot(e) {
var R5 = () => L5, z5 = null, B5 = null;
function Tot(e) {
return z5 ??= (async () => {
- let t = PPe(e), n = document.createElement("div");
+ let t = NPe(e), n = document.createElement("div");
return n.dataset.settingsHost = "", await j5("settings-panel", n, (e) => (document.body.append(e), e)), B5 = t, t;
})(), z5;
}
var Eot = () => B5, V5 = null, H5 = null;
function Dot(e) {
return V5 ??= (async () => {
- let t = JPe(e);
+ let t = qPe(e);
return await j5("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), H5 = t, t;
})(), V5;
}
@@ -100707,7 +100715,7 @@ function Tst(e) {
return e.has_cover ? ma(e, "big") : e.cover_url ? ma({ code: e.code }, "big").replace(/ src="[^"]*"/, ` src="${z(e.cover_url)}" referrerpolicy="no-referrer" data-panel-prior="1"`) : "<span class=\"nopic\">无封面</span>";
}
function Est(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = Tst(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? zO({
+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = Tst(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? BO({
is_jav: !0,
code: e.code,
name: e.code,
@@ -100727,7 +100735,7 @@ async function r7() {
return e.isActive && t && !t.error && (n7.entityShapes = new Map((t.entities || []).flatMap((e) => e.names.map((t) => [`${e.kind}/${Gt(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && (X.homeHasFeed = t.home.feed), i7(location.pathname) && Dst(L("#feedNew"))), n7.entityShapes;
}
function Dst(e) {
- !e || xO(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = n7.feedNewSkeletonHtml())));
+ !e || SO(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = n7.feedNewSkeletonHtml())));
}
function Ost(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : io(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
@@ -100752,7 +100760,7 @@ function jst(e) {
}
function Mst() {
let e = L("#feedNew");
- xO(e) ? TO(e, { revision: ++n7.feedRevision }) : (Dst(e), wO("feed-new", {
+ SO(e) ? EO(e, { revision: ++n7.feedRevision }) : (Dst(e), TO("feed-new", {
host: e,
revision: n7.feedRevision,
helpers: n7.feedNewHelpers,
@@ -100764,10 +100772,10 @@ function Mst() {
}
function a7() {
let e = L("#feedNew");
- e.querySelectorAll(".feednewrow").forEach(Jo), EO(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
+ e.querySelectorAll(".feednewrow").forEach(Jo), DO(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
}
function Nst() {
- n7.feedRevision += 1, TO(L("#feedNew"), { revision: n7.feedRevision }), c7({ feedRevision: n7.feedRevision });
+ n7.feedRevision += 1, EO(L("#feedNew"), { revision: n7.feedRevision }), c7({ feedRevision: n7.feedRevision });
}
function Pst() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? qo(e) : Jo(e));
@@ -100827,11 +100835,11 @@ var o7 = {
application: void 0
};
function s7() {
- let e = bO(L("#index"));
+ let e = xO(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
function c7(e) {
- o7.entityPageCurrent() && TO(L("#index"), e);
+ o7.entityPageCurrent() && EO(L("#index"), e);
}
function l7() {
if (mc.type === "item") return mc;
@@ -101134,7 +101142,7 @@ function Qst() {
},
syncDensity: zst,
scheduleSticky: J7,
- releasePage: () => EO(L("#index")),
+ releasePage: () => DO(L("#index")),
showMissing: Yst,
dropBars: $5
},
@@ -101258,14 +101266,14 @@ async function nct(e) {
}
function rct() {
Qs(), y9(!1), j7();
- let e = bO(L("#stats"));
+ let e = xO(L("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? Hc({ pageOpens: Nc + 1 }) : (A7({ manage: !1 }), Hc({ playlistsRevision: zc + 1 }));
}
function ict(e) {
Q.route("/review" + (e.category ? "?category=" + encodeURIComponent(e.category) : ""));
}
function act(e) {
- Hc({ configurationRequestedSection: e }), Q.navigatePath(tO(e));
+ Hc({ configurationRequestedSection: e }), Q.navigatePath(nO(e));
}
function oct() {
h7.playlistWrite = (e) => Dt("/api/playlist", {
@@ -101287,7 +101295,7 @@ function sct(e, t, n, r, i = !1) {
};
}
function cct(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = bF(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+ let o = n === "follow", s = xF(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
...sct(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
@@ -101671,7 +101679,7 @@ function E7(e = "正在读取作品") {
...Slt()
})), L("#loadSentinel").hidden = !0, l9()) return;
let r = L("#grid"), i = f9(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== lV(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== Plt()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : T7.setGridCards(i), ko(L("#grid")));
+ (a?.dataset.skeleton !== uV(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== Plt()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : T7.setGridCards(i), ko(L("#grid")));
}
function D7() {
L("#catalogFilter").style.display = "none", t9();
@@ -101707,7 +101715,7 @@ function Mct() {
} else Q.routeMeta(e) ? E7() : (s9(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
function Nct() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => sV(t, {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => cV(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
@@ -101721,7 +101729,7 @@ function Nct() {
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = oo("继续载入中…"), T7.setGridCards = (e) => yo(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), T7.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) [data-media-grid] > [data-media-card][data-id]"), T7.managementPlaceholder = (e) => cV(e, {
+ }), T7.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) [data-media-grid] > [data-media-card][data-id]"), T7.managementPlaceholder = (e) => lV(e, {
followLayout: bct(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
@@ -101729,7 +101737,7 @@ function Nct() {
followTab: n
}))(xct())
}), T7.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", T7.entityShapesReady = null, T7.ENTITY_SHAPES_WAIT = 400, T7.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = gO(decodeURIComponent(t.pathname))?.title;
+ let t = new URL(e, location.origin), n = _O(decodeURIComponent(t.pathname))?.title;
document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, dut();
};
}
@@ -101793,13 +101801,13 @@ var k7 = {
mobileFilterPath: void 0
};
function A7({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, s9(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? L7() : (R7(""), D9()), t && uV(L("#stats"), t);
+ L("#stats").hidden = !1, L("#index").hidden = !0, s9(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? L7() : (R7(""), D9()), t && dV(L("#stats"), t);
}
function j7() {
X.hideCatalogCombo(), D7(), document.body.classList.remove("entity-open", "index-open");
}
function M7() {
- document.body.classList.remove("entity-open", "index-open"), EO(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, i7(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", t9(), L7(), z7();
+ document.body.classList.remove("entity-open", "index-open"), DO(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, i7(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", t9(), L7(), z7();
}
function Ict() {
Q.route("/"), M7();
@@ -101850,22 +101858,22 @@ function Bct() {
}).catch(() => {}));
}
function F7(e = "", t = !1) {
- if (!t && !$D(location.pathname)) {
- let t = PO.navigation;
- PO.push(tO(e), { settingsBackground: {
+ if (!t && !eO(location.pathname)) {
+ let t = FO.navigation;
+ FO.push(nO(e), { settingsBackground: {
pathname: location.pathname,
search: location.search,
state: t.location.state,
seq: t.seq
} });
- } else !t && e && FO(tO(e), {
+ } else !t && e && IO(nO(e), {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
});
- return e ||= eO(location.pathname), Tot(k7.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= tO(location.pathname), Tot(k7.settingsHost()).then((t) => (t.open(e), t));
}
function Vct() {
- $D(location.pathname) && (nO(PO.navigation.location.state) ? PO.go(-1) : Q.navigatePath("/", !0));
+ eO(location.pathname) && (rO(FO.navigation.location.state) ? FO.go(-1) : Q.navigatePath("/", !0));
}
function Hct() {
return {
@@ -102007,7 +102015,7 @@ async function Zct() {
return;
}
let e = decodeURIComponent(location.pathname);
- if (gO(e)?.reload === "reopen" || e === "/follow") {
+ if (_O(e)?.reload === "reopen" || e === "/follow") {
Hc({ pageOpens: Nc + 1 });
return;
}
@@ -102084,9 +102092,9 @@ function tlt() {
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
}), Y5.handler(L("#filterBtn"), "onclick", () => P7(!L("#drawer").classList.contains("open"))), k7.SIDEBAR_ITEMS = Zot, k7.MANAGE_SECTIONS = e7, k7.MANAGE_MENU_SECTIONS = Qot, k7.manageMenuSections = () => $ot(jc === !0), k7.OPTIONAL_SIDEBAR_ITEMS = est, k7.NAV_CATALOG = tst, k7.DIRECT_MANAGE_NAV = nst, k7.settingsHost = () => ({
- selectSection: (e) => FO(tO(e), {
+ selectSection: (e) => IO(nO(e), {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
}),
closed: Vct,
store: Z.settingsStore,
@@ -102095,7 +102103,7 @@ function tlt() {
navCatalog: k7.NAV_CATALOG,
themeOptions: pue,
videoLayouts: gw,
- followInitialRanges: $z,
+ followInitialRanges: eB,
videoLayout: () => U7(),
setVideoLayout: Xct,
censored: g9,
@@ -102386,10 +102394,10 @@ function n9(e) {
}, X.catalogFilterProps = {
...X.catalogFilterProps || ylt(),
...e
- }, !X.catalogFilterMounting && (xO(t) ? TO(t, e) : (!t.firstChild && !n && (t.innerHTML = ilt(X.catalogViews(), X.catalogFilterProps.state), ko(t)), X.catalogFilterMounting = wO("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (SO(t) ? EO(t, e) : (!t.firstChild && !n && (t.innerHTML = ilt(X.catalogViews(), X.catalogFilterProps.state), ko(t)), X.catalogFilterMounting = TO("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
- }).then(() => TO(t, X.catalogFilterProps)).finally(() => {
+ }).then(() => EO(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
@@ -102595,7 +102603,7 @@ function a9() {
}
async function o9() {
let e = Q.claimSurface(Q.surfacePath());
- if (jst(location.pathname) && !xO(L("#libraryProcessingNotice")) && wO("library-processing", {
+ if (jst(location.pathname) && !SO(L("#libraryProcessingNotice")) && TO("library-processing", {
toast: X5.toast,
mode: "notice"
}, {
@@ -102619,7 +102627,7 @@ function Alt(e) {
}
function s9() {
let e = L("#grid");
- Qs(e), EO(e), X.controller.clear(), e.innerHTML = "";
+ Qs(e), DO(e), X.controller.clear(), e.innerHTML = "";
}
function jlt(e) {
return Nlt("/", Flt, e, { place: Cut });
@@ -102628,13 +102636,13 @@ function Mlt(e) {
return Nlt("/junk-files", Rlt, e);
}
function c9() {
- return !!bO(L("#grid"));
+ return !!xO(L("#grid"));
}
function l9() {
return X.controller.taken(c9());
}
function u9(e) {
- TO(L("#grid"), e);
+ EO(L("#grid"), e);
}
function Nlt(e, t, n, r = {}) {
let i = L("#grid");
@@ -102642,8 +102650,8 @@ function Nlt(e, t, n, r = {}) {
let a = X.controller.begin(e, c9()), o = t();
if (!a.mount) return u9(o), a.settled;
Qs(i);
- let s = () => EO(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), wO(e, o, {
+ let s = () => DO(i);
+ return a.signal.addEventListener("abort", s, { once: !0 }), TO(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
@@ -102660,7 +102668,7 @@ function d9() {
});
}
function f9(e = "正在读取作品") {
- return sV(e, {
+ return cV(e, {
cards: !0,
className: "catalog-skeleton postercard-skeleton",
cardRatio: Plt()
@@ -102750,7 +102758,7 @@ function Rlt() {
selected: new Set(gc),
countRow: L("#count"),
settled: Alt,
- skeletonHtml: () => sV("正在读取垃圾文件", {
+ skeletonHtml: () => cV("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
@@ -102786,14 +102794,14 @@ function Blt() {
...o7.activeFilterState(),
jav: V7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Tbe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(wbe(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = W.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => zO(e, t),
- displayName: (e, t) => RO(e, t),
+ titleHtml: (e, t) => BO(e, t),
+ displayName: (e, t) => zO(e, t),
tagLabel: (e) => rc(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
@@ -102918,9 +102926,9 @@ function h9() {
let e = Q.surfacePath();
if (!Nt(e) || e === "/junk-files") return o9();
let t = Z.nextCatalogLoad();
- return FO(X7(), {
+ return IO(X7(), {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
}), t;
}
function Hlt(e) {
@@ -102971,7 +102979,7 @@ async function Wlt(e = !1) {
return;
}
let n = t === "reopen" ? e : "/stats";
- n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, PO.navigation.location.state) : Q.navigatePath(n);
+ n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, FO.navigation.location.state) : Q.navigatePath(n);
} else if (L("#index").hidden) {
W.sort = "seed", W.dir = "", W.seed = X5.rollSeed(), Uc(), $5(), n9({ refreshing: !0 });
try {
@@ -103046,7 +103054,7 @@ function Xlt() {
javImage: () => {
ea(document, Z.appSettings.javImage), p9(), document.querySelectorAll("img[data-jav-image].cover").forEach(Ms), eut();
},
- searchHistoryLimit: () => TO(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => EO(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
local: R("hard-drive"),
115: `<img class="source-icon" src="${eo[115]}" alt="">`,
@@ -103100,7 +103108,7 @@ function eut() {
function b9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = Ec?.kind === e && (e === "playlist" ? Ec.playlistId : Ec.seedId) === t;
- r && !o && Hc({ detailReturnPath: location.pathname + location.search }), r && uO();
+ r && !o && Hc({ detailReturnPath: location.pathname + location.search }), r && dO();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@ -103113,7 +103121,7 @@ function b9(e, t, n, r, i = null, a = {}) {
if (a.autoplay && (s.autoplay = !0), r) {
O9();
let e = Q.queueOpenRequest = {
- seq: PO.navigation.seq,
+ seq: FO.navigation.seq,
cancelled: !1
};
Q.requestedQueue = () => x9(n == null ? null : +n, !1, s, i, !0, e), Hc({ queueOpens: Pc + 1 });
@@ -103142,7 +103150,7 @@ async function x9(e, t = !0, n = null, r = null, i = !1, a = null) {
}
Qs(), e = e == null ? null : +e;
let o = r?.isConnected ? r : Cc?.isConnected ? Cc : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : wc, c = aut(), l = Tc || !t && !c, u = mc.type === "item" ? hc : o7.cloneBarsContext(l7());
- t ? Hc({ detailReturnPath: location.pathname + location.search }) : i || Hc({ detailReturnPath: fO() || Sc }), t && uO(), F5()?.showing() !== "item" && y9(!1, !0, {
+ t ? Hc({ detailReturnPath: location.pathname + location.search }) : i || Hc({ detailReturnPath: pO() || Sc }), t && dO(), F5()?.showing() !== "item" && y9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), Hc({
@@ -103153,7 +103161,7 @@ async function x9(e, t = !0, n = null, r = null, i = !1, a = null) {
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
- } }), Hc({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, pO("item"));
+ } }), Hc({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, mO("item"));
let d = await P5(v9.stageHost);
if (a?.cancelled) return;
let f = a ? {
@@ -103185,7 +103193,7 @@ async function x9(e, t = !0, n = null, r = null, i = !1, a = null) {
}
async function out() {
let e = o7.cloneBarsContext(hc), t = Sc || "/", n = Tc;
- await $lt(), y9(!1, !1, { miniplayer: !1 }), Hc({ detailReturnBarsContext: null }), dO(), Hc({ barsContext: e || {
+ await $lt(), y9(!1, !1, { miniplayer: !1 }), Hc({ detailReturnBarsContext: null }), fO(), Hc({ barsContext: e || {
type: "home",
filters: W
} }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? Hc({ pageOpens: Nc + 1 }) : (r9(), location.pathname === "/playlists" && Hc({ pageOpens: Nc + 1 })));
@@ -103195,14 +103203,14 @@ async function S9(e, t = !0) {
Hc({ detailReturnPath: location.pathname + location.search }), k9("/works/" + encodeURIComponent(e), "jav", () => S9(e, !1));
return;
}
- let n = PO.navigation.seq, r = o7.cloneBarsContext(l7()), i = !aut(), a = fO() || (i ? "/jav?tab=discover" : Sc) || "/jav?tab=discover";
+ let n = FO.navigation.seq, r = o7.cloneBarsContext(l7()), i = !aut(), a = pO() || (i ? "/jav?tab=discover" : Sc) || "/jav?tab=discover";
F5()?.showing() !== "jav" && y9(!1, !0, { miniplayer: !1 }), Hc({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), Qs();
let [o, s] = await Promise.all([P5(v9.stageHost), V("/healthz")]);
- PO.navigation.seq === n && (await o.open({
+ FO.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
@@ -103210,9 +103218,9 @@ async function S9(e, t = !0) {
close: () => void out(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
- PO.navigation.seq === n && t && t !== e && FO("/works/" + encodeURIComponent(t) + location.search + location.hash, {
+ FO.navigation.seq === n && t && t !== e && IO("/works/" + encodeURIComponent(t) + location.search + location.hash, {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
});
},
openTag: (e) => {
@@ -103249,15 +103257,15 @@ function sut() {
function cut() {
v9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => zO(e),
- displayName: (e) => RO(e),
+ titleHtml: (e) => BO(e),
+ displayName: (e) => zO(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => rc(e),
isDurationTag: (e) => cn.has(e),
tagCandidates: () => v9.facets && v9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => sV("正在读取推荐", {
+ relatedSkeletonHtml: () => cV("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
@@ -103273,14 +103281,14 @@ function cut() {
type: "item",
id: e.id,
filters: t?.type === "entity" ? { ...t.filters } : o7.emptyEntityFilters()
- } }), Dc && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${Dc}`, !1, pO("item")), Hc({ pendingQueueRoute: null })), r9();
+ } }), Dc && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${Dc}`, !1, mO("item")), Hc({ pendingQueueRoute: null })), r9();
},
redirect: (e) => {
let t = !!Dc;
e.kind === "follow" ? (Q.queueOpenRequest = null, Hc({
pendingQueueRoute: null,
followDetailReturnPath: Sc || "/"
- }), Q.route(`/posts/${e.id}`, !t, pO("follow")), R9(e.id, !1, null, !0)) : e.kind === "item" ? x9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? j9("/playlists") : rct() : y9(!1);
+ }), Q.route(`/posts/${e.id}`, !t, mO("follow")), R9(e.id, !1, null, !0)) : e.kind === "item" ? x9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? j9("/playlists") : rct() : y9(!1);
},
openQueueItem: (e, t, n = !0) => void b9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
@@ -103311,7 +103319,7 @@ function cut() {
reveal: (e) => Hst(e),
sync: (e) => Ust(e),
trashChanged: async (e, t) => {
- W.state === "ads" && (t || e === "trash") && (t || (dO(), y9(!0, !1, { miniplayer: !1 })), await o9());
+ W.state === "ads" && (t || e === "trash") && (t || (fO(), y9(!0, !1, { miniplayer: !1 })), await o9());
},
toast: (e, { undo: t } = {}) => X5.actionReceipt(e, { undo: t }),
failure: (e, t) => X5.actionFailure(e, t)
@@ -103319,7 +103327,7 @@ function cut() {
filters: () => W,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => RO(e),
+ displayName: (e) => zO(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => Z7(),
openItem: (e) => void x9(e),
@@ -103402,16 +103410,16 @@ function uut() {
if (Hc({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), w9.postSetupTutorialDone = null, w9.postSetupTutorialNeedsReopen = !1, Mc) {
bs("pending"), w9.postSetupTutorialDone = !1, w9.postSetupTutorialNeedsReopen = !0;
let e = new URL(location.href);
- e.searchParams.delete("onboarding"), FO(e, {
+ e.searchParams.delete("onboarding"), IO(e, {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
});
}
{
let e = new URL(location.href), t = e.searchParams.get("agentation");
- t === "on" && localStorage.setItem("peach.agentation", "on"), t === "off" && localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), FO(e, {
+ t === "on" && localStorage.setItem("peach.agentation", "on"), t === "off" && localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), IO(e, {
replace: !0,
- state: PO.navigation.location.state
+ state: FO.navigation.location.state
})), localStorage.getItem("peach.agentation") === "on" && import("/dev/agentation.js").catch(() => {});
}
w9.postSetupTutorialTasks = async () => {
@@ -103545,24 +103553,24 @@ function O9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, Hc({ pendingQueueRoute: null });
}
function k9(e, t, n) {
- O9(), uO(), Q.requestedOverlay = {
+ O9(), dO(), Q.requestedOverlay = {
path: e,
open: n
- }, Q.route(e, !1, pO(t));
+ }, Q.route(e, !1, mO(t));
}
function A9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, T7.syncPageTitle(location.href), E9(), dO(), T9();
+ Q.surfaceEpoch++, X.barsRequestSeq++, T7.syncPageTitle(location.href), E9(), fO(), T9();
}
function j9(e) {
Q.route(e), Hc({ pageOpens: Nc + 1 });
}
function fut() {
Q.routeMeta = (e) => {
- let t = gO(e);
+ let t = _O(e);
return t ? { route: t } : null;
- }, Q.routePathOf = (e, t) => Object.keys(hO).find((n) => hO[n][e] === t), Q.catalogPage = (e) => Nt(e) || e === "/trash", Q.managedPagePath = (e) => {
- let t = gO(e);
- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !oO(e) && e !== "/immerse";
+ }, Q.routePathOf = (e, t) => Object.keys(gO).find((n) => gO[n][e] === t), Q.catalogPage = (e) => Nt(e) || e === "/trash", Q.managedPagePath = (e) => {
+ let t = _O(e);
+ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !sO(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
e === "/immerse" ? C9(Ylt()) : e === "/follow" ? L9() : e === "/playlists" || Q.catalogPage(e) ? j9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? C7() : e) : (y7(!1, !0), j9(Tct({
kind: e.slice(1),
@@ -103578,15 +103586,15 @@ function put() {
epoch: Q.surfaceEpoch,
path: e,
signal: Q.surfaceRequests?.signal
- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (jst(e) || EO(L("#libraryProcessingNotice")), i7(e) || a7(), EO(L("#stats"), L("#index")), !Nt(e) && e !== "/trash" && s9(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- Q.surfaceEpoch++, X.barsRequestSeq++, FO(e, {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (jst(e) || DO(L("#libraryProcessingNotice")), i7(e) || a7(), DO(L("#stats"), L("#index")), !Nt(e) && e !== "/trash" && s9(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ Q.surfaceEpoch++, X.barsRequestSeq++, IO(e, {
replace: t,
state: n
}), T7.syncPageTitle(e), queueMicrotask(() => {
q7(), z7(), E9(), T9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? PO.replace(e, n) : PO.push(e, n), queueMicrotask(() => {
+ t ? FO.replace(e, n) : FO.push(e, n), queueMicrotask(() => {
q7(), z7();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
@@ -103710,14 +103718,14 @@ function P9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
function but() {
- let e = bO(L("#stats"));
+ let e = xO(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function F9() {
return !!but();
}
function I9(e) {
- F9() && TO(L("#stats"), e);
+ F9() && EO(L("#stats"), e);
}
function xut(e, t = {}) {
return $.controller.route(e, t);
@@ -103732,7 +103740,7 @@ async function R9(e, t = !0, n = null, r = !1) {
}
Qs(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && Hc({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Hc({ followDetailReturnPath: fO() || "/follow" }), t && uO(), F5()?.showing() !== "follow" && y9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, pO("follow")), await (await P5(v9.stageHost)).open({
+ t && i && !r && Hc({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Hc({ followDetailReturnPath: pO() || "/follow" }), t && dO(), F5()?.showing() !== "follow" && y9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, mO("follow")), await (await P5(v9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -103744,7 +103752,7 @@ async function R9(e, t = !0, n = null, r = !1) {
}), J7();
}
async function Sut() {
- await $lt(), y9(!1, !1, { miniplayer: !1 }), dO(), Q.route(kc || "/follow"), !(o7.entityPageView && o7.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && F9() ? (yut(), I9({ view: N9() })) : Hc({ pageOpens: Nc + 1 }));
+ await $lt(), y9(!1, !1, { miniplayer: !1 }), fO(), Q.route(kc || "/follow"), !(o7.entityPageView && o7.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && F9() ? (yut(), I9({ view: N9() })) : Hc({ pageOpens: Nc + 1 }));
}
function Cut(e) {
let t = document.createElement("div");
@@ -103781,7 +103789,7 @@ function wut() {
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- F5()?.showing() !== "follow" && (Qs(), y9(!1), j7(), !F9() && (Q.claimSurface(Q.surfacePath()), A7({ manage: !1 }), L("#stats").querySelector(".peach-react") && EO(L("#stats")), L("#stats").replaceChildren()));
+ F5()?.showing() !== "follow" && (Qs(), y9(!1), j7(), !F9() && (Q.claimSurface(Q.surfacePath()), A7({ manage: !1 }), L("#stats").querySelector(".peach-react") && DO(L("#stats")), L("#stats").replaceChildren()));
}
}, $.followDetailActions = pc({
view: N9,
@@ -103941,7 +103949,7 @@ function jut() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, wO("search", {
+ }, TO("search", {
input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
actions: B9.searchActions,
@@ -104106,7 +104114,7 @@ function Nut() {
},
openOverlay: (e) => {
let t = Q.requestedOverlay;
- Q.requestedOverlay = null, PO.navigation.claimed && (!IO() || Q.initialOverlayOpened) ? t?.path === location.pathname && t.open() : (IO() && (Q.initialOverlayOpened = !0), e.kind === "item" ? x9(e.id, !1) : e.kind === "jav" ? S9(e.code, !1) : e.kind === "follow" ? R9(e.id, !1) : b9(e.queue, e.key, e.item, !1));
+ Q.requestedOverlay = null, FO.navigation.claimed && (!LO() || Q.initialOverlayOpened) ? t?.path === location.pathname && t.open() : (LO() && (Q.initialOverlayOpened = !0), e.kind === "item" ? x9(e.id, !1) : e.kind === "jav" ? S9(e.code, !1) : e.kind === "follow" ? R9(e.id, !1) : b9(e.queue, e.key, e.item, !1));
},
closeStage: () => {
v9.stageOpen() && y9(!1);
@@ -104142,16 +104150,16 @@ function Nut() {
Z.handOff(o9());
},
fill: () => {
- if (l9() || !IO() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ if (l9() || !LO() && !L("#grid").querySelector(".catalog-skeleton")) return;
let e = L("#count");
e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), jlt(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- s9(), a7(), EO(L("#libraryProcessingNotice"));
+ s9(), a7(), DO(L("#libraryProcessingNotice"));
}
}
- }, W9.routing = !1, Y5.own(PO.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !oO(e.location.pathname) && y9(!1), W9.routing && !e.claimed && A9();
+ }, W9.routing = !1, Y5.own(FO.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !sO(e.location.pathname) && y9(!1), W9.routing && !e.claimed && A9();
})), Sot(W9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), Kct(), _ct(), L7(), Promise.all([
m9(),
Wct(),
@@ -104505,7 +104513,7 @@ function Jut() {
owners: 0
}, e.own(Kut(document)), e.own(() => {
Qs(), U.cancelQueries();
- }), e.own(Cot), e.own(Pme), e.own(Wa);
+ }), e.own(Cot), e.own(Nme), e.own(Wa);
}
return Q9.owners += 1, Q9.effects.resume(), Q9;
}
@@ -104540,4 +104548,4 @@ var Zut = document.getElementById("appRoot");
if (!Zut) throw Error("主界面宿主缺失");
Xut(Zut);
//#endregion
-export { mw as applyTheme, PO as peachHistory, mo as popCount, Not as showToast };
+export { mw as applyTheme, FO as peachHistory, mo as popCount, Not as showToast };